text:
import { TextEditor, Uri } from 'vscode';
import { GitActions } from '../commands/gitCommands.actions';
import { Commands } from '../constants';
import type { Container } from '../container';
import { Logger } from '../logger';
import { Messages } from '../messages';
import { ReferencePicker } from '../quickpicks/referencePicker';
import { RepositoryPicker } from '../quickpicks/repositoryPicker';
import { command } from '../system/command';
import { CompareResultsNode } from '../views/nodes';
import { ActiveEditorCommand, CommandContext, getCommandUri, isCommandContextViewNodeHasRef } from './base';

export interface OpenDirectoryCompareCommandArgs {
	ref1?: string;
	ref2?: string;
}

@command()
export class OpenDirectoryCompareCommand extends ActiveEditorCommand {
	constructor(private readonly container: Container) {
		super([
			Commands.DiffDirectory,
			Commands.DiffDirectoryWithHead,
			Commands.ViewsOpenDirectoryDiff,
			Commands.ViewsOpenDirectoryDiffWithWorking,
		]);
	}

	protected override async preExecute(context: CommandContext, args?: OpenDirectoryCompareCommandArgs) {
		switch (context.command) {
			case Commands.DiffDirectoryWithHead:
				args = { ...args };
				args.ref1 = 'HEAD';
				args.ref2 = undefined;
				break;

			case Commands.ViewsOpenDirectoryDiff:
				if (context.type === 'viewItem' && context.node instanceof CompareResultsNode) {
					args = { ...args };
					[args.ref1, args.ref2] = await context.node.getDiffRefs();
				}
				break;

			case Commands.ViewsOpenDirectoryDiffWithWorking:
				if (isCommandContextViewNodeHasRef(context)) {
					args = { ...args };
					args.ref1 = context.node.ref.ref;
					args.ref2 = undefined;
				}
				break;
		}

		return this.execute(context.editor, context.uri, args);
	}

	async execute(editor?: TextEditor, uri?: Uri, args?: OpenDirectoryCompareCommandArgs) {
		uri = getCommandUri(uri, editor);
		args = { ...args };

		try {
			const repoPath = (
				await RepositoryPicker.getBestRepositoryOrShow(uri, editor, 'Directory Compare Working Tree With')
			)?.path;
			if (!repoPath) return;

			if (!args.ref1) {
				const pick = await ReferencePicker.show(
					repoPath,
					'Directory Compare Working Tree with',
					'Choose a branch or tag to compare with',
					{
						allowEnteringRefs: true,
						// checkmarks: false,
					},
				);
				if (pick == null) return;

				args.ref1 = pick.ref;
				if (args.ref1 == null) return;
			}

			void GitActions.Commit.openDirectoryCompare(repoPath, args.ref1, args.ref2);
		} catch (ex) {
			Logger.error(ex, 'OpenDirectoryCompareCommand');
			void Messages.showGenericErrorMessage('Unable to open directory compare');
		}
	}
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>Layer</title>
<meta name="date" content="2015-07-02">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.nutiteq.layers

Class Layer

java.lang.Object

com.nutiteq.layers.Layer

Direct Known Subclasses:

NMLModelLODTreeLayer, TileLayer, VectorLayer

public class Layer
extends java.lang.Object

An abstract base class for all layers.

Field Summary

Fields

Modifier and Type
Field and Description

protected boolean
swigCMemOwn

Constructor Summary

Constructors

Constructor and Description

Layer(long cPtr,
     boolean cMemoryOwn)

Method Summary

All Methods Static Methods Instance Methods Concrete Methods

Modifier and Type
Method and Description

void
delete()

boolean
equals(java.lang.Object obj)

Checks if this object is equal to the specified object.

protected void
finalize()

static long
getCPtr(Layer obj)

int
getPriority()

Returns the layer task priority of this layer.

MapRange
getVisibleZoomRange()

Returns the visible zoom range of this layer.

int
hashCode()

Returns the hash value of this object.

boolean
isUpdateInProgress()

Tests whether this layer is being currently updated.

boolean
isVisible()

Returns the visibility of this layer.

void
refresh()

Refreshes the layer using old stored visibility information.

void
setPriority(int priority)

Sets the layer task priority.

void
setVisible(boolean visible)

Sets the visibility of this layer.

void
setVisibleZoomRange(MapRange range)

Set the visible zoom range for this layer.

static Layer
swigCreatePolymorphicInstance(long cPtr,
                             boolean cMemoryOwn)

java.lang.String
swigGetClassName()

Returns the actual class name of this object.

void
update(CullState cullState)

Updates the layer using new visibility information.

Methods inherited from class java.lang.Object

clone, getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

swigCMemOwn

protected boolean swigCMemOwn

Constructor Detail

Layer

public Layer(long cPtr,
             boolean cMemoryOwn)

Method Detail

getCPtr

public static long getCPtr(Layer obj)

finalize

protected void finalize()

Overrides:

finalize in class java.lang.Object

delete

public void delete()

equals

public boolean equals(java.lang.Object obj)

Checks if this object is equal to the specified object.

Overrides:

equals in class java.lang.Object

Returns:

True when objects are equal, false otherwise.

hashCode

public int hashCode()

Returns the hash value of this object.

Overrides:

hashCode in class java.lang.Object

Returns:

The hash value of this object.

swigCreatePolymorphicInstance

public static Layer swigCreatePolymorphicInstance(long cPtr,
                                                  boolean cMemoryOwn)

getPriority

public int getPriority()

Returns the layer task priority of this layer.

Returns:

The priority level for the tasks of this layer.

setPriority

public void setPriority(int priority)

Sets the layer task priority. Higher priority layers get to load data before

 lower priority layers. Normal layers and tile layers have seperate task queues and thus

 don't compete with each other for task queue access. The default is 0.

Parameters:

priority - The new task priority for this layer, higher values get better access.

isVisible

public boolean isVisible()

Returns the visibility of this layer.

Returns:

True if the layer is visible.

setVisible

public void setVisible(boolean visible)

Sets the visibility of this layer.

Parameters:

visible - The new visibility state of the layer.

getVisibleZoomRange

public MapRange getVisibleZoomRange()

Returns the visible zoom range of this layer.

Returns:

The visible zoom range of this layer.

setVisibleZoomRange

public void setVisibleZoomRange(MapRange range)

Set the visible zoom range for this layer. Current zoom level must be within this range for the layer to be visible.

 This range is half-open, thus layer is visible if range.min <= ZOOMLEVEL < range.max.

Parameters:

range - new visible zoom range

isUpdateInProgress

public boolean isUpdateInProgress()

Tests whether this layer is being currently updated.

Returns:

True when the layer is being updated or false when the layer is in steady state.

update

public void update(CullState cullState)

Updates the layer using new visibility information. This method is periodically called when the map view moves.

 The visibilty info is saved, so the data can be refreshed later.

Parameters:

cullState - The new visibilty information.

refresh

public void refresh()

Refreshes the layer using old stored visibility information. This method might be called if some of the layer data

 changes.

swigGetClassName

public java.lang.String swigGetClassName()

Returns the actual class name of this object. This is used internally by the SDK.

Returns:

The class name of this object.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

redpajama_set_name: RedPajamaGithub


text:
PACKAGE_NAME=twig_tweak
CORE_PACKAGE_NAME=drupal
PACKAGE_URL=https://git.drupalcode.org/project/twig_tweak
CORE_PACKAGE_URL=https://github.com/drupal/drupal
#PACKAGE_VERSION is configurable can be passed as an argument.
PACKAGE_VERSION=${1:-3.1.3}

yum module enable php:7.4 -y
yum install -y git php php-json php-dom php-mbstring zip unzip gd gd-devel php-gd php-pdo php-mysqlnd
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php --install-dir=/bin --filename=composer

OS_NAME=`cat /etc/os-release | grep PRETTY_NAME | cut -d '=' -f2 | tr -d '"'`

#Check if package exists
if [ -d "$CORE_PACKAGE_NAME" ] ; then
  rm -rf $CORE_PACKAGE_NAME
  echo "$CORE_PACKAGE_NAME  | $PACKAGE_VERSION | $OS_NAME | GitHub | Removed existing package if any"

fi

if ! git clone $CORE_PACKAGE_URL $CORE_PACKAGE_NAME; then
    	echo "------------------$PACKAGE_NAME:clone_fails---------------------------------------"
		echo "$CORE_PACKAGE_URL $CORE_PACKAGE_NAME"
        echo "$CORE_PACKAGE_NAME  |  $CORE_PACKAGE_URL |  $PACKAGE_VERSION | $OS_NAME | GitHub | Fail |  Clone_Fails"
    	exit 0
fi

cd $CORE_PACKAGE_NAME
if ! composer install --no-interaction; then
     	echo "------------------$PACKAGE_NAME:install_fails-------------------------------------"
	echo "$PACKAGE_URL $PACKAGE_NAME"
	echo "$PACKAGE_NAME  |  $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail |  Install_Fails"
	exit 1
fi

    composer require --dev phpunit/phpunit --with-all-dependencies ^8

    cd modules/

#Check if package exists
if [ -d "$PACKAGE_NAME" ] ; then
  rm -rf $PACKAGE_NAME
  echo "$PACKAGE_NAME  | $PACKAGE_VERSION | $OS_NAME | GitHub | Removed existing package if any"

fi

 if ! git clone $PACKAGE_URL $PACKAGE_NAME; then
    	echo "------------------$PACKAGE_NAME:clone_fails---------------------------------------"
		echo "$PACKAGE_URL $PACKAGE_NAME"
        echo "$PACKAGE_NAME  |  $PACKAGE_URL |  $PACKAGE_VERSION | $OS_NAME | GitHub | Fail |  Clone_Fails"
    	exit 0
fi

cd $PACKAGE_NAME
git checkout $PACKAGE_VERSION

cd ../../
cd core/

if ! ../vendor/phpunit/phpunit/phpunit ../modules/twig_tweak/tests/; then
	echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------"
	echo "$PACKAGE_URL $PACKAGE_NAME"
	echo "$PACKAGE_NAME  |  $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail |  Install_success_but_test_Fails"
	exit 1
else
	echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------"
	echo "$PACKAGE_URL $PACKAGE_NAME"
	echo "$PACKAGE_NAME  |  $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub  | Pass |  Both_Install_and_Test_Success"
	exit 0
fi

# drupal-twig_tweak has 2 types of test Kernel/Functional. Drupal framework is needed to run it.
# Please follow README file for more information to run Kernel/Functional test cases .

#Test completed in 48.15 seconds, Memory: 6.00 MB.


text:
namespace mzxrules.ZActor.MActors
{
    class MSimpleActor : MActorRecord
    {
        public MSimpleActor(short[] record)
            : base(record)
        {
            //"??? (unlisted)"
        }
        protected override string GetActorName()
        {
            if (Actor <= 0x2B1)
                return ActorName[Actor];
            return "out of range";
        }

