text:
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OxyColorConverter.cs" company="OxyPlot">
//   Copyright (c) 2014 OxyPlot contributors
// </copyright>
// <summary>
//   Converts from OxyPlot colors to Windows.UI.Color and vice versa.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace OxyPlot.Windows
{
    using System;

    using global::Windows.UI;
    using global::Windows.UI.Xaml.Data;
    using global::Windows.UI.Xaml.Media;

    /// <summary>
    /// Converts from OxyPlot colors to Windows.UI.Color and vice versa.
    /// </summary>
    public class OxyColorConverter : IValueConverter
    {
        /// <summary>
        /// The convert.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <param name="targetType">The target type.</param>
        /// <param name="parameter">The parameter.</param>
        /// <param name="language">The language.</param>
        /// <returns>The converted value.</returns>
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            if (!(value is OxyColor))
            {
                return null;
            }

            var color = (OxyColor)value;
            if (targetType == typeof(Color))
            {
                return color.ToColor();
            }

            if (targetType == typeof(Brush))
            {
                return color.ToBrush();
            }

            return null;
        }

        /// <summary>
        /// Converts back.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <param name="targetType">The target type.</param>
        /// <param name="parameter">The parameter.</param>
        /// <param name="language">The language.</param>
        /// <returns>The converted value.</returns>
        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            if (targetType != typeof(OxyColor))
            {
                return null;
            }

            if (value is Color)
            {
                var color = (Color)value;
                return OxyColor.FromArgb(color.A, color.R, color.G, color.B);
            }

            var scb = value as SolidColorBrush;
            if (scb != null)
            {
                var color = scb.Color;
                return OxyColor.FromArgb(color.A, color.R, color.G, color.B);
            }

            return null;
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
import { Component } from '@angular/core';
import { FieldType } from '../../core/core';

@Component({
  selector: 'formly-field-radio',
  template: `

          <input [id]="id" type="radio" [value]="option.key" [formControlName]="key"
          [formlyAttributes]="field" class="custom-control-input">
          {{option.value}}

  `,
})
export class FormlyFieldRadio extends FieldType {}


text:
#ifndef PublicURLManager_h
#define PublicURLManager_h

#include "core/dom/ActiveDOMObject.h"
#include "wtf/HashMap.h"
#include "wtf/HashSet.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"

namespace blink {

class KURL;
class ExecutionContext;
class SecurityOrigin;
class URLRegistry;
class URLRegistrable;

class PublicURLManager FINAL : public ActiveDOMObject {
    WTF_MAKE_FAST_ALLOCATED;
public:
    static PassOwnPtr<PublicURLManager> create(ExecutionContext*);

    void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*, const String& uuid = String());
    void revoke(const KURL&);
    void revoke(const String& uuid);

    // ActiveDOMObject interface.
    virtual void stop() OVERRIDE;

private:
    PublicURLManager(ExecutionContext*);

    // One or more URLs can be associated with the same unique ID.
    // Objects need be revoked by unique ID in some cases.
    typedef String URLString;
    typedef HashMap<URLString, String> URLMap;
    typedef HashMap<URLRegistry*, URLMap> RegistryURLMap;

    RegistryURLMap m_registryToURL;
    bool m_isStopped;
};

} // namespace blink

#endif // PublicURLManager_h


text:
angular.module( 'orderCloud.profile',[] )

	.config( ProfileConfig )
	.controller( 'profileController', ProfileController )
	.filter( 'dash', dashFilter )
	.factory( 'profileFactory', profileFactory )

;

function ProfileConfig( $stateProvider ) {
	$stateProvider.state( 'base.profile', {
		url: '/MyProfile',
		resolve: {
			userDetails : function(UserFactory){
				return UserFactory.get();
			}
		},
		templateUrl:'profile/templates/profile.tpl.html',
		controller:'profileController',
		controllerAs: 'profile',
		data:{ pageTitle: 'My Profile' }
	});
}

function ProfileController(userDetails, UserFactory, profileFactory) {
	var vm = this;
	var userTmp = userDetails;
	vm.user = angular.copy(userDetails);
	vm.example = 'Example Data';
	vm.form = {
		isEdit : false,
		cancel : function(){
			vm.user = angular.copy(userDetails);
			this.isEdit = !this.isEdit;
		},
		save : function(){
			UserFactory.saveUser(vm.user).then(function(data){
				UserFactory.set().then(function(data){
					vm.form.cancel();
					vm.user = UserFactory.get();
				});
			});
		}
	};
	vm.passwordForm = {
		isEdit : false,
		password : '*******',
		cancel : function(){
			this.password = '*******';
			this.isEdit = !this.isEdit;
		},
		getPassword : function(){
			return (this.password !== '*******') ? this.password : "" ;
		},
		save : function(){
			// UserFactory.saveUser({ ID : vm.user.ID , password : this.getPassword() }).then(function(data){
			// 	vm.passwordForm.cancel();
			// 	alert("Password Changed");
			// });
			console.log(vm.user);
			var tmpObj = {
				username : vm.user.Username,
				ID : vm.user.ID,
				oldPass : vm.passwordForm.curPass,
				newPass : vm.passwordForm.cnfPass
			} ;
			//return;
			profileFactory.changePassword(tmpObj).then(function(){
				delete vm.passwordForm.error;
				vm.passwordForm.cancel();
				alert("Password Changed");
			}).catch(function(data){
				vm.passwordForm.error = data.error;
			});
		}
	};
}

function dashFilter() {
	return function(input){
		return input || '---';
	};
}

function profileFactory($q, LoginFact, UserFactory){
	return {
		changePassword : _changePassword
	};
	function _changePassword(userObj){
		var defferred = $q.defer();
		LoginFact.Get({ Username : userObj.username, Password : userObj.oldPass }).then(function(data){
			UserFactory.savePassword({ ID : userObj.ID, Password : userObj.newPass })
			.then(function(data){
				defferred.resolve("password changed");
			});
		}).catch(function(data){
			defferred.reject(data);
		});
		return defferred.promise;
	}
}


text:
require 'active_support/core_ext/object'
require 'common/utils'
require 'entities/entity'

class EntityManager
  include Utils

  UNTAGGED = '-'

  attr_reader :id

  def initialize
    @id = generate_id

    @entities_to_tags = Hash.new { |h, k| h[k] = [] }
    @tags_to_entities = Hash.new { |h, k| h[k] = [] }
    @component_map    = Hash.new { |h, k| h[k] = {} }
  end

  def create(options = {})
    klass = options[:class] || Entity
    tag   = create_tag(klass, options[:tag])

    entity = klass.new(generate_id, self)
    add_tag(entity, tag)

    entity
  end

  def destroy(entity)
    @entities_to_tags.delete(entity)
    [@component_map, @tags_to_entities].each do |hash|
      hash.each_value { |h| h.delete(entity) }
    end
  end

  def tags(entity)
    @entities_to_tags[entity]
  end

  def add_tag(entity, tag)
    @tags_to_entities[tag]    << entity
    @entities_to_tags[entity] << tag
  end

  def remove_tag(entity, tag)
    @tags_to_entities[tag].delete(entity)
    @entities_to_tags[entity].delete(tag)
  end

  def all
    @entities_to_tags.keys
  end

  def tagged(*tags)
    @tags_to_entities
      .select { |tag| tags.include? tag }
      .values.flatten
  end

  def of(*classes)
    tagged(*classes.map { |klass| klass.to_s.downcase.to_sym })
  end

  def components(entity)
    result = []
    @component_map.values.each do |hash|
      result += hash[entity] if hash[entity]
    end
    result
  end

  def components_of(entity, klass)
    @component_map[klass] ||= {}
    @component_map[klass][entity] ||= []
  end

  def with_component_of(*classes)
    classes.inject(all) do |entities, klass|
      entities = entities & @component_map[klass].keys
    end
  end

  def method_missing(name, *args, &block)
    source = name.to_s
    component_class = source.gsub('with_', '').classify.constantize
    define_singleton_method(name) { with_component_of(component_class) }
    self.send(name)
  end

  def respond_to_missing?(name, include_private = false)
    name.to_s.start_with?('with_')
  end

  def dump
    output = to_s

    all.each do |e|
      output << "\n #{e} (#{@entities_to_tags[e]})"
      comps = components(e)
      comps.each do |c|
        output << "\n   #{c.to_s}"
      end
    end

    output
  end

  def to_s
    "EntityManager {#{id}: #{all.size} managed entities}"
  end

  private

  def create_tag(klass, tag)
    (tag || (klass == Entity ? UNTAGGED : klass.to_s.downcase)).to_sym
  end
end


text:
package com.cardpay.pccredit.product.web;

import com.wicresoft.jrad.base.web.form.BaseForm;

/**
 * 产品催收规则
 *
 * @author 王海东
 * @created on 2014-11-10
 *
 * @version $Id:$
 */

public class ProductCollectionRulesForm extends BaseForm {

