text:
/**
 * Created by robert on 06.02.17.
 */

import {expect} from 'chai';
import * as taskActions from './taskActions';
import * as types from './actionTypes';

describe('Task Actions', () => {

    const testTask = {
        id: 1,
        taskName: "test task #1",
        description: "test description",
        done: false
    };

    it('should create a CREATE_TASK_SUCCESS action', () => {
        const expectedAction = {
            type: types.CREATE_TASK_SUCCESS,
            payload: testTask
        };

        const action = taskActions.createTaskSuccess(testTask);

        expect(action).to.deep.equal(expectedAction);
    });

    it('should create a DELETE_TASK_SUCCESS action', () => {
        const expectedAction = {
            type: types.DELETE_TASK_SUCCESS,
            payload: testTask
        };

        const action = taskActions.deleteTask(testTask);

        expect(action).to.deep.equal(expectedAction);
    });

    it('should create a LOAD_DONE_TASK action', () => {

        const expectedAction = {
            type: types.LOAD_DONE_TASKS,
        };

        const action = taskActions.loadDoneTasks();

        expect(action.type).to.equal(expectedAction.type);
    });

    it('should create a TASK_SELECTED action', () => {

        const expectedAction = {
            type: types.TASK_SELECTED,
            payload: testTask
        };

        const action = taskActions.selectTask(testTask);

        expect(action).to.deep.equal(expectedAction);
    });

    it('should create an UPDATE_TASK_STATUS action', () => {

        const expectedAction = {
            type: types.TASK_SELECTED,
            payload: testTask
        };

        const action = taskActions.selectTask(testTask);

        expect(action).to.deep.equal(expectedAction);
    });
});


text:
/// <reference path="../_references.ts"/>

module powerbi.visuals {
    export interface IRect {
        left: number;
        top: number;
        width: number;
        height: number;
    }

    export class Rect implements IRect {
        // Fields
        public left: number;
        public top: number;
        public width: number;
        public height: number;

