text:
// Provides a customized router class for the 'documentation' app.
sap.ui.define([
	'sap/m/routing/Router',
	'sap/ui/core/routing/History'
], function(Router, History) {
	"use strict";

	var DocumentationRouter = Router.extend("sap.ui.documentation.sdk.util.DocumentationRouter", {

		constructor : function() {
			Router.prototype.constructor.apply(this, arguments);

			this.getRoute("entitySamplesLegacyRoute").attachPatternMatched(this._onEntityOldRouteMatched, this);
			this.getRoute("entityAboutLegacyRoute").attachPatternMatched(this._onEntityOldRouteMatched, this);
			this.getRoute("entityPropertiesLegacyRoute").attachPatternMatched({entityType: "controlProperties"}, this._forwardToAPIRef, this);
			this.getRoute("entityAggregationsLegacyRoute").attachPatternMatched({entityType: "aggregations"}, this._forwardToAPIRef, this);
			this.getRoute("entityAssociationsLegacyRoute").attachPatternMatched({entityType: "associations"}, this._forwardToAPIRef, this);
			this.getRoute("entityEventsLegacyRoute").attachPatternMatched({entityType: "events"}, this._forwardToAPIRef, this);
			this.getRoute("entityMethodsLegacyRoute").attachPatternMatched({entityType: "methods"}, this._forwardToAPIRef, this);

			this.getRoute("topicIdLegacyRoute").attachPatternMatched(this._onTopicOldRouteMatched, this);
			this.getRoute("apiIdLegacyRoute").attachPatternMatched(this._onApiOldRouteMatched, this);
		},

		_onEntityOldRouteMatched: function(oEvent) {
			this.navTo("entity", {
				id: oEvent.getParameter("arguments").id
			});
		},

		_forwardToAPIRef: function(oEvent, oData) {
			oData || (oData = {});
			oData['id'] = oEvent.getParameter("arguments").id;
			this.navTo("apiId", oData);
		},

		_onTopicOldRouteMatched: function(oEvent) {
			var sId = oEvent.getParameter("arguments").id;
			this.getView("sap.ui.documentation.sdk.view.App", "XML", "app").loaded().then(function(oView) {
				oView.getController()._onTopicOldRouteMatched(sId);
			});
		},

		_onApiOldRouteMatched: function(oEvent) {
			var sId = oEvent.getParameter("arguments").id;
			this.getView("sap.ui.documentation.sdk.view.App", "XML", "app").loaded().then(function(oView) {
				oView.getController()._onApiOldRouteMatched(sId);
			});
		},

		/**
		 * mobile nav back handling
		 */
		myNavBack: function (sRoute, oData) {
			var oHistory = History.getInstance();
			var oPrevHash = oHistory.getPreviousHash();
			if (oPrevHash !== undefined) {
				window.history.go(-1);
			} else {
				var bReplace = true; // otherwise we go backwards with a forward history
				this.navTo(sRoute, oData, bReplace);
			}
		},

		/**
		 * a nav to method that does not write hashes but load the views properly
		 */
		myNavToWithoutHash: function (viewName, viewType, master, data) {
			var oComponent = this._getOwnerComponent(),
				oRootView = oComponent.byId(oComponent.getManifestEntry("/sap.ui5/rootView").id),
				oApp = oRootView.byId("splitApp"),
				oView = this.getView(viewName, viewType);

			oApp.addPage(oView, master);
			oApp.toDetail(oView.getId(), "show", data);
		},

		/**
		 * Getter for the owner component
		 *
		 * <b>Note:</b> In the router we have no getter to retrieve the owner component. This should be improved in the
		 * future.
		 * @returns {sap.ui.core.UIComponent} Owner component of the router instance
		 * @private
		 */
		_getOwnerComponent: function () {
			return this._oOwner; // Accessing owner component from reference on the instance object.
		}
	});

	return DocumentationRouter;

});


text:
using System.Configuration;
using Raven.Client.Document;

namespace ASafaWeb.Library.Raven
{
    public class RavenSessionProvider
    {
        private static DocumentStore _documentStore;

        public bool SessionInitialized { get; set; }

        public static DocumentStore DocumentStore
        {
            get { return (_documentStore ?? (_documentStore = CreateDocumentStore())); }
        }

