text:
class GURL;
class SkBitmap;

namespace browser_sync {
class SyncedTabDelegate;
}

namespace content {
struct ContextMenuParams;
class WebContents;
}

class TabAndroid {
 public:
  TabAndroid();

  // Convenience method to retrieve the Tab associated with the passed
  // WebContents.  Can return NULL.
  static TabAndroid* FromWebContents(content::WebContents* web_contents);

  static TabAndroid* GetNativeTab(JNIEnv* env, jobject obj);

  virtual browser_sync::SyncedTabDelegate* GetSyncedTabDelegate() = 0;

  int id() const {
    return tab_id_;
  }

  virtual void OnReceivedHttpAuthRequest(jobject auth_handler,
                                         const string16& host,
                                         const string16& realm) = 0;

  // Called to show the regular context menu that is triggered by a long press.
  virtual void ShowContextMenu(const content::ContextMenuParams& params) = 0;

  // Called to show a custom context menu. Used by the NTP.
  virtual void ShowCustomContextMenu(
      const content::ContextMenuParams& params,
      const base::Callback<void(int)>& callback) = 0;

  // Called when context menu option to create the bookmark shortcut on
  // homescreen is called.
  virtual void AddShortcutToBookmark(
      const GURL& url, const string16& title, const SkBitmap& skbitmap,
      int r_value, int g_value, int b_value) = 0;
  // TODO(tedchoc): Make pure virtual once all derived classes can be updated.
  virtual void EditBookmark(int64 node_id, bool is_folder) {}

  // Called when the common ExternalProtocolHandler wants to
  // run the external protocol dialog.
  // TODO(jknotten): Remove this method. Making it non-abstract, so that
  // derived classes may remove their implementation first.
  virtual void RunExternalProtocolDialog(const GURL& url);

 protected:
  virtual ~TabAndroid();

  static void InitTabHelpers(content::WebContents* web_contents);

  static content::WebContents* InitWebContentsFromView(JNIEnv* env,
                                                       jobject content_view);

  int tab_id_;
};

#endif  // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_


text:
"use strict";
var lang_1 = require('../facade/lang');
var collection_1 = require('../facade/collection');
var reflection_1 = require('../reflection/reflection');
var reflective_key_1 = require('./reflective_key');
var metadata_1 = require('./metadata');
var reflective_exceptions_1 = require('./reflective_exceptions');
var forward_ref_1 = require('./forward_ref');
var provider_1 = require('./provider');
var provider_util_1 = require('./provider_util');
/**
 * `Dependency` is used by the framework to extend DI.
 * This is internal to Angular and should not be used directly.
 */
var ReflectiveDependency = (function () {
    function ReflectiveDependency(key, optional, lowerBoundVisibility, upperBoundVisibility, properties) {
        this.key = key;
        this.optional = optional;
        this.lowerBoundVisibility = lowerBoundVisibility;
        this.upperBoundVisibility = upperBoundVisibility;
        this.properties = properties;
    }
    ReflectiveDependency.fromKey = function (key) {
        return new ReflectiveDependency(key, false, null, null, []);
    };
    return ReflectiveDependency;
}());
exports.ReflectiveDependency = ReflectiveDependency;
var _EMPTY_LIST = [];
var ResolvedReflectiveProvider_ = (function () {
    function ResolvedReflectiveProvider_(key, resolvedFactories, multiProvider) {
        this.key = key;
        this.resolvedFactories = resolvedFactories;
        this.multiProvider = multiProvider;
    }
    Object.defineProperty(ResolvedReflectiveProvider_.prototype, "resolvedFactory", {
        get: function () { return this.resolvedFactories[0]; },
        enumerable: true,
        configurable: true
    });
    return ResolvedReflectiveProvider_;
}());
exports.ResolvedReflectiveProvider_ = ResolvedReflectiveProvider_;
/**
 * An internal resolved representation of a factory function created by resolving {@link Provider}.
 * @experimental
 */
var ResolvedReflectiveFactory = (function () {
    function ResolvedReflectiveFactory(
        /**
         * Factory function which can return an instance of an object represented by a key.
         */
        factory,
        /**
         * Arguments (dependencies) to the `factory` function.
         */
        dependencies) {
        this.factory = factory;
        this.dependencies = dependencies;
    }
    return ResolvedReflectiveFactory;
}());
exports.ResolvedReflectiveFactory = ResolvedReflectiveFactory;
/**
 * Resolve a single provider.
 */
function resolveReflectiveFactory(provider) {
    var factoryFn;
    var resolvedDeps;
    if (lang_1.isPresent(provider.useClass)) {
        var useClass = forward_ref_1.resolveForwardRef(provider.useClass);
        factoryFn = reflection_1.reflector.factory(useClass);
        resolvedDeps = _dependenciesFor(useClass);
    }
    else if (lang_1.isPresent(provider.useExisting)) {
        factoryFn = function (aliasInstance /** TODO #9100 */) { return aliasInstance; };
        resolvedDeps = [ReflectiveDependency.fromKey(reflective_key_1.ReflectiveKey.get(provider.useExisting))];
    }
    else if (lang_1.isPresent(provider.useFactory)) {
        factoryFn = provider.useFactory;
        resolvedDeps = constructDependencies(provider.useFactory, provider.dependencies);
    }
    else {
        factoryFn = function () { return provider.useValue; };
        resolvedDeps = _EMPTY_LIST;
    }
    return new ResolvedReflectiveFactory(factoryFn, resolvedDeps);
}
exports.resolveReflectiveFactory = resolveReflectiveFactory;
/**
 * Converts the {@link Provider} into {@link ResolvedProvider}.
 *
 * {@link Injector} internally only uses {@link ResolvedProvider}, {@link Provider} contains
 * convenience provider syntax.
 */
function resolveReflectiveProvider(provider) {
    return new ResolvedReflectiveProvider_(reflective_key_1.ReflectiveKey.get(provider.token), [resolveReflectiveFactory(provider)], provider.multi);
}
exports.resolveReflectiveProvider = resolveReflectiveProvider;
/**
 * Resolve a list of Providers.
 */
function resolveReflectiveProviders(providers) {
    var normalized = _normalizeProviders(providers, []);
    var resolved = normalized.map(resolveReflectiveProvider);
    return collection_1.MapWrapper.values(mergeResolvedReflectiveProviders(resolved, new Map()));
}
exports.resolveReflectiveProviders = resolveReflectiveProviders;
/**
 * Merges a list of ResolvedProviders into a list where
 * each key is contained exactly once and multi providers
 * have been merged.
 */