	private static final long serialVersionUID = 1L;
	private String productId;
	private String collectionType; //催收类型 date or age
	public String getCollectionType() {
		return collectionType;
	}
	public void setCollectionType(String collectionType) {
		this.collectionType = collectionType;
	}
	private String aging1;
	private String money1;
	private String collectionTime1;
	private String collectionTime11;
	private String collectionWay1;
	private String collectionWay11;
	private String operation1;
	private String operation11;
	private String aging2;
	private String money2;
	private String collectionTime2;
	private String collectionTime22;
	private String collectionWay2;
	private String collectionWay22;
	private String operation2;
	private String operation22;
	private String aging3;
	private String money3;
	private String collectionTime3;
	private String collectionTime33;
	private String collectionWay3;
	private String collectionWay33;
	private String operation3;
	private String operation33;
	private String aging4;
	private String money4;
	private String collectionTime4;
	private String collectionTime44;
	private String collectionWay4;
	private String collectionWay44;
	private String operation4;
	private String operation44;
	private String aging5;
	private String money5;
	private String collectionTime5;
	private String collectionTime55;
	private String collectionWay5;
	private String collectionWay55;
	private String operation5;
	private String operation55;
	private String aging6;
	private String money6;
	private String collectionTime6;
	private String collectionTime66;
	private String collectionWay6;
	private String collectionWay66;
	private String operation6;
	private String operation66;
	private String aging7;
	private String money7;
	private String collectionTime7;
	private String collectionTime77;
	private String collectionWay7;
	private String collectionWay77;
	private String operation7;
	private String operation77;
	private String aging8;
	private String money8;
	private String collectionTime8;
	private String collectionTime88;
	private String collectionWay8;
	private String collectionWay88;
	private String operation8;
	private String operation88;
	private String aging9;
	private String money9;
	private String collectionTime9;
	private String collectionTime99;
	private String collectionWay9;
	private String collectionWay99;
	private String operation9;
	private String operation99;
	private String aging10;
	private String money10;
	private String collectionTime10;
	private String collectionTime110;
	private String collectionWay10;
	private String collectionWay110;
	private String operation10;
	private String operation110;
	private String aging13;
	private String money13;
	private String collectionTime13;
	private String collectionTime113;
	private String collectionWay13;
	private String collectionWay113;
	private String operation13;
	private String operation113;
	private String overdueDayEnd1;
	private String overdueDayStart1;
	private String money1111;
	private String operation1111;
	private String collectionTime1111;
	private String collectionWay1111;
	private String operation11111;
	private String collectionTime11111;
	private String collectionWay11111;
	private String overdueDayEnd2;
	private String overdueDayStart2;
	private String money1112;
	private String operation1112;
	private String collectionTime1112;
	private String collectionWay1112;
	private String operation11112;
	private String collectionTime11112;
	private String collectionWay11112;
	private String overdueDayEnd3;
	private String overdueDayStart3;
	private String money1113;
	private String operation1113;
	private String collectionTime1113;
	private String collectionWay1113;
	private String operation11113;
	private String collectionTime11113;
	private String collectionWay11113;
	private String overdueDayEnd4;
	private String overdueDayStart4;
	private String money1114;
	private String operation1114;
	private String collectionTime1114;
	private String collectionWay1114;
	private String operation11114;
	private String collectionTime11114;
	private String collectionWay11114;
	private String overdueDayEnd5;
	private String overdueDayStart5;
	private String money1115;
	private String operation1115;
	private String collectionTime1115;
	private String collectionWay1115;
	private String operation11115;
	private String collectionTime11115;
	private String collectionWay11115;
	private String overdueDayEnd6;
	private String overdueDayStart6;
	private String money1116;
	private String operation1116;
	private String collectionTime1116;
	private String collectionWay1116;
	private String operation11116;
	private String collectionTime11116;
	private String collectionWay11116;
	private String overdueDayEnd7;
	private String overdueDayStart7;
	private String money1117;
	private String operation1117;
	private String collectionTime1117;
	private String collectionWay1117;
	private String operation11117;
	private String collectionTime11117;
	private String collectionWay11117;
	private String overdueDayEnd8;
	private String overdueDayStart8;
	private String money1118;
	private String operation1118;
	private String collectionTime1118;
	private String collectionWay1118;
	private String operation11118;
	private String collectionTime11118;
	private String collectionWay11118;
	private String overdueDayEnd9;
	private String overdueDayStart9;
	private String money1119;
	private String operation1119;
	private String collectionTime1119;
	private String collectionWay1119;
	private String operation11119;
	private String collectionTime11119;
	private String collectionWay11119;
	private String overdueDayEnd10;
	private String overdueDayStart10;
	private String money11110;
	private String operation11110;
	private String collectionTime11110;
	private String collectionWay11110;
	private String operation111110;
	private String collectionTime111110;
	private String collectionWay111110;
	private String overdueDayEnd14;
	private String overdueDayStart14;
	private String money111114;
	private String operation111114;
	private String collectionTime111114;
	private String collectionWay111114;
	private String operation1111114;
	private String collectionTime1111114;
	private String collectionWay1111114;