        #region ActorName
        string[] ActorName = new string[]
        {
            "Player",
            "En_Test",
            "En_GirlA",
            "En_Part",
            "Flames of Various Colours",
            "Wooden Door",
            "Treasure Chest",
            "Gekko & Snapper Miniboss - Gekko",
            "Octorok",
            "Bomb",
            "Wallmaster",
            "Dodongo",
            "Keese",
            "Epona - Cutscenes",
            "Collectable Items",
            "Small Orange Flame That Fades Away",
            "Tatl",
            "Cucco",
            "Tektite",
            "INVALID",
            "Peahat",
            "En_Butte",
            "Bug",
            "Fish",
            "Black Room Transition Plane",
            "Dinolfos",
            "Red Flag on Post",
            "Child Zelda",
            "En_Viewer",
            "Shabom",
            "Studded Lifting Door",
            "INVALID",
            "Zora Fin Returning",
            "Elegy of Emptiness Statues",
            "Frog",
            "INVALID",
            "Skulltula",
            "INVALID",
            "Directional Sign",
            "Obj_Wturn",
            "En_River_Sound",
            "INVALID",
            "En_Ossan",
            "INVALID",
            "INVALID",
            "Death Armos",
            "INVALID",
            "Bombflower",
            "INVALID",
            "INVALID",
            "Armos",
            "Deku Baba",
            "En_M_Fire1",
            "En_M_Thunder",
            "Bg_Breakwall",
            "INVALID",
            "Blue Warp",
            "Torch Stand",
            "Heart Container",
            "Mad Scrub",
            "Red Bubble",
            "Hookshot",
            "Blue Bubble",
            "Fountain Water",
            "INVALID",
            "Termina Field Tree",
            "INVALID",
            "Gomess",
            "Bats Surrounding Gomess?",
            "INVALID",
            "INVALID",
            "Beamos",
            "Demo_Effect",
            "Demo_Kankyo",
            "Floormaster",
            "INVALID",
            "Redead & Gibdo",
            "Stone Tower Temple - Grey Square Stone Elevator",
            "Golden Gauntlets Rock (JP 1.0 Only)",
            "Obj_Mure",
            "Skullwalltula",
            "Object_Kankyo",
            "INVALID",
            "INVALID",
            "Child Epona",
            "Hole in Ground Exit",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "En_Encount1",
            "Light Radiating From Treasure Chest",
            "INVALID",
            "INVALID",
            "Astral Observatory - Majora's Mask Balloon",
            "Rock With Beam of Light",
            "Twisting Path to Clocktower",
            "Mirror Shield Face & Light Ray",
            "INVALID",
            "Shellblade",
            "Mad Jelly",
            "Wilted Deku Baba",
            "Gorman Bros.",
            "INVALID",
            "Ruto",
            "Bombchu",
            "Arrow, Posts, & Splatter",
            "Like Like",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "En_Fr",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "Fishing Pond Owner (JP 1.0 Only)",
            "Pushable Block",
            "Eff_Dust",
            "Bg_Umajump",
            "Fire Arrow",
            "Ice Arrow",
            "Light Arrow",
            "Item_Etcetera",
            "Small Wooden Crate",
            "Pot",
            "INVALID",
            "Iron Knuckle",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "Demo_Shd",
            "Deku Palace - King's Chamber Deku Guard",
            "Tatl Message Prompt",
            "En_Honotrap",
            "En_Tubo_Trap",
            "Obj_Ice_Poly",
            "Freezard",
            "Grass",
            "Floating Bean Plant",
            "Bombable Rock",
            "Obj_Switch",
            "INVALID",
            "Dampé's Grave - Brown Elevator ???",
            "Stone Hookshot Target Pillar",
            "En_Okarina_Tag",
            "INVALID",
            "Grey Boulder That Rolls Around ???",
            "INVALID",
            "INVALID",
            "Carpenter",
            "Cucco Chick",
            "Item_Inbox",
            "Gerudo Lieutenant",
            "Obj_Blockstop",
            "Dynamic Shadow",
            "Dissipating Cloud of Black Smoke Following Explosion",
            "INVALID",
            "Gorman",
            "Bean Seller",
            "Grog",
            "Swamp - Tour Boat",
            "Square Signpost",
            "INVALID",
            "Attacking Cucco",
            "INVALID",
            "INVALID",
            "INVALID",
            "Marine Researcher",
            "Kaepora Gaebora",
            "Rock",
            "Flower With Glitched Te",
            "Sun Switch",
            "Groups of Grass & Rocks",
            "INVALID",
            "Honey & Darling",
            "INVALID",
            "INVALID",
            "Water Spout",
            "En_Mm",
            "INVALID",
            "INVALID",
            "En_Weather_Tag",
            "Part-Timer",
            "INVALID",
            "Moon Child",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "Song of Storms Effect",
            "Title Logo",
            "Green Tatl Z-Target Message",
            "Stone Tower Temple - Floating Stone Platform",
            "INVALID",
            "INVALID",
            "Scarecrow",
            "Obj_Makeoshihiki",
            "Sun's Song Effect",
            "INVALID",
            "En_Torch",
            "INVALID",
            "Shot_Sun",
            "INVALID",
            "INVALID",
            "Obj_Roomtimer",
            "Cursed Man",
            "INVALID",
            "Zelda's Lullaby Effect",
            "Oceff_Storm",
            "Obj_Demo",
            "Mad Jelly - Jelly Droplets?",
            "Deku Nut Projectile",
            "INVALID",
            "INVALID",
            "INVALID",
            "INVALID",
            "Epona's Song Effect",
            "Saria's Song Effect",
            "INVALID",
            "Dog",
            "Gold Skulltula Token",
            "Honeycomb",
            "Normal Wooden Crate",
            "INVALID",
            "Blue Target Spot",
            "Obj_Mure3",
            "Honey & Darling",
            "INVALID",
            "INVALID",
            "Wolfos",
            "Stalchild",
            "INVALID",
            "Gossip Stone",
            "Termina Field - Fountain Sound Effects",
            "Guay",
            "INVALID",
            "Cow",
            "INVALID",
            "INVALID",
            "Scarecrow's Song Effect",
            "INVALID",
            "Zora",
            "Obj_Makekinsuta",
            "Aveil",
            "INVALID",
            "Obj_Hamishi",
            "Skullkid With Flute, OoT, Link Mask, Majora's Mask",
            "Postman's Letter to Himself",
            "INVALID",
            "Door_Spiral",
            "INVALID",
            "Obj_Pzlblock",
            "Blade Trap",
            "INVALID",
            "Armos Statue",
            "Green Bumper",
            "INVALID",
            "INVALID",
            "Dragonfly",
            "INVALID",
            "Obj_Grass",
            "Obj_Grass_Carry",
            "Obj_Grass_Unit",
            "INVALID",
            "INVALID",
            "Bg_Fire_Wall",
            "En_Bu",
            "Circle of Light",
            "Garo Master",
            "Row of Blocks That Collapse on Approach",
            "Igos du Ikana",
            "En_Warp_tag",
            "Mamamu Yan",
            "En_Boj_01",
            "En_Boj_02",
            "En_Boj_03",
            "En_Encount4",
            "Bomber",
            "Swamp Shooting Gallery Manager",
            "INVALID",
            "Blue Icicle",
            "Shooting Gallery - Guay",
            "En_Boj_04",
            "En_Cne_01",
            "En_Bba_01",
            "Shikashi",
            "Spiderweb",
            "INVALID",
            "INVALID",
            "En_Mt_tag",
            "Odolwa",
            "Twinmold",
            "Gyorg",
            "Wart",
            "Bio Deku Baba",
            "Boss_06",
            "Majora",
            "Great Fairy",
            "INVALID",
            "En_Boj_05",
            "INVALID",
            "INVALID",
            "En_Sob1",
            "INVALID",
            "INVALID",
            "Goron",
            "INVALID",
            "Carnivorous Lilypad",
            "Plume of Smoke Rising High Into the Sky",
            "Various Elevators (1, 2, 3, 4, 5)",
            "Woodfall Temple - Wooden Flower",
            "Breakable Pot With Grass",
            "Spike-Covered Log",
            "Cutscene - Boss Remains",
            "Shooting Gallery - Wolfos",
            "Obj_Skateblock",
            "Ice Block That Appears After Freezing Enemy",
            "Gekko & Snapper Miniboss - Snapper",
            "Shooting Gallery - Deku Scrub",
            "Pop Up Tatl Message",
            "Frog",
            "Link Riding Through Lost Woods Cutscene - Tree Trunk",
            "Skullkid With Flute, OoT, Link Mask, Majora's Mask",
            "Chuchu",
            "Desbreko",
            "Clock Tower Spotlight",
            "Chimney E",
            "Stock Pot Inn Bell",
            "Shooting Gallery - Octorok",
            "INVALID",
            "Obj_Shutter",
            "Song of Time Cutscene - Child Zelda",
            "Group of Stray Fairies",
            "Tatl Left Behind Cutscene - Deku Door/Spotlights",
            "Nejiron",
            "Vertically-Oriented Rotating Spiked Log",
            "Romani Ranch - Chimney Smoke Plume",
            "En_Test2",
            "Kafei",
            "Three-Day Timer",
            "Bad Bat",
            "Song of Soaring stone",
            "Wizzrobe",
            "Wizzrobe - Warp Platform",
            "Wizzrobe - Fire Attack",
            "Camera Focuses on Link",
            "Elegy of Emptiness - Beam of Light When Creating Statue",
            "Switch-Deactivated Circle of Flames Surrounding Platforms",
            "Ladder",
            "Black Boe",
            "Demo_Getitem",
            "INVALID",
            "Deku Nut Projectile",
            "Blue Target Spot Saying Koume's Boat Cruise Is Closed",
            "En_Dnk",
            "Deku King",
            "INVALID",
            "Tall Spiked Iron Fence",
            "Boulder Blocking Goron Racetrack",
            "Yellow Target Spot (object_En_Firefly)",
            "Real Bombchu",
            "Water Dripping on Ground",
            "En_Kusa2",
            "Pro",
            "INVALID",
            "Great Bay Temple Gears",
            "En_Dy_E",
            "Tingle With Balloon",
            "Bank Teller",
            "Pirates' Fortress - Telescope on Tripod",
            "Ice Platform That Floats in Water",
            "Deku Palace - Patrolling Deku Guard",
            "En_Mushi2",
            "En_Fall",
            "Counting Game Postman",
            "Strange Wooden/Metal Te",
            "Deku Butler",
            "En_Pr2",
            "Skullfish - Defeated",
            "Garo Master",
            "Pink & Green Deku Flower",
            "Eyegore",
            "Exploding Metal Spike Trap",
            "Related to the water in Woodfall Temple",
            "Koume on Broom",
            "Kotake",
            "INVALID",
            "INVALID",
            "En_Test5",
            "OoT's Night Actor?",
            "Beaver Bros. Big Brother",
            "Rubble Blasted by Eyegore",
            "Snowhead Temple - Central Pillar",
            "Opening Cutscene - Objects",
            "Skullkid With Flute, OoT, Link Mask, Majora's Mask",
            "Tatl?",
            "Woodfall Temple Rises Cutscene - Objects",
            "Clock Tower Roof Cutscene - OoT & Majora's Mask",
            "Cutscene - Happy Mask Salesman",
            "Dm_Char04",
            "Healing Pamela's Father Cutscene - Gibdo Mask",
            "Mountain Village Unfreezes Cutscene - Mountain",
            "Ending Cutscene - Indigo-Go's Milk Bar Stage",
            "Turtle Island Cutscene - Turtle",
            "Beehive Cutscene - Giant Bee",
            "Clock Tower & Light Beam",
            "INVALID",
            "Monkey",
            "Grey Rectangular Stone Block",
            "Deku Palace - Entrance Guard",
            "Snowhead Temple - Bombable Wall",
            "Clock Tower - Swinging Doors",
            "Snowhead Temple - Punchable Central Pole Inserts",
            "Romani",
            "Beaver Dam Twig Te",
            "Romani Ranch - Poe Balloon",
            "En_Door_Etc",
            "Big Octo",
            "Ice Platform Created by Ice Arrow",
            "Elevator With Triforce Texture",
            "En_Time_Tag",
            "Tatl Left Behind Cutscene - Wooden Deku Door",
            "Taunted by Skullkid Cutscene - Spotlights",
            "Honey & Darling's Shop - Rotating Platform",
            "Water Poured Out of Bottle",
            "Stray Fairy",
            "Stray Fairy in Bubble",
            "INVALID",
            "Honey & Darling's Shop - Target",
            "Honey & Darling's Shop - Basket",
            "Happy Mask Salesman",
            "Clock Tower - Rotating Wooden Cog",
            "Kotake on Broom",
            "Door to Top of Clock Tower",
            "Lilypad",
            "Snapper",
            "Treasure Chest Game - Pro",
            "Circle of Water Surrounding Honey & Darling Platform",
            "Business Scrub Carrying Bags",
            "Ivy in Deku Jail",
            "INVALID",
            "Invisible Blue Platforms Seen With Lens of Truth",
            "Treasure Chest Game - Employee",
            "Great Bay - Fisherman",
            "Ocarina of Time - Potion Shop Owner",
            "Curiosity Shop - Owner",
            "Swamp Tourist Center - Guide",
            "INVALID",
            "Clock Town - Gate-Blocking Soldier",
            "Ice Block",
            "Deku Scrub Playground - Employee",
            "Dampé",
            "INVALID",
            "West Clocktown - Stairs",
            "Deku Scrub Playground - Rupee Elevator",
            "Song of Soaring Actor?",
            "Block That Dissolves in Sunlight",
            "Mirror Shield Face & Light Ray",
            "De",
            "Deku Scrub Playground - Large Green Rupee",
            "Bg_Danpei_Movebg",
            "Snow-Covered Tree",
            "Postman Delivering Letters",
            "Termina Field - 2D Song Buttons Appearing on Wall",
            "Elf_Msg4",
            "Elf_Msg5",
            "En_Col_Man",
            "Ikana Well Gibdo",
            "Giant",
            "Large Snowball",
            "Goht",
            "Spirit House - Owner",
            "En_Onpuman",
            "Gate to Goron Shrine",
            "En_Tag_Obj",
            "Dampé's House Facade",
            "Gravestone",
            "Goron Link Switch",
            "INVALID",
            "Eeno",
            "TG_Sw",
            "Poe Sisters",
            "Hiploop",
            "Rocks Kicked Up by Goht",
            "En_Hanabi",
            "Obj_Dowsing",
            "Wind Funnel ???",
            "Racetrack Dog (Arrow Over Head)",
            "Swordsman",
            "Captain Keeta Race - Gatepost",
            "Marine Research Lab Fish",
            "Postbox",
            "Poe",
            "Tent-Shaped Spider Web",
            "Zora Egg",
            "Zubora",
            "Darmani's Ghost",
            "Swordsman's School - Practice Log",
            "Small Snowball",
            "Darmani's Ghost",
            "Darmani's Gravestone",
            "Deku Princess",
            "Biggoron",
            "Goron Hot Spring Water",
            "Gabora",
            "En_Invadepoh",
            "Goron Elder's Son",
            "Anju",
            "INVALID",
            "Giant Bee",
            "Seahorse",
            "Deep Python",
            "Swordsman's School - Gong",
            "Big Poe",
            "Swordsman's School - Cuttable Board",
            "Little Cow Statue Head",
            "Blue Target Spot ???",
            "No Te",
            "Curtain That Lifts to Reveal Flat's Tomb",
            "Ocean Spider House - Bombable Wall",
            "Ocean Spider House - Fireplace Grate",
            "Ocean Spider House - Skullkid Painting",
            "Ocean Spider House - Drawers & Bookshelf",
            "Ikana Graveyard - Circle of Stalchildren",
            "Goron Elder",
            "Koume's Target Game - Koume on Broom",
            "Cremia's Cart",
            "Leever",
            "Milk Bar - Chair",
            "Stone Tower Temple - Rotating Room Pushblock",
            "Stone Tower Temple - Mirror",
            "Stone Tower Temple - Rotating Room",
            "Great Bay Temple - See-Saw",
            "Great Bay Temple - Freezable Geyser",
            "Gerudo Pirate",
            "Patrolling Pirate Guard",
            "Romani",
            "Cremia",
            "South Clock Town - Flags & Carnival Platform",
            "Great Bay Temple - Elevator",
            "Owl Statue",
            "Mikau",
            "Deku Moon Dungeon - Spiked Rotating Platforms",
            "Goron Elder - Drum",
            "Twinmold Arena",
            "Great Bay - Zora With Directions to Zora Hall",
            "North Clock Town - Tree",
            "Elevator?",
            "Pirate's Fortress - Interior Door",
            "Pirate Boat",
            "Wooden Barrel",
            "Switch-Activated Geyser",
            "Koume's Target Game - Target",
            "Mirror Shield Face & Light Ray",
            "Japas",
            "Elf_Msg6",
            "Sakon's Hideout sliding door/conveyor slabs",
            "Toto",
            "Music Box House ???",
            "Bomb Shop Lady",
            "Sakon",
            "Tijo",
            "Clock Town - Lottery Shop",
            "Goron With Don Gero's Mask",
            "Mushroom Scent",
            "Palm Tree",
            "Moths in Woodfall Temple",
            "Bubbles Surrounding Wart?",
            "Fish Surrounding Gyorg?",
            "Goron Village - Chandelier",
            "Evan",
            "Goron Complaining About Baby Crying",
            "Anju's Grandma",
            "Jugglers",
            "Stone Tower Temple - Movable Monkey-Faced Blocks",
            "Elegy of Emptiness Switch",
            "Poe Composers",
            "Guru-Guru",
            "Sonata of Awakening Effect",
            "Shiro",
            "Song of Soaring Effect",
            "Astral Observatory - Business Scrub in Telescope",
            "Astral Observatory - Guay in Telescope",
            "Song of Healing Effect",
            "Wave Created by Turtle Awakening",
            "Pamela's Father",
            "Pamela's Father As a Gibdo",
            "Lulu",
            "Madame Dotour",
            "Music Bo",
            "Stone Tower Temple - Bombable Tan Floor Tile",
            "Stone Tower Temple - Light Rays",
            "Stone Tower Temple - Door",
            "Beneath the Grave - Bombable Wall",
            "Flat's Tomb",
            "Large Rotating Green Rupee",
            "Sharp's Cave",
            "Music Bo",
            "Pamela",
            "Ikana Canyon - Hookshotable Tree",
            "Swamp Spider House - Sleeping Deku Scrub",
            "Great Bay - Zora Complaining About Water",
            "Green Target Spot (Indigo-Go's Poster)",
            "Madame Aroma",
            "Mr. Barten",
            "Bomb Shop Bag Stolen by Sakon",
            "En_Hit_Tag",
            "Guay Circling Clock Town",
            "Flock of Seagulls",
            "En_Tanron5",
            "Flock of Giant Bees",
            "Milk Road - Carpenter Hacking at Boulder",
            "Mutoh",
            "Captain Viscen",
            "En_Heishi",
            "??? - Soldier",
            "Mayor Dotour",
            "Laundry Pool - Sign With Bell",
            "Cremia & Romani's 6pm Dinner",
            "Moon Crashing Into Clocktown Effects",
            "Ikana Castle - Punchable Pillar Segments",
            "Business Scrub",
            "Skullkid Screams to Call Moon Down - Effects",
            "Link the Goron",
            "Medigoron",
            "Captain Keeta",
            "En_Sth2",
            "Kamaro",
            "Rosa Sister",
            "En_Scopecoin",
            "Hand in Toilet",
            "Bombers - Jim",
            "Bombers - Jim",
            "Bombers - Blue-Hatted Bomber",
            "Bombers - Hideout Guard",
            "Bombers - Majora Balloon",
            "Moon's Tear",
            "Obj_Mu_Pict",
            "Various Ikana Objects",
            "Blue Spotlight Effect",
            "Gorman Bros. Buildings",
            "Roof of Cow Barn",
            "Twisted Corpse of Deku Butler's Son",
            "Huge Metal Portcullis",
            "Cart Delivery Bottle of Chateau Romani",
            "Keaton",
            "Astral Observatory - Bombable Wall",
            "Stone Tower Temple - Hot Checkered Ceiling",
            "Captain Keeta",
            "Mayor's Receptionist",
            "Takkuri",
            "Fisherman's Jumping Game - Fisherman",
            "Fisherman's Jumping Game - Torch",
            "Stockpot Inn - 2nd Floor Window",
            "Demo_Syoten",
            "Ending Cutscene - Moon Gets Tossed Back Into Sky",
            "Colourful Hookshot Target Pillar",
            "Link Moon Dungeon - Bombable, Climbable Wall",
            "Anju in Wedding Dress",
            "En_Invadepoh_Demo",
            "Red & Brown Elevator",
            "Falling Moon",
            "Ending Cutscene - Madame Aroma at Wedding",
            "Blue Target Spot",
            "Ending Cutscene - Anju's Mother at Wedding",
            "Ending Cutscene - Anju's Grandmother at Wedding",
            "Wedding Dress Mannequin",
            "Ending Cutscene - Mayor Dotour at Wedding",
            "Ending Cutscene - Tingle at Wedding",
            "Ending Cutscene - Confetti at Wedding",
            "Stalchild - Gives Hints",
            "Dm_Tag",
            "Brown Bird",
            "Ending Cutscene - Vissen at Wedding",
            "Ending Cutscene - Mutoh at Wedding",
            "Ending Cutscene - Soldier Cheering Guruguru",
            "Ending Cutscene - Carpenter Watching Indigo-Go's",
            "En_Ending_Hero6",
            "Blue Target Spot",
            "Obj_Swprize",
            "En_Invisible_Ruppe",
            "Ending Cutscene - Stump With Skullkid's Doodle",
            "Ending Cutscene - Bomb Shop Owner",

        };
        #endregion
    }
}


text:
START_ATF_NAMESPACE
    typedef tagBITMAPCOREHEADER *PBITMAPCOREHEADER;
END_ATF_NAMESPACE


text:
package com.snobot2016.autonomous.trajectory;

import java.util.ArrayList;
import java.util.List;

import com.snobot.xlib.Utilities;
import com.snobot.xlib.motion_profile.trajectory.IdealSplineSerializer;
import com.snobot.xlib.motion_profile.trajectory.SplineSegment;
import com.snobot2016.Properties2016;
import com.snobot2016.SmartDashBoardNames;
import com.snobot2016.drivetrain.IDriveTrain;
import com.snobot2016.positioner.IPositioner;
import com.team254.lib.trajectory.Path;
import com.team254.lib.trajectory.Trajectory;

import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.networktables.NetworkTable;
import edu.wpi.first.wpilibj.tables.ITable;

public class TrajectoryPathCommand extends Command
{
    private IDriveTrain mDrivetrain;
    private IPositioner mPositioner;
    private TrajectoryFollower followerLeft = new TrajectoryFollower("left");
    private TrajectoryFollower followerRight = new TrajectoryFollower("right");
    private Path mPath;
    private double mStartingLeftDistance;
    private double mStartingRightDistance;
    private double mKTurn;