        private static DocumentStore CreateDocumentStore()
        {
            var store = new DocumentStore
                {
                    Url = ConfigurationManager.AppSettings["RAVENHQ_URI"],
                    DefaultDatabase = ConfigurationManager.AppSettings["RAVENHQ_Database"],
                    ApiKey = ConfigurationManager.AppSettings["RAVENHQ_APIKEY"],
                };
            store.Initialize();

            return store;
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
package io.github.Nitralow.Armor;

import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;

public class stoneboot extends ItemArmor {

	public stoneboot(int par1, EnumArmorMaterial par2EnumArmorMaterial,
			int par3, int par4) {
		super(par1, par2EnumArmorMaterial, par3, par4);
		// TODO Auto-generated constructor stub
	}

}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class BiasingBehavior
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class BiasingBehavior
   ">
    <meta name="generator" content="docfx 2.44.0.0">

    <link rel="shortcut icon" href="../api/images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">

              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                Toggle navigation

              </button>

              <form class="navbar-form navbar-right" role="search" id="search">

                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">

              </form>

          Show / Hide Table of Contents

Class BiasingBehavior

DC biasing behavior for a Diode.

Inheritance

System.Object

Behavior

TemperatureBehavior

BiasingBehavior

DynamicParameterBehavior

Implements

ITemperatureBehavior

IBiasingBehavior

IBehavior

Inherited Members

      TemperatureBehavior.BaseParameters

      TemperatureBehavior.ModelParameters

      TemperatureBehavior.ModelTemperature

      TemperatureBehavior.BaseConfiguration

      TemperatureBehavior.TempJunctionCap

      TemperatureBehavior.TempJunctionPot

      TemperatureBehavior.TempSaturationCurrent

      TemperatureBehavior.TempFactor1

      TemperatureBehavior.TempDepletionCap

      TemperatureBehavior.TempVCritical

      TemperatureBehavior.TempBreakdownVoltage

      TemperatureBehavior.Vt

      TemperatureBehavior.Vte

      TemperatureBehavior.State

      TemperatureBehavior.ITemperatureBehavior.Temperature()

      Behavior.Name

      Behavior.Simulation

      Behavior.Unbind()

      Behavior.CreateGetter<T>(Simulation, String, IEqualityComparer<String>)

      System.Object.ToString()

      System.Object.Equals(System.Object)

      System.Object.Equals(System.Object, System.Object)

      System.Object.ReferenceEquals(System.Object, System.Object)

      System.Object.GetHashCode()

      System.Object.GetType()

      System.Object.MemberwiseClone()

Namespace: SpiceSharp.Components.DiodeBehaviors

Assembly: SpiceSharp.dll

Syntax

public class BiasingBehavior : TemperatureBehavior, ITemperatureBehavior, IBiasingBehavior, IBehavior

Constructors

BiasingBehavior(String)

Creates a new instance of the BiasingBehavior class.

Declaration

public BiasingBehavior(string name)

Parameters

        Type
        Name
        Description

        System.String
        name

Name

Properties

Conductance

Gets the small-signal conductance.

Declaration

[ParameterName("gd")]
[ParameterInfo("Small-signal conductance")]
public double Conductance { get; protected set; }

Property Value

        Type
        Description

        System.Double

Current

Gets the current.

Declaration

[ParameterName("i")]
[ParameterName("id")]
[ParameterInfo("Diode current")]
public double Current { get; protected set; }

Property Value

        Type
        Description

        System.Double

NegNegPtr

Gets the (negative, negative) element.

Declaration

protected MatrixElement<double> NegNegPtr { get; }

Property Value

        Type
        Description

        MatrixElement<System.Double>

NegNode

Gets the negative node.

Declaration

protected int NegNode { get; }

Property Value

        Type
        Description

        System.Int32

NegPosPrimePtr

Gets the (negative, positive) element.

Declaration

protected MatrixElement<double> NegPosPrimePtr { get; }

Property Value

        Type
        Description

        MatrixElement<System.Double>

NegPtr

Gets the negative RHS element.

Declaration

protected VectorElement<double> NegPtr { get; }

Property Value

        Type
        Description

        VectorElement<System.Double>

PosNode

Gets the positive node.

Declaration

protected int PosNode { get; }

Property Value

        Type
        Description

        System.Int32

PosPosPrimePtr

Gets the (external positive, positive) element.

Declaration

protected MatrixElement<double> PosPosPrimePtr { get; }

Property Value

        Type
        Description

        MatrixElement<System.Double>

PosPosPtr

Gets the external (positive, positive) element.

Declaration

protected MatrixElement<double> PosPosPtr { get; }

Property Value

        Type
        Description

        MatrixElement<System.Double>

PosPrimeNegPtr

Gets the (positive, negative) element.

Declaration

protected MatrixElement<double> PosPrimeNegPtr { get; }

Property Value

        Type
        Description

        MatrixElement<System.Double>

PosPrimeNode

Gets the positive internal node.

Declaration

public int PosPrimeNode { get; }

Property Value

        Type
        Description

        System.Int32

PosPrimePosPrimePtr

Gets the (positive, positive) element.

Declaration

protected MatrixElement<double> PosPrimePosPrimePtr { get; }

Property Value

        Type
        Description

        MatrixElement<System.Double>

PosPrimePosPtr

Gets the (positive, external positive) element.

Declaration

protected MatrixElement<double> PosPrimePosPtr { get; }

Property Value

        Type
        Description

        MatrixElement<System.Double>

PosPrimePtr

Gets the positive RHS element.

Declaration

protected VectorElement<double> PosPrimePtr { get; }

Property Value

        Type
        Description

        VectorElement<System.Double>

Voltage

Gets the voltage.

Declaration

[ParameterName("v")]
[ParameterName("vd")]
[ParameterInfo("Diode voltage")]
public double Voltage { get; }

Property Value

        Type
        Description

        System.Double

Methods

Bind(Simulation, BindingContext)

Bind the behavior.

Declaration

public override void Bind(Simulation simulation, BindingContext context)

Parameters

        Type
        Name
        Description

        Simulation
        simulation

The simulation.

        BindingContext
        context

The context.

Overrides

TemperatureBehavior.Bind(Simulation, BindingContext)

GetPower()

Gets the power dissipated.

Declaration

[ParameterName("p")]
[ParameterName("pd")]
[ParameterInfo("Power")]
public double GetPower()

Returns

        Type
        Description

        System.Double

Initialize(out Double, out Boolean)

Initialize the device based on the current iteration state.

Declaration

protected void Initialize(out double vd, out bool check)

Parameters

        Type
        Name
        Description

        System.Double
        vd

        System.Boolean
        check

Explicit Interface Implementations

IBiasingBehavior.IsConvergent()

Check convergence for the diode

Declaration

bool IBiasingBehavior.IsConvergent()

Returns

        Type
        Description

        System.Boolean

IBiasingBehavior.Load()

Execute behavior

Declaration

void IBiasingBehavior.Load()

Implements

      ITemperatureBehavior

      IBiasingBehavior

      IBehavior

Extension Methods

      Utility.ThrowIfNull<T>(T, String)

      Utility.ThrowIfNotBound<T>(T, Behavior)

      ParameterHelper.TrySetPrincipalParameter<T>(Object, T)

      ParameterHelper.SetPrincipalParameter<T>(Object, T)

      ParameterHelper.TrySetParameter<T>(Object, String, T, IEqualityComparer<String>)

      ParameterHelper.SetParameter<T>(Object, String, T, IEqualityComparer<String>)

      ParameterHelper.TrySetParameter(Object, String, IEqualityComparer<String>)

      ParameterHelper.SetParameter(Object, String, IEqualityComparer<String>)

      ParameterHelper.TryGetParameter<T>(Object, String, out T, IEqualityComparer<String>)

      ParameterHelper.GetParameter<T>(Object, String, IEqualityComparer<String>)

      ParameterHelper.TryGetParameter<T>(Object, out T)

      ParameterHelper.GetParameter<T>(Object)

      ParameterHelper.CreateGetter<T>(Object)

      ParameterHelper.CreateGetter<T>(Object, String, IEqualityComparer<String>)

      ParameterHelper.CreateSetter<T>(Object)

      ParameterHelper.CreateSetter<T>(Object, String, IEqualityComparer<String>)

              Back to top

            Generated by DocFX


text:
if [ -z "`ps acx | grep 'clamd'`" ]; then
        echo "ClamAV daemon not running - starting now..."
        /usr/local/etc/rc.d/clamav-clamd start
fi

if [ -z "`ps acx | grep 'freshclam'`" ]; then
        echo "FreshClam daemon not running - starting now..."
        /usr/local/etc/rc.d/clamav-freshclam start
fi

exit 0


text:
import { defaultProps } from '@nivo/bullet'
import { themeProperty, motionProperties, groupProperties } from '../../../lib/componentProperties'
import { chartDimensions } from '../../../lib/chart-properties'
import { ChartProperty, Flavor } from '../../../types'

const allFlavors: Flavor[] = ['svg']

const props: ChartProperty[] = [
    {
        key: 'data',
        group: 'Base',
        help: 'Chart data.',
        flavors: ['svg'],
        description: `
            Chart data, which must conform to this structure:
            \`\`\`
            Array<{
                id:        {string|number}
                title?:    {ReactNode}
                subtitle?: {ReactNode}
                data: Array<{
                    ranges:   number[]
                    measures: number[]
                    markers?: number[]
                }>
            }>
            \`\`\`

            If \`title\` is \`undefined\`, \`id\` will be used for
            \`title\`.
        `,
        type: 'object[]',
        required: true,
    },
    {
        key: 'minValue',
        help: 'Minimum value.',
        flavors: ['svg'],
        description: `
            Minimum value, if 'auto',
            will use min value from
            the provided data.
        `,
        required: false,
        defaultValue: defaultProps.minValue,
        type: `number | 'auto'`,
        group: 'Base',
        control: {
            type: 'switchableRange',
            disabledValue: 'auto',
            defaultValue: 0,
            min: 0,
            max: 10,
        },
    },
    {
        key: 'maxValue',
        help: 'Maximum value.',
        flavors: ['svg'],
        description: `
            Maximum value, if 'auto',
            will use max value from
            the provided data.
        `,
        required: false,
        defaultValue: defaultProps.maxValue,
        type: `number | 'auto'`,
        group: 'Base',
        control: {
            type: 'switchableRange',
            disabledValue: 'auto',
            defaultValue: 100,
            min: 50,
            max: 100,
        },
    },
    ...chartDimensions(allFlavors),
    {
        key: 'layout',
        group: 'Base',
        help: `How to display items.`,
        flavors: ['svg'],
        type: 'string',
        required: false,
        defaultValue: defaultProps.layout,
        control: {
            type: 'radio',
            choices: [
                { label: 'horizontal', value: 'horizontal' },
                { label: 'vertical', value: 'vertical' },
            ],
        },
    },
    {
        key: 'reverse',
        group: 'Base',
        help: 'Reverse chart.',
        description: `
            Reverse chart, starts on top instead of bottom
            for vertical layout and right instead of left
            for horizontal one.
        `,
        flavors: ['svg'],
        type: 'boolean',
        required: false,
        defaultValue: defaultProps.reverse,
        control: { type: 'switch' },
    },
    {
        key: 'spacing',
        help: 'define spacing between items.',
        type: 'number',
        flavors: ['svg'],
        required: false,
        defaultValue: defaultProps.spacing,
        group: 'Base',
        control: {
            type: 'range',
            unit: 'px',
            min: 0,
            max: 100,
        },
    },
    {
        key: 'measureSize',
        help: 'define size of measure related to item size, expressed as a ratio.',
        type: 'number',
        required: false,
        flavors: ['svg'],
        defaultValue: defaultProps.measureSize,
        group: 'Base',
        control: {
            type: 'range',
            min: 0,
            max: 1,
            step: 0.05,
        },
    },
    {
        key: 'markerSize',
        help: 'define size of markers related to item size, expressed as a ratio.',
        type: 'number',
        required: false,
        flavors: ['svg'],
        defaultValue: defaultProps.markerSize,
        group: 'Base',
        control: {
            type: 'range',
            min: 0,
            max: 2,
            step: 0.05,
        },
    },
    themeProperty(['svg']),
    {
        key: 'rangeBorderColor',
        flavors: ['svg'],
        group: 'Style',
        help: 'Method to compute range border color.',
        description: `
            how to compute range border color,
            [see dedicated documentation](self:/guides/colors).
        `,
        type: 'string | object | Function',
        required: false,
        defaultValue: defaultProps.rangeBorderColor,
        control: { type: 'inheritedColor' },
    },
    {
        key: 'rangeBorderWidth',
        flavors: ['svg'],
        group: 'Style',
        help: 'Width of range border.',
        type: 'number',
        required: false,
        defaultValue: defaultProps.rangeBorderWidth,
        control: { type: 'lineWidth' },
    },
    {
        key: 'rangeComponent',
        flavors: ['svg'],
        group: 'Style',
        help: 'Custom component for ranges.',
        type: 'Function',
        required: false,
    },
    {
        key: 'rangeColors',
        help: 'Ranges colors',
        description: `
            Defines colors for ranges,
            you can either use categorical colors:
            \`greens\` or sequential form: \`seq:green\`.
        `,
        type: 'string | Function | string[]',
        flavors: ['svg'],
        required: false,
        defaultValue: defaultProps.rangeColors,
        group: 'Style',
        control: {
            type: 'bullet_colors',
        },
    },
    {
        key: 'measureBorderColor',
        flavors: ['svg'],
        group: 'Style',
        help: 'Method to compute measure border color.',
        description: `
            how to compute measure border color,
            [see dedicated documentation](self:/guides/colors).
        `,
        type: 'string | object | Function',
        required: false,
        defaultValue: defaultProps.measureBorderColor,
        control: { type: 'inheritedColor' },
    },
    {
        key: 'measureBorderWidth',
        flavors: ['svg'],
        group: 'Style',
        help: 'Width of measure border.',
        type: 'number',
        required: false,
        defaultValue: defaultProps.measureBorderWidth,
        control: { type: 'lineWidth' },
    },
    {
        key: 'measureComponent',
        flavors: ['svg'],
        group: 'Style',
        help: 'Custom component for measures.',
        type: 'Function',
        required: false,
    },
    {
        key: 'measureColors',
        help: 'Measures colors.',
        description: `
            Defines colors for measures,
            you can either use categorical colors:
            \`greens\` or sequential form: \`seq:green\`.
        `,
        type: 'string | Function | string[]',
        required: false,
        flavors: ['svg'],
        defaultValue: defaultProps.measureColors,
        group: 'Style',
        control: {
            type: 'bullet_colors',
        },
    },
    {
        key: 'markerComponent',
        flavors: ['svg'],
        group: 'Style',
        help: 'Custom component for markers.',
        type: 'Function',
        required: false,
    },
    {
        key: 'markerColors',
        flavors: ['svg'],
        help: 'Markers colors.',
        description: `
            Defines colors for markers,
            you can either use categorical colors:
            \`greens\` or sequential form: \`seq:green\`.
        `,
        type: 'string | Function| string[]',
        required: false,
        defaultValue: defaultProps.markerColors,
        group: 'Style',
        control: {
            type: 'bullet_colors',
        },
    },
    {
        key: 'axisPosition',
        help: `Where to put axis.`,
        type: 'string',
        required: false,
        defaultValue: defaultProps.axisPosition,
        flavors: ['svg'],
        group: 'Axes',
        control: {
            type: 'radio',
            choices: [
                { label: 'before', value: 'before' },
                { label: 'after', value: 'after' },
            ],
        },
    },
    {
        key: 'titlePosition',
        help: `Where to put title.`,
        type: 'string',
        required: false,
        defaultValue: defaultProps.titlePosition,
        flavors: ['svg'],
        group: 'Title',
        control: {
            type: 'radio',
            choices: [
                { label: 'before', value: 'before' },
                { label: 'after', value: 'after' },
            ],
        },
    },
    {
        key: 'titleAlign',
        help: `title alignment.`,
        type: 'string',
        required: false,
        defaultValue: defaultProps.titleAlign,
        flavors: ['svg'],
        group: 'Title',
        control: {
            type: 'choices',
            choices: [
                { label: 'start', value: 'start' },
                { label: 'middle', value: 'middle' },
                { label: 'end', value: 'end' },
            ],
        },
    },
    {
        key: 'titleOffsetX',
        help: 'title x offset from bullet edge.',
        type: 'number',
        required: false,
        defaultValue: defaultProps.titleOffsetX,
        flavors: ['svg'],
        group: 'Title',
        control: {
            type: 'range',
            min: -100,
            max: 100,
            unit: 'px',
        },
    },
    {
        key: 'titleOffsetY',
        help: 'title y offset from bullet edge.',
        type: 'number',
        required: false,
        defaultValue: defaultProps.titleOffsetY,
        flavors: ['svg'],
        group: 'Title',
        control: {
            type: 'range',
            min: -100,
            max: 100,
            unit: 'px',
        },
    },
    {
        key: 'titleRotation',
        help: 'title rotation.',
        type: 'number',
        required: false,
        defaultValue: defaultProps.titleRotation,
        flavors: ['svg'],
        group: 'Title',
        control: {
            type: 'angle',
            start: 90,
            min: -360,
            max: 360,
            step: 5,
        },
    },
    {
        key: 'onRangeClick',
        flavors: ['svg'],
        type: '(range, event) => void',
        group: 'Interactivity',
        required: false,
        help: 'onClick handler for ranges.',
        description: `
            onClick handler for ranges, will receive range
            data as first argument & event as second one.

            The data has the following shape:
            \`\`\`
            {
                id:    string,
                v0:    number,
                v1:    number,
                index: number,
                color: string,
            }
            \`\`\`

            \`v1\` is the value of the range while
            \`v0\` is the value of previous range.
        `,
    },
    {
        key: 'onMeasureClick',
        flavors: ['svg'],
        type: '(measure, event) => void',
        group: 'Interactivity',
        required: false,
        help: 'onClick handler for measures.',
        description: `
            onClick handler for measures, will receive measure
            data as first argument & event as second one.

            The data has the following shape:
            \`\`\`
            {
                id:    string,
                v0:    number,
                v1:    number,
                index: number,
                color: string,
            }
            \`\`\`

            \`v1\` is the value of the measure while
            \`v0\` is the value of previous measure.
        `,
    },
    {
        key: 'onMarkerClick',
        flavors: ['svg'],
        type: '(marker, event) => void',
        group: 'Interactivity',
        required: false,
        help: 'onClick handler for markers.',
        description: `
            onClick handler for markers, will receive marker
            data as first argument & event as second one.

            The data has the following shape:
            \`\`\`
            {
                id:    string,
                value: number,
                index: number,
                color: string,
            }
            \`\`\`
        `,
    },
    ...motionProperties(['svg'], defaultProps, 'react-spring'),
]

export const groups = groupProperties(props)


text:
require File.expand_path('../command', File.dirname(__FILE__))

module Nesta
  module Commands
    module Theme
      class Enable
        include Command

        def initialize(*args)
          name = args.shift
          options = args.shift || {}
          name.nil? && (raise UsageError.new('name not specified'))
          @name = name
        end

        def execute
          update_config_yaml(/^\s*#?\s*theme:.*/, "theme: #{@name}")
        end
      end
    end
  end
end


text:
require File.expand_path("#{File.dirname __FILE__}/../../response")
require File.expand_path("#{File.dirname __FILE__}/../../no_response_error")
require File.expand_path("#{File.dirname __FILE__}/../command")
require File.expand_path("#{File.dirname __FILE__}/../display")
require File.expand_path("#{File.dirname __FILE__}/body_response")
require File.expand_path("#{File.dirname __FILE__}/cookies")
require File.expand_path("#{File.dirname __FILE__}/cookies_use")
require File.expand_path("#{File.dirname __FILE__}/headers_request")
require File.expand_path("#{File.dirname __FILE__}/status")

module HTTY; end

class HTTY::CLI; end

module HTTY::CLI::Commands; end

# Encapsulates the _headers-response_ command.
class HTTY::CLI::Commands::HeadersResponse < HTTY::CLI::Command

  include HTTY::CLI::Display

  # Returns the name of a category under which help for the _headers-response_
  # command should appear.
  def self.category
    'Inspecting Responses'
  end

  # Returns the string used to invoke the _headers-response_ command from the
  # command line.
  def self.command_line
    'headers[-response]'
  end

  # Returns the help text for the _headers-response_ command.
  def self.help
    'Displays the headers of the response'
  end

  # Returns the extended help text for the _headers-response_ command.
  def self.help_extended
    'Displays the headers received in the response. Does not communicate ' +
    "with the host.\n"                                                     +
    "\n"                                                                   +
    "A '#{HTTY::Response::COOKIES_HEADER_NAME}' request header is marked " +
    'with a bold asterisk (it looks like a cookie).'
  end

  # Returns related command classes for the _headers-response_ command.
  def self.see_also_commands
    [HTTY::CLI::Commands::BodyResponse,
     HTTY::CLI::Commands::Cookies,
     HTTY::CLI::Commands::CookiesUse,
     HTTY::CLI::Commands::Status,
     HTTY::CLI::Commands::HeadersRequest]
  end

  # Performs the _headers-response_ command.
  def perform
    unless (response = session.last_response)
      raise HTTY::NoResponseError
    end
    show_headers response.headers,
                 :show_asterisk_next_to => HTTY::Response::COOKIES_HEADER_NAME
    self
  end

end


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.yetiz.gae.exception;

import org.yetiz.gae.validator.TokenValidator;

/**
 *
 * @author yeti
 */
public class TokenExpiredException extends ServiceException {

	public TokenExpiredException() {
		super("Token Expired.", TokenValidator.EC_TOKEN_EXPIRED);
	}
}


text:
<!DOCTYPE html>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css">
    <link href="css/print.css" rel="stylesheet" type="text/css" media="print">

  <title>Other APIs - Google Chrome Extensions - Google Code</title>

            <var>paramName</var>

                  (
                    optional

                         Type

                          array of

                        paramType

                  )

            Undocumented.

            Description of this parameter from the json schema.

      Skip to page content
      Skip to main navigation

          <form action="http://www.google.com/cse" id="cse" style="margin-top:0.5em">

              <input type="hidden" name="cx" value="002967670403910741006:61_cvzfqtno">
              <input type="hidden" name="ie" value="UTF-8">
              <input type="text" name="q" value="" size="55">
              <input class="gsc-search-button" type="submit" name="sa" value="Search">

              e.g. "page action" or "tabs"

          </form>

Google Chrome Extensions (Labs)

            Home

            Docs

            FAQ

            Samples

            Group

Getting Started

Overview

Developer's Guide

Browser UI

Browser Actions

Options Pages

Override Pages

Page Actions

Themes

Browser Interaction

Bookmarks

Events

Tabs

Windows

Implementation

Background Pages

Content Scripts

Cross-Origin XHR

Internationalization

Message Passing

NPAPI Plugins

Finishing

Autoupdating

Packaging

Tutorials

Debugging

Reference

Formats

Manifest Files

Match Patterns

chrome.* APIs

Other APIs

Samples

Other APIs

Contents

              h2Name

                  h3Name

                API reference

                    Properties

                        propertyName

                    Methods

                        methodName

                    Events

                        eventName

                    Types

                        id

Other APIs

In addition to the
chrome.* APIs,
extensions can use all the APIs
that the browser provides
to web pages and apps.
If the browser doesn't support an API you want to use,
you can bundle additional API libraries into your extension.

Here's a sampling of the APIs that extensions can use:

 Standard JavaScript APIs

 These are the same core JavaScript and
  Document Object Model
  (DOM) APIs
  that you can use in ordinary web apps.

 XMLHttpRequest

  Use XMLHttpRequest
  to request data from one or more servers.
  The permissions field
  of the manifest specifies
  which hosts the extension can send requests to.

 WebKit APIs

  Because Google Chrome is built upon WebKit,
  your extensions can use WebKit APIs.
  Especially useful are the experimental CSS features
  such as filters, animations, and transformations.
  Here's an example of using WebKit styles
  to make the UI spin:

<style>
  div:hover {
    -webkit-transform: rotate(360deg);
    -webkit-transition: all 1s ease-out;
  }
</style>

 V8 APIs, such as JSON

 Because JSON is in V8, you don't need to include a JSON library to use JSON functions.

 HTML5 APIs, such as localStorage

 HTML5 is still being defined and implemented,
  but Google Chrome already supports local storage,
  which extensions can use to store data.

APIs in bundled libraries

 If you want to use a library that the browser doesn't provide
(for example, jQuery),
you can bundle that library's JavaScript files with your extension.
Bundled libraries work in extensions
just as they would in any other web pages.

API reference: chrome.apiname

Properties

getLastError

                chrome.extensionlastError

Methods

method name

void

                  chrome.module.methodName(,
                      <var></var>)

Undocumented.

                  A description from the json schema def of the function goes here.

Parameters

Returns

Callback function

                    The callback parameter should specify a function
                    that looks like this:

                    If you specify the callback parameter, it should
                    specify a function that looks like this:

function(Type param1, Type param2) {...});

Events

event name

                chrome.bookmarksonEvent.addListener(function(Type param1, Type param2) {...});

Undocumented.

                  A description from the json schema def of the event goes here.

Parameters

Types

type name

  Except as otherwise noted,
  the content of this page is licensed under the Creative Commons
  Attribution 3.0 License, and code samples are licensed under the
  BSD License.

  ©2009 Google


text:
package magicware.scm.redmine.tools;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.regex.MatchResult;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import magicware.scm.redmine.tools.config.Config;
import magicware.scm.redmine.tools.config.ConfigFacade;
import magicware.scm.redmine.tools.config.SyncItem;
import magicware.scm.redmine.tools.model.Issue;
import magicware.scm.redmine.tools.util.ExcelUtils;
import magicware.scm.redmine.tools.util.FileUtils;
import net.arnx.jsonic.JSON;

import org.apache.commons.lang.StringEscapeUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.FormulaEvaluator;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 *
 */
public class IssueSyncApp {

	protected static Logger log = LoggerFactory.getLogger(IssueSyncApp.class);

	private RedmineClient redmineClient = null;

	public IssueSyncApp() {
		super();

		Config config = ConfigFacade.getConfig();

		redmineClient = new RedmineClient(config.getRedmineHost(), config.getRedminePort(), config.getRedmineContext());

		if (!StringUtils.isEmpty(config.getRedmineAuthUser()) && !StringUtils.isEmpty(config.getRedmineAuthPwd())) {
			redmineClient.fillBasicAuth(config.getRedmineAuthUser(), config.getRedmineAuthPwd());
		}

		if(!StringUtils.isEmpty(config.getRedmineApiKey())){
			redmineClient.fillAPIKey(config.getRedmineApiKey());
		}
	}

	public void execute(SyncItem syncItem) throws IOException, InvalidFormatException {

		FileInputStream in = null;

		try {

			// チケット登録JSONテンプレートの読み込む
			String issueTemplate = FileUtils.readFileAsString(syncItem.getJsonTemplate());

			// 書換えフィールドの検索
			Matcher m = Pattern.compile(Constants.ISSUE_FIELD_VALUE_EXP).matcher(issueTemplate);

			List<MatchResult> mrList = new ArrayList<MatchResult>();

			while (m.find()) {
				MatchResult mr = m.toMatchResult();
				mrList.add(mr);
			}

			// 外部チケット管理エクセル台帳を読み込む
			in = new FileInputStream(syncItem.getFilePath());
			Workbook wb = WorkbookFactory.create(in);

			FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();

			Sheet sheet = wb.getSheet(syncItem.getSheetName());
			Row row = null;
			Cell cell = null;

			List<String> issues = new ArrayList<String>();

			// エクセルの後から新規チケットを探し
			if(syncItem.getKeyRowBeginIdx() <= 0 && syncItem.getKeyRowBeginIdx() > (sheet.getLastRowNum() + 1)) {
				log.error("読み込み開始位置が不正のため、処理を止める");
				return;
			}

			//for (int i = sheet.getLastRowNum(); i >= (syncItem.getKeyRowBeginIdx() > 0 ? (syncItem.getKeyRowBeginIdx() - 1) : 0); i--) {
			for (int i = syncItem.getKeyRowBeginIdx() - 1; i <= sheet.getLastRowNum(); i++) {
				// チケット管理番号の抽出
				row = sheet.getRow(i);

				if (row != null) {

					String keyNo = ExcelUtils.getCellContent(row.getCell(syncItem.getKeyColumnIdx() - 1), evaluator);

					// 行番号のない行が見当たると処理とめる
					if (StringUtils.isBlank(keyNo)) {
						break;
					}

					// 未登録の場合、登録を行う
					if (redmineClient.queryIssue(syncItem.getProjectId(), syncItem.getKeyFiledId(), keyNo) == 0) {
						StringBuilder newIssue = new StringBuilder();
						int eolIdx = 0;
						for (MatchResult matchResult : mrList) {

							newIssue.append(issueTemplate.substring(eolIdx, matchResult.start()));

							int cellIndex = Integer.valueOf(matchResult.group(1)) - 1;

							cell = row.getCell(cellIndex);
							String cellvalue = ExcelUtils.getCellContent(cell, evaluator);

							// 登録値の代入
							String valueMapStr = matchResult.group(3);
							Map<String, String> valueMap = null;
							if (valueMapStr != null) {
								valueMap = JSON.decode(valueMapStr);
								if (StringUtils.isNotEmpty(cellvalue) && valueMap.containsKey(cellvalue)) {
									cellvalue = valueMap.get(cellvalue);
								} else {
									cellvalue = valueMap.get("default");
								}
							}

							if (StringUtils.isNotEmpty(cellvalue)) {
								cellvalue = StringEscapeUtils.escapeJavaScript(cellvalue);
								newIssue.append(cellvalue);
							}
							eolIdx = matchResult.end();
						}
						newIssue.append(issueTemplate.substring(eolIdx));
						issues.add(newIssue.toString());
					} else {
						// エクセル逆なめを止める
						// break;
					}
				}
			}

			for (int i = issues.size() - 1; i >= 0; i--) {
				Map<String, Issue> issueMap = JSON.decode(issues.get(i));
				log.debug("create new issue >>>");
				log.debug(JSON.encode(issueMap, true));
				redmineClient.createNewIssue(issues.get(i));
			}

		} finally {
			if (in != null) {
				in.close();
				in = null;
			}
		}
	}

	@Override
	protected void finalize() throws Throwable {
		super.finalize();
		this.redmineClient.shutdown();
	}
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using HaloSharp.Converter;
using Newtonsoft.Json;

namespace HaloSharp.Model.Halo5.Stats.Common
{
    [Serializable]
    public class FlexibleStats : IEquatable<FlexibleStats>
    {
        [JsonProperty(PropertyName = "ImpulseStatCounts")]
        public List<StatCount> ImpulseStatCounts { get; set; }

        [JsonProperty(PropertyName = "ImpulseTimelapses")]
        public List<StatTimelapse> ImpulseTimelapses { get; set; }

        [JsonProperty(PropertyName = "MedalStatCounts")]
        public List<StatCount> MedalStatCounts { get; set; }

        [JsonProperty(PropertyName = "MedalTimelapses")]
        public List<StatTimelapse> MedalTimelapses { get; set; }

        public bool Equals(FlexibleStats other)
        {
            if (ReferenceEquals(null, other))
            {
                return false;
            }

            if (ReferenceEquals(this, other))
            {
                return true;
            }

            return ImpulseStatCounts.OrderBy(isc => isc.Id).SequenceEqual(other.ImpulseStatCounts.OrderBy(isc => isc.Id))
                && ImpulseTimelapses.OrderBy(it => it.Id).SequenceEqual(other.ImpulseTimelapses.OrderBy(it => it.Id))
                && MedalStatCounts.OrderBy(msc => msc.Id).SequenceEqual(other.MedalStatCounts.OrderBy(msc => msc.Id))
                && MedalTimelapses.OrderBy(mt => mt.Id).SequenceEqual(other.MedalTimelapses.OrderBy(mt => mt.Id));
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj))
            {
                return false;
            }

            if (ReferenceEquals(this, obj))
            {
                return true;
            }

            if (obj.GetType() != typeof (FlexibleStats))
            {
                return false;
            }

            return Equals((FlexibleStats) obj);
        }

        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ImpulseStatCounts?.GetHashCode() ?? 0;
                hashCode = (hashCode*397) ^ (ImpulseTimelapses?.GetHashCode() ?? 0);
                hashCode = (hashCode*397) ^ (MedalStatCounts?.GetHashCode() ?? 0);
                hashCode = (hashCode*397) ^ (MedalTimelapses?.GetHashCode() ?? 0);
                return hashCode;
            }
        }

