text:
local mod	= DBM:NewMod(824, "DBM-ThroneofThunder", nil, 362)
local L		= mod:GetLocalizedStrings()
--BH ADD
local sndWOP	= mod:SoundMM("SoundWOP")
local sndCQ		= mod:SoundMM("SoundCQ")

mod:SetRevision(("$Revision: 11365 $"):sub(12, -3))
mod:SetCreatureID(69427)
mod:SetEncounterID(1576)
mod:SetZone()
mod:SetUsedIcons(1)

mod:RegisterCombat("emote", L.Pull)

mod:RegisterEventsInCombat(
	"SPELL_CAST_START",
	"SPELL_CAST_SUCCESS",
	"SPELL_AURA_APPLIED",
	"SPELL_AURA_APPLIED_DOSE",
	"SPELL_AURA_REMOVED",
	"SPELL_DAMAGE",
	"SPELL_MISSED",
	"RAID_BOSS_WHISPER"
)

local warnCrimsonWake				= mod:NewTargetAnnounce(138480, 3)
local warnMatterSwap				= mod:NewTargetAnnounce(138609, 3)--Debuff.
local warnMatterSwapped				= mod:NewAnnounce("warnMatterSwapped", 3, 138618)--Actual swap(caused by dispel)
local warnExplosiveSlam				= mod:NewStackAnnounce(138569, 2, nil, mod:IsTank() or mod:IsHealer())
--Boss
local warnActivation				= mod:NewCastAnnounce(139537, 3, 60)
local warnAnimaRing					= mod:NewTargetAnnounce(136954, 3)
local warnAnimaFont					= mod:NewTargetAnnounce(138691, 3)
local warnInterruptingJolt			= mod:NewCountAnnounce(138763, 4)
local warnEmpowerGolem				= mod:NewTargetAnnounce(138780, 3)

local specWarnCrimsonWakeYou		= mod:NewSpecialWarningRun(138480)--Kiter
local specWarnCrimsonWake			= mod:NewSpecialWarningMove(138485)--Standing in stuff left behind by kiter
local yellCrimsonWake				= mod:NewYell(138480)
local specWarnMatterSwap			= mod:NewSpecialWarningYou(138609)
local specWarnExplosiveSlam			= mod:NewSpecialWarningStack(138569, mod:IsTank(), 4)--Assumed value drycode, won't know until cd is observed
local specWarnExplosiveSlamOther	= mod:NewSpecialWarningTarget(138569, mod:IsTank())
--Boss
local specWarnAnimaRing				= mod:NewSpecialWarningYou(136954)
local specWarnAnimaRingOther		= mod:NewSpecialWarningTarget(136954, false)
local yellAnimaRing					= mod:NewYell(136954)
local specWarnAnimaFont				= mod:NewSpecialWarningYou(138691, false)
local specWarnInterruptingJolt		= mod:NewSpecialWarningCount(138763, nil, nil, nil, 2)
local specWarnJSA			= mod:NewSpecialWarning("SpecWarnJSA")

local timerMatterSwap				= mod:NewTargetTimer(12, 138609)--If not dispelled, it ends after 12 seconds regardless
local timerExplosiveSlam			= mod:NewTargetTimer(25, 138569, nil, mod:IsTank() or mod:IsHealer())
--Boss
local timerAnimusActivation			= mod:NewCastTimer(60, 139537)--LFR only
local timerSiphonAnimaCD			= mod:NewNextCountTimer(20, 138644)--Needed mainly for heroic. not important on normal/LFR
local timerAnimaRingCD				= mod:NewNextTimer(24.2, 136954)--Updated/Verified post march 19 hotfix
local timerAnimaFontCD				= mod:NewCDTimer(25, 138691)

local timerInterruptingJoltCD		= mod:NewNextCountTimer(21.8, 138763)
local timerEmpowerGolemCD			= mod:NewCDTimer(16, 138780)

local berserkTimer					= mod:NewBerserkTimer(600)
----BH DELETE local soundCrimsonWake				= mod:NewSound(138480)

local crimsonWake = GetSpellInfo(138485)--Debuff ID I believe, not cast one. Same spell name though

local firstSiphonAnima = false
local SiphonAnimaCount = 0
local InterruptingJoltCount = 0
local fpower = true

mod:AddBoolOption("SetIconOnFont", true)

mod:AddBoolOption("Mob", true, "sound")
mod:AddBoolOption("MobA", false, "sound")
mod:AddBoolOption("MobB", false, "sound")
mod:AddBoolOption("MobC", false, "sound")

mod:AddBoolOption("dr", true, "sound")
for i = 1, 10 do
	mod:AddBoolOption("dr"..i, false, "sound")
end

local function MyJS()
	if (mod.Options.dr1 and InterruptingJoltCount == 0) or (mod.Options.dr2 and InterruptingJoltCount == 1) or (mod.Options.dr3 and InterruptingJoltCount == 2) or (mod.Options.dr4 and InterruptingJoltCount == 3) or (mod.Options.dr5 and InterruptingJoltCount == 4) or (mod.Options.dr6 and InterruptingJoltCount == 5) or (mod.Options.dr7 and InterruptingJoltCount == 6) or (mod.Options.dr8 and InterruptingJoltCount == 7) or (mod.Options.dr9 and InterruptingJoltCount == 8) or (mod.Options.dr10 and InterruptingJoltCount == 9) then
		return true
	end
	return false
end

function mod:AnimaRingTarget(targetname)
	warnAnimaRing:Show(targetname)
	if targetname == UnitName("player") then
		specWarnAnimaRing:Show()
		yellAnimaRing:Yell()
	else
		specWarnAnimaRingOther:Show(targetname)
	end
end

function mod:OnCombatStart(delay)
	firstSiphonAnima = false
	fpower = true
	InterruptingJoltCount = 0
	SiphonAnimaCount = 0
	berserkTimer:Start(-delay)
	self:RegisterShortTermEvents(
		"INSTANCE_ENCOUNTER_ENGAGE_UNIT"--We register here to prevent detecting first heads on pull before variables reset from first engage fire. We'll catch them on delayed engages fired couple seconds later
	)
	if self:IsDifficulty("heroic10", "heroic25") then
		timerAnimaFontCD:Start(14)
		timerAnimaRingCD:Start(23)
		timerSiphonAnimaCD:Start(120, 1)--VERY important on heroic. boss activaet on pull, you have 2 minutes to do as much with adds as you can before he starts using siphon anima
		if mod.Options.MobA then
			sndWOP:Schedule(88, "ex_tt_mobA")
			sndWOP:Schedule(90, "countfive")
			sndWOP:Schedule(92, "countfour")
			sndWOP:Schedule(94, "countthree")
			sndWOP:Schedule(96, "counttwo")
			sndWOP:Schedule(97, "countone")
			sndWOP:Schedule(98, "mobkill")
		end
	end
end

function mod:OnCombatEnd()
	self:UnregisterShortTermEvents()
	DBM.InfoFrame:Hide()
end

function mod:SPELL_CAST_START(args)
	if args.spellId == 136954 then
		self:BossTargetScanner(69427, "AnimaRingTarget", 0.02, 12)
		timerAnimaRingCD:Start()
		sndCQ:Play("ex_tt_bmcq") --幫忙吃球
	elseif args:IsSpellID(138763, 139867, 139869) then--Normal version is 2.2 sec cast. Heroic is 1.4 second cast. LFR is 3.8 sec cast (thus why it has different spellid)
		InterruptingJoltCount = InterruptingJoltCount + 1
		warnInterruptingJolt:Show(InterruptingJoltCount)
		specWarnInterruptingJolt:Show(InterruptingJoltCount)
		timerInterruptingJoltCD:Cancel()
		timerInterruptingJoltCD:Start(21.8, InterruptingJoltCount + 1)
		sndWOP:Cancel("defensive")
		sndWOP:Cancel("countfour")
		sndWOP:Cancel("countthree")
		sndWOP:Cancel("counttwo")
		sndWOP:Cancel("countone")
		if mod:IsSpellCaster() and mod:IsRanged() then
			-- DBM.Flash:Shake(1, 0, 0)
			sndWOP:Play("stopcast") --停止施法
		else
			sndWOP:Play("ex_tt_dfzj") --斷法震擊
		end
		if mod:IsHealer() then
			sndWOP:Cancel("ex_tt_tenzj")
			sndWOP:Schedule(11.8, "ex_tt_tenzj") -- 10秒後斷法震擊
		end
		if MyJS() then
			specWarnJSA:Schedule(18.8)
			sndWOP:Schedule(18.8, "defensive") --注意減傷
		else
			sndWOP:Schedule(18.8, "countfour")
		end
		sndWOP:Schedule(19.8, "countthree")
		sndWOP:Schedule(20.8, "counttwo")
		sndWOP:Schedule(21.8, "countone")
		DBM.InfoFrame:Hide()
		DBM.InfoFrame:SetHeader(GetSpellInfo(138763).."("..(InterruptingJoltCount + 1)..")")
		-- DBM.InfoFrame:Show(1, "time", "", 22)
	end
end

local function PowerDelay()
	local power = UnitPower("boss1")
	if power >= 70 and fpower then
		fpower = false
		timerInterruptingJoltCD:Start(18, 1)
		if mod:IsHealer() then
			sndWOP:Schedule(8, "ex_tt_tenzj") -- 10秒後斷法震擊
		end
		if MyJS() then
			specWarnJSA:Schedule(15)
			sndWOP:Schedule(15, "defensive") --注意減傷
		else
			sndWOP:Schedule(15, "countfour")
		end
		sndWOP:Schedule(16, "countthree")
		sndWOP:Schedule(17, "counttwo")
		sndWOP:Schedule(18, "countone")
		DBM.InfoFrame:SetHeader(GetSpellInfo(138763).."(1)")
		-- DBM.InfoFrame:Show(1, "time", "", 18)
	end
end

function mod:SPELL_CAST_SUCCESS(args)
	if args.spellId == 138644 and self:IsDifficulty("heroic10", "heroic25") then--Only start on heroic, on normal it's 6 second cd, not worth using timer there
		SiphonAnimaCount = SiphonAnimaCount + 1
		timerSiphonAnimaCD:Start(nil, SiphonAnimaCount + 1)
		if mod.Options.MobB then
			if SiphonAnimaCount == 1 then
				sndWOP:Schedule(17, "ex_tt_echx")
			elseif SiphonAnimaCount == 2 then
				sndWOP:Cancel("ex_tt_echx")
				sndWOP:Play("mobkill")
				sndWOP:Schedule(1, "mobkill")
			end
		end
		if mod.Options.MobC then
			if SiphonAnimaCount == 3 then
				sndWOP:Schedule(17, "ex_tt_schx")
			elseif SiphonAnimaCount == 4 then
				sndWOP:Cancel("ex_tt_schx")
				sndWOP:Play("mobkill")
				sndWOP:Schedule(1, "mobkill")
			end
		end
		self:Schedule(2, PowerDelay)
	end
end

function mod:SPELL_AURA_APPLIED(args)
	if args.spellId == 138569 then
		local uId = DBM:GetRaidUnitId(args.destName)
		if self:IsTanking(uId, "boss1") then--Only want sprays that are on tanks, not bads standing on tanks.
			local amount = args.amount or 1
			warnExplosiveSlam:Show(args.destName, amount)
			timerExplosiveSlam:Start(args.destName)
			if args:IsPlayer() then
				if amount >= 4 then
					specWarnExplosiveSlam:Show(amount)
				end
			else
				if amount >= 4 and not UnitDebuff("player", GetSpellInfo(138569)) and not UnitIsDeadOrGhost("player") then
					specWarnExplosiveSlamOther:Show(args.destName)
					if mod:IsTank() then
						sndWOP:Play("changemt")--換坦嘲諷
					end
				end
			end
		end
	elseif args.spellId == 138609 then
		warnMatterSwap:Show(args.destName)
		timerMatterSwap:Start(args.destName)
		if args:IsPlayer() then
			specWarnMatterSwap:Show()
			sndWOP:Play("ex_tt_jhzb") --交換準備
		elseif mod:IsHealer() then
			sndWOP:Play("ex_tt_wzjh") --物質交換
		end
	elseif args.spellId == 138780 then
		warnEmpowerGolem:Show(args.destName)
		timerEmpowerGolemCD:Start()
	elseif args.spellId == 139537 then
		warnActivation:Show()
		timerAnimusActivation:Start()
	elseif args.spellId == 138691 then
		warnAnimaFont:Show(args.destName)
		timerAnimaFontCD:Start()
		if args:IsPlayer() then
			specWarnAnimaFont:Show()
		end
		if self.Options.SetIconOnFont then
			self:SetIcon(args.destName, 1)--star
		end
	end