    private ITable mTable;

    private double mLastLeftDistance;
    private double mLastRightDistance;

    private String mSDIdealName;
    private String mSDRealName;

    public TrajectoryPathCommand(IDriveTrain aDrivetrain, IPositioner aPositioner, Path aPath)
    {
        mDrivetrain = aDrivetrain;
        mPositioner = aPositioner;
        mPath = aPath;

        mTable = NetworkTable.getTable(SmartDashBoardNames.sSPLINE_NAMESPACE);
        mSDIdealName = SmartDashBoardNames.sSPLINE_IDEAL_POINTS;
        mSDRealName = SmartDashBoardNames.sSPLINE_REAL_POINT;

        double kP = Properties2016.sDRIVE_PATH_KP.getValue();
        double kD = Properties2016.sDRIVE_PATH_KD.getValue();
        double kVelocity = Properties2016.sDRIVE_PATH_KV.getValue();
        double kAccel = Properties2016.sDRIVE_PATH_KA.getValue();

        mKTurn = Properties2016.sSPLINE_TURN_FACTOR.getValue();

        followerLeft.configure(kP, 0, kD, kVelocity, kAccel);
        followerRight.configure(kP, 0, kD, kVelocity, kAccel);

        followerLeft.reset();
        followerRight.reset();

        followerLeft.setTrajectory(aPath.getLeftWheelTrajectory());
        followerRight.setTrajectory(aPath.getRightWheelTrajectory());

        if (mTable.getString(mSDIdealName, "").isEmpty())
        {
            sendIdealPath();
        }
    }

    @Override
    protected void initialize()
    {
        mStartingLeftDistance = mDrivetrain.getLeftEncoderDistance();
        mStartingRightDistance = mDrivetrain.getRightEncoderDistance();

        sendIdealPath();
    }

    @Override
    protected void execute()
    {
        double dt = .02;

        double distanceL = mDrivetrain.getLeftEncoderDistance() - mStartingLeftDistance;
        double distanceR = mDrivetrain.getRightEncoderDistance() - mStartingRightDistance;

        double speedLeft = followerLeft.calculate(distanceL);
        double speedRight = followerRight.calculate(distanceR);

        double goalHeading = followerLeft.getHeading();
        double observedHeading = mPositioner.getOrientationDegrees();

        double angleDiff = Utilities.getDifferenceInAngleDegrees(observedHeading, goalHeading);

        double turn = mKTurn * angleDiff;

        mDrivetrain.setLeftRightSpeed(speedLeft + turn, speedRight - turn);

        SplineSegment segment = new SplineSegment();
        segment.mLeftSidePosition = distanceL;
        segment.mLeftSideVelocity = (distanceL - mLastLeftDistance) / dt;
        segment.mRightSidePosition = distanceR;
        segment.mRightSideVelocity = (distanceR - mLastRightDistance) / dt;
        segment.mRobotHeading = Utilities.boundAngleNeg180to180Degrees(observedHeading);
        segment.mAverageX = mPositioner.getXPosition();
        segment.mAverageY = mPositioner.getYPosition();

        String point_info = followerLeft.getCurrentSegment() + "," + IdealSplineSerializer.serializePathPoint(segment);

        mTable.putString(mSDRealName, point_info);

        mLastLeftDistance = distanceL;
        mLastRightDistance = distanceR;
    }