        public static bool operator ==(FlexibleStats left, FlexibleStats right)
        {
            return Equals(left, right);
        }

        public static bool operator !=(FlexibleStats left, FlexibleStats right)
        {
            return !Equals(left, right);
        }
    }

    [Serializable]
    public class StatTimelapse : IEquatable<StatTimelapse>
    {
        [JsonProperty(PropertyName = "Id")]
        public Guid Id { get; set; }

        [JsonProperty(PropertyName = "Timelapse")]
        [JsonConverter(typeof (TimeSpanConverter))]
        public TimeSpan Timelapse { get; set; }

        public bool Equals(StatTimelapse other)
        {
            if (ReferenceEquals(null, other))
            {
                return false;
            }

            if (ReferenceEquals(this, other))
            {
                return true;
            }

            return Id.Equals(other.Id)
                && Timelapse.Equals(other.Timelapse);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj))
            {
                return false;
            }

            if (ReferenceEquals(this, obj))
            {
                return true;
            }

            if (obj.GetType() != typeof (StatTimelapse))
            {
                return false;
            }

            return Equals((StatTimelapse) obj);
        }

        public override int GetHashCode()
        {
            unchecked
            {
                return (Id.GetHashCode()*397) ^ Timelapse.GetHashCode();
            }
        }

        public static bool operator ==(StatTimelapse left, StatTimelapse right)
        {
            return Equals(left, right);
        }

        public static bool operator !=(StatTimelapse left, StatTimelapse right)
        {
            return !Equals(left, right);
        }
    }

    [Serializable]
    public class StatCount : IEquatable<StatCount>
    {
        [JsonProperty(PropertyName = "Count")]
        public int Count { get; set; }

        [JsonProperty(PropertyName = "Id")]
        public Guid Id { get; set; }

        public bool Equals(StatCount other)
        {
            if (ReferenceEquals(null, other))
            {
                return false;
            }

            if (ReferenceEquals(this, other))
            {
                return true;
            }

            return Count == other.Count
                && Id.Equals(other.Id);
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj))
            {
                return false;
            }

            if (ReferenceEquals(this, obj))
            {
                return true;
            }

            if (obj.GetType() != typeof (StatCount))
            {
                return false;
            }

            return Equals((StatCount) obj);
        }

        public override int GetHashCode()
        {
            unchecked
            {
                return (Count*397) ^ Id.GetHashCode();
            }
        }

        public static bool operator ==(StatCount left, StatCount right)
        {
            return Equals(left, right);
        }

        public static bool operator !=(StatCount left, StatCount right)
        {
            return !Equals(left, right);
        }
    }
}