function mergeResolvedReflectiveProviders(providers, normalizedProvidersMap) {
    for (var i = 0; i < providers.length; i++) {
        var provider = providers[i];
        var existing = normalizedProvidersMap.get(provider.key.id);
        if (lang_1.isPresent(existing)) {
            if (provider.multiProvider !== existing.multiProvider) {
                throw new reflective_exceptions_1.MixingMultiProvidersWithRegularProvidersError(existing, provider);
            }
            if (provider.multiProvider) {
                for (var j = 0; j < provider.resolvedFactories.length; j++) {
                    existing.resolvedFactories.push(provider.resolvedFactories[j]);
                }
            }
            else {
                normalizedProvidersMap.set(provider.key.id, provider);
            }
        }
        else {
            var resolvedProvider;
            if (provider.multiProvider) {
                resolvedProvider = new ResolvedReflectiveProvider_(provider.key, collection_1.ListWrapper.clone(provider.resolvedFactories), provider.multiProvider);
            }
            else {
                resolvedProvider = provider;
            }
            normalizedProvidersMap.set(provider.key.id, resolvedProvider);
        }
    }
    return normalizedProvidersMap;
}
exports.mergeResolvedReflectiveProviders = mergeResolvedReflectiveProviders;
function _normalizeProviders(providers, res) {
    providers.forEach(function (b) {
        if (b instanceof lang_1.Type) {
            res.push(provider_1.provide(b, { useClass: b }));
        }
        else if (b instanceof provider_1.Provider) {
            res.push(b);
        }
        else if (provider_util_1.isProviderLiteral(b)) {
            res.push(provider_util_1.createProvider(b));
        }
        else if (b instanceof Array) {
            _normalizeProviders(b, res);
        }
        else if (b instanceof provider_1.ProviderBuilder) {
            throw new reflective_exceptions_1.InvalidProviderError(b.token);
        }
        else {
            throw new reflective_exceptions_1.InvalidProviderError(b);
        }
    });
    return res;
}
function constructDependencies(typeOrFunc, dependencies) {
    if (lang_1.isBlank(dependencies)) {
        return _dependenciesFor(typeOrFunc);
    }
    else {
        var params = dependencies.map(function (t) { return [t]; });
        return dependencies.map(function (t) { return _extractToken(typeOrFunc, t, params); });
    }
}
exports.constructDependencies = constructDependencies;
function _dependenciesFor(typeOrFunc) {
    var params = reflection_1.reflector.parameters(typeOrFunc);
    if (lang_1.isBlank(params))
        return [];
    if (params.some(lang_1.isBlank)) {
        throw new reflective_exceptions_1.NoAnnotationError(typeOrFunc, params);
    }
    return params.map(function (p) { return _extractToken(typeOrFunc, p, params); });
}
function _extractToken(typeOrFunc /** TODO #9100 */, metadata /** TODO #9100 */ /*any[] | any*/, params) {
    var depProps = [];
    var token = null;
    var optional = false;
    if (!lang_1.isArray(metadata)) {
        if (metadata instanceof metadata_1.InjectMetadata) {
            return _createDependency(metadata.token, optional, null, null, depProps);
        }
        else {
            return _createDependency(metadata, optional, null, null, depProps);
        }
    }
    var lowerBoundVisibility = null;
    var upperBoundVisibility = null;
    for (var i = 0; i < metadata.length; ++i) {
        var paramMetadata = metadata[i];
        if (paramMetadata instanceof lang_1.Type) {
            token = paramMetadata;
        }
        else if (paramMetadata instanceof metadata_1.InjectMetadata) {
            token = paramMetadata.token;
        }
        else if (paramMetadata instanceof metadata_1.OptionalMetadata) {
            optional = true;
        }
        else if (paramMetadata instanceof metadata_1.SelfMetadata) {
            upperBoundVisibility = paramMetadata;
        }
        else if (paramMetadata instanceof metadata_1.HostMetadata) {
            upperBoundVisibility = paramMetadata;
        }
        else if (paramMetadata instanceof metadata_1.SkipSelfMetadata) {
            lowerBoundVisibility = paramMetadata;
        }
        else if (paramMetadata instanceof metadata_1.DependencyMetadata) {
            if (lang_1.isPresent(paramMetadata.token)) {
                token = paramMetadata.token;
            }
            depProps.push(paramMetadata);
        }
    }
    token = forward_ref_1.resolveForwardRef(token);
    if (lang_1.isPresent(token)) {
        return _createDependency(token, optional, lowerBoundVisibility, upperBoundVisibility, depProps);
    }
    else {
        throw new reflective_exceptions_1.NoAnnotationError(typeOrFunc, params);
    }
}
function _createDependency(token /** TODO #9100 */, optional /** TODO #9100 */, lowerBoundVisibility /** TODO #9100 */, upperBoundVisibility /** TODO #9100 */, depProps /** TODO #9100 */) {
    return new ReflectiveDependency(reflective_key_1.ReflectiveKey.get(token), optional, lowerBoundVisibility, upperBoundVisibility, depProps);
}
//# sourceMappingURL=reflective_provider.js.map

redpajama_set_name: RedPajamaGithub


text:
using ThriftServiceDeliveryToken=Worldpay.Innovation.WPWithin.Rpc.Types.ServiceDeliveryToken;

namespace Worldpay.Innovation.WPWithin.ThriftAdapters
{
    internal class ServiceDeliveryTokenAdapter
    {
        public static ThriftServiceDeliveryToken Create(ServiceDeliveryToken serviceDeliveryToken)
        {
            return new ThriftServiceDeliveryToken
            {
                Key = serviceDeliveryToken.Key,
                RefundOnExpiry = serviceDeliveryToken.RefundOnExpiry,
                Signature = serviceDeliveryToken.Signature,
                Expiry = serviceDeliveryToken.Expiry,
                Issued = serviceDeliveryToken.Issued
            };
        }

        public static ServiceDeliveryToken Create(ThriftServiceDeliveryToken serviceDeliveryToken)
        {
            return new ServiceDeliveryToken
            {
                Key = serviceDeliveryToken.Key,
                RefundOnExpiry = serviceDeliveryToken.RefundOnExpiry,
                Expiry = serviceDeliveryToken.Expiry,
                Issued = serviceDeliveryToken.Issued,
                Signature = serviceDeliveryToken.Signature
            };
        }
    }
}


text:
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="shop-button.html">
<link rel="import" href="shop-common-styles.html">
<link rel="import" href="shop-form-styles.html">

<dom-module id="shop-cart">

  <template>

Admin

 .

Admin

          ([[_getPluralizedQuantity(cart.length)]])

          <template is="dom-repeat" items="[[cart]]" as="entry">
            <shop-cart-item entry="[[entry]]"></shop-cart-item>
          </template>

          Total: [[_formatTotal(total)]]
          <shop-button responsive>
            Terug
          </shop-button>

  </template>

</dom-module>


text:
\documentclass[11pt]{article}
\usepackage{blindtext, rotating, color}
\begin{document}
\begin{center}
\textbf{Workflow}

\emph{(Using the pillbox cavity model as an example.)}
\end{center}
\begin{turn}{45}
\begin{minipage}{0.2\linewidth}
\textcolor[rgb]{0.50,0.50,1.00}{Python FreeCAD}
\end{minipage}
\end{turn}
\begin{minipage}{0.8\linewidth}
Write a base geometry in Python and define geometric parameter sweeps (\verb|pillbox_cavity.py|)
\vspace{10mm}
\end{minipage}

\begin{turn}{45}
\begin{minipage}{0.2\linewidth}
\textcolor[rgb]{0.50,0.50,1.00}{Text files}

\textcolor[rgb]{0.50,0.50,1.00}{written in GdfidL input language.}
\end{minipage}
\end{turn}
\begin{minipage}{0.6\linewidth}
Define the volume of the mesh. (\verb|mesh_definition.txt|)
\vspace{10mm}
\end{minipage}