	public String getMoney1111() {
		return money1111;
	}
	public void setMoney1111(String money1111) {
		this.money1111 = money1111;
	}
	public String getOperation1111() {
		return operation1111;
	}
	public void setOperation1111(String operation1111) {
		this.operation1111 = operation1111;
	}
	public String getCollectionTime1111() {
		return collectionTime1111;
	}
	public void setCollectionTime1111(String collectionTime1111) {
		this.collectionTime1111 = collectionTime1111;
	}
	public String getCollectionWay1111() {
		return collectionWay1111;
	}
	public void setCollectionWay1111(String collectionWay1111) {
		this.collectionWay1111 = collectionWay1111;
	}
	public String getOperation11111() {
		return operation11111;
	}
	public void setOperation11111(String operation11111) {
		this.operation11111 = operation11111;
	}
	public String getCollectionTime11111() {
		return collectionTime11111;
	}
	public void setCollectionTime11111(String collectionTime11111) {
		this.collectionTime11111 = collectionTime11111;
	}
	public String getCollectionWay11111() {
		return collectionWay11111;
	}
	public void setCollectionWay11111(String collectionWay11111) {
		this.collectionWay11111 = collectionWay11111;
	}
	public String getOverdueDayEnd2() {
		return overdueDayEnd2;
	}
	public void setOverdueDayEnd2(String overdueDayEnd2) {
		this.overdueDayEnd2 = overdueDayEnd2;
	}
	public String getOverdueDayStart2() {
		return overdueDayStart2;
	}
	public void setOverdueDayStart2(String overdueDayStart2) {
		this.overdueDayStart2 = overdueDayStart2;
	}
	public String getMoney1112() {
		return money1112;
	}
	public void setMoney1112(String money1112) {
		this.money1112 = money1112;
	}
	public String getOperation1112() {
		return operation1112;
	}
	public void setOperation1112(String operation1112) {
		this.operation1112 = operation1112;
	}
	public String getCollectionTime1112() {
		return collectionTime1112;
	}
	public void setCollectionTime1112(String collectionTime1112) {
		this.collectionTime1112 = collectionTime1112;
	}
	public String getCollectionWay1112() {
		return collectionWay1112;
	}
	public void setCollectionWay1112(String collectionWay1112) {
		this.collectionWay1112 = collectionWay1112;
	}
	public String getOperation11112() {
		return operation11112;
	}
	public void setOperation11112(String operation11112) {
		this.operation11112 = operation11112;
	}
	public String getCollectionTime11112() {
		return collectionTime11112;
	}
	public void setCollectionTime11112(String collectionTime11112) {
		this.collectionTime11112 = collectionTime11112;
	}
	public String getCollectionWay11112() {
		return collectionWay11112;
	}
	public void setCollectionWay11112(String collectionWay11112) {
		this.collectionWay11112 = collectionWay11112;
	}
	public String getOverdueDayEnd3() {
		return overdueDayEnd3;
	}
	public void setOverdueDayEnd3(String overdueDayEnd3) {
		this.overdueDayEnd3 = overdueDayEnd3;
	}
	public String getOverdueDayStart3() {
		return overdueDayStart3;
	}
	public void setOverdueDayStart3(String overdueDayStart3) {
		this.overdueDayStart3 = overdueDayStart3;
	}
	public String getMoney1113() {
		return money1113;
	}
	public void setMoney1113(String money1113) {
		this.money1113 = money1113;
	}
	public String getOperation1113() {
		return operation1113;
	}
	public void setOperation1113(String operation1113) {
		this.operation1113 = operation1113;
	}
	public String getCollectionTime1113() {
		return collectionTime1113;
	}
	public void setCollectionTime1113(String collectionTime1113) {
		this.collectionTime1113 = collectionTime1113;
	}
	public String getCollectionWay1113() {
		return collectionWay1113;
	}
	public void setCollectionWay1113(String collectionWay1113) {
		this.collectionWay1113 = collectionWay1113;
	}
	public String getOperation11113() {
		return operation11113;
	}
	public void setOperation11113(String operation11113) {
		this.operation11113 = operation11113;
	}
	public String getCollectionTime11113() {
		return collectionTime11113;
	}
	public void setCollectionTime11113(String collectionTime11113) {
		this.collectionTime11113 = collectionTime11113;
	}
	public String getCollectionWay11113() {
		return collectionWay11113;
	}
	public void setCollectionWay11113(String collectionWay11113) {
		this.collectionWay11113 = collectionWay11113;
	}
	public String getOverdueDayEnd4() {
		return overdueDayEnd4;
	}
	public void setOverdueDayEnd4(String overdueDayEnd4) {
		this.overdueDayEnd4 = overdueDayEnd4;
	}
	public String getOverdueDayStart4() {
		return overdueDayStart4;
	}
	public void setOverdueDayStart4(String overdueDayStart4) {
		this.overdueDayStart4 = overdueDayStart4;
	}
	public String getMoney1114() {
		return money1114;
	}
	public void setMoney1114(String money1114) {
		this.money1114 = money1114;
	}
	public String getOperation1114() {
		return operation1114;
	}
	public void setOperation1114(String operation1114) {
		this.operation1114 = operation1114;
	}
	public String getCollectionTime1114() {
		return collectionTime1114;
	}
	public void setCollectionTime1114(String collectionTime1114) {
		this.collectionTime1114 = collectionTime1114;
	}
	public String getCollectionWay1114() {
		return collectionWay1114;
	}
	public void setCollectionWay1114(String collectionWay1114) {
		this.collectionWay1114 = collectionWay1114;
	}
	public String getOperation11114() {
		return operation11114;
	}
	public void setOperation11114(String operation11114) {
		this.operation11114 = operation11114;
	}
	public String getCollectionTime11114() {
		return collectionTime11114;
	}
	public void setCollectionTime11114(String collectionTime11114) {
		this.collectionTime11114 = collectionTime11114;
	}
	public String getCollectionWay11114() {
		return collectionWay11114;
	}
	public void setCollectionWay11114(String collectionWay11114) {
		this.collectionWay11114 = collectionWay11114;
	}
	public String getOverdueDayEnd5() {
		return overdueDayEnd5;
	}
	public void setOverdueDayEnd5(String overdueDayEnd5) {
		this.overdueDayEnd5 = overdueDayEnd5;
	}
	public String getOverdueDayStart5() {
		return overdueDayStart5;
	}
	public void setOverdueDayStart5(String overdueDayStart5) {
		this.overdueDayStart5 = overdueDayStart5;
	}
	public String getMoney1115() {
		return money1115;
	}
	public void setMoney1115(String money1115) {
		this.money1115 = money1115;
	}
	public String getOperation1115() {
		return operation1115;
	}
	public void setOperation1115(String operation1115) {
		this.operation1115 = operation1115;
	}
	public String getCollectionTime1115() {
		return collectionTime1115;
	}
	public void setCollectionTime1115(String collectionTime1115) {
		this.collectionTime1115 = collectionTime1115;
	}
	public String getCollectionWay1115() {
		return collectionWay1115;
	}
	public void setCollectionWay1115(String collectionWay1115) {
		this.collectionWay1115 = collectionWay1115;
	}
	public String getOperation11115() {
		return operation11115;
	}
	public void setOperation11115(String operation11115) {
		this.operation11115 = operation11115;
	}
	public String getCollectionTime11115() {
		return collectionTime11115;
	}
	public void setCollectionTime11115(String collectionTime11115) {
		this.collectionTime11115 = collectionTime11115;
	}
	public String getCollectionWay11115() {
		return collectionWay11115;
	}
	public void setCollectionWay11115(String collectionWay11115) {
		this.collectionWay11115 = collectionWay11115;
	}
	public String getOverdueDayEnd6() {
		return overdueDayEnd6;
	}
	public void setOverdueDayEnd6(String overdueDayEnd6) {
		this.overdueDayEnd6 = overdueDayEnd6;
	}
	public String getOverdueDayStart6() {
		return overdueDayStart6;
	}
	public void setOverdueDayStart6(String overdueDayStart6) {
		this.overdueDayStart6 = overdueDayStart6;
	}
	public String getMoney1116() {
		return money1116;
	}
	public void setMoney1116(String money1116) {
		this.money1116 = money1116;
	}
	public String getOperation1116() {
		return operation1116;
	}
	public void setOperation1116(String operation1116) {
		this.operation1116 = operation1116;
	}
	public String getCollectionTime1116() {
		return collectionTime1116;
	}
	public void setCollectionTime1116(String collectionTime1116) {
		this.collectionTime1116 = collectionTime1116;
	}
	public String getCollectionWay1116() {
		return collectionWay1116;
	}
	public void setCollectionWay1116(String collectionWay1116) {
		this.collectionWay1116 = collectionWay1116;
	}
	public String getOperation11116() {
		return operation11116;
	}
	public void setOperation11116(String operation11116) {
		this.operation11116 = operation11116;
	}
	public String getCollectionTime11116() {
		return collectionTime11116;
	}
	public void setCollectionTime11116(String collectionTime11116) {
		this.collectionTime11116 = collectionTime11116;
	}
	public String getCollectionWay11116() {
		return collectionWay11116;
	}
	public void setCollectionWay11116(String collectionWay11116) {
		this.collectionWay11116 = collectionWay11116;
	}
	public String getOverdueDayEnd7() {
		return overdueDayEnd7;
	}
	public void setOverdueDayEnd7(String overdueDayEnd7) {
		this.overdueDayEnd7 = overdueDayEnd7;
	}
	public String getOverdueDayStart7() {
		return overdueDayStart7;
	}
	public void setOverdueDayStart7(String overdueDayStart7) {
		this.overdueDayStart7 = overdueDayStart7;
	}
	public String getMoney1117() {
		return money1117;
	}
	public void setMoney1117(String money1117) {
		this.money1117 = money1117;
	}
	public String getOperation1117() {
		return operation1117;
	}
	public void setOperation1117(String operation1117) {
		this.operation1117 = operation1117;
	}
	public String getCollectionTime1117() {
		return collectionTime1117;
	}
	public void setCollectionTime1117(String collectionTime1117) {
		this.collectionTime1117 = collectionTime1117;
	}
	public String getCollectionWay1117() {
		return collectionWay1117;
	}
	public void setCollectionWay1117(String collectionWay1117) {
		this.collectionWay1117 = collectionWay1117;
	}
	public String getOperation11117() {
		return operation11117;
	}
	public void setOperation11117(String operation11117) {
		this.operation11117 = operation11117;
	}
	public String getCollectionTime11117() {
		return collectionTime11117;
	}
	public void setCollectionTime11117(String collectionTime11117) {
		this.collectionTime11117 = collectionTime11117;
	}
	public String getCollectionWay11117() {
		return collectionWay11117;
	}
	public void setCollectionWay11117(String collectionWay11117) {
		this.collectionWay11117 = collectionWay11117;
	}
	public String getOverdueDayEnd8() {
		return overdueDayEnd8;
	}
	public void setOverdueDayEnd8(String overdueDayEnd8) {
		this.overdueDayEnd8 = overdueDayEnd8;
	}
	public String getOverdueDayStart8() {
		return overdueDayStart8;
	}
	public void setOverdueDayStart8(String overdueDayStart8) {
		this.overdueDayStart8 = overdueDayStart8;
	}
	public String getMoney1118() {
		return money1118;
	}
	public void setMoney1118(String money1118) {
		this.money1118 = money1118;
	}
	public String getOperation1118() {
		return operation1118;
	}
	public void setOperation1118(String operation1118) {
		this.operation1118 = operation1118;
	}
	public String getCollectionTime1118() {
		return collectionTime1118;
	}
	public void setCollectionTime1118(String collectionTime1118) {
		this.collectionTime1118 = collectionTime1118;
	}
	public String getCollectionWay1118() {
		return collectionWay1118;
	}
	public void setCollectionWay1118(String collectionWay1118) {
		this.collectionWay1118 = collectionWay1118;
	}
	public String getOperation11118() {
		return operation11118;
	}
	public void setOperation11118(String operation11118) {
		this.operation11118 = operation11118;
	}
	public String getCollectionTime11118() {
		return collectionTime11118;
	}
	public void setCollectionTime11118(String collectionTime11118) {
		this.collectionTime11118 = collectionTime11118;
	}
	public String getCollectionWay11118() {
		return collectionWay11118;
	}
	public void setCollectionWay11118(String collectionWay11118) {
		this.collectionWay11118 = collectionWay11118;
	}
	public String getOverdueDayEnd9() {
		return overdueDayEnd9;
	}
	public void setOverdueDayEnd9(String overdueDayEnd9) {
		this.overdueDayEnd9 = overdueDayEnd9;
	}
	public String getOverdueDayStart9() {
		return overdueDayStart9;
	}
	public void setOverdueDayStart9(String overdueDayStart9) {
		this.overdueDayStart9 = overdueDayStart9;
	}
	public String getMoney1119() {
		return money1119;
	}
	public void setMoney1119(String money1119) {
		this.money1119 = money1119;
	}
	public String getOperation1119() {
		return operation1119;
	}
	public void setOperation1119(String operation1119) {
		this.operation1119 = operation1119;
	}
	public String getCollectionTime1119() {
		return collectionTime1119;
	}
	public void setCollectionTime1119(String collectionTime1119) {
		this.collectionTime1119 = collectionTime1119;
	}
	public String getCollectionWay1119() {
		return collectionWay1119;
	}
	public void setCollectionWay1119(String collectionWay1119) {
		this.collectionWay1119 = collectionWay1119;
	}
	public String getOperation11119() {
		return operation11119;
	}
	public void setOperation11119(String operation11119) {
		this.operation11119 = operation11119;
	}
	public String getCollectionTime11119() {
		return collectionTime11119;
	}
	public void setCollectionTime11119(String collectionTime11119) {
		this.collectionTime11119 = collectionTime11119;
	}
	public String getCollectionWay11119() {
		return collectionWay11119;
	}
	public void setCollectionWay11119(String collectionWay11119) {
		this.collectionWay11119 = collectionWay11119;
	}
	public String getOverdueDayEnd10() {
		return overdueDayEnd10;
	}
	public void setOverdueDayEnd10(String overdueDayEnd10) {
		this.overdueDayEnd10 = overdueDayEnd10;
	}
	public String getOverdueDayStart10() {
		return overdueDayStart10;
	}
	public void setOverdueDayStart10(String overdueDayStart10) {
		this.overdueDayStart10 = overdueDayStart10;
	}
	public String getMoney11110() {
		return money11110;
	}
	public void setMoney11110(String money11110) {
		this.money11110 = money11110;
	}
	public String getOperation11110() {
		return operation11110;
	}
	public void setOperation11110(String operation11110) {
		this.operation11110 = operation11110;
	}
	public String getCollectionTime11110() {
		return collectionTime11110;
	}
	public void setCollectionTime11110(String collectionTime11110) {
		this.collectionTime11110 = collectionTime11110;
	}
	public String getCollectionWay11110() {
		return collectionWay11110;
	}
	public void setCollectionWay11110(String collectionWay11110) {
		this.collectionWay11110 = collectionWay11110;
	}
	public String getOperation111110() {
		return operation111110;
	}
	public void setOperation111110(String operation111110) {
		this.operation111110 = operation111110;
	}
	public String getCollectionTime111110() {
		return collectionTime111110;
	}
	public void setCollectionTime111110(String collectionTime111110) {
		this.collectionTime111110 = collectionTime111110;
	}
	public String getCollectionWay111110() {
		return collectionWay111110;
	}
	public void setCollectionWay111110(String collectionWay111110) {
		this.collectionWay111110 = collectionWay111110;
	}
	public String getOverdueDayEnd14() {
		return overdueDayEnd14;
	}
	public void setOverdueDayEnd14(String overdueDayEnd14) {
		this.overdueDayEnd14 = overdueDayEnd14;
	}
	public String getOverdueDayStart14() {
		return overdueDayStart14;
	}
	public void setOverdueDayStart14(String overdueDayStart14) {
		this.overdueDayStart14 = overdueDayStart14;
	}
	public String getMoney111114() {
		return money111114;
	}
	public void setMoney111114(String money111114) {
		this.money111114 = money111114;
	}
	public String getOperation111114() {
		return operation111114;
	}
	public void setOperation111114(String operation111114) {
		this.operation111114 = operation111114;
	}
	public String getCollectionTime111114() {
		return collectionTime111114;
	}
	public void setCollectionTime111114(String collectionTime111114) {
		this.collectionTime111114 = collectionTime111114;
	}
	public String getCollectionWay111114() {
		return collectionWay111114;
	}
	public void setCollectionWay111114(String collectionWay111114) {
		this.collectionWay111114 = collectionWay111114;
	}
	public String getOperation1111114() {
		return operation1111114;
	}
	public void setOperation1111114(String operation1111114) {
		this.operation1111114 = operation1111114;
	}
	public String getCollectionTime1111114() {
		return collectionTime1111114;
	}
	public void setCollectionTime1111114(String collectionTime1111114) {
		this.collectionTime1111114 = collectionTime1111114;
	}
	public String getCollectionWay1111114() {
		return collectionWay1111114;
	}
	public void setCollectionWay1111114(String collectionWay1111114) {
		this.collectionWay1111114 = collectionWay1111114;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public String getAging1() {
		return aging1;
	}
	public void setAging1(String aging1) {
		this.aging1 = aging1;
	}
	public String getMoney1() {
		return money1;
	}
	public void setMoney1(String money1) {
		this.money1 = money1;
	}
	public String getCollectionTime1() {
		return collectionTime1;
	}
	public void setCollectionTime1(String collectionTime1) {
		this.collectionTime1 = collectionTime1;
	}
	public String getCollectionTime11() {
		return collectionTime11;
	}
	public void setCollectionTime11(String collectionTime11) {
		this.collectionTime11 = collectionTime11;
	}
	public String getCollectionWay1() {
		return collectionWay1;
	}
	public void setCollectionWay1(String collectionWay1) {
		this.collectionWay1 = collectionWay1;
	}
	public String getCollectionWay11() {
		return collectionWay11;
	}
	public void setCollectionWay11(String collectionWay11) {
		this.collectionWay11 = collectionWay11;
	}
	public String getOperation1() {
		return operation1;
	}
	public void setOperation1(String operation1) {
		this.operation1 = operation1;
	}
	public String getOperation11() {
		return operation11;
	}
	public void setOperation11(String operation11) {
		this.operation11 = operation11;
	}
	public String getAging2() {
		return aging2;
	}
	public void setAging2(String aging2) {
		this.aging2 = aging2;
	}
	public String getMoney2() {
		return money2;
	}
	public void setMoney2(String money2) {
		this.money2 = money2;
	}
	public String getCollectionTime2() {
		return collectionTime2;
	}
	public void setCollectionTime2(String collectionTime2) {
		this.collectionTime2 = collectionTime2;
	}
	public String getCollectionTime22() {
		return collectionTime22;
	}
	public void setCollectionTime22(String collectionTime22) {
		this.collectionTime22 = collectionTime22;
	}
	public String getCollectionWay2() {
		return collectionWay2;
	}
	public void setCollectionWay2(String collectionWay2) {
		this.collectionWay2 = collectionWay2;
	}
	public String getCollectionWay22() {
		return collectionWay22;
	}
	public void setCollectionWay22(String collectionWay22) {
		this.collectionWay22 = collectionWay22;
	}
	public String getOperation2() {
		return operation2;
	}
	public void setOperation2(String operation2) {
		this.operation2 = operation2;
	}
	public String getOperation22() {
		return operation22;
	}
	public void setOperation22(String operation22) {
		this.operation22 = operation22;
	}
	public String getAging3() {
		return aging3;
	}
	public void setAging3(String aging3) {
		this.aging3 = aging3;
	}
	public String getMoney3() {
		return money3;
	}
	public void setMoney3(String money3) {
		this.money3 = money3;
	}
	public String getCollectionTime3() {
		return collectionTime3;
	}
	public void setCollectionTime3(String collectionTime3) {
		this.collectionTime3 = collectionTime3;
	}
	public String getCollectionTime33() {
		return collectionTime33;
	}
	public void setCollectionTime33(String collectionTime33) {
		this.collectionTime33 = collectionTime33;
	}
	public String getCollectionWay3() {
		return collectionWay3;
	}
	public void setCollectionWay3(String collectionWay3) {
		this.collectionWay3 = collectionWay3;
	}
	public String getCollectionWay33() {
		return collectionWay33;
	}
	public void setCollectionWay33(String collectionWay33) {
		this.collectionWay33 = collectionWay33;
	}
	public String getOperation3() {
		return operation3;
	}
	public void setOperation3(String operation3) {
		this.operation3 = operation3;
	}
	public String getOperation33() {
		return operation33;
	}
	public void setOperation33(String operation33) {
		this.operation33 = operation33;
	}
	public String getAging4() {
		return aging4;
	}
	public void setAging4(String aging4) {
		this.aging4 = aging4;
	}
	public String getMoney4() {
		return money4;
	}
	public void setMoney4(String money4) {
		this.money4 = money4;
	}
	public String getCollectionTime4() {
		return collectionTime4;
	}
	public void setCollectionTime4(String collectionTime4) {
		this.collectionTime4 = collectionTime4;
	}
	public String getCollectionTime44() {
		return collectionTime44;
	}
	public void setCollectionTime44(String collectionTime44) {
		this.collectionTime44 = collectionTime44;
	}
	public String getCollectionWay4() {
		return collectionWay4;
	}
	public void setCollectionWay4(String collectionWay4) {
		this.collectionWay4 = collectionWay4;
	}
	public String getCollectionWay44() {
		return collectionWay44;
	}
	public void setCollectionWay44(String collectionWay44) {
		this.collectionWay44 = collectionWay44;
	}
	public String getOperation4() {
		return operation4;
	}
	public void setOperation4(String operation4) {
		this.operation4 = operation4;
	}
	public String getOperation44() {
		return operation44;
	}
	public void setOperation44(String operation44) {
		this.operation44 = operation44;
	}
	public String getAging5() {
		return aging5;
	}
	public void setAging5(String aging5) {
		this.aging5 = aging5;
	}
	public String getMoney5() {
		return money5;
	}
	public void setMoney5(String money5) {
		this.money5 = money5;
	}
	public String getCollectionTime5() {
		return collectionTime5;
	}
	public void setCollectionTime5(String collectionTime5) {
		this.collectionTime5 = collectionTime5;
	}
	public String getCollectionTime55() {
		return collectionTime55;
	}
	public void setCollectionTime55(String collectionTime55) {
		this.collectionTime55 = collectionTime55;
	}
	public String getCollectionWay5() {
		return collectionWay5;
	}
	public void setCollectionWay5(String collectionWay5) {
		this.collectionWay5 = collectionWay5;
	}
	public String getCollectionWay55() {
		return collectionWay55;
	}
	public void setCollectionWay55(String collectionWay55) {
		this.collectionWay55 = collectionWay55;
	}
	public String getOperation5() {
		return operation5;
	}
	public void setOperation5(String operation5) {
		this.operation5 = operation5;
	}
	public String getOperation55() {
		return operation55;
	}
	public void setOperation55(String operation55) {
		this.operation55 = operation55;
	}
	public String getAging6() {
		return aging6;
	}
	public void setAging6(String aging6) {
		this.aging6 = aging6;
	}
	public String getMoney6() {
		return money6;
	}
	public void setMoney6(String money6) {
		this.money6 = money6;
	}
	public String getCollectionTime6() {
		return collectionTime6;
	}
	public void setCollectionTime6(String collectionTime6) {
		this.collectionTime6 = collectionTime6;
	}
	public String getCollectionTime66() {
		return collectionTime66;
	}
	public void setCollectionTime66(String collectionTime66) {
		this.collectionTime66 = collectionTime66;
	}
	public String getCollectionWay6() {
		return collectionWay6;
	}
	public void setCollectionWay6(String collectionWay6) {
		this.collectionWay6 = collectionWay6;
	}
	public String getCollectionWay66() {
		return collectionWay66;
	}
	public void setCollectionWay66(String collectionWay66) {
		this.collectionWay66 = collectionWay66;
	}
	public String getOperation6() {
		return operation6;
	}
	public void setOperation6(String operation6) {
		this.operation6 = operation6;
	}
	public String getOperation66() {
		return operation66;
	}
	public void setOperation66(String operation66) {
		this.operation66 = operation66;
	}
	public String getAging7() {
		return aging7;
	}
	public void setAging7(String aging7) {
		this.aging7 = aging7;
	}
	public String getMoney7() {
		return money7;
	}
	public void setMoney7(String money7) {
		this.money7 = money7;
	}
	public String getCollectionTime7() {
		return collectionTime7;
	}
	public void setCollectionTime7(String collectionTime7) {
		this.collectionTime7 = collectionTime7;
	}
	public String getCollectionTime77() {
		return collectionTime77;
	}
	public void setCollectionTime77(String collectionTime77) {
		this.collectionTime77 = collectionTime77;
	}
	public String getCollectionWay7() {
		return collectionWay7;
	}
	public void setCollectionWay7(String collectionWay7) {
		this.collectionWay7 = collectionWay7;
	}
	public String getCollectionWay77() {
		return collectionWay77;
	}
	public void setCollectionWay77(String collectionWay77) {
		this.collectionWay77 = collectionWay77;
	}
	public String getOperation7() {
		return operation7;
	}
	public void setOperation7(String operation7) {
		this.operation7 = operation7;
	}
	public String getOperation77() {
		return operation77;
	}
	public void setOperation77(String operation77) {
		this.operation77 = operation77;
	}
	public String getAging8() {
		return aging8;
	}
	public void setAging8(String aging8) {
		this.aging8 = aging8;
	}
	public String getMoney8() {
		return money8;
	}
	public void setMoney8(String money8) {
		this.money8 = money8;
	}
	public String getCollectionTime8() {
		return collectionTime8;
	}
	public void setCollectionTime8(String collectionTime8) {
		this.collectionTime8 = collectionTime8;
	}
	public String getCollectionTime88() {
		return collectionTime88;
	}
	public void setCollectionTime88(String collectionTime88) {
		this.collectionTime88 = collectionTime88;
	}
	public String getCollectionWay8() {
		return collectionWay8;
	}
	public void setCollectionWay8(String collectionWay8) {
		this.collectionWay8 = collectionWay8;
	}
	public String getCollectionWay88() {
		return collectionWay88;
	}
	public void setCollectionWay88(String collectionWay88) {
		this.collectionWay88 = collectionWay88;
	}
	public String getOperation8() {
		return operation8;
	}
	public void setOperation8(String operation8) {
		this.operation8 = operation8;
	}
	public String getOperation88() {
		return operation88;
	}
	public void setOperation88(String operation88) {
		this.operation88 = operation88;
	}
	public String getAging9() {
		return aging9;
	}
	public void setAging9(String aging9) {
		this.aging9 = aging9;
	}
	public String getMoney9() {
		return money9;
	}
	public void setMoney9(String money9) {
		this.money9 = money9;
	}
	public String getCollectionTime9() {
		return collectionTime9;
	}
	public void setCollectionTime9(String collectionTime9) {
		this.collectionTime9 = collectionTime9;
	}
	public String getCollectionTime99() {
		return collectionTime99;
	}
	public void setCollectionTime99(String collectionTime99) {
		this.collectionTime99 = collectionTime99;
	}
	public String getCollectionWay9() {
		return collectionWay9;
	}
	public void setCollectionWay9(String collectionWay9) {
		this.collectionWay9 = collectionWay9;
	}
	public String getCollectionWay99() {
		return collectionWay99;
	}
	public void setCollectionWay99(String collectionWay99) {
		this.collectionWay99 = collectionWay99;
	}
	public String getOperation9() {
		return operation9;
	}
	public void setOperation9(String operation9) {
		this.operation9 = operation9;
	}
	public String getOperation99() {
		return operation99;
	}
	public void setOperation99(String operation99) {
		this.operation99 = operation99;
	}
	public String getAging10() {
		return aging10;
	}
	public void setAging10(String aging10) {
		this.aging10 = aging10;
	}
	public String getMoney10() {
		return money10;
	}
	public void setMoney10(String money10) {
		this.money10 = money10;
	}
	public String getCollectionTime10() {
		return collectionTime10;
	}
	public void setCollectionTime10(String collectionTime10) {
		this.collectionTime10 = collectionTime10;
	}
	public String getCollectionTime110() {
		return collectionTime110;
	}
	public void setCollectionTime110(String collectionTime110) {
		this.collectionTime110 = collectionTime110;
	}
	public String getCollectionWay10() {
		return collectionWay10;
	}
	public void setCollectionWay10(String collectionWay10) {
		this.collectionWay10 = collectionWay10;
	}
	public String getCollectionWay110() {
		return collectionWay110;
	}
	public void setCollectionWay110(String collectionWay110) {
		this.collectionWay110 = collectionWay110;
	}
	public String getOperation10() {
		return operation10;
	}
	public void setOperation10(String operation10) {
		this.operation10 = operation10;
	}
	public String getOperation110() {
		return operation110;
	}
	public void setOperation110(String operation110) {
		this.operation110 = operation110;
	}
	public String getAging13() {
		return aging13;
	}
	public void setAging13(String aging13) {
		this.aging13 = aging13;
	}
	public String getMoney13() {
		return money13;
	}
	public void setMoney13(String money13) {
		this.money13 = money13;
	}
	public String getCollectionTime13() {
		return collectionTime13;
	}
	public void setCollectionTime13(String collectionTime13) {
		this.collectionTime13 = collectionTime13;
	}
	public String getCollectionTime113() {
		return collectionTime113;
	}
	public void setCollectionTime113(String collectionTime113) {
		this.collectionTime113 = collectionTime113;
	}
	public String getCollectionWay13() {
		return collectionWay13;
	}
	public void setCollectionWay13(String collectionWay13) {
		this.collectionWay13 = collectionWay13;
	}
	public String getCollectionWay113() {
		return collectionWay113;
	}
	public void setCollectionWay113(String collectionWay113) {
		this.collectionWay113 = collectionWay113;
	}
	public String getOperation13() {
		return operation13;
	}
	public void setOperation13(String operation13) {
		this.operation13 = operation13;
	}
	public String getOperation113() {
		return operation113;
	}
	public void setOperation113(String operation113) {
		this.operation113 = operation113;
	}
	public String getOverdueDayEnd1() {
		return overdueDayEnd1;
	}
	public void setOverdueDayEnd1(String overdueDayEnd1) {
		this.overdueDayEnd1 = overdueDayEnd1;
	}
	public String getOverdueDayStart1() {
		return overdueDayStart1;
	}
	public void setOverdueDayStart1(String overdueDayStart1) {
		this.overdueDayStart1 = overdueDayStart1;
	}

}


text:
<!-- https://ohmjs.org/d/ati -->

The [`_iter` and `_nonterminal` actions](../api-reference.md#special-actions) now take a variable number of arguments, rather than a single `Node[]` argument containing the child nodes. To make existing code work with Ohm v16, you should change the parameter to a [rest parameter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) — e.g., `_iter(children) { ... }` should be changed to `_iter(...children) { ... }`. You can easily find code that needs to change because `addOperation` and friends will now throw an exception if your actions have a single parameter which is _not_ a rest parameter. See [#324](https://github.com/harc/ohm/issues/324) for the reasons behind this change.

### Default semantic actions

<!-- https://ohmjs.org/d/dsa -->

In operations and attributes, if you haven't defined a semantic action for a particular rule application node, a default action will be used in some cases. For example, your grammar has an _AddExp_ rule but your action dictionary doesn't contain a semantic action named 'AddExp'. **In Ohm v16.0, there is no longer a default action for iteration nodes** — it is _only_ defined for non-terminal nodes with exactly one child. See [#309](https://github.com/harc/ohm/issues/309) for context on this change.

Semantic actions that worked in previous versions of Ohm may need to be modified to work with v16.0. You can identify the code that needs modification because they will now raise a "missing semantic action" error. The [recommended way of dealing with iteration nodes](https://github.com/harc/ohm/blob/master/doc/patterns-and-pitfalls.md#iteration-nodes) is to use the `children` attribute to explicitly invoke the operation on each child, e.g. `iterNode.myOperation()` becomes `iterNode.children.map(c => c.myOperation())`. This way, it's clear to readers of the code that the result is an array.

In some cases, it makes sense to write a generic _\_iter_ action that specifies the behaviour for all iteration nodes. This also makes it possible to replicate the old behaviour of the default action:

```
_iter(...children) {
  return children.map(c => c.myOperation());
}
```

### grammarFromScriptElement / grammarsFromScriptElements

<!-- https://ohmjs.org/d/gfs -->

The functions `grammarFromScriptElement` and `grammarsFromScriptElements` have been removed. When using Ohm in the browser, it's now recommended to put your grammar in a [template literal with String.raw](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw):

```js
const myGrammar = ohm.grammar(String.raw`
  MyGrammar {
    greeting = "Hello" | "Hola"
  }
`);
```

### Type parameters for operations and actions (TypeScript only)

On semantics objects, the methods `addOperation`, `extendOperation`, `addAttribute`, and `extendAttribute` now have a required type parameter, which is the return type of the operation (or the type of the attribute). The related types `Action` and `ActionDict` are similarly parameterized by the return type of the semantic actions. In other words, all of the semantic actions for a particular operation/attribute are now required to have a consistent return type.

The simplest change to make your code compatible with Ohm v16 is to simply specify the type paramter. E.g., `semantics.addOperation('toString', { ... })` becomes `semantics.addOperation<string>('toString', { ... })`. In some cases, it may be necessary to use `any`, which is the type that was assumed in previous versions of Ohm.

## Other changes

- `Grammar.semantics` has been completely removed. Use `Grammar.createSemantics` instead.

## New deprecations

- `Node.primitiveValue` is now deprecated in favour of `Node.sourceString`.


text:
<!DOCTYPE html>
    <meta charset="utf-8">
    <title>Таблица характеристик материалов</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@threejs">
    <meta name="twitter:title" content="Three.js – Таблица характеристик материалов">
    <meta property="og:image" content="https://threejs.org/files/share.png">
    <link rel="shortcut icon" href="/files/favicon_white.ico" media="(prefers-color-scheme: dark)">
    <link rel="shortcut icon" href="/files/favicon.ico" media="(prefers-color-scheme: light)">

    <link rel="stylesheet" href="/manual/resources/lesson.css">
    <link rel="stylesheet" href="/manual/resources/lang.css">

Таблица характеристик материалов

Наиболее распространенными материалами в three.js являются материалы
Mesh. Вот таблица, показывающая, какие функции поддерживают каждый из материалов.

<link rel="stylesheet" href="../resources/threejs-material-table.css">


text:
using DotNetStarter.Abstractions;

namespace DotNetStarter
{
    /// <summary>
    /// Registry extensions for application developers
    /// </summary>
    public static class RegistryExtensions
    {
        /// <summary>
        /// Returns typed container, only use when container type is known
        /// </summary>
        /// <typeparam name="TContainer"></typeparam>
        /// <param name="registry"></param>
        /// <returns></returns>
        public static TContainer GetContainer<TContainer>(this ILocatorRegistry registry) => (TContainer)registry.InternalContainer;
    }
}


text:
<?php

namespace Doctrine\Tests\DBAL\Schema;

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Doctrine\DBAL\Schema\SqliteSchemaManager;
use PHPUnit\Framework\TestCase;
use ReflectionMethod;

class SqliteSchemaManagerTest extends TestCase
{
    /**
     * @dataProvider getDataColumnCollation
     * @group 2865
     */
    public function testParseColumnCollation(?string $collation, string $column, string $sql) : void
    {
        $conn = $this->createMock(Connection::class);
        $conn->method('getDatabasePlatform')->willReturn(new SqlitePlatform());

        $manager = new SqliteSchemaManager($conn);
        $ref     = new ReflectionMethod($manager, 'parseColumnCollationFromSQL');
        $ref->setAccessible(true);

        self::assertSame($collation, $ref->invoke($manager, $column, $sql));
    }

    public function getDataColumnCollation()
    {
        return [
            ['RTRIM', 'a', 'CREATE TABLE "a" ("a" text DEFAULT "aa" COLLATE "RTRIM" NOT NULL)'],
            ['utf-8', 'a', 'CREATE TABLE "a" ("b" text UNIQUE NOT NULL COLLATE NOCASE, "a" text DEFAULT "aa" COLLATE "utf-8" NOT NULL)'],
            ['NOCASE', 'a', 'CREATE TABLE "a" ("a" text DEFAULT (lower(ltrim(" a") || rtrim("a "))) CHECK ("a") NOT NULL COLLATE NOCASE UNIQUE, "b" text COLLATE RTRIM)'],
            [null, 'a', 'CREATE TABLE "a" ("a" text CHECK ("a") NOT NULL, "b" text COLLATE RTRIM)'],
            ['RTRIM', 'a"b', 'CREATE TABLE "a" ("a""b" text COLLATE RTRIM)'],
            ['BINARY', 'b', 'CREATE TABLE "a" (bb TEXT COLLATE RTRIM, b VARCHAR(42) NOT NULL COLLATE BINARY)'],
            ['BINARY', 'b', 'CREATE TABLE "a" (bbb TEXT COLLATE NOCASE, bb TEXT COLLATE RTRIM, b VARCHAR(42) NOT NULL COLLATE BINARY)'],
            ['BINARY', 'b', 'CREATE TABLE "a" (b VARCHAR(42) NOT NULL COLLATE BINARY, bb TEXT COLLATE RTRIM)'],
            ['utf-8', 'bar#', 'CREATE TABLE dummy_table (id INTEGER NOT NULL, foo VARCHAR(255) COLLATE "utf-8" NOT NULL, "bar#" VARCHAR(255) COLLATE "utf-8" NOT NULL, baz VARCHAR(255) COLLATE "utf-8" NOT NULL, PRIMARY KEY(id))'],
            [null,    'bar#', 'CREATE TABLE dummy_table (id INTEGER NOT NULL, foo VARCHAR(255) NOT NULL, "bar#" VARCHAR(255) NOT NULL, baz VARCHAR(255) NOT NULL, PRIMARY KEY(id))'],
            ['utf-8', 'baz',  'CREATE TABLE dummy_table (id INTEGER NOT NULL, foo VARCHAR(255) COLLATE "utf-8" NOT NULL, "bar#" INTEGER NOT NULL, baz VARCHAR(255) COLLATE "utf-8" NOT NULL, PRIMARY KEY(id))'],
            [null,    'baz',  'CREATE TABLE dummy_table (id INTEGER NOT NULL, foo VARCHAR(255) NOT NULL, "bar#" INTEGER NOT NULL, baz VARCHAR(255) NOT NULL, PRIMARY KEY(id))'],
            ['utf-8', 'bar/', 'CREATE TABLE dummy_table (id INTEGER NOT NULL, foo VARCHAR(255) COLLATE "utf-8" NOT NULL, "bar/" VARCHAR(255) COLLATE "utf-8" NOT NULL, baz VARCHAR(255) COLLATE "utf-8" NOT NULL, PRIMARY KEY(id))'],
            [null,    'bar/', 'CREATE TABLE dummy_table (id INTEGER NOT NULL, foo VARCHAR(255) NOT NULL, "bar/" VARCHAR(255) NOT NULL, baz VARCHAR(255) NOT NULL, PRIMARY KEY(id))'],
            ['utf-8', 'baz',  'CREATE TABLE dummy_table (id INTEGER NOT NULL, foo VARCHAR(255) COLLATE "utf-8" NOT NULL, "bar/" INTEGER NOT NULL, baz VARCHAR(255) COLLATE "utf-8" NOT NULL, PRIMARY KEY(id))'],
            [null,    'baz',  'CREATE TABLE dummy_table (id INTEGER NOT NULL, foo VARCHAR(255) NOT NULL, "bar/" INTEGER NOT NULL, baz VARCHAR(255) NOT NULL, PRIMARY KEY(id))'],
        ];
    }

    /**
     * @dataProvider getDataColumnComment
     * @group 2865
     */
    public function testParseColumnCommentFromSQL(?string $comment, string $column, string $sql) : void
    {
        $conn = $this->createMock(Connection::class);
        $conn->method('getDatabasePlatform')->willReturn(new SqlitePlatform());

        $manager = new SqliteSchemaManager($conn);
        $ref     = new ReflectionMethod($manager, 'parseColumnCommentFromSQL');
        $ref->setAccessible(true);

        self::assertSame($comment, $ref->invoke($manager, $column, $sql));
    }

    public function getDataColumnComment()
    {
        return [
            'Single column with no comment' => [
                null,
                'a',
                'CREATE TABLE "a" ("a" TEXT DEFAULT "a" COLLATE RTRIM)',
            ],
            'Single column with type comment' => [
                '(DC2Type:x)',
                'a',
                'CREATE TABLE "a" ("a" CLOB DEFAULT NULL COLLATE BINARY --(DC2Type:x)
)',
            ],
            'Multiple similar columns with type comment 1' => [
                null,
                'b',
                'CREATE TABLE "a" (a TEXT COLLATE RTRIM, "b" TEXT DEFAULT "a" COLLATE RTRIM, "bb" CLOB DEFAULT NULL COLLATE BINARY --(DC2Type:x)
)',
            ],
            'Multiple similar columns with type comment 2' => [
                '(DC2Type:x)',
                'b',
                'CREATE TABLE "a" (a TEXT COLLATE RTRIM, "bb" TEXT DEFAULT "a" COLLATE RTRIM, "b" CLOB DEFAULT NULL COLLATE BINARY --(DC2Type:x)
)',
            ],
            'Multiple similar columns on different lines, with type comment 1' => [
                null,
                'bb',
                'CREATE TABLE "a" (a TEXT COLLATE RTRIM, "b" CLOB DEFAULT NULL COLLATE BINARY --(DC2Type:x)
, "bb" TEXT DEFAULT "a" COLLATE RTRIM',
            ],
            'Multiple similar columns on different lines, with type comment 2' => [
                '(DC2Type:x)',
                'bb',
                'CREATE TABLE "a" (a TEXT COLLATE RTRIM, "bb" CLOB DEFAULT NULL COLLATE BINARY --(DC2Type:x)
, "b" TEXT DEFAULT "a" COLLATE RTRIM',
            ],
            'Column with numeric but no comment 1' => [
                null,
                'a',
                'CREATE TABLE "a" ("a" NUMERIC(10, 0) NOT NULL, "b" CLOB NOT NULL --(DC2Type:array)
, "c" CHAR(36) NOT NULL --(DC2Type:guid)
)',
            ],
            'Column with numeric but no comment 2' => [
                null,
                'a',
                'CREATE TABLE "b" ("a" NUMERIC(10, 0) NOT NULL, "b" CLOB NOT NULL --(DC2Type:array)
, "c" CHAR(36) NOT NULL --(DC2Type:guid)
)',
            ],
            'Column with numeric but no comment 3' => [
                '(DC2Type:guid)',
                'c',
                'CREATE TABLE "b" ("a" NUMERIC(10, 0) NOT NULL, "b" CLOB NOT NULL --(DC2Type:array)
, "c" CHAR(36) NOT NULL --(DC2Type:guid)
)',
            ],
            'Column with numeric but no comment 4' => [
                '(DC2Type:array)',
                'b',
                'CREATE TABLE "b" ("a" NUMERIC(10, 0) NOT NULL,
                    "b" CLOB NOT NULL, --(DC2Type:array)
                    "c" CHAR(36) NOT NULL --(DC2Type:guid)
                )',
            ],
            'Column "bar", select "bar" with no comment' => [
                null,
                'bar',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar" VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    PRIMARY KEY(id)
                )',
            ],
            'Column "bar", select "bar" with type comment' => [
                '(DC2Type:x)',
                'bar',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar" VARCHAR(255) COLLATE "utf-8" NOT NULL, --(DC2Type:x)
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL, --(DC2Type:y)
                    PRIMARY KEY(id)
                )',
            ],
            'Column "bar", select "baz" with no comment' => [
                null,
                'baz',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar" INTEGER NOT NULL,
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    PRIMARY KEY(id)
                )',
            ],
            'Column "bar", select "baz" with type comment' => [
                '(DC2Type:y)',
                'baz',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar" INTEGER NOT NULL, --(DC2Type:x)
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL, --(DC2Type:y)
                    PRIMARY KEY(id)
                )',
            ],

            'Column "bar#", select "bar#" with no comment' => [
                null,
                'bar#',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar#" VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    PRIMARY KEY(id)
                )',
            ],
            'Column "bar#", select "bar#" with type comment' => [
                '(DC2Type:x)',
                'bar#',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar#" VARCHAR(255) COLLATE "utf-8" NOT NULL, --(DC2Type:x)
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL, --(DC2Type:y)
                    PRIMARY KEY(id)
                )',
            ],
            'Column "bar#", select "baz" with no comment' => [
                null,
                'baz',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar#" INTEGER NOT NULL,
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    PRIMARY KEY(id)
                )',
            ],
            'Column "bar#", select "baz" with type comment' => [
                '(DC2Type:y)',
                'baz',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar#" INTEGER NOT NULL, --(DC2Type:x)
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL, --(DC2Type:y)
                    PRIMARY KEY(id)
                )',
            ],

            'Column "bar/", select "bar/" with no comment' => [
                null,
                'bar/',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar/" VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    PRIMARY KEY(id)
                    )',
            ],
            'Column "bar/", select "bar/" with type comment' => [
                '(DC2Type:x)',
                'bar/',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar/" VARCHAR(255) COLLATE "utf-8" NOT NULL, --(DC2Type:x)
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL, --(DC2Type:y)
                    PRIMARY KEY(id)
                )',
            ],
            'Column "bar/", select "baz" with no comment' => [
                null,
                'baz',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar/" INTEGER NOT NULL,
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    PRIMARY KEY(id)
                )',
            ],
            'Column "bar/", select "baz" with type comment' => [
                '(DC2Type:y)',
                'baz',
                'CREATE TABLE dummy_table (
                    id INTEGER NOT NULL,
                    foo VARCHAR(255) COLLATE "utf-8" NOT NULL,
                    "bar/" INTEGER COLLATE "utf-8" NOT NULL, --(DC2Type:x)
                    baz VARCHAR(255) COLLATE "utf-8" NOT NULL, --(DC2Type:y)
                    PRIMARY KEY(id)
                )',
            ],
        ];
    }
}