text:
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

        <title>
      Pluralism in
      Project Management: Navigating the Crossroads of Specialization and
      Fragmentation
    </title>

            Pluralism in
      Project Management: Navigating the Crossroads of Specialization and
      Fragmentation

      Authors

      Jonas Söderlund

      Notes

      They discuss the differing subschools of 'Management Science' or
      'Operations Research' in a very clear set of separate conceptual labels.
      Would be very useful for positioning our contribution as 'process design'
      against some relevant school of study in this discipline.

      Field of Study

      Concepts

      Quotations

      References

      Methodology


text:
/* Document Navigation */

.docnav a, .docnav strong {
    text-decoration:none;
    font-weight:normal;
}

.docnav {
    list-style:none;
    margin:0em;
    padding:0em;
    position:relative;
    width:100%;
    padding-bottom:2em;
    padding-top:1em;
    border-top:1px dotted #ccc;
}

.docnav li {
    list-style:none;
    margin:0em;
    padding:0em;
    display:inline;
    font-size:.8em;
}

.docnav li:before {content:" ";}

.docnav li.previous, .docnav li.next {
    position:absolute;
    top:1em;
}

.docnav li.up, .docnav li.home {margin:46px;}

.docnav li.previous {
    left:0px;
    text-align:left;
}

.docnav li.next {
    right:0px;
    text-align:right;
}
.dovnav li a strong{
	color:#333333;
	font-size:13px;
	height:16px;
	margin-bottom:4px;
}
.docnav li.previous strong, .docnav li.next strong {
    display:block;
    height:22px;
}

.docnav {
    margin:0 auto;
    text-align:center;
}

.docnav li.next a strong {
	background:url("../images/community/docbook/next.png") no-repeat scroll right top transparent;
	font-size:1.2em;
	height:22px;
	margin-right:11px;
	padding-right:35px;
}

.docnav li.previous a strong {
	background:url(../images/community/docbook/prev.png) top left no-repeat;
	font-size:1.2em !important;
	margin-left:11px !important;
	padding-left:29px !important;
}

.docnav li.home a strong {
    background:url(../images/community/docbook/home.png) top left no-repeat;
	font-size:1.2em;
	height:16px;
	padding-bottom:15px;
	padding-left:34px;
}

.docnav li.up a strong {
	background:url("../images/community/docbook/up.png") no-repeat scroll left top transparent;
	font-size:1.2em;
	height:16px;
	padding-bottom:15px;
	padding-left:34px;
}