        // Constructor
        constructor(left?: number, top?: number, width?: number, height?: number) {
            this.left = left || 0;
            this.top = top || 0;
            this.width = width || 0;
            this.height = height || 0;
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
vizbici
=======

Ejercicio de visualización de los [datos de recorridos](http://data.buenosaires.gob.ar/dataset/bicicletas-publicas) de las bicicletas públicas de Buenos Aires

## Demo: [http://dump.jazzido.com/vizbici](http://dump.jazzido.com/vizbici)

![vizbici](https://dl.dropboxusercontent.com/u/25582411/screenshot-vizbici-noborrar.png "VizBici")


text:
import { NgModule, Optional, SkipSelf } from '@angular/core';

//Services
import { StorageService } from '../../services/storage/storage.service';
import { Storage } from '@ionic/storage';
import { DeviceDataTransferService } from '../../services/device/device-data-transfer.service';
import { DeviceManagerService } from 'dip-angular2/services';
import { SettingsService } from '../../services/settings/settings.service';
import { ToastService } from '../../services/toast/toast.service';
import { LoadingService } from '../../services/loading/loading.service';
import { TooltipService } from '../../services/tooltip/tooltip.service';
import { UtilityService } from '../../services/utility/utility.service';
import { ExportService } from '../../services/export/export.service';
import { UiHelperService } from '../../services/ui-helper/ui-helper.service';

@NgModule({
    imports: [],
    providers: [
        Storage,
        StorageService,
        DeviceManagerService,
        SettingsService,
        ToastService,
        TooltipService,
        UtilityService,
        LoadingService,
        ExportService,
        DeviceDataTransferService,
        UiHelperService
    ]
})
export class CoreModule {

    constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
        if (parentModule) {
            throw new Error(
                'CoreModule is already loaded. Import it in the AppModule only');
        }
    }
}


text:
package kariminf.faris.philosophical;

import java.util.HashMap;
import java.util.HashSet;

import kariminf.faris.linguistic.Verb;
import kariminf.faris.process.Processor;

/**
 * Being-in-a-position, posture, attitude (κεῖσθαι, keisthai, to lie).
 * The examples Aristotle gives indicate that he meant a condition of rest resulting
 * from an action: 'Lying', 'sitting', 'standing'. Thus position may be taken as the
 * end point for the corresponding action. The term is, however, frequently taken to
 * mean the relative position of the parts of an object (usually a living object),
 * given that the position of the parts is inseparable from the state of rest implied.
 *
 * @author Abdelkrime Aries (kariminfo0@gmail.com)
 *

 *         Copyright (c) 2015 Abdelkrime Aries
 *

 *         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.
 */
public class Attitude extends Being{

	//In this category, represent the -ing verbs describing a substance
	//it is an adjective derived from the verb in a continuous state with another action.

	private HashMap<QuantSubstance, HashSet<Action>> owners = new HashMap<>();

	private Verb posture;

	/**
	 *
	 * @param ingVerb the -ing verb; or the action which describes a substance while another action happens
	 */
	public Attitude(Verb ingVerb) {
		this.posture = ingVerb;
	}

	public void addAttitudeOwner(QuantSubstance player, Action inAction){

		if (owners.containsKey(player)){
			owners.get(player).add(inAction);
			return;
		}

		HashSet<Action> actions = new HashSet<Action>();
		actions.add(inAction);
		owners.put(player, actions);
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		String result = "";
		result += posture.getSynSet();
		result += "ING";
		return result;
	}

	@Override
	public void process(Processor pr) {
		// TODO Auto-generated method stub

	}

}


text:
module Cryptoexchange::Exchanges
  module Hopex
    module Services
      class Market < Cryptoexchange::Services::Market
        class << self
          def supports_individual_ticker_query?
            true
          end
        end

        def fetch(market_pair)
          output = super(ticker_url(market_pair))
          adapt(market_pair, output["data"])
        end

        def ticker_url(market_pair)
          "#{Cryptoexchange::Exchanges::Hopex::Market::API_URL}/ticker?contractCode=#{market_pair.inst_id}"
        end

        def adapt(market_pair, output)
          ticker = Cryptoexchange::Models::Ticker.new
          ticker.base = market_pair.base
          ticker.target = market_pair.target
          ticker.market = Hopex::Market::NAME
          ticker.contract_interval = market_pair.contract_interval
          ticker.inst_id = market_pair.inst_id
          ticker.last = NumericHelper.to_d(output['lastPrice']).abs
          ticker.high = NumericHelper.to_d(output['price24Max'])
          ticker.low = NumericHelper.to_d(output['price24Min'])
          amount24h_usdt = output['amount24h'].split(" ")[0].delete(',').to_i
          ticker.volume = NumericHelper.divide(NumericHelper.to_d(amount24h_usdt), ticker.last)
          ticker.timestamp = nil
          ticker.payload = output
          ticker
        end
      end
    end
  end
end


text:
/**
 * @constructor
 * @implements {WebInspector.ResourceDomainModelBinding}
 * @param {WebInspector.UISourceCodeProvider} uiSourceCodeProvider
 */
WebInspector.DebuggerResourceBinding = function(uiSourceCodeProvider)
{
    this._uiSourceCodeProvider = uiSourceCodeProvider;
    WebInspector.Resource.registerDomainModelBinding(WebInspector.resourceTypes.Script, this);
}

/**
 * @param {WebInspector.UISourceCode} uiSourceCode
 * @param {string} newSource
 * @param {function(?Protocol.Error)} callback
 */
WebInspector.DebuggerResourceBinding.setScriptSource = function(uiSourceCode, newSource, callback)
{
    var rawLocation = uiSourceCode.uiLocationToRawLocation(0, 0);
    var script = WebInspector.debuggerModel.scriptForId(rawLocation.scriptId);

    /**
     * @this {WebInspector.DebuggerResourceBinding}
     * @param {?Protocol.Error} error
     */
    function didEditScriptSource(error)
    {
        if (error) {
            callback(error);
            return;
        }

        var resource = uiSourceCode.resource();
        if (resource)
            resource.addRevision(newSource);

        uiSourceCode.contentChanged(newSource);
        callback();
    }
    WebInspector.debuggerModel.setScriptSource(script.scriptId, newSource, didEditScriptSource.bind(this));
}

WebInspector.DebuggerResourceBinding.prototype = {
    /**
     * @param {WebInspector.Resource} resource
     * @return {boolean}
     */
    canSetContent: function(resource)
    {
        var uiSourceCode = WebInspector.JavaScriptSource.javaScriptSourceForResource.get(resource);
        return !!uiSourceCode && uiSourceCode.isEditable();
    },

    /**
     * @param {WebInspector.Resource} resource
     * @param {string} content
     * @param {boolean} majorChange
     * @param {function(?string)} userCallback
     */
    setContent: function(resource, content, majorChange, userCallback)
    {
        if (!majorChange)
            return;

        var uiSourceCode = WebInspector.JavaScriptSource.javaScriptSourceForResource.get(resource);
        if (!uiSourceCode) {
            userCallback("Resource is not editable");
            return;
        }

        resource.requestContent(this._setContentWithInitialContent.bind(this, uiSourceCode, content, userCallback));
    },

    /**
     * @param {WebInspector.UISourceCode} uiSourceCode
     * @param {string} content
     * @param {function(?string)} userCallback
     * @param {?string} oldContent
     * @param {boolean} oldContentEncoded
     * @param {string} mimeType
     */
    _setContentWithInitialContent: function(uiSourceCode, content, userCallback, oldContent, oldContentEncoded, mimeType)
    {
        /**
         * @this {WebInspector.DebuggerResourceBinding}
         * @param {?string} error
         */
        function callback(error)
        {
            if (userCallback)
                userCallback(error);
        }
        WebInspector.DebuggerResourceBinding.setScriptSource(uiSourceCode, content, callback.bind(this));
    }
}

WebInspector.DebuggerResourceBinding.prototype.__proto__ = WebInspector.ResourceDomainModelBinding.prototype;


text:
var path = require('path');

var dir = '/home/luncher/test/';
var dst = path.join(dir, '/../', '/test2');

console.log('dst:', dst);


text:
module Epuber
  module DSL
    module AttributeSupport
      # Method to create attribute for DSL object
      #
      # @example
      #     attribute :name
      #     attribute :title, required: true, inherited: true
      #
      # @param name [Symbol] attribute name
      # @param options [Hash]
      #
      # @see Attribute
      #
      # @return nil
      #
      def attribute(name, options = {})
        attr = Attribute.new(name, **options)

        dsl_attributes[name] = attr

        define_method_attr(name, attr)
      end

      # All DSL attributes
      #
      # @return [Hash<Symbol, Attribute>]
      #
      def dsl_attributes
        @dsl_attributes ||= {}
      end

      # @return [Object]
      #
      def find_root(instance)
        return unless instance.respond_to?(:parent)

        if instance.parent.nil?
          instance
        else
          find_root(instance.parent)
        end
      end

      # @param name [Symbol]
      # @param attr [Epuber::DSL::Attribute]
      #
      # @return nil
      #
      def define_method_attr(name, attr)
        key = name

        # define normal getter
        define_method(key) do
          value = @attributes_values[key]

          if !value.nil?
            # has value -> return it
            value

          elsif attr.inherited? && respond_to?(:parent) && !parent.nil?
            # hasn't value –> try to find it in parent
            parent.send(key)

          elsif !attr.default_value.nil?
            # just return the default value
            attr.converted_value(attr.default_value)
          end
        end

        # define normal setter
        define_method(attr.writer_name) do |value|
          if attr.singularize?
            array_value = if value.is_a? Array
                            value
                          else
                            [value]
                          end

            mapped = array_value.map { |one_value| attr.converted_value(one_value) }

            @attributes_values[key] = mapped
          else
            begin
              @attributes_values[key] = attr.converted_value(value)
            rescue Exception => e
              UI.warning("Invalid value `#{value}` for attribute `#{name}`, original error `#{e}`", location: caller_locations[1])
            end
          end
        end

        return unless attr.singularize?

        # define singular methods
        singular_key = key.to_s.singularize.to_sym

        define_method(singular_key) do
          value = @attributes_values[key]

          if attr.singularize? && value.is_a?(Array)
            value.first
          else
            value
          end
        end

        define_method(attr.writer_singular_form) do |value|
          if attr.singularize?
            array_value = if value.is_a?(Array)
                            value
                          else
                            [value]
                          end

            @attributes_values[key] = array_value.map { |one_value| attr.converted_value(one_value) }
          else
            @attributes_values[key] = attr.converted_value(value)
          end
        end
      end
    end
  end
end


text:
package edu.mayo.phenoportal.shared.database;

public enum ExecutionColumns {
	ID(1, "id", "Id"),
    USER_NAME (2, "user", "User Name"),
	ALG_NAME(3, "algorithmName", "Algorithm Name"),
	VERSION(4, "version", "Version"),
    CATEGORY_NUM(5, "categoryNum", "Category Number"),
    CATEGORY(6, "categoryId", "Category"),
    START_DATE(7, "startDate", "Start Date"),
    END_DATE(8, "endDate", "End Date"),
    STATUS(9, "status", "Status"),
    ELAPSED_TIME(10, "elapsedTime", "Elapsed Time"),
	DATE_RANGE_FROM(11, "dateRangeFrom", "Date Range From"),
	DATE_RANGE_TO(12, "dateRangeTo", "Date Range To"),
	XML_PATH(13, "xmlPath", "XML Path"),
	IMAGE_PATH(14, "imagePath", "Image Path"),
	BPMN_PATH(15, "bpmnPath", "Bpmn Path"),
	RULES_PATH(16, "rulesPath", "Rules Path");

	private final int colNum;
	private final String colName;
	private final String name;

	ExecutionColumns(int colNum, String colName, String name) {
		this.colNum = colNum;
		this.colName = colName;
		this.name = name;
	}

    public int colNum() {
    	return colNum;
    }

    public String colName() {
    	return colName;
    }

    public String normName() {
    	return name;
    }
}


text:
//Write a program that reads a text file containing a list of strings, sorts them and saves them to another text file.

using System.Collections.Generic;
using System.IO;

class SaveSortedNames
{
    static void Main()
    {

        using (StreamReader unsorted = new StreamReader(@"..\..\unsorted.txt"))
        {
            List<string> names = new List<string>();
            for (string currName = unsorted.ReadLine(); currName != null; currName = unsorted.ReadLine())
            {
                names.Add(currName);
            }

            names.Sort();
            using (StreamWriter sorted = new StreamWriter(@"..\..\sorted.txt"))
            {
                foreach (string name in names)
                {
                    sorted.WriteLine(name);
                }
            }
        }
    }
}


text:
using UnityEngine;
using System.Collections;

[RequireComponent(typeof(LineRenderer))]
public class BeamBehavior : EnergyObject
{
    public float range = 10f;

    [SerializeField]
    private float _trailLife = 0.1f;

    private CountUpTimer _trailTimer;

    private LineRenderer _lineRenderer;

    /// <summary>
    /// The position the beam will orient towards to.
    /// </summary>
    public Vector2 targetPosition;

    void Awake()
    {
        _trailTimer = new CountUpTimer(_trailLife);

        _lineRenderer = GetComponent<LineRenderer>();
    }

    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        if (_trailTimer.IsDone()) {
            Pools.Instance.Recycle(gameObject);
        }

        DecayTrailAlpha();
    }

    public void Project()
    {
        Vector2 start = transform.position;
        Vector2 toTarget = (targetPosition - start).normalized;
        Vector2 end = start + toTarget * range;

        RaycastHit2D hit = Physics2D.Raycast(start, toTarget, range);

        Vector3 lineStart = start;
        Vector3 lineEnd = end;

        lineStart.z = lineEnd.z = 10f;

        // Draw beam trail.
        _lineRenderer.SetPosition(0, lineStart);
        _lineRenderer.SetPosition(1, lineEnd);

        if (hit.collider != null) {

            _lineRenderer.SetPosition(1, hit.point);

            // Deal damage
            ObjectController oc = hit.collider.gameObject.GetComponent<ObjectController>();
            if (oc != null) {

                // Less damage is dealt at farther ranges.
                float beamLength = (start - hit.point).magnitude;
                float hitDistRatio = beamLength / range;
                float finalDamage = damage * (1 - hitDistRatio);
                oc.ApplyDamage(finalDamage);

                // Make bullet impacts responsive near the player by shaking the camera a bit.
                if (hit.collider.tag != "Player") {
                    NearImpactShake();
                }

                // Player is hit.
                else {
                    OnHitShake(finalDamage);
                }
            }

            GameObject explosion = Pools.Instance.Fetch(_explosionTypeName);
            explosion.transform.position = hit.point;

            ParticleSystem effect = explosion.GetComponent<ParticleSystem>();
            effect.Play();
        }

        _trailTimer.Start();
    }

    void OnDisable()
    {
        _trailTimer.Stop();
    }

    private void DecayTrailAlpha()
    {
        Color c = _lineRenderer.material.color;
        c.a = (1 - _trailTimer.CurrentTick()) / _trailLife;
        _lineRenderer.material.color = c;
    }

    public float TrailLife
    {
        set
        {
            _trailLife = value;
            _trailTimer.TargetTime = _trailLife;
        }
    }

    private void NearImpactShake()
    {
        Vector2 distToCam = Camera.main.transform.position - transform.position;
        float mag = distToCam.magnitude;
        if (mag < 20) {

            // The closer the impact, the stronger the camera shake.
            float shakeScalar = 1f / (mag * mag);
            if (shakeScalar > 0.4f) {
                shakeScalar = 0.4f;
            }

            CameraShake camShake = Systems.Instance.SystemUI.CameraController.CameraShake;
            camShake.duration = 0.3f;
            camShake.magnitude = shakeScalar;
            camShake.speed = 3f;
            camShake.PlayShake();
        }
    }

    private void OnHitShake(float damageScalar)
    {
        CameraShake camShake = Systems.Instance.SystemUI.CameraController.CameraShake;
        camShake.duration = 0.75f;
        camShake.magnitude = Mathf.Clamp(damageScalar, 0.3f, 1.5f);
        camShake.speed = 5f;
        camShake.PlayShake();

        Systems.Instance.SystemUI.CameraController.FillScreen(new Color(1, 1, 1, damage * 10), 0.1f);
    }
}


text:
require "test_helper"

class DefinitionsTest < Minitest::Spec
  NestedBuilder = ->(options) {
    base = options[:_base] || Declarative::Definitions.new(Declarative::Definitions::Definition)
    base.instance_exec(&options[:_block])
    base
  }

  let (:schema) { Declarative::Definitions.new(Declarative::Definitions::Definition).extend(Declarative::Definitions::Inspect) }

  it "what" do
    # #add works with name
    schema.add :id
    # get works with symbol
    schema.get(:id).inspect.must_equal '#<Declarative::Definitions::Definition: @options={:name=>"id"}>'
    # get works with string
    schema.get("id").inspect.must_equal '#<Declarative::Definitions::Definition: @options={:name=>"id"}>'

    # #add with name and options
    schema.add(:id, unique: true)
    schema.get(:id).inspect.must_equal '#<Declarative::Definitions::Definition: @options={:unique=>true, :name=>"id"}>'
  end

  it "overwrites old when called twice" do
    schema.add :id
    schema.add :id, cool: true
    schema.inspect.must_equal '{"id"=>#<Declarative::Definitions::Definition: @options={:cool=>true, :name=>"id"}>}'
  end

  it "#add with block" do
    schema.add :artist, _nested_builder: NestedBuilder do
      add :name
      add :band, _nested_builder: NestedBuilder do
        add :location
      end
    end

    schema.inspect.must_equal '{"artist"=>#<Declarative::Definitions::Definition: @options={:nested=>{"name"=>#<Declarative::Definitions::Definition: @options={:name=>"name"}>, "band"=>#<Declarative::Definitions::Definition: @options={:nested=>{"location"=>#<Declarative::Definitions::Definition: @options={:name=>"location"}>}, :name=>"band"}>}, :name=>"artist"}>}'
  end

  it "#add with :nested instead of block" do
    nested_schema = Declarative::Definitions.new(Declarative::Definitions::Definition)
    nested_schema.extend(Declarative::Definitions::Inspect)

    nested_schema.add :name

    schema.add :artist, nested: nested_schema

    schema.inspect.must_equal '{"artist"=>#<Declarative::Definitions::Definition: @options={:nested=>{"name"=>#<Declarative::Definitions::Definition: @options={:name=>"name"}>}, :name=>"artist"}>}'
  end

  it "#add with inherit: true and block" do
    schema.add :artist, cool: true, _nested_builder: NestedBuilder do
      add :name
      add :band, crazy: nil, _nested_builder: NestedBuilder do
        add :location
      end
    end

    schema.add :id, unique: true, value: 1

    schema.add :artist, uncool: false, _nested_builder: NestedBuilder, inherit: true do
      add :band, normal: false, _nested_builder: NestedBuilder, inherit: true do
        add :genre
      end
    end

    schema.add :id, unique: false, inherit: true

    schema.inspect.must_equal '{"artist"=>#<Declarative::Definitions::Definition: @options={:cool=>true, :nested=>{"name"=>#<Declarative::Definitions::Definition: @options={:name=>"name"}>, "band"=>#<Declarative::Definitions::Definition: @options={:crazy=>nil, :nested=>{"location"=>#<Declarative::Definitions::Definition: @options={:name=>"location"}>, "genre"=>#<Declarative::Definitions::Definition: @options={:name=>"genre"}>}, :name=>"band", :normal=>false}>}, :name=>"artist", :uncool=>false}>, "id"=>#<Declarative::Definitions::Definition: @options={:unique=>false, :value=>1, :name=>"id"}>}'
  end

  it "#add with nested options followed by inherit: true" do
    schema.add :id, deserializer: options = { render: false }
    schema.add :id, inherit: true

    schema.get(:id)[:deserializer][:parse] = true

    options.must_equal(render: false)
  end
end

class DefinitionTest < Minitest::Spec
  let (:definition) { Declarative::Definitions::Definition.new(:name) }

  it "#merge does return deep copy" do
    options = { render: false }
    merged = definition.merge(options)
    definition.merge!(render: true)
    merged.must_equal(:name=>"name", render: false)
  end
end


text:
using System;

namespace LfMerge.Core.Tools
{
	public class ProjectInUncleanStateException: Exception
	{
		public ProjectInUncleanStateException(string message) : base(message)
		{
		}
	}
}


text:
namespace admob {

	void initAd(const char *ID, int x, int y, int size, bool testMode);
	void showAd();
	void hideAd();
	void refreshAd();
	void initInterstitial(const char *ID, bool testMode);
	void showInterstitial();

}

#endif


text:
/*******************************************************************************
*
*  Filename    : JetProducer.hpp
*  Description : Defining Plugin for Jet selection and Caching
*  Author      : Yi-Mu "Enoch" Chen [ ensc@hep1.phys.ntu.edu.tw ]
*
*******************************************************************************/
#ifndef TSTARANALYSIS_BASELINESELECTOR_JETPRODUCER_HPP
#define TSTARANALYSIS_BASELINESELECTOR_JETPRODUCER_HPP

#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/stream/EDFilter.h"
#include <memory>

#include "CondFormats/JetMETObjects/interface/FactorizedJetCorrector.h"
#include "CondFormats/JetMETObjects/interface/JetCorrectionUncertainty.h"
#include "CondFormats/JetMETObjects/interface/JetCorrectorParameters.h"
#include "DataFormats/PatCandidates/interface/Electron.h"
#include "DataFormats/PatCandidates/interface/Jet.h"
#include "DataFormats/PatCandidates/interface/Muon.h"
#include "JetMETCorrections/Modules/interface/JetResolution.h"
#include "JetMETCorrections/Objects/interface/JetCorrectionsRecord.h"
#include <vector>

class JetProducer : public edm::stream::EDFilter<>
{
public:
  explicit
  JetProducer( const edm::ParameterSet& );
  ~JetProducer();
  static void fillDescriptions( edm::ConfigurationDescriptions& descriptions );

private:
  virtual bool filter( edm::Event&, const edm::EventSetup& ) override;

  // EDM interaction handles
  const edm::EDGetToken _jetsrc;
  const edm::EDGetToken _muonsrc;
  const edm::EDGetToken _electronsrc;
  const edm::EDGetToken _rhosrc;
  edm::Handle<std::vector<pat::Jet> > _jetHandle;
  edm::Handle<std::vector<pat::Muon> > _muonHandle;
  edm::Handle<std::vector<pat::Electron> > _electronHandle;
  edm::Handle<double> _rhoHandle;

  const unsigned _minjet;

  // Jet energy resolution and correction handler
  edm::ESHandle<JetCorrectorParametersCollection> _jetcorHandle;
  std::unique_ptr<JetCorrectionUncertainty> _jecunc;
  std::unique_ptr<JME::JetResolution> _jetptres;
  std::unique_ptr<JME::JetResolution> _jetphires;
  std::unique_ptr<JME::JetResolutionScaleFactor> _jetressf;

  // Helper variables, see src/JetSelection.cc
  bool           IsSelectedJet( const pat::Jet&, const bool isdata ) const;
  void           AddJetVariables( pat::Jet&, const bool isdata ); // cannot be constant!
  bool           IsWellMatched( const pat::Jet& ) const;
  TLorentzVector MakeScaled( const pat::Jet& ) const;
  TLorentzVector MakeSmeared( const pat::Jet& ) const;
  double         GetJetPtRes( const pat::Jet& ) const;
  double         GetJetResScale( const pat::Jet& ) const;
};

#endif/* end of include guard: TSTARANALYSIS_BASELINESELECTOR_JETPRODUCER_HPP */


text:
package org.fest.swing.driver;

import org.junit.Test;

/**
 * Test case for bug FEST-137
 *
 * @author Alex Ruiz
 */
public class FEST137_SelectAllOnDoubleClickInJTextComponent_Test extends JTextComponentDriver_TestCase {
  @Test
  public void should_select_all_text_on_double_click() {
    setTextFieldText("Hello");
    showWindow();
    driver.doubleClick(textField);
    requireSelectedTextInTextField("Hello");
  }
}


text:
{% extends "pages/page.html" %}

{% load mezzanine_tags %}

{% block main %}{{ block.super }}

{% editable page.richtextpage.content %}
{{ page.richtextpage.content|richtext_filter|safe }}
{% endeditable %}

{% endblock %}


text:
#include <common.h>
#include <errno.h>
#include <pci.h>
#include <usb.h>

#include "ehci.h"

#ifdef CONFIG_PCI_EHCI_DEVICE
static struct pci_device_id ehci_pci_ids[] = {
	/* Please add supported PCI EHCI controller ids here */
	{0x1033, 0x00E0},	/* NEC */
	{0x10B9, 0x5239},	/* ULI1575 PCI EHCI module ids */
	{0x12D8, 0x400F},	/* Pericom */
	{0, 0}
};
#else
static pci_dev_t ehci_find_class(int index)
{
	int bus;
	int devnum;
	pci_dev_t bdf;
	uint32_t class;

	for (bus = 0; bus <= pci_last_busno(); bus++) {
		for (devnum = 0; devnum < PCI_MAX_PCI_DEVICES-1; devnum++) {
			pci_read_config_dword(PCI_BDF(bus, devnum, 0),
					      PCI_CLASS_REVISION, &class);
			if (class >> 16 == 0xffff)
				continue;

			for (bdf = PCI_BDF(bus, devnum, 0);
					bdf <= PCI_BDF(bus, devnum,
						PCI_MAX_PCI_FUNCTIONS - 1);
					bdf += PCI_BDF(0, 0, 1)) {
				pci_read_config_dword(bdf, PCI_CLASS_REVISION,
						      &class);
				class >>= 8;
				/*
				 * Here be dragons! In case we have multiple
				 * PCI EHCI controllers, this function will
				 * be called multiple times as well. This
				 * function will scan the PCI busses, always
				 * starting from bus 0, device 0, function 0,
				 * until it finds an USB controller. The USB
				 * stack gives us an 'index' of a controller
				 * that is currently being registered, which
				 * is a number, starting from 0 and growing
				 * in ascending order as controllers are added.
				 * To avoid probing the same controller in tne
				 * subsequent runs of this function, we will
				 * skip 'index - 1' detected controllers and
				 * report the index'th controller.
				 */
				if (class != PCI_CLASS_SERIAL_USB_EHCI)
					continue;
				if (index) {
					index--;
					continue;
				}
				/* Return index'th controller. */
				return bdf;
			}
		}
	}

	return -ENODEV;
}
#endif

/*
 * Create the appropriate control structures to manage
 * a new EHCI host controller.
 */
int ehci_hcd_init(int index, enum usb_init_type init,
		struct ehci_hccr **ret_hccr, struct ehci_hcor **ret_hcor)
{
	pci_dev_t pdev;
	uint32_t cmd;
	struct ehci_hccr *hccr;
	struct ehci_hcor *hcor;

#ifdef CONFIG_PCI_EHCI_DEVICE
	pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE);
#else
	pdev = ehci_find_class(index);
#endif
	if (pdev < 0) {
		printf("EHCI host controller not found\n");
		return -1;
	}

	hccr = (struct ehci_hccr *)pci_map_bar(pdev,
			PCI_BASE_ADDRESS_0, PCI_REGION_MEM);
	hcor = (struct ehci_hcor *)((uint32_t) hccr +
			HC_LENGTH(ehci_readl(&hccr->cr_capbase)));

	debug("EHCI-PCI init hccr 0x%x and hcor 0x%x hc_length %d\n",
			(uint32_t)hccr, (uint32_t)hcor,
			(uint32_t)HC_LENGTH(ehci_readl(&hccr->cr_capbase)));

	*ret_hccr = hccr;
	*ret_hcor = hcor;

	/* enable busmaster */
	pci_read_config_dword(pdev, PCI_COMMAND, &cmd);
	cmd |= PCI_COMMAND_MASTER;
	pci_write_config_dword(pdev, PCI_COMMAND, cmd);
	return 0;
}

/*
 * Destroy the appropriate control structures corresponding
 * the the EHCI host controller.
 */
int ehci_hcd_stop(int index)
{
	return 0;
}


text:
require 'json'
require 'net/http'
require 'uri'

def query_consul(service)
  uri = URI.parse("http://localhost:8500/v1/catalog/service/#{service}")
  http = Net::HTTP.new(uri.host, uri.port)
  request = Net::HTTP::Get.new(uri.request_uri)