text:
require 'spec_helper'

describe TrueClass do
  [ :to_bool, :parse_bool, :to_b ].each do |method|
    describe "##{method}" do
      it("should return true") { expect(true.send(method)).to eql(true) }
    end
  end

  it("should be a kind of Boolean") { expect(true).to be_kind_of(Boolean) }
end

describe FalseClass do
  [ :to_bool, :parse_bool, :to_b ].each do |method|
    describe "##{method}" do
      it("should return false") { expect(false.send(method)).to eql(false) }
    end
  end

  it("should be a kind of Boolean") { expect(false).to be_kind_of(Boolean) }
end

describe NilClass do
  [ :to_bool, :parse_bool, :to_b ].each do |method|
    describe "##{method}" do
      it("should return false") { expect(nil.send(method)).to eql(false) }
    end
  end
end

describe Object do
  describe "#to_bool" do
    it("should return true") { expect(Object.new.to_bool).to eql(true) }
  end

  it("should not be a kind of Boolean") { expect(Object.new).not_to be_kind_of(Boolean) }
end

describe Numeric do
  [ :parse_bool, :to_b ].each do |method|
    describe "##{method}" do
      it "should return true if the number is not zero" do
        expect(1.send(method)).to eql(true)
        expect(1.0.send(method)).to eql(true)
        expect(-1.send(method)).to eql(true)
        expect(-1.0.send(method)).to eql(true)
      end

      it "should return false if the number is zero" do
        expect(0.send(method)).to eql(false)
        expect(0.0.send(method)).to eql(false)
      end
    end
  end