.docnav a:link, .docnav a:visited {color:#666 !important;}

.docnav a:hover, .docnav a:focus, .docnav a:active {color:black !important;}

.docnav a {
    max-width:10em;
    overflow:hidden;
}

.docnav a:link strong {text-decoration:none;}

.docnav {
    margin:0 auto;
    text-align:center;
}

.docnav {
	background:none repeat scroll 0 0 #EEEEEE;
	margin:0;
}

/* Eclipse Help Navigation */

.navheader {padding-top:35px}

.navheader table {border-style:none}

.navheader a {
    text-decoration:none;
    font-weight:normal;
    font-size:.8em;
}

.navheader td.next a {
    background:url(../images/community/docbook/next.png) top right no-repeat;
    padding-top:10px;
    padding-bottom:15px;
    height:40px;
    padding-right:60px;
    font-size:0.9em;
}

.navheader td.previous a {
    background:url(../images/community/docbook/prev.png) top left no-repeat;
    padding-top:10px;
    padding-bottom:15px;
    height:40px;
    padding-left:60px;
    font-size:0.9em;
}

.navheader a:link, .navheader a:visited {color:#666 !important;}

.navheader a:hover, .navheader a:focus, .navheader a:active {color:black !important;}

.navheader a {
    max-width:10em;
    overflow:hidden;
}

.navheader a:link {text-decoration:none;}

.navfooter table {border-style:none}

.navfooter a {
    text-decoration:none;
    font-weight:normal;
    font-size:.8em;
}

.navfooter td.next a {
    background:url(../images/community/docbook/next.png) top right no-repeat;
    padding-top:10px;
    padding-bottom:15px;
    height:40px;
    padding-right:60px;
    font-size:0.9em;
}

.navfooter td.previous a {
    background:url(../images/community/docbook/prev.png) top left no-repeat;
    padding-top:10px;
    padding-bottom:15px;
    height:40px;
    padding-left:60px;
    font-size:0.9em;
}

.navfooter td.home a {
    background:url(../images/community/docbook/home.png) top left no-repeat;
    padding-top:10px;
    padding-bottom:15px;
    height:40px;
    padding-left:60px;
    font-size:0.9em;
}

.navfooter td.up a {
    background:url(../images/community/docbook/up.png) top left no-repeat;
    padding-top:10px;
    padding-bottom:15px;
    height:40px;
    padding-left:60px;
    font-size:0.9em;
}

.navfooter a:link, .navfooter a:visited {color:#666 !important;}

.navfooter a:hover, .navfooter a:focus, .navfooter a:active {color:black !important;}

.navfooter a {
    max-width:10em;
    overflow:hidden;
}

.navfooter a:link {text-decoration:none;}


text:
<?xml version="1.0" encoding="UTF-8"?>
<extension id="lang_russian" status="released" xmlns="http://symphony-cms.com/schemas/extension/1.0">
	<name>Language: Russian</name>
	<description>Russian translation for Symphony</description>
	<repo type="github">https://github.com/alexbirukov/lang_russian</repo>
	<url type="discuss">http://getsymphony.com/discuss/thread/88994/</url>
	<types>
		<type>Translations</type>
	</types>
	<authors>
		<author>
			<name github="alexbirukov" symphony="alexbirukov">Александр Бирюков</name>
			<website>http://alexbirukov.ru/</website>
		</author>
	</authors>
	<releases>
		<release version="0.4" date="2013-10-20" min="2.3.4" >
			- Update russian language file for Symphony 2.3.4.
		</release>
		<release version="0.3" date="2013-10-02" min="2.3.3" >
			- Update russian language file for Symphony 2.3.3.
		</release>
		<release version="0.2" date="2012-12-10" min="2.3.1" >
			- Обновление перевода для версии 2.3.1.
		</release>
		<release version="0.2" date="2012-11-16" min="2.3" max="2.3" >
			- Исправлены ошибки перевода и недочёты.
			- Изменено название и ID плагина перевода, для корректной работы плагина обновления расширений. Теперь при выпуске нвых версий перевода, вы можете обновлять перевода автоматически.
		</release>
		<release version="0.1" date="2012-06-05" min="2.3" />
	</releases>
</extension>


text:
require_relative '../../../../automated_init'

context "Write" do
  context "Substitute" do
    context "Message" do
      context "Reply" do
        context "Raise Expected Version Error" do
          message = Controls::Message.example

          writer = Write::Substitute.build

          writer.raise_expected_version_error!

          test "Expected version is no_stream" do
            assert_raises(MessageStore::ExpectedVersion::Error) do
              writer.reply(message)
            end
          end
        end
      end
    end
  end
end


text:
#include "config.h"

#include "core/layout/LayoutFlowThread.h"

#include "core/layout/LayoutMultiColumnSet.h"
#include "core/layout/LayoutView.h"

namespace blink {

LayoutFlowThread::LayoutFlowThread()
    : LayoutBlockFlow(0)
    , m_regionsInvalidated(false)
    , m_regionsHaveUniformLogicalHeight(true)
    , m_pageLogicalSizeChanged(false)
{
    setFlowThreadState(InsideOutOfFlowThread);
}

void LayoutFlowThread::removeRegionFromThread(LayoutMultiColumnSet* columnSet)
{
    ASSERT(columnSet);
    m_multiColumnSetList.remove(columnSet);
}

void LayoutFlowThread::invalidateRegions()
{
    if (m_regionsInvalidated) {
        ASSERT(selfNeedsLayout());
        return;
    }

    setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason::ColumnsChanged);

    m_regionsInvalidated = true;
}

void LayoutFlowThread::validateRegions()
{
    if (m_regionsInvalidated) {
        m_regionsInvalidated = false;
        m_regionsHaveUniformLogicalHeight = true;

        if (hasRegions()) {
            LayoutUnit previousRegionLogicalHeight = 0;
            bool firstRegionVisited = false;

            for (auto* columnSet : m_multiColumnSetList) {
                LayoutUnit regionLogicalHeight = columnSet->pageLogicalHeight();

                if (!firstRegionVisited) {
                    firstRegionVisited = true;
                } else {
                    if (m_regionsHaveUniformLogicalHeight && previousRegionLogicalHeight != regionLogicalHeight)
                        m_regionsHaveUniformLogicalHeight = false;
                }

                previousRegionLogicalHeight = regionLogicalHeight;
            }
        }
    }

    updateLogicalWidth(); // Called to get the maximum logical width for the columnSet.
    generateColumnSetIntervalTree();
}

void LayoutFlowThread::mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* paintInvalidationState) const
{
    ASSERT(paintInvalidationContainer != this); // A flow thread should never be an invalidation container.
    // |rect| is a layout rectangle, where the block direction coordinate is flipped for writing
    // mode. fragmentsBoundingBox(), on the other hand, works on physical rectangles, so we need to
    // flip the rectangle before and after calling it.
    flipForWritingMode(rect);
    rect = fragmentsBoundingBox(rect);
    flipForWritingMode(rect);
    LayoutBlockFlow::mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState);
}

void LayoutFlowThread::layout()
{
    m_pageLogicalSizeChanged = m_regionsInvalidated && everHadLayout();
    LayoutBlockFlow::layout();
    m_pageLogicalSizeChanged = false;
}

void LayoutFlowThread::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const
{
    computedValues.m_position = logicalTop;
    computedValues.m_extent = 0;

    for (LayoutMultiColumnSetList::const_iterator iter = m_multiColumnSetList.begin(); iter != m_multiColumnSetList.end(); ++iter) {
        LayoutMultiColumnSet* columnSet = *iter;
        computedValues.m_extent += columnSet->logicalHeightInFlowThread();
    }
}

bool LayoutFlowThread::nodeAtPoint(HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction)
{
    if (hitTestAction == HitTestBlockBackground)
        return false;
    return LayoutBlockFlow::nodeAtPoint(result, locationInContainer, accumulatedOffset, hitTestAction);
}

LayoutUnit LayoutFlowThread::pageLogicalHeightForOffset(LayoutUnit offset)
{
    LayoutMultiColumnSet* columnSet = columnSetAtBlockOffset(offset);
    if (!columnSet)
        return 0;

    return columnSet->pageLogicalHeight();
}

LayoutUnit LayoutFlowThread::pageRemainingLogicalHeightForOffset(LayoutUnit offset, PageBoundaryRule pageBoundaryRule)
{
    LayoutMultiColumnSet* columnSet = columnSetAtBlockOffset(offset);
    if (!columnSet)
        return 0;

    LayoutUnit pageLogicalTop = columnSet->pageLogicalTopForOffset(offset);
    LayoutUnit pageLogicalHeight = columnSet->pageLogicalHeight();
    LayoutUnit pageLogicalBottom = pageLogicalTop + pageLogicalHeight;
    LayoutUnit remainingHeight = pageLogicalBottom - offset;
    if (pageBoundaryRule == IncludePageBoundary) {
        // If IncludePageBoundary is set, the line exactly on the top edge of a
        // columnSet will act as being part of the previous columnSet.
        remainingHeight = intMod(remainingHeight, pageLogicalHeight);
    }
    return remainingHeight;
}

LayoutRegion* LayoutFlowThread::firstRegion() const
{
    if (!hasValidRegionInfo())
        return 0;
    return m_multiColumnSetList.first();
}

LayoutRegion* LayoutFlowThread::lastRegion() const
{
    if (!hasValidRegionInfo())
        return 0;
    return m_multiColumnSetList.last();
}

void LayoutFlowThread::generateColumnSetIntervalTree()
{
    // FIXME: Optimize not to clear the interval all the time. This implies manually managing the tree nodes lifecycle.
    m_multiColumnSetIntervalTree.clear();
    m_multiColumnSetIntervalTree.initIfNeeded();
    for (auto columnSet : m_multiColumnSetList)
        m_multiColumnSetIntervalTree.add(MultiColumnSetIntervalTree::createInterval(columnSet->logicalTopInFlowThread(), columnSet->logicalBottomInFlowThread(), columnSet));
}

void LayoutFlowThread::collectLayerFragments(DeprecatedPaintLayerFragments& layerFragments, const LayoutRect& layerBoundingBox, const LayoutRect& dirtyRect)
{
    ASSERT(!m_regionsInvalidated);

    for (LayoutMultiColumnSetList::const_iterator iter = m_multiColumnSetList.begin(); iter != m_multiColumnSetList.end(); ++iter) {
        LayoutMultiColumnSet* columnSet = *iter;
        columnSet->collectLayerFragments(layerFragments, layerBoundingBox, dirtyRect);
    }
}

LayoutRect LayoutFlowThread::fragmentsBoundingBox(const LayoutRect& layerBoundingBox) const
{
    ASSERT(!m_regionsInvalidated);

    LayoutRect result;
    for (auto* columnSet : m_multiColumnSetList) {
        DeprecatedPaintLayerFragments fragments;
        columnSet->collectLayerFragments(fragments, layerBoundingBox, LayoutRect(LayoutRect::infiniteIntRect()));
        for (const auto& fragment : fragments) {
            LayoutRect fragmentRect(layerBoundingBox);
            fragmentRect.intersect(fragment.paginationClip);
            fragmentRect.moveBy(fragment.paginationOffset);
            result.unite(fragmentRect);
        }
    }

    return result;
}

void LayoutFlowThread::MultiColumnSetSearchAdapter::collectIfNeeded(const MultiColumnSetInterval& interval)
{
    if (m_result)
        return;
    if (interval.low() <= m_offset && interval.high() > m_offset)
        m_result = interval.data();
}

} // namespace blink


text:
package com.networknt.light.rule.forum;

import com.networknt.light.rule.AbstractBfnRule;
import com.networknt.light.rule.Rule;

/**
 * Created by hus5 on 3/6/2015.
 */
public class UpForumEvRule extends AbstractBfnRule implements Rule {
    public boolean execute (Object ...objects) throws Exception {
        return upBranchEv("forum", objects);
    }
}


text:
layout: post
status: publish
published: true
title: La France invaincue avant le 2nd tour
author: mick
author_login: mick
author_email: mickael@flochlay.com
wordpress_id: 668
wordpress_url: http://morningcoffee.mickaelflochlay.com/?p=668
date: 2011-09-06 10:23:58.000000000 +02:00
categories:
- Sport
tags:
- Euro 2011
- Tony Parker
- Boris Diaw
- Joakim Noah
- Nicolas Batum
- !binary |-
  TWlja2HDq2wgR2VsYWJhbGU=
- basket
comments: []
---

Que voulez-vous que je vous dise ? On a assisté lundi soir à l'un des plus beaux matchs de l'Equipe de France, et pour une fois, elle a gagné !

Encore un superbe match de l'Équipe de France. Un match serré, au couteau, finalement remporté sur un shoot bizarrement manqué alors que les Serbes avaient auparavant été d'une adresse diabolique.

Le banc n'est pas toujours au top mais ce 5 Parker/Batum (qui ressemblait un peu à Buck de L'Âge de Glace 3 avec son bandeau en fin de match)/Gelabale/Diaw/Noah est magnifique !

via Garder la flamme sans s'enflammer - Yahoo! Sport FR.


text:
package skus

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"fmt"
	"io"

	"github.com/go-openapi/runtime"

	strfmt "github.com/go-openapi/strfmt"

	"github.com/spiegela/gorackhd/models"
)

// SkusPatchReader is a Reader for the SkusPatch structure.
type SkusPatchReader struct {
	formats strfmt.Registry
}

// ReadResponse reads a server response into the received o.
func (o *SkusPatchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {

	case 200:
		result := NewSkusPatchOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil

	case 404:
		result := NewSkusPatchNotFound()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	case 500:
		result := NewSkusPatchInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result

	default:
		result := NewSkusPatchDefault(response.Code())
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		if response.Code()/100 == 2 {
			return result, nil
		}
		return nil, result
	}
}