\begin{turn}{45}
\begin{minipage}{0.2\linewidth}
\textcolor[rgb]{0.50,0.50,1.00}{MATLAB}
\end{minipage}
\end{turn}
\begin{minipage}{0.8\linewidth}
Write a file to define the base simulation setup, the location and settings of any signal ports, the links between the STL files and the material names used in the EM simulation, and any material sweeps or simulation parameter sweeps. (\verb|Testing_pillbox_cavity.m|)
\vspace{10mm}
\end{minipage}

\begin{turn}{45}
\begin{minipage}{0.2\linewidth}
\textcolor[rgb]{0.50,0.50,1.00}{MATLAB}
\end{minipage}
\end{turn}
\begin{minipage}{0.8\linewidth}
\textbf{Run the framework.}

This will generate a report for each unique parameter set, and also summary reports for any sweeps.
\vspace{10mm}
\end{minipage}

There are other examples in the test suite/FreeCAD input folder.

\end{document}


text:
import { BaseResource } from 'ms-rest-azure';
import { CloudError } from 'ms-rest-azure';

export { BaseResource } from 'ms-rest-azure';
export { CloudError } from 'ms-rest-azure';

/**
 * @class
 * Initializes a new instance of the CertificateDescription class.
 * @constructor
 * Certificate description
 *
 * @member {string} [thumbprint] Primary certificate thumbprint
 *
 * @member {string} [thumbprintSecondary] Secondary certificate thumbprint
 *
 * @member {string} [x509StoreName] Certificate x509 store location. Possible
 * values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority',
 * 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher'
 *
 */
export interface CertificateDescription {
  thumbprint?: string;
  thumbprintSecondary?: string;
  x509StoreName?: string;
}

/**
 * @class
 * Initializes a new instance of the SettingsParameterDescription class.
 * @constructor
 * Settings parameter description
 *
 * @member {string} [name] The name of settings parameter description
 *
 * @member {string} [value] The value of the property
 *
 */
export interface SettingsParameterDescription {
  name?: string;
  value?: string;
}

/**
 * @class
 * Initializes a new instance of the SettingsSectionDescription class.
 * @constructor
 * Settings section description
 *
 * @member {string} [name] The name of settings section description
 *
 * @member {array} [parameters] Settings parameter description
 *
 */
export interface SettingsSectionDescription {
  name?: string;
  parameters?: SettingsParameterDescription[];
}

/**
 * @class
 * Initializes a new instance of the EndpointRangeDescription class.
 * @constructor
 * Endpoint range description
 *
 * @member {number} [startPort] Endpoint start port
 *
 * @member {number} [endPort] Endpoint end port
 *
 */
export interface EndpointRangeDescription {
  startPort?: number;
  endPort?: number;
}

/**
 * @class
 * Initializes a new instance of the NodeTypeDescription class.
 * @constructor
 * NodeType description
 *
 * @member {string} [name] NodeType description name
 *
 * @member {object} [placementProperties] Placement properties key
 *
 * @member {object} [capacities] Capacities key
 *
 * @member {number} [clientConnectionEndpointPort] Client connection endpoint
 * port
 *
 * @member {number} [httpGatewayEndpointPort] Http gateway endpoint port
 *
 * @member {string} [durabilityLevel] Nodetype durability Level. Possible
 * values include: 'Bronze', 'Silver', 'Gold', 'Platimun'
 *
 * @member {object} [applicationPorts] Application ports
 *
 * @member {number} [applicationPorts.startPort] Endpoint start port
 *
 * @member {number} [applicationPorts.endPort] Endpoint end port
 *
 * @member {object} [ephemeralPorts] Ephemeral ports
 *
 * @member {number} [ephemeralPorts.startPort] Endpoint start port
 *
 * @member {number} [ephemeralPorts.endPort] Endpoint end port
 *
 * @member {boolean} [isPrimary] Primary node or not
 *
 * @member {number} [vmInstanceCount] Instance count
 *
 * @member {number} [reverseProxyEndpointPort] Reverse proxy endpoint port
 *
 */
export interface NodeTypeDescription {
  name?: string;
  placementProperties?: { [propertyName: string]: string };
  capacities?: { [propertyName: string]: string };
  clientConnectionEndpointPort?: number;
  httpGatewayEndpointPort?: number;
  durabilityLevel?: string;
  applicationPorts?: EndpointRangeDescription;
  ephemeralPorts?: EndpointRangeDescription;
  isPrimary?: boolean;
  vmInstanceCount?: number;
  reverseProxyEndpointPort?: number;
}

/**
 * @class
 * Initializes a new instance of the ClientCertificateThumbprint class.
 * @constructor
 * NodeType description
 *
 * @member {boolean} [isAdmin] Is admin or not
 *
 * @member {string} [certificateThumbprint] ClientCertificate thumbprint
 *
 */
export interface ClientCertificateThumbprint {
  isAdmin?: boolean;
  certificateThumbprint?: string;
}

/**
 * @class
 * Initializes a new instance of the ClientCertificateCommonName class.
 * @constructor
 * NodeType description
 *
 * @member {boolean} [isAdmin] Is the certificate for admin usage or not
 *
 * @member {string} [certificateIssuerThumbprint] Certificate issuer thumbprint
 *
 */
export interface ClientCertificateCommonName {
  isAdmin?: boolean;
  certificateIssuerThumbprint?: string;
}

/**
 * @class
 * Initializes a new instance of the ClusterVersionDetails class.
 * @constructor
 * NodeType description
 *
 * @member {string} [codeVersion] Cluster code version
 *
 * @member {string} [supportExpiryUtc] Support expiry Utc
 *
 * @member {string} [environment] Cluster environment. Possible values include:
 * 'Default', 'Windows', 'Linux'
 *
 */
export interface ClusterVersionDetails {
  codeVersion?: string;
  supportExpiryUtc?: string;
  environment?: string;
}

/**
 * @class
 * Initializes a new instance of the PaasServiceTypeHealthPolicy class.
 * @constructor
 * Paas service type health policy
 *
 * @member {number} [maxPercentUnhealthyServices] max percent of unhealthy
 * services
 *
 */
export interface PaasServiceTypeHealthPolicy {
  maxPercentUnhealthyServices?: number;
}

/**
 * @class
 * Initializes a new instance of the PaasApplicationHealthPolicy class.
 * @constructor
 * Paas application health policy
 *
 * @member {object} [defaultServiceTypeHealthPolicy] default ServiceType health
 * policy
 *
 * @member {number}
 * [defaultServiceTypeHealthPolicy.maxPercentUnhealthyServices] max percent of
 * unhealthy services
 *
 * @member {object} [serivceTypeHealthPolicies] SerivceType health policies
 *
 */
export interface PaasApplicationHealthPolicy {
  defaultServiceTypeHealthPolicy?: PaasServiceTypeHealthPolicy;
  serivceTypeHealthPolicies?: { [propertyName: string]: PaasServiceTypeHealthPolicy };
}

/**
 * @class
 * Initializes a new instance of the PaasClusterUpgradeHealthPolicy class.
 * @constructor
 * Paas cluster upgrade health policy
 *
 * @member {number} [maxPercentUnhealthyNodes] Max percent of unhealthy nodes
 *
 * @member {number} [maxPercentUnhealthyApplications] Max percent of unhealthy
 * applications
 *
 * @member {object} [applicationHealthPolicies] Application health policies
 *
 */