end

describe String do
  [ :parse_bool, :to_b ].each do |method|
    describe "##{method}" do
      it "should return true if the string starts with 1, y, Y, t, or T" do
        expect("y".send(method)).to eql(true)
        expect("Y".send(method)).to eql(true)
        expect("yes".send(method)).to eql(true)
        expect("YES".send(method)).to eql(true)
        expect("Yes".send(method)).to eql(true)
        expect("t".send(method)).to eql(true)
        expect("T".send(method)).to eql(true)
        expect("true".send(method)).to eql(true)
        expect("TRUE".send(method)).to eql(true)
        expect("True".send(method)).to eql(true)
        expect("1".send(method)).to eql(true)
      end

      it "should return false otherwise" do
        expect("n".send(method)).to eql(false)
        expect("N".send(method)).to eql(false)
        expect("no".send(method)).to eql(false)
        expect("NO".send(method)).to eql(false)
        expect("No".send(method)).to eql(false)
        expect("f".send(method)).to eql(false)
        expect("F".send(method)).to eql(false)
        expect("false".send(method)).to eql(false)
        expect("FALSE".send(method)).to eql(false)
        expect("False".send(method)).to eql(false)
        expect("0".send(method)).to eql(false)
        expect("".send(method)).to eql(false)

        expect("m".send(method)).to eql(false)
        expect("maybe".send(method)).to eql(false)
        expect("MAYBE".send(method)).to eql(false)
        expect("Maybe".send(method)).to eql(false)
        expect("i".send(method)).to eql(false)
        expect("I".send(method)).to eql(false)
        expect("i don't know".send(method)).to eql(false)
        expect("I DON'T KNOW".send(method)).to eql(false)
        expect("I don't know".send(method)).to eql(false)
      end
    end
  end

  [ :parse_bool!, :to_b! ].each do |method|
    describe "##{method}" do
      it "should return true if the string starts with 1, y, Y, t, or T" do
        expect("y".send(method)).to eql(true)
        expect("Y".send(method)).to eql(true)
        expect("yes".send(method)).to eql(true)
        expect("YES".send(method)).to eql(true)
        expect("Yes".send(method)).to eql(true)
        expect("t".send(method)).to eql(true)
        expect("T".send(method)).to eql(true)
        expect("true".send(method)).to eql(true)
        expect("TRUE".send(method)).to eql(true)
        expect("True".send(method)).to eql(true)
        expect("1".send(method)).to eql(true)
      end

      it "should return false if the string starts with 0, n, N, f, or F" do
        expect("n".send(method)).to eql(false)
        expect("N".send(method)).to eql(false)
        expect("no".send(method)).to eql(false)
        expect("NO".send(method)).to eql(false)
        expect("No".send(method)).to eql(false)
        expect("f".send(method)).to eql(false)
        expect("F".send(method)).to eql(false)
        expect("false".send(method)).to eql(false)
        expect("FALSE".send(method)).to eql(false)
        expect("False".send(method)).to eql(false)
        expect("0".send(method)).to eql(false)
      end

      it "should raise ArgumentError otherwise" do
        expect { "m".send(method) }.to raise_error(ArgumentError)
        expect { "maybe".send(method) }.to raise_error(ArgumentError)
        expect { "MAYBE".send(method) }.to raise_error(ArgumentError)
        expect { "Maybe".send(method) }.to raise_error(ArgumentError)
        expect { "i".send(method) }.to raise_error(ArgumentError)
        expect { "I".send(method) }.to raise_error(ArgumentError)
        expect { "i don't know".send(method) }.to raise_error(ArgumentError)
        expect { "I DON'T KNOW".send(method) }.to raise_error(ArgumentError)
        expect { "I don't know".send(method) }.to raise_error(ArgumentError)
        expect { "".send(method) }.to raise_error(ArgumentError)
      end
    end
  end
