text:
var p2 = require("p2");
var lastTime = performance.now();
var laserConfig = require("../LaserApiConfig.js").default;
var MasterCanvas = require("../MasterCanvas").default;

var intervalId = null;
var ballSpeed = 250;

var obstacleSizeY = 160;
var obstacleSizeX = 160;
var itemCount = 6;
var planes = [];
const addPlane = function (angle, world, collisionshape) {
  // Create a platform that the ball can bounce on
  var platformShape1 = new p2.Plane();
  var planeBody = new p2.Body({
    mass: 0,
    position: [
      laserConfig.canvasResolution.width,
      laserConfig.canvasResolution.height,
    ],
    angle: angle,
  });

  console.log("created ", platformShape1, planeBody);

  planeBody.addShape(platformShape1);
  world.addBody(planeBody);
  // Create material for the platform
  platformShape1.material = new p2.Material();

  // Create contact material between the two materials.
  // The ContactMaterial defines what happens when the two materials meet.
  // In this case, we use some restitution.
  world.addContactMaterial(
    new p2.ContactMaterial(platformShape1.material, collisionshape.material, {
      restitution: 1.0,
      friction: 0,
      stiffness: Number.MAX_VALUE, // We need infinite stiffness to get exact restitution
    })
  );

  return planeBody;
};
const addObstacle = function (world, collisionshape) {
  // Create a platform that the ball can bounce on
  var obstacleShape = new p2.Box({
    //  position:[-32.5,-32.5]  ,
    width: obstacleSizeX,
    height: obstacleSizeY,
  });
  var obstacleBody = new p2.Body({
    mass: 100,
    velocity: [0, 0],
  });
  console.log("created obstacle", obstacleShape, obstacleBody);

  obstacleBody.addShape(obstacleShape);
  world.addBody(obstacleBody);
  // Create material for the platform
  obstacleShape.material = new p2.Material();

  // Create contact material between the two materials.
  // The ContactMaterial defines what happens when the two materials meet.
  // In this case, we use some restitution.
  world.addContactMaterial(
    new p2.ContactMaterial(obstacleShape.material, collisionshape.material, {
      restitution: 1.0,
      friction: 1,
      stiffness: Number.MAX_VALUE, // We need infinite stiffness to get exact restitution
    })
  );
  return obstacleBody;
};
const obstacles = [];
var timeStep = 1 / 60; // seconds
var circleBody = null;
var circleShape = null;
var world = null;
function onTick() {
  var cTime = performance.now();
  // console.log('diff is ', (cTime - lastTime));
  // The step method moves the bodies forward in time.
  // timestep, delta, subframes
  world.step((cTime - lastTime) / 1000);
  lastTime = cTime;
  //   console.log('ball is ', circleBody);
  render(MasterCanvas.get2dContext());

  //  intervalId = setTimeout(onTick, 25);

  // Print the circle position to console.
  // Could be replaced by a render call.
  //console.log("Circle y position: " + circleBody.position[1]);
  //   physicsBall.style.top = circleBody.position[1];
  //     physicsBall.style.left = circleBody.position[0];
}

function getRandomBallSpeed() {
  return [
    Math.random() > 0.5 ? -ballSpeed : ballSpeed,
    Math.random() > 0.5 ? -ballSpeed : ballSpeed,
  ];
}

var ballRadius = 50;
const init2dPhysics = function (obstacleCount) {
  ///////////////////
  // Create a physics world, where bodies and constraints live
  world = new p2.World({
    gravity: [0, 0],
  });
  console.log("world is ", world);
  // Create an empty dynamic body
  circleBody = new p2.Body({
    mass: 1,
    position: [250, 250],
    velocity: getRandomBallSpeed(),
    angle: 0,
    angularVelocity: 0,
  });
  // Add a circle shape to the body.
  circleShape = new p2.Circle({ radius: ballRadius });
  circleShape.material = new p2.Material();
  circleBody.addShape(circleShape);

  // Remove damping from the ball, so it does not lose energy
  circleBody.damping = 0;
  circleBody.angularDamping = 0;
  circleBody.friction = 1;
  console.log("body is", circleBody);
  // ...and add the body to the world.
  // If we don't add it to the world, it won't be simulated.
  world.addBody(circleBody);

  //  addPlane(0, world, circleShape)
  planes.push(addPlane(0, world, circleShape));
  planes.push(addPlane(Math.PI / 2.0, world, circleShape));
  planes.push(addPlane(Math.PI, world, circleShape));
  planes.push(addPlane(Math.PI + Math.PI / 2.0, world, circleShape));
  //  addPlane(Math.PI, world, circleShape)
  //  addPlane(Math.PI   + Math.PI/2, world, circleShape)
  // To get the trajectories of the bodies,
  // we must step the world forward in time.
  // This is done using a fixed time step size.

  for (var i = 0; i < obstacleCount; i++) {
    obstacles[i] = addObstacle(world, circleShape);
  }

  // The "Game loop". Could be replaced by, for example, requestAnimationFrame.
  //   intervalId = setTimeout(onTick, 25);
  ////////////////
};
function render(canvas2d) {
  canvas2d.save();
  for (var i = 0; i < planes.length; i++) {
    planes[i].position = [
      laserConfig.canvasResolution.width,
      laserConfig.canvasResolution.height,
    ];
  }
  //console.log('canvas size is ', laserConfig.canvasResolution)
  // canvas2d.translate(50, 50)
  for (var i = 0; i < itemCount; i++) {
    //  console.log('rendering obstacle', obstacles [i])
    canvas2d.fillStyle = obstacles[i].color;

    canvas2d.lineWidth = 2;
    canvas2d.strokeStyle = "#00ff88";
    canvas2d.strokeRect(
      obstacles[i].position[0] - obstacleSizeX / 2,
      obstacles[i].position[1] - obstacleSizeY / 2,
      obstacles[i].shapes[0].width,
      obstacles[i].shapes[0].height
    );
  }

  //draw a circle
  canvas2d.beginPath();
  canvas2d.fillStyle = "#0088ff";
  canvas2d.arc(
    circleBody.position[0],
    circleBody.position[1],
    ballRadius,
    0,
    Math.PI * 2,
    true
  );
  canvas2d.closePath();
  canvas2d.fill();

  canvas2d.restore();
  canvas2d.font = "40px Arial  ";
  canvas2d.fillStyle = "#008800";
  canvas2d.textAlign = "right";
  canvas2d.fillText(
    "Current " + pointsTeam1 + " : " + pointsTeam2 + " ",
    laserConfig.canvasResolution.width,
    laserConfig.canvasResolution.height - 20
  );
  canvas2d.textAlign = "left";
  canvas2d.fillText(
    " " + winPointsTeam1 + " : " + winPointsTeam2 + " Matches",
    0,
    laserConfig.canvasResolution.height - 20
  );

  checkBallOutSide();
}
var pointsTeam1 = 0;
var pointsTeam2 = 0;
var winPoints = 3;
var winPointsTeam1 = 0;
var winPointsTeam2 = 0;
function checkBallOutSide() {
  if (circleBody.position[0] < ballRadius * 2) {
    pointsTeam2++;
    circleBody.position = [
      laserConfig.canvasResolution.width / 2,
      laserConfig.canvasResolution.height / 2,
    ];
    circleBody.velocity = getRandomBallSpeed();
  }
  if (
    circleBody.position[0] >
    laserConfig.canvasResolution.width - ballRadius * 2
  ) {
    pointsTeam1++;
    circleBody.position = [
      laserConfig.canvasResolution.width / 2,
      laserConfig.canvasResolution.height / 2,
    ];
    circleBody.velocity = getRandomBallSpeed();
  }

  if (pointsTeam1 >= winPoints) {
    winPointsTeam1++;
    pointsTeam1 = 0;
    pointsTeam2 = 0;
  }
  if (pointsTeam2 >= winPoints) {
    winPointsTeam2++;
    pointsTeam1 = 0;
    pointsTeam2 = 0;
  }
}
export default {
  getObstacle: function (index) {
    return obstacles[index];
  },
  step: onTick,
  init: function (data) {
    if (data) {
      if (data.itemCount) {
        itemCount = data.itemCount;
      }
      if (data.moveSpeed) {
        moveSpeed = data.moveSpeed;
      }
      if (data.obstacleSize) {
        obstacleSizeX = data.obstacleSize * laserConfig.playfieldScale;
        obstacleSizeY = data.obstacleSize * laserConfig.playfieldScale;
      }

      if (data.obstacleSizeX) {
        obstacleSizeX = data.obstacleSizeX * laserConfig.playfieldScale;
      }

      if (data.obstacleSizeY) {
        obstacleSizeY = data.obstacleSizeY * laserConfig.playfieldScale;
      }
      if (data.ballSpeed) {
        ballSpeed = data.ballSpeed;
      }
    }
    lastTime = performance.now();
    init2dPhysics(itemCount);

    circleBody.position = [
      laserConfig.canvasResolution.width / 2,
      laserConfig.canvasResolution.height / 2,
    ];
    circleBody.velocity = getRandomBallSpeed();
    //   console.log('phiscs is', world)
  },
  stop: function () {
    clearInterval(intervalId);
  },

  render: render,
};


text:
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using SharePointPnP.PowerShell.CmdletHelpAttributes;

namespace SharePointPnP.PowerShell.Commands.Branding
{
    [Cmdlet(VerbsLifecycle.Enable, "PnPResponsiveUI")]
    [CmdletAlias("Enable-SPOResponsiveUI")]
    [CmdletHelp("Enables the PnP Responsive UI implementation on a classic SharePoint Site", Category = CmdletHelpCategory.Branding)]
    [CmdletExample(
        Code="PS:> Enable-PnPResponsiveUI",
        SortOrder = 1,
        Remarks="Will upload a CSS file, a JavaScript file and adds a custom action to the root web of the current site collection, enabling the responsive UI on the site collection. The CSS and JavaScript files are located in the style library, in a folder called SP.Responsive.UI.")]