end
mod.SPELL_AURA_APPLIED_DOSE = mod.SPELL_AURA_APPLIED

function mod:SPELL_AURA_REMOVED(args)
	if args.spellId == 138609 then
		timerMatterSwap:Cancel(args.destName)
	elseif args.spellId == 138569 then
		timerExplosiveSlam:Cancel(args.destName)
	elseif args.spellId == 138691 and self.Options.SetIconOnFont then
		self:SetIcon(args.destName, 0)
	end
end

function mod:SPELL_DAMAGE(sourceGUID, _, _, _, destGUID, _, _, _, spellId, spellName)
	if spellId == 138485 and destGUID == UnitGUID("player") and self:AntiSpam(2, 1) then
		specWarnCrimsonWake:Show()
		sndWOP:Play("runaway") --快躲開
	elseif spellId == 138618 then
		if sourceGUID == destGUID then return end--Filter first event then grab both targets from second event, as seen from log example above
		warnMatterSwapped:Show(spellName, DBM:GetFullPlayerNameByGUID(sourceGUID), DBM:GetFullPlayerNameByGUID(destGUID))
	end
end
mod.SPELL_MISSED = mod.SPELL_DAMAGE

--Seems to have no debuff event on combat log. Could possibly use UNIT_AURA, but this should be tremendous cpu, plus hard to code in LFR since MANY large up at once
function mod:RAID_BOSS_WHISPER(msg, npc)
	if npc == crimsonWake then--In case target scanning fails, personal warnings still always go off. Target scanning is just so everyone else in raid knows who it's on (since only target sees this emote)
		if self:AntiSpam(3, 1) then--This actually doesn't spam, but we ues same antispam here so that the MOVE warning doesn't fire at same time unless you fail to move for 2 seconds
			specWarnCrimsonWakeYou:Show()
		end
		if not self:IsDifficulty("lfr25") then
			yellCrimsonWake:Yell()
		end
----BH DELETE	soundCrimsonWake:Play()
		-- DBM.Flash:Shake(1, 0, 0)
		sndWOP:Play("justrun")  --快跑
		self:SendSync("WakeTarget", UnitGUID("player"))
	end
end

function mod:INSTANCE_ENCOUNTER_ENGAGE_UNIT()
	if UnitExists("boss1") and tonumber(UnitGUID("boss1"):sub(6, 10), 16) == 69427 then
		self:UnregisterShortTermEvents()--Once boss is out, unregister event, since we need it no longer.
		if self:IsDifficulty("normal10", "normal25") then
			timerSiphonAnimaCD:Start(5.3, 1)
		end
	end
end

function mod:OnSync(msg, guid)
	if msg == "WakeTarget" and guid then
		warnCrimsonWake:Show(DBM:GetFullPlayerNameByGUID(guid))
	end
end


text:
package org.gradle.integtests.fixtures.executer;

import org.gradle.test.fixtures.file.TestDirectoryProvider;

public abstract class AbstractDelegatingGradleExecuter extends AbstractGradleExecuter {

    protected AbstractDelegatingGradleExecuter(GradleDistribution distribution, TestDirectoryProvider testDirectoryProvider) {
        super(distribution, testDirectoryProvider);
    }

    @Override
    protected ExecutionResult doRun() {
        return configureExecuter().run();
    }

    @Override
    protected ExecutionFailure doRunWithFailure() {
        return configureExecuter().runWithFailure();
    }

    public void assertCanExecute() throws AssertionError {
        configureExecuter().assertCanExecute();
    }

    @Override
    public GradleHandle doStart() {
        return configureExecuter().start();
    }

    protected abstract GradleExecuter configureExecuter();

}

redpajama_set_name: RedPajamaGithub


text:
package org.symphonyoss.symphony.clients.model;

import org.symphonyoss.symphony.agent.model.V2HealthCheckResponse;

/**
 * @author Frank Tarsillo on 10/15/17.
 */
public class SymAgentHealthCheck {

    @Override
    public String toString() {
        return  "OK? "+this.isUp()+"\n"+
                "podConnectivity: "+this.podConnectivity+"\n"+
                "podConnectivityError: "+this.podConnectivityError+"\n"+
                "keyManagerConnectivity: "+this.keyManagerConnectivity+"\n"+
                "keyManagerConnectivityError: "+this.keyManagerConnectivityError+"\n"+
                "encryptDecryptSuccess: "+this.encryptDecryptSuccess+"\n"+
                "encryptDecryptError: "+this.encryptDecryptError+"\n"+
                "podVersion: "+this.podVersion+"\n"+
                "agentVersion: "+this.agentVersion;
    }

    public Boolean isUp() {
        return  this.podConnectivity &&
                this.keyManagerConnectivity &&
                this.encryptDecryptSuccess &&
                !this.podVersion.isEmpty() &&
                !this.agentVersion.isEmpty();
    }

    private Boolean podConnectivity = null;

    private String podConnectivityError = null;

    private Boolean keyManagerConnectivity = null;

    private String keyManagerConnectivityError = null;

    private Boolean encryptDecryptSuccess = null;

    private String encryptDecryptError = null;

    private String podVersion = null;

    private String agentVersion = null;

    public Boolean getPodConnectivity() {
        return podConnectivity;
    }

    public void setPodConnectivity(Boolean podConnectivity) {
        this.podConnectivity = podConnectivity;
    }

    public String getPodConnectivityError() {
        return podConnectivityError;
    }

    public void setPodConnectivityError(String podConnectivityError) {
        this.podConnectivityError = podConnectivityError;
    }

    public Boolean getKeyManagerConnectivity() {
        return keyManagerConnectivity;
    }

    public void setKeyManagerConnectivity(Boolean keyManagerConnectivity) {
        this.keyManagerConnectivity = keyManagerConnectivity;
    }

    public String getKeyManagerConnectivityError() {
        return keyManagerConnectivityError;
    }

    public void setKeyManagerConnectivityError(String keyManagerConnectivityError) {
        this.keyManagerConnectivityError = keyManagerConnectivityError;
    }

    public Boolean getEncryptDecryptSuccess() {
        return encryptDecryptSuccess;
    }

    public void setEncryptDecryptSuccess(Boolean encryptDecryptSuccess) {
        this.encryptDecryptSuccess = encryptDecryptSuccess;
    }

    public String getEncryptDecryptError() {
        return encryptDecryptError;
    }

    public void setEncryptDecryptError(String encryptDecryptError) {
        this.encryptDecryptError = encryptDecryptError;
    }

    public String getPodVersion() {
        return podVersion;
    }

    public void setPodVersion(String podVersion) {
        this.podVersion = podVersion;
    }

    public String getAgentVersion() {
        return agentVersion;
    }

    public void setAgentVersion(String agentVersion) {
        this.agentVersion = agentVersion;
    }

    public static SymAgentHealthCheck toSymAgentHealthCheck(V2HealthCheckResponse v2HealthCheckResponse) {

        if(v2HealthCheckResponse==null)
            return null;

        SymAgentHealthCheck symAgentHealthCheck = new SymAgentHealthCheck();

        symAgentHealthCheck.setAgentVersion(v2HealthCheckResponse.getAgentVersion());
        symAgentHealthCheck.setEncryptDecryptError(v2HealthCheckResponse.getEncryptDecryptError());
        symAgentHealthCheck.setEncryptDecryptSuccess(v2HealthCheckResponse.getEncryptDecryptSuccess());
        symAgentHealthCheck.setKeyManagerConnectivity(v2HealthCheckResponse.getKeyManagerConnectivity());
        symAgentHealthCheck.setKeyManagerConnectivityError(v2HealthCheckResponse.getKeyManagerConnectivityError());
        symAgentHealthCheck.setPodConnectivity(v2HealthCheckResponse.getPodConnectivity());
        symAgentHealthCheck.setPodConnectivityError(v2HealthCheckResponse.getPodConnectivityError());
        symAgentHealthCheck.setPodVersion(v2HealthCheckResponse.getPodVersion());

        return symAgentHealthCheck;
    }
}


text:
// License info and recommendations
//-----------------------------------------------------------------------
// <copyright file="UserInterfacePage.cs" company="AVPlus Integration Pty Ltd">
//     {c} AV Plus Pty Ltd 2017.
//     http://www.avplus.net.au
//     20170611 Rod Driscoll
//     e: rdriscoll@avplus.net.au
//     m: +61 428 969 608
//     Permission is hereby granted, free of charge, to any person obtaining a copy
//     of this software and associated documentation files (the "Software"), to deal
//     in the Software without restriction, including without limitation the rights
//     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//     copies of the Software, and to permit persons to whom the Software is
//     furnished to do so, subject to the following conditions:
//
//     The above copyright notice and this permission notice shall be included in
//     all copies or substantial portions of the Software.
//
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//     THE SOFTWARE.
//
//     For more details please refer to the LICENSE file located in the root folder
//      of the project source code;
// </copyright>

namespace AVPlus.CrestronCIP
{
    using System.Collections.Generic;

    public class UserInterfacePage
    {
        public ushort join;
        public string name;
        public string label;
        public UserInterfacePage parentPage;
        public UserInterfacePage lastPage;
        public Dictionary<ushort, UserInterfacePage> MainList = new Dictionary<ushort, UserInterfacePage>();
        public Dictionary<ushort, UserInterfacePage> TopList = new Dictionary<ushort, UserInterfacePage>();
        public Dictionary<ushort, UserInterfacePage> Links = new Dictionary<ushort, UserInterfacePage>();
        public UserInterfacePage()
        {
            //this.name = name;
        }

        public void SetMainList(Dictionary<ushort, UserInterfacePage> pages)
        {
            this.MainList = pages;
        }
    }

}


text:
'use strict';
var db = process.env.MONGOLAB_URI ||
    process.env.MONGOHQ_URL ||
    'mongodb://localhost/react-comment-box-prod';

module.exports = {
  db:db,
  app: {
    name: 'React Expresso'
  }
};


text:
import { MethodExpression } from '../expressions/method_expression';
import { IExpression } from '../expressions/iexpression';
export declare class Substring extends MethodExpression {
    constructor(left: IExpression, right: IExpression);
    methodName: string;
}


text:
'use strict';

/**
 * Home module.
 * @ngdoc overview
 * @name Home
 * @description
 *
 * # Main module of the feature.
 */

(function() {

  function home($stateProvider) {

    $stateProvider
      .state('home', {
        url:'/',
        templateUrl: 'components/home/views/home.view.html',
      });
  }

  angular.module('<%= appName %>.home', [
    'ui.router'
  ]).config(home);
})();


text:
import { app, LoginItemSettings } from 'electron';

import { isMac } from '../common/env';
import { logger } from '../common/logger';
import { CloudConfigDataTypes, config, IConfig } from './config-handler';

const { autoLaunchPath }: IConfig = config.getConfigFields(['autoLaunchPath']);