export interface PaasClusterUpgradeHealthPolicy {
  maxPercentUnhealthyNodes?: number;
  maxPercentUnhealthyApplications?: number;
  applicationHealthPolicies?: { [propertyName: string]: PaasApplicationHealthPolicy };
}

/**
 * @class
 * Initializes a new instance of the PaasServiceTypeDeltaHealthPolicy class.
 * @constructor
 * Paas service type delta health policy
 *
 * @member {number} [maxPercentDeltaUnhealthyServices] max percent of delta
 * unhealthy services
 *
 */
export interface PaasServiceTypeDeltaHealthPolicy {
  maxPercentDeltaUnhealthyServices?: number;
}

/**
 * @class
 * Initializes a new instance of the PaasApplicationDeltaHealthPolicy class.
 * @constructor
 * Paas application delta health policy
 *
 * @member {object} [defaultServiceTypeDeltaHealthPolicy] default serviceType
 * delta health policy
 *
 * @member {number}
 * [defaultServiceTypeDeltaHealthPolicy.maxPercentDeltaUnhealthyServices] max
 * percent of delta unhealthy services
 *
 * @member {object} [serivceTypeDeltaHealthPolicies] SerivceType delta health
 * policies
 *
 */
export interface PaasApplicationDeltaHealthPolicy {
  defaultServiceTypeDeltaHealthPolicy?: PaasServiceTypeDeltaHealthPolicy;
  serivceTypeDeltaHealthPolicies?: { [propertyName: string]: PaasServiceTypeDeltaHealthPolicy };
}

/**
 * @class
 * Initializes a new instance of the PaasClusterUpgradeDeltaHealthPolicy class.
 * @constructor
 * Paas cluster upgrade delta health policy
 *
 * @member {number} [maxPercentDeltaUnhealthyNodes] Max of percent of delta
 * unhealthy nodes
 *
 * @member {number} [maxPercentUpgradeDomainDeltaUnhealthyNodes] Max of percent
 * upgrade domain delta unhealthy nodes
 *
 * @member {number} [maxPercentDeltaUnhealthyApplications] Max percent of delta
 * unhealthy applications
 *
 * @member {object} [applicationHealthPolicies] Application health policies
 *
 */
export interface PaasClusterUpgradeDeltaHealthPolicy {
  maxPercentDeltaUnhealthyNodes?: number;
  maxPercentUpgradeDomainDeltaUnhealthyNodes?: number;
  maxPercentDeltaUnhealthyApplications?: number;
  applicationHealthPolicies?: { [propertyName: string]: PaasApplicationDeltaHealthPolicy };
}

/**
 * @class
 * Initializes a new instance of the PaasClusterUpgradePolicy class.
 * @constructor
 * Paas cluster upgrade policy
 *
 * @member {boolean} [overrideUserUpgradePolicy] Override user upgrade policy
 *
 * @member {boolean} [forceRestart] Force restart or not
 *
 * @member {string} [upgradeReplicaSetCheckTimeout] Upgrade replica set check
 * timeout
 *
 * @member {string} [healthCheckWaitDuration] Health check wait duration
 *
 * @member {string} [healthCheckStableDuration] Health check stable duration
 *
 * @member {string} [healthCheckRetryTimeout] Health check retry timeout
 *
 * @member {string} [upgradeTimeout] Upgrade Timeout
 *
 * @member {string} [upgradeDomainTimeout] upgrade domain timeout
 *
 * @member {object} [healthPolicy] Health Policy
 *
 * @member {number} [healthPolicy.maxPercentUnhealthyNodes] Max percent of
 * unhealthy nodes
 *
 * @member {number} [healthPolicy.maxPercentUnhealthyApplications] Max percent
 * of unhealthy applications
 *
 * @member {object} [healthPolicy.applicationHealthPolicies] Application health
 * policies
 *
 * @member {object} [deltaHealthPolicy] Delta health policy
 *
 * @member {number} [deltaHealthPolicy.maxPercentDeltaUnhealthyNodes] Max of
 * percent of delta unhealthy nodes
 *
 * @member {number}
 * [deltaHealthPolicy.maxPercentUpgradeDomainDeltaUnhealthyNodes] Max of
 * percent upgrade domain delta unhealthy nodes
 *
 * @member {number} [deltaHealthPolicy.maxPercentDeltaUnhealthyApplications]
 * Max percent of delta unhealthy applications
 *
 * @member {object} [deltaHealthPolicy.applicationHealthPolicies] Application
 * health policies
 *
 */
export interface PaasClusterUpgradePolicy {
  overrideUserUpgradePolicy?: boolean;
  forceRestart?: boolean;
  upgradeReplicaSetCheckTimeout?: string;
  healthCheckWaitDuration?: string;
  healthCheckStableDuration?: string;
  healthCheckRetryTimeout?: string;
  upgradeTimeout?: string;
  upgradeDomainTimeout?: string;
  healthPolicy?: PaasClusterUpgradeHealthPolicy;
  deltaHealthPolicy?: PaasClusterUpgradeDeltaHealthPolicy;
}

/**
 * @class
 * Initializes a new instance of the DiagnosticsStorageAccountConfig class.
 * @constructor
 * Diagnostics storage account config
 *
 * @member {string} [storageAccountName] Diagnostics storage account name
 *
 * @member {string} [primaryAccessKey] Primary diagnostics storage access key
 *
 * @member {string} [secondaryAccessKey] Secondary diagnostics storage access
 * key
 *
 * @member {string} [protectedAccountKeyName] Protected Diagnostics storage key
 * name
 *
 * @member {string} [blobEndpoint] Diagnostics storage account blob endpoint
 *
 * @member {string} [queueEndpoint] Diagnostics storage account queue endpoint
 *
 * @member {string} [tableEndpoint] Diagnostics storage account table endpoint
 *
 */
export interface DiagnosticsStorageAccountConfig {
  storageAccountName?: string;
  primaryAccessKey?: string;
  secondaryAccessKey?: string;
  protectedAccountKeyName?: string;
  blobEndpoint?: string;
  queueEndpoint?: string;
  tableEndpoint?: string;
}

/**
 * @class
 * Initializes a new instance of the ClusterUpdateParameters class.
 * @constructor
 * Cluster update request
 *
 * @member {string} [reliabilityLevel] Cluster reliability level. Possible
 * values include: 'Invalid', 'Bronze', 'Silver', 'Gold', 'Platinum'
 *
 * @member {string} [upgradeMode] Cluster upgrade mode. Possible values
 * include: 'Default', 'Automatic', 'Manual'
 *
 * @member {string} [clusterCodeVersion] The ServiceFabric code version, if set
 * it, please make sure you have set upgradeMode to Manual, otherwise ,it will
 * fail
 *
 * @member {object} [certificate] The cluster certificate settings, the new
 * certificate should exist in Vmss or KeyVault,before you add it, it will
 * override original value
 *
 * @member {string} [certificate.thumbprint] Primary certificate thumbprint
 *
 * @member {string} [certificate.thumbprintSecondary] Secondary certificate
 * thumbprint
 *
 * @member {string} [certificate.x509StoreName] Certificate x509 store
 * location. Possible values include: 'AddressBook', 'AuthRoot',
 * 'CertificateAuthority', 'Disallowed', 'My', 'Root', 'TrustedPeople',
 * 'TrustedPublisher'
 *
 * @member {array} [clientCertificateThumbprints] The cluster client
 * thumbprints, it will override existing collection
 *
 * @member {array} [fabricSettings] The new fabric settings for the cluster, Be
 * noted, it will overwrite existing collection
 *
 * @member {object} [reverseProxyCertificate] Certificate for the reverse proxy
 *
 * @member {string} [reverseProxyCertificate.thumbprint] Primary certificate
 * thumbprint
 *
 * @member {string} [reverseProxyCertificate.thumbprintSecondary] Secondary
 * certificate thumbprint
 *
 * @member {string} [reverseProxyCertificate.x509StoreName] Certificate x509
 * store location. Possible values include: 'AddressBook', 'AuthRoot',
 * 'CertificateAuthority', 'Disallowed', 'My', 'Root', 'TrustedPeople',
 * 'TrustedPublisher'
 *
 * @member {array} [nodeTypes] The settings for NodeTypes, it will override
 *
 * @member {object} [tags] Cluster update parameters
 *
 */