    public class EnableResponsiveUI : SPOWebCmdlet
    {
        [Parameter(Mandatory = false, HelpMessage = "A full URL pointing to an infrastructure site. If specified, it will add a custom action pointing to the responsive UI JS code in that site.")]
        public string InfrastructureSiteUrl;

        protected override void ExecuteCmdlet()
        {
            var site = ClientContext.Site;
            site.EnableResponsiveUI(InfrastructureSiteUrl);
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Pseudocyphellaria crocata var. pulverulenta Gyeln.

### Remarks
null


text:
Developing Content for UI5
=============================

1.  [Control Libraries](#control-libraries)
    1.  [File Structure](#file-structure)
    2.  [The .library file](#the-library-file)
    3.  [library.js file](#libraryjs-file)
    4.  [Translation file (messagebundle.properties) and translation](#translation-file-messagebundleproperties-and-translation)
    5.  [Themes (library.source.less, shared.css, img, img-RTL)](#themes-librarysourceless-sharedcss-img-img-rtl)

2.  [Developing a Control inside a Library](#developing-a-control-inside-a-library)
    1.  [The Control API and Behavior](#the-control-api-and-behavior)
    2.  [The Control Renderer](#the-control-renderer)
    3.  [Control CSS/LESS files](#control-cssless-files)
    4.  [Right-to-Left Support](#right-to-left-support)
    5.  [Test Pages](#test-pages)
    6.  [QUnit Tests](#qunit-tests)

Control Libraries
-----------------

Control libraries are logical packages of UI5 controls. Only controls developed in libraries can make use of the build tools provided by UI5.

### File Structure

This diagram depicts the complete folder structure of a library named "some.lib" containing one control named "SomeControl" (so the full control name is "some.lib.SomeControl"):

``` wiki
some.lib/
+---src/
|   +---some/
|       +---lib/
|           +---themes/
|               +---base/
|                   +---img/
|                       img-RTL/
|                       library.source.less
|                       SomeControl.less
|                   sap_bluecrystal/
|                   +---img/
|                       img-RTL/
|                       library.source.less
|                       SomeControl.less
|           .library
|           library.js
|           messagebundle.properties
|           messagebundle_<any-locale>.properties
|           SomeControl.js
|           SomeControlRenderer.js
+---test/
    +---some/
        +---lib/
            +---SomeControl.html
                qunit/
                +---testsuite.qunit.html
                    SomeControl.qunit.html
                visual/
                +---visual.suite.js
                    SomeControl.spec.js
```

At runtime (and after a build) all libraries are merged into one directory tree, but during development libraries are separated, hence the duplication of the library name, once as folder containing the complete library and twice inside as folder structure for the runtime sources as well as for the test pages.

Below the "themes" folder, there is one directory for each supported theme, with sub-folders for image resources if required (including the right-to-left version). Inside the folders for the themes, there can be any CSS files. The convention is to have one CSS file per control and one "shared.css" file for styles that are not specific to one control, but rather valid for the entire library. The library.source.less files are responsible for making LESS aware of all files that should be combined and how parts of the theme are connected. All CSS files should reside at the same directory level to avoid changing image paths when they are combined to one file in the build step.
 Note: themes can also be in separate theme libraries. For the standard UI5 controls sap\_bluecrystal and sap\_belize are such separate theme libraries. Their internal file structure is identical to control libraries, but when they support several control libraries, all their paths are contained.

The main implementation folder (src/some/lib) contains the implementation of controls and their renderers (they are typically separate when developed in control libraries and resolved by naming convention), the message bundles (translation texts), any other JavaScript files (may be in sub-folders) and two central library files: `.library` contains metadata and `library.js` contains the library declaration, the control list, and any library-level JavaScript.

Finally, below `test/some/lib` there are any test pages for manual testing and pages used during development, and - in the `qunit` sub-folder - the automated unit tests.

### The .library file

The `.library` file is an XML file describing the library and its dependencies, as well as other information required at build time, e.g. related to tests, test coverage and documentation resources. This file is not used by the UI5 runtime (but in the SDK/Demokit for finding the file `docuindex.json` to collect documentation pages).

This is one example file from an existing library:
``` xml
<?xml version="1.0" encoding="UTF-8" ?>
<library xmlns="http://www.sap.com/sap.ui.library.xsd" >

  <name>sap.ui.unified</name>
  <vendor>SAP SE</vendor>
  <copyright>${copyright}</copyright>
  <version>${version}</version>

  <documentation>Unified controls intended for both, mobile and desktop scenarios</documentation>

  <dependencies>
	<dependency>
	  <libraryName>sap.ui.core</libraryName>
	</dependency>
  </dependencies>

  <appData>
	<selenium xmlns="http://www.sap.com/ui5/buildext/selenium" package="com.sap.ui5.selenium.unified" />
	<!-- excludes for the JSCoverage -->
	<jscoverage xmlns="http://www.sap.com/ui5/buildext/jscoverage" >
	  <exclude name="sap.ui.unified.js." />
	</jscoverage>
	<documentation xmlns="http://www.sap.com/ui5/buildext/documentation"
		indexUrl="../../../../test-resources/sap/ui/unified/demokit/docuindex.json"
		resolve="lib" />
  </appData>

</library>
```

### library.js file

The `library.js` file is a central file for each control library that contains the library declaration and any enums, simple types and interfaces present in the library. There can also be additional code and the definition of lazy loading stubs for non-controls.

The most important feature in this file from the perspective of a control developer is the list of controls maintained in the library declaration: all controls must be added there in order to make their constructors available immediately when the library is loaded (so applications only need to require the library, not each control).

One example `library.js` file of a small control library, the `sap.ui.suite` library. It contains two controls (`sap.ui.suite.TaskCircle` and `sap.ui.suite.VerticalProgressIndicator`) and one enum (`sap.ui.suite.TaskCircleColor`). Also note the usage of JSDoc to create the API documentation:
```js

/**
 * Initialization Code and shared classes of library sap.ui.suite.
 */
sap.ui.define(['jquery.sap.global',
	'sap/ui/core/library'], // library dependency
	function(jQuery) {

	"use strict";

	/**
	 * Suite controls library.
	 *
	 * @namespace
	 * @alias sap.ui.suite
	 * @author SAP SE
	 * @version ${version}
	 * @public
	 */

	var thisLib = sap.ui.getCore().initLibrary({
		name : "sap.ui.suite",
		version: "${version}",
		dependencies : ["sap.ui.core"],
		types: [
			"sap.ui.suite.TaskCircleColor"
		],
		interfaces: [],
		controls: [
			"sap.ui.suite.TaskCircle",
			"sap.ui.suite.VerticalProgressIndicator"
		],
		elements: []
	});

	/**
	 * Defined color values for the Task Circle Control
	 *
	 * @version ${version}
	 * @enum {string}
	 * @public
	 */
	thisLib.TaskCircleColor = {

		/**
		 * Red
		 * @public
		 */
		Red : "Red",

		/**
		 * Yellow
		 * @public
		 */
		Yellow : "Yellow",

		/**
		 * Green
		 * @public
		 */
		Green : "Green",

		/**
		 * Default value
		 * @public
		 */
		Gray : "Gray"

	};

	return thisLib;

});
```

### Translation file (messagebundle.properties) and translation

The `messagebundle.properties` file contains all translatable texts used by controls as key-value pairs, with annotations making translator's life easier. Example:

``` wiki
#XACT: ARIA keyboard announcement for standard steps in the Roadmap control ({0} is the label text given by the application)
RDMP_ARIA_STANDARD_STEP={0} To select or deselect, press SPACEBAR
```

In the original UI5 libraries SAP's translation department automatically translates any new texts to almost 40 languages for each release. In custom control libraries the library developer needs to create the `messagebundle_<locale>.properties` file for each supported locale and provide the translation. Locales can be toplevel ones like "en" or two-level ones like "en\_US". UI5 automatically finds the best-suitable language at runtime.

Note the following deviations from the ISO codes, caused by legacy reasons (e.g. by Java):
- iw:		Hebrew (from JDK)
- zh_CN:	Simplified Chinese
- zh_TW:	Traditional Chinese
- zh:		does not exist (like in JDK)
- no:		Norwegian Bokmål
- nn:		not supported (Norwegian Nynorsk)
- nb:		not supported (Norwegian Bokmål)

### Themes (library.source.less, shared.css, img, img-RTL)

The `library.source.less` file is responsible for letting [LESS](http://lesscss.org) know all the CSS files to process. It imports the central LESS files of the sap.ui.core library and also all control CSS/LESS files inside the current library.

The one in the base theme imports `base.less` and `global.less` from the core library (and all existing base CSS files of the controls in this library):
```css
@import "../../../../sap/ui/core/themes/base/base.less";
@import "../../../../sap/ui/core/themes/base/global.less";

@import "ActionListItem.less";
@import "ActionSheet.less";
@import "App.less";
@import "Bar.less";
...
```

The one in the specific theme (here: sap\_bluecrystal) imports the above `library.source.less` from the base theme in this library and `base.less` and `global.less` from the specific theme in the core library (and all existing sap\_bluecrystal CSS files of the controls as well as `shared.css` in this library):
```css
@import "../base/library.source.less";
@import "../../../../sap/ui/core/themes/sap_bluecrystal/base.less";
@import "../../../../sap/ui/core/themes/sap_bluecrystal/global.less";
@import "shared.less";

@import "ActionListItem.less";
...
```
Note that the relative paths, which are going up four levels and then descending into `sap/ui/core/themes/sap_bluecrystal`, do not correspond to the physical file locations of the sources, but to the file tree as it would exist at runtime (where the content of source folders like `sap.ui.core` and `themelib_sap_bluecrystal` is merged into one tree).

`shared.less` is by convention the name of a CSS file for library-level styles. It is handled and imported just like normal control CSS files, the separation is purely for better maintainability.

The `img` folder contains any image resources required by your control.
If an image should be displayed differently (e.g. mirrored) in right-to-left mode, it additionally needs to be stored in the `img-RTL` folder under the same path and name.
When UI5 runs in right-to-left mode, both the mirrored images from `img-RTL` and the non-mirrored images from `img` are loaded.
Whether your image is displayed differently in right-to-left mode depends on the presence of an image with the same name and path in the `img-RTL` folder.
- Image resources which **should not** be mirrored **must not** have a same-name image inside the `img-RTL` folder.
- Image resources which **should** be mirrored **must** have a same-name image inside the `img-RTL` folder.
  To achieve this, simply modify your image resources to fit the desired RTL visuals, and then put them into the `img-RTL` folder using the same name and path..

Developing a Control inside a Library
-------------------------------------

At development time a control consists of three parts:

-   The API and implementation ("behavior")
-   The renderer (creating the HTML)
-   The CSS file(s) (providing the visual design)

### The Control API and Behavior

The main JavaScript file of a control contains the metadata object describing the API (properties, aggregations, events,...) as well as all method implementations reacting to browser events. This is explained in the main [control development documentation](https://sdk.openui5.org/topic/91f1703b6f4d1014b6dd926db0e91070). However, there are three significant differences when a control is developed within a control library:

1.  By convention, the overall control is implemented in an [AMD structure](http://requirejs.org/docs/whyamd.html) ("Asynchronous Module Definition"), so there is a `sap.ui.define` function call wrapping the implementation and passing in all dependencies. Inside the implementation only the passed objects are used, not fully-namespaced global objects. E.g. if a `sap.ui.commons.Button` is required, it is added to the `define` function and the inner code only refers to a local `Button` object. This is to allow asynchronous usage and to conform with many tools depending on this structure.
2.  Usually [the renderer](#the-control-renderer) is not just a static function in the behavior JS file, but a separate JS file. This is technically not mandatory, but a way to keep files smaller and more maintainable.
3.  The documentation written for the API definition and any public methods is significant because it can be automatically extracted and converted into JSDoc documentation pages (this build step is not yet re-implemented with the UI5 Tooling build, though).
4.  To be built and packaged with the library, controls need to be registered in [the library.js file](#libraryjs-file).

#### The AMD syntax

The AMD syntax wraps modules (in this case UI5 controls and other entities) in a function call (`sap.ui.define(...)`). This function takes an array with the names of all required dependencies as first parameter and a function containing the module implementation as second parameter. This second function gets all the dependencies as objects passed in. This allows for clear declaration of all dependencies as well as asynchronous invocation of the module implementation code once the dependencies are all loaded.
```js
sap.ui.define([dependency1Name, dependency2Name,...], function(dependency1, dependency2,...) {
   // module code, using dependency1, dependency2 etc. for the implementation
});
```

One example control implementation using this syntax (but not containing any documentation or further functionality):
```js
sap.ui.define(['jquery.sap.global', './ListItemBase', './library'],
	function(jQuery, ListItemBase, library) {
	"use strict";

	var MyListItem = ListItemBase.extend("sap.m.MyListItem", /** @lends sap.m.MyListItem.prototype */ { metadata : {
		library : "sap.m",
		properties : {}
	}});

	return MyListItem;

}, /* bExport= */ true);
```

You see the two standard dependencies:

-   ```jquery.sap.global``` providing jQuery itself, enriched with additional UI5 plugins
-   ```./library``` providing the library definition in the `library.js` file

as well as another very common dependency, the base class:

-   ```./ListItemBase``` the base class of this specific ListItem type

Other very frequently used dependencies are:

-   ```sap/ui/core/Renderer``` for renderers
-   ```sap/ui/core/Control``` as base class for controls not inheriting from other controls

Single entities contained inside library.js cannot be declared as dependencies.

#### An Example Control Behavior File

While the implementation code is the same as in "notepad controls", some aspects should be handled with additional care when developing re-use controls in control libraries. In the below example you can find some of them:

-   The copyright placeholder is used in controls developed by SAP to inject the Apache license notice and the current years.
-   The AMD syntax wrapper as described above
-   The `"use strict";` statements switching the JavaScript interpreter to ECMAScript 5's [strict mode](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode) (which enforces better JavaScript by disallowing certain features of JavaScript, like undeclared variables, that make the code less robust)
-   Extensive JSDoc documentation that will be converted into the official API documentation
    -   Not only for the control type itself, but also for the properties, aggregations, methods etc.
```js
/*!
 * ${copyright}
 */

// Provides control sap.m.ObjectNumber.
sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control'],
	function(jQuery, library, Control) {
	"use strict";

	/**
	 * Constructor for a new ObjectNumber.
	 *
	 * @param {string} [sId] id for the new control, generated automatically if no id is given
	 * @param {object} [mSettings] initial settings for the new control
	 *
	 * @class
	 * ObjectNumber displays number and number unit properties for an object. The number can be displayed using semantic colors to provide addition meaning about the object to the user.
	 * @extends sap.ui.core.Control
	 * @version ${version}
	 *
	 * @public
	 * @since 1.12
	 * @alias sap.m.ObjectNumber
	 */
	var ObjectNumber = Control.extend("sap.m.ObjectNumber", /** @lends sap.m.ObjectNumber.prototype */ { metadata : {

		library : "sap.m",
		properties : {

			/**
			 * Number field of the object number
			 */
			number : {type : "string", group : "Misc", defaultValue : null},

			/**
			 * Number units qualifier
			 * @deprecated Since version 1.16.1.
			 *
			 * Replaced by unit property due to the number before unit is redundant.
			 */
			numberUnit : {type : "string", group : "Misc", defaultValue : null, deprecated: true},

			/**
			 * Indicates if object number is visible. Invisible object number is not rendered.
			 */
			visible : {type : "boolean", group : "Appearance", defaultValue : true},

			/**
			 * Indicates if the object number should appear emphasized
			 */
			emphasized : {type : "boolean", group : "Appearance", defaultValue : true},

			/**
			 * The object number's value state. Setting this state will cause the number to be rendered in state-specific colors (only blue-crystal theme).
			 */
			state : {type : "sap.ui.core.ValueState", group : "Misc", defaultValue : sap.ui.core.ValueState.None},

			/**
			 * Number units qualifier. If numberUnit and unit are both set, the unit value is used.
			 * @since 1.16.1
			 */
			unit : {type : "string", group : "Misc", defaultValue : null}
		}
	}});

	/**
	 * String to prefix css class for number status to be used in
	 * controler and renderer
	 * @private
	 */
	ObjectNumber.prototype._sCSSPrefixObjNumberStatus = 'sapMObjectNumberStatus';

	/**
	 * API method to set the object number's value state.
	 *
	 * @param {string} sState The Object Number's value state
	 * @public
	 */
	ObjectNumber.prototype.setState = function(sState) {
		//remove the current value state css class
		this.$().removeClass(this._sCSSPrefixObjNumberStatus + this.getState());

		//do suppress rerendering
		this.setProperty("state", sState, true);

		//now set the new css state class
		this.$().addClass(this._sCSSPrefixObjNumberStatus + this.getState());

		return this;
	};

	return ObjectNumber;

});
```

### The Control Renderer

The below is one complete renderer file from an existing control library. It is used to highlight some of the differences in renderers, compared to renderers in "notepad controls":

-   The renderer is typically defined in a file on its own, as a static class (initialized as empty object)
-   The same copyright placeholder (for controls within UI5) and AMD syntax and strict mode settings as used in control behavior files
-   The renderer class has one main method, `render(...)`, getting a RenderManager instance and the control instance to be rendered as arguments
    -   Additional static functions can be created to structure the code or to create reusable functionality that creates chunks of HTML also needed elsewhere (e.g. when controls are capable of re-rendering certain sub-areas without invocation of the normal UI5 rendering mechanism)

The code within the `render()` method is the same as in "notepad controls".
```js
/*!
 * ${copyright}
 */

sap.ui.define(['jquery.sap.global'],
	function(jQuery) {
	"use strict";

	/**
	 * @class NavContainer renderer.
	 * @static
	 */
	var NavContainerRenderer = {
	};

	/**
	 * Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
	 *
	 * @param {sap.ui.core.RenderManager} rm the RenderManager that can be used for writing to the Render-Output-Buffer
	 * @param {sap.ui.core.Control} oControl an object representation of the control that should be rendered
	 */
	NavContainerRenderer.render = function(rm, oControl) {
		// return immediately if control is invisible, do not render any HTML
		if (!oControl.getVisible()) {
			return;
		}

		rm.write("<div");
		rm.writeControlData(oControl);

		rm.addClass("sapMNav");
		rm.addStyle("width", oControl.getWidth());
		rm.addStyle("height", oControl.getHeight());

		if (this.renderAttributes) {
			this.renderAttributes(rm, oControl); // may be used by inheriting renderers, but DO NOT write class or style attributes! Instead, call addClass/addStyle.
		}

		rm.writeClasses();
		rm.writeStyles();

		var sTooltip = oControl.getTooltip_AsString();
		if (sTooltip) {
			rm.writeAttributeEscaped("title", sTooltip);
		}
		rm.write(">"); // div element

		if (this.renderBeforeContent) {
			this.renderBeforeContent(rm, oControl); // hook method; may be used by inheriting renderers
		}

		var oContent = oControl.getCurrentPage();
		if (oContent) {
			rm.renderControl(oContent);
		}

		rm.write("</div>");
	};

	return NavContainerRenderer;

}, /* bExport= */ true);
```

Renderers of controls inheriting from other controls often re-use the parent class' renderer - sometimes the parent rendering is sufficient, sometimes they add some attributes or HTML in certain places. One example for this is the following `sap.ui.commons.ToggleButtonRenderer`. It extends/re-uses the `sap.ui.commons.ButtonRenderer`, but in addition it implements the `renderButtonAttributes` method, which is called by the `ButtonRenderer` in case it is implemented by any subclass. So on top of the normal Button rendering, the ToggleButton adds the "pressed" state to the HTML as an attribute and also adds a CSS class when it is pressed

Note that the `.extend(...)` method used here is different from the normal UI5 inheritance method. This will be changed and made more consistent, so the below code will change slightly.

Documentation omitted to keep this example short:
```js
// Provides default renderer for control sap.ui.commons.ToggleButton
sap.ui.define(['jquery.sap.global', './ButtonRenderer', 'sap/ui/core/Renderer'],
	function(jQuery, ButtonRenderer, Renderer) {
	"use strict";

	var ToggleButtonRenderer = Renderer.extend(ButtonRenderer);

	ToggleButtonRenderer.renderButtonAttributes = function(rm, oToggleButton) {
		var bPressed = oToggleButton.getPressed();

		if (bPressed) {
			rm.addClass("sapMToggleBtnPressed");
		}

		rm.writeAttribute('pressed', bPressed);
	};

	return ToggleButtonRenderer;

}, /* bExport= */ true);
```

### Control CSS/LESS files

Controls developed in libraries can come with their own CSS. The CSS for each control *can* be developed separately (and will be merged), the CSS for the correct theme is automatically loaded by the UI5 core at runtime, and several build steps with additional benefits are available. One of them is [LESS](http://lesscss.org) preprocessing which allows (among other features) the usage of variables.

The UI5 theming concept is based on two-level themes: one "base" theme is the foundation for all "real" themes like "sap\_bluecrystal" And "sap\_hcb". The "real" theme is always the result of appending theme-specific CSS to the base theme CSS. This happens in the UI5 library build. E.g. the "library.css" file for Blue Crystal is created by concatenating all control CSS files in the "themes/base" folder and then all control CSS files in the "themes/sap\_bluecrystal" folder.

The reason for this is that the styling rules contained in CSS files have two different purposes:

1.  making controls *work* properly, according to their functional specification. These usually are independent of the theme and not affected by visual adaptations done by customers.
2.  making controls *look* properly, according to the visual design specification. These are usually different from theme to theme and also likely to be changed by customers.

Examples for 1.) are "z-index" settings, "position:absolute", "box-sizing:border-box" "white-space:nowrap", or "overflow:hidden". Examples for 2.) are paddings and dimensions (other than "100%"), shadows, gradients, and settings for the "border-radius".

The functional settings from 1.) go into the "base" theme, so they are automatically available for all themes. The visual settings from 2.) go into the specific themes like "sap\_bluecrystal".

One special case is whenever LESS variables are used: they are mainly used for colors and colors are very much related to the visual design, so colors normally belong into category 2.). However, when LESS variables are used, every theme can re-define them and even when they are used in the "base" theme CSS, the generated CSS file will automatically have the correct values for each theme! Hence, the following CSS should go into the "base" theme:
```css
.someLibSomeControl {
   color: @sapUiText;
   background-color: @sapUiMediumBG;
   border: 1px solid @sapUiBrand;
}
```

For each theme, this CSS will get the correct colors for text, background and border. Some CSS parameters are only defined by specific themes, they cannot be used in "base" CSS.

If such style inherited from the base theme needs to be changed in rare cases, the specific themes can override it by providing their own CSS with other values.

### Right-to-Left Support

In the UI5 theming concept, RTL support is defined as follows:

-   All controls are styled for LTR in their usual CSS files.
-   Images are stored directly in the img subfolder of the theme or in a subfolder thereof. RTL Images must be in the same location in the img-RTL folder and have the same name as their LTR counterparts.
-   The LESS-based CSS generator provides an RTL flipping algorithm that mirrors the CSS, e.g. it performs the operations like substituting left margins with right margins, converting `padding: 1px 2px 3px 4px;` to `padding: 1px 4px 3px 2px;`, and so on. The algorithm supports most CSS properties, including complex CSS3 properties like transformations. By this mechanism most tasks for RTL conversion are covered.
-   The Control developer has to decide whether any used images need to be mirrored or not and to place the RTL version into the img-RTL folder with the same location and name. The image reference in the CSS is automatically modified to point to this image in RTL mode.
-   Controls shall not write special CSS classes to notify the CSS that RTL is switched on. In CSS the "dir" attribute of the \<HTML\> tag can be checked to provide a specific style that has to be applied for RTL:

  ``` css
        html[dir=rtl] .sapUiBtn {
           color: red; /* make button text red in RTL mode */
        }
  ```

However, this should only be required in rare cases, as the mentioned CSS mirroring algorithm covers most required RTL transformations. NOTE: this style is also mirrored in the actual RTL case, so you might need to write it mirrored.

### Test Pages

Any HTML pages placed into the *test*\<libraryname\> folder (or below) will be listed in the testsuite. They can be used during development or for manual tests.

### QUnit Tests

To provide automated unit tests for a control, create the file: `/test/<libraryname>/qunit/<controlname>.qunit.hml` and add it to the list of test pages in the `testsuite.qunit.html` file in the same directory. For the implementation of these tests, please refer to the [QUnit documentation](http://qunitjs.com/) or existing unit tests.

### Visual Tests

To provide automated visual tests for a control, create the file: `/test/<libraryname>/visual/<controlname>.spec.js` and add it to the list of test pages in the `visual.suite.js` file in the same directory. For the implementation of these tests, please refer to the "ui5delivery/visualtestjs" project on the SAP GitHub or existing visual tests.


text:
#import <MapKit/MKPolyline.h>

@class MKRoutePolyline;

// Not exported
@interface MKRouteStepPolyline : MKPolyline
{
    MKRoutePolyline *_fullRoute;
}

- (CDStruct_c3b9c2ee)coordinate;
- (void)dealloc;
- (id)_initWithRoute:(id)arg1 range:(struct _NSRange)arg2;

@end


text:
var ws = new WebSocket("ws://"+location.host+"/ws");
ws.isOpen = false;

ws.onopen = function()
{
    ws.isOpen = true;
    console.log('Websocket open!');
};

ws.onmessage = function(evt)
{
    console.log(evt);
};

ws.onclose = function()
{
    ws.isOpen = false;
    console.log("Websocket closed!");
};

window.onbeforeunload = function(event)
{
    ws.close();
};

function toRadians (angle) {
  return angle * (Math.PI / 180);
}

function toDegrees (angle) {
  return angle * (180 / Math.PI);
}

var camrotation = null;
var campos = null;
var plane_old = null;
AFRAME.registerComponent('draw-canvas-rectangles', {
  schema: {type: 'selector'},

  init: function () {
    var canvas = this.canvas = this.data;
    var ctx = this.ctx = canvas.getContext('2d');
    var img = document.getElementById('videoStream');
    ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
  },

  tick: function (t) {
    var img = document.getElementById('videoStream');
    this.ctx.drawImage(img, 0, 0, this.canvas.width,this.canvas.height);
    var cameraEl = this.el.sceneEl.camera.el;

    /*var p = cameraEl.getAttribute('position');
    var r = cameraEl.getAttribute('rotation');
    if(ws.isOpen){
           ws.send(JSON.stringify({'position':p}));
	   ws.send(JSON.stringify({'rotation':r}));
    }*/
  }
});


text:
@interface ForecastIOProcessor : NSObject <WeatherProcessor>

@end


text:
extern crate something;

use something::ecs::*;
use something::components::*;
use something::custom_container::{EcsContainer, ConfiguresComponent};

fn main() {
    let mut container = EcsContainer {
        has_name: System::new(),
        has_health: System::new(),
        has_position: System::new(),
        position_updater: PositionUpdater::new(Vector::new(5.0, 5.0)),
        entity_factory: EntityFactory::new()
     };

    // Create entity, and configure components
    let geralt: Entity = container.new_entity()
        .with_component(HasName::new("Geralt"))
        .with_component(HasHealth::new(100))
        .with_component(HasPosition::new(Vector::new(1.0, 1.0)))
        .into();

    // Print Geralt's ID, and make sure he's in a system.
    println!("Geralt ID: {:?}: {:?}",
        geralt.get_id(),
        container.has_name.has_component(&geralt));

    // Retrieve some data about Geralt
    println!("name: {:?}, health: {:?}, position: {:?}",
        container.has_name.get_component(&geralt).unwrap().name,
        container.has_health.get_component(&geralt).unwrap().health,
        container.has_position.get_component(&geralt).unwrap().position);

    // Update the container, providing a step value
    container.update(2.0);

    // Check data has updated
    println!("new position {:?}",
        container.has_position.get_component(&geralt).unwrap().position);
}


text:
import fn from "../../differenceInQuarters/index.js";
import convertToFP from "../_lib/convertToFP/index.js";
export default convertToFP(fn, 3);


text:
<?php

namespace Zend\Captcha;

use Zend\Validator\ValidatorInterface;

/**
 * Generic Captcha adapter interface
 *
 * Each specific captcha implementation should implement this interface
 */
interface AdapterInterface extends ValidatorInterface
{
    /**
     * Generate a new captcha
     *
     * @return string new captcha ID
     */
    public function generate();

    /**
     * Set captcha name
     *
     * @param  string $name
     * @return AdapterInterface
     */
    public function setName($name);

    /**
     * Get captcha name
     *
     * @return string
     */
    public function getName();

    /**
     * Get helper name to use when rendering this captcha type
     *
     * @return string
     */
    public function getHelperName();
}


text:
/*A FreeCodeCamp algorithm problem- Title Case a Sentence
Return the provided string with the first letter of each word capitalized. Make sure the rest of the word is in lower case.
For the purpose of this exercise, you should also capitalize connecting words like "the" and "of".*/

function titleCase(str) {
  var tempStr = str.toLowerCase();//make the string all lowercase
  var tempArr = tempStr.split("");//split into char array
  tempArr[0] = tempArr[0].toUpperCase();//make the first letter upper case
  for(var i = 0; i < tempArr.length; i++)//go through all letters of the array
    {
      if(tempArr[i].localeCompare(" ") === 0)
        tempArr[i+1] = tempArr[i+1].toUpperCase();//the current character is a space, so capitalize the next letter
    }
  tempStr = tempArr.join("");//join all the array to make a string
  return tempStr;
}

titleCase("I'm a little tea pot");


text:
package org.apache.sysml.runtime.controlprogram.parfor;

import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

import org.apache.hadoop.io.Writable;
import org.apache.spark.api.java.function.PairFlatMapFunction;
import org.apache.sysml.runtime.DMLRuntimeException;
import org.apache.sysml.runtime.controlprogram.ParForProgramBlock.PDataPartitionFormat;
import org.apache.sysml.runtime.controlprogram.parfor.util.PairWritableBlock;
import org.apache.sysml.runtime.matrix.MatrixCharacteristics;
import org.apache.sysml.runtime.matrix.data.InputInfo;
import org.apache.sysml.runtime.matrix.data.MatrixBlock;
import org.apache.sysml.runtime.matrix.data.MatrixIndexes;
import org.apache.sysml.runtime.matrix.data.OutputInfo;
import org.apache.sysml.runtime.util.DataConverter;

import scala.Tuple2;

/**
 * NOTE: for the moment we only support binary block here
 * TODO extend impl for binarycell and textcell
 *
 * Interface of Writable output in order to support both PairWritableBlock and PairWritableCell.
 *
 */
public class DataPartitionerRemoteSparkMapper extends ParWorker implements PairFlatMapFunction<Tuple2<MatrixIndexes,MatrixBlock>, Long, Writable>
{

	private static final long serialVersionUID = 332887624852010957L;

	private final long _rlen;
	private final long _clen;
	private final long _brlen;
	private final long _bclen;
	private PDataPartitionFormat _dpf;
	private final long _n;

	public DataPartitionerRemoteSparkMapper(MatrixCharacteristics mc, InputInfo ii, OutputInfo oi, PDataPartitionFormat dpf, int n)
		throws DMLRuntimeException
	{
		_rlen = mc.getRows();
		_clen = mc.getCols();
		_brlen = mc.getRowsPerBlock();
		_bclen = mc.getColsPerBlock();
		_dpf = dpf;
		_n = n;
	}

	@Override
	public Iterator<Tuple2<Long, Writable>> call(Tuple2<MatrixIndexes, MatrixBlock> arg0)
		throws Exception
	{
		List<Tuple2<Long, Writable>> ret = new LinkedList<>();

		MatrixIndexes key2 =  arg0._1();
		MatrixBlock value2 = arg0._2();
		long row_offset = (key2.getRowIndex()-1)*_brlen;
		long col_offset = (key2.getColumnIndex()-1)*_bclen;
		long rows = value2.getNumRows();
		long cols = value2.getNumColumns();

		//bound check per block
		if( row_offset + rows < 1 || row_offset + rows > _rlen || col_offset + cols<1 || col_offset + cols > _clen )
		{
			throw new IOException("Matrix block ["+(row_offset+1)+":"+(row_offset+rows)+","+(col_offset+1)+":"+(col_offset+cols)+"] " +
					              "out of overall matrix range [1:"+_rlen+",1:"+_clen+"].");
		}

		//partition inputs according to partitioning scheme
		switch( _dpf )
		{
			case ROW_WISE: {
				MatrixBlock[] blks = DataConverter.convertToMatrixBlockPartitions(value2, false);
				for( int i=0; i<rows; i++ ) {
					PairWritableBlock tmp = new PairWritableBlock();
					tmp.indexes = new MatrixIndexes(1, col_offset/_bclen+1);
					tmp.block = blks[i];
					ret.add(new Tuple2<Long,Writable>(new Long(row_offset+1+i),tmp));
				}
				break;
			}
			case ROW_BLOCK_WISE: {
				PairWritableBlock tmp = new PairWritableBlock();
				tmp.indexes = new MatrixIndexes(1, col_offset/_bclen+1);
				tmp.block = new MatrixBlock(value2);
				ret.add(new Tuple2<Long,Writable>(new Long(row_offset/_brlen+1),tmp));
				break;
			}
			case ROW_BLOCK_WISE_N:{
				if( _n >= _brlen ) {
					PairWritableBlock tmp = new PairWritableBlock();
					tmp.indexes = new MatrixIndexes(((row_offset%_n)/_brlen)+1, col_offset/_bclen+1);
					tmp.block = new MatrixBlock(value2);
					ret.add(new Tuple2<Long,Writable>(new Long(row_offset/_n+1),tmp));
				}
				else {
					for( int i=0; i<rows; i+=_n ) {
						PairWritableBlock tmp = new PairWritableBlock();
						tmp.indexes = new MatrixIndexes(1, col_offset/_bclen+1);
						tmp.block = value2.sliceOperations(i, Math.min(i+(int)_n-1, value2.getNumRows()-1),
								0, value2.getNumColumns()-1, new MatrixBlock());
						ret.add(new Tuple2<Long,Writable>(new Long((row_offset+i)/_n+1),tmp));
					}
				}
				break;
			}
			case COLUMN_WISE:{
				MatrixBlock[] blks = DataConverter.convertToMatrixBlockPartitions(value2, true);
				for( int i=0; i<cols; i++ ) {
					PairWritableBlock tmp = new PairWritableBlock();
					tmp.indexes = new MatrixIndexes(row_offset/_brlen+1, 1);
					tmp.block = blks[i];
					ret.add(new Tuple2<Long,Writable>(new Long(col_offset+1+i),tmp));
				}
				break;
			}
			case COLUMN_BLOCK_WISE: {
				PairWritableBlock tmp = new PairWritableBlock();
				tmp.indexes = new MatrixIndexes(row_offset/_brlen+1, 1);
				tmp.block = new MatrixBlock(value2);
				ret.add(new Tuple2<Long,Writable>(new Long(col_offset/_bclen+1),tmp));
				break;
			}
			case COLUMN_BLOCK_WISE_N: {
				if( _n >= _bclen ) {
					PairWritableBlock tmp = new PairWritableBlock();
					tmp.indexes = new MatrixIndexes(row_offset/_brlen+1, ((col_offset%_n)/_bclen)+1);
					tmp.block = new MatrixBlock(value2);
					ret.add(new Tuple2<Long,Writable>(new Long(col_offset/_n+1),tmp));
				}
				else {
					for( int i=0; i<cols; i+=_n ) {
						PairWritableBlock tmp = new PairWritableBlock();
						tmp.indexes = new MatrixIndexes(row_offset/_brlen+1, 1);
						tmp.block = value2.sliceOperations(0, value2.getNumRows()-1,
								i, Math.min(i+(int)_n-1, value2.getNumColumns()-1), new MatrixBlock());
						ret.add(new Tuple2<Long,Writable>(new Long((col_offset+i)/_n+1),tmp));
					}
				}
				break;
			}

			default:
				throw new DMLRuntimeException("Unsupported partition format: "+_dpf);
		}

		return ret.iterator();
	}

}


text:
import {Component } from '@angular/core';
import { Http } from '@angular/http';
import { PagerService } from '../pager.service'
import { Router } from '@angular/router';
import * as globals from './../../globals';

@Component({
	moduleId: module.id,
	selector: 'category',
	templateUrl: 'category.component.html',

	providers: [PagerService]

})

export class CategoryComponent {
	category: Array<Object>[];
	pager: any = {};
	terms:string = '';
    pagedItems: any[];
    message: any= {};
	mess = false;
	succ = false;

	token = localStorage.getItem('access_token');

	constructor(private http : Http, private pagerService : PagerService,private router: Router) { }

	ngOnInit() {
		var token = localStorage.getItem('access_token');
		console.log(globals.apiSecureUrl);
		this.http.get(globals.apiSecureUrl+'/product-category?access_token='+ this.token)
  				.map(res => res.json())
  				.subscribe(
  					data => { if(data.content.length) {
                  				this.category= data.content;
                  				this.setPage(1);
                  			} else {
                      			this.mess=true;
                      			this.message= "There is no records found."
                  			}},
  					error => { if(error.json().error) {
									this.message = error.json().message
									this.mess = true;
								}},
  					() => console.log("complete")
  				);
	}

	add() {

		this.router.navigate(['/dashboard/add-category/']);
	}

	update(id: number, name: string, description: string) {
    	this.router.navigate(['/dashboard/add-category/'], { queryParams: { Id: id, name: name,description: description}});
    }

	delete(id: number) {
		if (confirm("Are You Sure! You want to delete this record?") == true) {
	    	this.http.delete(globals.apiSecureUrl+'/product-category/' + id + '?access_token='+ this.token)
				.map(res => res.json())
				.subscribe(
					data => {this.ngOnInit();
								this.succ = true;
								this.message = "Record successfully deleted";
								setTimeout(() => {
                					this.succ = false;
            					}, 1000);
							},
					error => console.log("error"),
	  				() => console.log("complete")
				);
		}
    }

	search(terms: string) {
		if(terms) {
			this.pagedItems = this.category.filter((item) => item.name.startsWith(terms));
		} else {
			this.ngOnInit();
		}
	}

    setPage(page: number) {
        if (page < 1 || page > this.pager.totalPages) {
            return;
        }
        this.pager = this.pagerService.getPager(this.category.length, page);
        this.pagedItems = this.category.slice(this.pager.startIndex, this.pager.endIndex + 1);
    }
}


text:
/**
 * WEB ANGULAR VERSION
 * (based on systemjs.config.js in angular.io)
 * System configuration for Angular samples
 * Adjust as necessary for your application needs.
 */
(function (global) {
  System.config({
    // DEMO ONLY! REAL CODE SHOULD NOT TRANSPILE IN THE BROWSER
    transpiler: 'ts',
    typescriptOptions: {
      // Copy of compiler options in standard tsconfig.json
      "target": "es5",
      "module": "commonjs",
      "moduleResolution": "node",
      "sourceMap": true,
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "lib": ["es2015", "dom"],
      "noImplicitAny": true,
      "suppressImplicitAnyIndexErrors": true
    },
    meta: {
      'typescript': {
        "exports": "ts"
      }
    },
    paths: {
      // paths serve as alias
      'npm:': 'https://unpkg.com/'
    },
    // map tells the System loader where to look for things
    map: {
      // our app is within the app folder
      'app': 'app',

      // angular bundles
      '@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js',
      '@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js',
      '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
      '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
      '@angular/common/http': 'npm:@angular/common/bundles/common-http.umd.js',
      '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
      '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
      '@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
      '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
      '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
      '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
      '@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js',
      '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
      '@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
      '@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js',

      // other libraries
      'rxjs':                      'npm:rxjs@5.5.2',
      'rxjs/operators':            'npm:rxjs@5.5.2/operators/index.js',
      'tslib':                     'npm:tslib/tslib.js',
      'angular-in-memory-web-api': 'npm:angular-in-memory-web-api@0.4/bundles/in-memory-web-api.umd.js',
      'ts':                        'npm:plugin-typescript@5.2.7/lib/plugin.js',
      'typescript':                'npm:typescript@2.4.2/lib/typescript.js',

    },
    // packages tells the System loader how to load when no filename and/or no extension
    packages: {
      app: {
        main: './main.ts',
        defaultExtension: 'ts',
        meta: {
          './*.ts': {
            loader: 'systemjs-angular-loader.js'
          }
        }
      },
      rxjs: {
        defaultExtension: 'js'
      }
    }
  });

})(this);

/*
Copyright 2016 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license
*/


text:
<?php

namespace Memio\Memio\Examples\Phpdoc;

use Memio\Memio\Examples\PrettyPrinterTestCase;
use Memio\Model\Phpdoc\PropertyPhpdoc;
use Memio\Model\Phpdoc\VariableTag;

class PropertyPhpdocTest extends PrettyPrinterTestCase
{
    public function testEmpty()
    {
        $propertyPhpdoc = new PropertyPhpdoc();

        $generatedCode = $this->prettyPrinter->generateCode($propertyPhpdoc);

        $this->assertSame('', $generatedCode);
    }

    public function testOneTag()
    {
        $propertyPhpdoc = PropertyPhpdoc::make()
            ->setVariableTag(new VariableTag('Memio\Memio\MyClass'))
        ;

        $generatedCode = $this->prettyPrinter->generateCode($propertyPhpdoc);

        $this->assertExpectedCode($generatedCode);
    }
}


text:
@interface BCHCacultorManager : NSObject

@property (nonatomic,assign) NSInteger result;

-(NSInteger)caculator:(NSInteger(^)(NSInteger result))cacultorBlock;

@end


text:
/**
 * Developed by :
 * ROUTE-TO-PA Project - grant No 645860. - www.routetopa.eu
 *
*/

var AjaxJsonAlasqlBehavior = {

    properties: {

        /**
         * It contains the json data from async xhr call returned from core-ajax core component
         *
         * @attribute json_results
         * @type object
         * @default 'null'.
         */
        json_results: {
            type: Object,
            value: {}
        }

    },

    /**
     * Make an AJAX call to the dataset URL
     *
     * @method requestData
     */
    requestData: function(){

        var comp = this;

        $.ajax({
            url: this._component.dataUrl,
            dataType: "json",
            success: function(e){
                try{
                    comp.handleResponse(e);
                }
                catch (ex){
                    $(comp._component).find("base-datalet")[0].removeLoader();
                    $($(comp._component).find("#ajax_error")[0]).append(' error: javascript ');
                    console.log(ex);
                }
            },
            error: function(e) {
                $(comp._component).find("base-datalet")[0].removeLoader();
                $($(comp._component).find("#ajax_error")[0]).append(' ' + e.statusText + ': ' + e.status);
                console.log(e);
            }
        });
    },

    /**
     * Called when core-ajax component receive the json data from called url.
     *
     * @method handleResponse
     */
    handleResponse: function(e) {
        this.properties.json_results.value = e;
        this.runWorkcycle();
    },

    /**
     * selectData built a ALASQL query based on the user selected fields then extract data from the JSON response.
     * This method built an objects <name, data> for every user selected field and push it into the data array.
     *
     * @method selectData
     */
    selectData : function() {
        var f = Object.create(providerFactory);
        var provider = f.getProvider(this._component.dataUrl);
        var data = provider.selectData(this.properties.json_results.value);

        var converter = new DataTypeConverter();

        var result = converter.inferJsonDataType(data, ["*"]);
        result = converter.cast(result);
        this.data = result.dataset;
    },

    filterData : function() {
        var selectedFields = JSON.parse(this._component.getAttribute("selectedfields"));
        var filters = JSON.parse(this._component.getAttribute("filters"));
        var aggregators = JSON.parse(this._component.getAttribute("aggregators"));
        var orders = JSON.parse(this._component.getAttribute("orders"));

        fields = [];
        for (var i=0; i < selectedFields.length; i++)
            if (selectedFields[i])
                fields.push(selectedFields[i].value);

        var converter = new DataTypeConverter();
        var data = this.data;
        var result = [];

        if(filters && filters.length) {
            data = alasql_QUERY(data, "*", filters, null, null);
            result = converter.inferJsonDataType(data, ["*"]);
            result = converter.cast(result);
            data = result.dataset;
        }

        if(aggregators && aggregators.length) {
            data = alasql_QUERY(data, null, null, aggregators, orders);
            result = converter.inferJsonDataType(data, ["*"]);
            result = converter.cast(result);
            data = result.dataset;
        }
        else {
            data = alasql_QUERY(data, fields, null, null, orders);
            result = converter.inferJsonDataType(data, ["*"]);
            result = converter.cast(result);
            data = result.dataset;
        }

        this.data = alasql_transformData(data, fields, true);
    }

};


text:
package org.crumbleworks.forge.karmen.objects;

import com.badlogic.gdx.math.Vector2;

/**
 * Position Size Velocity
 */
public class PSV {
    public Vector2 position;
    public Vector2 size;
    public Vector2 velocity;

    public PSV(Vector2 position, Vector2 size, Vector2 velocity) {
        this.position = position;
        this.size = size;
        this.velocity = velocity;
    }
}


text:
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.

#include "curl_wrapper.h"
#include "base/exc_assert.h"
#include "compiler/compiler.h"
#include "http/http_header.h"

#include <numeric>

using namespace std;

namespace MLDB {

namespace CurlWrapper {

    RuntimeError::RuntimeError(const std::string & what, CURLcode code) :
        MLDB::Exception(what), code(code)
    {}

    CURLcode RuntimeError::whatCode() const
    {
        return code;
    }

    /// Static function used to actually perform the callback
    static size_t doCallback(char *buffer, size_t size, size_t nitems, void *userdata)
    {
        Easy::CurlCallback * callback = (Easy::CurlCallback *)userdata;
        try {
            return (*callback)(buffer, size, nitems);
        } MLDB_CATCH_ALL {
            return size * nitems + 1;  // a number different than the input size indicates an error
        }
    }

    Easy::Easy()
        : curl(curl_easy_init()),
          header_list(nullptr)
    {
        ExcAssert(curl.get());
    }

    void Easy::add_data_option(CURLoption option, const void * data)
    {
         attempt(curl_easy_setopt(curl.get(), option, data),
                 "easy.add_option: failed to set data option");
    }

    void Easy::add_option(CURLoption option, const std::string& value)
    {
        attempt(curl_easy_setopt(curl.get(), option, value.c_str()), "easy.add_option: failed to set string option");
    }

    void Easy::add_option(CURLoption option, long value)
    {
        attempt(curl_easy_setopt(curl.get(), option, value), "easy.add_option: failed to set long option");
    }

    void Easy::add_header_option(const RestParams& headers)
    {
        if (header_list != nullptr)
            throw MLDB::Exception("header option has already been set. Call reset to before reusing an Easy object");

        for (auto&& header : headers) {
            header_list = curl_slist_append(header_list,
                                            (header.first.rawString() + ":" + header.second.rawString()).c_str());
        }

        attempt(curl_easy_setopt(curl.get(), CURLOPT_HTTPHEADER, header_list),
                "easy.add_header_option failed to set headers");
    }

    void Easy::add_callback_option(CURLoption option, CURLoption userDataOption, CurlCallback& callback)
    {
        CURLcode res = curl_easy_setopt(curl.get(), userDataOption, &callback);

        if (res != CURLE_OK) {
            throw RuntimeError(curl_easy_strerror(res), res);
        }

        res = curl_easy_setopt(curl.get(), option, &doCallback);

        if (res != CURLE_OK) {
            throw RuntimeError(curl_easy_strerror(res), res);
        }
    }

    void Easy::get_info(CURLINFO info, long &pdst)
    {
        attempt(curl_easy_getinfo(curl.get(), info, &pdst), "easy.get_info: failed to get info");
    }

    void Easy::get_info(CURLINFO info, double &pdst)
    {
        attempt(curl_easy_getinfo(curl.get(), info, &pdst), "easy.get_info: failed to get info");
    }

    CURLcode Easy::perform()
    {
        return curl_easy_perform(curl.get());
    }

    void Easy::reset()
    {
        if (header_list) {
            curl_slist_free_all(header_list);
            header_list = nullptr;
        }

        curl_easy_reset(curl.get());
    }

void Easy::CurlCleanup::operator () (CURL * c)
{
    // TODO: check error code... an error indicates an earlier problem
    curl_easy_cleanup(c);
}

namespace {

static struct AtInit {
    AtInit()
    {
        curl_global_init(CURL_GLOBAL_DEFAULT);
    }

    ~AtInit()
    {
        curl_global_cleanup();
    }

} atInit;

} // file scope

} // namespace CurlWrapper
} // namespace MLDB


text:
#ifndef __BULLET_ROTATIONAL_LIMIT_MOTOR_H__
#define __BULLET_ROTATIONAL_LIMIT_MOTOR_H__

#include "pandabase.h"

#include "bullet_includes.h"
#include "bullet_utils.h"

#include "luse.h"

/**
 * Rotation Limit structure for generic joints.
 */
class EXPCL_PANDABULLET BulletRotationalLimitMotor {

PUBLISHED:
  BulletRotationalLimitMotor(const BulletRotationalLimitMotor &copy);
  ~BulletRotationalLimitMotor();

  INLINE void set_motor_enabled(bool enable);
  INLINE void set_low_limit(PN_stdfloat limit);
  INLINE void set_high_limit(PN_stdfloat limit);
  INLINE void set_target_velocity(PN_stdfloat velocity);
  INLINE void set_max_motor_force(PN_stdfloat force);
  INLINE void set_max_limit_force(PN_stdfloat force);
  INLINE void set_damping(PN_stdfloat damping);
  INLINE void set_softness(PN_stdfloat softness);
  INLINE void set_bounce(PN_stdfloat bounce);
  INLINE void set_normal_cfm(PN_stdfloat cfm);
  INLINE void set_stop_cfm(PN_stdfloat cfm);
  INLINE void set_stop_erp(PN_stdfloat erp);

  INLINE bool is_limited() const;
  INLINE bool get_motor_enabled() const;
  INLINE int get_current_limit() const;
  INLINE PN_stdfloat get_current_error() const;
  INLINE PN_stdfloat get_current_position() const;
  INLINE PN_stdfloat get_accumulated_impulse() const;

public:
  BulletRotationalLimitMotor(btRotationalLimitMotor &motor);

private:
  btRotationalLimitMotor &_motor;
};

#include "bulletRotationalLimitMotor.I"

#endif // __BULLET_ROTATIONAL_LIMIT_MOTOR_H__


text:
<component name="libraryTable">
  <library name="sbt: org.glassfish.hk2:osgi-resource-locator:1.0.1:jar">
    <CLASSES>
      <root url="jar://$USER_HOME$/.ivy2/cache/org.glassfish.hk2/osgi-resource-locator/jars/osgi-resource-locator-1.0.1.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES>
      <root url="jar://$USER_HOME$/.ivy2/cache/org.glassfish.hk2/osgi-resource-locator/srcs/osgi-resource-locator-1.0.1-sources.jar!/" />
    </SOURCES>
  </library>
</component>


text:
<?php

/** */
namespace CoreTest\Decorator;

use PHPUnit\Framework\TestCase;

use Core\Decorator\ProxyDecorator;

/**
 * Tests for \Core\Decorator\ProxyDecorator
 *
 * @covers \Core\Decorator\ProxyDecorator
 * @author Mathias Gelhausen <gelhausen@cross-solution.de>
 * @group Core
 * @group Core.Decorator
 */
class ProxyDecoratorTest extends TestCase
{
    protected function setUp()
    {
        $this->object = new ObjectMock();
        $this->target = new ProxyDecoratorMock($this->object);
    }

    /**
     * @expectedException \BadMethodCallException
     * @expectedExceptionMessage Cannot proxy "unknownMethod" to "CoreTest\Decorator\ObjectMock": Unknown method.
     */
    public function testProxyToUnknownMethodThrowsException()
    {
        $this->target->testProxy('unknownMethod');
    }

    public function testProxyToMethod()
    {
        $this->target->testProxy('objectMethod', 'arg1', 'arg2', 'arg3');

        $this->assertTrue($this->object->areAllArgumentsCorrect, 'Argument values does not match!');
        $this->assertTrue($this->object->wasCalledWithCorrectArgumentCount, 'Argument count was incorrect');
    }

    public function testProxyToMethodReturnsExpectedResults()
    {
        $returnSelf = $this->target->testProxy('returnSelf');
        $returnValue = $this->target->testProxy('returnValue');

        $this->assertSame($this->target, $returnSelf);
        $this->assertEquals('someValue', $returnValue);
    }
}

class ProxyDecoratorMock extends ProxyDecorator
{
    protected $objectType = '\CoreTest\Decorator\ObjectMock';

    public function testProxy()
    {
        return call_user_func_array(array($this, 'proxy'), func_get_args());
    }
}

class ObjectMock
{
    public $areAllArgumentsCorrect = false;
    public $wasCalledWithCorrectArgumentCount = false;

    public function objectMethod($arg1, $arg2, $arg3)
    {
        $this->areAllArgumentsCorrect = 'arg1' == $arg1 && 'arg2' == $arg2 && 'arg3' == $arg3;
        $this->wasCalledWithCorrectArgumentCount = 3 == func_num_args();
    }

    public function returnSelf()
    {
        return $this;
    }

    public function returnValue()
    {
        return 'someValue';
    }
}


text:
set -x -e

APPNAME=imobiledevice

SYSTEMD="usbmuxd.service"
DESCRIPTION="Patched versions of libimobiledevice and related tools"
IN_DIR="$(pwd)/out"
OUT_DIR=""

# Make sure we restart udev rules and bypass the upload.
UDEV_LIB_RELOAD=True
BYPASS_UPLOAD=True

# DEPENDS, BREAKS, and CONFLICTS are unions of those fields across all Debian
# packages in the libimobiledevice family:
DEPENDS="fuse, libc6 (>= 2.17), libfuse2 (>= 2.8), libzip4 (>= 0.10), libssl1.1 (>= 1.1.0), libusb-1.0-0 (>= 2:1.0.22), adduser"
BREAKS="usbmuxd (<< 1.1.1~git20181007.f838cf6-1)"
CONFLICTS="libplist3, libusbmuxd6, usbmuxd, ideviceinstaller, ifuse, libimobiledevice6"

VERSION=1.1

# Fix the paths in the config files.
sed -i "s+${IN_DIR}/sbin+${OUT_DIR}/sbin+g" ${IN_DIR}/systemd/usbmuxd.service
sed -i "s+${IN_DIR}/var/run+/var/run+g"     ${IN_DIR}/systemd/usbmuxd.service
sed -i "s+${IN_DIR}/sbin+${OUT_DIR}/sbin+g" ${IN_DIR}/udev-rules/*.rules

# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
    INSTALL="fakeroot install -D --verbose --backup=none --group=root --owner=root"
    INSTALL_DIR="fakeroot install -d --verbose --backup=none --group=root --owner=root"

    ${INSTALL_DIR} ${ROOT}${OUT_DIR}/
    cp -r ${IN_DIR}/sbin      ${ROOT}${OUT_DIR}/sbin
    cp -r ${IN_DIR}/bin       ${ROOT}${OUT_DIR}/bin
    cp -r ${IN_DIR}/lib       ${ROOT}${OUT_DIR}/lib
    cp -r ${IN_DIR}/share     ${ROOT}${OUT_DIR}/share

    ${INSTALL} --mode=644 -T ${IN_DIR}/udev-rules/39-usbmuxd.rules ${ROOT}/etc/udev/rules.d/39-usbmuxd.rules
    ${INSTALL} --mode=644 -T ${IN_DIR}/systemd/usbmuxd.service     ${ROOT}/etc/systemd/system/usbmuxd.service
}

source ../../../bash/release.sh


text:
{-# LANGUAGE ConstraintKinds           #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FunctionalDependencies    #-}
{-# LANGUAGE GADTs                     #-}
{-# LANGUAGE PolyKinds                 #-}
{-# LANGUAGE RankNTypes                #-}

{-# OPTIONS_GHC -fno-warn-orphans      #-}

module Cardano.Wallet.API.Indices (
    module Cardano.Wallet.API.Indices
    -- * Re-exports from IxSet for convenience
    -- (these were previously /defined/ in this module)
  , IndicesOf
  , IxSet
  , Indexable
  , IsIndexOf
  ) where

import           Universum

import           Cardano.Wallet.API.V1.Types
import qualified Data.Text as T
import           GHC.TypeLits
import qualified Pos.Chain.Txp as Txp
import qualified Pos.Core as Core
import           Pos.Crypto (decodeHash)

import           Cardano.Wallet.Kernel.DB.Util.IxSet (HasPrimKey (..),
                     Indexable, IndicesOf, IsIndexOf, IxSet, OrdByPrimKey,
                     ixFun, ixList)
import qualified Data.IxSet.Typed as IxSet

-- | 'ToIndex' represents the witness that we can build an index 'ix' for a resource 'a'
-- from an input 'Text'.
class ToIndex a ix where
    -- | How to build this index from the input 'Text'.
    toIndex  :: Proxy a -> Text -> Maybe ix
    -- | How to access this index from the input data.
    accessIx :: (a -> ix)

instance ToIndex Wallet WalletId where
    toIndex _ x = Just (WalletId x)
    accessIx Wallet{..} = walId

instance ToIndex Wallet Core.Coin where
    toIndex _ x = case readMaybe (T.unpack x) of
        Nothing                       -> Nothing
        Just c  | c > Core.maxCoinVal -> Nothing
        Just c                        -> Just (Core.mkCoin c)
    accessIx Wallet{..} = let (V1 balance) = walBalance in balance

instance ToIndex Wallet (V1 Core.Timestamp) where
    toIndex _ = fmap V1 . Core.parseTimestamp
    accessIx = walCreatedAt

instance ToIndex Transaction (V1 Txp.TxId) where
    toIndex _ = fmap V1 . rightToMaybe . decodeHash
    accessIx Transaction{..} = txId

instance ToIndex Transaction (V1 Core.Timestamp) where
    toIndex _ = fmap V1 . Core.parseTimestamp
    accessIx Transaction{..} = txCreationTime

instance ToIndex WalletAddress (V1 Core.Address) where
    toIndex _ = fmap V1 . either (const Nothing) Just . Core.decodeTextAddress
    accessIx WalletAddress{..} = addrId

--
-- Primary and secondary indices for V1 types
--

instance HasPrimKey Wallet where
    type PrimKey Wallet = WalletId
    primKey = walId

instance HasPrimKey Account where
    type PrimKey Account = AccountIndex
    primKey = accIndex

instance HasPrimKey Transaction where
    type PrimKey Transaction = V1 Txp.TxId
    primKey = txId

instance HasPrimKey WalletAddress where
    type PrimKey WalletAddress = V1 Core.Address
    primKey = addrId

-- | The secondary indices for each major resource.
type SecondaryWalletIxs        = '[Core.Coin, V1 Core.Timestamp]
type SecondaryTransactionIxs   = '[V1 Core.Timestamp]
type SecondaryAccountIxs       = '[]
type SecondaryWalletAddressIxs = '[]

type instance IndicesOf Wallet        = SecondaryWalletIxs
type instance IndicesOf Account       = SecondaryAccountIxs
type instance IndicesOf Transaction   = SecondaryTransactionIxs
type instance IndicesOf WalletAddress = SecondaryWalletAddressIxs

--
-- Indexable instances for V1 types
--
-- TODO [CBR-356] These should not exist! We should not create 'IxSet's
-- (with their indices) on the fly. Fortunately, the only one for which this
-- is /really/ important is addresses, for which we already have special
-- cases. Nonetheless, the instances below should also go.
--
-- Instance for 'WalletAddress' is available only in
-- "Cardano.Wallet.API.V1.LegacyHandlers.Instances". The same should be done
-- for the other instances here.
--

instance IxSet.Indexable (WalletId ': SecondaryWalletIxs)
                         (OrdByPrimKey Wallet) where
    indices = ixList (ixFun ((:[]) . unV1 . walBalance))
                     (ixFun ((:[]) . walCreatedAt))

instance IxSet.Indexable (V1 Txp.TxId ': SecondaryTransactionIxs)
                         (OrdByPrimKey Transaction) where
    indices = ixList (ixFun (\Transaction{..} -> [txCreationTime]))

instance IxSet.Indexable (AccountIndex ': SecondaryAccountIxs)
                         (OrdByPrimKey Account) where
    indices = ixList

-- | Extract the parameter names from a type leve list with the shape
type family ParamNames res xs where
    ParamNames res '[] =
        '[]
    ParamNames res (ty ': xs) =
        IndexToQueryParam res ty ': ParamNames res xs

-- | This type family allows you to recover the query parameter if you know
-- the resource and index into that resource.
type family IndexToQueryParam resource ix where
    IndexToQueryParam Account AccountIndex            = "id"

    IndexToQueryParam Wallet  Core.Coin               = "balance"
    IndexToQueryParam Wallet  WalletId                = "id"
    IndexToQueryParam Wallet  (V1 Core.Timestamp)     = "created_at"

    IndexToQueryParam WalletAddress (V1 Core.Address) = "address"

    IndexToQueryParam Transaction (V1 Txp.TxId)      = "id"
    IndexToQueryParam Transaction (V1 Core.Timestamp) = "created_at"

    -- This is the fallback case. It will trigger a type error if you use
    -- 'IndexToQueryParam'' with a pairing that is invalid. We want this to
    -- trigger early, so that we don't get Weird Errors later on with stuck
    -- types.
    IndexToQueryParam res ix = TypeError (
        'Text "You used `IndexToQueryParam' with the following resource:"
        ':$$: 'Text "    " ':<>: 'ShowType res
        ':$$: 'Text "and index type:"
        ':$$: 'Text "    " ':<>: 'ShowType ix
        ':$$: 'Text "But no instance for that type was defined."
        ':$$: 'Text "Perhaps you mismatched a resource and an index?"
        ':$$: 'Text "Or, maybe you need to add a type instance to `IndexToQueryParam'."
        )

-- | Type-level composition of 'KnownSymbol' and 'IndexToQueryParam'
--
-- TODO: Alternatively, it would be possible to get rid of 'IndexToQueryParam'
-- completely and just have the 'KnownQueryParam' class.
class KnownSymbol (IndexToQueryParam resource ix) => KnownQueryParam resource ix

instance KnownQueryParam Account AccountIndex
instance KnownQueryParam Wallet Core.Coin
instance KnownQueryParam Wallet WalletId
instance KnownQueryParam Wallet (V1 Core.Timestamp)
instance KnownQueryParam WalletAddress (V1 Core.Address)
instance KnownQueryParam Transaction (V1 Txp.TxId)
instance KnownQueryParam Transaction (V1 Core.Timestamp)


text:
Placeholder Company Name

          3 Create Account
          3 Care Details
          3 Plan & Pay

      <form id="signup-form" ng-submit="serverCall()">

      </form>

    {{ formData }}


text:
Deep Neural Networks (dnn module) {#tutorial_table_of_content_dnn}
=====================================

-   @subpage tutorial_dnn_googlenet
-   @subpage tutorial_dnn_halide
-   @subpage tutorial_dnn_halide_scheduling
-   @subpage tutorial_dnn_openvino
-   @subpage tutorial_dnn_android
-   @subpage tutorial_dnn_yolo
-   @subpage tutorial_dnn_javascript
-   @subpage tutorial_dnn_custom_layers
-   @subpage tutorial_dnn_OCR
-   @subpage tutorial_dnn_text_spotting
-   @subpage tutorial_dnn_face

#### PyTorch models with OpenCV
In this section you will find the guides, which describe how to run classification, segmentation and detection PyTorch DNN models with OpenCV.
-   @subpage pytorch_cls_tutorial_dnn_conversion
-   @subpage pytorch_cls_c_tutorial_dnn_conversion
-   @subpage pytorch_segm_tutorial_dnn_conversion

#### TensorFlow models with OpenCV
In this section you will find the guides, which describe how to run classification, segmentation and detection TensorFlow DNN models with OpenCV.
-   @subpage tf_cls_tutorial_dnn_conversion
-   @subpage tf_det_tutorial_dnn_conversion
-   @subpage tf_segm_tutorial_dnn_conversion


text:
require 'xommelier/atom'

module Xommelier
  module Atom
    class Entry < Xml::Element
      include LinksExtension

      element :id, unique: true
      element :title
      element :updated, type: Time

      may do
        element :content, type: Content
        element :published, type: Time
        element :rights
        element :source
        element :summary
      end

      any do
        element :author,      type: Person
        element :category,    type: Category
        element :contributor, type: Person
        element :link,        type: Link
      end
    end
  end
end


text:
<?php

declare(strict_types=1);

namespace Overblog\GraphQLBundle\Config\Processor;

use function sprintf;

final class NamedConfigProcessor implements ProcessorInterface
{
    public static function process(array $configs): array
    {
        foreach ($configs as $name => &$config) {
            if (empty($config['class_name'])) {
                $config['class_name'] = sprintf('%sType', $name);
            }
            if (empty($config['config']['name'])) {
                $config['config']['name'] = $name;
            }
        }

        return $configs;
    }
}


text:
jsonrpc Package
===============

JSONRPC
-------

.. automodule:: jsonrpc.jsonrpc
    :members:
    :undoc-members:
    :show-inheritance:

Exceptions
----------

.. automodule:: jsonrpc.exceptions
    :members:
    :undoc-members:
    :show-inheritance:

Manager
-------

.. automodule:: jsonrpc.manager
    :members:
    :undoc-members:
    :show-inheritance:

jsonrpc.backend.django module
-----------------------------

.. automodule:: jsonrpc.backend.django
    :members:
    :undoc-members:
    :show-inheritance:


text:
#pragma once

#include <folly/CancellationToken.h>

namespace folly {

/**
 * Returns a CancellationToken that can be used to schedule callbacks. The
 * CancellationToken is cancelled when any of SIGTERM and SIGINT
 * signal is received.
 */
CancellationToken getTerminateCancellationToken();

} // namespace folly