  response = http.request(request)

  if response.code == "200"
    result = JSON.parse(response.body)
    result.first["Address"]
  else
    puts "ERROR!!!"
  end
end


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

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
Uses of Interface edu.uci.ics.jung.graph.DirectedGraph (jung2 2.0.1 API)
</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Interface
edu.uci.ics.jung.graph.DirectedGraph

Packages that use DirectedGraph

edu.uci.ics.jung.algorithms.flows
Methods for calculating properties relating to network flows (such as max flow/min cut).

edu.uci.ics.jung.algorithms.importance

edu.uci.ics.jung.algorithms.metrics
Specialized measures for graph properties.

edu.uci.ics.jung.graph
Interfaces for the JUNG graph types, and some representative implementations.

edu.uci.ics.jung.graph.util
Utility interfaces and classes for the JUNG API.

Uses of DirectedGraph in edu.uci.ics.jung.algorithms.flows

Methods in edu.uci.ics.jung.algorithms.flows that return DirectedGraph

 DirectedGraph<V,E>
EdmondsKarpMaxFlow.getFlowGraph()

          Returns the graph for which the maximum flow is calculated.

Constructors in edu.uci.ics.jung.algorithms.flows with parameters of type DirectedGraph

EdmondsKarpMaxFlow(DirectedGraph<V,E> directedGraph,
                   V source,
                   V sink,
                   <any> edgeCapacityTransformer,
                   Map<E,Number> edgeFlowMap,
                   <any> edgeFactory)

          Constructs a new instance of the algorithm solver for a given graph, source, and sink.

Uses of DirectedGraph in edu.uci.ics.jung.algorithms.importance

Constructors in edu.uci.ics.jung.algorithms.importance with parameters of type DirectedGraph

KStepMarkov(DirectedGraph<V,E> graph,
            Set<V> priors,
            int k,
            Map<E,Number> edgeWeights)

          Construct the algorihm instance and initializes the algorithm.

MarkovCentrality(DirectedGraph<V,E> graph,
                 Set<V> rootNodes)

MarkovCentrality(DirectedGraph<V,E> graph,
                 Set<V> rootNodes,
                 Map<E,Number> edgeWeightKey)

WeightedNIPaths(DirectedGraph<V,E> graph,
                <any> vertexFactory,
                <any> edgeFactory,
                double alpha,
                int maxDepth,
                Set<V> priors)

          Constructs and initializes the algorithm.

Uses of DirectedGraph in edu.uci.ics.jung.algorithms.metrics

Methods in edu.uci.ics.jung.algorithms.metrics with parameters of type DirectedGraph

static

<V,E> long[]

TriadicCensus.getCounts(DirectedGraph<V,E> g)

          Returns an array whose ith element (for i in [1,16]) is the number of
 occurrences of the corresponding triad type in g.

Uses of DirectedGraph in edu.uci.ics.jung.graph

Subinterfaces of DirectedGraph in edu.uci.ics.jung.graph

 interface
Forest<V,E>

          An interface for a graph which consists of a collection of rooted
 directed acyclic graphs.

 interface
Tree<V,E>

          A subtype of Graph which is a (directed, rooted) tree.

Classes in edu.uci.ics.jung.graph that implement DirectedGraph

 class
DelegateForest<V,E>

          An implementation of Forest<V,E> that delegates to a specified DirectedGraph
 instance.

 class
DelegateTree<V,E>

          An implementation of Tree<V,E> that delegates to
 a specified instance of DirectedGraph<V,E>.

 class
DirectedOrderedSparseMultigraph<V,E>

          An implementation of DirectedGraph, suitable for sparse graphs,
 that orders its vertex and edge collections
 according to insertion time.

 class
DirectedSparseGraph<V,E>

          An implementation of DirectedGraph suitable for sparse graphs.

 class
DirectedSparseMultigraph<V,E>

          An implementation of DirectedGraph, suitable for sparse graphs,
 that permits parallel edges.

 class
OrderedKAryTree<V,E>

          An implementation of Tree in which each vertex has
 <= k children.

Constructors in edu.uci.ics.jung.graph with parameters of type DirectedGraph

DelegateForest(DirectedGraph<V,E> delegate)

          Creates an instance backed by the input DirectedGraph i

Uses of DirectedGraph in edu.uci.ics.jung.graph.util

Methods in edu.uci.ics.jung.graph.util that return DirectedGraph

static

<V,E> DirectedGraph<V,E>

Graphs.synchronizedDirectedGraph(DirectedGraph<V,E> graph)

          Returns a synchronized DirectedGraph backed by the passed DirectedGraph.

static

<V,E> DirectedGraph<V,E>

Graphs.unmodifiableDirectedGraph(DirectedGraph<V,E> graph)

          Returns an unmodifiable DirectedGraph backed by the passed graph.

Methods in edu.uci.ics.jung.graph.util with parameters of type DirectedGraph

static

<V,E> DirectedGraph<V,E>

Graphs.synchronizedDirectedGraph(DirectedGraph<V,E> graph)

          Returns a synchronized DirectedGraph backed by the passed DirectedGraph.

static

<V,E> DirectedGraph<V,E>

Graphs.unmodifiableDirectedGraph(DirectedGraph<V,E> graph)