export interface ClusterUpdateParameters {
  reliabilityLevel?: string;
  upgradeMode?: string;
  clusterCodeVersion?: string;
  certificate?: CertificateDescription;
  clientCertificateThumbprints?: ClientCertificateThumbprint[];
  fabricSettings?: SettingsSectionDescription[];
  reverseProxyCertificate?: CertificateDescription;
  nodeTypes?: NodeTypeDescription[];
  tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the Resource class.
 * @constructor
 * The resource model definition.
 *
 * @member {string} [id] Resource ID.
 *
 * @member {string} [name] Resource name.
 *
 * @member {string} [type] Resource type.
 *
 * @member {string} location Resource location.
 *
 * @member {object} [tags] Resource tags.
 *
 */
export interface Resource extends BaseResource {
  readonly id?: string;
  readonly name?: string;
  readonly type?: string;
  location: string;
  tags?: { [propertyName: string]: string };
}

/**
 * @class
 * Initializes a new instance of the Cluster class.
 * @constructor
 * The cluster resource
 *
 * @member {array} [availableClusterVersions] The available cluster code
 * version which the cluster can upgrade to, note that you must choose
 * upgradeMode to manual to upgrade to
 *
 * @member {string} [clusterId] The cluster id used internally by ServiceFabirc
 *
 * @member {string} [clusterState] The state for the cluster. Possible values
 * include: 'Default', 'WaitingForNodes', 'Deploying', 'BaselineUpgrade',
 * 'UpdatingUserConfiguration', 'UpdatingUserCertificate',
 * 'UpdatingInfrastructure', 'EnforcingClusterVersion',
 * 'UpgradeServiceUnreachable', 'Deleting', 'ScaleUp', 'ScaleDown',
 * 'AutoScale', 'Ready', 'Failed'
 *
 * @member {string} [clusterEndpoint] The endpoint for the cluster connecting
 * to servicefabric resource provider
 *
 * @member {string} [clusterCodeVersion] The ServiceFabric code version, you
 * don't need to set it, when you choose upgradeMode as Automatic
 *
 * @member {object} [certificate] The cluster certificate
 *
 * @member {string} [certificate.thumbprint] Primary certificate thumbprint
 *
 * @member {string} [certificate.thumbprintSecondary] Secondary certificate
 * thumbprint
 *
 * @member {string} [certificate.x509StoreName] Certificate x509 store
 * location. Possible values include: 'AddressBook', 'AuthRoot',
 * 'CertificateAuthority', 'Disallowed', 'My', 'Root', 'TrustedPeople',
 * 'TrustedPublisher'
 *
 * @member {string} reliabilityLevel The reliability level for the cluster.
 * Possible values include: 'Bronze', 'Silver', 'Gold', 'Platinum'
 *
 * @member {string} upgradeMode The cluster upgrade mode. Possible values
 * include: 'Automatic', 'Manual'
 *
 * @member {array} [clientCertificateThumbprints] The client certificate
 * thumbprints
 *
 * @member {array} [clientCertificateCommonNames] The certificate common name
 * and issurer thumprint for the client certificate
 *
 * @member {array} [fabricSettings] The faric setting collection
 *
 * @member {object} [reverseProxyCertificate] The certificate for the reverse
 * proxy
 *
 * @member {string} [reverseProxyCertificate.thumbprint] Primary certificate
 * thumbprint
 *
 * @member {string} [reverseProxyCertificate.thumbprintSecondary] Secondary
 * certificate thumbprint
 *
 * @member {string} [reverseProxyCertificate.x509StoreName] Certificate x509
 * store location. Possible values include: 'AddressBook', 'AuthRoot',
 * 'CertificateAuthority', 'Disallowed', 'My', 'Root', 'TrustedPeople',
 * 'TrustedPublisher'
 *
 * @member {string} managementEndpoint The cluster management endpoint address
 *
 * @member {array} nodeTypes The arary of the nodeType
 *
 * @member {string} [provisioningState] The provisioning state of the cluster.
 * Possible values include: 'Default', 'Updating', 'Succeeded', 'Failed',
 * 'Canceled'
 *
 * @member {string} vmImage The OS type
 *
 * @member {object} diagnosticsStorageAccountConfig The storage diagnostics
 * account configuration
 *
 * @member {string} [diagnosticsStorageAccountConfig.storageAccountName]
 * Diagnostics storage account name
 *
 * @member {string} [diagnosticsStorageAccountConfig.primaryAccessKey] Primary
 * diagnostics storage access key
 *
 * @member {string} [diagnosticsStorageAccountConfig.secondaryAccessKey]
 * Secondary diagnostics storage access key
 *
 * @member {string} [diagnosticsStorageAccountConfig.protectedAccountKeyName]
 * Protected Diagnostics storage key name
 *
 * @member {string} [diagnosticsStorageAccountConfig.blobEndpoint] Diagnostics
 * storage account blob endpoint
 *
 * @member {string} [diagnosticsStorageAccountConfig.queueEndpoint] Diagnostics
 * storage account queue endpoint
 *
 * @member {string} [diagnosticsStorageAccountConfig.tableEndpoint] Diagnostics
 * storage account table endpoint
 *
 * @member {object} [upgradeDescription] The upgrade policy
 *
 * @member {boolean} [upgradeDescription.overrideUserUpgradePolicy] Override
 * user upgrade policy
 *
 * @member {boolean} [upgradeDescription.forceRestart] Force restart or not
 *
 * @member {string} [upgradeDescription.upgradeReplicaSetCheckTimeout] Upgrade
 * replica set check timeout
 *
 * @member {string} [upgradeDescription.healthCheckWaitDuration] Health check
 * wait duration
 *
 * @member {string} [upgradeDescription.healthCheckStableDuration] Health check
 * stable duration
 *
 * @member {string} [upgradeDescription.healthCheckRetryTimeout] Health check
 * retry timeout
 *
 * @member {string} [upgradeDescription.upgradeTimeout] Upgrade Timeout
 *
 * @member {string} [upgradeDescription.upgradeDomainTimeout] upgrade domain
 * timeout
 *
 * @member {object} [upgradeDescription.healthPolicy] Health Policy
 *
 * @member {number} [upgradeDescription.healthPolicy.maxPercentUnhealthyNodes]
 * Max percent of unhealthy nodes
 *
 * @member {number}
 * [upgradeDescription.healthPolicy.maxPercentUnhealthyApplications] Max
 * percent of unhealthy applications
 *
 * @member {object} [upgradeDescription.healthPolicy.applicationHealthPolicies]
 * Application health policies
 *
 * @member {object} [upgradeDescription.deltaHealthPolicy] Delta health policy
 *
 * @member {number}
 * [upgradeDescription.deltaHealthPolicy.maxPercentDeltaUnhealthyNodes] Max of
 * percent of delta unhealthy nodes
 *
 * @member {number}
 * [upgradeDescription.deltaHealthPolicy.maxPercentUpgradeDomainDeltaUnhealthyNodes]
 * Max of percent upgrade domain delta unhealthy nodes
 *
 * @member {number}
 * [upgradeDescription.deltaHealthPolicy.maxPercentDeltaUnhealthyApplications]
 * Max percent of delta unhealthy applications
 *
 * @member {object}
 * [upgradeDescription.deltaHealthPolicy.applicationHealthPolicies] Application
 * health policies
 *
 */
export interface Cluster extends Resource {
  readonly availableClusterVersions?: ClusterVersionDetails[];
  readonly clusterId?: string;
  readonly clusterState?: string;
  readonly clusterEndpoint?: string;
  clusterCodeVersion?: string;
  certificate?: CertificateDescription;
  reliabilityLevel: string;
  upgradeMode: string;
  clientCertificateThumbprints?: ClientCertificateThumbprint[];
  clientCertificateCommonNames?: ClientCertificateCommonName[];
  fabricSettings?: SettingsSectionDescription[];
  reverseProxyCertificate?: CertificateDescription;
  managementEndpoint: string;
  nodeTypes: NodeTypeDescription[];
  readonly provisioningState?: string;
  vmImage: string;
  diagnosticsStorageAccountConfig: DiagnosticsStorageAccountConfig;
  upgradeDescription?: PaasClusterUpgradePolicy;
}

/**
 * @class
 * Initializes a new instance of the ClusterListResult class.
 * @constructor
 * Cluster list results
 *
 * @member {array} [value]
 *
 * @member {string} [nextLink] The URL to use for getting the next set of
 * results.
 *
 */
export interface ClusterListResult {
  value?: Cluster[];
  nextLink?: string;
}

/**
 * @class
 * Initializes a new instance of the AvailableOperationDisplay class.
 * @constructor
 * Operation detail
 *
 * @member {string} [provider] Provider name
 *
 * @member {string} [resource] Resource name
 *
 * @member {string} [operation] Operation name
 *
 * @member {string} [description] Operation description
 *
 */
export interface AvailableOperationDisplay {
  provider?: string;
  resource?: string;
  operation?: string;
  description?: string;
}

/**
 * @class
 * Initializes a new instance of the OperationResult class.
 * @constructor
 * Available operation list result
 *
 * @member {string} [name] Result name
 *
 * @member {object} [display]
 *
 * @member {string} [display.provider] Provider name
 *
 * @member {string} [display.resource] Resource name
 *
 * @member {string} [display.operation] Operation name
 *
 * @member {string} [display.description] Operation description
 *
 * @member {string} [origin] Origin result
 *
 * @member {string} [nextLink] The URL to use for getting the next set of
 * results.
 *
 */
export interface OperationResult {
  name?: string;
  display?: AvailableOperationDisplay;
  origin?: string;
  nextLink?: string;
}

/**
 * @class
 * Initializes a new instance of the OperationListResult class.
 * @constructor
 * Result of the request to list ServiceFabric operations. It contains a list
 * of operations and a URL link to get the next set of results.
 *
 * @member {array} [value] List of ServiceFabric operations supported by the
 * Microsoft.ServiceFabric resource provider.
 *
 * @member {string} [nextLink] URL to get the next set of operation list
 * results if there are any.
 *
 */
export interface OperationListResult {
  readonly value?: OperationResult[];
  readonly nextLink?: string;
}

/**
 * @class
 * Initializes a new instance of the ErrorModelError class.
 * @constructor
 * The error
 *
 * @member {string} [code] The error code
 *
 * @member {string} [message] The error message
 *
 */
export interface ErrorModelError {
  code?: string;
  message?: string;
}

/**
 * @class
 * Initializes a new instance of the ErrorModel class.
 * @constructor
 * The model of the error
 *
 * @member {object} [error] The error
 *
 * @member {string} [error.code] The error code
 *
 * @member {string} [error.message] The error message
 *
 */
export interface ErrorModel {
  error?: ErrorModelError;
}

/**
 * @class
 * Initializes a new instance of the ClusterListResult class.
 * @constructor
 * Cluster list results
 *
 * @member {array} [value]
 *
 * @member {string} [nextLink] The URL to use for getting the next set of
 * results.
 *
 */
export interface ClusterListResult {
  value?: Cluster[];
  nextLink?: string;
}

/**
 * @class
 * Initializes a new instance of the OperationListResult class.
 * @constructor
 * Result of the request to list ServiceFabric operations. It contains a list
 * of operations and a URL link to get the next set of results.
 *
 * @member {array} [value] List of ServiceFabric operations supported by the
 * Microsoft.ServiceFabric resource provider.
 *
 * @member {string} [nextLink] URL to get the next set of operation list
 * results if there are any.
 *
 */
export interface OperationListResult {
  readonly value?: OperationResult[];
  readonly nextLink?: string;
}

/**
 * @class
 * Initializes a new instance of the ClusterListResult class.
 * @constructor
 * Cluster list results
 *
 * @member {string} [nextLink] The URL to use for getting the next set of
 * results.
 *
 */
export interface ClusterListResult extends Array<Cluster> {
  nextLink?: string;
}

/**
 * @class
 * Initializes a new instance of the OperationListResult class.
 * @constructor
 * Result of the request to list ServiceFabric operations. It contains a list
 * of operations and a URL link to get the next set of results.
 *
 * @member {string} [nextLink] URL to get the next set of operation list
 * results if there are any.
 *
 */
export interface OperationListResult extends Array<OperationResult> {
  readonly nextLink?: string;
}


text:
package org.openapitools.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.model.ExtensionClassContainerImpl1links;
import org.openapitools.model.ExtensionClassContainerImpl1map;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", date = "2022-06-04T08:08:14.272389Z[Etc/UTC]")
public class ExtensionClassContainerImpl1   {
  @JsonProperty("_class")
  private String propertyClass;