end

describe Kernel do
  describe "#Boolean" do
    it "should call String#parse_bool! and return the result" do
      string = double('String')
      result = double('result')

      expect(string).to receive(:parse_bool!).once.and_return(result)

      expect(Boolean(string)).to eql(result)
    end
  end
end


text:
<?php

namespace Pyrech\ComposerChangelogs\OperationHandler;

use Composer\DependencyResolver\Operation\OperationInterface;
use Composer\DependencyResolver\Operation\UninstallOperation;
use Composer\Package\Version\VersionParser;
use Pyrech\ComposerChangelogs\UrlGenerator\UrlGenerator;
use Pyrech\ComposerChangelogs\Version;

class UninstallHandler implements OperationHandler
{
    /**
     * {@inheritdoc}
     */
    public function supports(OperationInterface $operation)
    {
        return $operation instanceof UninstallOperation;
    }

    /**
     * {@inheritdoc}
     */
    public function extractSourceUrl(OperationInterface $operation)
    {
        if (!($operation instanceof UninstallOperation)) {
            throw new \LogicException('Operation should be an instance of UninstallOperation');
        }

        return $operation->getPackage()->getSourceUrl();
    }

    /**
     * {@inheritdoc}
     */
    public function getOutput(OperationInterface $operation, UrlGenerator $urlGenerator = null)
    {
        if (!($operation instanceof UninstallOperation)) {
            throw new \LogicException('Operation should be an instance of UninstallOperation');
        }

        $output = [];

        $package = $operation->getPackage();
        $version = new Version(
            $package->getVersion(),
            $package->getPrettyVersion(),
            method_exists($package, 'getFullPrettyVersion') // This method was added after composer v1.0.0-alpha10
                ? $package->getFullPrettyVersion()
                : VersionParser::formatVersion($package)
        );

        $output[] = sprintf(
            ' - <fg=green>%s</fg=green> removed (installed version was <fg=yellow>%s</fg=yellow>)',
            $package->getName(),
            $version->getCliOutput()
        );

        return $output;
    }
}