          Returns an unmodifiable DirectedGraph backed by the passed graph.

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Copyright © 2010 null. All Rights Reserved.


text:
package servicefabric

import original "github.com/Azure/azure-sdk-for-go/services/servicefabric/1.0.0/servicefabric"

type ClusterPackagesClient = original.ClusterPackagesClient
type ClusterUpgradesClient = original.ClusterUpgradesClient
type DeployedCodePackagesClient = original.DeployedCodePackagesClient
type DeployedReplicaDetailsClient = original.DeployedReplicaDetailsClient
type PartitionLoadsClient = original.PartitionLoadsClient
type ServiceManifestsClient = original.ServiceManifestsClient
type ClusterHealthsClient = original.ClusterHealthsClient
type DeployedServicePackageHealthsClient = original.DeployedServicePackageHealthsClient
type NodeHealthsClient = original.NodeHealthsClient
type PartitionsClient = original.PartitionsClient
type ServiceHealthsClient = original.ServiceHealthsClient
type ApplicationHealthsClient = original.ApplicationHealthsClient
type DeployedApplicationsClient = original.DeployedApplicationsClient
type DeployedServicePackagesClient = original.DeployedServicePackagesClient
type PartitionHealthsClient = original.PartitionHealthsClient
type PartitionLoadInformationsClient = original.PartitionLoadInformationsClient
type ServiceGroupDescriptionsClient = original.ServiceGroupDescriptionsClient
type ServiceGroupFromTemplatesClient = original.ServiceGroupFromTemplatesClient
type ServiceGroupMembersClient = original.ServiceGroupMembersClient
type ApplicationUpgradesClient = original.ApplicationUpgradesClient
type ReplicaHealthsClient = original.ReplicaHealthsClient
type ReplicasClient = original.ReplicasClient
type DeployedReplicasClient = original.DeployedReplicasClient
type AggregatedHealthState = original.AggregatedHealthState

const (
	Error   AggregatedHealthState = original.Error
	Invalid AggregatedHealthState = original.Invalid
	Ok      AggregatedHealthState = original.Ok
	Unknown AggregatedHealthState = original.Unknown
	Warning AggregatedHealthState = original.Warning
)

type AggregatedHealthState1 = original.AggregatedHealthState1

const (
	AggregatedHealthState1Error   AggregatedHealthState1 = original.AggregatedHealthState1Error
	AggregatedHealthState1Invalid AggregatedHealthState1 = original.AggregatedHealthState1Invalid
	AggregatedHealthState1Ok      AggregatedHealthState1 = original.AggregatedHealthState1Ok
	AggregatedHealthState1Unknown AggregatedHealthState1 = original.AggregatedHealthState1Unknown
	AggregatedHealthState1Warning AggregatedHealthState1 = original.AggregatedHealthState1Warning
)

type AggregatedHealthState10 = original.AggregatedHealthState10

const (
	AggregatedHealthState10Error   AggregatedHealthState10 = original.AggregatedHealthState10Error
	AggregatedHealthState10Invalid AggregatedHealthState10 = original.AggregatedHealthState10Invalid
	AggregatedHealthState10Ok      AggregatedHealthState10 = original.AggregatedHealthState10Ok
	AggregatedHealthState10Unknown AggregatedHealthState10 = original.AggregatedHealthState10Unknown
	AggregatedHealthState10Warning AggregatedHealthState10 = original.AggregatedHealthState10Warning
)

type AggregatedHealthState11 = original.AggregatedHealthState11

const (
	AggregatedHealthState11Error   AggregatedHealthState11 = original.AggregatedHealthState11Error
	AggregatedHealthState11Invalid AggregatedHealthState11 = original.AggregatedHealthState11Invalid
	AggregatedHealthState11Ok      AggregatedHealthState11 = original.AggregatedHealthState11Ok
	AggregatedHealthState11Unknown AggregatedHealthState11 = original.AggregatedHealthState11Unknown
	AggregatedHealthState11Warning AggregatedHealthState11 = original.AggregatedHealthState11Warning
)

type AggregatedHealthState12 = original.AggregatedHealthState12

const (
	AggregatedHealthState12Error   AggregatedHealthState12 = original.AggregatedHealthState12Error
	AggregatedHealthState12Invalid AggregatedHealthState12 = original.AggregatedHealthState12Invalid
	AggregatedHealthState12Ok      AggregatedHealthState12 = original.AggregatedHealthState12Ok
	AggregatedHealthState12Unknown AggregatedHealthState12 = original.AggregatedHealthState12Unknown
	AggregatedHealthState12Warning AggregatedHealthState12 = original.AggregatedHealthState12Warning
)

type AggregatedHealthState13 = original.AggregatedHealthState13

const (
	AggregatedHealthState13Error   AggregatedHealthState13 = original.AggregatedHealthState13Error
	AggregatedHealthState13Invalid AggregatedHealthState13 = original.AggregatedHealthState13Invalid
	AggregatedHealthState13Ok      AggregatedHealthState13 = original.AggregatedHealthState13Ok
	AggregatedHealthState13Unknown AggregatedHealthState13 = original.AggregatedHealthState13Unknown
	AggregatedHealthState13Warning AggregatedHealthState13 = original.AggregatedHealthState13Warning
)

type AggregatedHealthState14 = original.AggregatedHealthState14

const (
	AggregatedHealthState14Error   AggregatedHealthState14 = original.AggregatedHealthState14Error
	AggregatedHealthState14Invalid AggregatedHealthState14 = original.AggregatedHealthState14Invalid
	AggregatedHealthState14Ok      AggregatedHealthState14 = original.AggregatedHealthState14Ok
	AggregatedHealthState14Unknown AggregatedHealthState14 = original.AggregatedHealthState14Unknown
	AggregatedHealthState14Warning AggregatedHealthState14 = original.AggregatedHealthState14Warning
)

type AggregatedHealthState15 = original.AggregatedHealthState15

const (
	AggregatedHealthState15Error   AggregatedHealthState15 = original.AggregatedHealthState15Error
	AggregatedHealthState15Invalid AggregatedHealthState15 = original.AggregatedHealthState15Invalid
	AggregatedHealthState15Ok      AggregatedHealthState15 = original.AggregatedHealthState15Ok
	AggregatedHealthState15Unknown AggregatedHealthState15 = original.AggregatedHealthState15Unknown
	AggregatedHealthState15Warning AggregatedHealthState15 = original.AggregatedHealthState15Warning
)

type AggregatedHealthState2 = original.AggregatedHealthState2

const (
	AggregatedHealthState2Error   AggregatedHealthState2 = original.AggregatedHealthState2Error
	AggregatedHealthState2Invalid AggregatedHealthState2 = original.AggregatedHealthState2Invalid
	AggregatedHealthState2Ok      AggregatedHealthState2 = original.AggregatedHealthState2Ok
	AggregatedHealthState2Unknown AggregatedHealthState2 = original.AggregatedHealthState2Unknown
	AggregatedHealthState2Warning AggregatedHealthState2 = original.AggregatedHealthState2Warning
)

type AggregatedHealthState3 = original.AggregatedHealthState3

const (
	AggregatedHealthState3Error   AggregatedHealthState3 = original.AggregatedHealthState3Error
	AggregatedHealthState3Invalid AggregatedHealthState3 = original.AggregatedHealthState3Invalid
	AggregatedHealthState3Ok      AggregatedHealthState3 = original.AggregatedHealthState3Ok
	AggregatedHealthState3Unknown AggregatedHealthState3 = original.AggregatedHealthState3Unknown
	AggregatedHealthState3Warning AggregatedHealthState3 = original.AggregatedHealthState3Warning
)

type AggregatedHealthState4 = original.AggregatedHealthState4

const (
	AggregatedHealthState4Error   AggregatedHealthState4 = original.AggregatedHealthState4Error
	AggregatedHealthState4Invalid AggregatedHealthState4 = original.AggregatedHealthState4Invalid
	AggregatedHealthState4Ok      AggregatedHealthState4 = original.AggregatedHealthState4Ok
	AggregatedHealthState4Unknown AggregatedHealthState4 = original.AggregatedHealthState4Unknown
	AggregatedHealthState4Warning AggregatedHealthState4 = original.AggregatedHealthState4Warning
)

type AggregatedHealthState5 = original.AggregatedHealthState5

const (
	AggregatedHealthState5Error   AggregatedHealthState5 = original.AggregatedHealthState5Error
	AggregatedHealthState5Invalid AggregatedHealthState5 = original.AggregatedHealthState5Invalid
	AggregatedHealthState5Ok      AggregatedHealthState5 = original.AggregatedHealthState5Ok
	AggregatedHealthState5Unknown AggregatedHealthState5 = original.AggregatedHealthState5Unknown
	AggregatedHealthState5Warning AggregatedHealthState5 = original.AggregatedHealthState5Warning
)

type AggregatedHealthState6 = original.AggregatedHealthState6

const (
	AggregatedHealthState6Error   AggregatedHealthState6 = original.AggregatedHealthState6Error
	AggregatedHealthState6Invalid AggregatedHealthState6 = original.AggregatedHealthState6Invalid
	AggregatedHealthState6Ok      AggregatedHealthState6 = original.AggregatedHealthState6Ok
	AggregatedHealthState6Unknown AggregatedHealthState6 = original.AggregatedHealthState6Unknown
	AggregatedHealthState6Warning AggregatedHealthState6 = original.AggregatedHealthState6Warning
)

type AggregatedHealthState7 = original.AggregatedHealthState7

const (
	AggregatedHealthState7Error   AggregatedHealthState7 = original.AggregatedHealthState7Error
	AggregatedHealthState7Invalid AggregatedHealthState7 = original.AggregatedHealthState7Invalid
	AggregatedHealthState7Ok      AggregatedHealthState7 = original.AggregatedHealthState7Ok
	AggregatedHealthState7Unknown AggregatedHealthState7 = original.AggregatedHealthState7Unknown
	AggregatedHealthState7Warning AggregatedHealthState7 = original.AggregatedHealthState7Warning
)

type AggregatedHealthState8 = original.AggregatedHealthState8

const (
	AggregatedHealthState8Error   AggregatedHealthState8 = original.AggregatedHealthState8Error
	AggregatedHealthState8Invalid AggregatedHealthState8 = original.AggregatedHealthState8Invalid
	AggregatedHealthState8Ok      AggregatedHealthState8 = original.AggregatedHealthState8Ok
	AggregatedHealthState8Unknown AggregatedHealthState8 = original.AggregatedHealthState8Unknown
	AggregatedHealthState8Warning AggregatedHealthState8 = original.AggregatedHealthState8Warning
)

type AggregatedHealthState9 = original.AggregatedHealthState9

const (
	AggregatedHealthState9Error   AggregatedHealthState9 = original.AggregatedHealthState9Error
	AggregatedHealthState9Invalid AggregatedHealthState9 = original.AggregatedHealthState9Invalid
	AggregatedHealthState9Ok      AggregatedHealthState9 = original.AggregatedHealthState9Ok
	AggregatedHealthState9Unknown AggregatedHealthState9 = original.AggregatedHealthState9Unknown
	AggregatedHealthState9Warning AggregatedHealthState9 = original.AggregatedHealthState9Warning
)

type DeactivationIntent = original.DeactivationIntent

const (
	Pause      DeactivationIntent = original.Pause
	RemoveData DeactivationIntent = original.RemoveData
	RemoveNode DeactivationIntent = original.RemoveNode
	Restart    DeactivationIntent = original.Restart
)

type DefaultMoveCost = original.DefaultMoveCost

const (
	High   DefaultMoveCost = original.High
	Low    DefaultMoveCost = original.Low
	Medium DefaultMoveCost = original.Medium
	Zero   DefaultMoveCost = original.Zero
)

type DefaultMoveCost1 = original.DefaultMoveCost1

const (
	DefaultMoveCost1High   DefaultMoveCost1 = original.DefaultMoveCost1High
	DefaultMoveCost1Low    DefaultMoveCost1 = original.DefaultMoveCost1Low
	DefaultMoveCost1Medium DefaultMoveCost1 = original.DefaultMoveCost1Medium
	DefaultMoveCost1Zero   DefaultMoveCost1 = original.DefaultMoveCost1Zero
)

type DefaultMoveCost2 = original.DefaultMoveCost2

const (
	DefaultMoveCost2High   DefaultMoveCost2 = original.DefaultMoveCost2High
	DefaultMoveCost2Low    DefaultMoveCost2 = original.DefaultMoveCost2Low
	DefaultMoveCost2Medium DefaultMoveCost2 = original.DefaultMoveCost2Medium
	DefaultMoveCost2Zero   DefaultMoveCost2 = original.DefaultMoveCost2Zero
)

type DefaultMoveCost3 = original.DefaultMoveCost3

const (
	DefaultMoveCost3High   DefaultMoveCost3 = original.DefaultMoveCost3High
	DefaultMoveCost3Low    DefaultMoveCost3 = original.DefaultMoveCost3Low
	DefaultMoveCost3Medium DefaultMoveCost3 = original.DefaultMoveCost3Medium
	DefaultMoveCost3Zero   DefaultMoveCost3 = original.DefaultMoveCost3Zero
)

type FailureReason = original.FailureReason

const (
	FailureReasonHealthCheck           FailureReason = original.FailureReasonHealthCheck
	FailureReasonInterrupted           FailureReason = original.FailureReasonInterrupted
	FailureReasonInvalid               FailureReason = original.FailureReasonInvalid
	FailureReasonOverallUpgradeTimeout FailureReason = original.FailureReasonOverallUpgradeTimeout
	FailureReasonUpgradeDomainTimeout  FailureReason = original.FailureReasonUpgradeDomainTimeout
)

type FailureReason1 = original.FailureReason1

const (
	FailureReason1HealthCheck           FailureReason1 = original.FailureReason1HealthCheck
	FailureReason1Interrupted           FailureReason1 = original.FailureReason1Interrupted
	FailureReason1Invalid               FailureReason1 = original.FailureReason1Invalid
	FailureReason1OverallUpgradeTimeout FailureReason1 = original.FailureReason1OverallUpgradeTimeout
	FailureReason1UpgradeDomainTimeout  FailureReason1 = original.FailureReason1UpgradeDomainTimeout
)

type HealthState = original.HealthState

const (
	HealthStateError   HealthState = original.HealthStateError
	HealthStateInvalid HealthState = original.HealthStateInvalid
	HealthStateOk      HealthState = original.HealthStateOk
	HealthStateUnknown HealthState = original.HealthStateUnknown
	HealthStateWarning HealthState = original.HealthStateWarning
)

type HealthState1 = original.HealthState1

const (
	HealthState1Error   HealthState1 = original.HealthState1Error
	HealthState1Invalid HealthState1 = original.HealthState1Invalid
	HealthState1Ok      HealthState1 = original.HealthState1Ok
	HealthState1Unknown HealthState1 = original.HealthState1Unknown
	HealthState1Warning HealthState1 = original.HealthState1Warning
)

type HealthState2 = original.HealthState2

const (
	HealthState2Error   HealthState2 = original.HealthState2Error
	HealthState2Invalid HealthState2 = original.HealthState2Invalid
	HealthState2Ok      HealthState2 = original.HealthState2Ok
	HealthState2Unknown HealthState2 = original.HealthState2Unknown
	HealthState2Warning HealthState2 = original.HealthState2Warning
)

type HealthState3 = original.HealthState3

const (
	HealthState3Error   HealthState3 = original.HealthState3Error
	HealthState3Invalid HealthState3 = original.HealthState3Invalid
	HealthState3Ok      HealthState3 = original.HealthState3Ok
	HealthState3Unknown HealthState3 = original.HealthState3Unknown
	HealthState3Warning HealthState3 = original.HealthState3Warning
)

type HealthState4 = original.HealthState4

const (
	HealthState4Error   HealthState4 = original.HealthState4Error
	HealthState4Invalid HealthState4 = original.HealthState4Invalid
	HealthState4Ok      HealthState4 = original.HealthState4Ok
	HealthState4Unknown HealthState4 = original.HealthState4Unknown
	HealthState4Warning HealthState4 = original.HealthState4Warning
)

type HealthState5 = original.HealthState5

const (
	HealthState5Error   HealthState5 = original.HealthState5Error
	HealthState5Invalid HealthState5 = original.HealthState5Invalid
	HealthState5Ok      HealthState5 = original.HealthState5Ok
	HealthState5Unknown HealthState5 = original.HealthState5Unknown
	HealthState5Warning HealthState5 = original.HealthState5Warning
)

type HealthState6 = original.HealthState6

const (
	HealthState6Error   HealthState6 = original.HealthState6Error
	HealthState6Invalid HealthState6 = original.HealthState6Invalid
	HealthState6Ok      HealthState6 = original.HealthState6Ok
	HealthState6Unknown HealthState6 = original.HealthState6Unknown
	HealthState6Warning HealthState6 = original.HealthState6Warning
)

type Kind = original.Kind

const (
	KindApplication                       Kind = original.KindApplication
	KindApplications                      Kind = original.KindApplications
	KindApplicationType                   Kind = original.KindApplicationType
	KindDeltaNodesCheck                   Kind = original.KindDeltaNodesCheck
	KindDeployedApplication               Kind = original.KindDeployedApplication
	KindDeployedApplications              Kind = original.KindDeployedApplications
	KindDeployedServicePackage            Kind = original.KindDeployedServicePackage
	KindDeployedServicePackages           Kind = original.KindDeployedServicePackages
	KindEvent                             Kind = original.KindEvent
	KindNode                              Kind = original.KindNode
	KindNodes                             Kind = original.KindNodes
	KindPartition                         Kind = original.KindPartition
	KindPartitions                        Kind = original.KindPartitions
	KindReplica                           Kind = original.KindReplica
	KindReplicas                          Kind = original.KindReplicas
	KindService                           Kind = original.KindService
	KindServices                          Kind = original.KindServices
	KindSystemApplication                 Kind = original.KindSystemApplication
	KindUpgradeDomainDeltaNodesCheck      Kind = original.KindUpgradeDomainDeltaNodesCheck
	KindUpgradeDomainDeployedApplications Kind = original.KindUpgradeDomainDeployedApplications
	KindUpgradeDomainNodes                Kind = original.KindUpgradeDomainNodes
)

type NodeDeactivationIntent = original.NodeDeactivationIntent

const (
	NodeDeactivationIntentInvalid    NodeDeactivationIntent = original.NodeDeactivationIntentInvalid
	NodeDeactivationIntentPause      NodeDeactivationIntent = original.NodeDeactivationIntentPause
	NodeDeactivationIntentRemoveData NodeDeactivationIntent = original.NodeDeactivationIntentRemoveData
	NodeDeactivationIntentRestart    NodeDeactivationIntent = original.NodeDeactivationIntentRestart
)

type NodeDeactivationStatus = original.NodeDeactivationStatus

const (
	NodeDeactivationStatusCompleted             NodeDeactivationStatus = original.NodeDeactivationStatusCompleted
	NodeDeactivationStatusInvalid               NodeDeactivationStatus = original.NodeDeactivationStatusInvalid
	NodeDeactivationStatusSafetyCheckComplete   NodeDeactivationStatus = original.NodeDeactivationStatusSafetyCheckComplete
	NodeDeactivationStatusSafetyCheckInProgress NodeDeactivationStatus = original.NodeDeactivationStatusSafetyCheckInProgress
)

type NodeStatus = original.NodeStatus

const (
	NodeStatusDisabled  NodeStatus = original.NodeStatusDisabled
	NodeStatusDisabling NodeStatus = original.NodeStatusDisabling
	NodeStatusDown      NodeStatus = original.NodeStatusDown
	NodeStatusEnabling  NodeStatus = original.NodeStatusEnabling
	NodeStatusInvalid   NodeStatus = original.NodeStatusInvalid
	NodeStatusRemoved   NodeStatus = original.NodeStatusRemoved
	NodeStatusUnknown   NodeStatus = original.NodeStatusUnknown
	NodeStatusUp        NodeStatus = original.NodeStatusUp
)

type PartitionScheme = original.PartitionScheme

const (
	PartitionSchemeInvalid      PartitionScheme = original.PartitionSchemeInvalid
	PartitionSchemeNamed        PartitionScheme = original.PartitionSchemeNamed
	PartitionSchemeSingleton    PartitionScheme = original.PartitionSchemeSingleton
	PartitionSchemeUniformInt64 PartitionScheme = original.PartitionSchemeUniformInt64
)

type PartitionStatus = original.PartitionStatus

const (
	PartitionStatusDeleting      PartitionStatus = original.PartitionStatusDeleting
	PartitionStatusInQuorumLoss  PartitionStatus = original.PartitionStatusInQuorumLoss
	PartitionStatusInvalid       PartitionStatus = original.PartitionStatusInvalid
	PartitionStatusNotReady      PartitionStatus = original.PartitionStatusNotReady
	PartitionStatusReady         PartitionStatus = original.PartitionStatusReady
	PartitionStatusReconfiguring PartitionStatus = original.PartitionStatusReconfiguring
)

type ReplicaRole = original.ReplicaRole

const (
	ReplicaRoleActiveSecondary ReplicaRole = original.ReplicaRoleActiveSecondary
	ReplicaRoleIdleSecondary   ReplicaRole = original.ReplicaRoleIdleSecondary
	ReplicaRoleInvalid         ReplicaRole = original.ReplicaRoleInvalid
	ReplicaRoleNone            ReplicaRole = original.ReplicaRoleNone
	ReplicaRolePrimary         ReplicaRole = original.ReplicaRolePrimary
)

type ReplicaRole1 = original.ReplicaRole1

const (
	ReplicaRole1ActiveSecondary ReplicaRole1 = original.ReplicaRole1ActiveSecondary
	ReplicaRole1IdleSecondary   ReplicaRole1 = original.ReplicaRole1IdleSecondary
	ReplicaRole1Invalid         ReplicaRole1 = original.ReplicaRole1Invalid
	ReplicaRole1None            ReplicaRole1 = original.ReplicaRole1None
	ReplicaRole1Primary         ReplicaRole1 = original.ReplicaRole1Primary
)

type ReplicaStatus = original.ReplicaStatus

const (
	ReplicaStatusDown    ReplicaStatus = original.ReplicaStatusDown
	ReplicaStatusDropped ReplicaStatus = original.ReplicaStatusDropped
	ReplicaStatusInBuild ReplicaStatus = original.ReplicaStatusInBuild
	ReplicaStatusInvalid ReplicaStatus = original.ReplicaStatusInvalid
	ReplicaStatusReady   ReplicaStatus = original.ReplicaStatusReady
	ReplicaStatusStandby ReplicaStatus = original.ReplicaStatusStandby
)

type ReplicaStatus1 = original.ReplicaStatus1

const (
	ReplicaStatus1Down    ReplicaStatus1 = original.ReplicaStatus1Down
	ReplicaStatus1Dropped ReplicaStatus1 = original.ReplicaStatus1Dropped
	ReplicaStatus1InBuild ReplicaStatus1 = original.ReplicaStatus1InBuild
	ReplicaStatus1Invalid ReplicaStatus1 = original.ReplicaStatus1Invalid
	ReplicaStatus1Ready   ReplicaStatus1 = original.ReplicaStatus1Ready
	ReplicaStatus1Standby ReplicaStatus1 = original.ReplicaStatus1Standby
)

type RollingUpgradeMode = original.RollingUpgradeMode

const (
	RollingUpgradeModeInvalid           RollingUpgradeMode = original.RollingUpgradeModeInvalid
	RollingUpgradeModeMonitored         RollingUpgradeMode = original.RollingUpgradeModeMonitored
	RollingUpgradeModeUnmonitoredAuto   RollingUpgradeMode = original.RollingUpgradeModeUnmonitoredAuto
	RollingUpgradeModeUnmonitoredManual RollingUpgradeMode = original.RollingUpgradeModeUnmonitoredManual
)

type RollingUpgradeMode1 = original.RollingUpgradeMode1

const (
	RollingUpgradeMode1Invalid           RollingUpgradeMode1 = original.RollingUpgradeMode1Invalid
	RollingUpgradeMode1Monitored         RollingUpgradeMode1 = original.RollingUpgradeMode1Monitored
	RollingUpgradeMode1UnmonitoredAuto   RollingUpgradeMode1 = original.RollingUpgradeMode1UnmonitoredAuto
	RollingUpgradeMode1UnmonitoredManual RollingUpgradeMode1 = original.RollingUpgradeMode1UnmonitoredManual
)

type RollingUpgradeMode2 = original.RollingUpgradeMode2

const (
	RollingUpgradeMode2Invalid           RollingUpgradeMode2 = original.RollingUpgradeMode2Invalid
	RollingUpgradeMode2Monitored         RollingUpgradeMode2 = original.RollingUpgradeMode2Monitored
	RollingUpgradeMode2UnmonitoredAuto   RollingUpgradeMode2 = original.RollingUpgradeMode2UnmonitoredAuto
	RollingUpgradeMode2UnmonitoredManual RollingUpgradeMode2 = original.RollingUpgradeMode2UnmonitoredManual
)

type RollingUpgradeMode3 = original.RollingUpgradeMode3

const (
	RollingUpgradeMode3Invalid           RollingUpgradeMode3 = original.RollingUpgradeMode3Invalid
	RollingUpgradeMode3Monitored         RollingUpgradeMode3 = original.RollingUpgradeMode3Monitored
	RollingUpgradeMode3UnmonitoredAuto   RollingUpgradeMode3 = original.RollingUpgradeMode3UnmonitoredAuto
	RollingUpgradeMode3UnmonitoredManual RollingUpgradeMode3 = original.RollingUpgradeMode3UnmonitoredManual
)

type RollingUpgradeMode4 = original.RollingUpgradeMode4

const (
	RollingUpgradeMode4Invalid           RollingUpgradeMode4 = original.RollingUpgradeMode4Invalid
	RollingUpgradeMode4Monitored         RollingUpgradeMode4 = original.RollingUpgradeMode4Monitored
	RollingUpgradeMode4UnmonitoredAuto   RollingUpgradeMode4 = original.RollingUpgradeMode4UnmonitoredAuto
	RollingUpgradeMode4UnmonitoredManual RollingUpgradeMode4 = original.RollingUpgradeMode4UnmonitoredManual
)

type RollingUpgradeMode5 = original.RollingUpgradeMode5

const (
	RollingUpgradeMode5Invalid           RollingUpgradeMode5 = original.RollingUpgradeMode5Invalid
	RollingUpgradeMode5Monitored         RollingUpgradeMode5 = original.RollingUpgradeMode5Monitored
	RollingUpgradeMode5UnmonitoredAuto   RollingUpgradeMode5 = original.RollingUpgradeMode5UnmonitoredAuto
	RollingUpgradeMode5UnmonitoredManual RollingUpgradeMode5 = original.RollingUpgradeMode5UnmonitoredManual
)

type ServiceCorrelationScheme = original.ServiceCorrelationScheme

const (
	ServiceCorrelationSchemeAffinity           ServiceCorrelationScheme = original.ServiceCorrelationSchemeAffinity
	ServiceCorrelationSchemeAlignedAffinity    ServiceCorrelationScheme = original.ServiceCorrelationSchemeAlignedAffinity
	ServiceCorrelationSchemeInvalid            ServiceCorrelationScheme = original.ServiceCorrelationSchemeInvalid
	ServiceCorrelationSchemeNonAlignedAffinity ServiceCorrelationScheme = original.ServiceCorrelationSchemeNonAlignedAffinity
)

type ServiceKind = original.ServiceKind

const (
	ServiceKindInvalid   ServiceKind = original.ServiceKindInvalid
	ServiceKindStateful  ServiceKind = original.ServiceKindStateful
	ServiceKindStateless ServiceKind = original.ServiceKindStateless
)

type ServiceKind1 = original.ServiceKind1

const (
	ServiceKind1Invalid   ServiceKind1 = original.ServiceKind1Invalid
	ServiceKind1Stateful  ServiceKind1 = original.ServiceKind1Stateful
	ServiceKind1Stateless ServiceKind1 = original.ServiceKind1Stateless
)

type ServiceKind2 = original.ServiceKind2

const (
	ServiceKind2Invalid   ServiceKind2 = original.ServiceKind2Invalid
	ServiceKind2Stateful  ServiceKind2 = original.ServiceKind2Stateful
	ServiceKind2Stateless ServiceKind2 = original.ServiceKind2Stateless
)

type ServiceKind3 = original.ServiceKind3

const (
	ServiceKind3Invalid   ServiceKind3 = original.ServiceKind3Invalid
	ServiceKind3Stateful  ServiceKind3 = original.ServiceKind3Stateful
	ServiceKind3Stateless ServiceKind3 = original.ServiceKind3Stateless
)

type ServiceKind4 = original.ServiceKind4

const (
	ServiceKind4Invalid   ServiceKind4 = original.ServiceKind4Invalid
	ServiceKind4Stateful  ServiceKind4 = original.ServiceKind4Stateful
	ServiceKind4Stateless ServiceKind4 = original.ServiceKind4Stateless
)

type ServiceKind5 = original.ServiceKind5

const (
	ServiceKind5Invalid   ServiceKind5 = original.ServiceKind5Invalid
	ServiceKind5Stateful  ServiceKind5 = original.ServiceKind5Stateful
	ServiceKind5Stateless ServiceKind5 = original.ServiceKind5Stateless
)

type ServiceKind6 = original.ServiceKind6

const (
	ServiceKind6Invalid   ServiceKind6 = original.ServiceKind6Invalid
	ServiceKind6Stateful  ServiceKind6 = original.ServiceKind6Stateful
	ServiceKind6Stateless ServiceKind6 = original.ServiceKind6Stateless
)

type ServiceLoadMetricWeight = original.ServiceLoadMetricWeight

const (
	ServiceLoadMetricWeightHigh   ServiceLoadMetricWeight = original.ServiceLoadMetricWeightHigh
	ServiceLoadMetricWeightLow    ServiceLoadMetricWeight = original.ServiceLoadMetricWeightLow
	ServiceLoadMetricWeightMedium ServiceLoadMetricWeight = original.ServiceLoadMetricWeightMedium
	ServiceLoadMetricWeightZero   ServiceLoadMetricWeight = original.ServiceLoadMetricWeightZero
)

type ServicePartitionKind = original.ServicePartitionKind

const (
	ServicePartitionKindInt64Range ServicePartitionKind = original.ServicePartitionKindInt64Range
	ServicePartitionKindInvalid    ServicePartitionKind = original.ServicePartitionKindInvalid
	ServicePartitionKindNamed      ServicePartitionKind = original.ServicePartitionKindNamed
	ServicePartitionKindSingleton  ServicePartitionKind = original.ServicePartitionKindSingleton
)

type ServiceStatus = original.ServiceStatus

const (
	ServiceStatusActive    ServiceStatus = original.ServiceStatusActive
	ServiceStatusCreating  ServiceStatus = original.ServiceStatusCreating
	ServiceStatusDeleting  ServiceStatus = original.ServiceStatusDeleting
	ServiceStatusFaile     ServiceStatus = original.ServiceStatusFaile
	ServiceStatusInvalid   ServiceStatus = original.ServiceStatusInvalid
	ServiceStatusUpgrading ServiceStatus = original.ServiceStatusUpgrading
)

type UpgradeKind = original.UpgradeKind

const (
	UpgradeKindInvalid UpgradeKind = original.UpgradeKindInvalid
	UpgradeKindRolling UpgradeKind = original.UpgradeKindRolling
)

type UpgradeState = original.UpgradeState

const (
	UpgradeStateInvalid                  UpgradeState = original.UpgradeStateInvalid
	UpgradeStateRollingBackCompleted     UpgradeState = original.UpgradeStateRollingBackCompleted
	UpgradeStateRollingBackInProgress    UpgradeState = original.UpgradeStateRollingBackInProgress
	UpgradeStateRollingForwardCompleted  UpgradeState = original.UpgradeStateRollingForwardCompleted
	UpgradeStateRollingForwardInProgress UpgradeState = original.UpgradeStateRollingForwardInProgress
	UpgradeStateRollingForwardPending    UpgradeState = original.UpgradeStateRollingForwardPending
)

type UpgradeState1 = original.UpgradeState1

const (
	UpgradeState1Invalid                  UpgradeState1 = original.UpgradeState1Invalid
	UpgradeState1RollingBackCompleted     UpgradeState1 = original.UpgradeState1RollingBackCompleted
	UpgradeState1RollingBackInProgress    UpgradeState1 = original.UpgradeState1RollingBackInProgress
	UpgradeState1RollingForwardCompleted  UpgradeState1 = original.UpgradeState1RollingForwardCompleted
	UpgradeState1RollingForwardInProgress UpgradeState1 = original.UpgradeState1RollingForwardInProgress
	UpgradeState1RollingForwardPending    UpgradeState1 = original.UpgradeState1RollingForwardPending
)

type Application = original.Application
type ApplicationDescription = original.ApplicationDescription
type ApplicationDescriptionParameterListItem = original.ApplicationDescriptionParameterListItem
type ApplicationHealth = original.ApplicationHealth
type ApplicationHealthDeployedApplicationHealthStatesItem = original.ApplicationHealthDeployedApplicationHealthStatesItem
type ApplicationHealthEvaluation = original.ApplicationHealthEvaluation
type ApplicationHealthPolicy = original.ApplicationHealthPolicy
type ApplicationHealthPolicyDefaultServiceTypeHealthPolicy = original.ApplicationHealthPolicyDefaultServiceTypeHealthPolicy
type ApplicationHealthPolicyMap = original.ApplicationHealthPolicyMap
type ApplicationHealthReport = original.ApplicationHealthReport
type ApplicationHealthServiceHealthStatesItem = original.ApplicationHealthServiceHealthStatesItem
type ApplicationList = original.ApplicationList
type ApplicationManifest = original.ApplicationManifest
type ApplicationParametersItem = original.ApplicationParametersItem
type ApplicationsHealthEvaluation = original.ApplicationsHealthEvaluation
type ApplicationType = original.ApplicationType
type ApplicationTypeDefaultParameterListItem = original.ApplicationTypeDefaultParameterListItem
type ApplicationTypeHealthEvaluation = original.ApplicationTypeHealthEvaluation
type ApplicationUpgrade = original.ApplicationUpgrade
type ApplicationUpgradeCurrentUpgradeDomainProgress = original.ApplicationUpgradeCurrentUpgradeDomainProgress
type ApplicationUpgradeDeployedApplicationHealthStates = original.ApplicationUpgradeDeployedApplicationHealthStates
type ClusterHealth = original.ClusterHealth
type ClusterHealthApplicationHealthStateItem = original.ClusterHealthApplicationHealthStateItem
type ClusterHealthNodeHealthStatesItem = original.ClusterHealthNodeHealthStatesItem
type ClusterHealthNodeHealthStatesItemID = original.ClusterHealthNodeHealthStatesItemID
type ClusterHealthPolicy = original.ClusterHealthPolicy
type ClusterHealthReport = original.ClusterHealthReport
type ClusterLoadInformation = original.ClusterLoadInformation
type ClusterUpgradeHealthPolicy = original.ClusterUpgradeHealthPolicy
type ClusterUpgradeProgress = original.ClusterUpgradeProgress
type ClusterUpgradeProgressCurrentUpgradeDomainProgress = original.ClusterUpgradeProgressCurrentUpgradeDomainProgress
type ClusterUpgradeProgressUpgradeDomainProgressAtFailure = original.ClusterUpgradeProgressUpgradeDomainProgressAtFailure
type CodePackageEntryPointStatistics = original.CodePackageEntryPointStatistics
type CreateServiceDescription = original.CreateServiceDescription
type CreateServiceGroupDescription = original.CreateServiceGroupDescription
type DeltaNodesCheckHealthEvaluation = original.DeltaNodesCheckHealthEvaluation
type DeployedApplication = original.DeployedApplication
type DeployedApplicationHealth = original.DeployedApplicationHealth
type DeployedApplicationHealthEvaluation = original.DeployedApplicationHealthEvaluation
type DeployedApplicationHealthReport = original.DeployedApplicationHealthReport
type DeployedApplicationsHealthEvaluation = original.DeployedApplicationsHealthEvaluation
type DeployedCodePackage = original.DeployedCodePackage
type DeployedReplica = original.DeployedReplica
type DeployedReplicaDetail = original.DeployedReplicaDetail
type DeployedReplicaDetailReplicatorStatus = original.DeployedReplicaDetailReplicatorStatus
type DeployedReplicaDetailReplicatorStatusReplicationQueueStatus = original.DeployedReplicaDetailReplicatorStatusReplicationQueueStatus
type DeployedServiceHealthReport = original.DeployedServiceHealthReport
type DeployedServicePackage = original.DeployedServicePackage
type DeployedServicePackageHealth = original.DeployedServicePackageHealth
type DeployedServicePackageHealthEvaluation = original.DeployedServicePackageHealthEvaluation
type DeployedServicePackageHealthState = original.DeployedServicePackageHealthState
type DeployedServicePackagesHealthEvaluation = original.DeployedServicePackagesHealthEvaluation
type DeployedServiceType = original.DeployedServiceType
type DisableNode = original.DisableNode
type EntryPoint = original.EntryPoint
type ErrorModel = original.ErrorModel
type ErrorModelError = original.ErrorModelError
type EventHealthEvaluation = original.EventHealthEvaluation
type HealthEvaluation = original.HealthEvaluation
type HealthEvent = original.HealthEvent
type HealthReport = original.HealthReport
type ListApplicationType = original.ListApplicationType
type ListDeployedApplication = original.ListDeployedApplication
type ListDeployedCodePackage = original.ListDeployedCodePackage
type ListDeployedReplica = original.ListDeployedReplica
type ListDeployedServicePackage = original.ListDeployedServicePackage
type ListDeployedServiceType = original.ListDeployedServiceType
type ListServiceType = original.ListServiceType
type LoadMetricInformation = original.LoadMetricInformation
type LoadMetricInformationMaxNodeLoadID = original.LoadMetricInformationMaxNodeLoadID
type LoadMetricInformationMinNodeLoadID = original.LoadMetricInformationMinNodeLoadID
type MonitoringPolicy = original.MonitoringPolicy
type Node = original.Node
type NodeHealth = original.NodeHealth
type NodeHealthEvaluation = original.NodeHealthEvaluation
type NodeHealthReport = original.NodeHealthReport
type NodeID = original.NodeID
type NodeList = original.NodeList
type NodeLoadInformation = original.NodeLoadInformation
type NodeLoadMetricInformation = original.NodeLoadMetricInformation
type NodeNodeDeactivationInfo = original.NodeNodeDeactivationInfo
type NodesHealthEvaluation = original.NodesHealthEvaluation
type Partition = original.Partition
type PartitionCurrentConfigurationEpoch = original.PartitionCurrentConfigurationEpoch
type PartitionDescription = original.PartitionDescription
type PartitionHealth = original.PartitionHealth
type PartitionHealthEvaluation = original.PartitionHealthEvaluation
type PartitionHealthReplicaHealthStatesItem = original.PartitionHealthReplicaHealthStatesItem
type PartitionHealthReport = original.PartitionHealthReport
type PartitionInformation = original.PartitionInformation
type PartitionList = original.PartitionList
type PartitionLoadInformation = original.PartitionLoadInformation
type PartitionsHealthEvaluation = original.PartitionsHealthEvaluation
type RegisterApplicationType = original.RegisterApplicationType
type RegisterClusterPackage = original.RegisterClusterPackage
type Replica = original.Replica
type ReplicaHealth = original.ReplicaHealth
type ReplicaHealthEvaluation = original.ReplicaHealthEvaluation
type ReplicaHealthReport = original.ReplicaHealthReport
type ReplicaList = original.ReplicaList
type ReplicaLoadInformation = original.ReplicaLoadInformation
type ReplicasHealthEvaluation = original.ReplicasHealthEvaluation
type ResolvedServicePartition = original.ResolvedServicePartition
type ResolvedServicePartitionEndpointsItem = original.ResolvedServicePartitionEndpointsItem
type ResumeApplicationUpgrade = original.ResumeApplicationUpgrade
type ResumeClusterUpgrade = original.ResumeClusterUpgrade
type Service = original.Service
type ServiceCorrelationDescription = original.ServiceCorrelationDescription
type ServiceDescription = original.ServiceDescription
type ServiceDescriptionModel = original.ServiceDescriptionModel
type ServiceDescriptionTemplate = original.ServiceDescriptionTemplate
type ServiceGroupDescription = original.ServiceGroupDescription
type ServiceGroupDescriptionModel = original.ServiceGroupDescriptionModel
type ServiceGroupMember = original.ServiceGroupMember
type ServiceGroupMemberDescription = original.ServiceGroupMemberDescription
type ServiceHealth = original.ServiceHealth
type ServiceHealthEvaluation = original.ServiceHealthEvaluation
type ServiceHealthPartitionHealthStatesItem = original.ServiceHealthPartitionHealthStatesItem
type ServiceHealthReport = original.ServiceHealthReport
type ServiceList = original.ServiceList
type ServiceLoadMetricDescription = original.ServiceLoadMetricDescription
type ServiceManifest = original.ServiceManifest
type ServicePlacementPolicyDescription = original.ServicePlacementPolicyDescription
type ServicesHealthEvaluation = original.ServicesHealthEvaluation
type ServiceType = original.ServiceType
type ServiceTypeServiceTypeDescription = original.ServiceTypeServiceTypeDescription
type StartApplicationUpgrade = original.StartApplicationUpgrade
type StartApplicationUpgradeParametersItem = original.StartApplicationUpgradeParametersItem
type StartClusterUpgrade = original.StartClusterUpgrade
type StatefulCreateServiceDescription = original.StatefulCreateServiceDescription
type StatefulCreateServiceGroupDescription = original.StatefulCreateServiceGroupDescription
type StatefulServiceDescription = original.StatefulServiceDescription
type StatefulServiceGroupDescription = original.StatefulServiceGroupDescription
type StatefulUpdateServiceDescription = original.StatefulUpdateServiceDescription
type StatefulUpdateServiceGroupDescription = original.StatefulUpdateServiceGroupDescription
type StatelessCreateServiceDescription = original.StatelessCreateServiceDescription
type StatelessCreateServiceGroupDescription = original.StatelessCreateServiceGroupDescription
type StatelessServiceDescription = original.StatelessServiceDescription
type StatelessServiceGroupDescription = original.StatelessServiceGroupDescription
type StatelessUpdateServiceDescription = original.StatelessUpdateServiceDescription
type StatelessUpdateServiceGroupDescription = original.StatelessUpdateServiceGroupDescription
type String = original.String
type SystemApplicationHealthEvaluation = original.SystemApplicationHealthEvaluation
type UnhealthyEvaluation = original.UnhealthyEvaluation
type UnregisterApplicationType = original.UnregisterApplicationType
type UnregisterClusterPackage = original.UnregisterClusterPackage
type UpdateApplicationUpgrade = original.UpdateApplicationUpgrade
type UpdateClusterUpgrade = original.UpdateClusterUpgrade
type UpdateDescription = original.UpdateDescription
type UpdateServiceDescription = original.UpdateServiceDescription
type UpdateServiceGroupDescription = original.UpdateServiceGroupDescription
type UpgradeDomainDeltaNodesCheckHealthEvaluation = original.UpgradeDomainDeltaNodesCheckHealthEvaluation
type UpgradeDomainDeployedApplicationsHealthEvaluation = original.UpgradeDomainDeployedApplicationsHealthEvaluation
type UpgradeDomainNodesHealthEvaluation = original.UpgradeDomainNodesHealthEvaluation
type NodeStatesClient = original.NodeStatesClient
type PartitionListsClient = original.PartitionListsClient
type ServiceFromTemplatesClient = original.ServiceFromTemplatesClient
type ApplicationTypesClient = original.ApplicationTypesClient

const (
	DefaultBaseURI = original.DefaultBaseURI
)

type ManagementClient = original.ManagementClient
type DeployedServiceTypesClient = original.DeployedServiceTypesClient
type NodesClient = original.NodesClient
type ApplicationsClient = original.ApplicationsClient
type NodeLoadInformationsClient = original.NodeLoadInformationsClient
type ServiceGroupsClient = original.ServiceGroupsClient
type ServiceTypesClient = original.ServiceTypesClient
type ApplicationUpgradeRollbacksClient = original.ApplicationUpgradeRollbacksClient
type ClusterLoadInformationsClient = original.ClusterLoadInformationsClient
type ClusterManifestsClient = original.ClusterManifestsClient
type DeployedApplicationHealthsClient = original.DeployedApplicationHealthsClient
type ReplicaLoadInformationsClient = original.ReplicaLoadInformationsClient
type ServiceDescriptionsClient = original.ServiceDescriptionsClient
type ServicesClient = original.ServicesClient
type UpgradeProgressesClient = original.UpgradeProgressesClient
type ApplicationManifestsClient = original.ApplicationManifestsClient

func NewClusterPackagesClient(timeout *int32) ClusterPackagesClient {
	return original.NewClusterPackagesClient(timeout)
}
func NewClusterPackagesClientWithBaseURI(baseURI string, timeout *int32) ClusterPackagesClient {
	return original.NewClusterPackagesClientWithBaseURI(baseURI, timeout)
}
func NewClusterUpgradesClient(timeout *int32) ClusterUpgradesClient {
	return original.NewClusterUpgradesClient(timeout)
}
func NewClusterUpgradesClientWithBaseURI(baseURI string, timeout *int32) ClusterUpgradesClient {
	return original.NewClusterUpgradesClientWithBaseURI(baseURI, timeout)
}
func NewDeployedCodePackagesClient(timeout *int32) DeployedCodePackagesClient {
	return original.NewDeployedCodePackagesClient(timeout)
}
func NewDeployedCodePackagesClientWithBaseURI(baseURI string, timeout *int32) DeployedCodePackagesClient {
	return original.NewDeployedCodePackagesClientWithBaseURI(baseURI, timeout)
}
func NewDeployedReplicaDetailsClient(timeout *int32) DeployedReplicaDetailsClient {
	return original.NewDeployedReplicaDetailsClient(timeout)
}
func NewDeployedReplicaDetailsClientWithBaseURI(baseURI string, timeout *int32) DeployedReplicaDetailsClient {
	return original.NewDeployedReplicaDetailsClientWithBaseURI(baseURI, timeout)
}
func NewPartitionLoadsClient(timeout *int32) PartitionLoadsClient {
	return original.NewPartitionLoadsClient(timeout)
}
func NewPartitionLoadsClientWithBaseURI(baseURI string, timeout *int32) PartitionLoadsClient {
	return original.NewPartitionLoadsClientWithBaseURI(baseURI, timeout)
}
func NewServiceManifestsClient(timeout *int32) ServiceManifestsClient {
	return original.NewServiceManifestsClient(timeout)
}
func NewServiceManifestsClientWithBaseURI(baseURI string, timeout *int32) ServiceManifestsClient {
	return original.NewServiceManifestsClientWithBaseURI(baseURI, timeout)
}
func UserAgent() string {
	return original.UserAgent() + " profiles/preview"
}
func Version() string {
	return original.Version()
}
func NewClusterHealthsClient(timeout *int32) ClusterHealthsClient {
	return original.NewClusterHealthsClient(timeout)
}
func NewClusterHealthsClientWithBaseURI(baseURI string, timeout *int32) ClusterHealthsClient {
	return original.NewClusterHealthsClientWithBaseURI(baseURI, timeout)
}
func NewDeployedServicePackageHealthsClient(timeout *int32) DeployedServicePackageHealthsClient {
	return original.NewDeployedServicePackageHealthsClient(timeout)
}
func NewDeployedServicePackageHealthsClientWithBaseURI(baseURI string, timeout *int32) DeployedServicePackageHealthsClient {
	return original.NewDeployedServicePackageHealthsClientWithBaseURI(baseURI, timeout)
}
func NewNodeHealthsClient(timeout *int32) NodeHealthsClient {
	return original.NewNodeHealthsClient(timeout)
}
func NewNodeHealthsClientWithBaseURI(baseURI string, timeout *int32) NodeHealthsClient {
	return original.NewNodeHealthsClientWithBaseURI(baseURI, timeout)
}
func NewPartitionsClient(timeout *int32) PartitionsClient {
	return original.NewPartitionsClient(timeout)
}
func NewPartitionsClientWithBaseURI(baseURI string, timeout *int32) PartitionsClient {
	return original.NewPartitionsClientWithBaseURI(baseURI, timeout)
}
func NewServiceHealthsClient(timeout *int32) ServiceHealthsClient {
	return original.NewServiceHealthsClient(timeout)
}
func NewServiceHealthsClientWithBaseURI(baseURI string, timeout *int32) ServiceHealthsClient {
	return original.NewServiceHealthsClientWithBaseURI(baseURI, timeout)
}
func NewApplicationHealthsClient(timeout *int32) ApplicationHealthsClient {
	return original.NewApplicationHealthsClient(timeout)
}
func NewApplicationHealthsClientWithBaseURI(baseURI string, timeout *int32) ApplicationHealthsClient {
	return original.NewApplicationHealthsClientWithBaseURI(baseURI, timeout)
}
func NewDeployedApplicationsClient(timeout *int32) DeployedApplicationsClient {
	return original.NewDeployedApplicationsClient(timeout)
}
func NewDeployedApplicationsClientWithBaseURI(baseURI string, timeout *int32) DeployedApplicationsClient {
	return original.NewDeployedApplicationsClientWithBaseURI(baseURI, timeout)
}
func NewDeployedServicePackagesClient(timeout *int32) DeployedServicePackagesClient {
	return original.NewDeployedServicePackagesClient(timeout)
}
func NewDeployedServicePackagesClientWithBaseURI(baseURI string, timeout *int32) DeployedServicePackagesClient {
	return original.NewDeployedServicePackagesClientWithBaseURI(baseURI, timeout)
}
func NewPartitionHealthsClient(timeout *int32) PartitionHealthsClient {
	return original.NewPartitionHealthsClient(timeout)
}
func NewPartitionHealthsClientWithBaseURI(baseURI string, timeout *int32) PartitionHealthsClient {
	return original.NewPartitionHealthsClientWithBaseURI(baseURI, timeout)
}
func NewPartitionLoadInformationsClient(timeout *int32) PartitionLoadInformationsClient {
	return original.NewPartitionLoadInformationsClient(timeout)
}
func NewPartitionLoadInformationsClientWithBaseURI(baseURI string, timeout *int32) PartitionLoadInformationsClient {
	return original.NewPartitionLoadInformationsClientWithBaseURI(baseURI, timeout)
}
func NewServiceGroupDescriptionsClient(timeout *int32) ServiceGroupDescriptionsClient {
	return original.NewServiceGroupDescriptionsClient(timeout)
}
func NewServiceGroupDescriptionsClientWithBaseURI(baseURI string, timeout *int32) ServiceGroupDescriptionsClient {
	return original.NewServiceGroupDescriptionsClientWithBaseURI(baseURI, timeout)
}
func NewServiceGroupFromTemplatesClient(timeout *int32) ServiceGroupFromTemplatesClient {
	return original.NewServiceGroupFromTemplatesClient(timeout)
}
func NewServiceGroupFromTemplatesClientWithBaseURI(baseURI string, timeout *int32) ServiceGroupFromTemplatesClient {
	return original.NewServiceGroupFromTemplatesClientWithBaseURI(baseURI, timeout)
}
func NewServiceGroupMembersClient(timeout *int32) ServiceGroupMembersClient {
	return original.NewServiceGroupMembersClient(timeout)
}
func NewServiceGroupMembersClientWithBaseURI(baseURI string, timeout *int32) ServiceGroupMembersClient {
	return original.NewServiceGroupMembersClientWithBaseURI(baseURI, timeout)
}
func NewApplicationUpgradesClient(timeout *int32) ApplicationUpgradesClient {
	return original.NewApplicationUpgradesClient(timeout)
}
func NewApplicationUpgradesClientWithBaseURI(baseURI string, timeout *int32) ApplicationUpgradesClient {
	return original.NewApplicationUpgradesClientWithBaseURI(baseURI, timeout)
}
func NewReplicaHealthsClient(timeout *int32) ReplicaHealthsClient {
	return original.NewReplicaHealthsClient(timeout)
}
func NewReplicaHealthsClientWithBaseURI(baseURI string, timeout *int32) ReplicaHealthsClient {
	return original.NewReplicaHealthsClientWithBaseURI(baseURI, timeout)
}
func NewReplicasClient(timeout *int32) ReplicasClient {
	return original.NewReplicasClient(timeout)
}
func NewReplicasClientWithBaseURI(baseURI string, timeout *int32) ReplicasClient {
	return original.NewReplicasClientWithBaseURI(baseURI, timeout)
}
func NewDeployedReplicasClient(timeout *int32) DeployedReplicasClient {
	return original.NewDeployedReplicasClient(timeout)
}
func NewDeployedReplicasClientWithBaseURI(baseURI string, timeout *int32) DeployedReplicasClient {
	return original.NewDeployedReplicasClientWithBaseURI(baseURI, timeout)
}
func NewNodeStatesClient(timeout *int32) NodeStatesClient {
	return original.NewNodeStatesClient(timeout)
}
func NewNodeStatesClientWithBaseURI(baseURI string, timeout *int32) NodeStatesClient {
	return original.NewNodeStatesClientWithBaseURI(baseURI, timeout)
}
func NewPartitionListsClient(timeout *int32) PartitionListsClient {
	return original.NewPartitionListsClient(timeout)
}
func NewPartitionListsClientWithBaseURI(baseURI string, timeout *int32) PartitionListsClient {
	return original.NewPartitionListsClientWithBaseURI(baseURI, timeout)
}
func NewServiceFromTemplatesClient(timeout *int32) ServiceFromTemplatesClient {
	return original.NewServiceFromTemplatesClient(timeout)
}
func NewServiceFromTemplatesClientWithBaseURI(baseURI string, timeout *int32) ServiceFromTemplatesClient {
	return original.NewServiceFromTemplatesClientWithBaseURI(baseURI, timeout)
}
func NewApplicationTypesClient(timeout *int32) ApplicationTypesClient {
	return original.NewApplicationTypesClient(timeout)
}
func NewApplicationTypesClientWithBaseURI(baseURI string, timeout *int32) ApplicationTypesClient {
	return original.NewApplicationTypesClientWithBaseURI(baseURI, timeout)
}
func New(timeout *int32) ManagementClient {
	return original.New(timeout)
}
func NewWithBaseURI(baseURI string, timeout *int32) ManagementClient {
	return original.NewWithBaseURI(baseURI, timeout)
}
func NewDeployedServiceTypesClient(timeout *int32) DeployedServiceTypesClient {
	return original.NewDeployedServiceTypesClient(timeout)
}
func NewDeployedServiceTypesClientWithBaseURI(baseURI string, timeout *int32) DeployedServiceTypesClient {
	return original.NewDeployedServiceTypesClientWithBaseURI(baseURI, timeout)
}
func NewNodesClient(timeout *int32) NodesClient {
	return original.NewNodesClient(timeout)
}
func NewNodesClientWithBaseURI(baseURI string, timeout *int32) NodesClient {
	return original.NewNodesClientWithBaseURI(baseURI, timeout)
}
func NewApplicationsClient(timeout *int32) ApplicationsClient {
	return original.NewApplicationsClient(timeout)
}
func NewApplicationsClientWithBaseURI(baseURI string, timeout *int32) ApplicationsClient {
	return original.NewApplicationsClientWithBaseURI(baseURI, timeout)
}
func NewNodeLoadInformationsClient(timeout *int32) NodeLoadInformationsClient {
	return original.NewNodeLoadInformationsClient(timeout)
}
func NewNodeLoadInformationsClientWithBaseURI(baseURI string, timeout *int32) NodeLoadInformationsClient {
	return original.NewNodeLoadInformationsClientWithBaseURI(baseURI, timeout)
}
func NewServiceGroupsClient(timeout *int32) ServiceGroupsClient {
	return original.NewServiceGroupsClient(timeout)
}
func NewServiceGroupsClientWithBaseURI(baseURI string, timeout *int32) ServiceGroupsClient {
	return original.NewServiceGroupsClientWithBaseURI(baseURI, timeout)
}
func NewServiceTypesClient(timeout *int32) ServiceTypesClient {
	return original.NewServiceTypesClient(timeout)
}
func NewServiceTypesClientWithBaseURI(baseURI string, timeout *int32) ServiceTypesClient {
	return original.NewServiceTypesClientWithBaseURI(baseURI, timeout)
}
func NewApplicationUpgradeRollbacksClient(timeout *int32) ApplicationUpgradeRollbacksClient {
	return original.NewApplicationUpgradeRollbacksClient(timeout)
}
func NewApplicationUpgradeRollbacksClientWithBaseURI(baseURI string, timeout *int32) ApplicationUpgradeRollbacksClient {
	return original.NewApplicationUpgradeRollbacksClientWithBaseURI(baseURI, timeout)
}
func NewClusterLoadInformationsClient(timeout *int32) ClusterLoadInformationsClient {
	return original.NewClusterLoadInformationsClient(timeout)
}
func NewClusterLoadInformationsClientWithBaseURI(baseURI string, timeout *int32) ClusterLoadInformationsClient {
	return original.NewClusterLoadInformationsClientWithBaseURI(baseURI, timeout)
}
func NewClusterManifestsClient(timeout *int32) ClusterManifestsClient {
	return original.NewClusterManifestsClient(timeout)
}
func NewClusterManifestsClientWithBaseURI(baseURI string, timeout *int32) ClusterManifestsClient {
	return original.NewClusterManifestsClientWithBaseURI(baseURI, timeout)
}
func NewDeployedApplicationHealthsClient(timeout *int32) DeployedApplicationHealthsClient {
	return original.NewDeployedApplicationHealthsClient(timeout)
}
func NewDeployedApplicationHealthsClientWithBaseURI(baseURI string, timeout *int32) DeployedApplicationHealthsClient {
	return original.NewDeployedApplicationHealthsClientWithBaseURI(baseURI, timeout)
}
func NewReplicaLoadInformationsClient(timeout *int32) ReplicaLoadInformationsClient {
	return original.NewReplicaLoadInformationsClient(timeout)
}
func NewReplicaLoadInformationsClientWithBaseURI(baseURI string, timeout *int32) ReplicaLoadInformationsClient {
	return original.NewReplicaLoadInformationsClientWithBaseURI(baseURI, timeout)
}
func NewServiceDescriptionsClient(timeout *int32) ServiceDescriptionsClient {
	return original.NewServiceDescriptionsClient(timeout)
}
func NewServiceDescriptionsClientWithBaseURI(baseURI string, timeout *int32) ServiceDescriptionsClient {
	return original.NewServiceDescriptionsClientWithBaseURI(baseURI, timeout)
}
func NewServicesClient(timeout *int32) ServicesClient {
	return original.NewServicesClient(timeout)
}
func NewServicesClientWithBaseURI(baseURI string, timeout *int32) ServicesClient {
	return original.NewServicesClientWithBaseURI(baseURI, timeout)
}
func NewUpgradeProgressesClient(timeout *int32) UpgradeProgressesClient {
	return original.NewUpgradeProgressesClient(timeout)
}
func NewUpgradeProgressesClientWithBaseURI(baseURI string, timeout *int32) UpgradeProgressesClient {
	return original.NewUpgradeProgressesClientWithBaseURI(baseURI, timeout)
}
func NewApplicationManifestsClient(timeout *int32) ApplicationManifestsClient {
	return original.NewApplicationManifestsClient(timeout)
}
func NewApplicationManifestsClientWithBaseURI(baseURI string, timeout *int32) ApplicationManifestsClient {
	return original.NewApplicationManifestsClientWithBaseURI(baseURI, timeout)
}


text:
layout: post
title: Why I submitted my first CPython patch
date: 2014-08-03 14:05:24.000000000 -07:00
---
As part of my work at [Wiredrive](http://www.wiredrive.com), I investigated how to best utilize UUIDs in a MySQL database for referencing our objects instead of primary IDs. Ultimately, we chose to go a different way. I did, however, find a way to optimize a tiny piece of core Python along the way so I wanted to submit a patch.

### Benchmarking UUID
In particular, the code used to generate a byte representation of the UUID with [uuid.bytes](https://docs.python.org/2/library/uuid.html#uuid.UUID.bytes) can be slow.

In my tests, I found that replacing the existing code with binascii's [unhexlify](https://docs.python.org/2/library/binascii.html) considerably improved the speed. Here's the original code in `cpython/Lib/uuid.py`:

```
class UUID(object):
```
```
	@property
    def bytes(self):
        bytes = bytearray()
        for shift in range(0, 128, 8):
            bytes.insert(0, (self.int >> shift) & 0xff)
        return bytes_(bytes)
```

Looks pretty innocuous. Let's set up some tests to look at how quickly it runs. Here's the benchmark test I ran:

<script src="https://gist.github.com/kevinlondon/d3bb32d5a784f78731fa.js"></script>

... and the output on my machine:
```
kevin$ python uuid_benchmark.py 100000
Original Average: 8.228 microseconds
Updated Average: 1.550 microseconds
```

That means that, on average, using ``unhexlify`` will allow it to run about 5x faster. Pretty good!

### Submitting the Patch
The Python contributers have written [an excellent guide](https://docs.python.org/devguide/index.html) that describes how to create a patch. You'll want to first set up your development environment with the Python code and make sure everything runs smoothly. Then, make your changes, re-run the tests, and generate the patch.

They describe quite well how to do the first part of that. The only strange bit is that you run the tests (on Mac) with `./python.exe -m test -j3`. Making a patch is similarly easy. You do that with `hg diff > mywork.patch`.

[The end result is here](http://bugs.python.org/issue22131). I'm excited to see how it goes and it feels like a rite of passage to submit a patch to Python itself.


text:
package de.flapdoodle.solid.generator;

import com.google.common.collect.ImmutableSet;

import de.flapdoodle.solid.types.properties.TypePropertiesLookup;
import de.flapdoodle.solid.types.tree.PropertyTree;

public interface PropertyCollectionResolver {
	ImmutableSet<?> resolve(PropertyTree tree, Iterable<String> path);

	static PropertyCollectionResolver defaultResolver() {
		return new TypePropertyBasePropertyCollectionResolver(TypePropertiesLookup.defaultLookup());
	}

}


text:
import { CellType, Vector3 } from '../../../types';
import vtkCellArray from '../../Core/CellArray';
import vtkPointSet, { IPointSetInitialValues } from '../PointSet';

/**
 *
 */
export interface IPolyDataInitialValues extends IPointSetInitialValues {
}

export interface vtkPolyData extends vtkPointSet {

	/**
	 * Create data structure that allows random access of cells.
	 */
	buildCells(): void;

	/**
	 * Create upward links from points to cells that use each point. Enables
	 * topologically complex queries.
	 * @param {Number} initialSize
	 */
	buildLinks(initialSize?: number): void;

	/**
	 * If you know the type of cell, you may provide it to improve performances.
	 * @param {Number} cellId
	 * @param cellHint
	 */
	getCell(cellId: number, cellHint: any): void;

	/**
	 * Get the neighbors at an edge.
	 * @param {Number} cellId The Id of the cell.
	 * @param {Vector3} point1 The first point coordinate.
	 * @param {Vector3} point2 The second point coordinate.
	 */
	getCellEdgeNeighbors(cellId: number, point1: Vector3, point2: Vector3): void;

	/**
	 * Get a list of point ids that define a cell.
	 * @param {Number} cellId The Id of the cell.
	 * @return an object made of the cellType and a subarray `cellPointIds` of the cell points.
	 */
	getCellPoints(cellId: number): object;

	/**
	 * Get the type of the cell
	 * @param {Number} cellId The Id of the cell.
	 * @return CellType The type of the cell.
	 */
	 getCellType(cellId: number): CellType;

	/**
	 * Get the cell array defining cells.
	 */
	getCells(): vtkCellArray;

	/**
	 * Get the cell array defining lines.
	 */
	getLines(): vtkCellArray;

	/**
	 *
	 */
	getLinks(): any;

	/**
	 * Determine the number of cells composing the polydata.
	 */
	getNumberOfCells(): number;

	/**
	 * Determine the number of lines composing the polydata.
	 */
	getNumberOfLines(): number;

	/**
	 * Determine the number of points composing the polydata.
	 */
	getNumberOfPoints(): number;

	/**
	 * Determine the number of polys composing the polydata.
	 */
	getNumberOfPolys(): number;

	/**
	 * Determine the number of strips composing the polydata.
	 */
	getNumberOfStrips(): number;

	/**
	 * Determine the number of vertices composing the polydata.
	 */
	getNumberOfVerts(): number;

	/**
	 * Topological inquiry to get cells using point.
	 * @param ptId
	 */
	getPointCells(ptId: any): void;

	/**
	 * Get the cell array defining polys.
	 */
	getPolys(): vtkCellArray;

	/**
	 * Get the cell array defining strips.
	 */
	getStrips(): vtkCellArray;

	/**
	 * Get the cell array defining vertices.
	 * If there are no vertices, an empty array will be returned (convenience to
	 * simplify traversal).
	 */
	getVerts(): vtkCellArray;

	/**
	 * Set the cell array defining lines.
	 * @param {vtkCellArray} lines The cell array defining lines.
	 */
	setLines(lines: vtkCellArray): boolean;

	/**
	 * Set the cell array defining polys.
	 * @param {vtkCellArray} polys The cell array defining polys.
	 */
	setPolys(polys: vtkCellArray): boolean;

	/**
	 * Set the cell array defining strips.
	 * @param {vtkCellArray} strips The cell array defining strips.
	 */
	setStrips(strips: vtkCellArray): boolean;

	/**
	 * Set the cell array defining vertices.
	 * @param {vtkCellArray} verts The cell array defining vertices.
	 */
	setVerts(verts: vtkCellArray): boolean;
}

/**
 * Method used to decorate a given object (publicAPI+model) with vtkPolyData characteristics.
 *
 * @param publicAPI object on which methods will be bounds (public)
 * @param model object on which data structure will be bounds (protected)
 * @param {IPolyDataInitialValues} [initialValues] (default: {})
 */
export function extend(publicAPI: object, model: object, initialValues?: IPolyDataInitialValues): void;

/**
 * Method used to create a new instance of vtkPolyData.
 * @param {IPolyDataInitialValues} [initialValues] for pre-setting some of its content
 */
export function newInstance(initialValues?: IPolyDataInitialValues): vtkPolyData;

/**
 * vtkPolyData is a dataset that represents a geometric structure consisting of vertices, lines, polygons, and/or strips.
 */
export declare const vtkPolyData: {
	newInstance: typeof newInstance,
	extend: typeof extend,
};
export default vtkPolyData;


text:
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objPartDocument As SolidEdgePart.PartDocument = Nothing
        Dim objStudyOwner As SolidEdgePart.StudyOwner = Nothing
        Dim objStudy As SolidEdgePart.Study = Nothing
        Dim objConnectorOwner As SolidEdgePart.ConnectorOwner = Nothing
        Dim objConnector As SolidEdgePart.FEAConnector = Nothing
        Dim dConnectorVal As Double

        Try
            OleMessageFilter.Register()

            ' Connect to Solid Edge
            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objPartDocument = objApplication.ActiveDocument

            objStudyOwner = objPartDocument.StudyOwner
            objStudy = objStudyOwner.Item(1)
            objStudy.GetConnectorOwner(objConnectorOwner)
            objConnector = objConnectorOwner.Item(1)

            dConnectorVal = 100.0

            objConnector.SetConnectorValue(dConnectorVal)

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module


text: output.out = $.create(Math.floor($.x))