  @JsonProperty("_links")
  private ExtensionClassContainerImpl1links links;

  @JsonProperty("map")
  private ExtensionClassContainerImpl1map map;

  /**
   **/
  public ExtensionClassContainerImpl1 propertyClass(String propertyClass) {
    this.propertyClass = propertyClass;
    return this;
  }

  @ApiModelProperty(value = "")
  @JsonProperty("_class")
  public String getPropertyClass() {
    return propertyClass;
  }
  public void setPropertyClass(String propertyClass) {
    this.propertyClass = propertyClass;
  }

  /**
   **/
  public ExtensionClassContainerImpl1 links(ExtensionClassContainerImpl1links links) {
    this.links = links;
    return this;
  }

  @ApiModelProperty(value = "")
  @JsonProperty("_links")
  public ExtensionClassContainerImpl1links getLinks() {
    return links;
  }
  public void setLinks(ExtensionClassContainerImpl1links links) {
    this.links = links;
  }

  /**
   **/
  public ExtensionClassContainerImpl1 map(ExtensionClassContainerImpl1map map) {
    this.map = map;
    return this;
  }

  @ApiModelProperty(value = "")
  @JsonProperty("map")
  public ExtensionClassContainerImpl1map getMap() {
    return map;
  }
  public void setMap(ExtensionClassContainerImpl1map map) {
    this.map = map;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ExtensionClassContainerImpl1 extensionClassContainerImpl1 = (ExtensionClassContainerImpl1) o;
    return Objects.equals(propertyClass, extensionClassContainerImpl1.propertyClass) &&
        Objects.equals(links, extensionClassContainerImpl1.links) &&
        Objects.equals(map, extensionClassContainerImpl1.map);
  }