const props = isMac
  ? {
      mac: {
        useLaunchAgent: true,
      },
      name: 'Symphony',
      path: process.execPath,
    }
  : {
      name: 'Symphony',
      path: autoLaunchPath
        ? autoLaunchPath.replace(/\//g, '\\')
        : null || process.execPath,
    };

class AutoLaunchController {
  /**
   * Enable auto launch and displays error dialog on failure
   *
   * @return {Promise<void>}
   */
  public enableAutoLaunch(): void {
    app.setLoginItemSettings({ openAtLogin: true, path: props.path });
    logger.info(`auto-launch-controller: Enabled auto launch!`);
  }

  /**
   * Disable auto launch and displays error dialog on failure
   *
   * @return {Promise<void>}
   */
  public disableAutoLaunch(): void {
    app.setLoginItemSettings({ openAtLogin: false, path: props.path });
    logger.info(`auto-launch-controller: Disabled auto launch!`);
  }

  /**
   * Checks if auto launch is enabled
   *
   * @return {Boolean}
   */
  public isAutoLaunchEnabled(): LoginItemSettings {
    return app.getLoginItemSettings();
  }

  /**
   * Validates the user config and enables auto launch
   */
  public async handleAutoLaunch(): Promise<void> {
    const { launchOnStartup }: IConfig = config.getConfigFields([
      'launchOnStartup',
    ]);
    const {
      openAtLogin: isAutoLaunchEnabled,
    }: LoginItemSettings = this.isAutoLaunchEnabled();

    if (launchOnStartup === CloudConfigDataTypes.ENABLED) {
      if (!isAutoLaunchEnabled) {
        this.enableAutoLaunch();
      }
      return;
    }
    if (isAutoLaunchEnabled) {
      this.disableAutoLaunch();
    }
  }
}

const autoLaunchInstance = new AutoLaunchController();

export { autoLaunchInstance };


text:
package mavenscala.search

import mavenscala.railroad.{Edge, Station}

import scala.collection.mutable.{ArrayBuffer, Stack}

/**
  * Created by y28yang on 4/25/2016.
  */
class RouteIterator(val rootStation: Station) {
  private var currentEdges = new ArrayBuffer[Edge]
  private val stacks = new Stack[Iterator[Edge]]

  stacks.push(rootStation.allConnectedRoute.valuesIterator)

  def hasNext: Boolean = {
    if (stacks.isEmpty) return false
    if (stacks.top.hasNext) return true
    stacks.pop()
    if (currentEdges.nonEmpty)
      currentEdges.trimEnd(1)
    hasNext
  }

  def next: Seq[Edge] = {
    val edge = stacks.top.next()
    currentEdges.append(edge)
    stacks.push(edge.toStation.allConnectedRoute.valuesIterator)
    currentEdges
  }

  def dropCurrentStation = {
    stacks.pop
    if (currentEdges.nonEmpty)
      currentEdges.trimEnd(1)
  }

}


text:
IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)

bool wxStaticBox::Create( wxWindow *parent,
    wxWindowID id,
    const wxString& label,
    const wxPoint& pos,
    const wxSize& size,
    long style,
    const wxString& name )
{
    m_macIsUserPane = false;

    if ( !wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name ) )
        return false;

    m_labelOrig = m_label = label;

    m_peer = wxWidgetImpl::CreateGroupBox( this, parent, id, label, pos, size, style, GetExtraStyle() );

    MacPostControlCreate( pos, size );

    return true;
}

void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
{
    static int extraTop = -1; // Uninitted
    static int other = 5;

    if ( extraTop == -1 )
    {
        // The minimal border used for the top.
        // Later on, the staticbox's font height is added to this.
        extraTop = 0;

        // As indicated by the HIG, Panther needs an extra border of 11
        // pixels (otherwise overlapping occurs at the top). The "other"
        // border has to be 11.
        extraTop = 11;
        other = 11;
    }

    *borderTop = extraTop;
    if ( !m_label.empty() )
        *borderTop += GetCharHeight();

    *borderOther = other;
}

bool wxStaticBox::SetFont(const wxFont& font)
{
    bool retval = wxWindowBase::SetFont( font );

    // dont' update the native control, it has its own small font

    return retval;
}

#endif // wxUSE_STATBOX


text:
FROM	ubuntu:16.04
MAINTAINER	Neal Hardesty <nealhardesty@yahoo.dot.com>

# Install Oracle JDK 8
# http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
RUN \
    echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list \
    && echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list \
    && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 \
    && apt-get update -q \
    && echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
    && echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes oracle-java8-installer oracle-java8-set-default \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes vim curl wget \
    && rm -rf /var/cache/oracle-jdk8-installer \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

ENV SCALA_VERSION 2.11.7
ENV SCALA_TARBALL http://downloads.typesafe.com/scala/2.11.7/scala-$SCALA_VERSION.tgz
ENV SCALA_HOME /usr/local/

ENV SBT_VERSION 0.13.8
ENV SBT_LAUNCH https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/$SBT_VERSION/sbt-launch.jar

RUN curl -s $SCALA_TARBALL -o /var/tmp/scala.tgz \
    && tar --strip-components 1 -xvf /var/tmp/scala.tgz -C $SCALA_HOME \
    && rm /var/tmp/scala.tgz

RUN curl -vLs $SBT_LAUNCH -o /usr/local/bin/sbt-launch.jar

ADD ./lib/sbt /usr/local/bin/sbt

# Will precache all the necessary jars
RUN sbt

CMD ["scala"]


text:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { RedditComponent } from './reddit/reddit.component';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
@NgModule({
  declarations: [
    AppComponent,
    RedditComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    NgbModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }


text:
/**
 * Definition for a binary tree node.
 * public class TreeNode {
 *     int val;
 *     TreeNode left;
 *     TreeNode right;
 *     TreeNode(int x) { val = x; }
 * }
 */
class Solution {
    public boolean checkSubTree(TreeNode t1, TreeNode t2) {
        if (t1 == null && t2 == null) return true;
        if (t1 == null || t2 == null) return false;

        if (t1.val == t2.val && isSameTree(t1, t2)) return true;

        return checkSubTree(t1.left, t2) || checkSubTree(t1.right, t2);
    }

    public boolean isSameTree(TreeNode t1, TreeNode t2) {
        if (t1 == null && t2 == null) return true;
        if (t1 == null || t2 == null) return false;

        return t1.val == t2.val && isSameTree(t1.left, t2.left) && isSameTree(t1.right, t2.right);
    }
}


text:
namespace Sitecore.Feature.VideoReviews.Controllers
{
    using System;
    using System.Web.Mvc;
    using System.Web.Security;
    using Data.Items;
    using Services;
    using Sitecore;
    using Sitecore.Diagnostics;
    using Sitecore.Feature.VideoReviews.Repositories;
    using Sitecore.Feature.VideoReviews.Models;

    public class VideoReviewsController : Controller
    {
        private readonly IVideoReviewsService videoReviewsService;
        private readonly IVideoReviewsRepository videoReviewsRepository;

        public VideoReviewsController() : this(new VideoReviewsRepository(Context.Item, Context.Site), new VideoReviewsService())
        {

        }

        public VideoReviewsController(IVideoReviewsRepository videoReviewsRepository, IVideoReviewsService videoReviewsService)
        {
            this.videoReviewsRepository = videoReviewsRepository;
            this.videoReviewsService = videoReviewsService;
        }

        [HttpGet]
        public ActionResult ReviewsDisplay()
        {
            Item globalSetting = this.videoReviewsRepository.GetGlobalSetting();
            string skuId = this.videoReviewsRepository.GetSku();
            if (globalSetting != null && !string.IsNullOrWhiteSpace(skuId))
            {
                return this.View("ReviewDisplay", this.videoReviewsService.GetReviews(globalSetting, skuId));
            }
            else
            {
                return this.View("ReviewDisplay", (VideoReviews)null);
            }
        }
    }
}


text:
namespace System.Text
{
    using System;
    using System.Diagnostics.Contracts;

    [Serializable]
    public sealed class DecoderReplacementFallback : DecoderFallback
    {
        // Our variables
        private String strDefault;

        // Construction.  Default replacement fallback uses no best fit and ? replacement string
        public DecoderReplacementFallback() : this("?")
        {
        }

        public DecoderReplacementFallback(String replacement)
        {
            if (replacement == null)
                throw new ArgumentNullException("replacement");
            Contract.EndContractBlock();

            // Make sure it doesn't have bad surrogate pairs
            bool bFoundHigh=false;
            for (int i = 0; i < replacement.Length; i++)
            {
                // Found a surrogate?
                if (Char.IsSurrogate(replacement,i))
                {
                    // High or Low?
                    if (Char.IsHighSurrogate(replacement, i))
                    {
                        // if already had a high one, stop
                        if (bFoundHigh)
                            break;  // break & throw at the bFoundHIgh below
                        bFoundHigh = true;
                    }
                    else
                    {
                        // Low, did we have a high?
                        if (!bFoundHigh)
                        {
                            // Didn't have one, make if fail when we stop
                            bFoundHigh = true;
                            break;
                        }

                        // Clear flag
                        bFoundHigh = false;
                    }
                }
                // If last was high we're in trouble (not surrogate so not low surrogate, so break)
                else if (bFoundHigh)
                    break;
            }
            if (bFoundHigh)
                throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex", "replacement"));

            strDefault = replacement;
        }

        public String DefaultString
        {
             get
             {
                return strDefault;
             }
        }

        public override DecoderFallbackBuffer CreateFallbackBuffer()
        {
            return new DecoderReplacementFallbackBuffer(this);
        }

        // Maximum number of characters that this instance of this fallback could return
        public override int MaxCharCount
        {
            get
            {
                return strDefault.Length;
            }
        }

        public override bool Equals(Object value)
        {
            DecoderReplacementFallback that = value as DecoderReplacementFallback;
            if (that != null)
            {
                return (this.strDefault == that.strDefault);
            }
            return (false);
        }

        public override int GetHashCode()
        {
            return strDefault.GetHashCode();
        }
    }

    public sealed class DecoderReplacementFallbackBuffer : DecoderFallbackBuffer
    {
        // Store our default string
        private String strDefault;
        int fallbackCount = -1;
        int fallbackIndex = -1;

        // Construction
        public DecoderReplacementFallbackBuffer(DecoderReplacementFallback fallback)
        {
            this.strDefault = fallback.DefaultString;
        }

        // Fallback Methods
        public override bool Fallback(byte[] bytesUnknown, int index)
        {
            // We expect no previous fallback in our buffer
            // We can't call recursively but others might (note, we don't test on last char!!!)
            if (fallbackCount >= 1)
            {
                ThrowLastBytesRecursive(bytesUnknown);
            }

            // Go ahead and get our fallback
            if (strDefault.Length == 0)
                return false;

            fallbackCount = strDefault.Length;
            fallbackIndex = -1;

            return true;
        }

        public override char GetNextChar()
        {
            // We want it to get < 0 because == 0 means that the current/last character is a fallback
            // and we need to detect recursion.  We could have a flag but we already have this counter.
            fallbackCount--;
            fallbackIndex++;

            // Do we have anything left? 0 is now last fallback char, negative is nothing left
            if (fallbackCount < 0)
                return '\0';

            // Need to get it out of the buffer.
            // Make sure it didn't wrap from the fast count-- path
            if (fallbackCount == int.MaxValue)
            {
                fallbackCount = -1;
                return '\0';
            }

            // Now make sure its in the expected range
            Contract.Assert(fallbackIndex < strDefault.Length && fallbackIndex >= 0,
                            "Index exceeds buffer range");

            return strDefault[fallbackIndex];
        }

        public override bool MovePrevious()
        {
            // Back up one, only if we just processed the last character (or earlier)
            if (fallbackCount >= -1 && fallbackIndex >= 0)
            {
                fallbackIndex--;
                fallbackCount++;
                return true;
            }

            // Return false 'cause we couldn't do it.
            return false;
        }

        // How many characters left to output?
        public override int Remaining
        {
            get
            {
                // Our count is 0 for 1 character left.
                return (fallbackCount < 0) ? 0 : fallbackCount;
            }
        }

        // Clear the buffer
        [System.Security.SecuritySafeCritical]  // auto-generated
        public override unsafe void Reset()
        {
            fallbackCount = -1;
            fallbackIndex = -1;
            byteStart = null;
        }

        // This version just counts the fallback and doesn't actually copy anything.
        [System.Security.SecurityCritical]  // auto-generated
        internal unsafe override int InternalFallback(byte[] bytes, byte* pBytes)
        // Right now this has both bytes and bytes[], since we might have extra bytes, hence the
        // array, and we might need the index, hence the byte*
        {
            // return our replacement string Length
            return strDefault.Length;
        }
    }
}


text:
<?php

namespace App\Export\FV\Sync\Helper\FileWriter;

class ProductFileWriter extends FileWriter
{
}


text: alter table campaign_message alter column message type varchar(255);


text:
package org.terasology.math;

import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import org.junit.Test;
import org.terasology.math.geom.Vector3i;

import java.util.Iterator;
import java.util.Set;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
 */
public class Diamond3iIteratorTest {

    @Test
    public void testZeroDistanceIteration() {
        Iterator<Vector3i> iter = Diamond3iIterator.iterate(Vector3i.zero(), 0).iterator();
        assertEquals(Lists.newArrayList(Vector3i.zero()), Lists.newArrayList(iter));
    }

    @Test
    public void testOneDistanceIteration() {
        Iterator<Vector3i> iter = Diamond3iIterator.iterate(Vector3i.zero(), 1).iterator();
        Set<Vector3i> expected = Sets.newHashSet(Vector3i.zero(), new Vector3i(1, 0, 0), new Vector3i(-1, 0, 0), new Vector3i(0, 1, 0),
                new Vector3i(0, -1, 0), new Vector3i(0, 0, 1), new Vector3i(0, 0, -1));
        while (iter.hasNext()) {
            Vector3i next = iter.next();
            assertTrue("Received Unexpected: " + next, expected.remove(next));
        }
        assertTrue("Missing: " + expected, expected.isEmpty());
    }

    @Test
    public void testTwoDistanceIteration() {
        Set<Vector3i> iter = Sets.newHashSet(Diamond3iIterator.iterate(Vector3i.zero(), 2));
        assertEquals(25, iter.size());
        for (Vector3i pos : iter) {
            assertTrue(pos.gridDistance(new Vector3i()) <= 2);
        }
    }

    @Test
    public void testThreeDistanceOnlyIteration() {
        Set<Vector3i> iter = Sets.newHashSet(Diamond3iIterator.iterateAtDistance(new Vector3i(), 3));
        assertEquals(38, iter.size());
        for (Vector3i pos : iter) {
            assertTrue(pos.gridDistance(new Vector3i()) == 3);
        }
    }
}


text:
package cite

import (
	"fmt"
	"net/url"
)

// Citation is a reference to an external resource, perhaps specifying
// a particular segment of it with some extra data.
type Citation struct {
	URL   *url.URL
	Extra string
}

func (c Citation) String() string {
	if c.Extra == "" {
		return c.URL.String()
	}
	return fmt.Sprintf("%v (%s)", c.URL, c.Extra)
}

// LinePredicate has a boolean function on line numbers, specifying some
// subset of interest.
type LinePredicate interface {
	LineIncluded(int) bool
}

//go:generate mockery -name=LinePredicate -inpkg -testonly -case=underscore

// LineSelection specifies a subset of lines of interest (like LinePredicate)
// of a known size.
type LineSelection interface {
	LinePredicate
	NumLines() int
}

//go:generate mockery -name=LineSelection -inpkg -testonly -case=underscore

// Resource is (a subset of) an external resource which can be cited.
type Resource interface {
	URL() *url.URL
	Cite() Citation
	Lines() LineSelection
}

//go:generate mockery -name=Resource -inpkg -testonly -case=underscore

// ResourceBuilder is a function that constructs a resource from a reference
// to it.
type ResourceBuilder func(Citation) (Resource, error)


text:
package nl.nn.adapterframework.filesystem;

public class MockFileSystemUtilTest extends FileSystemUtilsTest <MockFile,MockFileSystem<MockFile>>{

	@Override
	protected IFileSystemTestHelperFullControl getFileSystemTestHelper() {
		return new MockFileSystemTestHelper<MockFile>();
	}

	@Override
	protected MockFileSystem<MockFile> createFileSystem() {
		return ((MockFileSystemTestHelper<MockFile>)helper).getFileSystem();
	}

}


text:
package net.sf.jasperreports.engine.export;

import java.util.List;

import net.sf.jasperreports.engine.JRAbstractExporter;
import net.sf.jasperreports.engine.JRPrintElementIndex;
import net.sf.jasperreports.engine.JRPrintFrame;
import net.sf.jasperreports.engine.JRPrintImage;
import net.sf.jasperreports.engine.JRPrintPage;
import net.sf.jasperreports.engine.JRRuntimeException;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReportsContext;
import net.sf.jasperreports.export.HtmlExporterConfiguration;
import net.sf.jasperreports.export.HtmlReportConfiguration;
import net.sf.jasperreports.export.HtmlExporterOutput;

/**
 * @author Teodor Danciu (teodord@users.sourceforge.net)
 * @version $Id: AbstractHtmlExporter.java 7199 2014-08-27 13:58:10Z teodord $
 */
public abstract class AbstractHtmlExporter<RC extends HtmlReportConfiguration, C extends HtmlExporterConfiguration> extends JRAbstractExporter<RC, C, HtmlExporterOutput, JRHtmlExporterContext>
{
	/**
	 *
	 */
	protected static final String CSS_TEXT_ALIGN_LEFT = "left";
	protected static final String CSS_TEXT_ALIGN_RIGHT = "right";
	protected static final String CSS_TEXT_ALIGN_CENTER = "center";
	protected static final String CSS_TEXT_ALIGN_JUSTIFY = "justify";

	/**
	 *
	 */
	protected static final String HTML_VERTICAL_ALIGN_TOP = "top";
	protected static final String HTML_VERTICAL_ALIGN_MIDDLE = "middle";
	protected static final String HTML_VERTICAL_ALIGN_BOTTOM = "bottom";

	/**
	 *
	 */
	protected static final String JR_PAGE_ANCHOR_PREFIX = "JR_PAGE_ANCHOR_";
	protected static final String JR_BOOKMARK_ANCHOR_PREFIX = "JR_BKMRK_";

	protected static final float DEFAULT_ZOOM = 1f;

	public static final String IMAGE_NAME_PREFIX = "img_";
	protected static final int IMAGE_NAME_PREFIX_LEGTH = IMAGE_NAME_PREFIX.length();

	/**
	 *
	 */
	protected HtmlResourceHandler imageHandler;
	protected HtmlResourceHandler fontHandler;
	protected HtmlResourceHandler resourceHandler;

	/**
	 *
	 */
	public AbstractHtmlExporter(JasperReportsContext jasperReportsContext)
	{
		super(jasperReportsContext);
	}

	/**
	 * @deprecated Replaced by {@link HtmlExporterOutput#getImageHandler()}.
	 */
	public HtmlResourceHandler getImageHandler()
	{
		return imageHandler;
	}

	/**
	 * @deprecated Replaced by {@link HtmlExporterOutput#getImageHandler()}.
	 */
	public void setImageHandler(HtmlResourceHandler imageHandler)
	{
		this.imageHandler = imageHandler;
	}

	/**
	 * @deprecated Replaced by {@link HtmlExporterOutput#getFontHandler()}.
	 */
	public HtmlResourceHandler getFontHandler()
	{
		return fontHandler;
	}

	/**
	 * @deprecated Replaced by {@link HtmlExporterOutput#getFontHandler()}.
	 */
	public void setFontHandler(HtmlResourceHandler fontHandler)
	{
		this.fontHandler = fontHandler;
	}

	/**
	 * @deprecated Replaced by {@link HtmlExporterOutput#getResourceHandler()}.
	 */
	public HtmlResourceHandler getResourceHandler()
	{
		return resourceHandler;
	}

	/**
	 * @deprecated Replaced by {@link HtmlExporterOutput#getResourceHandler()}.
	 */
	public void setResourceHandler(HtmlResourceHandler resourceHandler)
	{
		this.resourceHandler = resourceHandler;
	}

	/**
	 *
	 */
	public static JRPrintImage getImage(List<JasperPrint> jasperPrintList, String imageName)
	{
		return getImage(jasperPrintList, getPrintElementIndex(imageName));
	}

	/**
	 *
	 */
	public static String getImageName(JRPrintElementIndex printElementIndex)
	{
		return IMAGE_NAME_PREFIX + printElementIndex.toString();
	}

	/**
	 *
	 */
	public static JRPrintImage getImage(List<JasperPrint> jasperPrintList, JRPrintElementIndex imageIndex)
	{
		JasperPrint report = jasperPrintList.get(imageIndex.getReportIndex());
		JRPrintPage page = report.getPages().get(imageIndex.getPageIndex());

		Integer[] elementIndexes = imageIndex.getAddressArray();
		Object element = page.getElements().get(elementIndexes[0].intValue());

		for (int i = 1; i < elementIndexes.length; ++i)
		{
			JRPrintFrame frame = (JRPrintFrame) element;
			element = frame.getElements().get(elementIndexes[i].intValue());
		}

		return (JRPrintImage) element;
	}

	/**
	 *
	 */
	public static JRPrintElementIndex getPrintElementIndex(String imageName)
	{
		if (!imageName.startsWith(IMAGE_NAME_PREFIX))
		{
			throw new JRRuntimeException("Invalid image name: " + imageName);
		}

		return JRPrintElementIndex.parsePrintElementIndex(imageName.substring(IMAGE_NAME_PREFIX_LEGTH));
	}

}


text:
A basic reflection class for PHP. This class is designed to be a Common Class to be utilized as an aid for testing or getting access to private/protected/public/static access to functions/variables inside of PHP.

## Usage

To include the ReflectionClass in your composer file add the repo directory into your repositories section in the composer file and add the name of the module into the require section of the composer file.

```
"repositories": {
    ...
    {
      "type": "vcs",
      "url": "https://github.com/fufu70/ReflectionClass.git"
    }
    ...
}

...

"require": {
    ...
    "fufu70/reflectionclass": "dev-master",
    ...
}
```

The Reflection class has 3 Main functions:

* `Reflection::callMethod`
* `Reflection::getProperty`
* `Reflection::setProperty`

### `Reflection::callMethod`

The `callMethod` function uses the method name, class name, arguments, and object reference of the class name given. If the classs name is `null` then it will utilize the class name of the last class called.

```php
<?php
use Common\Reflection;

// call a function in the current class
$local_function_result = Reflection::callMethod('function_name', null, []);

// call a static function in the Curl class
$static_function_result = Reflection::callMethod(
    'post',
    'Common\Curl',
    [
        'http://example.com/endpoint'
        [
        'name' => 'value',
        'another_name' => 'another_value'
        ]
    ]
);

// call a function connected with an object
$imagick = new \Imagick(realpath('/path/to/file'));

Reflection::setProperty(
    'setImageOrientation',
    'Imagick',
    Imagick::ORIENTATION_LEFTBOTTOM,
    $imagick
);
```

### `Reflection::getProperty`

The `getProperty` function uses the property name, class name, and object reference to get the property. Just like with the `callMethod` function, if the class name is empty it uses the last class called.

```php
<?php

// get the property value of the current class
$local_property_result = Reflection::getProperty('property_name');

// get the static property value of a class
$static_property_result = Reflection::getProperty('property_name', 'Class\Name');

// get the property value of a class objecty
$object = new stdClass();
$object->property_name = "property_value";
$object_property_result = Reflection::getProperty('property_name', 'stdClass', $object);
```

### `Reflection::setProperty`

The `setProperty` function uses the property name, class name, object reference, and new property value to set the property. Just like with the `getProperty` function, if the class name is empty it uses the last class called.

```php
<?php

// set the property value of the current class
$null = null;
Reflection::setProperty('property_name', null, $null, "new_property_value");

// set the static property value of a class
$null = null;
Reflection::setProperty('property_name', 'Class\Name', $null, $value);

// set the property value of a class objecty
$object = new stdClass();
$object->property_name = "property_value";
Reflection::setProperty('property_name', 'stdClass', $object, "new_property_value");
```


text:
<?php
// automatically generated by the FlatBuffers compiler, do not modify

namespace NamespaceA\NamespaceB;

use \Google\FlatBuffers\Struct;
use \Google\FlatBuffers\Table;
use \Google\FlatBuffers\ByteBuffer;
use \Google\FlatBuffers\FlatBufferBuilder;

class StructInNestedNS extends Struct
{
    /**
     * @param int $_i offset
     * @param ByteBuffer $_bb
     * @return StructInNestedNS
     **/
    public function init($_i, ByteBuffer $_bb)
    {
        $this->bb_pos = $_i;
        $this->bb = $_bb;
        return $this;
    }

    /**
     * @return int
     */
    public function GetA()
    {
        return $this->bb->getInt($this->bb_pos + 0);
    }

    /**
     * @return int
     */
    public function GetB()
    {
        return $this->bb->getInt($this->bb_pos + 4);
    }

    /**
     * @return int offset
     */
    public static function createStructInNestedNS(FlatBufferBuilder $builder, $a, $b)
    {
        $builder->prep(4, 8);
        $builder->putInt($b);
        $builder->putInt($a);
        return $builder->offset();
    }
}


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Mycologia 85(2): 252 (1993)

#### Original name
Arnoldia clavispora D.J. Gray & Morgan-Jones, 1980

### Remarks
null


text:
using System;
using EasyNetQ.FluentConfiguration;
using NUnit.Framework;

namespace EasyNetQ.Tests.FluentConfiguration
{
    [TestFixture]
    public class PublishConfigurationTests
    {
        [Test]
        public void Should_throw_if_default_topic_is_null()
        {
            Assert.That(() => new PublishConfiguration(null), Throws.InstanceOf<ArgumentNullException>());
        }

        [Test]
        public void Should_return_default_topic()
        {
            var configuration = new PublishConfiguration("default");

            configuration.WithTopic(null);

            Assert.AreEqual(configuration.Topic, "default");
        }

        [Test]
        public void Should_return_custom_topic()
        {
            var configuration = new PublishConfiguration("default");

            configuration.WithTopic("custom");

            Assert.AreEqual(configuration.Topic, "custom");
        }
    }
}


text:
package cn.codepub.patterns.proxy;

/**
 * 静态代理、JDK动态代理、CGLib代理的辅助类
 */
interface Count {
    //定义查询账户方法
    void queryCount();

    //定义更新账户方法
    void updateCount();
}

public class CountImpl implements Count {
    @Override
    public void queryCount() {
        System.out.println("the method of query count...");
    }

    @Override
    public void updateCount() {
        System.out.println("the method of update count...");
    }
}


text:
<title>
Inside the System
</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>

<?php include "../../legacy-includes/TopLogo.htmlf" ?>

<?php include "../../legacy-includes/TopAd.htmlf" ?>

<?php include "../../legacy-includes/LeftButtons.htmlf" ?>

<?php include "../../legacy-includes/BodyInsert.htmlf" ?>

Inside the System

April 6, 2007 | Page 13

STORIES BELOW:

What's really wrong with McJobs?

At risk for feminism

Heard it through the grapevine

What's really wrong with McJobs?

MCDONALD'S IS McAshamed. The fast food giant is lobbying the Oxford English Dictionary (OED) to eliminate the word "McJob" from the dictionary.

As many as one in every eight workers in the U.S. has spent time behind a McDonald's counter. Low pay, bad hours and little prospect for a stable future lead to high turnover--thus, the coining of the term "McJob."

According to the OED, a McJob is "An unstimulating, low-paid job with few prospects, esp. one created by the expansion of the service sector." The Merriam-Webster dictionary defines McJob as "a low-paying job that requires little skill and provides little opportunity of advancement."

"Dictionaries are supposed to be paragons of accuracy," Walt Riker, a company spokesman complained to the Associated Press. "And it this case, they got it completely wrong. It's a complete disservice and incredibly demeaning to a terrific workforce and a company that's been a jobs and opportunity machine for 50 years."

What Riker and other McDonald's executives ignore, however, is that the term "McJob" isn't a comment on the quality of McDonald's employees, but the lackluster employment opportunities the company provides.

In fact, the OED also has an entry for the entire "Mc" prefix, defining it as a depreciative prefix attached "chiefly to nouns to form nouns with the sense 'something that is of mass appeal, a standardized or bland variety."

--Der Spiegel, March 21, 2007

Back to the top

At risk for feminism

FEMINISM IS bad for your health--according to the mainstream media, anyway.

Last month, researchers in Sweden released a study that compared data on nine indicators of gender equality in both the private and public sectors, ranging from the proportion of men and women in management jobs to average income, local life expectancy, disability and absence from work due to illness.

"The results showed a strong link between gender equality and levels of sickness and disability for both men and women," reported Britain's Independent. "One of the findings was that equal financial resources between the sexes was associated with higher levels of sickness and disability. For both sexes, gender equality in managerial positions was associated with lower life expectancy.

"The scientists said possible explanations for the correlation is that men's health may be adversely affected by a loss of what had been seen as traditional male privileges. Women's health, meanwhile, could be being damaged by greater opportunities for risky behavior as a result of increased income, along with stress from longer working hours."

Though little additional information was given, RushLimbaugh.com drew the obvious conclusion: "Feminism makes people sick." The liberal British Independent newspaper was more qualified. "Why feminism could be bad for your health," read its headline.

As Guardian columnist Zoe Williams pointed out, "Is equality a prime factor here, or is it simply that people with managerial jobs--male and female--work harder and drink more and go to bed later than people without?"

"Even if gender parity increased your risk of illness by a factor of 100 percent," Williams added, "what do they think would happen--women would all resign our jobs and resume knitting?"

--The Guardian, March 28, 2007

Back to the top

Heard it through the grapevine

"I feel that radical Muslims who want to control the Middle East and ultimately the world, would love to see 'In God We Trust' stricken from our money and replaced with 'In Muhammad We Trust.'"

--Rep. Virgil Goode (R-Va.)

 "I am surprised, frankly, at the amount of distrust that exists in this town. And I'm sorry it's the case, and I'll work hard to try to elevate it."

--George W. Bush

"It's bad in Iraq. Does that help?"

--Bush's response to a reporter's question about Iraq

"We want that lady to have an incentive that makes her stop and think about having an abortion, and that gives her a reason to put her baby up for adoption."

--Texas state Sen. Dan Patrick, on his introduction of a bill to pay women $500 to put a child up for adoption instead of having an abortion

"[W]hen I read the Washington Post report, I was glad to know that those cockroaches were belly up. It suggested to me that at least someone was spraying for them, Mr. Chairman...And, of course, if you leave food around in a motel room or a dorm room at a college, you're going to get some mice show up at some point in time.

--Rep. Phil Gingrey (R-Ga.), on conditions at Walter Reed Army Medical Center

"I want to puke when I hear about a woman married to a woman raising children because, frankly, I think that it's child abuse to do that to children without their permission. What does a child know? Ask them when they're 16 whether they want to be raised by two lesbians or two men."

--Radio host Michael Savage

"I never saw a document...We never had a discussion about where things stood."

--U.S. Attorney General Alberto Gonzales, denying any involvement in the firing of eight U.S. attorneys

"E-mail messages and other documents released by the Justice Department in recent days suggest that Mr. Gonzales was told of the dismissal plan on at least two occasions, in 2005 when the plan was devised, and again in late 2006 shortly before the firings were carried out."

--New York Times

<?php include "../../legacy-includes/BottomNavLinks.htmlf" ?>

<?php include "../../legacy-includes/RightAdFolder.htmlf" ?>


text:
// Type definitions for co-views v2.1
// Project: https://github.com/tj/co-views/
// Definitions by: devlee <https://github.com/devlee/>, Joshua DeVinney <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace CoViews {

    /**
     * Pass views `dir` and `opts` to return a render function.
     */
    export interface Views {
        (dir?: string, opts?: CoViewsOptions): { (view: string, locals?: Object): any }
    }

    export interface CoViewsOptions {

        /**
         * default extname
         */
        ext?: string,

        /**
         * default extname
         */
        default?: string,

        /**
         * engine map
         */
        map?: Object,

        /**
         * proxy partials
         */
        partials?: Object,

        /**
         * cache compiled templates
         */
        cache?: boolean,

        /**
         * common locals data
         */
        locals?: Object
    }
}

declare var CoViews: CoViews.Views;
export = CoViews;


text:
App.SubmissionsResponseController = Ember.ObjectController.extend({

  actions: {
    saveNotes: function() {
      var onSuccess = function(post) {
        $(".alert-box").remove();
        $("textarea").before("
Your notes were saved!×
");
      };

      var onFail = function(post) {
        $(".alert-box").remove();
        $("textarea").before("
Uh oh! Something went wrong...×
");
      };
      var model = this.get('model');
      model.save().then(onSuccess, onFail);
      return model;
    }
  }
});


text:
<?php

namespace App\Services;

use Illuminate\Database\Capsule\Manager as Capsule;
use Phinx\Migration\AbstractMigration;

class Migration extends AbstractMigration
{
    /** @var \Illuminate\Database\Capsule\Manager $capsule */
    public $capsule;

    /** @var \Illuminate\Database\Schema\Builder $capsule */
    public $schema;

    public function init2()
    {
        $this->capsule = new Capsule();
        $config = app()->make('config')->get('database.connections');
        foreach ($config as $k => $v) {
            $this->capsule->addConnection($v, $k);
        }
        $default = app()->make('config')->get('database')['default'];
        if ($default) {
            if (isset($config[$default])) {
                $this->capsule->addConnection($config[$default], 'default');
            }
        }
        $this->capsule->bootEloquent();
        $this->schema = $this->capsule->schema();
    }

    public function init()
    {
        $this->capsule = new Capsule;
        $this->capsule->addConnection([
            'driver'    => 'mysql',
            'host'      => '127.0.0.1',
            'port'      => 3306,
            'database'  => 'sspanel',
            'username'  => 'sspanel',
            'password'  => 'sspanel',
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
        ]);

        $this->capsule->bootEloquent();
        $this->capsule->setAsGlobal();
        $this->schema = $this->capsule->schema();
    }

}


text:
/* DO NOT EDIT */
/* This file was generated from sharing_folders.stone */

package com.dropbox.core.v2.sharing;

import com.dropbox.core.stone.StoneDeserializerLogger;
import com.dropbox.core.stone.StoneSerializers;
import com.dropbox.core.stone.UnionSerializer;

import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;

import java.io.IOException;
import java.util.Arrays;

/**
 * Policy governing who can be a member of a shared folder. Only applicable to
 * folders owned by a user on a team.
 */
public enum MemberPolicy {
    // union sharing.MemberPolicy (sharing_folders.stone)
    /**
     * Only a teammate can become a member.
     */
    TEAM,
    /**
     * Anyone can become a member.
     */
    ANYONE,
    /**
     * Catch-all used for unknown tag values returned by the Dropbox servers.
     *
     * <p> Receiving a catch-all value typically indicates this SDK version is
     * not up to date. Consider updating your SDK version to handle the new
     * tags. </p>
     */
    OTHER; // *catch_all

    /**
     * For internal use only.
     */
    public static class Serializer extends UnionSerializer<MemberPolicy> {
        public static final Serializer INSTANCE = new Serializer();

        @Override
        public void serialize(MemberPolicy value, JsonGenerator g) throws IOException, JsonGenerationException {
            switch (value) {
                case TEAM: {
                    g.writeString("team");
                    break;
                }
                case ANYONE: {
                    g.writeString("anyone");
                    break;
                }
                default: {
                    g.writeString("other");
                }
            }
        }

        @Override
        public MemberPolicy deserialize(JsonParser p) throws IOException, JsonParseException {
            MemberPolicy value;
            boolean collapsed;
            String tag;
            if (p.getCurrentToken() == JsonToken.VALUE_STRING) {
                collapsed = true;
                tag = getStringValue(p);
                p.nextToken();
            }
            else {
                collapsed = false;
                expectStartObject(p);
                tag = readTag(p);
            }
            if (tag == null) {
                throw new JsonParseException(p, "Required field missing: " + TAG_FIELD);
            }
            else if ("team".equals(tag)) {
                value = MemberPolicy.TEAM;
            }
            else if ("anyone".equals(tag)) {
                value = MemberPolicy.ANYONE;
            }
            else {
                value = MemberPolicy.OTHER;
            }
            if (!collapsed) {
                skipFields(p);
                expectEndObject(p);
            }
            return value;
        }
    }
}


text:
#pragma once

#include "detail/message_common.h"
#include "atoms/algorithms.h"

#include <memory>
#include <unordered_map>
#include <tuple>
#include <algorithm>

namespace atoms {

template <class MessageKey>
class message_stream
{
public:
    typedef MessageKey key_type;

public:
    template <typename Message>
    void send(const key_type &eventName, const Message& msg)
    {
        for (auto& msgListener : m_listeners[eventName])
        {
            msgListener->deliver(msg);
        }
    }

    template <class Message, class T>
    void subscribe(const key_type& eventName, void (T::* method)(const Message&), T* object)
    {
        std::function<void(const Message&)> handler = std::bind(method, object, std::placeholders::_1);
        subscribe(eventName, handler);
    }

    template <class Message>
    void subscribe(const key_type& eventName, std::function<void(const Message&)> handler, const void* target=nullptr)
    {
        m_listeners[eventName].push_back(std::unique_ptr<detail::message_listener_base>(new detail::message_listener<Message>(handler, target)));
    }

    template <class Message, class T>
    void unsubscribe(const key_type& eventName, void (T::* method)(const Message&), T* target)
    {
        std::function<void(const Message&)> handler = std::bind(method, target, std::placeholders::_1);
        unsubscribe(eventName, handler, target);
    }

    template <class Message>
    void unsubscribe(const key_type& eventName, std::function<void(const Message&)> handler, const void* target=nullptr)
    {
        auto& listeners = m_listeners[eventName];
        atoms::remove_value_if(listeners,
            [&handler, target](const std::unique_ptr<detail::message_listener_base>& h)
            {
                return h->matches(handler, target);
            });
    }

    size_t handler_count(const key_type& eventName) const
    {
        const auto& it = m_listeners.find(eventName);
        if (it != m_listeners.end())
            return it->second.size();
        return 0;
    }

private:
    std::unordered_map<key_type, std::vector<std::unique_ptr<detail::message_listener_base>>> m_listeners;
};

} // namespace atoms


text:
package com.google.javascript.jscomp.disambiguate;

import static com.google.common.collect.ImmutableMap.toImmutableMap;
import static java.util.function.Function.identity;

import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSetMultimap;
import com.google.javascript.rhino.Node;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;

/** Applies renaming to property use sites following cluster computation. */
final class UseSiteRenamer {

  private static final String INVALIDATED_NAME_VALUE = "<INVALIDATED>";

  private final Consumer<Node> mutationCb;

  private final ImmutableSetMultimap.Builder<String, String> renamingIndex =
      ImmutableSetMultimap.builder();

  UseSiteRenamer(Consumer<Node> mutationCb) {
    this.mutationCb = mutationCb;
  }

  /**
   * Renames all references to {@code prop}.
   *
   * <p>If {@code prop} is invalid or should otherwise not be renamed, the AST will not be changed.
   */
  void renameUses(PropertyClustering prop) {
    if (prop.isInvalidated()) {
      this.renamingIndex.put(prop.getName(), INVALIDATED_NAME_VALUE);
      return;
    }

    ImmutableMap<ColorGraphNode, String> clusterNames = createAllClusterNames(prop);

    if (clusterNames.size() <= 1) {
      /**
       * Don't bother renaming clusters with a single element. Renaming won't actaully disambiguate
       * anything in this case, so skip the work.
       */
      this.renamingIndex.put(prop.getName(), prop.getName());
      return;
    }

    this.renamingIndex.putAll(prop.getName(), clusterNames.values());
    for (Map.Entry<Node, ColorGraphNode> usage : prop.getUseSites().entrySet()) {
      Node site = usage.getKey();
      ColorGraphNode flatRep = prop.getClusters().find(usage.getValue());
      String newName = clusterNames.get(flatRep);
      if (!Objects.equals(newName, site.getString())) {
        site.setString(newName);
        this.mutationCb.accept(site);
      }
    }
  }

  ImmutableSetMultimap<String, String> getRenamingIndex() {
    return this.renamingIndex.build();
  }

  /**
   * Creates a unique name for each cluster in {@code prop} and maps it to the cluster
   * representative.
   */
  private static ImmutableMap<ColorGraphNode, String> createAllClusterNames(
      PropertyClustering prop) {
    return prop.getClusters().allRepresentatives().stream()
        .collect(toImmutableMap(identity(), (r) -> createClusterName(prop, r)));
  }

  private static String createClusterName(PropertyClustering prop, ColorGraphNode rep) {
    if (Objects.equals(prop.getOriginalNameClusterRep(), rep)) {
      return prop.getName();
    }

    return "JSC$" + rep.getIndex() + "_" + prop.getName();
  }
}


text:
class Panel::DashboardController < PanelController
  def index
  end
end


text:
#pragma once

#include <stdint.h>

#include <folly/wangle/acceptor/TransportInfo.h>

namespace proxygen {

typedef folly::HTTPHeaderSize HTTPHeaderSize;

}


text:
class Rock::Group < Rock::Base
  self.table_name = 'Group'
  self.primary_key = :Id
end


text:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Windows.Media.Media3D;

namespace _3DTools
{
    /// <summary>
    ///     Matrix3DStack is a stack of Matrix3Ds.
    /// </summary>
    public class Matrix3DStack : IEnumerable<Matrix3D>, ICollection
    {
        public Matrix3D Peek()
        {
            return _storage[_storage.Count - 1];
        }

        public void Push(Matrix3D item)
        {
            _storage.Add(item);
        }

        public void Append(Matrix3D item)
        {
            if (Count > 0)
            {
                Matrix3D top = Peek();
                top.Append(item);
                Push(top);
            }
            else
            {
                Push(item);
            }
        }

        public void Prepend(Matrix3D item)
        {
            if (Count > 0)
            {
                Matrix3D top = Peek();
                top.Prepend(item);
                Push(top);
            }
            else
            {
                Push(item);
            }
        }

        public Matrix3D Pop()
        {
            Matrix3D result = Peek();
            _storage.RemoveAt(_storage.Count - 1);

            return result;
        }

        public int Count
        {
            get { return _storage.Count; }
        }

        void Clear()
        {
            _storage.Clear();
        }

        bool Contains(Matrix3D item)
        {
            return _storage.Contains(item);
        }

        private readonly List<Matrix3D> _storage = new List<Matrix3D>();

        #region ICollection Members

        void ICollection.CopyTo(Array array, int index)
        {
            ((ICollection)_storage).CopyTo(array, index);
        }

        bool ICollection.IsSynchronized
        {
            get { return ((ICollection)_storage).IsSynchronized; }
        }

        object ICollection.SyncRoot
        {
            get { return ((ICollection)_storage).SyncRoot; }
        }

        #endregion

        #region IEnumerable Members

        IEnumerator IEnumerable.GetEnumerator()
        {
            return ((IEnumerable<Matrix3D>)this).GetEnumerator();
        }

        #endregion

        #region IEnumerable<Matrix3D> Members

        IEnumerator<Matrix3D> IEnumerable<Matrix3D>.GetEnumerator()
        {
            for (int i = _storage.Count - 1; i >= 0; i--)
            {
                yield return _storage[i];
            }
        }

        #endregion
    }
}


text:
package org.hibernate.hql.ast.util;

import antlr.collections.AST;

/**
 * A visitor for traversing an AST tree.
 *
 * @author Steve Ebersole
 */
public class NodeTraverser {
	public static interface VisitationStrategy {
		public void visit(AST node);
	}

	private final VisitationStrategy strategy;

	public NodeTraverser(VisitationStrategy strategy) {
		this.strategy = strategy;
	}

	/**
	 * Traverse the AST tree depth first.
	 * <p/>
	 * Note that the AST passed in is not visited itself.  Visitation starts
	 * with its children.
	 *
	 * @param ast
	 */
	public void traverseDepthFirst(AST ast) {
		if ( ast == null ) {
			throw new IllegalArgumentException( "node to traverse cannot be null!" );
		}
		visitDepthFirst( ast.getFirstChild() );
	}

	private void visitDepthFirst(AST ast) {
		if ( ast == null ) {
			return;
		}
		strategy.visit( ast );
		visitDepthFirst( ast.getFirstChild() );
		visitDepthFirst( ast.getNextSibling() );
	}
}


text:
<!doctype html>

<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Record your interview</title>

<link href="css/simpleGridTemplate.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">

<meta name="description" content="Glyphicon support for Twitter's Bootstrap">

		<link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">

<link href="css/bootstrap.css" rel="stylesheet" type="text/css">

Exit

 Did you know what you wanted to do for a living when you graduated from high school?
.

Check your setup!

Is it bright enough and does your interviewee's face look well lit?

      <button type="button" class="btn btn-success" onclick="location.href = 'setup3.html';">Yes</button>
      <button type="button" class="btn btn-warning" onclick="location.href = 'lighting_help.html';">No</button>

Skip

©2017 - FOR A LIVING


text:
<?xml version="1.0" encoding="utf-8"?>
<!--

      This XML contains the contents of an EARTHTIME tracer.

      Copyright 2006-2016 EARTHTIME

      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.

      Website: www.earth-time.org

      Created: 1.January.2008

-->
<Tracer xmlns="https://raw.githubusercontent.com/EARTHTIME/Schema"
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="https://raw.githubusercontent.com/EARTHTIME/Schema
                            https://raw.githubusercontent.com/EARTHTIME/Schema/master/TracerXMLSchema.xsd">

  <tracerName>ET535</tracerName>
  <versionNumber>1</versionNumber>
  <tracerType>mixed 205-233-235</tracerType>
  <labName>EARTHTIME</labName>
  <dateCertified>2008-01-01</dateCertified>
  <ratios>
    <ValueModel>
      <name>r206_204t</name>
      <value>3.7604</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.22</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r207_204t</name>
      <value>3.04337973454192</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.22</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r208_204t</name>
      <value>7.47549847921595</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.21</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r207_206t</name>
      <value>0.809323405632891</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.16</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r206_208t</name>
      <value>0.50303</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.13</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r206_205t</name>
      <value>0.00034401</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.10</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r207_205t</name>
      <value>0.000278415344771771</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.19</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r208_205t</name>
      <value>0.00068387571317814</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.16</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r202_205t</name>
      <value>0.000</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.0</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r238_235t</name>
      <value>0.003087</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.016</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r233_235t</name>
      <value>0.99464</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.016</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r233_236t</name>
      <value>0.00</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.00</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>r235_205t</name>
      <value>100.180030407097</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.0041</oneSigma>
    </ValueModel>
  </ratios>
  <isotopeConcentrations>
    <ValueModel>
      <name>concPb205t</name>
      <value>0.00000000000988366855861366</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.01</oneSigma>
    </ValueModel>
    <ValueModel>
      <name>concU235t</name>
      <value>0.000000000990146216735586</value>
      <uncertaintyType>PCT</uncertaintyType>
      <oneSigma>0.01</oneSigma>
    </ValueModel>
  </isotopeConcentrations>
</Tracer>


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FluentMigrator.Commands.Example
{
    [Migration(1)]
    public class CreateUserTable : Migration
    {
        public override void Up()
        {
            Create.Table("Users")
                .WithColumn("Id").AsGuid();
        }

        public override void Down()
        {
            Delete.Table("Users");
        }
    }
}


text:
namespace Othello
{
    public enum OthelloDisc {none, white, black};
}


text:
// Copyright 2013 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the COPYING file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.
// -----------------------------------------------------------------------------
//
// Alpha plane de-quantization utility
//
// Author:  Vikas Arora (vikasa@google.com)

#ifndef WEBP_UTILS_QUANT_LEVELS_DEC_H_
#define WEBP_UTILS_QUANT_LEVELS_DEC_H_

#include "../webp/types.h"

#ifdef __cplusplus
extern "C" {
#endif

// Apply post-processing to input 'data' of size 'width'x'height' assuming that
// the source was quantized to a reduced number of levels. 'stride' is in bytes.
// Strength is in [0..100] and controls the amount of dithering applied.
// Returns false in case of error (data is NULL, invalid parameters,
// malloc failure, ...).
int WebPDequantizeLevels(uint8_t* const data, int width, int height, int stride,
                         int strength);

#ifdef __cplusplus
}    // extern "C"
#endif

#endif  /* WEBP_UTILS_QUANT_LEVELS_DEC_H_ */


text:
package com.devmarvel.creditcardentry.fields;

import android.content.Context;
import android.text.InputFilter;
import android.util.AttributeSet;

import com.devmarvel.creditcardentry.R;

public class ZipCodeText extends CreditEntryFieldBase {

	private int maxChars;

    private String mHelperText;

	public ZipCodeText(Context context) {
		super(context);
		init();
	}

	public ZipCodeText(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}

	public ZipCodeText(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		init();
	}

	void init() {
		super.init();
		maxChars = 5;
		setMaxChars(maxChars);
		setHint("   ZIP   ");
	}

	@Override
	public void setHelperText(String helperText) {
		mHelperText = helperText;
	}

	@Override
	public String getHelperText() {
		return (mHelperText != null ? mHelperText : context.getString(R.string.ZipHelp));
	}

	@Override
    public void textChanged(CharSequence s, int start, int before, int end) {
        // Check if only digits (for US zip codes)
        if (s.toString().matches("^\\d+$")) {
            if (s.length() == maxChars) {
                setValid(true);
                delegate.onZipCodeValid();
            } else {
                setValid(false);
            }

            // For other countries like the UK, postal codes are alphanumeric
            // and can be anything from 3 to max chars.
        } else {
            if (s.length() > 3) {
                setValid(true);
            }
            if (s.length() == maxChars && maxChars > 0) {
                delegate.onZipCodeValid();
            } else {
                setValid(false);
            }
        }
    }

	public void formatAndSetText(String text) {
		this.removeTextChangedListener(this);
		this.setText(text);
		this.addTextChangedListener(this);
	}

	public void setMaxChars(int maxChars){
		if (maxChars <= 0) {
			return;
		}
		this.maxChars = maxChars;
		setFilters(new InputFilter[]{new InputFilter.LengthFilter(maxChars)});
	}
}


text:
using Lucene.Net.Store;
using Lucene.Net.Support;

namespace Lucene.Net.Codecs.Lucene3x
{

    /// <summary>
    /// PreFlexRW skiplist implementation.
    /// <para/>
    /// @lucene.experimental
    /// </summary>
    public class PreFlexRWSkipListWriter : MultiLevelSkipListWriter
    {
        private readonly int[] lastSkipDoc; // LUCENENET: marked readonly
        private readonly int[] lastSkipPayloadLength; // LUCENENET: marked readonly
        private readonly long[] lastSkipFreqPointer; // LUCENENET: marked readonly
        private readonly long[] lastSkipProxPointer; // LUCENENET: marked readonly

        private readonly IndexOutput freqOutput; // LUCENENET: marked readonly
        private readonly IndexOutput proxOutput; // LUCENENET: marked readonly

        private int curDoc;
        private bool curStorePayloads;
        private int curPayloadLength;
        private long curFreqPointer;
        private long curProxPointer;

        public PreFlexRWSkipListWriter(int skipInterval, int numberOfSkipLevels, int docCount, IndexOutput freqOutput, IndexOutput proxOutput)
            : base(skipInterval, numberOfSkipLevels, docCount)
        {
            this.freqOutput = freqOutput;
            this.proxOutput = proxOutput;

            lastSkipDoc = new int[numberOfSkipLevels];
            lastSkipPayloadLength = new int[numberOfSkipLevels];
            lastSkipFreqPointer = new long[numberOfSkipLevels];
            lastSkipProxPointer = new long[numberOfSkipLevels];
        }

        /// <summary>
        /// Sets the values for the current skip data.
        /// </summary>
        public virtual void SetSkipData(int doc, bool storePayloads, int payloadLength)
        {
            this.curDoc = doc;
            this.curStorePayloads = storePayloads;
            this.curPayloadLength = payloadLength;
            this.curFreqPointer = freqOutput.Position; // LUCENENET specific: Renamed from getFilePointer() to match FileStream
            if (proxOutput != null)
            {
                this.curProxPointer = proxOutput.Position; // LUCENENET specific: Renamed from getFilePointer() to match FileStream
            }
        }

        public override void ResetSkip()
        {
            base.ResetSkip();
            Arrays.Fill(lastSkipDoc, 0);
            Arrays.Fill(lastSkipPayloadLength, -1); // we don't have to write the first length in the skip list
            Arrays.Fill(lastSkipFreqPointer, freqOutput.Position); // LUCENENET specific: Renamed from getFilePointer() to match FileStream
            if (proxOutput != null)
            {
                Arrays.Fill(lastSkipProxPointer, proxOutput.Position); // LUCENENET specific: Renamed from getFilePointer() to match FileStream
            }
        }

        protected override void WriteSkipData(int level, IndexOutput skipBuffer)
        {
            // To efficiently store payloads in the posting lists we do not store the length of
            // every payload. Instead we omit the length for a payload if the previous payload had
            // the same length.
            // However, in order to support skipping the payload length at every skip point must be known.
            // So we use the same length encoding that we use for the posting lists for the skip data as well:
            // Case 1: current field does not store payloads
            //           SkipDatum                 --> DocSkip, FreqSkip, ProxSkip
            //           DocSkip,FreqSkip,ProxSkip --> VInt
            //           DocSkip records the document number before every SkipInterval th  document in TermFreqs.
            //           Document numbers are represented as differences from the previous value in the sequence.
            // Case 2: current field stores payloads
            //           SkipDatum                 --> DocSkip, PayloadLength?, FreqSkip,ProxSkip
            //           DocSkip,FreqSkip,ProxSkip --> VInt
            //           PayloadLength             --> VInt
            //         In this case DocSkip/2 is the difference between
            //         the current and the previous value. If DocSkip
            //         is odd, then a PayloadLength encoded as VInt follows,
            //         if DocSkip is even, then it is assumed that the
            //         current payload length equals the length at the previous
            //         skip point
            if (curStorePayloads)
            {
                int delta = curDoc - lastSkipDoc[level];
                if (curPayloadLength == lastSkipPayloadLength[level])
                {
                    // the current payload length equals the length at the previous skip point,
                    // so we don't store the length again
                    skipBuffer.WriteVInt32(delta * 2);
                }
                else
                {
                    // the payload length is different from the previous one. We shift the DocSkip,
                    // set the lowest bit and store the current payload length as VInt.
                    skipBuffer.WriteVInt32(delta * 2 + 1);
                    skipBuffer.WriteVInt32(curPayloadLength);
                    lastSkipPayloadLength[level] = curPayloadLength;
                }
            }
            else
            {
                // current field does not store payloads
                skipBuffer.WriteVInt32(curDoc - lastSkipDoc[level]);
            }

            skipBuffer.WriteVInt32((int)(curFreqPointer - lastSkipFreqPointer[level]));
            skipBuffer.WriteVInt32((int)(curProxPointer - lastSkipProxPointer[level]));

            lastSkipDoc[level] = curDoc;

            lastSkipFreqPointer[level] = curFreqPointer;
            lastSkipProxPointer[level] = curProxPointer;
        }
    }
}


text:
@interface ESTNearableVO : NSObject <NSCoding>

@property (nonatomic, strong) NSString *identifier;
@property (nonatomic, assign) ESTNearableType type;
@property (nonatomic, assign) ESTColor color;
@property (nonatomic, strong) NSString *indoorLocationName;
@property (nonatomic, strong) NSString *indoorLocationIdentifier;

- (instancetype)initWithData:(NSDictionary *)data;

@end


text:
namespace {

void TestProcess(const std::string& name,
                 const std::vector<base::CommandLine::StringType>& args) {
  base::FilePath exe_dir;
  ASSERT_TRUE(PathService::Get(base::DIR_EXE, &exe_dir));
  base::FilePath test_binary =
      exe_dir.AppendASCII("boringssl_" + name);
  base::CommandLine cmd(test_binary);

  for (size_t i = 0; i < args.size(); ++i) {
    cmd.AppendArgNative(args[i]);
  }

  std::string output;
  EXPECT_TRUE(base::GetAppOutput(cmd, &output));
  // Account for Windows line endings.
  base::ReplaceSubstringsAfterOffset(&output, 0, "\r\n", "\n");

  const bool ok = output.size() >= 5 &&
                  memcmp("PASS\n", &output[output.size() - 5], 5) == 0 &&
                  (output.size() == 5 || output[output.size() - 6] == '\n');

  EXPECT_TRUE(ok) << output;
}

void TestSimple(const std::string& name) {
  std::vector<base::CommandLine::StringType> empty;
  TestProcess(name, empty);
}

bool BoringSSLPath(base::FilePath* result) {
  if (!PathService::Get(base::DIR_SOURCE_ROOT, result))
    return false;

  *result = result->Append(FILE_PATH_LITERAL("third_party"));
  *result = result->Append(FILE_PATH_LITERAL("boringssl"));
  *result = result->Append(FILE_PATH_LITERAL("src"));
  return true;
}

bool CryptoCipherTestPath(base::FilePath *result) {
  if (!BoringSSLPath(result))
    return false;

  *result = result->Append(FILE_PATH_LITERAL("crypto"));
  *result = result->Append(FILE_PATH_LITERAL("cipher"));
  *result = result->Append(FILE_PATH_LITERAL("test"));
  return true;
}

}  // anonymous namespace

struct AEADTest {
  const base::CommandLine::CharType *name;
  const base::FilePath::CharType *test_vector_filename;
};

static const AEADTest kAEADTests[] = {
    {FILE_PATH_LITERAL("aes-128-gcm"),
     FILE_PATH_LITERAL("aes_128_gcm_tests.txt")},
    {FILE_PATH_LITERAL("aes-128-key-wrap"),
     FILE_PATH_LITERAL("aes_128_key_wrap_tests.txt")},
    {FILE_PATH_LITERAL("aes-256-gcm"),
     FILE_PATH_LITERAL("aes_256_gcm_tests.txt")},
    {FILE_PATH_LITERAL("aes-256-key-wrap"),
     FILE_PATH_LITERAL("aes_256_key_wrap_tests.txt")},
    {FILE_PATH_LITERAL("chacha20-poly1305"),
     FILE_PATH_LITERAL("chacha20_poly1305_tests.txt")},
    {FILE_PATH_LITERAL("rc4-md5-tls"),
     FILE_PATH_LITERAL("rc4_md5_tls_tests.txt")},
    {FILE_PATH_LITERAL("rc4-sha1-tls"),
     FILE_PATH_LITERAL("rc4_sha1_tls_tests.txt")},
    {FILE_PATH_LITERAL("aes-128-cbc-sha1-tls"),
     FILE_PATH_LITERAL("aes_128_cbc_sha1_tls_tests.txt")},
    {FILE_PATH_LITERAL("aes-128-cbc-sha1-tls-implicit-iv"),
     FILE_PATH_LITERAL("aes_128_cbc_sha1_tls_implicit_iv_tests.txt")},
    {FILE_PATH_LITERAL("aes-128-cbc-sha256-tls"),
     FILE_PATH_LITERAL("aes_128_cbc_sha256_tls_tests.txt")},
    {FILE_PATH_LITERAL("aes-256-cbc-sha1-tls"),
     FILE_PATH_LITERAL("aes_256_cbc_sha1_tls_tests.txt")},
    {FILE_PATH_LITERAL("aes-256-cbc-sha1-tls-implicit-iv"),
     FILE_PATH_LITERAL("aes_256_cbc_sha1_tls_implicit_iv_tests.txt")},
    {FILE_PATH_LITERAL("aes-256-cbc-sha256-tls"),
     FILE_PATH_LITERAL("aes_256_cbc_sha256_tls_tests.txt")},
    {FILE_PATH_LITERAL("aes-256-cbc-sha384-tls"),
     FILE_PATH_LITERAL("aes_256_cbc_sha384_tls_tests.txt")},
    {FILE_PATH_LITERAL("des-ede3-cbc-sha1-tls"),
     FILE_PATH_LITERAL("des_ede3_cbc_sha1_tls_tests.txt")},
    {FILE_PATH_LITERAL("des-ede3-cbc-sha1-tls-implicit-iv"),
     FILE_PATH_LITERAL("des_ede3_cbc_sha1_tls_implicit_iv_tests.txt")},
    {FILE_PATH_LITERAL("rc4-md5-ssl3"),
     FILE_PATH_LITERAL("rc4_md5_ssl3_tests.txt")},
    {FILE_PATH_LITERAL("rc4-sha1-ssl3"),
     FILE_PATH_LITERAL("rc4_sha1_ssl3_tests.txt")},
    {FILE_PATH_LITERAL("aes-128-cbc-sha1-ssl3"),
     FILE_PATH_LITERAL("aes_128_cbc_sha1_ssl3_tests.txt")},
    {FILE_PATH_LITERAL("aes-256-cbc-sha1-ssl3"),
     FILE_PATH_LITERAL("aes_256_cbc_sha1_ssl3_tests.txt")},
    {FILE_PATH_LITERAL("des-ede3-cbc-sha1-ssl3"),
     FILE_PATH_LITERAL("des_ede3_cbc_sha1_ssl3_tests.txt")},
    {FILE_PATH_LITERAL("aes-128-ctr-hmac-sha256"),
     FILE_PATH_LITERAL("aes_128_ctr_hmac_sha256.txt")},
    {FILE_PATH_LITERAL("aes-256-ctr-hmac-sha256"),
     FILE_PATH_LITERAL("aes_256_ctr_hmac_sha256.txt")},
};

TEST(BoringSSL, AEADs) {
  base::FilePath test_vector_dir;
  ASSERT_TRUE(CryptoCipherTestPath(&test_vector_dir));

  for (size_t i = 0; i < arraysize(kAEADTests); i++) {
    const AEADTest& test = kAEADTests[i];
    SCOPED_TRACE(test.name);

    base::FilePath test_vector_file =
        test_vector_dir.Append(test.test_vector_filename);

    std::vector<base::CommandLine::StringType> args;
    args.push_back(test.name);
    args.push_back(test_vector_file.value());

    TestProcess("aead_test", args);
  }
}

TEST(BoringSSL, AES) {
  TestSimple("aes_test");
}

TEST(BoringSSL, Base64) {
  TestSimple("base64_test");
}

TEST(BoringSSL, BIO) {
  TestSimple("bio_test");
}

TEST(BoringSSL, BN) {
  TestSimple("bn_test");
}

TEST(BoringSSL, ByteString) {
  TestSimple("bytestring_test");
}

TEST(BoringSSL, Cipher) {
  base::FilePath data_file;
  ASSERT_TRUE(CryptoCipherTestPath(&data_file));
  data_file = data_file.Append(FILE_PATH_LITERAL("cipher_test.txt"));

  std::vector<base::CommandLine::StringType> args;
  args.push_back(data_file.value());

  TestProcess("cipher_test", args);
}

TEST(BoringSSL, CMAC) {
  TestSimple("cmac_test");
}

TEST(BoringSSL, ConstantTime) {
  TestSimple("constant_time_test");
}

TEST(BoringSSL, DH) {
  TestSimple("dh_test");
}

TEST(BoringSSL, Digest) {
  TestSimple("digest_test");
}

TEST(BoringSSL, DSA) {
  TestSimple("dsa_test");
}

TEST(BoringSSL, EC) {
  TestSimple("ec_test");
}

TEST(BoringSSL, ECDSA) {
  TestSimple("ecdsa_test");
}

TEST(BoringSSL, ED25519) {
  base::FilePath data_file;
  ASSERT_TRUE(BoringSSLPath(&data_file));
  data_file = data_file.Append(FILE_PATH_LITERAL("crypto"));
  data_file = data_file.Append(FILE_PATH_LITERAL("curve25519"));
  data_file = data_file.Append(FILE_PATH_LITERAL("ed25519_tests.txt"));

  std::vector<base::CommandLine::StringType> args;
  args.push_back(data_file.value());

  TestProcess("ed25519_test", args);
}

TEST(BoringSSL, ERR) {
  TestSimple("err_test");
}

TEST(BoringSSL, EVP) {
  base::FilePath data_file;
  ASSERT_TRUE(BoringSSLPath(&data_file));
  data_file = data_file.Append(FILE_PATH_LITERAL("crypto"));
  data_file = data_file.Append(FILE_PATH_LITERAL("evp"));
  data_file = data_file.Append(FILE_PATH_LITERAL("evp_tests.txt"));

  std::vector<base::CommandLine::StringType> args;
  args.push_back(data_file.value());

  TestProcess("evp_test", args);
}

TEST(BoringSSL, EVPExtra) {
  TestSimple("evp_extra_test");
}

TEST(BoringSSL, ExampleMul) {
  TestSimple("example_mul");
}

TEST(BoringSSL, GCM) {
  TestSimple("gcm_test");
}

TEST(BoringSSL, HKDF) {
  TestSimple("hkdf_test");
}

TEST(BoringSSL, HMAC) {
  base::FilePath data_file;
  ASSERT_TRUE(BoringSSLPath(&data_file));
  data_file = data_file.Append(FILE_PATH_LITERAL("crypto"));
  data_file = data_file.Append(FILE_PATH_LITERAL("hmac"));
  data_file = data_file.Append(FILE_PATH_LITERAL("hmac_tests.txt"));

  std::vector<base::CommandLine::StringType> args;
  args.push_back(data_file.value());

  TestProcess("hmac_test", args);
}

TEST(BoringSSL, LH) {
  TestSimple("lhash_test");
}

TEST(BoringSSL, PBKDF) {
  TestSimple("pbkdf_test");
}

TEST(BoringSSL, Poly1305) {
  base::FilePath data_file;
  ASSERT_TRUE(BoringSSLPath(&data_file));
  data_file = data_file.Append(FILE_PATH_LITERAL("crypto"));
  data_file = data_file.Append(FILE_PATH_LITERAL("poly1305"));
  data_file = data_file.Append(FILE_PATH_LITERAL("poly1305_test.txt"));

  std::vector<base::CommandLine::StringType> args;
  args.push_back(data_file.value());

  TestProcess("poly1305_test", args);
}

TEST(BoringSSL, PKCS7) {
  TestSimple("pkcs7_test");
}

TEST(BoringSSL, PKCS8) {
  TestSimple("pkcs8_test");
}

TEST(BoringSSL, PKCS12) {
  TestSimple("pkcs12_test");
}

TEST(BoringSSL, PQueue) {
  TestSimple("pqueue_test");
}

TEST(BoringSSL, RefcountTest) {
  TestSimple("refcount_test");
}

TEST(BoringSSL, RSA) {
  TestSimple("rsa_test");
}

TEST(BoringSSL, SSL) {
  TestSimple("ssl_test");
}

TEST(BoringSSL, TabTest) {
  TestSimple("tab_test");
}

TEST(BoringSSL, Thread) {
  TestSimple("thread_test");
}

TEST(BoringSSL, V3NameTest) {
  TestSimple("v3name_test");
}

TEST(BoringSSL, X25519) {
  TestSimple("x25519_test");
}


text:
package org.apache.camel.core.xml.util.jsse;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;

import org.apache.camel.support.jsse.SSLContextClientParameters;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlTransient
public abstract class AbstractSSLContextClientParametersFactoryBean extends AbstractBaseSSLContextParametersFactoryBean<SSLContextClientParameters> {

    @XmlElement(name = "sniHostNames")
    private SNIHostNamesDefinition sniHostNamesDefinition;

    @Override
    protected SSLContextClientParameters createInstance() {
        SSLContextClientParameters newInstance = new SSLContextClientParameters();
        newInstance.setCamelContext(getCamelContext());
        if (sniHostNamesDefinition != null) {
            newInstance.addAllSniHostNames(sniHostNamesDefinition.getSniHostName());
        }
        return newInstance;
    }

    @Override
    public Class<SSLContextClientParameters> getObjectType() {
        return SSLContextClientParameters.class;
    }

    public SNIHostNamesDefinition getSniHostNamesDefinition() {
        return sniHostNamesDefinition;
    }
}


text:
namespace google_calendar_api {
using namespace googleapis;

// Object factory method (static).
FreeBusyResponse* FreeBusyResponse::New() {
  return new client::JsonCppCapsule<FreeBusyResponse>;
}

// Standard immutable constructor.
FreeBusyResponse::FreeBusyResponse(const Json::Value& storage)
  : client::JsonCppData(storage) {
}

// Standard mutable constructor.
FreeBusyResponse::FreeBusyResponse(Json::Value* storage)
  : client::JsonCppData(storage) {
}

// Standard destructor.
FreeBusyResponse::~FreeBusyResponse() {
}

// Properties.

const client::JsonCppAssociativeArray<FreeBusyCalendar > FreeBusyResponse::get_calendars() const {
   const Json::Value& storage = Storage("calendars");
   return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<FreeBusyCalendar > >(storage);
}

client::JsonCppAssociativeArray<FreeBusyCalendar > FreeBusyResponse::mutable_calendars() {
  Json::Value* storage = MutableStorage("calendars");
  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<FreeBusyCalendar > >(storage);
}

const client::JsonCppAssociativeArray<FreeBusyGroup > FreeBusyResponse::get_groups() const {
   const Json::Value& storage = Storage("groups");
   return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<FreeBusyGroup > >(storage);
}

client::JsonCppAssociativeArray<FreeBusyGroup > FreeBusyResponse::mutable_groups() {
  Json::Value* storage = MutableStorage("groups");
  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<FreeBusyGroup > >(storage);
}
}  // namespace google_calendar_api


text:
class TabsPage
  include PageObject

  page_url "file://#{File.expand_path(File.dirname(__FILE__) + '/../../html/tabs.html')}"

  jqueryui_tabs(:tabs, :class => 'ui-tabs-nav')

  def tabs
    tabs_element
  end
end


text:
using MonoTouch.Foundation;
using System.CodeDom.Compiler;

namespace AltinnApp.iOS
{
	[Register ("LoginController")]
	partial class LoginController
	{
		[Outlet]
		MonoTouch.UIKit.UILabel _IntroText { get; set; }

		[Outlet]
		MonoTouch.UIKit.UIButton _LoginButton { get; set; }

		[Outlet]
		MonoTouch.UIKit.UIButton OpenLanguage { get; set; }

		[Action ("Login:")]
		partial void Login (MonoTouch.Foundation.NSObject sender);

		void ReleaseDesignerOutlets ()
		{
			if (_IntroText != null) {
				_IntroText.Dispose ();
				_IntroText = null;
			}

			if (_LoginButton != null) {
				_LoginButton.Dispose ();
				_LoginButton = null;
			}

			if (OpenLanguage != null) {
				OpenLanguage.Dispose ();
				OpenLanguage = null;
			}
		}
	}
}