    @Override
    protected boolean isFinished()
    {
        return followerLeft.isFinishedTrajectory();
    }

    @Override
    protected void end()
    {
        mDrivetrain.stop();

    }

    @Override
    protected void interrupted()
    {

    }

    private void sendIdealPath()
    {
        List<SplineSegment> segments = new ArrayList<SplineSegment>();

        Trajectory left = mPath.getLeftWheelTrajectory();
        Trajectory right = mPath.getRightWheelTrajectory();

        for (int i = 0; i < left.getNumSegments(); ++i)
        {
            SplineSegment segment = new SplineSegment();
            segment.mLeftSidePosition = left.getSegment(i).pos;
            segment.mLeftSideVelocity = left.getSegment(i).vel;
            segment.mRightSidePosition = right.getSegment(i).pos;
            segment.mRightSideVelocity = right.getSegment(i).vel;
            segment.mRobotHeading = Utilities.boundAngleNeg180to180Degrees(right.getSegment(i).heading);
            segment.mAverageX = right.getSegment(i).y; // Flipped on purpose
            segment.mAverageY = right.getSegment(i).x; // Flipped on purpose

            segments.add(segment);
        }

        mTable.putString(mSDIdealName, IdealSplineSerializer.serializePath(segments));
    }

}


text:
<?php

declare(strict_types=1);

namespace League\Uri;

use Psr\Http\Message\UriInterface as Psr7UriInterface;

use function base64_decode;
use function explode;
use function filter_var;
use function preg_match;
use function rawurlencode;
use function strpos;
use function strtolower;
use function substr;
use const FILTER_FLAG_IPV4;
use const FILTER_NULL_ON_FAILURE;
use const FILTER_VALIDATE_BOOLEAN;
use const FILTER_VALIDATE_IP;

/**
 * Immutable Value object representing a HTTP(s) Uri.
 *
 * @package    League\Uri
 * @subpackage League\Uri\Schemes
 * @author     Ignace Nyamagana Butera <nyamsprod@gmail.com>
 * @since      1.2.0
 */
class Http extends AbstractUri implements Psr7UriInterface
{
    /**
     * @inheritdoc
     */
    protected static $supported_schemes = [
        'http' => 80,
        'https' => 443,
    ];

    /**
     * Tell whether the Http(s) URI is in valid state.
     *
     * A valid HTTP(S) URI:
     *
     *

     *
can be schemeless or supports only 'http' and 'https' schemes
     *
Host can not be an empty string
     *
If a scheme is defined an authority must be present
     *

     *
     * @see https://tools.ietf.org/html/rfc6455#section-3
     */
    protected function isValidUri(): bool
    {
        return '' !== $this->host
            && (null === $this->scheme || isset(static::$supported_schemes[$this->scheme]))
            && !('' != $this->scheme && null === $this->host);
    }

    /**
     * @inheritdoc
     */
    protected static function filterPort($port)
    {
        if (null === $port) {
            return $port;
        }

        if (1 > $port || 65535 < $port) {
            throw UriException::createFromInvalidPort($port);
        }

        return $port;
    }

    /**
     * Create a new instance from the environment.
     *
     * @param array $server the server and execution environment information array typically ($_SERVER)
     *
     * @return static
     */
    public static function createFromServer(array $server): self
    {
        list($user, $pass) = static::fetchUserInfo($server);
        list($host, $port) = static::fetchHostname($server);
        list($path, $query) = static::fetchRequestUri($server);

        return new static(static::fetchScheme($server), $user, $pass, $host, $port, $path, $query);
    }

    /**
     * Returns the environment scheme.
     *
     * @param array $server the environment server typically $_SERVER
     */
    protected static function fetchScheme(array $server): string
    {
        $server += ['HTTPS' => ''];
        $res = filter_var($server['HTTPS'], FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);

        return $res !== false ? 'https' : 'http';
    }

    /**
     * Returns the environment user info.
     *
     * @param array $server the environment server typically $_SERVER
     */
    protected static function fetchUserInfo(array $server): array
    {
        $server += ['PHP_AUTH_USER' => null, 'PHP_AUTH_PW' => null, 'HTTP_AUTHORIZATION' => ''];
        $user = $server['PHP_AUTH_USER'];
        $pass = $server['PHP_AUTH_PW'];
        if (0 === strpos(strtolower($server['HTTP_AUTHORIZATION']), 'basic')) {
            list($user, $pass) = explode(':', base64_decode(substr($server['HTTP_AUTHORIZATION'], 6)), 2) + [1 => null];
        }

        if (null !== $user) {
            $user = rawurlencode($user);
        }

        if (null !== $pass) {
            $pass = rawurlencode($pass);
        }

        return [$user, $pass];
    }