// NewSkusPatchOK creates a SkusPatchOK with default headers values
func NewSkusPatchOK() *SkusPatchOK {
	return &SkusPatchOK{}
}

/*SkusPatchOK handles this case with default header values.

Successfully modified the specified SKU
*/
type SkusPatchOK struct {
	Payload SkusPatchOKBody
}

func (o *SkusPatchOK) Error() string {
	return fmt.Sprintf("[PATCH /skus/{identifier}][%d] skusPatchOK  %+v", 200, o.Payload)
}

func (o *SkusPatchOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	// response payload
	if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewSkusPatchNotFound creates a SkusPatchNotFound with default headers values
func NewSkusPatchNotFound() *SkusPatchNotFound {
	return &SkusPatchNotFound{}
}

/*SkusPatchNotFound handles this case with default header values.

The SKU with the specified identifier was not found
*/
type SkusPatchNotFound struct {
	Payload *models.Error
}

func (o *SkusPatchNotFound) Error() string {
	return fmt.Sprintf("[PATCH /skus/{identifier}][%d] skusPatchNotFound  %+v", 404, o.Payload)
}

func (o *SkusPatchNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewSkusPatchInternalServerError creates a SkusPatchInternalServerError with default headers values
func NewSkusPatchInternalServerError() *SkusPatchInternalServerError {
	return &SkusPatchInternalServerError{}
}

/*SkusPatchInternalServerError handles this case with default header values.

SKU patch failed
*/
type SkusPatchInternalServerError struct {
	Payload *models.Error
}

func (o *SkusPatchInternalServerError) Error() string {
	return fmt.Sprintf("[PATCH /skus/{identifier}][%d] skusPatchInternalServerError  %+v", 500, o.Payload)
}

func (o *SkusPatchInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

// NewSkusPatchDefault creates a SkusPatchDefault with default headers values
func NewSkusPatchDefault(code int) *SkusPatchDefault {
	return &SkusPatchDefault{
		_statusCode: code,
	}
}

/*SkusPatchDefault handles this case with default header values.

Unexpected error
*/
type SkusPatchDefault struct {
	_statusCode int

	Payload *models.Error
}

// Code gets the status code for the skus patch default response
func (o *SkusPatchDefault) Code() int {
	return o._statusCode
}

func (o *SkusPatchDefault) Error() string {
	return fmt.Sprintf("[PATCH /skus/{identifier}][%d] skusPatch default  %+v", o._statusCode, o.Payload)
}

func (o *SkusPatchDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {

	o.Payload = new(models.Error)

	// response payload
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}

	return nil
}

/*SkusPatchOKBody skus patch o k body
swagger:model SkusPatchOKBody
*/
type SkusPatchOKBody interface{}


text:
FOUNDATION_EXPORT double threeLibTestDemo2VersionNumber;

//! Project version string for threeLibTestDemo2.
FOUNDATION_EXPORT const unsigned char threeLibTestDemo2VersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <threeLibTestDemo2/PublicHeader.h>


text:
// ----------------------------------------------------------------------------------
// Copyright Microsoft Corporation
// 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.
// ----------------------------------------------------------------------------------

using System;
using System.Management.Automation;
using Microsoft.WindowsAzure.Commands.Common;
using Microsoft.WindowsAzure.Commands.Common.Models;
using Microsoft.WindowsAzure.Commands.Common.Storage;
using Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Common;
using Microsoft.WindowsAzure.Commands.SqlDatabase.Services.ImportExport;
using Microsoft.WindowsAzure.Commands.SqlDatabase.Services.Server;
using Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel;
using Microsoft.WindowsAzure.Management.Sql;
using Microsoft.WindowsAzure.Management.Sql.Models;

namespace Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdlet
{
    /// <summary>
    /// Exports a database from SQL Azure into blob storage.
    /// </summary>
    [Cmdlet("Start", "AzureSqlDatabaseExport", ConfirmImpact = ConfirmImpact.Medium)]
    public class StartAzureSqlDatabaseExport : SqlDatabaseCmdletBase
    {
        #region Parameter Set names

        /// <summary>
        /// The name of the parameter set that uses the Azure Storage Container object
        /// </summary>
        internal const string ByContainerObjectParameterSet =
            "ByContainerObject";

        /// <summary>
        /// The name of the parameter set that uses the storage container name
        /// </summary>
        internal const string ByContainerNameParameterSet =
            "ByContainerName";

        #endregion

        #region Parameters

        /// <summary>
        /// Gets or sets the context for connecting to the server
        /// </summary>
        [Parameter(Mandatory = true, Position = 0,
            HelpMessage = "The context for connecting to the server")]
        [ValidateNotNullOrEmpty]
        public ServerDataServiceSqlAuth SqlConnectionContext { get; set; }

        /// <summary>
        /// Gets or sets the destination storage container for the blob
        /// </summary>
        [Parameter(Mandatory = true, Position = 1,
            ParameterSetName = ByContainerObjectParameterSet,
            HelpMessage = "The Azure Storage Container to place the blob in.")]
        [ValidateNotNull]
        public AzureStorageContainer StorageContainer { get; set; }

        /// <summary>
        /// Gets or sets the storage context
        /// </summary>
        [Parameter(Mandatory = true, Position = 1,
            ParameterSetName = ByContainerNameParameterSet,
            HelpMessage = "The storage connection context")]
        [ValidateNotNull]
        public AzureStorageContext StorageContext { get; set; }

        /// <summary>
        /// Gets or sets the name of the storage container to use.
        /// </summary>
        [Parameter(Mandatory = true, Position = 2,
            ParameterSetName = ByContainerNameParameterSet,
            HelpMessage = "The name of the storage container to use")]
        [ValidateNotNullOrEmpty]
        public string StorageContainerName { get; set; }

        /// <summary>
        /// Gets or sets the name of the database to export
        /// </summary>
        [Parameter(Mandatory = true, Position = 2,
            ParameterSetName = ByContainerObjectParameterSet,
            HelpMessage = "The name of the database to export")]
        [Parameter(Mandatory = true, Position = 3,
            ParameterSetName = ByContainerNameParameterSet,
            HelpMessage = "The name of the database to export")]
        [ValidateNotNullOrEmpty]
        public string DatabaseName { get; set; }

        /// <summary>
        /// Gets or sets name of the blob to use for the export
        /// </summary>
        [Parameter(Mandatory = true, Position = 3,
            ParameterSetName = ByContainerObjectParameterSet,
            HelpMessage = "The name of the blob to use for the export")]
        [Parameter(Mandatory = true, Position = 4,
            ParameterSetName = ByContainerNameParameterSet,
            HelpMessage = "The name of the blob to use for the export")]
        [ValidateNotNullOrEmpty]
        public string BlobName { get; set; }

        #endregion

        /// <summary>
        /// Performs the call to export database using the server data service context channel.
        /// </summary>
        /// <param name="serverName">The name of the server to connect to.</param>
        /// <param name="blobUri">The storage blob Uri to export to.</param>
        /// <param name="storageAccessKey">The access key for the given storage blob.</param>
        /// <param name="fullyQualifiedServerName">The fully qualified server name.</param>
        /// <param name="databaseName">The name of the database to export.</param>
        /// <param name="sqlCredentials">The credentials used to connect to the database.</param>
        /// <returns>
        /// The result of export request.  Upon success the <see cref="ImportExportRequest"/>
        /// for the request.
        /// </returns>
        internal ImportExportRequest ExportSqlAzureDatabaseProcess(
            string serverName,
            Uri blobUri,
            string storageAccessKey,
            string fullyQualifiedServerName,
            string databaseName,
            SqlAuthenticationCredentials sqlCredentials)
        {
            this.WriteVerbose("BlobUri: " + blobUri);
            this.WriteVerbose("ServerName: " + fullyQualifiedServerName);
            this.WriteVerbose("DatabaseName: " + databaseName);
            this.WriteVerbose("UserName: " + sqlCredentials.UserName);

            // Get the SQL management client for the current subscription
            SqlManagementClient sqlManagementClient = GetCurrentSqlClient();

            // Start the database export operation
            DacImportExportResponse response = sqlManagementClient.Dac.Export(
                serverName,
                new DacExportParameters()
                {
                    BlobCredentials = new DacExportParameters.BlobCredentialsParameter()
                    {
                        Uri = blobUri,
                        StorageAccessKey = storageAccessKey,
                    },
                    ConnectionInfo = new DacExportParameters.ConnectionInfoParameter()
                    {
                        ServerName = fullyQualifiedServerName,
                        DatabaseName = databaseName,
                        UserName = sqlCredentials.UserName,
                        Password = sqlCredentials.Password,
                    }
                });

            ImportExportRequest result = new ImportExportRequest()
            {
                OperationStatus = Services.Constants.OperationSuccess,
                OperationDescription = CommandRuntime.ToString(),
                OperationId = response.RequestId,
                RequestGuid = response.Guid,
                ServerName = serverName,
                SqlCredentials = sqlCredentials,
            };

            return result;
        }

        /// <summary>
        /// Process the export request
        /// </summary>
        public override void ExecuteCmdlet()
        {
            try
            {
                // Obtain the Blob Uri and Access Key
                string blobUri = null;
                string accessKey = null;
                switch (this.ParameterSetName)
                {
                    case ByContainerNameParameterSet:
                        accessKey = Convert.ToBase64String(
                            this.StorageContext.StorageAccount.Credentials.ExportKey());

                        blobUri =
                            this.StorageContext.BlobEndPoint +
                            this.StorageContainerName + "/" +
                            this.BlobName;
                        break;

                    case ByContainerObjectParameterSet:
                        accessKey = Convert.ToBase64String(
                            this.StorageContainer.CloudBlobContainer.ServiceClient.Credentials.ExportKey());

                        blobUri =
                            this.StorageContainer.Context.BlobEndPoint +
                            this.StorageContainer.Name + "/" +
                            this.BlobName;
                        break;

                    default:
                        throw new NotSupportedException("ParameterSet");
                }

                // Retrieve the fully qualified server name
                string fullyQualifiedServerName =
                    this.SqlConnectionContext.ServerName + AzureSession.CurrentContext.Environment.GetEndpoint(AzureEnvironment.Endpoint.SqlDatabaseDnsSuffix);

                // Issue the request
                ImportExportRequest context = this.ExportSqlAzureDatabaseProcess(
                    this.SqlConnectionContext.ServerName,
                    new Uri(blobUri),
                    accessKey,
                    fullyQualifiedServerName,
                    this.DatabaseName,
                    this.SqlConnectionContext.SqlCredentials);

                this.WriteObject(context);
            }
            catch (Exception ex)
            {
                this.WriteErrorDetails(ex);
            }
        }
    }
}


text:
package io.lettuce.core.sentinel;

import java.time.Duration;
import java.util.Collection;

import io.lettuce.core.ConnectionState;
import io.lettuce.core.RedisChannelHandler;
import io.lettuce.core.RedisChannelWriter;
import io.lettuce.core.codec.RedisCodec;
import io.lettuce.core.codec.StringCodec;
import io.lettuce.core.output.StatusOutput;
import io.lettuce.core.protocol.*;
import io.lettuce.core.sentinel.api.StatefulRedisSentinelConnection;
import io.lettuce.core.sentinel.api.async.RedisSentinelAsyncCommands;
import io.lettuce.core.sentinel.api.reactive.RedisSentinelReactiveCommands;
import io.lettuce.core.sentinel.api.sync.RedisSentinelCommands;

/**
 * @author Mark Paluch
 */
public class StatefulRedisSentinelConnectionImpl<K, V> extends RedisChannelHandler<K, V>
        implements StatefulRedisSentinelConnection<K, V> {

    protected final RedisCodec<K, V> codec;

    protected final RedisSentinelCommands<K, V> sync;

    protected final RedisSentinelAsyncCommands<K, V> async;

    protected final RedisSentinelReactiveCommands<K, V> reactive;

    private final SentinelConnectionState connectionState = new SentinelConnectionState();

    public StatefulRedisSentinelConnectionImpl(RedisChannelWriter writer, RedisCodec<K, V> codec, Duration timeout) {

        super(writer, timeout);

        this.codec = codec;
        this.async = new RedisSentinelAsyncCommandsImpl<>(this, codec);
        this.sync = syncHandler(async, RedisSentinelCommands.class);
        this.reactive = new RedisSentinelReactiveCommandsImpl<>(this, codec);
    }

    @Override
    public <T> RedisCommand<K, V, T> dispatch(RedisCommand<K, V, T> command) {
        return super.dispatch(command);
    }

    @Override
    public Collection<RedisCommand<K, V, ?>> dispatch(Collection<? extends RedisCommand<K, V, ?>> commands) {
        return super.dispatch(commands);
    }

    @Override
    public RedisSentinelCommands<K, V> sync() {
        return sync;
    }

    @Override
    public RedisSentinelAsyncCommands<K, V> async() {
        return async;
    }

    @Override
    public RedisSentinelReactiveCommands<K, V> reactive() {
        return reactive;
    }

    /**
     * @param clientName
     * @deprecated since 6.0, use {@link RedisSentinelAsyncCommands#clientSetname(Object)}.
     */
    @Deprecated
    public void setClientName(String clientName) {

        CommandArgs<String, String> args = new CommandArgs<>(StringCodec.UTF8).add(CommandKeyword.SETNAME).addValue(clientName);
        AsyncCommand<String, String, String> async = new AsyncCommand<>(
                new Command<>(CommandType.CLIENT, new StatusOutput<>(StringCodec.UTF8), args));
        connectionState.setClientName(clientName);

        dispatch((RedisCommand) async);
    }

    public ConnectionState getConnectionState() {
        return connectionState;
    }

    static class SentinelConnectionState extends ConnectionState {

        @Override
        protected void setClientName(String clientName) {
            super.setClientName(clientName);
        }

    }

}


text:
This library provides userspace debugging tools.

Programs are harder to debug if they are transpiled with
EffectfulJS. We can use source maps to see original sources in
debuggers but it won't work on stepping, breakpoints and watching
variables values. However, there are new diagnostics utilities are
possible or we can debug not-transpiled code, it is possible since it
is plain valid JavaScript.

Even if programs don't use EffectfulJS they can get time-traveling and
hot-reloading with restoring closure captured variables, restoring
program's state from some savepoints and other diagnostics tools.

## LICENSE

Distributed under the terms of The MIT License (MIT).


text:
package com.ajah.swagger.api;

import java.util.Date;

import com.ajah.rest.api.model.relay.IdentifiableEnumRelay;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * Simplified version of a SwaggerParameter for easier
 * serialization/deserialization.
 *
 * @author Eric F. Savage, code@efsavage.com.
 */
@JsonInclude(Include.NON_NULL)
public class SwaggerParameterRelay {

	public String id;
	public String name;
	public IdentifiableEnumRelay<String> status;
	public IdentifiableEnumRelay<String> type;
	public Date created;
	public String swaggerOperationId;
	public SwaggerDefinitionRelay swaggerDefinition;
	public String in;
	public boolean required;

}


text:
class Notmuch < Formula
  desc "Thread-based email index, search, and tagging"
  homepage "https://notmuchmail.org/"
  url "https://notmuchmail.org/releases/notmuch-0.32.2.tar.xz"
  sha256 "8e0a7eb8ff2e6011ef48b2bf11d79b9c4bb74511cfe2987758b64898c2a2ded7"
  license "GPL-3.0-or-later"
  head "https://git.notmuchmail.org/git/notmuch", using: :git

  livecheck do
    url "https://notmuchmail.org/releases/"
    regex(/href=.*?notmuch[._-]v?(\d+(?:\.\d+)+)\.t/i)
  end

  bottle do
    sha256 cellar: :any,                 arm64_big_sur: "25e42a13769182c88367bd2940d6522210e5a82eee4f02a5173851de6ce918d5"
    sha256 cellar: :any,                 big_sur:       "287a0e2f7e7dd492135626de4fbea9324893bd647bf2d8fc50e691da2be437eb"
    sha256 cellar: :any,                 catalina:      "8001f0c34b748c8ee7dbd92d73b093f3aa31fc0b25160bb1e4315c65f236ecb8"
    sha256 cellar: :any,                 mojave:        "6d3dd1031db525fb1623e61a12ca49bb948449b1fe4ba08b9461fa73f32ad594"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "69f9ce4c600e71a9c83d9074941452887ba4404a2f31a3f8fff3657247b890ae"
  end

  depends_on "doxygen" => :build
  depends_on "emacs" => :build
  depends_on "libgpg-error" => :build
  depends_on "pkg-config" => :build
  depends_on "sphinx-doc" => :build
  depends_on "glib"
  depends_on "gmime"
  depends_on "python@3.9"
  depends_on "talloc"
  depends_on "xapian"

  uses_from_macos "zlib", since: :sierra

  def install
    args = %W[
      --prefix=#{prefix}
      --mandir=#{man}
      --emacslispdir=#{elisp}
      --emacsetcdir=#{elisp}
      --bashcompletiondir=#{bash_completion}
      --zshcompletiondir=#{zsh_completion}
      --without-ruby
    ]

    ENV.append_path "PYTHONPATH", Formula["sphinx-doc"].opt_libexec/"lib/python3.9/site-packages"

    system "./configure", *args
    system "make", "V=1", "install"

    elisp.install Dir["emacs/*.el"]
    bash_completion.install "completion/notmuch-completion.bash"

    (prefix/"vim/plugin").install "vim/notmuch.vim"
    (prefix/"vim/doc").install "vim/notmuch.txt"
    (prefix/"vim").install "vim/syntax"

    cd "bindings/python" do
      system Formula["python@3.9"].opt_bin/"python3", *Language::Python.setup_install_args(prefix)
    end

    # If installed in non-standard prefixes, such as is the default with
    # Homebrew on Apple Silicon machines, other formulae can fail to locate
    # libnotmuch.dylib due to not checking locations like /opt/homebrew for
    # libraries. This is a bug in notmuch rather than Homebrew; globals.py
    # uses a vanilla CDLL instead of CDLL wrapped with `find_library`
    # which effectively causes the issue.
    #
    # CDLL("libnotmuch.dylib") = OSError: dlopen(libnotmuch.dylib, 6): image not found
    # find_library("libnotmuch") = '/opt/homebrew/lib/libnotmuch.dylib'
    # http://notmuch.198994.n3.nabble.com/macOS-globals-py-issue-td4044216.html
    inreplace lib/"python3.9/site-packages/notmuch/globals.py",
               "libnotmuch.{0:s}.dylib",
               opt_lib/"libnotmuch.{0:s}.dylib"
  end

  test do
    (testpath/".notmuch-config").write "[database]\npath=#{testpath}/Mail"
    (testpath/"Mail").mkpath
    assert_match "0 total", shell_output("#{bin}/notmuch new")
  end
end


text:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css"
          href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.10/semantic.min.css"/>

    <link rel="stylesheet" type="text/css" href="https://semantic-ui.com/stylesheets/docs.css">
    <link rel="stylesheet" type="text/css" href="/src/css/style.css">

                            Start

                            Feed

1

                            Store

                                        Start

                                                <input class="prompt" type="text" placeholder="Search...">

                                                    Profil

                                                    Einstellungen

                                                    Logout

File

New

                                            ctrl + o
                                            Open...

                                            ctrl + s
                                            Save as...

                                            ctrl + r
                                            Rename

Make a copy

                                            Move to folder

                                            Move to trash

Download As...

                                            Publish To Web

Google Docs

Google Drive

Dropbox

Adobe Creative Cloud

Private FTP

Another Service...

E-mail Collaborators

File

New

                                                ctrl + o
                                                Open...

                                                ctrl + s
                                                Save as...

                                                ctrl + r
                                                Rename

Make a copy

                                                Move to folder

                                                Move to trash

Download As...

                                                Publish To Web

Google Docs

Google Drive

Dropbox

Adobe Creative Cloud

Private FTP

Another Service...

E-mail Collaborators

                            <button class="new-set-btn ui primary button">
                                Neues Set erstellen
                            </button>

                                <form class="ui form">

Popup

                                        Häufigkeit

                                            <input type="text" placeholder="Häufigkeit">

                                        Menge

                                            <input type="text" placeholder="Menge">

Synchronisation

                                        Häufigkeit

                                            <input type="text" placeholder="Häufigkeit">

                                            <button class="ui button right fluid floated " type="submit">speichern
                                            </button>

                                </form>


text:
module RuboCop
  module Cop
    # Help methods for working with nodes containing comments.
    module CommentsHelp
      include VisibilityHelp

      def source_range_with_comment(node)
        begin_pos = begin_pos_with_comment(node)
        end_pos = end_position_for(node)
        end_pos += 1 if node.def_type?

        Parser::Source::Range.new(buffer, begin_pos, end_pos)
      end

      private

      def end_position_for(node)
        end_line = buffer.line_for_position(node.loc.expression.end_pos)
        buffer.line_range(end_line).end_pos
      end

      def begin_pos_with_comment(node)
        annotation_line = node.first_line - 1
        first_comment = nil

        processed_source.comments_before_line(annotation_line)
                        .reverse_each do |comment|
          if comment.location.line == annotation_line
            first_comment = comment
            annotation_line -= 1
          end
        end

        start_line_position(first_comment || node)
      end

      def start_line_position(node)
        buffer.line_range(node.loc.line).begin_pos - 1
      end

      def buffer
        processed_source.buffer
      end
    end
  end
end


text:
package com.tle.web.sections.js.generic.expression;

import com.tle.annotation.NonNullByDefault;
import com.tle.web.sections.SectionUtils;
import com.tle.web.sections.events.PreRenderContext;
import com.tle.web.sections.events.RenderContext;
import com.tle.web.sections.events.js.BookmarkAndModify;
import com.tle.web.sections.js.JSBookmarkModifier;
import com.tle.web.sections.js.JSExpression;
import com.tle.web.sections.js.JSUtils;
import java.util.Map;

@NonNullByDefault
public class ClientSideBookmarkExpression extends AbstractExpression {
  private final Map<String, JSExpression> exprs;
  private final JSBookmarkModifier modifier;

  public ClientSideBookmarkExpression(JSBookmarkModifier modifier) {
    this.modifier = modifier;
    exprs = modifier.getClientExpressions();
  }

  @Override
  public String getExpression(RenderContext info) {
    StringBuilder sbuf = new StringBuilder();
    String href = new BookmarkAndModify(info, modifier).getHref();
    appendString(sbuf, href, false);
    for (String key : exprs.keySet()) {
      sbuf.append('+');
      appendString(sbuf, key, true);
      sbuf.append("+escape("); // $NON-NLS-1$
      JSExpression expr = exprs.get(key);
      sbuf.append(expr.getExpression(info));
      sbuf.append(")"); // $NON-NLS-1$
    }
    return sbuf.toString();
  }

  private void appendString(StringBuilder sbuf, String str, boolean param) {
    sbuf.append('\'');
    if (param) {
      sbuf.append('&');
    }
    sbuf.append(JSUtils.escape(str, false));
    if (param) {
      sbuf.append('=');
    }
    sbuf.append('\'');
  }

  @Override
  public void preRender(PreRenderContext info) {
    SectionUtils.preRender(info, exprs.values());
  }
}


text:
package pl.wurmonline.deedplanner.data.bridges;

import java.util.HashMap;
import pl.wurmonline.deedplanner.data.Materials;

public class RenderedBridgeData extends GenericStoneBridgeData {

    public RenderedBridgeData() {
        super("Data/Bridges/Stone/bridgeRendered.dds", "Data/Bridges/Stone/bridgeRenderedTiling.dds");
    }

    protected void prepareMaterialsMap(HashMap<BridgePartType, Materials> materials, HashMap<BridgePartSide, Materials> additionalMaterials) {
        Materials crownMaterials = new Materials();
        crownMaterials.put("Stone bricks", 12);
        crownMaterials.put("Mortar", 10);
        crownMaterials.put("Rock shards", 4);
        crownMaterials.put("Stone keystones", 1);
        crownMaterials.put("Clay", 2);
        materials.put(BridgePartType.CROWN, crownMaterials);

        Materials abutmentMaterials = new Materials();
        abutmentMaterials.put("Stone bricks", 42);
        abutmentMaterials.put("Mortar", 40);
        abutmentMaterials.put("Rock shards", 16);
        abutmentMaterials.put("Clay", 5);
        materials.put(BridgePartType.ABUTMENT, abutmentMaterials);

        Materials doubleAbutmentMaterials = new Materials();
        doubleAbutmentMaterials.put("Stone bricks", 62);
        doubleAbutmentMaterials.put("Mortar", 60);
        doubleAbutmentMaterials.put("Rock shards", 24);
        doubleAbutmentMaterials.put("Clay", 7);
        materials.put(BridgePartType.DOUBLE_ABUTMENT, doubleAbutmentMaterials);

        Materials bracingMaterials = new Materials();
        bracingMaterials.put("Stone bricks", 27);
        bracingMaterials.put("Mortar", 25);
        bracingMaterials.put("Rock shards", 8);
        bracingMaterials.put("Clay", 3);
        materials.put(BridgePartType.BRACING, bracingMaterials);

        Materials doubleBracingMaterials = new Materials();
        doubleBracingMaterials.put("Stone bricks", 32);
        doubleBracingMaterials.put("Mortar", 30);
        doubleBracingMaterials.put("Rock shards", 12);
        doubleBracingMaterials.put("Clay", 4);
        materials.put(BridgePartType.DOUBLE_BRACING, doubleBracingMaterials);

        Materials supportMaterials = new Materials();
        supportMaterials.put("Stone bricks", 92);
        supportMaterials.put("Mortar", 90);
        supportMaterials.put("Rock shards", 36);
        supportMaterials.put("Clay", 10);
        materials.put(BridgePartType.SUPPORT, supportMaterials);

        Materials extensionMaterials = new Materials();
        extensionMaterials.put("Stone bricks", 30);
        extensionMaterials.put("Mortar", 30);
        extensionMaterials.put("Rock shards", 12);
        extensionMaterials.put("Clay", 4); // TODO: verify if amount of clay for the extension is correct
        materials.put(BridgePartType.EXTENSION, extensionMaterials);

        Materials floatingMaterials = new Materials();
        floatingMaterials.put("Stone bricks", 12);
        floatingMaterials.put("Mortar", 10);
        floatingMaterials.put("Rock shards", 4);
        floatingMaterials.put("Clay", 2);
        materials.put(BridgePartType.FLOATING, floatingMaterials);

        Materials noWallsMaterials = new Materials();
        additionalMaterials.put(BridgePartSide.CENTER, noWallsMaterials);

        Materials oneWallMaterials = new Materials();
        oneWallMaterials.put("Stone bricks", 10);
        oneWallMaterials.put("Clay", 1);
        additionalMaterials.put(BridgePartSide.LEFT, oneWallMaterials);
        additionalMaterials.put(BridgePartSide.RIGHT, oneWallMaterials);

        Materials twoWallsMaterials = new Materials();
        twoWallsMaterials.put("Stone bricks", 20);
        twoWallsMaterials.put("Clay", 2);
        additionalMaterials.put(BridgePartSide.NARROW, twoWallsMaterials);
    }

    public String getName() {
        return "rendered";
    }

}


text:
<?php

namespace Code16\Sharp\Form\Fields\Utils;

use Closure;

trait SharpFormFieldWithUpload
{
    protected ?float $maxFileSize = null;
    protected ?array $cropRatio = null;
    protected ?array $transformableFileTypes = null;
    protected string $storageDisk = 'local';
    protected string|Closure $storageBasePath = 'data';
    protected bool $transformable = true;
    protected ?bool $transformKeepOriginal = null;
    protected bool $compactThumbnail = false;
    protected bool $shouldOptimizeImage = false;
    protected string|array|null $fileFilter = null;

    public function setMaxFileSize(float $maxFileSizeInMB): self
    {
        $this->maxFileSize = $maxFileSizeInMB;

        return $this;
    }

    /**
     * @param  string  $ratio  16:9, 1:1, ...
     * @param  array|null  $transformableFileTypes
     * @return static
     */
    public function setCropRatio(string $ratio = null, array $transformableFileTypes = null): self
    {
        if ($ratio) {
            $this->cropRatio = explode(':', $ratio);

            $this->transformableFileTypes = $transformableFileTypes
                ? $this->formatFileExtension($transformableFileTypes)
                : null;
        } else {
            $this->cropRatio = null;
            $this->transformableFileTypes = null;
        }

        return $this;
    }

    public function shouldOptimizeImage(bool $shouldOptimizeImage = true): self
    {
        $this->shouldOptimizeImage = $shouldOptimizeImage;

        return $this;
    }

    public function isShouldOptimizeImage(): bool
    {
        return $this->shouldOptimizeImage;
    }

    public function setCompactThumbnail(bool $compactThumbnail = true): self
    {
        $this->compactThumbnail = $compactThumbnail;

        return $this;
    }

    /** @deprecated use setTransformable() */
    public function setCroppable(bool $croppable = true): self
    {
        return $this->setTransformable($croppable);
    }

    public function setTransformable(bool $transformable = true, ?bool $transformKeepOriginal = null): self
    {
        $this->transformable = $transformable;

        if ($transformable && ! is_null($transformKeepOriginal)) {
            $this->transformKeepOriginal = $transformKeepOriginal;
        }

        return $this;
    }

    public function isTransformOriginal(): bool
    {
        return $this->transformable && ! $this->transformKeepOriginal();
    }

    protected function transformKeepOriginal(): bool
    {
        return $this->transformKeepOriginal ?? config('sharp.uploads.transform_keep_original_image', true);
    }

    public function setStorageDisk(string $storageDisk): self
    {
        $this->storageDisk = $storageDisk;

        return $this;
    }

    /**
     * @param  string|Closure  $storageBasePath
     * @return static
     */
    public function setStorageBasePath($storageBasePath): self
    {
        $this->storageBasePath = $storageBasePath;

        return $this;
    }

    /**
     * @param  string|array  $fileFilter
     * @return static
     */
    public function setFileFilter($fileFilter): self
    {
        $this->fileFilter = $this->formatFileExtension($fileFilter);

        return $this;
    }

    public function setFileFilterImages(): self
    {
        $this->setFileFilter(['.jpg', '.jpeg', '.gif', '.png']);

        return $this;
    }

    public function storageDisk(): string
    {
        return $this->storageDisk;
    }

    public function storageBasePath(): string
    {
        return value($this->storageBasePath);
    }

    public function cropRatio(): array
    {
        return $this->cropRatio;
    }

    /**
     * @param  string|array  $fileFilter
     * @return array
     */
    private function formatFileExtension($fileFilter): array
    {
        if (! is_array($fileFilter)) {
            $fileFilter = explode(',', $fileFilter);
        }

        return collect($fileFilter)
            ->map(function ($filter) {
                $filter = trim($filter);
                if (! str_starts_with($filter, '.')) {
                    $filter = ".$filter";
                }

                return $filter;
            })
            ->all();
    }
}


text:
#import "IDSBaseMessage.h"

#import "NSCopying-Protocol.h"

@class NSData, NSNumber;

@interface IDSInitializeValidationMessage : IDSBaseMessage <NSCopying>
{
    NSData *_sessionInfoRequest;
    NSData *_responseSessionInfo;
    NSNumber *_responseTTL;
    NSData *_pushToken;
}

@property(copy, nonatomic) NSData *pushToken; // @synthesize pushToken=_pushToken;
@property(copy, nonatomic) NSNumber *responseTTL; // @synthesize responseTTL=_responseTTL;
@property(copy, nonatomic) NSData *responseSessionInfo; // @synthesize responseSessionInfo=_responseSessionInfo;
@property(copy, nonatomic) NSData *sessionInfoRequest; // @synthesize sessionInfoRequest=_sessionInfoRequest;
- (void)handleResponseDictionary:(id)arg1;
- (id)additionalMessageHeaders;
- (id)messageBody;
- (id)requiredKeys;
- (id)bagKey;
- (long long)responseCommand;
- (long long)command;
- (_Bool)wantsBinaryPush;
- (_Bool)wantsCompressedBody;
- (_Bool)wantsHTTPHeaders;
- (_Bool)wantsBagKey;
- (id)copyWithZone:(struct _NSZone *)arg1;
- (void)dealloc;
- (id)init;

@end


text:
@interface SHViewController ()

@end

@implementation SHViewController

-(void)viewDidLoad; {
  [super viewDidLoad];

}

-(void)viewDidAppear:(BOOL)animated; {
  [super viewDidAppear:animated];

}
@end


text:
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}

{% block modal-header %}{% trans "Log In" %}{% endblock %}
{% block modal_class %}login{% endblock %}

{% block form_action %}{% url horizon:auth_login %}{% endblock %}

{% block modal-body %}
  {% include "horizon/_messages.html" %}
  <fieldset>
    {% if next %}<input type="hidden" name="{{ redirect_field_name }}" value="{{ next }}" />{% endif %}
    {% include "horizon/common/_form_fields.html" %}
  </fieldset>
{% endblock %}

{% block modal-footer %}
  <button type="submit" class="btn btn-primary pull-right">{% trans "Sign In" %}</button>
{% endblock %}