  @Override
  public int hashCode() {
    return Objects.hash(propertyClass, links, map);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ExtensionClassContainerImpl1 {\n");

    sb.append("    propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
    sb.append("    links: ").append(toIndentedString(links)).append("\n");
    sb.append("    map: ").append(toIndentedString(map)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}


text:
<?php
// Copyright (c) 2013 - 2018 by Thomas Pawlitschko. (MIT License)

declare(strict_types=1);

namespace TPawl\LiTE\Filter;

use TPawl\LiTE\Exceptions\FilterException;
use TPawl\LiTE\Miscellaneous\AsciiCharacterFunctions;
use TPawl\LiTE\Miscellaneous\StringType;
use TPawl\LiTE\Miscellaneous\PackageMessages;

class TemplateVariableFilter implements FilterInterface
{
    public function filterName(string $name): void
    {
        if (!self::isValidName($name)) {

            throw new FilterException(
                PackageMessages::packagizeMessage(
                    "Invalid template variable name '{$name}'"));
        }
    }

    public static function isValidName(string $name): bool
    {
        return AsciiCharacterFunctions::isLowercase(ord($name)) && // is first character of string valid?
            StringType::isAlphabeticNumeric(substr($name, 1)); // is rest of string valid?
    }
}


text:
hi

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

          <ba-card title="Product Options" baCardClass="with-scroll">
            <ng2-smart-table [settings]="settings" [source]="source"
                             (userRowSelect)="onRowSelect($event)">

            </ng2-smart-table>
          </ba-card>

    <button class="btn btn-primary confirm-btn" (click)="closeModal()">Add product option</button>


text:
require 'rails/generators/base'
module BankLinkLt
  class InstallGenerator < Rails::Generators::Base
    source_root(File.expand_path(File.dirname(__FILE__)))
    #source_root File.expand_path(File.join(File.dirname(__FILE__), 'certificates'))

    INITIALIZER_NAME = 'bank_link_lt.rb'
    CERTIFICATES_PATH = 'certificates/'

    class_option :certificates_path, :type => :string, :default => CERTIFICATES_PATH

    def copy_initializer
      unless File.exist?(Rails.root + 'config/initializers/' + INITIALIZER_NAME) || File.symlink?(Rails.root + 'config/initializers/' + INITIALIZER_NAME)
        puts 'Copying initializer'
        copy_file 'initializers/' + INITIALIZER_NAME, Rails.root + 'config/initializers/' + INITIALIZER_NAME
      else
        puts 'Initializer already exist'
      end
    end

    def create_certificates_directory

      unless File.directory?(Rails.root + options[:certificates_path])|| File.symlink?(Rails.root + options[:certificates_path])
        puts "Creating directory for certificates at #{File.expand_path(Rails.root +CERTIFICATES_PATH)}"
        Dir.mkdir "#{Rails.root + options[:certificates_path]}"
        #system "chmod  700 #{Rails.root + CERTIFICATES_PATH}"
      else
        puts "Directory for certificates at #{Rails.root + options[:certificates_path]} already exists"
      end

    end

    def generate_certificates
      puts "run: rails g bank_link_lt:certificates --certificates_subject ''/C=country_code/L=city/O=company_name/OU=BankLink/CN=www.your_www.lt/emailAddress=your_company_email/'"
    end
    private
#    def Rails.root + options[:certificates_path]
#        (Rails.root + options[:certificates_path]).to_s
#    end
  end
end


text:
classdef CSSpatialTuningFigure < symphonyui.core.FigureHandler

    properties (SetAccess = private)
        ampDevice
        recordingType
        preTime
        stimTime
        centerSigmas
        surroundSigmas
    end

    properties (Access = private)
        axesHandle
        lineHandle

        center
        surround
        centerSurround
    end

    methods

        function obj = CSSpatialTuningFigure(ampDevice, varargin)
            obj.ampDevice = ampDevice;
            ip = inputParser();
            ip.addParameter('recordingType', [], @(x)ischar(x));
            ip.addParameter('preTime', [], @(x)isvector(x));
            ip.addParameter('stimTime', [], @(x)isvector(x));
            ip.addParameter('centerSigmas', [], @(x)isvector(x));
            ip.addParameter('surroundSigmas', [], @(x)isvector(x));
            ip.parse(varargin{:});
            obj.recordingType = ip.Results.recordingType;
            obj.preTime = ip.Results.preTime;
            obj.stimTime = ip.Results.stimTime;
            obj.centerSigmas = ip.Results.centerSigmas;
            obj.surroundSigmas = ip.Results.surroundSigmas;

            obj.center.response = zeros(1,length(obj.centerSigmas));
            obj.center.count = zeros(1,length(obj.centerSigmas));

            obj.surround.response = zeros(length(obj.surroundSigmas),1);
            obj.surround.count = zeros(length(obj.surroundSigmas),1);

            obj.centerSurround.response = zeros(length(obj.surroundSigmas),length(obj.centerSigmas));
            obj.centerSurround.count = zeros(length(obj.surroundSigmas),length(obj.centerSigmas));

            obj.createUi();
        end

        function createUi(obj)
            import appbox.*;

            obj.axesHandle(1) = subplot(3,1,1,...
                'Parent',obj.figureHandle,...
                'FontName', get(obj.figureHandle, 'DefaultUicontrolFontName'),...
                'FontSize', get(obj.figureHandle, 'DefaultUicontrolFontSize'), ...
                'XTickMode', 'auto');
            xlabel(obj.axesHandle(1), 'Sigma (microns)');
            ylabel(obj.axesHandle(1), 'Response');
            title(obj.axesHandle(1), 'Center alone');

            obj.axesHandle(2) = subplot(3,1,2,...
                'Parent',obj.figureHandle,...
                'FontName', get(obj.figureHandle, 'DefaultUicontrolFontName'),...
                'FontSize', get(obj.figureHandle, 'DefaultUicontrolFontSize'), ...
                'XTickMode', 'auto');
            xlabel(obj.axesHandle(2), 'Sigma (microns)');
            ylabel(obj.axesHandle(2), 'Response');
            title(obj.axesHandle(2), 'Surround alone');

             obj.axesHandle(3) = subplot(3,1,3,...
                'Parent',obj.figureHandle,...
                'FontName', get(obj.figureHandle, 'DefaultUicontrolFontName'),...
                'FontSize', get(obj.figureHandle, 'DefaultUicontrolFontSize'), ...
                'XTickMode', 'auto');
            xlabel(obj.axesHandle(3), 'Center Sigma (microns)');
            ylabel(obj.axesHandle(3), 'Surround Sigma (microns)');
            zlabel(obj.axesHandle(3), 'Response');
            title(obj.axesHandle(3), 'Center + Surround');

            colors = edu.washington.riekelab.turner.utils.pmkmp(3,'CubicYF');

            obj.lineHandle.center = line(0, 0,...
                'Parent', obj.axesHandle(1),'Color',colors(1,:),'Marker','o','LineStyle','-');
            obj.lineHandle.surround = line(0, 0,...
                'Parent', obj.axesHandle(2),'Color',colors(2,:),'Marker','o','LineStyle','-');
            obj.lineHandle.centerSurround = imagesc(0, 0, 0, 'Parent',obj.axesHandle(3));
            colormap(obj.axesHandle(3),gray);
        end

        function handleEpoch(obj, epoch)
            %load amp data
            response = epoch.getResponse(obj.ampDevice);
            epochResponseTrace = response.getData();
            sampleRate = response.sampleRate.quantityInBaseUnits;
            currentStimulus = epoch.parameters('currentStimulus');
            currentCenterSigma = epoch.parameters('currentCenterSigma');
            currentSurroundSigma = epoch.parameters('currentSurroundSigma');
            centerInd = find(currentCenterSigma == obj.centerSigmas);
            surroundInd = find(currentSurroundSigma == obj.surroundSigmas);

            if strcmp(obj.recordingType,'extracellular') %spike recording
                %take (prePts+1:prePts+stimPts)
                epochResponseTrace = epochResponseTrace((sampleRate*obj.preTime/1000)+1:(sampleRate*(obj.preTime + obj.stimTime)/1000));
                %count spikes
                S = edu.washington.riekelab.turner.utils.spikeDetectorOnline(epochResponseTrace);
                newEpochResponse = length(S.sp); %spike count
            else %intracellular - Vclamp
                epochResponseTrace = epochResponseTrace-mean(epochResponseTrace(1:sampleRate*obj.preTime/1000)); %baseline
                %take (prePts+1:prePts+stimPts)
                epochResponseTrace = epochResponseTrace((sampleRate*obj.preTime/1000)+1:(sampleRate*(obj.preTime + obj.stimTime)/1000));
                %charge transfer
                if strcmp(obj.recordingType,'exc') %measuring exc
                    chargeMult = -1;
                elseif strcmp(obj.recordingType,'inh') %measuring inh
                    chargeMult = 1;
                end
                newEpochResponse = chargeMult*trapz(epochResponseTrace(1:sampleRate*obj.stimTime/1000)); %pA*datapoint
                newEpochResponse = newEpochResponse/sampleRate; %pA*sec = pC
            end

            if strcmp(currentStimulus,'Center')
                obj.center.count(centerInd) = obj.center.count(centerInd) + 1;
                obj.center.response(centerInd) = obj.center.response(centerInd) + newEpochResponse;

                set(obj.lineHandle.center, 'XData', obj.centerSigmas,...
                    'YData', obj.center.response ./ obj.center.count);
            elseif strcmp(currentStimulus,'Surround')
                obj.surround.count(surroundInd) = obj.surround.count(surroundInd) + 1;
                obj.surround.response(surroundInd) = obj.surround.response(surroundInd) + newEpochResponse;

                set(obj.lineHandle.surround, 'XData', obj.surroundSigmas,...
                    'YData', obj.surround.response ./ obj.surround.count);
            elseif  strcmp(currentStimulus,'Center-Surround')
                obj.centerSurround.count(surroundInd,centerInd) = ...
                    obj.centerSurround.count(surroundInd,centerInd) + 1;
                obj.centerSurround.response(surroundInd,centerInd) = ...
                    obj.centerSurround.response(surroundInd,centerInd) + newEpochResponse;

                obj.lineHandle.centerSurround = imagesc(obj.centerSigmas, obj.surroundSigmas,...
                    obj.centerSurround.response ./ obj.centerSurround.count,...
                    'Parent',obj.axesHandle(3));
            end
        end

    end
end


text:
package com.google.security.zynamics.binnavi.Database.Interfaces;

import java.util.Set;

import com.google.security.zynamics.binnavi.Tagging.CTag;
import com.google.security.zynamics.binnavi.disassembly.views.CView;
import com.google.security.zynamics.zylib.disassembly.GraphType;
import com.google.security.zynamics.zylib.disassembly.ViewType;

/**
 * Interface for all classes that want to generate view objects.
 */
public interface ViewGenerator {
  /**
   * Generates a new view object.
   *
   * @param viewId ID of the view.
   * @param name Name of the view.
   * @param description Description of the view.
   * @param viewType Type of the view.
   * @param graphType The type of the view graph.
   * @param creationDate Creation data of the view.
   * @param modificationDate Modification date of the view.
   * @param blockCount The number of blocks in the view.
   * @param edgeCount The number of edges in the view.
   * @param tags Tags the views is tagged with.
   * @param nodeTags Node tags the nodes of the view are tagged with.
   *
   * @return The created view.
   */
  CView generate(int viewId, String name, String description, ViewType viewType,
      GraphType graphType, java.util.Date creationDate, java.util.Date modificationDate,
      int blockCount, int edgeCount, Set<CTag> tags, Set<CTag> nodeTags, boolean starState);
}


text:
The goal of these black box tests is to be able to test specific K8s types
without any knowledge about what they do; basically compliance tests.

This package implements the following classes of tests (listed in order of importance):

1. Defaulting validation: we ensure the defaults for a resource don't change by
   creating it and comparing the values. This will catch unexpected changes in
   defaulting webhooks. (This bitten us in 0.1 and 0.2)
2. Health validation: we ensure the status of the object behaves consistently
   with our expectations. (Ongoing issue)
3. Update validation: ensure that the status of updated objects behaves in
   accordance with our expectations.
4. Upgrade validation: ensure that upgrading an object from one version to the
   next goes as anticipated. Ideally this will be well-tested by the creators.

NOTE: These black-box-tests are only intended to run positive examples, if we
start expecting certain error messages, codes, etc. we're likely going to end up
on the un-maintainable spectrum.

## Algorithms

The following are suggested algorithms to implement the validation tests.

### Defaulting Validation Algorithm

1. Create an object
2. Ensure no additional fields have been populated on the response in the
   `spec` or parts of `metadata`.

### Health Validation Algorithm

1. Create an object
2. Watch each update until a successful condition has been met. Success should
   be defined by Rego expression.
3. Run Rego expression(s) for each update we receive. If an expression fails,
   the whole test should fail. These expressions SHOULD test that our
   interpretation of the status as a state machine is correct.
4. If some timeout occurs before the resource is ready, fail the test.

### Update Validation Algorithm

This is the same as the health validation algorithm, but after the initial
success, the `spec` should be modified and the test will run the health
validation again.

### Upgrade Validation Algorithm

1. With an object, ask Kuberntes to upgrade it from version X to Y to produce Z
2. Ask Kubernetes to downgrade Z from version Y to X.
3. Assert that the specs are unchanged and that both upgrade and downgrade
   were successful.


text:
using System;
using System.Windows.Forms;

namespace HostsManagerConfigurationTool
{
    public partial class frmImport : Form
	{
		frmMain main;
		public frmImport(frmMain main)
		{
			InitializeComponent();
			this.main = main;
		}

		private void btnImport_Click(object sender, EventArgs e)
		{
			main.import(txtSequence.Text, txtHosts.Text);
			this.Close();
		}
	}
}