text:
All URIs are relative to *https://kinto.dev.mozaws.net/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_collection**](CollectionsApi.md#create_collection) | **POST** /buckets/{bucket_id}/collections |
[**delete_collection**](CollectionsApi.md#delete_collection) | **DELETE** /buckets/{bucket_id}/collections/{collection_id} |
[**delete_collections**](CollectionsApi.md#delete_collections) | **DELETE** /buckets/{bucket_id}/collections |
[**get_collection**](CollectionsApi.md#get_collection) | **GET** /buckets/{bucket_id}/collections/{collection_id} |
[**get_collections**](CollectionsApi.md#get_collections) | **GET** /buckets/{bucket_id}/collections |
[**patch_collection**](CollectionsApi.md#patch_collection) | **PATCH** /buckets/{bucket_id}/collections/{collection_id} |
[**update_collection**](CollectionsApi.md#update_collection) | **PUT** /buckets/{bucket_id}/collections/{collection_id} |

# **create_collection**
> Collection create_collection(bucket_id, collection=collection, if_match=if_match, if_none_match=if_none_match)

Create a collection.

### Example
```python
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.CollectionsApi()
bucket_id = 'bucket_id_example' # str | Bucket id.
collection = swagger_client.Collection() # Collection | Collection information. (optional)
if_match = 'if_match_example' # str | Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. (optional)
if_none_match = 'if_none_match_example' # str | Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. (optional)

try:
    api_response = api_instance.create_collection(bucket_id, collection=collection, if_match=if_match, if_none_match=if_none_match)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CollectionsApi->create_collection: %s\n" % e)
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **bucket_id** | **str**| Bucket id. |
 **collection** | [**Collection**](Collection.md)| Collection information. | [optional]
 **if_match** | **str**| Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. | [optional]
 **if_none_match** | **str**| Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. | [optional]

### Return type

[**Collection**](Collection.md)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **delete_collection**
> Deleted delete_collection(bucket_id, collection_id, if_match=if_match, if_none_match=if_none_match, fields=fields)

Delete a collection.

### Example
```python
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.CollectionsApi()
bucket_id = 'bucket_id_example' # str | Bucket id.
collection_id = 'collection_id_example' # str | Colection id.
if_match = 'if_match_example' # str | Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. (optional)
if_none_match = 'if_none_match_example' # str | Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. (optional)
fields = ['fields_example'] # list[str] | Fields to compose response (id and last_modified are always returned). (optional)

try:
    api_response = api_instance.delete_collection(bucket_id, collection_id, if_match=if_match, if_none_match=if_none_match, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CollectionsApi->delete_collection: %s\n" % e)
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **bucket_id** | **str**| Bucket id. |
 **collection_id** | **str**| Colection id. |
 **if_match** | **str**| Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. | [optional]
 **if_none_match** | **str**| Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. | [optional]
 **fields** | [**list[str]**](str.md)| Fields to compose response (id and last_modified are always returned). | [optional]

### Return type

[**Deleted**](Deleted.md)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **delete_collections**
> List delete_collections(bucket_id, if_match=if_match, if_none_match=if_none_match, since=since, before=before, sort=sort)

Delete writable collections.

### Example
```python
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.CollectionsApi()
bucket_id = 'bucket_id_example' # str | Bucket id.
if_match = 'if_match_example' # str | Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. (optional)
if_none_match = 'if_none_match_example' # str | Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. (optional)
since = 56 # int | Get entries after a timestamp. (optional)
before = 56 # int | Get entries before a timestamp. (optional)
sort = ['sort_example'] # list[str] | Comma separeted list of fields to sort ascending on a list (use -field to sort descending). (optional)

try:
    api_response = api_instance.delete_collections(bucket_id, if_match=if_match, if_none_match=if_none_match, since=since, before=before, sort=sort)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CollectionsApi->delete_collections: %s\n" % e)
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **bucket_id** | **str**| Bucket id. |
 **if_match** | **str**| Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. | [optional]
 **if_none_match** | **str**| Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. | [optional]
 **since** | **int**| Get entries after a timestamp. | [optional]
 **before** | **int**| Get entries before a timestamp. | [optional]
 **sort** | [**list[str]**](str.md)| Comma separeted list of fields to sort ascending on a list (use -field to sort descending). | [optional]

### Return type

[**List**](List.md)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_collection**
> Collection get_collection(bucket_id, collection_id, if_match=if_match, if_none_match=if_none_match, fields=fields)

Retreive an existing collection.

### Example
```python
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.CollectionsApi()
bucket_id = 'bucket_id_example' # str | Bucket id.
collection_id = 'collection_id_example' # str | Colection id.
if_match = 'if_match_example' # str | Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. (optional)
if_none_match = 'if_none_match_example' # str | Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. (optional)
fields = ['fields_example'] # list[str] | Fields to compose response (id and last_modified are always returned). (optional)

try:
    api_response = api_instance.get_collection(bucket_id, collection_id, if_match=if_match, if_none_match=if_none_match, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CollectionsApi->get_collection: %s\n" % e)
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **bucket_id** | **str**| Bucket id. |
 **collection_id** | **str**| Colection id. |
 **if_match** | **str**| Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. | [optional]
 **if_none_match** | **str**| Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. | [optional]
 **fields** | [**list[str]**](str.md)| Fields to compose response (id and last_modified are always returned). | [optional]

### Return type

[**Collection**](Collection.md)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_collections**
> List get_collections(bucket_id, if_match=if_match, if_none_match=if_none_match, since=since, before=before, sort=sort, limit=limit, token=token, fields=fields)

List bucket's collections.

### Example
```python
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.CollectionsApi()
bucket_id = 'bucket_id_example' # str | Bucket id.
if_match = 'if_match_example' # str | Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. (optional)
if_none_match = 'if_none_match_example' # str | Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. (optional)
since = 56 # int | Get entries after a timestamp. (optional)
before = 56 # int | Get entries before a timestamp. (optional)
sort = ['sort_example'] # list[str] | Comma separeted list of fields to sort ascending on a list (use -field to sort descending). (optional)
limit = 56 # int | Limit objects on a list. (optional)
token = 'token_example' # str | Continuation token of a limited list. (optional)
fields = ['fields_example'] # list[str] | Fields to compose response (id and last_modified are always returned). (optional)

try:
    api_response = api_instance.get_collections(bucket_id, if_match=if_match, if_none_match=if_none_match, since=since, before=before, sort=sort, limit=limit, token=token, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CollectionsApi->get_collections: %s\n" % e)
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **bucket_id** | **str**| Bucket id. |
 **if_match** | **str**| Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. | [optional]
 **if_none_match** | **str**| Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. | [optional]
 **since** | **int**| Get entries after a timestamp. | [optional]
 **before** | **int**| Get entries before a timestamp. | [optional]
 **sort** | [**list[str]**](str.md)| Comma separeted list of fields to sort ascending on a list (use -field to sort descending). | [optional]
 **limit** | **int**| Limit objects on a list. | [optional]
 **token** | **str**| Continuation token of a limited list. | [optional]
 **fields** | [**list[str]**](str.md)| Fields to compose response (id and last_modified are always returned). | [optional]

### Return type

[**List**](List.md)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **patch_collection**
> Collection patch_collection(bucket_id, collection_id, collection=collection, if_match=if_match, if_none_match=if_none_match, fields=fields)

Modify an existing collection.

### Example
```python
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.CollectionsApi()
bucket_id = 'bucket_id_example' # str | Bucket id.
collection_id = 'collection_id_example' # str | Colection id.
collection = swagger_client.Collection() # Collection | Collection information. (optional)
if_match = 'if_match_example' # str | Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. (optional)
if_none_match = 'if_none_match_example' # str | Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. (optional)
fields = ['fields_example'] # list[str] | Fields to compose response (id and last_modified are always returned). (optional)

try:
    api_response = api_instance.patch_collection(bucket_id, collection_id, collection=collection, if_match=if_match, if_none_match=if_none_match, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CollectionsApi->patch_collection: %s\n" % e)
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **bucket_id** | **str**| Bucket id. |
 **collection_id** | **str**| Colection id. |
 **collection** | [**Collection**](Collection.md)| Collection information. | [optional]
 **if_match** | **str**| Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. | [optional]
 **if_none_match** | **str**| Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. | [optional]
 **fields** | [**list[str]**](str.md)| Fields to compose response (id and last_modified are always returned). | [optional]

### Return type

[**Collection**](Collection.md)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json, application/merge-patch+json, application/json-patch+json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **update_collection**
> Collection update_collection(bucket_id, collection_id, collection=collection, if_match=if_match, if_none_match=if_none_match, fields=fields)

Create or replace a collection.

### Example
```python
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = swagger_client.CollectionsApi()
bucket_id = 'bucket_id_example' # str | Bucket id.
collection_id = 'collection_id_example' # str | Colection id.
collection = swagger_client.Collection() # Collection | Collection information. (optional)
if_match = 'if_match_example' # str | Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. (optional)
if_none_match = 'if_none_match_example' # str | Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. (optional)
fields = ['fields_example'] # list[str] | Fields to compose response (id and last_modified are always returned). (optional)

try:
    api_response = api_instance.update_collection(bucket_id, collection_id, collection=collection, if_match=if_match, if_none_match=if_none_match, fields=fields)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CollectionsApi->update_collection: %s\n" % e)
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **bucket_id** | **str**| Bucket id. |
 **collection_id** | **str**| Colection id. |
 **collection** | [**Collection**](Collection.md)| Collection information. | [optional]
 **if_match** | **str**| Provide a timestamp to see if a resource has changed, avoid changes and returns 412 if it does. | [optional]
 **if_none_match** | **str**| Provide a timestamp to see if a resource has changed, avoid overwriting objects with the same id if it does. Returns 304 with empty body if nothing has changed. | [optional]
 **fields** | [**list[str]**](str.md)| Fields to compose response (id and last_modified are always returned). | [optional]

### Return type

[**Collection**](Collection.md)

### Authorization

[basicAuth](../README.md#basicAuth)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


text:
'use strict';

/**
 * @ngdoc directive
 * @name legendDirective
 * @description
 *  범례를 표시한다.
 */

angular.module('AirPollutionApp')
    .directive('infoDirective', function() {
        return {
            restrict: 'EA',
            templateUrl: "js/views/info.html"
        }
    });

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Kula\Core\Component\Twig\Form;

class PasswordField extends Field {

  public function html() {

    $html = '<input type="password"';
    $html .= $this->attributesToHTML();
    $html .= ' />';

    return $html;
  }

}


text:
var isEqual = require('./lodash.isequal');
var differenceWith = require('./lodash.differencewith');

function getProperties(obj) {
    var props = [];

    for (var prop in obj) {
        if (obj.hasOwnProperty(prop)) {
            props.push(prop);
        }
    }

    return props;
}

// get the longest property name/value
function getLongestTextLength(objArray) {
    var longest = 0;

    objArray.forEach(function(obj) {
        for (var prop in obj) {
            if (obj.hasOwnProperty(prop)) {
                var length = Math.max((prop + '').length, (obj[prop] + '').length);
                if (length > longest)
                    longest = length;
            }
        }
    });

    return longest;
}

window.console.table.diff = function(objArray, Ar2) {
    var objProto = objArray[0];
    var args = [];
    var header = '';

    var greenBackgd = 'background: lightgreen;';
    var redBackgd = 'background: lightcoral;';

    var baseStyles = 'padding: 2px; line-height: 18px; color: black; ';
    var baseBorders = 'border-top: 1px solid black; border-bottom: 1px solid black; border-left: 1px solid black; ';
    var headerStyles = baseStyles + baseBorders + 'font-weight: bold; background: lightblue;';
    var lastHeaderStyles = baseStyles + 'font-weight: bold; border: 1px solid black; background: lightblue;';

    var props = getProperties(objProto);
    var longestTextLength = getLongestTextLength(objArray);

    for (var i = 0; i < props.length; i++) {
        var prop = props[i] + '';

        // pad the text with spaces to match the longestTextLength
        while (prop.length < longestTextLength) {
            prop += ' ';
        }

        header += '%c' + prop.toUpperCase() + ' ';

        if (i === props.length - 1) {
            args.push(lastHeaderStyles);
        } else {
            args.push(headerStyles);
        }
    }

    var diffAr = differenceWith(objArray, Ar2, isEqual);
    var remAr = differenceWith(objArray, diffAr, isEqual);

    for (var i = 0; i < objArray.length; i++) {
        var obj = objArray[i];

        var rowStyles = baseStyles + baseBorders + greenBackgd;
        var lastRowStyles = baseStyles + 'border: 1px solid black; ' + greenBackgd;

        if (remAr.length != 0) {
            remAr.forEach(function(r) {
                if (isEqual(obj, r)) {
                    rowStyles = baseStyles + baseBorders + redBackgd;
                    lastRowStyles = baseStyles + 'border: 1px solid black; ' + redBackgd;
                }
            });
        }

        header += '\n';

        for (var j = 0; j < props.length; j++) {
            var val = obj[props[j]] + '';

            // pad the text with spaces to match the longestTextLength
            while (val.length < longestTextLength) {
                val += ' ';
            }

            header += '%c' + val + ' ';

            if (j === props.length - 1) {
                args.push(lastRowStyles);
            } else {
                args.push(rowStyles);
            }
        }
    }

    args.unshift(header);
    window.console.log.apply(this, args);
}

module.exports = window.console.table;


text:
export function routes($stateProvider, $urlRouterProvider, $locationProvider) {
    $urlRouterProvider.otherwise("/PageSelector");
    $locationProvider.html5Mode();
    $stateProvider
        .state("root", {
            url: "/",
            templateUrl: "/root.html"
        })
        .state("pageSelector", {
            url: "/PageSelector",
            templateUrl: "/PageSelector/PageSelector.html"
        })
        .state("pageSelector.index", {
            url: "/Index",
            templateUrl: "/index/index.html"
        })
        .state("pageSelector.dataAccess", {
            url: "/DataAccess",
            templateUrl: "/DataAccess/DataAccess.html"
        })
        .state("pageSelector.account", {
            url: "/Account",
            templateUrl: "/Account/Account.html"
        })
        .state("pageSelector.authorized", {
            url: "/Authorized",
            templateUrl: "/Authorized/Authorized.html"
        });
}


text:
import sensor
sensor.set_contrast(1)
sensor.set_gainceiling(8)

sensor.set_framesize(sensor.QVGA)
sensor.set_pixformat(sensor.JPEG)
sensor.set_quality (98)

with open("/test.jpeg", "w") as f:
    f.write(sensor.snapshot())


text:
<?php

namespace Surfnet\StepupBundle\Form\ChoiceList;

use Surfnet\StepupBundle\Exception\InvalidArgumentException;
use Symfony\Component\HttpFoundation\RequestStack;

final class LocaleChoiceList
{
    /**
     * @var string[]
     */
    private $locales;

    /**
     * @var \Symfony\Component\HttpFoundation\RequestStack
     */
    private $requestStack;

    /**
     * @param string[] $locales
     * @param RequestStack $requestStack
     */
    public function __construct(array $locales, RequestStack $requestStack)
    {
        foreach ($locales as $index => $locale) {
            if (!is_string($locale)) {
                throw InvalidArgumentException::invalidType('string', sprintf('locales[%s]', $index), $locale);
            }
        }

        $this->locales = $locales;
        $this->requestStack = $requestStack;
    }

    public function create()
    {
        return array_combine(
            array_map(function ($locale) { return 'locale.' . $locale; }, $this->locales),
            $this->locales
        );
    }
}


text:
    <% include ../partials/head.html %>

    <% include ./partials/head.html %>

    <meta name="description" content="Meta description">

    <% include ./partials/left-rail.html %>

We've made some custom animation functions that will transition your content. It's recommended to use this with our ScrollFire Plugin to make your content transition in as you scroll.

showStaggeredList

Use this to create a staggered reveal effect for any UL Tag with list items. Just make sure the list items in the UL are opacity: 0; to ensure the animation works correctly.

        Click Me

  <a href="#!" class="btn" onclick="Materialize.showStaggeredList('#staggered-test')">Click Me</a>

List Item

This is a description

List Item

This is a description

List Item

This is a description

List Item

This is a description

List Item

This is a description

fadeInImage

Use this to fade in images. It also animates grayscale and brightness to give it a unique effect.

        Click Me

  <a href="#!" class="btn" onclick="Materialize.fadeInImage('#image-test')">Click Me</a>

showStaggeredList

Materialize.fadeInImage

    <% include ../partials/footerScripts.html %>
    <% include ../partials/footerScripts-styleguide.html %>


text:
'use strict';

/**
 * @ngdoc overview
 * @name itisforgirls
 * @description
 * # itisforgirls
 *
 * Main module of the application.
 */
angular
  .module('itisforgirls', [
    'ngAnimate',
    'ngCookies',
    'ngResource',
    'ngRoute',
    'ngSanitize',
    'ngTouch'
  ])
  .config(function ($routeProvider, $locationProvider) {
    $routeProvider
      .when('/', {
        templateUrl: 'views/main.html',
        controller: 'MainCtrl'
      })
      .when('/about', {
        templateUrl: 'views/about.html',
        controller: 'AboutCtrl'
      })
        .when('/registration', {
          templateUrl: 'views/registration.html',
          controller : 'RegistrationCtrl'
        })
        .when('/admin/login', {
          templateUrl: 'views/admin_login.html',
          controller : 'AdminLoginCtrl'
        })
        .when('/admin/home', {
          templateUrl: 'views/admin_home.html',
          controller : 'AdminHomeCtrl'
        })
        .when('/admin/event', {
          templateUrl: 'views/create_event.html',
          controller : 'EventCreateCtrl'
        })
        .when('/admin/event/:event/:category', {
          templateUrl: 'views/new_project.html',
          controller : 'ProjectCreateCtrl'
        })
         .when('/vote/:email/:eventid', {
          templateUrl: 'views/vote.html',
          controller : 'VoteCtrl'
        })
        .when('/reports', {
          templateUrl: 'views/reports.html',
          controller : 'ReportsCtrl'
        })
        .when('/submitRating', {
          templateUrl: 'views/submitRating.html'
        })
        .when('/regConfirmation', {
          templateUrl: '/views/regConfirmation.html'
        })
      .otherwise({
        redirectTo: '/'
      });
  });


text:
package org.skywalking.apm.plugin.jetty.v9.client;

import java.lang.reflect.Method;
import org.eclipse.jetty.client.HttpRequest;
import org.eclipse.jetty.http.HttpFields;
import org.skywalking.apm.agent.core.context.CarrierItem;
import org.skywalking.apm.agent.core.context.ContextCarrier;
import org.skywalking.apm.agent.core.context.ContextManager;
import org.skywalking.apm.agent.core.context.tag.Tags;
import org.skywalking.apm.agent.core.context.trace.AbstractSpan;
import org.skywalking.apm.agent.core.context.trace.SpanLayer;
import org.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance;
import org.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
import org.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult;
import org.skywalking.apm.network.trace.component.ComponentsDefine;

public class SyncHttpRequestSendInterceptor implements InstanceMethodsAroundInterceptor {

    @Override
    public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes,
        MethodInterceptResult result) throws Throwable {
        HttpRequest request = (HttpRequest)objInst;
        ContextCarrier contextCarrier = new ContextCarrier();
        AbstractSpan span = ContextManager.createExitSpan(request.getURI().getPath(), contextCarrier, request.getHost() + ":" + request.getPort());
        span.setComponent(ComponentsDefine.JETTY_CLIENT);
        Tags.HTTP.METHOD.set(span, "GET");
        Tags.URL.set(span, request.getURI().toString());
        SpanLayer.asHttp(span);

        CarrierItem next = contextCarrier.items();
        HttpFields field = request.getHeaders();
        while (next.hasNext()) {
            next = next.next();
            field.add(next.getHeadKey(), next.getHeadValue());
        }
    }

    @Override
    public Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes,
        Object ret) throws Throwable {
        ContextManager.stopSpan();
        return ret;
    }

    @Override public void handleMethodException(EnhancedInstance objInst, Method method, Object[] allArguments,
        Class<?>[] argumentsTypes, Throwable t) {
        ContextManager.activeSpan().errorOccurred().log(t);
    }
}


text:
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;

namespace Amazon.DynamoDBv2.Model
{
    ///
    /// <para>The table name that consumed provisioned throughput, and the number of capacity units consumed by it. ConsumedCapacity is only
    /// returned if it was asked for in the request. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide
    /// .</para>
    ///
    public class ConsumedCapacity
    {

        private string tableName;
        private double? capacityUnits;

        ///
        /// The table that consumed the provisioned throughput.
        ///
        /// <para>
        /// Constraints:
        /// <list type="definition">
        ///     <item>
        ///         <term>Length</term>
        ///         <description>3 - 255</description>
        ///     </item>
        ///     <item>
        ///         <term>Pattern</term>
        ///         <description>[a-zA-Z0-9_.-]+</description>
        ///     </item>
        /// </list>
        /// </para>
        ///
        public string TableName
        {
            get { return this.tableName; }
            set { this.tableName = value; }
        }

        ///
        /// Sets the TableName property
        ///
        /// <param name="tableName">The value to set for the TableName property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public ConsumedCapacity WithTableName(string tableName)
        {
            this.tableName = tableName;
            return this;
        }

        // Check to see if TableName property is set
        internal bool IsSetTableName()
        {
            return this.tableName != null;
        }

        ///
        /// The total number of capacity units consumed.
        ///
        ///
        public double CapacityUnits
        {
            get { return this.capacityUnits ?? default(double); }
            set { this.capacityUnits = value; }
        }

        ///
        /// Sets the CapacityUnits property
        ///
        /// <param name="capacityUnits">The value to set for the CapacityUnits property </param>
        /// <returns>this instance</returns>
        [Obsolete("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")]
        public ConsumedCapacity WithCapacityUnits(double capacityUnits)
        {
            this.capacityUnits = capacityUnits;
            return this;
        }

        // Check to see if CapacityUnits property is set
        internal bool IsSetCapacityUnits()
        {
            return this.capacityUnits.HasValue;
        }
    }
}


text:
cite about-plugin
about-plugin 'load rvm, if you are using it'

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

# Check to make sure that RVM is actually loaded before adding
# the customizations to it.
if [ "$rvm_path" ]
then
    # Load the auto-completion script if RVM was loaded.
    [[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion

    switch () {
      rvm $1
      local v=$(rvm_version)
      rvm wrapper $1 textmate
      echo "Switch to Ruby version: "$v
    }

    rvm_default () {
      rvm --default $1
      rvm wrapper $1 textmate
    }

    function rvm_version () {
      ruby --version
    }

fi


text:
layout: page
title: Land Studios Show
date: 2016-05-24
author: Arthur Porter
tags: weekly links, java
status: published
summary: Nunc lacinia, nisl vel ullamcorper dignissim.
banner: images/banner/meeting-01.jpg
booking:
  startDate: 04/26/2018
  endDate: 04/27/2018
  ctyhocn: SCVOHHX
  groupCode: LSS
published: true
---
Cras eget quam auctor, elementum ipsum at, rhoncus mi. Vestibulum nec lacus diam. Ut pharetra ornare nisl, ut imperdiet urna luctus eget. Mauris sollicitudin est et sapien tristique pharetra. Vestibulum nec mauris eget tellus porta efficitur in ut neque. Etiam tempor augue arcu, eget auctor nisl fermentum non. Aliquam imperdiet risus non velit egestas feugiat.

1 Pellentesque vitae sem at tellus consectetur elementum
1 Duis sed diam quis neque tincidunt maximus.

Phasellus mollis, diam non feugiat maximus, massa eros tempor odio, ac pulvinar turpis odio at dui. Pellentesque ut magna ac lectus sodales consequat sit amet in nisi. Integer consectetur faucibus dolor, eget varius ligula eleifend non. Quisque lacinia tempor finibus. Aliquam erat volutpat. Morbi gravida efficitur dui nec mattis. Morbi iaculis scelerisque quam quis dignissim. Suspendisse vel diam eu urna viverra eleifend at condimentum justo. Curabitur blandit nulla orci, nec rhoncus neque suscipit ac. Proin in faucibus dolor, vitae rutrum orci.


text:
import express from "express";
import bodyParser from "body-parser";

import initRoutes from "./routes";
import { PORT } from "./config";

export default function initApp(cb) {
  const app = express(); // create the express app
  app.use(bodyParser.text()); // parse raw text body from HTTP request
  app.use(bodyParser.json()); // parse json body from HTTP request

  initRoutes(app); // initialize routes

  app.listen(PORT, () => cb(PORT)); // serve API at PORT
}


text:
import { AppElement } from './AppElement';
export declare class AppNode {
    element: HTMLElement | Text;
    parent: AppElement | null;
    constructor(element: HTMLElement | Text);
    remove(): AppNode;
    insertBefore(sibling: AppNode): AppNode;
    insertAfter(sibling: AppNode): AppNode;
    appendToDOM(dom: HTMLElement): AppNode;
}


text:
<?php

namespace Oro\Bundle\EntityConfigBundle\ImportExport\DataConverter;

use Oro\Bundle\ImportExportBundle\Context\ContextAwareInterface;
use Oro\Bundle\ImportExportBundle\Context\ContextInterface;
use Oro\Bundle\ImportExportBundle\Converter\AbstractTableDataConverter;

class EntityFieldDataConverter extends AbstractTableDataConverter implements ContextAwareInterface
{
    /** @var ContextInterface */
    protected $context;

    /**
     * {@inheritdoc}
     */
    public function setImportExportContext(ContextInterface $context)
    {
        $this->context = $context;
    }

    /**
     * {@inheritdoc}
     */
    public function convertToImportFormat(array $importedRecord, $skipNullValues = true)
    {
        if (empty($importedRecord['entity:id'])) {
            $importedRecord['entity:id'] = (int)$this->context->getOption('entity_id');
        }

        return parent::convertToImportFormat($importedRecord, $skipNullValues);
    }

    /**
     * {@inheritdoc}
     */
    protected function getBackendHeader()
    {
        throw new \RuntimeException('Normalization is not implemented!');
    }

    /**
     * {@inheritdoc}
     */
    protected function getHeaderConversionRules()
    {
        // CSV headers are used as is during import, we do not need extra rules
        return [];
    }
}


text:
static NSErrorDomain CSFileManagerError = @"CSFileManagerError";

@implementation CSFileUntil

+ (NSError *)createDirectory:(NSString *)path{
    if (!path) {
        return [NSError errorWithDomain:CSFileManagerError
                                   code:0
                               userInfo:@{NSLocalizedDescriptionKey : @"mkdir, the path is nil"}];
    }
    if (![CSFileManager fileExistsAtPath:path]) {
        NSError *error = nil;
        if ([CSFileManager createDirectoryAtPath:path withIntermediateDirectories:NO
                                      attributes:nil error:&error]) {
            return nil;//suc
        }else{
            return error;//fail
        }
    }
    return nil;//alerady have
}

+ (NSString *)createFileOnPath:(NSString *)filePath{
    if ([CSFileManager fileExistsAtPath:filePath]) {//already have
        return filePath;
    }
    if ([CSFileManager createFileAtPath:filePath contents:nil attributes:nil]) {//createfile
        return filePath;
    }
    return nil;
}

+ (NSString *)createFileOnDir:(NSString *)dirPath filename:(NSString *)filename{
    if (![CSFileManager fileExistsAtPath:dirPath]) {//doesn't have dir
        [self createDirectory:dirPath]; //create dir
    }
    NSString *filePath = [dirPath stringByAppendingPathComponent:filename];
    return [self createFileOnPath:filePath];
}

@end


text:
package rapture.kernel.schedule;

import rapture.common.CallingContext;
import rapture.common.JobErrorAck;
import rapture.common.JobErrorAckStorage;
import rapture.common.JobErrorType;
import rapture.common.JobExecStatus;
import rapture.common.JobType;
import rapture.common.LastJobExecStorage;
import rapture.common.RaptureJob;
import rapture.common.RaptureJobExec;
import rapture.common.RaptureJobExecStorage;
import rapture.common.RaptureJobStorage;
import rapture.common.RaptureURI;
import rapture.common.Scheme;
import rapture.common.UpcomingJobExecStorage;
import rapture.common.WorkOrderExecutionState;
import rapture.common.WorkflowJobDetails;
import rapture.common.WorkflowJobExecDetails;
import rapture.common.dp.StepRecord;
import rapture.common.dp.WorkOrderDebug;
import rapture.common.dp.WorkerDebug;
import rapture.common.impl.jackson.JacksonUtil;
import rapture.common.impl.jackson.JsonContent;
import rapture.kernel.Kernel;
import rapture.kernel.dp.StepRecordUtil;
import rapture.repo.RepoVisitor;

import java.util.LinkedList;
import java.util.List;

import org.apache.log4j.Logger;

/**
 * @author bardhi
 * @since 3/9/15.
 */
public class WorkflowExecsRepo {

    private static final Logger log = Logger.getLogger(WorkflowExecsRepo.class);
    private static final long OLD_EXEC_THRESHOLD_DELTA = 10L * 24 * 3600 * 1000;
    private static final long OLD_ACK_THRESHOLD_DELTA = 24L * 3600 * 1000;

    public List<WorkflowJobExecDetails> getLastWorkflowJobExecs(final CallingContext context) {
        final List<WorkflowJobExecDetails> ret = new LinkedList<WorkflowJobExecDetails>();
        Long lateThreshold = createLateThreshold();

        LastJobExecStorage.visitAll(createRepoVisitor(context, ret, lateThreshold, false));
        return ret;
    }

    private RepoVisitor createRepoVisitor(final CallingContext context, final List<WorkflowJobExecDetails> execDetailsList, final Long lateThreshold,
            final Boolean isUpcoming) {
        return new RepoVisitor() {
            @Override
            public boolean visit(String name, JsonContent content, boolean isFolder) {
                if (!isFolder) {
                    RaptureJobExec exec = RaptureJobExecStorage.readFromJson(content);
                    if (exec.getJobType() == JobType.WORKFLOW) {
                        WorkflowJobExecDetails current = new WorkflowJobExecDetails();
                        current.setJobStatus(exec.getStatus());
                        String jobURI = exec.getJobURI();
                        current.setJobURI(jobURI);
                        Long execTime = exec.getExecTime();
                        current.setStartDate(execTime);
                        RaptureJob job = RaptureJobStorage.readByFields(jobURI);
                        if (job != null) {
                            current.setParameters(job.getParams());
                            current.setPassedParams(exec.getPassedParams());

                            String sc = job.getScriptURI();
                            String workflowURI = RaptureURI.createFromFullPath(new RaptureURI(sc, Scheme.WORKFLOW).getFullPath(), Scheme.WORKFLOW).toString();

                            current.setWorkflowURI(workflowURI);
                            current.setMaxRuntimeMinutes(job.getMaxRuntimeMinutes());
                            String additionalDetails = exec.getExecDetails();
                            if (additionalDetails != null && additionalDetails.length() > 0) {

                                WorkflowJobDetails workflowJobDetails = JacksonUtil.objectFromJson(additionalDetails, WorkflowJobDetails.class);
                                String workOrderURI = workflowJobDetails.getWorkOrderURI();

                                if (workOrderURI != null) {
                                    current.setWorkOrderURI(workOrderURI);
                                    int afterSlash = workOrderURI.lastIndexOf("/") + 1;
                                    if (workOrderURI.length() > afterSlash) {
                                        String workOrderID = workOrderURI.substring(afterSlash);
                                        current.setWorkOrderID(workOrderID);
                                    }
                                }

                                WorkOrderDebug workOrderDebug = Kernel.getDecision().getWorkOrderDebug(context, workOrderURI);
                                if (workOrderDebug != null) {
                                    WorkOrderExecutionState workOrderStatus = workOrderDebug.getOrder().getStatus();
                                    current.setWorkOrderStatus(workOrderStatus);
                                    Long lastUpdated = 0L;
                                    for (WorkerDebug workerDebug : workOrderDebug.getWorkerDebugs()) {
                                        for (StepRecord record : StepRecordUtil.getStepRecords(workerDebug.getWorker())) {
                                            Long endTime = record.getEndTime();
                                            if (endTime != null && endTime > lastUpdated) {
                                                lastUpdated = endTime;
                                            } else {
                                                Long startTime = record.getStartTime();
                                                if (startTime != null && startTime > lastUpdated) {
                                                    lastUpdated = startTime;
                                                }
                                            }
                                        }

                                    }
                                    current.setLastUpdated(lastUpdated);
                                    if (workOrderStatus == WorkOrderExecutionState.NEW || workOrderStatus == WorkOrderExecutionState.ACTIVE) {
                                        Long now = System.currentTimeMillis();
                                        if (job.getMaxRuntimeMinutes() != -1) {
                                            long totalMillis = now - execTime;
                                            long overrunMillis = totalMillis - job.getMaxRuntimeMinutes() * 60 * 1000;
                                            if (overrunMillis > 0) {
                                                current.setOverrunMillis(overrunMillis);
                                            }
                                        }
                                    }
                                }
                            }

                            WorkOrderExecutionState workOrderStatus = current.getWorkOrderStatus();
                            JobExecStatus jobStatus = current.getJobStatus();

                            if (isUpcoming) {
                                if (ExecStatusHelper.isLate(lateThreshold, current)) {
                                    current.setPrettyStatus("Late");
                                    current.setNotes(String.format("Should have started %s ago",
                                            ExecStatusHelper.prettyDuration(lateThreshold - current.getStartDate())));
                                    JobErrorAck errorAck = JobErrorAckStorage.readByFields(jobURI, execTime);
                                    current.setErrorAck(errorAck);
                                } else {
                                    current.setPrettyStatus("Not yet");
                                }
                            } else {
                                JobErrorAck errorAck = JobErrorAckStorage.readByFields(jobURI, execTime);
                                if (ExecStatusHelper.isSuccess(workOrderStatus, jobStatus)) {
                                    current.setPrettyStatus("Finished");
                                } else {
                                    current.setPrettyStatus("Running");
                                    if (ExecStatusHelper.isOk(workOrderStatus, jobStatus, current)) {
                                        current.setNotes("Still running");
                                    }
                                }
                                if (ExecStatusHelper.isFailed(workOrderStatus, jobStatus)) {
                                    if (workOrderStatus != null) {
                                        current.setPrettyStatus(workOrderStatus.toString());
                                    } else {
                                        current.setPrettyStatus("Failed to start");
                                    }
                                    if (errorAck != null && errorAck.getErrorType() == JobErrorType.FAILED) {
                                        current.setErrorAck(errorAck);
                                    }

                                } else if (ExecStatusHelper.isOverrun(current)) {
                                    current.setPrettyStatus(workOrderStatus.toString());
                                    String prettyOverrun = ExecStatusHelper.prettyDuration(current.getOverrunMillis());
                                    current.setNotes(String.format("Over by %s", prettyOverrun));

                                    if (errorAck != null && errorAck.getErrorType() == JobErrorType.OVERRUN) {
                                        current.setErrorAck(errorAck);
                                    }
                                }
                            }
                            JobErrorAck errorAck = current.getErrorAck();
                            if (errorAck != null && isExecOld(current) && isAckOld(errorAck)) {
                                if (log.isTraceEnabled()) {
                                    log.trace(String.format("Ignoring old acked exec, workflow=[%s], workorder=[%s], time=[%s]", current.getWorkflowURI(),
                                            current.getWorkOrderURI(), current.getStartDate()));
                                }
                            } else if (isOldDisabledOkJob(current, job)) {
                                if (log.isTraceEnabled()) {
                                    log.trace(String.format("Ignoring old OK workflow workflow=[%s], workorder=[%s], time=[%s]", current.getWorkflowURI(),
                                            current.getWorkOrderURI(), current.getStartDate()));
                                }
                            } else {
                                execDetailsList.add(current);
                            }
                        } else {
                            log.error(String.format("Unable to find job %s for execution %s ", jobURI, execTime));
                        }
                    }
                }
                return true;
            }

        };
    }

    /**
     * Returns true if an execution is old, the corresponding job is now disabled, and this execution suceeded
     *
     * @param exec
     * @param job
     * @return
     */
    private boolean isOldDisabledOkJob(WorkflowJobExecDetails exec, RaptureJob job) {
        boolean isOkAndNotLate =
                ExecStatusHelper.isOk(exec.getWorkOrderStatus(), exec.getJobStatus(), exec) && !ExecStatusHelper.isLate(createLateThreshold(), exec);

        boolean isSuccess = ExecStatusHelper.isSuccess(exec.getWorkOrderStatus(), exec.getJobStatus());
        boolean statusGreen = isOkAndNotLate || isSuccess;

        return !job.getActivated() && statusGreen && isExecOld(exec);
    }

    /**
     * Filter out execs execs that are too old
     *
     * @param execDetails
     * @return
     */
    private boolean isExecOld(WorkflowJobExecDetails execDetails) {
        Long timestamp;
        if (execDetails.getLastUpdated() != null) {
            timestamp = execDetails.getLastUpdated();
        } else {
            timestamp = execDetails.getStartDate();
        }
        long now = System.currentTimeMillis();
        Long earliestExecThreshold = now - OLD_EXEC_THRESHOLD_DELTA;
        return timestamp == null || timestamp < earliestExecThreshold;
    }

    /**
     * Filter out acks that are old
     *
     * @param errorAck
     * @return
     */
    private boolean isAckOld(JobErrorAck errorAck) {
        long now = System.currentTimeMillis();
        if (errorAck != null) {
            Long ackTime = errorAck.getTimestamp();
            Long earliestAckThreshold = now - OLD_ACK_THRESHOLD_DELTA;
            return ackTime == null || ackTime < earliestAckThreshold;
        } else {
            return true;
        }
    }

    public Long createLateThreshold() {
        // give the scheduler 1 minute leeway
        return System.currentTimeMillis() - 60 * 1000;
    }

    public List<WorkflowJobExecDetails> getUpcomingWorkflowJobExecs(final CallingContext context) {
        final List<WorkflowJobExecDetails> ret = new LinkedList<WorkflowJobExecDetails>();
        Long lateThreshold = createLateThreshold();

        UpcomingJobExecStorage.visitAll(createRepoVisitor(context, ret, lateThreshold, true));
        return ret;
    }
}


text:
import { IElement } from '../Element';
import { DomElementParent } from '../DomElementParent';
export default class Table extends DomElementParent implements IElement {
    public sortable?: string;

    generate() : HTMLElement{
        var element = document.createElement("table");

        if (this.id) {
            element.id = this.id;
        }

        var styleString = this.style.generateCSS();
        if (styleString) {
            element.setAttribute('style', styleString);
        }
        if (this.className) {
            element.className = this.className;
        }

        if (this.sortable) {
            element.setAttribute('sortable', this.sortable);
        }

        for(let child of this.children)
        {
            element.appendChild(child.generate());
        }

        return element;
    }
}


text: jquery.empuzzle


text:
var app = app || {};
app.index = app.index || {};

app.index.DynamicModel = function (data) {
    var self = this;
    self.activeCategory = data.activeCategory;
    self.activeCategoryDescription = ko.computed(function () {
        return self.activeCategory.description ? self.activeCategory.description : self.activeCategory.name;
    });
    self.activeGrandParentCategory = data.activeGrandParentCategory;
    self.parentCategories = data.parentCategories;
    self.activePosts = data.activePosts;

};


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.nms</groupId>
    <artifactId>football_getter</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>Football Data Getter</name>
    <description>Get football data from xmlsoccer and push into db</description>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc14</artifactId>
            <version>10.2.0.5.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <build>
        <finalName>football-data-getter</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${compile.version}</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.4.3</version>
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <java.version>1.6</java.version>
        <compile.version>3.1</compile.version>
        <junit.version>4.11</junit.version>
        <ojdbc14.version>10.2.0.4.0</ojdbc14.version>
    </properties>
</project>


text:
package com.duang.easyecard.Activity;

import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;

import com.duang.easyecard.GlobalData.MyApplication;
import com.duang.easyecard.Model.SettingsListViewItem;
import com.duang.easyecard.R;
import com.duang.easyecard.Util.LogUtil;
import com.duang.easyecard.Util.SettingsListViewAdapter;
import com.pgyersdk.crash.PgyCrashManager;
import com.pgyersdk.feedback.PgyFeedback;
import com.pgyersdk.javabean.AppBean;
import com.pgyersdk.update.PgyUpdateManager;
import com.pgyersdk.update.UpdateManagerListener;

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

import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * SettingsFragment 设置
 * A simple {@link Fragment} subclass.
 */
public class SettingsFragment extends Fragment implements AdapterView.OnItemClickListener {

    private static final int arrowResId = R.drawable.ic_keyboard_arrow_right_black_24dp;
    private final int MY_PERMISSIONS_REQUEST_RECORD_AUDIO = 1;
    private final String TAG = "SettingsFragment";
    private View viewFragment;
    private ListView mListView;
    private int[] iconImageArray = {
            R.drawable.ic_assignment_ind_cyan_a700_36dp,
            R.drawable.ic_share_blue_900_36dp,
            R.drawable.ic_update_teal_a700_36dp,
            R.drawable.ic_feedback_amber_a400_36dp,
            R.drawable.ic_code_pink_500_36dp,
            R.drawable.ic_exit_to_app_blue_grey_500_36dp
    };

    public SettingsFragment() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        viewFragment = inflater.inflate(R.layout.fragment_settings, container, false);
        initView();
        initData();
        return viewFragment;
    }

    private void initView() {
        // 实例化控件
        mListView = (ListView) viewFragment.findViewById(R.id.settings_list_view);
    }

    private void initData() {
        // ItemTitle
        String[] titleArray = new String[]{
                getString(R.string.settings_personal_information),
                getString(R.string.settings_share_app),
                getString(R.string.settings_update),
                getString(R.string.settings_feedback),
                getString(R.string.settings_about),
                getString(R.string.sign_off)
        };
        List<SettingsListViewItem> dataList = new ArrayList<>();
        SettingsListViewItem item;
        if (iconImageArray.length == titleArray.length) {
            for (int i = 0; i < titleArray.length; i++) {
                item = new SettingsListViewItem(titleArray[i]);
                item.setIconResId(iconImageArray[i]);
                item.setArrowResId(arrowResId);
                dataList.add(item);
            }
        } else {
            // 数据数目不匹配
            LogUtil.e(TAG, "Error: Arrays' lengths don't match.");
        }
        SettingsListViewAdapter mAdapter = new SettingsListViewAdapter(MyApplication.getContext(), dataList,
                R.layout.item_settings_fragment_list);
        mListView.setAdapter(mAdapter);
        mListView.setOnItemClickListener(this);
    }

    @Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        LogUtil.d(TAG, "onItemClick: " + position);
        switch (position) {
            case 0:
                // 个人信息
                startActivity(new Intent(MyApplication.getContext(),
                        SettingsPersonalInformationActivity.class));
                break;
            case 1:
                // 分享应用
                Intent intent = new Intent(Intent.ACTION_SEND);
                intent.setType("text/plain");
                intent.putExtra(Intent.EXTRA_TEXT,
                        getString(R.string.settings_share_app_download_link));
                startActivity(Intent.createChooser(intent, getString(R.string.settings_share_app)));
                break;
            case 2:
                // 检查更新
                checkForUpdate(true);
                break;
            case 3:
                // 意见反馈
                // 处理用户权限
                if (ContextCompat.checkSelfPermission(MyApplication.getContext(),
                        Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) {
                    Toast.makeText(MyApplication.getContext(),
                            getString(R.string.settings_feedback_permission_note),
                            Toast.LENGTH_LONG).show();
                    ActivityCompat.requestPermissions(getActivity(),
                            new String[]{Manifest.permission.RECORD_AUDIO},
                            MY_PERMISSIONS_REQUEST_RECORD_AUDIO);
                } else {
                    // 显示用户反馈对话框
                    PgyFeedback.getInstance().showDialog(getActivity());
                }
                break;
            case 4:
                // 关于软件
                startActivity(new Intent(MyApplication.getContext(),
                        SettingsAboutActivity.class));
                break;
            case 5:
                // 退出登录
                new SweetAlertDialog(getActivity(), SweetAlertDialog.WARNING_TYPE)
                        .setTitleText(getString(R.string.sign_off))
                        .setContentText(getString(R.string.sign_off_config))
                        .setConfirmText(getString(R.string.OK))
                        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {
                            @Override
                            public void onClick(SweetAlertDialog sweetAlertDialog) {
                                // 点击"确定"按钮,销毁MainActivity,跳转到SigninActivity
                                signOff();
                                sweetAlertDialog.dismiss();
                            }
                        })
                        .setCancelText(getString(R.string.Cancel))
                        .show();
                break;
            default:
                break;
        }
    }

    // 检查更新
    private void checkForUpdate(final boolean flag) {
        PgyUpdateManager.register(getActivity(), new UpdateManagerListener() {
            @Override
            public void onNoUpdateAvailable() {
                // 没有可用更新
                if (flag) {
                    Toast.makeText(MyApplication.getContext(),
                            getString(R.string.settings_no_update_available),
                            Toast.LENGTH_SHORT).show();
                }
            }

            @Override
            public void onUpdateAvailable(String result) {
                // 有可用更新
                LogUtil.d(TAG, "A new version of this app is available.");
                // 获取当前版本名称
                String currentVersionName = getString(
                        R.string.settings_update_current_version_name_default);
                try {
                    currentVersionName = getActivity().getPackageManager().getPackageInfo(
                            MyApplication.getContext().getPackageName(), 0).versionName;
                } catch (Exception e) {
                    LogUtil.e(TAG, "Exception when getting version name.");
                    PgyCrashManager.reportCaughtException(MyApplication.getContext(), e);
                    e.printStackTrace();
                }
                // 将新版本信息封装到AppBean中
                final AppBean appBean = getAppBeanFromString(result);
                SweetAlertDialog sweetAlertDialog = new SweetAlertDialog(getActivity(),
                        SweetAlertDialog.NORMAL_TYPE);
                sweetAlertDialog
                        .setTitleText(getString(R.string.settings_update_new_version_available))
                        .setContentText(getString(R.string.settings_update_current_version_name)
                                + currentVersionName + "\n"
                                + getString(R.string.settings_update_new_version_name)
                                + appBean.getVersionName() + "\n"
                                + getString(R.string.settings_update_new_version_release_note)
                                + appBean.getReleaseNote())
                        .setCancelText(getString(R.string.settings_update_later))
                        .setCancelClickListener(new SweetAlertDialog.OnSweetClickListener() {
                            @Override
                            public void onClick(SweetAlertDialog sweetAlertDialog) {
                                // 以后再说
                                sweetAlertDialog.dismiss();
                            }
                        })
                        .setConfirmText(getString(R.string.settings_update_now))
                        .setConfirmClickListener(new SweetAlertDialog.OnSweetClickListener() {
                            @Override
                            public void onClick(SweetAlertDialog sweetAlertDialog) {
                                // 立即下载更新
                                startDownloadTask(getActivity(), appBean.getDownloadURL());
                                sweetAlertDialog.dismiss();
                            }
                        })
                        .show();
            }
        });
    }

    // 注销
    private void signOff() {
        // 将全局变量httpClient和userBasicInformation设置为null
        MyApplication myApp = (MyApplication) getActivity().getApplication();
        myApp.setHttpClient(null);
        myApp.setUserBasicInformation(null);
        // 跳转到SigninActivity
        startActivity(new Intent(MyApplication.getContext(), SignInActivity.class));
        // 销毁MainActivity
        getActivity().finish();
    }

    @Override
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
                                           int[] grantResults) {

        if (requestCode == MY_PERMISSIONS_REQUEST_RECORD_AUDIO) {
            if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
                // 显示用户反馈对话框
                PgyFeedback.getInstance().showDialog(getActivity());
            } else {
                // Permission Denied
                Toast.makeText(MyApplication.getContext(),
                        "Permission Denied", Toast.LENGTH_SHORT).show();
            }
            return;
        }
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    }
}


text:
'use strict';

var quotes = [
    {quote:'A champion is someone who gets up when he can\'t.',author:'Jack Dempsey',authorImgUrl:'http://www.georgeforeman.com/images/champions/large/fight_dempsey_large.png'},
    {quote:'A good coach will make his players see what they can be rather than what they are.',author:'Ara Parasheghian',authorImgUrl:'http://d.wapday.com:8080/animation/ccontennt/13191-f/coach_with_football.gif?__sid=ggl&lang=en'}
];

//var updateQuotes = (function($scope) {
//    var i = Math.round((Math.random()) * quotes.length);
//    if (i === quotes.length){
//        --i;
//    }
//    $scope.quote = html(quotes[i]);
//}, 5 * 1000);

angular.module('mean.system').controller('IndexController', ['$scope', 'Global', function($scope, Global) {
        $scope.global = Global;
        $scope.quote = quotes[0].quote;
        $scope.author = quotes[0].author;
        $scope.authorImgUrl = quotes[0].authorImgUrl;
    }]);


text:
package org.jbpm.bpmn2.xml;

import org.drools.core.xml.ExtensibleXmlParser;
import org.jbpm.workflow.core.Node;
import org.w3c.dom.Element;
import org.xml.sax.SAXException;

public class TransactionHandler extends SubProcessHandler {

	protected void handleNode(final Node node, final Element element, final String uri,
            final String localName, final ExtensibleXmlParser parser) throws SAXException {
    	super.handleNode(node, element, uri, localName, parser);
    	node.setMetaData("Transaction", true);
    }

    public void writeNode(Node node, StringBuilder xmlDump, boolean includeMeta) {
        throw new IllegalArgumentException("Writing out should be handled by specific handlers");
    }

}


text:
<?php

use yii\db\Schema;
use yii\db\Migration;

class m160220_115437_adding_rates_table extends Migration
{
    public function up()
    {
        $this->createTable('rate', [
            'id' => $this->primaryKey(11),
            'create_date' => Schema::TYPE_DATETIME . ' NOT NULL DEFAULT NOW()',
            'route' => Schema::TYPE_INTEGER . ' NOT NULL',
            'origin_city' => Schema::TYPE_STRING . '(3) NOT NULL',
            'destination_city' => Schema::TYPE_STRING . '(3) NOT NULL',
            'there_date' => Schema::TYPE_DATETIME . ' NOT NULL',
            'back_date' => Schema::TYPE_DATETIME . ' NULL',
            'airline' => Schema::TYPE_INTEGER . ' NOT NULL',
            'flight_number' => Schema::TYPE_STRING . '(5) NOT NULL',
            'currency' => Schema::TYPE_STRING . '(3) NOT NULL',
            'price' => Schema::TYPE_DECIMAL . '(10,2) NOT NULL',
        ], "DEFAULT CHARSET=utf8");

        $this->addForeignKey('fk_rate_route_id', 'rate', 'route', 'route', 'id', 'RESTRICT', 'RESTRICT');
        $this->addForeignKey('fk_rate_origin_city_code', 'rate', 'origin_city', 'city', 'code', 'RESTRICT', 'RESTRICT');
        $this->addForeignKey('fk_rate_destination_city_code', 'rate', 'destination_city', 'city', 'code', 'RESTRICT', 'RESTRICT');
        $this->addForeignKey('fk_rate_airline_id', 'rate', 'airline', 'airline', 'id', 'RESTRICT', 'RESTRICT');
        $this->addForeignKey('fk_rate_currency_code', 'rate', 'currency', 'currency', 'code', 'RESTRICT', 'RESTRICT');

    }

    public function down()
    {
        $this->dropForeignKey('fk_rate_currency_code', 'rate');
        $this->dropForeignKey('fk_rate_airline_id', 'rate');
        $this->dropForeignKey('fk_rate_destination_city_code', 'rate');
        $this->dropForeignKey('fk_rate_origin_city_code', 'rate');
        $this->dropForeignKey('fk_rate_route_id', 'rate');

        $this->dropTable('rate');
    }
}


text:
  <button type="button" class="close" ng-click="cancel()" aria-label="Close">×</button>

    Create Token
    Edit Token

  <button type="button" class="close" ng-click="close()" aria-label="Close">×</button>

Token Pickup

<form name="createForm" class="form-horizontal" role="form" novalidate>

      Name

      <input name="name" ng-model="apiKey.name" placeholder="ExampleService" class="form-control" required/>

You must enter an api key name

      User

      <input type="text" ng-model="apiKey.user" placeholder="My username..."
             uib-typeahead="user.username for user in userService.findUserByName($viewValue)" typeahead-loading="loadingUsers"
             class="form-control input-md" typeahead-on-select="apiKey.attachUser($item)"
             uib-tooltip="This user will be tied to the generated key. All key permissions will mirror the users. Current user is the default."
             uib-tooltip-trigger="focus" uib-tooltip-placement="top" typeahead-wait-ms="500">

You must enter an API Key User ID.

      TTL

      <input name="ttl" ng-model="apiKey.ttl" placeholder="-1" class="form-control" type="number"
             uib-tooltip="Number of days for the token to last. -1 meaning the token will not expire."
             uib-tooltip-trigger="focus" uib-tooltip-placement="top" required/>

You must enter an API Key TTL.

</form>

Pass the following token on every Lemur API request:

{{ jwt }}

Example usage:

curl -i {{ origin }}/api/1/certificates -H "Authorization: Bearer {{ jwt }}"

  <button ng-click="save(apiKey)" type="submit" ng-disabled="createForm.$invalid" class="btn btn-primary">Save</button>
  <button ng-click="cancel()" class="btn btn-danger">Cancel</button>

  <button ng-click="close()" class="btn btn-primary">Close</button>


text:
package com.github.jvmgo.instructions.conversions;

import com.github.jvmgo.instructions.base.NoOperandsInstruction;
import com.github.jvmgo.rtda.Frame;
import com.github.jvmgo.rtda.OperandStack;

public class f2d extends NoOperandsInstruction {
    @Override
    public int getOpCode() {
        return 0x8d;
    }

    @Override
    public void execute(Frame frame) throws Exception {
        OperandStack operandStack = frame.getOperandStack();
        operandStack.pushDouble(operandStack.popFloat());
    }
}


text:
package v1alpha3

import (
	"fmt"

	"github.com/pkg/errors"

	apis "github.com/openebs/maya/pkg/apis/openebs.io/v1alpha1"
	clientset "github.com/openebs/maya/pkg/client/generated/clientset/versioned"
	kclient "github.com/openebs/maya/pkg/kubernetes/client/v1alpha1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	"k8s.io/client-go/rest"
	"k8s.io/client-go/tools/clientcmd"
)

// getClientsetFn is a typed function that
// abstracts fetching of internal clientset
type getClientsetFn func() (clientset *clientset.Clientset, err error)

// listFn is a typed function that abstracts
// listing of cstor pool
type listFn func(
	cli *clientset.Clientset,
	opts metav1.ListOptions,
) (*apis.CStorPoolList, error)

type getFn func(
	cli *clientset.Clientset,
	name string,
	opts metav1.GetOptions,
) (*apis.CStorPool, error)

// deleteFn is a typed function that abstracts
// deletion of cstor pool
type deleteFn func(
	cli *clientset.Clientset,
	name string,
	opts *metav1.DeleteOptions,
) (*apis.CStorPool, error)

// deleteCollectionFn is a typed function that abstracts
// deletion of csp's collection
type deleteCollectionFn func(
	cli *clientset.Clientset,
	listOpts metav1.ListOptions,
	deleteOpts *metav1.DeleteOptions,
) error

type patchFn func(
	cli *clientset.Clientset,
	name string,
	pt types.PatchType,
	data []byte,
) (*apis.CStorPool, error)

// Kubeclient enables kubernetes API operations
// on cstor storage pool instance
type Kubeclient struct {
	// clientset refers to cstor storage pool's
	// clientset that will be responsible to
	// make kubernetes API calls
	clientset *clientset.Clientset

	// functions useful during mocking
	getClientset  getClientsetFn
	get           getFn
	list          listFn
	del           deleteFn
	delCollection deleteCollectionFn
	patch         patchFn
}

// KubeclientBuildOption defines the abstraction
// to build a kubeclient instance
type KubeclientBuildOption func(*Kubeclient)

func defaultGetClientset() (clients *clientset.Clientset, err error) {
	config, err := kclient.New().Config()
	if err != nil {
		return nil, err
	}
	return clientset.NewForConfig(config)
}

func defaultList(
	cli *clientset.Clientset,
	opts metav1.ListOptions,
) (*apis.CStorPoolList, error) {
	return cli.OpenebsV1alpha1().CStorPools().List(opts)
}

func defaultGet(
	cli *clientset.Clientset,
	name string,
	opts metav1.GetOptions,
) (*apis.CStorPool, error) {
	return cli.OpenebsV1alpha1().CStorPools().Get(name, opts)
}

func defaultDel(
	cli *clientset.Clientset,
	name string,
	opts *metav1.DeleteOptions,
) (*apis.CStorPool, error) {
	return nil, cli.OpenebsV1alpha1().CStorPools().Delete(name, opts)
}

func defaultDelCollection(
	cs *clientset.Clientset,
	listOpts metav1.ListOptions,
	deleteOpts *metav1.DeleteOptions,
) error {
	return cs.OpenebsV1alpha1().
		CStorPools().
		DeleteCollection(deleteOpts, listOpts)
}

func defaultPatch(
	cli *clientset.Clientset,
	name string,
	pt types.PatchType,
	data []byte,
) (*apis.CStorPool, error) {
	return cli.OpenebsV1alpha1().
		CStorPools().
		Patch(name, pt, data)
}

// withDefaults sets the default options
// of kubeclient instance
func (k *Kubeclient) withDefaults() {
	if k.getClientset == nil {
		k.getClientset = defaultGetClientset
	}
	if k.get == nil {
		k.get = defaultGet
	}
	if k.list == nil {
		k.list = defaultList
	}
	if k.del == nil {
		k.del = defaultDel
	}
	if k.delCollection == nil {
		k.delCollection = defaultDelCollection
	}
	if k.patch == nil {
		k.patch = defaultPatch
	}
}

// WithKubeClient sets the kubernetes client against
// the kubeclient instance
func WithKubeClient(c *clientset.Clientset) KubeclientBuildOption {
	return func(k *Kubeclient) {
		k.clientset = c
	}
}

// WithKubeConfigPath sets the client using the kubeconfig path
func (k *Kubeclient) WithKubeConfigPath(kubeconfig string) (*Kubeclient, error) {
	cfg, err := getClusterConfig(kubeconfig)
	if err != nil {
		return nil, fmt.Errorf("Error building kubeconfig: %s", err.Error())
	}

	// Building OpenEBS Clientset
	openebsClient, err := clientset.NewForConfig(cfg)
	if err != nil {
		return nil, fmt.Errorf("Error building openebs clientset: %s", err.Error())
	}
	k.clientset = openebsClient
	return k, nil
}

func getClusterConfig(kubeconfig string) (*rest.Config, error) {
	cfg, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
	if err != nil {
		return nil, fmt.Errorf("Error building kubeconfig: %s", err.Error())
	}
	return cfg, err
}

// KubeClient returns a new instance of kubeclient meant for
// cstor volume replica operations
func KubeClient(opts ...KubeclientBuildOption) *Kubeclient {
	k := &Kubeclient{}
	for _, o := range opts {
		o(k)
	}
	k.withDefaults()
	return k
}

// getClientOrCached returns either a new instance
// of kubernetes client or its cached copy
func (k *Kubeclient) getClientOrCached() (*clientset.Clientset, error) {
	if k.clientset != nil {
		return k.clientset, nil
	}
	c, err := k.getClientset()
	if err != nil {
		return nil, err
	}
	k.clientset = c
	return k.clientset, nil
}

// Get returns cstor pool
// instances present in kubernetes cluster
func (k *Kubeclient) Get(
	name string,
	opts metav1.GetOptions,
) (*apis.CStorPool, error) {
	cli, err := k.getClientOrCached()
	if err != nil {
		return nil, err
	}
	return k.get(cli, name, opts)
}

// List returns a list of cstor pool
// instances present in kubernetes cluster
func (k *Kubeclient) List(opts metav1.ListOptions) (*apis.CStorPoolList, error) {
	cli, err := k.getClientOrCached()
	if err != nil {
		return nil, err
	}
	return k.list(cli, opts)
}

// Delete deletes a cstor pool
// instances present in kubernetes cluster
func (k *Kubeclient) Delete(name string, opts *metav1.DeleteOptions) (*apis.CStorPool, error) {
	cli, err := k.getClientOrCached()
	if err != nil {
		return nil, err
	}
	return k.del(cli, name, opts)
}

// DeleteCollection deletes a collection of csp objects.
func (k *Kubeclient) DeleteCollection(listOpts metav1.ListOptions, deleteOpts *metav1.DeleteOptions) error {
	cli, err := k.getClientOrCached()
	if err != nil {
		return errors.Wrapf(
			err,
			"failed to delete the collection of csps having label %s",
			listOpts.LabelSelector,
		)
	}
	return k.delCollection(cli, listOpts, deleteOpts)
}

// Patch patches a cstor pool
// instances present in kubernetes cluster
func (k *Kubeclient) Patch(
	name string,
	pt types.PatchType,
	data []byte,
) (*apis.CStorPool, error) {
	cli, err := k.getClientOrCached()
	if err != nil {
		return nil, err
	}
	return k.patch(cli, name, pt, data)
}


text:
package org.apache.hyracks.dataflow.std.util;

import java.util.Arrays;

public class StringSerializationUtils {
    public static String toString(Object object) {
        if (object instanceof Object[]) {
            return Arrays.deepToString((Object[]) object);
        } else {
            return String.valueOf(object);
        }
    }
}


text:
using UnityEngine;
using System;
using System.Collections.Generic;
using TwoDEngine.FSMCore.Conditions;

namespace TwoDEngine {
  namespace FSMCore {
    namespace Behaviours {
      public class StopSoundBehaviour : FSMBehaviour {
        public AudioSource audioSource;

        public StopSoundBehaviour(GameObject gameObject, AudioSource audioSource) : base(gameObject) {
          this.audioSource = audioSource;
        }

        public override void Behave(ref Dictionary<string, object> parameters) {
          if(this.audioSource.isPlaying){
            audioSource.Stop();
          }
        }

      }
    }
  }
}


text:
"Planet Cute" and "Space Cute" art by Daniel Cook (Lostgarden.com):
  http://www.lostgarden.com/2007/05/dancs-miraculously-flexible-game.html
  http://www.lostgarden.com/2007/03/spacecute-prototyping-challenge.html

Lost Garden License: http://www.lostgarden.com/search/label/License


text:
Litecoin Core version 0.16.2 is now available from:

  <https://download.litecoin.org/litecoin-0.16.2/>

This is a new minor version release, with various bugfixes
as well as updated translations.

Please report bugs using the issue tracker at GitHub:

  <https://github.com/litecoin-project/litecoin/issues>

To receive security and update notifications, please subscribe to:

  <https://groups.google.com/forum/#!forum/litecoin-dev>

How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely
shut down (which might take a few minutes for older versions), then run the
installer (on Windows) or just copy over `/Applications/Litecoin-Qt` (on Mac)
or `litecoind`/`litecoin-qt` (on Linux).

The first time you run version 0.15.0 or newer, your chainstate database will be converted to a
new format, which will take anywhere from a few minutes to half an hour,
depending on the speed of your machine.

Note that the block database format also changed in version 0.8.0 and there is no
automatic upgrade code from before version 0.8 to version 0.15.0 or higher. Upgrading
directly from 0.7.x and earlier without re-downloading the blockchain is not supported.
However, as usual, old wallet versions are still supported.

Downgrading warning
-------------------

Wallets created in 0.16 and later are not compatible with versions prior to 0.16
and will not work if you try to use newly created wallets in older versions. Existing
wallets that were created with older versions are not affected by this.

Compatibility
==============

Litecoin Core is extensively tested on multiple operating systems using
the Linux kernel, macOS 10.8+, and Windows Vista and later. Windows XP is not supported.

Litecoin Core should also work on most other Unix-like systems but is not
frequently tested on them.

Notable changes
===============

Miner block size removed
------------------------

The `-blockmaxsize` option for miners to limit their blocks' sizes was
deprecated in version 0.15.1, and has now been removed. Miners should use the
`-blockmaxweight` option if they want to limit the weight of their blocks'
weights.

0.16.2 change log
------------------

### Policy
- #11423 `d353dd1` [Policy] Several transaction standardness rules (jl2012)

### Mining
- #12756 `e802c22` [config] Remove blockmaxsize option (jnewbery)

### Block and transaction handling
- #13199 `c71e535` Bugfix: ensure consistency of m_failed_blocks after reconsiderblock (sdaftuar)
- #13023 `bb79aaf` Fix some concurrency issues in ActivateBestChain() (skeees)

### P2P protocol and network code
- #12626 `f60e84d` Limit the number of IPs addrman learns from each DNS seeder (EthanHeilman)

### Wallet
- #13265 `5d8de76` Exit SyncMetaData if there are no transactions to sync (laanwj)
- #13030 `5ff571e` Fix zapwallettxes/multiwallet interaction. (jnewbery)
- #13622 `c04a4a5` Remove mapRequest tracking that just effects Qt display. (TheBlueMatt)
- #12905 `cfc6f74` [rpcwallet] Clamp walletpassphrase value at 100M seconds (sdaftuar)
- #13437 `ed82e71` wallet: Erase wtxOrderd wtx pointer on removeprunedfunds (MarcoFalke)

### RPC and other APIs
- #13451 `cbd2f70` rpc: expose CBlockIndex::nTx in getblock(header) (instagibbs)
- #13507 `f7401c8` RPC: Fix parameter count check for importpubkey (kristapsk)
- #13452 `6b9dc8c` rpc: have verifytxoutproof check the number of txns in proof structure (instagibbs)
- #12837 `bf1f150` rpc: fix type mistmatch in `listreceivedbyaddress` (joemphilips)
- #12743 `657dfc5` Fix csBestBlock/cvBlockChange waiting in rpc/mining (sipa)

### GUI
- #12999 `1720eb3` Show the Window when double clicking the taskbar icon (ken2812221)
- #12650 `f118a7a` Fix issue: "default port not shown correctly in settings dialog" (251Labs)
- #13251 `ea487f9` Rephrase Bech32 checkbox texts, and enable it with legacy address default (fanquake)
- #12432 `f78e7f6` [qt] send: Clear All also resets coin control options (Sjors)
- #12617 `21dd512` gui: Show messages as text not html (laanwj)
- #12793 `cf6feb7` qt: Avoid reseting on resetguisettigs=0 (MarcoFalke)

### Build system
- #12474 `b0f692f` Allow depends system to support armv7l (hkjn)
- #12585 `72a3290` depends: Switch to downloading expat from GitHub (fanquake)
- #12648 `46ca8f3` test: Update trusted git root (MarcoFalke)
- #11995 `686cb86` depends: Fix Qt build with Xcode 9 (fanquake)
- #12636 `845838c` backport: #11995 Fix Qt build with Xcode 9 (fanquake)
- #12946 `e055bc0` depends: Fix Qt build with XCode 9.3 (fanquake)
- #12998 `7847b92` Default to defining endian-conversion DECLs in compat w/o config (TheBlueMatt)
- #13544 `9fd3e00` depends: Update Qt download url (fanquake)
- #12573 `88d1a64` Fix compilation when compiler do not support `__builtin_clz*` (532479301)

### Tests and QA
- #12447 `01f931b` Add missing signal.h header (laanwj)
- #12545 `1286f3e` Use wait_until to ensure ping goes out (Empact)
- #12804 `4bdb0ce` Fix intermittent rpc_net.py failure. (jnewbery)
- #12553 `0e98f96` Prefer wait_until over polling with time.sleep (Empact)
- #12486 `cfebd40` Round target fee to 8 decimals in assert_fee_amount (kallewoof)
- #12843 `df38b13` Test starting bitcoind with -h and -version (jnewbery)
- #12475 `41c29f6` Fix python TypeError in script.py (MarcoFalke)
- #12638 `0a76ed2` Cache only chain and wallet for regtest datadir (MarcoFalke)
- #12902 `7460945` Handle potential cookie race when starting node (sdaftuar)
- #12904 `6c26df0` Ensure bitcoind processes are cleaned up when tests end (sdaftuar)
- #13049 `9ea62a3` Backports (MarcoFalke)
- #13201 `b8aacd6` Handle disconnect_node race (sdaftuar)
- #13061 `170b309` Make tests pass after 2020 (bmwiedemann)
- #13192 `79c4fff` [tests] Fixed intermittent failure in `p2p_sendheaders.py` (lmanners)
- #13300 `d9c5630` qa: Initialize lockstack to prevent null pointer deref (MarcoFalke)
- #13545 `e15e3a9` tests: Fix test case `streams_serializedata_xor` Remove Boost dependency. (practicalswift)
- #13304 `cbdabef` qa: Fix `wallet_listreceivedby` race (MarcoFalke)
- #13852 `b64f02f` Make signrawtransaction give an error when amount is needed but missing (ajtowns)
- #13797 `6518bcd` bitcoinconsensus: invalid flags should be set to bitcoinconsensus_error type, add test cases covering bitcoinconsensus error codes (Thomas Kerin)

### Miscellaneous
- #12518 `a17fecf` Bump leveldb subtree (MarcoFalke)
- #12442 `f3b8d85` devtools: Exclude patches from lint-whitespace (MarcoFalke)
- #12988 `acdf433` Hold cs_main while calling UpdatedBlockTip() signal (skeees)
- #12985 `0684cf9` Windows: Avoid launching as admin when NSIS installer ends. (JeremyRand)
- #503 `87ec334` Fix CVE-2018-12356 by hardening the regex (jmutkawoa)
- #12887 `2291774` Add newlines to end of log messages (jnewbery)
- #12859 `18b0c69` Bugfix: Include <memory> for `std::unique_ptr` (luke-jr)
- #13131 `ce8aa54` Add Windows shutdown handler (ken2812221)
- #13652 `20461fc` rpc: Fix that CWallet::AbandonTransaction would leave the grandchildren, etc. active (Empact)

### Documentation
- #12637 `60086dd` backport: #12556 fix version typo in getpeerinfo RPC call help (fanquake)
- #13184 `4087dd0` RPC Docs: `gettxout*`: clarify bestblock and unspent counts (harding)
- #13246 `6de7543` Bump to Ubuntu Bionic 18.04 in build-windows.md (ken2812221)
- #12556 `e730b82` Fix version typo in getpeerinfo RPC call help (tamasblummer)
- #13852 `9e116a6` [0.16] doc: correct the help output for -prune (hebasto)

Credits
=======

Thanks to everyone who directly contributed to this release:

- [The Bitcoin Core Developers](/doc/release-notes)
- Adrian Gallagher
- aunyks
- coblee
- cryptonexii
- gabrieldov
- jmutkawoa
- Martin Smith
- NeMO84
- ppm0
- romanornr
- shaolinfry
- spl0i7
- stedwms
- ultragtx
- VKoskiv
- voidmain
- wbsmolen
- xinxi

And to those that reported security issues:

- Braydon Fuller
- Himanshu Mehta


text:
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false">
    <item android:drawable="@drawable/parking_full_a031" android:duration="@integer/parking_highlight_delay" />
    <item android:drawable="@drawable/parking_full_a081" android:duration="@integer/parking_highlight_delay" />
    <item android:drawable="@drawable/parking_full_a100" android:duration="@integer/parking_highlight_delay" />
    <item android:drawable="@drawable/parking_full_a081" android:duration="@integer/parking_highlight_delay" />
    <item android:drawable="@drawable/parking_full_a031" android:duration="@integer/parking_highlight_delay" />
    <item android:drawable="@drawable/parking_full_b031" android:duration="@integer/parking_highlight_delay" />
    <item android:drawable="@drawable/parking_full_b081" android:duration="@integer/parking_highlight_delay" />
    <item android:drawable="@drawable/parking_full_b100" android:duration="@integer/parking_highlight_delay" />
    <item android:drawable="@drawable/parking_full_b081" android:duration="@integer/parking_highlight_delay" />
    <item android:drawable="@drawable/parking_full_b031" android:duration="@integer/parking_highlight_delay" />
</animation-list>


text:
using System;
using System.Runtime.InteropServices;

namespace Gallio.Navigator.Native
{
    [ComImport]
    [Guid("79EAC9E3-BAF9-11CE-8C82-00AA004BA90B")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    internal interface IInternetProtocolRoot
    {
        [PreserveSig]
        int Start(
            [In] [MarshalAs(UnmanagedType.LPWStr)] string szUrl,
            [In] IInternetProtocolSink protocolSink,
            [In] IInternetBindInfo bindInfo,
            [In] [MarshalAs(UnmanagedType.U4)] PI_FLAGS grfPI,
            [In] [MarshalAs(UnmanagedType.U4)] uint dwReserved);

        [PreserveSig]
        int Continue(
            [In] ref PROTOCOLDATA protocolData);

        [PreserveSig]
        int Abort(
            [In] [MarshalAs(UnmanagedType.I4)] int hrReason,
            [In] [MarshalAs(UnmanagedType.U4)] uint dwOptions);

        [PreserveSig]
        int Terminate(
            [In] [MarshalAs(UnmanagedType.U4)] uint dwOptions);

        [PreserveSig]
        int Suspend();

        [PreserveSig]
        int Resume();
    }
}


text:
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module System.Process.Text.Lazy
    ( readProcess
    , readProcessWithExitCode
    , readCreateProcess
    , readCreateProcessWithExitCode
    , readProcessInterleaved
    , readInterleaved
    , readProcessChunks
    , module System.Process
    , module System.Process.ListLike
    ) where

import Data.Text.Lazy (Text)
import System.Exit (ExitCode)
import System.IO (Handle)
import System.Process hiding (readProcess, readProcessWithExitCode)
import System.Process.ListLike hiding (readCreateProcess, readCreateProcessWithExitCode,
                                       readProcess, readProcessWithExitCode,
                                       readProcessInterleaved, readInterleaved, readProcessChunks)
import qualified System.Process.ListLike as LL

readProcess :: (a ~ Text) => FilePath -> [String] -> a -> IO a
readProcess = LL.readProcess
readProcessWithExitCode :: (a ~ Text) => FilePath -> [String] -> a -> IO (ExitCode, a, a)
readProcessWithExitCode = LL.readProcessWithExitCode
readCreateProcess :: (a ~ Text) => CreateProcess -> a -> IO a
readCreateProcess = LL.readCreateProcess
readCreateProcessWithExitCode :: (a ~ Text) => CreateProcess -> a -> IO (ExitCode, a, a)
readCreateProcessWithExitCode = LL.readCreateProcessWithExitCode
readProcessInterleaved :: (a ~ Text, ProcessOutput a b) => CreateProcess -> a -> IO b
readProcessInterleaved = LL.readProcessInterleaved
readInterleaved :: (a ~ Text, ProcessOutput a b) => [(a -> b, Handle)] -> IO b -> IO b
readInterleaved = LL.readInterleaved
readProcessChunks :: (a ~ Text) => CreateProcess -> a -> IO [Chunk a]
readProcessChunks = LL.readProcessChunks


text:
namespace EasyNetQ.MetaData.Bindings {
    using System;
    using System.ComponentModel;
    using System.Reflection;

    class CorrelationIdBinding : IMetaDataBinding {
        public PropertyInfo BoundProperty { get; set; }

        public void ToMessageMetaData(Object source, MessageProperties destination) {
            var typeConverter = TypeDescriptor.GetConverter(BoundProperty.PropertyType);
            var propertyValue = BoundProperty.GetValue(source);

            if (propertyValue != null) {
                var correlationId = typeConverter.ConvertToInvariantString(propertyValue);

                destination.CorrelationIdPresent = true;
                destination.CorrelationId = correlationId;
            }
        }

        public void FromMessageMetaData(MessageProperties source, Object destination) {
            if (source.CorrelationIdPresent) {
                var correlationId = source.CorrelationId;
                var typeConverter = TypeDescriptor.GetConverter(BoundProperty.PropertyType);
                var propertyValue = typeConverter.ConvertFromInvariantString(correlationId);

                BoundProperty.SetValue(destination, propertyValue);
            }
        }
    }
}


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

namespace UMipss
{

	public class InstructionJ : IInstruction
	{

		public InstructionJ ()
		{

		}

		public InstructionJ (int opcode, int address)
		{
			OpCode = opcode;
			Address = address;
		}

		public InstructionMnemonic Instruction { get; set; }

		public int OpCode { get; set; }

		public int Address { get; set; }
	}

}