text:
rblv = RUBY_VERSION < '2.0.0' ? '1.9.1' : RUBY_VERSION[/\d+.\d+/]+'.0'
incl = "#{DIR}/lib/ruby/include/ruby-#{rblv}"
incla = "#{incl}/#{RUBY_PLATFORM}"
# setup paths for ruby to load from
$: << "#{DIR}/lib/ruby/#{rblv}"
$: << "#{DIR}/lib/ruby/#{rblv}/#{RUBY_PLATFORM}"
#puts "#{$:}"
require 'rbconfig' # probably not needed
require 'fileutils'
include FileUtils
# now would be a good time to check if we have gcc and make.
# For now, ASSUME we do. FIXME:
#$stderr.puts `which gcc`
# Below is required to find the ruby headers in mkmf.rb
RbConfig::CONFIG["rubyhdrdir"] = incl
RbConfig::CONFIG["rubyarchhdrdir"] = incla
# Below is used to define $ruby for install of gem
RbConfig::CONFIG["bindir"] = DIR
RbConfig::MAKEFILE_CONFIG['bindir'] = DIR
RbConfig::MAKEFILE_CONFIG['ruby_install_name'] = 'shoes --ruby'
# Below is a check to find libruby.so and set it.
RbConfig::MAKEFILE_CONFIG['libdir'] = DIR # needed for Linking ext.so
RbConfig::CONFIG['libdir'] = DIR # needed for conftest


text:
<?xml version="1.0" encoding="UTF-8"?>
<jax-ws xmlns="http://www.netbeans.org/ns/jax-ws/1">
  <services/>
  <clients>
    <client name="check">
      <wsdl-url>http://wsf.cdyne.com/SpellChecker/check.asmx?wsdl</wsdl-url>
      <local-wsdl-file>wsf.cdyne.com/SpellChecker/check.asmx.wsdl</local-wsdl-file>
      <package-name>com.cdyne.ws</package-name>
      <catalog-file>catalog.xml</catalog-file>
      <wsimport-options>
        <wsimport-option>
          <wsimport-option-name>extension</wsimport-option-name>
          <wsimport-option-value>true</wsimport-option-value>
        </wsimport-option>
        <wsimport-option>
          <wsimport-option-name>verbose</wsimport-option-name>
          <wsimport-option-value>true</wsimport-option-value>
        </wsimport-option>
        <wsimport-option>
          <wsimport-option-name>wsdlLocation</wsimport-option-name>
          <wsimport-option-value>http://wsf.cdyne.com/SpellChecker/check.asmx?wsdl</wsimport-option-value>
        </wsimport-option>
        <wsimport-option>
          <wsimport-option-name>xnocompile</wsimport-option-name>
          <wsimport-option-value>true</wsimport-option-value>
        </wsimport-option>
        <wsimport-option>
          <wsimport-option-name>xendorsed</wsimport-option-name>
          <wsimport-option-value>true</wsimport-option-value>
        </wsimport-option>
      </wsimport-options>
    </client>
  </clients>
</jax-ws>


text:
package com.dubture.symfony.ui.actions;

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

import com.dubture.symfony.core.model.SymfonyModelAccess;
import com.dubture.symfony.index.model.Parameter;

public class InsertParameterHandler extends BaseTextInsertionHandler {
	@Override
	protected List<String[]> getInput() {

		SymfonyModelAccess modelAccess = SymfonyModelAccess.getDefault();
		List<Parameter> parameters = modelAccess.findParameters(project);
		List<String[]> input = new ArrayList<String[]>();

		for (Parameter parameter : parameters) {
			input.add(new String[] { parameter.key, parameter.key });
		}

		return input;
	}

	@Override
	protected String getTitle() {
		return "Select a container parameter to insert";
	}
}


text:
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ItemBasedOrderIDGenerator.cs" company="Sitecore Corporation">
//   Copyright (c) Sitecore Corporation 1999-2015
// </copyright>
// <summary>
//   Defines the item based order ID generator class.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
// Copyright 2015 Sitecore Corporation A/S
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of the License at
//       http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions
// and limitations under the License.
// -------------------------------------------------------------------------------------------

namespace Sitecore.Ecommerce.OrderManagement
{
  using Diagnostics;
  using SecurityModel;
  using Sitecore.Data;
  using Sitecore.Data.Items;
  using Sitecore.Ecommerce.DomainModel.Orders;

  /// <summary>
  /// Defines the item based order ID generator class.
  /// </summary>
  public class ItemBasedOrderIDGenerator : OrderIDGenerator
  {
    /// <summary>
    /// The last order id constant.
    /// </summary>
    private const string LastOrderId = "Latest Order ID";

    /// <summary>
    /// Is used for locking
    /// </summary>
    private static readonly object LockObject = new object();

    /// <summary>
    /// The shop context
    /// </summary>
    private readonly ShopContext shopContext;

    /// <summary>
    /// The generation strategy.
    /// </summary>
    private readonly OrderIDGenerationStrategy generationStrategy;

    /// <summary>
    /// The orders item.
    /// </summary>
    private Item ordersItem;