    /**
     * Returns the environment host.
     *
     * @param array $server the environment server typically $_SERVER
     *
     * @throws UriException If the host can not be detected
     */
    protected static function fetchHostname(array $server): array
    {
        $server += ['SERVER_PORT' => null];
        if (null !== $server['SERVER_PORT']) {
            $server['SERVER_PORT'] = (int) $server['SERVER_PORT'];
        }

        if (isset($server['HTTP_HOST'])) {
            preg_match(',^(?<host>(\[.*\]|[^:])*)(\:(?<port>[^/?\#]*))?$,x', $server['HTTP_HOST'], $matches);

            return [
                $matches['host'],
                isset($matches['port']) ? (int) $matches['port'] : $server['SERVER_PORT'],
            ];
        }

        if (!isset($server['SERVER_ADDR'])) {
            throw new UriException('Hostname could not be detected');
        }

        if (!filter_var($server['SERVER_ADDR'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
            $server['SERVER_ADDR'] = '['.$server['SERVER_ADDR'].']';
        }

        return [$server['SERVER_ADDR'], $server['SERVER_PORT']];
    }

    /**
     * Returns the environment path.
     *
     * @param array $server the environment server typically $_SERVER
     */
    protected static function fetchRequestUri(array $server): array
    {
        $server += ['IIS_WasUrlRewritten' => null, 'UNENCODED_URL' => '', 'PHP_SELF' => '', 'QUERY_STRING' => null];
        if ('1' === $server['IIS_WasUrlRewritten'] && '' !== $server['UNENCODED_URL']) {
            return explode('?', $server['UNENCODED_URL'], 2) + [1 => null];
        }

        if (isset($server['REQUEST_URI'])) {
            list($path, ) = explode('?', $server['REQUEST_URI'], 2);
            $query = ('' !== $server['QUERY_STRING']) ? $server['QUERY_STRING'] : null;

            return [$path, $query];
        }

        return [$server['PHP_SELF'], $server['QUERY_STRING']];
    }
}


text:
<a :href="href" target="_blank">
    <img src="http://materializecss.com/images/favicon/favicon-32x32.png" height="32" alt="materialize"/>
</a>


text:
import { enableProdMode } from "@angular/core";

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
import "rxjs/add/operator/map";
import "rxjs/add/operator/debounceTime";
import "rxjs/add/operator/distinctUntilChanged";
import "rxjs/add/operator/switchMap";

//enableProdMode();

platformBrowserDynamic().bootstrapModule(AppModule);


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dos.ORM.NoSql
{
    /// <summary>
    ///
    /// </summary>
    public interface ICache
    {
        /// <summary>
        ///
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        bool Remove(string key);
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        bool Set<T>(string key, T value);
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <param name="expiresIn"></param>
        /// <returns></returns>
        bool Set<T>(string key, T value, TimeSpan expiresIn);
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="key"></param>
        /// <returns></returns>
        T Get<T>(string key);
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string-array name="pref_units_entries">
        <item>@string/pref_units_metric</item>
        <item>@string/pref_units_imperial</item>
    </string-array>
    <string-array name="pref_units_values">
        <item>@string/pref_units_metric</item>
        <item>@string/pref_units_imperial</item>
    </string-array>

    <string-array name="pref_icons_entries">
        <item>@string/pref_icon_sunshine</item>
        <item>@string/pref_icon_cute_dogs</item>
    </string-array>
    <string-array name="pref_icons_values">
        <item>@string/pref_art_pack_sunshine</item>
        <item>@string/pref_art_pack_cute_dogs</item>
    </string-array>
</resources>


text:
<?php

namespace spec\Behat\Symfony2Extension\Context\ContextClass;

use Behat\Symfony2Extension\Suite\SymfonyBundleSuite;
use Behat\Testwork\Suite\Suite;
use PhpSpec\ObjectBehavior;

class KernelAwareClassGeneratorSpec extends ObjectBehavior
{
    function it_is_a_class_generator()
    {
        $this->shouldHaveType('Behat\Behat\Context\ContextClass\ClassGenerator');
    }

    function it_supports_symfony_suites(SymfonyBundleSuite $suite)
    {
        $this->supportsSuiteAndClass($suite, 'test\classname')->shouldBe(true);
    }

    function it_does_not_support_other_suites(Suite $suite)
    {
        $this->supportsSuiteAndClass($suite, 'test\classname')->shouldBe(false);
    }

    function it_generates_classes_in_the_global_namespace(SymfonyBundleSuite $suite)
    {
        $code = <<<'PHP'
<?php

use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\Symfony2Extension\Context\KernelAwareContext;
use Symfony\Component\HttpKernel\KernelInterface;

/**
 * Behat context class.
 */
class TestContext implements SnippetAcceptingContext, KernelAwareContext
{
    /**
     * @var KernelInterface
     */
    private $kernel;

    /**
     * Sets Kernel instance.
     * This method will be automatically called by Symfony2Extension ContextInitializer.
     *
     * @param KernelInterface $kernel
     */
    public function setKernel(KernelInterface $kernel)
    {
        $this->kernel = $kernel;
    }
}

PHP;
        $this->generateClass($suite, 'TestContext')->shouldReturn($code);
    }

    function it_generates_namespaced_classes(SymfonyBundleSuite $suite)
    {
        $code = <<<'PHP'
<?php

namespace Test;

use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\Symfony2Extension\Context\KernelAwareContext;
use Symfony\Component\HttpKernel\KernelInterface;

/**
 * Behat context class.
 */
class TestContext implements SnippetAcceptingContext, KernelAwareContext
{
    /**
     * @var KernelInterface
     */
    private $kernel;

    /**
     * Sets Kernel instance.
     * This method will be automatically called by Symfony2Extension ContextInitializer.
     *
     * @param KernelInterface $kernel
     */
    public function setKernel(KernelInterface $kernel)
    {
        $this->kernel = $kernel;
    }
}

PHP;
        $this->generateClass($suite, 'Test\TestContext')->shouldReturn($code);
    }
}


text:
import React, {ReactNode} from 'react';
import Card from '@material-ui/core/Card';
import {Box, makeStyles} from '@material-ui/core';
import {Fonts} from '../../../shared/constants/AppEnums';
import {MessageFormatElement} from 'intl-messageformat-parser';
import {CremaTheme} from '../../../types/AppContextPropsType';

const useStyles = makeStyles((theme: CremaTheme) => ({
  link: {
    underline: 'none',
    fontSize: 16,
    [theme.breakpoints.up('xl')]: {
      fontSize: 18,
    },
  },
}));

interface AppCardProps {
  title?: string | MessageFormatElement[];
  titleStyle?: any;
  action?: ReactNode | string | MessageFormatElement[];
  actionStyle?: any;
  footer?: any;
  footerPosition?: string;
  footerStyle?: any;
  children: ReactNode;

  [x: string]: any;
}

const AppCard: React.FC<AppCardProps> = ({
  title,
  titleStyle,
  action,
  actionStyle,
  footer,
  footerPosition = 'left',
  footerStyle,
  children,
  ...rest
}) => {
  const classes = useStyles();
  return (
    <Box py={{xs: 5, sm: 5, xl: 5}} px={{xs: 6, sm: 6, xl: 6}} {...rest} clone>
      <Card>
        <Box>
          {title || action ? (
            <Box
              display='flex'
              flexDirection={{xs: 'column', sm: 'row'}}
              alignItems={{xs: 'center'}}
              justifyContent={{sm: 'space-between'}}
              mb={3}>
              {typeof title === 'object' ? (
                title
              ) : (
                <Box
                  component='h3'
                  color='text.primary'
                  fontFamily={Fonts.LIGHT}
                  fontSize={{xs: 18, sm: 20, xl: 22}}
                  {...titleStyle}>
                  {title}
                </Box>
              )}

              {typeof action === 'object' ? (
                action
              ) : (
                <Box
                  color='secondary'
                  component='button'
                  className={classes.link}
                  ml={footerPosition === 'right' ? 'auto' : 0}>
                  {action}
                </Box>
              )}
            </Box>
          ) : null}

          {children}
        </Box>
        {footer ? (
          <Box pt={2} {...footerStyle}>
            {typeof footer === 'object' ? (
              footer
            ) : (
              <Box
                color='secondary'
                component='button'
                className={classes.link}
                ml={footerPosition === 'right' ? 'auto' : 0}>
                {footer}
              </Box>
            )}
          </Box>
        ) : null}
      </Card>
    </Box>
  );
};

export default AppCard;


text:
extern "C" {
#endif

//////////// GENERATED FILE (from version.h.in) /////////////////
//////////// GENERATED FILE (from version.h.in) /////////////////
//////////// GENERATED FILE (from version.h.in) /////////////////

#define VERSION_MAJOR 1
#define VERSION_MINOR 9
#define VERSION_PATCH 0

//////////// GENERATED FILE (from version.h.in) /////////////////
//////////// GENERATED FILE (from version.h.in) /////////////////
//////////// GENERATED FILE (from version.h.in) /////////////////

#ifdef __cplusplus
}
#endif
#endif


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
null

#### Original name
Stenophyllus curassavicus Britton

### Remarks
null


text:
/** @file SettingsScanner.cpp
*	Definition of internal ImageCacheWriter class for DDT image library
*
*	@author	Dynamic DeZigns Technology
*
*/

#include "iSettings.h"

SettingsScanner::SettingsScanner(Settings * parent)
	: settings(parent), done(false), QThread((QObject *)parent)
{
}

SettingsScanner::~SettingsScanner()
{
}

void SettingsScanner::run(void)
{
	int msSleep = 10000;

	for (;;)
	{
		if (done || 0 == msSleep)
		{
			if ( ! settings->keyForPollCount.isEmpty())
				settings->setValue(settings->keyForPollCount, "-1");
			return;
		}

		msleep(msSleep);

		if (done || 0 == msSleep)
		{
			if ( ! settings->keyForPollCount.isEmpty())
				settings->setValue(settings->keyForPollCount, "-1");
			return;
		}
		settings->scanForUpdate();
		if (0 == settings->updateMsec())
		{
			msSleep = 10000;
			continue;
		}
		settings->scan();

		msSleep = settings->updateMsec() ? settings->updateMsec() : 10000;
	}
} // run()

void Settings::scanForUpdate(void)
{
	if (keyForUpdateMsec.isEmpty())
		return;

	QVariant registry = value(keyForUpdateMsec);
	if (registry.toInt() != UpdateMsec)
		emit changeProperty(keyForUpdateMsec, registry);
} // scanForUpdate() slot

void Settings::scan(void)
{
	emit scanStart();

	if (infoOutputSetting)
	{
		QString key = infoOutputSetting->key();
		QString oldMessage = value(key).toString();
		QString newMessage = infoOutputSetting->pump(oldMessage);
		if (newMessage != oldMessage)
			setValue(key, newMessage);
	}

	foreach(Setting * var, vars)
	{
		if ( ! var->flags.testFlag(Settings::ReadOnly)
				&& var->flags.testFlag(Settings::Dirty))
		{
			if (WriteBack)
			{
				QVariant current = *var;
				QVariant registry = value(var->key, current.toString());
				if (registry != current)
					setValue(var->key, current.toString());
			}
			var->flags &= ~ Settings::Dirty;
		}

		if (var->flags.testFlag(Settings::Volatile)
				&& ! var->flags.testFlag(Settings::Dirty))
		{
			QVariant current = *var;
			QVariant registry = value(var->key, current.toString());
			if (registry != current)
				var->setValue(registry);
		}
	} // foreach(var)

	foreach(SettingProperty * prop, properties)
	{
		if ( ! (prop->flags & Settings::ReadOnly) && (prop->flags & Settings::Dirty))
		{
			if (WriteBack)
			{
				QVariant current = prop->object->property(qPrintable(prop->propertyName));
				QVariant registry = value(prop->key, current.toString());
				if (registry != current)
					setValue(prop->key, current.toString());
			}
			prop->flags &= ~ Settings::Dirty;
		}

		QVariant current = prop->object->property(qPrintable(prop->propertyName));
		if (prop->value != current)
		{
			if (prop->item)
				prop->item->showChanged();
			prop->flags |= Settings::Dirty | Settings::Changed;
			prop->value = current;
			emitPropertyChanged(prop->key);
		}
		if ((prop->flags & Settings::Volatile) && ! (prop->flags & Settings::Dirty))
		{
			QVariant current = prop->object->property(qPrintable(prop->propertyName));
			QVariant registry = value(prop->key, current.toString());
			if (registry != current)
				emit changeProperty(prop->key, registry);
		}
	} // foreach(var)

	emit scanFinish();
} // scan() signal

void Settings::updatePollCount(void)
{
	this->setValue(keyForPollCount, QString::number(PollCount));
	++PollCount;
}


text:
    Canadian Mortgage Calculator

In Canada, loan interest is compounded semi-annually, rather than monthly as it is in the US. Because of the
          different compounding schedule, monthly payments in Canada are slightly lower than payments in the US, given
          the same principal, loan term, and nominal interest rate.

Mortgage Details

Enter your mortgage details:

      <form role="form">

            Mortgage Amount
            <input [(ngModel)]="MortgageAmount" (ngModelChange)="calculateMortgage()" name="MortgageAmount"
                   type="number" min="100" max="999999999" class="form-control labelMrtgCalc" placeholder="e.g. 100000">
            <input class="form-control labelMrtgCalcFormatted"
                   placeholder="{{MortgageAmount | currency:'USD':true:'1.2-2'}}" disabled>

            Mortgage Amortization
            <input [(ngModel)]="MortgageAmortizationInMonths" (ngModelChange)="calculateMortgage()"
                   name="MortgageAmortizationInMonths" type="number" min="1" class="form-control labelMrtgCalc"
                   placeholder="e.g. 120 (10 yrs.)">
            <input class="form-control labelMrtgCalcFormatted"
                   placeholder="{{MortgageAmortizationConvertedtoYears}} yrs., {{MortgageAmortizationConvertedtoMonths}} mth."
                   disabled>

          Annual Interest Rate
          <input [(ngModel)]="InterestRate" (ngModelChange)="calculateMortgage()" name="InterestRate" type="number"
                 min="0" max="100" step="0.01" class="form-control labelMrtgCalc" placeholder="e.g. 2.75">
          <input class="form-control labelMrtgCalcFormatted" placeholder="Per Payment: {{InterestRatePerPayment*100}}%"
                 disabled>

          First Payment Date
          <input [(ngModel)]="FirstPaymentDate" (ngModelChange)="calculateMortgage()" name="FirstPaymentDate"
                 type="date" value="{{FirstPaymentDate}}" class="form-control labelMrtgCalc">

            <span class="input-group-addon mortgageDetailsLabel"
                  data-tooltip="Determines the number of payments per year.
            Annually:      1 (once a year)
            Semi-Annually: 2 (twice a year)
            Quarterly:     4 times a year
            Bi-Monthly:    6 times a year
            Monthly:       12 times a year
            Semi-Monthly:  24 times a year (2 times per month)
            Bi-Weekly:     26 times a year (once every 2 weeks)
            Weekly:        52 times a year (once a week)
            Acc Bi-Weekly: 26 times a year. 1/2 of monthly payment
            Acc Weekly:    52 times a year. 1/4 of monthly payment"
                  data-tooltip-position="bottom">Payment Frequency
            <select [(ngModel)]="PaymentFrequency" (ngModelChange)="calculateMortgage()" name="PaymentFrequency"
                    id="formInput119" class="form-control labelMrtgCalc">
              <option>Annually</option>
              <option>Semi-Annually</option>
              <option>Quarterly</option>
              <option>Bi-Monthly</option>
              <option>Monthly</option>
              <option>Semi-Monthly</option>
              <option>Bi-Weekly</option>
              <option>Weekly</option>
              <option>Acc. Bi-Weekly</option>
              <option>Acc. Weekly</option>
            </select>

Enter your extra payment details:

            Extra Payment ($)
            <input [(ngModel)]="ExtraPayment" (ngModelChange)="calculateMortgage()" name="ExtraPayment" type="number"
                   min="0" class="form-control labelMrtgCalc" placeholder="e.g. 100" required>

            Payment Interval
            <input [(ngModel)]="PaymentInterval" (ngModelChange)="calculateMortgage()" name="PaymentInterval"
                   type="number" min="0" class="form-control labelMrtgCalc" placeholder="e.g. 1" required>

            Extra Annual Payment ($)
            <input [(ngModel)]="ExtraAnnualPayment" (ngModelChange)="calculateMortgage()" name="ExtraAnnualPayment"
                   type="number" min="0" class="form-control labelMrtgCalc" z placeholder="e.g. 100" required>

        <button type="button" (click)="calculateMortgage()" class="btn btn-info .btn-lg">Calculate</button>

      </form>

Mortgage Calculation

Results of your mortgage calculation:

        Mortgage Payment

{{MortgagePayment | currency:'USD':true:'1.2-2'}} {{PaymentFrequency}}

        Total Cost of Loan

{{TotalCostofLoan | currency:'USD':true:'1.2-2'}}

        Total Interest Paid

{{InterestPaidforTerm | currency:'USD':true:'1.2-2'}}

        Total # of Payments

{{TotalNumberofPayments}}

        Pay-Off Date

{{PayOffDate}}

{{PayOffDateDiff}}

      <button class="labelgroup" type="text" (click)="confirm()" pButton icon="fa-check" label="Share Your Results"></button>

Mortgage Pie Chart

Mortgage Bar Chart

Results of your mortgage calculation:

Amortization Schedule

      No.
      Due Date
      Payment
      Extra Payment
      Interest
      Principal
      Balance

      {{ member.indexArray }}
      {{ member.dueArray }}
      {{ member.paymentArray | currency:'USD':true:'1.2-2'}}
      {{ member.extraPaymentArray | currency:'USD':true:'1.2-2'}}
      {{ member.interestPaidArray | currency:'USD':true:'1.2-2'}}
      {{ member.principalArray | currency:'USD':true:'1.2-2'}}
      {{ member.balanceArray | currency:'USD':true:'1.2-2'}}

© ETX Software Inc. 2016


text:
- __Splunk - Classifier__
Updated classifier according to new schema.

#### Integrations
- __SplunkPy__
Added defAdded default classifier and mapper.ault classifier and mapper.


text:
from numpy import *
from asap3 import *
from ase.lattice.cubic import FaceCenteredCubic
from ase import data
from asap3.testtools import *
import time

random.seed([114543, 8487])

listcutoff = 4.98409   # The EMT value for Cu
element = "Cu"
element2 = "Ag"
latconst = data.reference_states[data.atomic_numbers[element]]['a']
elementnumber = data.atomic_numbers[element]
element2number = data.atomic_numbers[element2]

def checkenergies(a, a2):
    err = 0
    if 0:
        print "    Checking Cartesian positions"
        err = abs((a.get_positions() - a2.get_positions()).ravel())
        idx = argmax(err)
        at, co = idx/3, idx%3
        print "      err =", err[idx], "at", idx, ":", at, co
        ReportTest("      Worst Cartesian position (%d,%d)" % (at, co),
                   a.get_positions()[at,co],
                   a2.get_positions()[at,co], 1e-10)
    print "    Checking energies"
    e1 = a.get_potential_energies()
    e2 = a2.get_potential_energies()
    err = e1 - e2
    idx = argmax(err)
    ReportTest("      Worst energy (%s)" % (idx,), e1[idx], e2[idx], 1e-5)

for i in range(10):
    print
print_version(1)
#print "RandomArray seeds:", RandomArray.get_seed()
if len(sys.argv) >= 2 and sys.argv[1] == '--pbc':
    if len(sys.argv) < 3:
        raise ValueError("No argument to --pbc")
    pbcch = sys.argv[2]
    if len(pbcch) != 3:
        raise ValueError("Argument to pbc should be a string of three digits.")
    pbc = []
    for i in (0,1,2):
        pbc.append(int(pbcch[i]))
    print "Periodic boundary conditions forced!"
else:
    pbc = tuple(random.randint(0,2,3))
print "Periodic boundaries:", pbc

#Verbose(1)

atoms = FaceCenteredCubic(directions=[[1,0,0],[0,1,0],[0,0,1]], size=(10,10,10),
                          symbol=element, pbc=pbc)
atoms2 = atoms.copy()
atoms = MonteCarloAtoms(atoms)
print "Number of atoms:", len(atoms)
# Replace 10% of the atoms with element2
newz = where(greater(random.random((len(atoms),)), 0.9),
             element2number, elementnumber)
atoms.set_atomic_numbers(newz)
atoms2.set_atomic_numbers(newz)

atoms.set_calculator(MonteCarloEMT())
atoms2.set_calculator(EMT())
atoms.get_potential_energy()

for e in ((element,elementnumber), (element2,element2number)):
    print ("Number of %s atoms (Z=%d): %d"
           % (e[0], e[1], sum(equal(atoms.get_atomic_numbers(), e[1]))))

print
print "Testing perturbations of single atoms"

magnarr = array((0.0, 0.01, 0.1, 1.0, 3.0, 10.0))
numarr = array((1, 3, 10, len(atoms)/2, -3))
pick1 = argsort(random.random((len(magnarr),)))
for magn in take(magnarr, pick1):
    pick2 = argsort(random.random((len(numarr),)))
    for number in take(numarr, pick2):
        # Pick number random atoms.
        if number < 0:
            # Find N neighboring atoms and perturb them
            number = -number
            nblist = atoms.get_calculator().get_neighborlist()
            n = 0
            while len(nblist[n]) < number:
                n += 1
            pick = concatenate([array((n,)), nblist[n][:number-1]])
            del nblist
        else:
            pick = argsort(random.random((len(atoms),)))[:number]
        if number > 15:
            s = "<<< %s atoms >>>" % (number,)
        else:
            s = str(list(pick))
        print "  dr = %.3f: %d atom(s): %s" % (magn, number, s)
        for i in pick:
            dr = random.standard_normal(3)
            dr *= magn/sqrt(dot(dr,dr))
            atom = atoms[i]
            atom.position = atom.position + dr
            atom = atoms2[i]
            atom.position = atom.position + dr

        checkenergies(atoms, atoms2)

print
print "Testing alchemy"

pick2 = argsort(random.random((len(numarr),)))
for number in take(numarr, pick2):
    # Pick number random atoms.
    if number < 0:
        # Find N neighboring atoms and perturb them
        number = -number
        nblist = atoms.get_calculator().get_neighborlist()
        n = 0
        while len(nblist[n]) < number:
            n += 1
        pick = concatenate([array((n,)), nblist[n][:number-1]])
        del nblist
    else:
        pick = argsort(random.random((len(atoms),)))[:number]
    if number > 15:
        s = "<<< %s atoms >>>" % (number,)
    else:
        s = str(list(pick))
        print "  Alchemy, %d atoms: %s" % (number, s)
        for i in pick:
            atom = atoms[i]
            atom2 = atoms2[i]
            z = atom.number
            assert z == atom2.number
            if (z == elementnumber):
                atom.number = element2number
                atom2.number = element2number
            else:
                assert z == element2number
                atom.number = elementnumber
                atom2.number = elementnumber
        checkenergies(atoms, atoms2)

ReportTest.Summary()


text:
#ifndef __SOUND_MIXART_HWDEP_H
#define __SOUND_MIXART_HWDEP_H

#include <sound/hwdep.h>

#define readl_be(x) be32_to_cpu(__raw_readl(x))
#define writel_be(data,addr) __raw_writel(cpu_to_be32(data),addr)

#define readl_le(x) le32_to_cpu(__raw_readl(x))
#define writel_le(data,addr) __raw_writel(cpu_to_le32(data),addr)

#define MIXART_MEM(mgr,x)	((mgr)->mem[0].virt + (x))
#define MIXART_REG(mgr,x)	((mgr)->mem[1].virt + (x))

/* Daughter board Type */
#define DAUGHTER_TYPE_MASK     0x0F
#define DAUGHTER_VER_MASK      0xF0
#define DAUGHTER_TYPEVER_MASK  (DAUGHTER_TYPE_MASK|DAUGHTER_VER_MASK)

#define MIXART_DAUGHTER_TYPE_NONE     0x00
#define MIXART_DAUGHTER_TYPE_COBRANET 0x08
#define MIXART_DAUGHTER_TYPE_AES      0x0E

#define MIXART_BA0_SIZE 	(16 * 1024 * 1024) /* 16M */
#define MIXART_BA1_SIZE 	(4  * 1024)        /* 4k */

/*
 * -----------BAR 0 --------------------------------------------------------------------------------------------------------
 */
#define  MIXART_PSEUDOREG                          0x2000                    /* base address for pseudoregister */

#define  MIXART_PSEUDOREG_BOARDNUMBER              MIXART_PSEUDOREG+0        /* board number */

/* perfmeter (available when elf loaded)*/
#define  MIXART_PSEUDOREG_PERF_STREAM_LOAD_OFFSET  MIXART_PSEUDOREG+0x70     /* streaming load */
#define  MIXART_PSEUDOREG_PERF_SYSTEM_LOAD_OFFSET  MIXART_PSEUDOREG+0x78     /* system load (reference)*/
#define  MIXART_PSEUDOREG_PERF_MAILBX_LOAD_OFFSET  MIXART_PSEUDOREG+0x7C     /* mailbox load */
#define  MIXART_PSEUDOREG_PERF_INTERR_LOAD_OFFSET  MIXART_PSEUDOREG+0x74     /* interrupt handling  load */

/* motherboard xilinx loader info */
#define  MIXART_PSEUDOREG_MXLX_BASE_ADDR_OFFSET    MIXART_PSEUDOREG+0x9C     /* 0x00600000 */
#define  MIXART_PSEUDOREG_MXLX_SIZE_OFFSET         MIXART_PSEUDOREG+0xA0     /* xilinx size in bytes */
#define  MIXART_PSEUDOREG_MXLX_STATUS_OFFSET       MIXART_PSEUDOREG+0xA4     /* status = EMBEBBED_STAT_XXX */

/* elf loader info */
#define  MIXART_PSEUDOREG_ELF_STATUS_OFFSET        MIXART_PSEUDOREG+0xB0     /* status = EMBEBBED_STAT_XXX */

/*
*  after the elf code is loaded, and the flowtable info was passed to it,
*  the driver polls on this address, until it shows 1 (presence) or 2 (absence)
*  once it is non-zero, the daughter board type may be read
*/
#define  MIXART_PSEUDOREG_DBRD_PRESENCE_OFFSET     MIXART_PSEUDOREG+0x990

/* Global info structure */
#define  MIXART_PSEUDOREG_DBRD_TYPE_OFFSET         MIXART_PSEUDOREG+0x994    /* Type and version of daughterboard  */

/* daughterboard xilinx loader info */
#define  MIXART_PSEUDOREG_DXLX_BASE_ADDR_OFFSET    MIXART_PSEUDOREG+0x998    /* get the address here where to write the file */
#define  MIXART_PSEUDOREG_DXLX_SIZE_OFFSET         MIXART_PSEUDOREG+0x99C    /* xilinx size in bytes */
#define  MIXART_PSEUDOREG_DXLX_STATUS_OFFSET       MIXART_PSEUDOREG+0x9A0    /* status = EMBEBBED_STAT_XXX */

/*  */
#define  MIXART_FLOWTABLE_PTR                      0x3000                    /* pointer to flow table */

/* mailbox addresses  */

/* message DRV -> EMB */
#define MSG_INBOUND_POST_HEAD       0x010008	/* DRV posts MF + increment4 */
#define	MSG_INBOUND_POST_TAIL       0x01000C	/* EMB gets MF + increment4 */
/* message EMB -> DRV */
#define	MSG_OUTBOUND_POST_TAIL      0x01001C	/* DRV gets MF + increment4 */
#define	MSG_OUTBOUND_POST_HEAD      0x010018	/* EMB posts MF + increment4 */
/* Get Free Frames */
#define MSG_INBOUND_FREE_TAIL       0x010004	/* DRV gets MFA + increment4 */
#define MSG_OUTBOUND_FREE_TAIL      0x010014	/* EMB gets MFA + increment4 */
/* Put Free Frames */
#define MSG_OUTBOUND_FREE_HEAD      0x010010	/* DRV puts MFA + increment4 */
#define MSG_INBOUND_FREE_HEAD       0x010000    /* EMB puts MFA + increment4 */

/* firmware addresses of the message fifos */
#define MSG_BOUND_STACK_SIZE        0x004000    /* size of each following stack */
/* posted messages */
#define MSG_OUTBOUND_POST_STACK     0x108000    /* stack of messages to the DRV */
#define MSG_INBOUND_POST_STACK      0x104000    /* stack of messages to the EMB */
/* available empty messages */
#define MSG_OUTBOUND_FREE_STACK     0x10C000    /* stack of free enveloped for EMB */
#define MSG_INBOUND_FREE_STACK      0x100000    /* stack of free enveloped for DRV */

/* defines for mailbox message frames */
#define MSG_FRAME_OFFSET            0x64
#define MSG_FRAME_SIZE              0x6400
#define MSG_FRAME_NUMBER            32
#define MSG_FROM_AGENT_ITMF_OFFSET  (MSG_FRAME_OFFSET + (MSG_FRAME_SIZE * MSG_FRAME_NUMBER))
#define MSG_TO_AGENT_ITMF_OFFSET    (MSG_FROM_AGENT_ITMF_OFFSET + MSG_FRAME_SIZE)
#define MSG_HOST_RSC_PROTECTION     (MSG_TO_AGENT_ITMF_OFFSET + MSG_FRAME_SIZE)
#define MSG_AGENT_RSC_PROTECTION    (MSG_HOST_RSC_PROTECTION + 4)

/*
 * -----------BAR 1 --------------------------------------------------------------------------------------------------------
 */

/* interrupt addresses and constants */
#define MIXART_PCI_OMIMR_OFFSET                 0x34    /* outbound message interrupt mask register */
#define MIXART_PCI_OMISR_OFFSET                 0x30    /* outbound message interrupt status register */
#define MIXART_PCI_ODBR_OFFSET                  0x60    /* outbound doorbell register */

#define MIXART_BA1_BRUTAL_RESET_OFFSET          0x68    /* write 1 in LSBit to reset board */

#define MIXART_HOST_ALL_INTERRUPT_MASKED        0x02B   /* 0000 0010 1011 */
#define MIXART_ALLOW_OUTBOUND_DOORBELL          0x023   /* 0000 0010 0011 */
#define MIXART_OIDI                             0x008   /* 0000 0000 1000 */

int snd_mixart_setup_firmware(struct mixart_mgr *mgr);

#endif /* __SOUND_MIXART_HWDEP_H */


text:
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
 * Copyright (c) 2008-2014 Yubico AB
 * Copyright (c) 2010 Tollef Fog Heen <tfheen@err.no>
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 *
 *     * Redistributions of source code must retain the above copyright
 *       notice, this list of conditions and the following disclaimer.
 *
 *     * Redistributions in binary form must reproduce the above
 *       copyright notice, this list of conditions and the following
 *       disclaimer in the documentation and/or other materials provided
 *       with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>

#include <ykpers.h>
#include <ykdef.h>
#include <ykpers-version.h>

#include "ykpers-args.h"

int main(int argc, char **argv)
{
	FILE *inf = NULL; const char *infname = NULL;
	FILE *outf = NULL; const char *outfname = NULL;
	int data_format = YKP_FORMAT_LEGACY;
	bool verbose = false;
	char keylocation = 0;
	bool use_access_code = false;
	unsigned char access_code[256];
	unsigned char scan_codes[sizeof(SCAN_MAP)];
	YK_KEY *yk = 0;
	YKP_CONFIG *cfg = ykp_alloc();
	YK_STATUS *st = ykds_alloc();
	bool autocommit = false;
	char data[1024];
	bool dry_run = false;

	/* Options */
	char oathid[128] = {0};
	char ndef_string[128] = {0};
	char ndef_type = 0;
	unsigned char usb_mode = 0;
	unsigned char cr_timeout = 0;
	unsigned short autoeject_timeout = 0;
	int num_modes_seen = 0;
	bool zap = false;
	int key_index = 0;

	/* Assume the worst */
	bool error = true;
	int exit_code = 0;

	int c;

	ykp_errno = 0;
	yk_errno = 0;

	while((c = getopt(argc, argv, optstring)) != -1) {
		switch(c) {
			case 'h':
				fputs(usage, stderr);
				exit(0);
			case 'N':
				key_index = atoi(optarg);
				break;
			case 'V':
				fputs(YKPERS_VERSION_STRING "\n", stderr);
				return 0;
			case ':':
				switch(optopt) {
					case 'S':
						continue;
					case 'a':
						continue;
				}
				fprintf(stderr, "Option %c requires an argument.\n", optopt);
				exit(1);
				break;
			default:
				continue;
		}
	}
	optind = 1;

	if (!yk_init()) {
		exit_code = 1;
		goto err;
	}

	if (!(yk = yk_open_key(key_index))) {
		exit_code = 1;
		goto err;
	}

	if (!yk_get_status(yk, st)) {
		exit_code = 1;
		goto err;
	}

	printf("Firmware version %d.%d.%d Touch level %d ",
	       ykds_version_major(st),
	       ykds_version_minor(st),
	       ykds_version_build(st),
	       ykds_touch_level(st));
	if (ykds_pgm_seq(st))
		printf("Program sequence %d\n",
		       ykds_pgm_seq(st));
	else
		printf("Unconfigured\n");

	if (!(yk_check_firmware_version2(st))) {
		if (yk_errno == YK_EFIRMWARE) {
			printf("Unsupported firmware revision - some "
			       "features may not be available\n"
			       "Please see \n"
			       "https://developers.yubico.com/yubikey-personalization/doc/Compatibility.html\n"
			       "for more information.\n");
		} else {
			goto err;
		}
	}

	/* Parse all arguments in a testable way */
	if (! args_to_config(argc, argv, cfg, oathid,
			     &infname, &outfname,
			     &data_format, &autocommit,
			     st, &verbose, &dry_run,
			     access_code, &use_access_code,
			     &keylocation, &ndef_type, ndef_string,
			     &usb_mode, &zap, scan_codes, &cr_timeout,
			     &autoeject_timeout, &num_modes_seen, &exit_code)) {
		goto err;
	}

	if (oathid[0] != 0) {
		set_oath_id(oathid, cfg, yk, st);
	}

	if (verbose && (ykds_version_major(st) > 2 ||
			(ykds_version_major(st) == 2 &&
			 ykds_version_minor(st) >= 2) ||
			(ykds_version_major(st) == 2 && // neo has serial functions
			 ykds_version_minor(st) == 1 &&
			 ykds_version_build(st) >= 4))) {
		unsigned int serial;
		if (! yk_get_serial(yk, 0, 0, &serial)) {
			printf ("Failed to read serial number (serial-api-visible disabled?).\n");

		} else {
			printf ("Serial number : %i\n", serial);
		}
	}

	printf ("\n");

	if (infname) {
		if (strcmp(infname, "-") == 0)
			inf = stdin;
		else
			inf = fopen(infname, "r");
		if (inf == NULL) {
			fprintf(stderr,
				"Couldn't open %s for reading: %s\n",
				infname,
				strerror(errno));
			exit_code = 1;
			goto err;
		}
	}

	if (outfname) {
		if (strcmp(outfname, "-") == 0)
			outf = stdout;
		else
			outf = fopen(outfname, "w");
		if (outf == NULL) {
			fprintf(stderr,
				"Couldn't open %s for writing: %s\n",
				outfname,
				strerror(errno));
			exit(1);
		}
	}

	if (inf) {
		if(!ykp_clear_config(cfg))
			goto err;
		if(!fread(data, 1, 1024, inf))
			goto err;
		if (!ykp_import_config(cfg, data, strlen(data), data_format))
			goto err;
	}
	if (! zap && (ykp_command(cfg) == SLOT_CONFIG || ykp_command(cfg) == SLOT_CONFIG2)) {
		int key_bytes = ykp_get_supported_key_length(cfg);
		char keybuf[42];
		size_t keylen;
		if(keylocation == 2) {
			if(key_bytes == 20) {
				fprintf(stderr, " HMAC key, 20 bytes (40 characters hex) : ");
			} else {
				fprintf(stderr, " AES key, 16 bytes (32 characters hex) : ");
			}
			fflush(stderr);
			if(!fgets(keybuf, sizeof(keybuf), stdin)) {
				printf("error?\n");
				perror ("fgets");
				exit_code = 1;
				goto err;
			}
			keylen = strnlen(keybuf, sizeof(keybuf));
			if(keybuf[keylen - 1] == '\n') {
				keybuf[keylen - 1] = '\0';
			}
			if(key_bytes == 20) {
				if(ykp_HMAC_key_from_hex(cfg, keybuf)) {
					goto err;
				}
			} else {
				if(ykp_AES_key_from_hex(cfg, keybuf)) {
					goto err;
				}
			}
		} else if(keylocation == 0) {
			const char *random_places[] = {
				"/dev/srandom",
				"/dev/urandom",
				"/dev/random",
				0
			};
			const char **random_place;
			size_t read_bytes = 0;

			for (random_place = random_places; *random_place; random_place++) {
				FILE *random_file = fopen(*random_place, "r");
				if (random_file) {
					read_bytes = 0;

					while (read_bytes < key_bytes) {
						size_t n = fread(&keybuf[read_bytes], 1,
								key_bytes - read_bytes, random_file);
						read_bytes += n;
					}

					fclose(random_file);
					break;
				}
			}
			if(read_bytes < key_bytes) {
				ykp_errno = YKP_ENORANDOM;
				goto err;
			}
			if(key_bytes == 20) {
				if(ykp_HMAC_key_from_raw(cfg, keybuf)) {
					goto err;
				}
			} else {
				if(ykp_AES_key_from_raw(cfg, keybuf)) {
					goto err;
				}
			}
		}
	}

	if (outf) {
		if(!(ykp_export_config(cfg, data, 1024, data_format))) {
			goto err;
		}
		if(!(fwrite(data, 1, strlen(data), outf))) {
			goto err;
		}
	} else {
		char commitbuf[256]; size_t commitlen;

		if (ykp_command(cfg) == SLOT_SWAP) {
			fprintf(stderr, "Configuration in slot 1 and 2 will be swapped\n");
		} else if(ykp_command(cfg) == SLOT_NDEF || ykp_command(cfg) == SLOT_NDEF2) {
			fprintf(stderr, "New NDEF will be written as:\n%s\n", ndef_string);
		} else if(ykp_command(cfg) == SLOT_DEVICE_CONFIG) {
			fprintf(stderr, "The USB mode will be set to: 0x%x\n", usb_mode);
			if(num_modes_seen > 1) {
				fprintf(stderr, "The challenge response timeout will be set to: %d\n", cr_timeout);
				if(num_modes_seen > 2) {
					fprintf(stderr, "The smartcard autoeject timeout will be set to: %d\n", autoeject_timeout);
				}
			}
		} else if(ykp_command(cfg) == SLOT_SCAN_MAP) {
			fprintf(stderr, "A new scanmap will be written.\n");
		} else if(zap) {
			fprintf(stderr, "Configuration in slot %d will be deleted\n", ykp_config_num(cfg));
		} else {
			if (ykp_command(cfg) == SLOT_CONFIG || ykp_command(cfg) == SLOT_CONFIG2) {
				fprintf(stderr, "Configuration data to be written to key configuration %d:\n\n", ykp_config_num(cfg));
			} else {
				fprintf(stderr, "Configuration data to be updated in key configuration %d:\n\n", ykp_command(cfg) == SLOT_UPDATE1 ? 1 : 2);
			}
			ykp_export_config(cfg, data, 1024, YKP_FORMAT_LEGACY);
			fwrite(data, 1, strlen(data), stderr);
		}
		fprintf(stderr, "\nCommit? (y/n) [n]: ");
		if (autocommit) {
			strcpy(commitbuf, "yes");
			puts(commitbuf);
		} else {
			if (!fgets(commitbuf, sizeof(commitbuf), stdin))
			{
				perror ("fgets");
				goto err;
			}
		}
		commitlen = strlen(commitbuf);
		if (commitbuf[commitlen - 1] == '\n')
			commitbuf[commitlen - 1] = '\0';
		if (strcmp(commitbuf, "y") == 0
		    || strcmp(commitbuf, "yes") == 0) {
			exit_code = 2;

			if (verbose)
				printf("Attempting to write configuration to the yubikey...");
			if (dry_run) {
				printf("Not writing anything to key due to dry_run requested.\n");
			}
			else if(ykp_command(cfg) == SLOT_NDEF || ykp_command(cfg) == SLOT_NDEF2) {
				YK_NDEF *ndef = ykp_alloc_ndef();
				int confnum = 1;
				int res = 0;
				if(ndef_type == 'U') {
					res = ykp_construct_ndef_uri(ndef, ndef_string);
				} else if(ndef_type == 'T') {
					res = ykp_construct_ndef_text(ndef, ndef_string, "en", false);
				}
				if(!res) {
					if(verbose) {
						printf(" failure to construct ndef\n");
					}
					goto err;
				}
				if(use_access_code) {
					if(!ykp_set_ndef_access_code(ndef, access_code)) {
						if(verbose) {
							printf(" failure to set ndef accesscode\n");
						}
						goto err;
					}
				}
				if(ykp_command(cfg) == SLOT_NDEF2) {
					confnum = 2;
				}
				if (!yk_write_ndef2(yk, ndef, confnum)) {
					if (verbose)
						printf(" failure to write ndef\n");
					goto err;
				}
				ykp_free_ndef(ndef);
			} else if(ykp_command(cfg) == SLOT_DEVICE_CONFIG) {
				YK_DEVICE_CONFIG *device_config = ykp_alloc_device_config();
				ykp_set_device_mode(device_config, usb_mode);
				if(num_modes_seen > 1) {
					ykp_set_device_chalresp_timeout(device_config, cr_timeout);
					if(num_modes_seen > 2) {
						ykp_set_device_autoeject_time(device_config, autoeject_timeout);
					}
				}

				if((usb_mode & 0xf) == MODE_CCID || (usb_mode & 0xf) == MODE_U2F ||
						(usb_mode & 0xf) == MODE_U2F_CCID) {
					fprintf(stderr, "WARNING: Changing mode will require you to use another tool (ykneomgr or u2f-host) to switch back if OTP mode is disabled, really commit? (y/n) [n]: ");
					if (autocommit) {
						strcpy(commitbuf, "yes");
						puts(commitbuf);
					} else {
						if (!fgets(commitbuf, sizeof(commitbuf), stdin))
						{
							perror ("fgets");
							goto err;
						}
					}
					commitlen = strlen(commitbuf);
					if (commitbuf[commitlen - 1] == '\n')
						commitbuf[commitlen - 1] = '\0';
					if (strcmp(commitbuf, "y") != 0
							&& strcmp(commitbuf, "yes") != 0) {
						exit_code = 0;
						error = false;
						goto err;
					}
				}

				if(!yk_write_device_config(yk, device_config)) {
					if(verbose)
						printf(" failure\n");
					goto err;
				}
				ykp_free_device_config(device_config);

			} else if(ykp_command(cfg) == SLOT_SCAN_MAP) {
				if(!yk_write_scan_map(yk, scan_codes)) {
					if(verbose)
						printf(" failure\n");
					goto err;
				}
			} else {
				YK_CONFIG *ycfg = NULL;
				/* if we're deleting a slot we send the configuration as NULL */
				if (!zap) {
					ycfg = ykp_core_config(cfg);
				}
				if (!yk_write_command(yk,
							ycfg, ykp_command(cfg),
							use_access_code ? access_code : NULL)) {
					if (verbose)
						printf(" failure\n");
					goto err;
				}
			}

			if (verbose && !dry_run)
				printf(" success\n");
		}
	}

	exit_code = 0;
	error = false;

err:
	if (error) {
		report_yk_error();
	}

	if (st)
		free(st);
	if (inf)
		fclose(inf);
	if (outf)
		fclose(outf);

	if (yk && !yk_close_key(yk)) {
		report_yk_error();
		exit_code = 2;
	}

	if (!yk_release()) {
		report_yk_error();
		exit_code = 2;
	}

	if (cfg)
		ykp_free_config(cfg);

	exit(exit_code);
}


text:
import sys, decimal

from twisted.python import log
from twisted.internet import reactor
from twisted.web.server import Site
from twisted.web.static import File

from autobahn.websocket import listenWS
from autobahn.wamp import exportRpc, \
                          WampServerFactory, \
                          WampServerProtocol

class CalculatorServerProtocol(WampServerProtocol):

   def onSessionOpen(self):
      self.registerForRpc(self, "http://example.com/simple/calculator#")
      self.clear()

   def clear(self, arg = None):
      self.op = None
      self.current = decimal.Decimal(0)

   @exportRpc
   def calc(self, arg):

      op = arg["op"]

      if op == "C":
         self.clear()
         return str(self.current)

      num = decimal.Decimal(arg["num"])
      if self.op:
         if self.op == "+":
            self.current += num
         elif self.op == "-":
            self.current -= num
         elif self.op == "*":
            self.current *= num
         elif self.op == "/":
            self.current /= num
         self.op = op
      else:
         self.op = op
         self.current = num

      res = str(self.current)
      if op == "=":
         self.clear()

      return res

if __name__ == '__main__':

   decimal.getcontext().prec = 20

   if len(sys.argv) > 1 and sys.argv[1] == 'debug':
      log.startLogging(sys.stdout)
      debug = True
   else:
      debug = False

   factory = WampServerFactory("ws://localhost:9000", debugWamp = debug)
   factory.protocol = CalculatorServerProtocol
   factory.setProtocolOptions(allowHixie76 = True)
   listenWS(factory)

   webdir = File(".")
   web = Site(webdir)
   reactor.listenTCP(8080, web)

   reactor.run()


text:
package space.npstr.sqlsauce.jda.listeners;

import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.User;

/**
 * Created by napster on 03.08.18.
 */
public interface CacheableUser<S> extends Cacheable<S> {

    /**
     * Set whatever values are necessary from a JDA user.
     */
    S set(User user);

    /**
     * Set whatever values are necessary from a JDA member.
     */
    S set(Member member);
}


text:
package pt.ist.fenixframework;

import pt.ist.fenixframework.pstm.VBox;
import pt.ist.fenixframework.pstm.RelationList;
import pt.ist.fenixframework.pstm.OJBFunctionalSetWrapper;
import pt.ist.fenixframework.ValueTypeSerializationGenerator.*;

public class ValueTypeSerializationGenerator {

    // VT: TxNumber
    public static class Serialized$TxNumber implements java.io.Serializable {
        private static final long serialVersionUID = 1L;
        private java.lang.Long pt_ist_fenixframework_TxNumber_externalize;
        private  Serialized$TxNumber(pt.ist.fenixframework.TxNumber obj) {
            this.pt_ist_fenixframework_TxNumber_externalize = (java.lang.Long)pt.ist.fenixframework.TxNumber.externalize(obj);

        }

    }
    public static Serialized$TxNumber serialize$TxNumber(pt.ist.fenixframework.TxNumber obj) {
        return (obj == null) ? null : new Serialized$TxNumber(obj);
    }
    public static pt.ist.fenixframework.TxNumber deSerialize$TxNumber(Serialized$TxNumber obj) {
        return (obj == null) ? null : (pt.ist.fenixframework.TxNumber)pt.ist.fenixframework.TxNumber.internalize(obj.pt_ist_fenixframework_TxNumber_externalize);
    }

}


text:
var unprefixRegEx = /^(webkit|moz|ms|o|Webkit|Moz|MS|O)(?=[A-Z])/;
var cache = {};

/**
 * Remove any potential vendor prefixes from a property name.
 *
 * @param {String} prop
 * @returns {String}
 */
export default function getUnprefixedPropName(prop) {
  var result = cache[prop];
  if (result) return result;

  result = prop.replace(unprefixRegEx, '');

  if (result !== prop) {
    result = result[0].toLowerCase() + result.slice(1);
  }

  cache[prop] = result;

  return result;
}


text:
<?php
	interface sgbdInterface
	{
		/*public function newPK(); // must return the value to be inserted on Primary Keys
		public function insert(); //
		public function update(); //
		public function select(); //
		public function delete(); //
		public function create(); // */
	}
	class SGBD// implements sgbdInterface
	{
		public $name= '';
		public $sqlBase= '';
		public $execute= '';

		public function createTable($con, $tb)
		{
			echo " >>>>>>>>>>>>>>>>> CRIANDO A TABELA ".$tb->name;
			$this->execute->query($con, $tb->DDL);
			return $this->execute->query($con, $tb->DDL);
		}

		public function __construct($SGBD)
		{
			$this->name= $SGBD;
			include('sgbds/'.$SGBD.'.php');
			$this->execute= new $SGBD();
		}
		public function getSGBD()
		{
			return $this->execute;
		}
	}
?>


text:
import { Dimensions } from 'react-native'

export default {
  window: {
    width: Dimensions.get( 'window' ).width,
    height: Dimensions.get( 'window' ).height,
  },
}


text:
package com.amazonaws.services.dynamodbv2.model;

import javax.annotation.Generated;

/**
 *
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public enum ReturnItemCollectionMetrics {

    SIZE("SIZE"),
    NONE("NONE");

    private String value;

    private ReturnItemCollectionMetrics(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return this.value;
    }

    /**
     * Use this in place of valueOf.
     *
     * @param value
     *        real value
     * @return ReturnItemCollectionMetrics corresponding to the value
     *
     * @throws IllegalArgumentException
     *         If the specified value does not map to one of the known values in this enum.
     */
    public static ReturnItemCollectionMetrics fromValue(String value) {
        if (value == null || "".equals(value)) {
            throw new IllegalArgumentException("Value cannot be null or empty!");
        }

        for (ReturnItemCollectionMetrics enumEntry : ReturnItemCollectionMetrics.values()) {
            if (enumEntry.toString().equals(value)) {
                return enumEntry;
            }
        }

        throw new IllegalArgumentException("Cannot create enum from " + value + " value!");
    }
}


text:
<?php

namespace jvwp\admin\pages;

abstract class AdminSubmenuPage extends AdminPage
{

    private $parentSlug;

    function __construct ($parentSlug, $pageTitle, $menuTitle, $capability, $menuSlug)
    {
        parent::__construct($pageTitle, $menuTitle, $capability, $menuSlug);
        $this->parentSlug = $parentSlug;
    }

    /**
     * Invokes the WordPress function
add_submenu_page

     */
    public function addPage ()
    {
        add_submenu_page($this->parentSlug, $this->pageTitle, $this->menuTitle, $this->capability, $this->menuSlug, $this->getDisplayFunction());
    }
}


text:
package com.myproject;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class UrlUtils {
    public static InputStream download(String url, FoundCallback<String> callback) {
        try {
            URL myUrl = new URL(url);
            HttpURLConnection connection = (HttpURLConnection) myUrl.openConnection();
            connection.setRequestMethod("GET");
            connection.setUseCaches(false);
            connection.setDoInput(true);
            connection.setDoOutput(false);

            connection.connect();

            int responseCode = connection.getResponseCode();
            if (responseCode >= 400 && responseCode < 600) {
                throw new RuntimeException("Not a 200 nor 300 status, but a " + responseCode);
            }

            InputStream inputStream = connection.getInputStream();

            if (callback != null && connection.getHeaderField("Content-Type").startsWith("text/html")) {
                processHtml(download(url, null), callback);
            }

            return inputStream;
        } catch (MalformedURLException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

    private static void processHtml(InputStream inputStream, FoundCallback<String> callback) throws IOException {
        String regex = "\\b(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]";
        Pattern pattern = Pattern.compile(regex);

        BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));

        String line;
        while ((line = reader.readLine()) != null) {
            Matcher matcher = pattern.matcher(line);
            while (matcher.find()) {
                callback.found(matcher.group());
            }
        }
    }

    public static interface FoundCallback<F> {
        void found(F element);
    }
}


text:
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = _default;

var _createUtilityPlugin = _interopRequireDefault(require("../util/createUtilityPlugin"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _default() {
  return function ({
    target,
    ...args
  }) {
    if (target('gridColumnStart') === 'ie11') {
      return;
    }

    (0, _createUtilityPlugin.default)('gridColumnStart', [['col-start', ['gridColumnStart']]])({
      target,
      ...args
    });
  };
}


text:
namespace Construktion.Blueprints.Recursive
{
    using System.Collections;
    using System.Collections.Generic;
    using System.Reflection;
    using Internal;

    public class EnumerableBlueprint : Blueprint
    {
        public bool Matches(ConstruktionContext context) => context.RequestType.GetTypeInfo().IsGenericType &&
                                                            typeof(IEnumerable).IsAssignableFrom(context.RequestType);

        public object Construct(ConstruktionContext context, ConstruktionPipeline pipeline)
        {
            var closedType = context.RequestType.GenericTypeArguments[0];

            var items = (IList)typeof(List<>).NewGeneric(closedType);

            for (var i = 0; i < pipeline.Settings.EnumerableCount; i++)
            {
                var result = pipeline.Send(new ConstruktionContext(closedType));

                items.Add(result);
            }

            return items;
        }
    }
}


text:
@class DVTGradientImageButton, DVTGradientImagePopUpButton, DVTObservingToken, IDEActionStackView, IDEControlGroup, IDESchemeAction, NSArray, NSMutableArray, NSString;

@interface IDEActionRunPhaseSheetController : IDEViewController <NSTableViewDataSource, IDECapsuleListViewDataSource, IDEActionSliceViewControllerDelegate>
{
    IDESchemeAction *_runPhase;
    NSArray *_actionTypeExtensions;
    IDEActionStackView *_actionStackView;
    IDEControlGroup *_controlGroup;
    DVTGradientImagePopUpButton *_addPopUpButton;
    DVTGradientImageButton *_removeButton;
    DVTObservingToken *_actionsObservingToken;
    DVTObservingToken *_actionSelectionObservingToken;
    NSMutableArray *_arrangedActionSliceControllers;
    NSArray *_actionUIExtensions;
    BOOL _isMovingActions;
}

+ (id)defaultViewNibName;
+ (void)initialize;
@property(retain) IDESchemeAction *runPhase; // @synthesize runPhase=_runPhase;
- (void).cxx_destruct;
- (unsigned long long)capsuleListView:(id)arg1 validateDrop:(id)arg2 proposedRow:(long long)arg3;
- (BOOL)capsuleListView:(id)arg1 acceptDrop:(id)arg2 row:(long long)arg3;
- (id)capsuleListView:(id)arg1 pastboardTypesForRowWithIndex:(unsigned long long)arg2;
- (BOOL)capsuleListView:(id)arg1 shouldAllowDragOfRow:(long long)arg2;
- (id)capsuleListView:(id)arg1 viewControllerForRow:(long long)arg2;
- (long long)numberOfObjectsInCapsuleListView:(id)arg1;
- (void)_moveActionFromIndex:(unsigned long long)arg1 toIndex:(long long)arg2;
- (void)deleteActionSlice:(id)arg1;
- (void)deleteSelectedAction:(id)arg1;
- (void)addAction:(id)arg1;
- (id)_mutablePhaseActions;
- (id)_phaseActions;
- (id)_actionsKey;
- (id)_newExecutionActionForType:(id)arg1;
@property(readonly) NSArray *actionTypeExtensions;
- (void)_actionsChanged:(id)arg1;
- (id)newActionSliceViewControllerForAction:(id)arg1;
- (void)_setUpAddMenu;
- (void)primitiveInvalidate;
- (void)awakeFromNib;
- (void)updateBoundContent;
- (void)updateBoundIDEWorkspaceBinding;
- (void)updateBoundIDERunContextBinding;
- (id)dvtExtraBindings;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end


text: define("three",[],function(){}),define("one",["./three"],function(){});


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Give each connection a random weight between min_weight and max_weight</title>

fann_print_error

fann_read_train_from_file

Fann Functions

PHP Manual

fann_randomize_weights

(PECL fann >= 1.0.0)

fann_randomize_weights — Give each connection a random weight between min_weight and max_weight

Description

   bool fann_randomize_weights
    ( resource $ann
   , float $min_weight
   , float $max_weight
   )

   Give each connection a random weight between min_weight and max_weight

   From the beginning the weights are random between -0.1 and 0.1.

Parameters

ann

Neural network resource.

min_weight

      Minimum weight value

max_weight

      Maximum weight value

Return Values

Returns TRUE on success, or FALSE otherwise.

See Also

fann_init_weights() - Initialize the weights using Widrow + Nguyen’s algorithm

fann_print_error

fann_read_train_from_file

Fann Functions

PHP Manual