    /// <summary>
    /// Initializes a new instance of the <see cref="ItemBasedOrderIDGenerator" /> class.
    /// </summary>
    /// <param name="shopContext">The shop context.</param>
    /// <param name="generationStrategy">The generation strategy.</param>
    public ItemBasedOrderIDGenerator(ShopContext shopContext, OrderIDGenerationStrategy generationStrategy)
    {
      Assert.IsNotNull(shopContext, "Unable to generate order id. ShopContext cannot be null.");
      Assert.IsNotNull(generationStrategy, "Unable to generate order id. Order id generation strategy cannot be null.");

      this.shopContext = shopContext;
      this.generationStrategy = generationStrategy;
    }

    /// <summary>
    /// Gets the orders item.
    /// </summary>
    [NotNull]
    private Item OrdersItem
    {
      get
      {
        if (this.ordersItem == null)
        {
          Assert.IsNotNull(this.shopContext, "Unable to get order number. ShopContext cannot be null.");
          Assert.IsNotNull(this.shopContext.BusinessCatalogSettings, "Unable to get order number. BusinessCatalogSettings cannot be null.");

          Database database = this.shopContext.InnerSite.ContentDatabase;
          Assert.IsNotNull(database, "Unable to generate order number. Content database cannot be null.");

          this.ordersItem = database.GetItem(this.shopContext.BusinessCatalogSettings.OrdersLink);
        }

        Assert.IsNotNull(this.ordersItem, "Unable to get order number. OrdersItem cannot be null.");

        return this.ordersItem;
      }
    }

    /// <summary>
    /// Generates the order ID.
    /// </summary>
    /// <returns>
    /// The string.
    /// </returns>
    [NotNull]
    public override string Generate()
    {
      lock (LockObject)
      {
        string previousId = this.GetPreviousId();

        string newId = this.generationStrategy.Generate(previousId);

        this.SaveLastOrderId(newId);

        return newId;
      }
    }

    /// <summary>
    /// Gets the previous id.
    /// </summary>
    /// <returns>
    /// The previous id.
    /// </returns>
    protected virtual string GetPreviousId()
    {
      return this.OrdersItem[LastOrderId];
    }

    /// <summary>
    /// Saves the last order id.
    /// </summary>
    /// <param name="lastOrderId">The last order id.</param>
    protected virtual void SaveLastOrderId([NotNull]string lastOrderId)
    {
      Debug.ArgumentNotNull(lastOrderId, "lastOrderId");

      using (new SecurityDisabler())
      {
        using (new EditContext(this.OrdersItem))
        {
          this.OrdersItem[LastOrderId] = lastOrderId;
        }
      }
    }
  }
}


text:
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.dialogflow.v3.model;

/**
 * The response message for Experiments.ListExperiments.
 *
 *
 This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Dialogflow API. For a detailed explanation see:
 * https://developers.google.com/api-client-library/java/google-http-java-client/json
 *

 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class GoogleCloudDialogflowCxV3ListExperimentsResponse extends com.google.api.client.json.GenericJson {

  /**
   * The list of experiments. There will be a maximum number of items returned based on the
   * page_size field in the request. The list may in some cases be empty or contain fewer entries
   * than page_size even if this isn't the last page.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudDialogflowCxV3Experiment> experiments;

  static {
    // hack to force ProGuard to consider GoogleCloudDialogflowCxV3Experiment used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(GoogleCloudDialogflowCxV3Experiment.class);
  }

  /**
   * Token to retrieve the next page of results, or empty if there are no more results in the list.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String nextPageToken;

  /**
   * The list of experiments. There will be a maximum number of items returned based on the
   * page_size field in the request. The list may in some cases be empty or contain fewer entries
   * than page_size even if this isn't the last page.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudDialogflowCxV3Experiment> getExperiments() {
    return experiments;
  }

  /**
   * The list of experiments. There will be a maximum number of items returned based on the
   * page_size field in the request. The list may in some cases be empty or contain fewer entries
   * than page_size even if this isn't the last page.
   * @param experiments experiments or {@code null} for none
   */
  public GoogleCloudDialogflowCxV3ListExperimentsResponse setExperiments(java.util.List<GoogleCloudDialogflowCxV3Experiment> experiments) {
    this.experiments = experiments;
    return this;
  }

  /**
   * Token to retrieve the next page of results, or empty if there are no more results in the list.
   * @return value or {@code null} for none
   */
  public java.lang.String getNextPageToken() {
    return nextPageToken;
  }

  /**
   * Token to retrieve the next page of results, or empty if there are no more results in the list.
   * @param nextPageToken nextPageToken or {@code null} for none
   */
  public GoogleCloudDialogflowCxV3ListExperimentsResponse setNextPageToken(java.lang.String nextPageToken) {
    this.nextPageToken = nextPageToken;
    return this;
  }

  @Override
  public GoogleCloudDialogflowCxV3ListExperimentsResponse set(String fieldName, Object value) {
    return (GoogleCloudDialogflowCxV3ListExperimentsResponse) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudDialogflowCxV3ListExperimentsResponse clone() {
    return (GoogleCloudDialogflowCxV3ListExperimentsResponse) super.clone();
  }

}


text:
> Linux (Ubuntu 18+) configuration files

## Install

```bash
# clone the repository
git clone git@github.com:emil14/dotfiles.git

# setup symlinks
cd dotfiles && ./install

# install dependencies and configure the system
./setup.sh
```


text:
<?php

class CollectionsController extends PermissionsController {

	/**
	 * Show the administration dashboard page.
	 *
	 * @return View
	 */
	public function getIndex()
	{
		// echo "hey";
		// Show the page
		return View::make('backend/collections/index');
	}

	public function postIndex()
	{
	}

}


text:
package edu.umd.cs.findbugs.detect;

import java.util.Map;

import org.apache.bcel.classfile.ElementValue;
import org.apache.bcel.classfile.JavaClass;

import edu.umd.cs.findbugs.BugReporter;
import edu.umd.cs.findbugs.Detector;
import edu.umd.cs.findbugs.NonReportingDetector;
import edu.umd.cs.findbugs.ba.AnalysisContext;
import edu.umd.cs.findbugs.ba.ClassContext;
import edu.umd.cs.findbugs.ba.ClassMember;
import edu.umd.cs.findbugs.ba.XFactory;
import edu.umd.cs.findbugs.bcel.BCELUtil;
import edu.umd.cs.findbugs.visitclass.AnnotationVisitor;

public class NoteJCIPAnnotation extends AnnotationVisitor implements Detector, NonReportingDetector {

    private static final String NET_JCIP_ANNOTATIONS = "net.jcip.annotations.";

    public NoteJCIPAnnotation(BugReporter bugReporter) {
    }

    @Override
    public void visitAnnotation(String annotationClass, Map<String, ElementValue> map, boolean runtimeVisible) {

        if (!annotationClass.startsWith(NET_JCIP_ANNOTATIONS))
            return;
        annotationClass = annotationClass.substring(NET_JCIP_ANNOTATIONS.length());
        ElementValue value = map.get("value");
        ClassMember member;
        if (visitingField())
            member = XFactory.createXField(this);
        else if (visitingMethod())
            member = XFactory.createXMethod(this);
        else {
            Map<String, ElementValue> annotationsOfThisClass = AnalysisContext.currentAnalysisContext()
                    .getJCIPAnnotationDatabase().getEntryForClass(getDottedClassName());
            annotationsOfThisClass.put(annotationClass, value);
            return;
        }
        Map<String, ElementValue> annotationsOfThisMember = AnalysisContext.currentAnalysisContext().getJCIPAnnotationDatabase()
                .getEntryForClassMember(member);
        annotationsOfThisMember.put(annotationClass, value);
    }

    public void visitClassContext(ClassContext classContext) {
        JavaClass javaClass = classContext.getJavaClass();
        if (!BCELUtil.preTiger(javaClass))
            javaClass.accept(this);

    }

    public void report() {

    }

}


text:
package org.dashbuilder.navigation;

import org.dashbuilder.navigation.workbench.NavWorkbenchCtx;
import org.junit.Test;
import org.uberfire.workbench.model.ActivityResourceType;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

public class NavItemContextTest {

    @Test
    public void testEmpty() {
        NavItemContext ctx = NavItemContext.get("");
        assertEquals(ctx.getPropertyIds().size(), 0);

        ctx = NavItemContext.create();
        assertEquals(ctx.getPropertyIds().size(), 0);
    }

    @Test
    public void testParse() {
        NavItemContext ctx = NavItemContext.get("a=A;b=B;");
        assertEquals(ctx.getPropertyIds().size(), 2);
        assertEquals(ctx.getProperty("a"), "A");
        assertEquals(ctx.getProperty("b"), "B");
    }

    @Test
    public void testFormat() {
        NavItemContext ctx = NavItemContext.create();
        ctx.setProperty("a", "A");
        ctx.setProperty("b", "B");
        assertEquals(ctx.getPropertyIds().size(), 2);
        assertEquals(ctx.getProperty("a"), "A");
        assertEquals(ctx.getProperty("b"), "B");
        assertEquals(ctx.toString(), "a=A;b=B;");
    }

    @Test
    public void testPerspective() {
        NavWorkbenchCtx ctx = NavWorkbenchCtx.perspective("A");
        assertEquals(ctx.getPropertyIds().size(), 2);
        assertEquals(ctx.getResourceId(), "A");
        assertEquals(ctx.getResourceType(), ActivityResourceType.PERSPECTIVE);
        assertEquals(ctx.getProperty(NavWorkbenchCtx.RESOURCE_ID), "A");
        assertEquals(ctx.getProperty(NavWorkbenchCtx.RESOURCE_TYPE), "PERSPECTIVE");
        assertEquals(ctx.toString(), "resourceId=A;resourceType=PERSPECTIVE;");
    }

    @Test
    public void testPermissions() {
        NavWorkbenchCtx ctx = NavWorkbenchCtx.permission("p1", "p2", "p3");

        assertThat(ctx.getPermissions())
                .hasSize(3)
                .contains("p1", "p2", "p3");

        ctx.clearPermissions();

        assertThat(ctx.getPermissions())
                .isEmpty();
    }

    @Test
    public void testRemoveProperty() {
        NavWorkbenchCtx ctx = NavWorkbenchCtx.get("a=1;b=2;c=3");

        ctx.removeProperty("b");

        NavWorkbenchCtx expectedCtx = NavWorkbenchCtx.get("a=1;c=3");
        assertTrue(ctx.includesPropertiesOf(expectedCtx));
    }
}