text:
// Copyright 2015 Coinprism, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;

namespace Openchain.Infrastructure.Tests
{
    public class TransactionValidatorTests
    {
        private static readonly ByteString validNamespace = ByteString.Parse("abcdef");
        private static readonly ByteString invalidNamespace = ByteString.Parse("abcdef00");
        private static readonly Dictionary<string, long> defaultAccounts = new Dictionary<string, long>()
        {
            ["/account/1/"] = 90,
            ["/account/2/"] = 110,
        };

        private TestStore store;

        [Fact]
        public async Task PostTransaction_Success()
        {
            TransactionValidator validator = CreateValidator(defaultAccounts);
            ByteString mutation = CreateMutation(validNamespace);

            ByteString result = await validator.PostTransaction(mutation, new SignatureEvidence[0]);

            Assert.Equal(32, result.Value.Count);
            Assert.Equal(1, store.AddedTransactions.Count);
        }

        [Fact]
        public async Task PostTransaction_GenerateValidMutations()
        {
            Mutation generatedMutation = MessageSerializer.DeserializeMutation(CreateMutation(validNamespace));

            TransactionValidator validator = CreateValidator(defaultAccounts, generatedMutation);
            ByteString mutation = CreateMutation(validNamespace);

            ByteString result = await validator.PostTransaction(mutation, new SignatureEvidence[0]);

            Assert.Equal(32, result.Value.Count);
            Assert.Equal(2, store.AddedTransactions.Count);
        }

        [Fact]
        public async Task PostTransaction_InvalidMutation()
        {
            TransactionValidator validator = CreateValidator(new Dictionary<string, long>());
            ByteString mutation = ByteString.Parse("aa");

            TransactionInvalidException exception = await Assert.ThrowsAsync<TransactionInvalidException>(
                () => validator.PostTransaction(mutation, new SignatureEvidence[0]));
            Assert.Equal("InvalidMutation", exception.Reason);
            Assert.Equal(null, store.AddedTransactions);
        }

        [Fact]
        public async Task PostTransaction_GenerateInvalidMutations()
        {
            Mutation generatedMutation = MessageSerializer.DeserializeMutation(CreateMutation(invalidNamespace));

            TransactionValidator validator = CreateValidator(defaultAccounts, generatedMutation);
            ByteString mutation = CreateMutation(validNamespace);

            TransactionInvalidException exception = await Assert.ThrowsAsync<TransactionInvalidException>(
                () => validator.PostTransaction(mutation, new SignatureEvidence[0]));
            Assert.Equal("InvalidNamespace", exception.Reason);
            Assert.Equal(null, store.AddedTransactions);
        }

        [Fact]
        public async Task PostTransaction_MaxKeySize()
        {
            Dictionary<string, long> accounts = new Dictionary<string, long>();

            TransactionValidator validator = CreateValidator(accounts);
            Mutation mutation = new Mutation(
                validNamespace,
                new Record[]
                {
                    new Record(
                        new AccountKey(LedgerPath.Parse("/"), LedgerPath.Parse($"/{new string('a', 512)}/")).Key.ToBinary(),
                        new ByteString(BitConverter.GetBytes(100L).Reverse()),
                        ByteString.Empty)
                },
                ByteString.Empty);

            TransactionInvalidException exception = await Assert.ThrowsAsync<TransactionInvalidException>(
                () => validator.PostTransaction(new ByteString(MessageSerializer.SerializeMutation(mutation)), new SignatureEvidence[0]));
            Assert.Equal("InvalidMutation", exception.Reason);
            Assert.Equal(null, store.AddedTransactions);
        }

        [Fact]
        public async Task PostTransaction_EmptyMutation()
        {
            Dictionary<string, long> accounts = new Dictionary<string, long>();

            TransactionValidator validator = CreateValidator(accounts);
            Mutation mutation = new Mutation(
                validNamespace,
                new Record[0],
                ByteString.Empty);

            TransactionInvalidException exception = await Assert.ThrowsAsync<TransactionInvalidException>(
                () => validator.PostTransaction(new ByteString(MessageSerializer.SerializeMutation(mutation)), new SignatureEvidence[0]));
            Assert.Equal("InvalidMutation", exception.Reason);
            Assert.Equal(null, store.AddedTransactions);
        }

        [Fact]
        public async Task PostTransaction_UnbalancedTransaction()
        {
            Dictionary<string, long> accounts = new Dictionary<string, long>()
            {
                ["/account/1/"] = 100,
                ["/account/2/"] = 110,
            };

            TransactionValidator validator = CreateValidator(accounts);
            ByteString mutation = CreateMutation(validNamespace);

            TransactionInvalidException exception = await Assert.ThrowsAsync<TransactionInvalidException>(
                () => validator.PostTransaction(mutation, new SignatureEvidence[0]));
            Assert.Equal("UnbalancedTransaction", exception.Reason);
            Assert.Equal(null, store.AddedTransactions);
        }

        [Fact]
        public async Task PostTransaction_InvalidNamespace()
        {
            TransactionValidator validator = CreateValidator(defaultAccounts);
            ByteString mutation = CreateMutation(invalidNamespace);

            TransactionInvalidException exception = await Assert.ThrowsAsync<TransactionInvalidException>(
                () => validator.PostTransaction(mutation, new SignatureEvidence[0]));
            Assert.Equal("InvalidNamespace", exception.Reason);
            Assert.Equal(null, store.AddedTransactions);
        }

        [Fact]
        public async Task PostTransaction_ConcurrencyException()
        {
            this.store = new TestStore(defaultAccounts, true);
            TransactionValidator validator = new TransactionValidator(
                this.store,
                new TestValidator(false),
                validNamespace);

            ByteString mutation = CreateMutation(validNamespace);

            TransactionInvalidException exception = await Assert.ThrowsAsync<TransactionInvalidException>(
                () => validator.PostTransaction(mutation, new SignatureEvidence[0]));
            Assert.Equal("OptimisticConcurrency", exception.Reason);
            Assert.Equal(1, store.AddedTransactions.Count);
        }

        [Fact]
        public async Task PostTransaction_ValidationException()
        {
            this.store = new TestStore(defaultAccounts, false);
            TransactionValidator validator = new TransactionValidator(
                this.store,
                new TestValidator(true),
                validNamespace);

            ByteString mutation = CreateMutation(validNamespace);

            TransactionInvalidException exception = await Assert.ThrowsAsync<TransactionInvalidException>(
                () => validator.PostTransaction(mutation, new SignatureEvidence[0]));
            Assert.Equal("Test", exception.Reason);
            Assert.Equal(null, store.AddedTransactions);
        }

        [Fact]
        public async Task Validate_ValidSignature()
        {
            TransactionValidator validator = CreateValidator(defaultAccounts);
            ByteString mutation = CreateMutation(validNamespace);

            SignatureEvidence signature = new SignatureEvidence(
                ByteString.Parse("0213b0006543d4ab6e79f49559fbfb18e9d73596d63f39e2f12ebc2c9d51e2eb06"),
                ByteString.Parse("3045022100e2ecc27c2e0d19329a0c7ad37e20fde00e64be235b2e7e86d285c18ff9c1e5b102200efa46125e057136f5008f4aa15a07e5ae4a0fcb2d00aa37862e246abbee74ab"));

            ByteString result = await validator.PostTransaction(mutation, new[] { signature });

            Assert.Equal(32, result.Value.Count);
            Assert.Equal(1, store.AddedTransactions.Count);
        }

        [Fact]
        public async Task Validate_InvalidSignature()
        {
            TransactionValidator validator = CreateValidator(defaultAccounts);
            ByteString mutation = CreateMutation(validNamespace);

            SignatureEvidence signature = new SignatureEvidence(
                ByteString.Parse("0013b0006543d4ab6e79f49559fbfb18e9d73596d63f39e2f12ebc2c9d51e2eb06"),
                ByteString.Parse("3045022100e2ecc27c2e0d19329a0c7ad37e20fde00e64be235b2e7e86d285c18ff9c1e5b102200efa46125e057136f5008f4aa15a07e5ae4a0fcb2d00aa37862e246abbee74ab"));

            TransactionInvalidException exception = await Assert.ThrowsAsync<TransactionInvalidException>(
                () => validator.PostTransaction(mutation, new[] { signature }));
            Assert.Equal("InvalidSignature", exception.Reason);
            Assert.Equal(null, store.AddedTransactions);
        }

        private ByteString CreateMutation(ByteString @namespace)
        {
            Mutation mutation = new Mutation(
                @namespace,
                new Record[]
                {
                    new Record(
                        new AccountKey(LedgerPath.Parse("/account/1/"), LedgerPath.Parse("/a/")).Key.ToBinary(),
                        new ByteString(BitConverter.GetBytes(100L).Reverse()),
                        ByteString.Empty),
                    new Record(
                        new AccountKey(LedgerPath.Parse("/account/2/"), LedgerPath.Parse("/a/")).Key.ToBinary(),
                        new ByteString(BitConverter.GetBytes(100L).Reverse()),
                        ByteString.Empty),
                },
                ByteString.Empty);

            return new ByteString(MessageSerializer.SerializeMutation(mutation));
        }

        private TransactionValidator CreateValidator(IDictionary<string, long> accounts, params Mutation[] mutations)
        {
            this.store = new TestStore(accounts, false);
            return new TransactionValidator(
                this.store,
                new TestValidator(false, mutations),
                validNamespace);
        }

        private class TestValidator : IMutationValidator
        {
            private readonly bool exception;
            private readonly Mutation[] mutations;

            public TestValidator(bool exception, params Mutation[] mutations)
            {
                this.exception = exception;
                this.mutations = mutations;
            }

            public Task<IList<Mutation>> Validate(ParsedMutation mutation, IReadOnlyList<SignatureEvidence> authentication, IReadOnlyDictionary<AccountKey, AccountStatus> accounts)
            {
                if (exception)
                    throw new TransactionInvalidException("Test");
                else
                    return Task.FromResult<IList<Mutation>>(mutations);
            }
        }

        private class TestStore : IStorageEngine
        {
            private readonly IDictionary<string, long> accounts;
            private readonly bool exception;

            public TestStore(IDictionary<string, long> accounts, bool exception)
            {
                this.accounts = accounts;
                this.exception = exception;
            }

            public IList<ByteString> AddedTransactions { get; private set; }

            public Task Initialize()
            {
                throw new NotImplementedException();
            }

            public Task AddTransactions(IEnumerable<ByteString> transactions)
            {
                this.AddedTransactions = transactions.ToList();

                if (this.exception)
                    throw new ConcurrentMutationException(new Record(ByteString.Empty, ByteString.Empty, ByteString.Empty));
                else
                    return Task.FromResult(0);
            }

            public Task<ByteString> GetLastTransaction()
            {
                throw new NotImplementedException();
            }

            public Task<IReadOnlyList<Record>> GetRecords(IEnumerable<ByteString> keys)
            {
                return Task.FromResult<IReadOnlyList<Record>>(keys.Select(key =>
                {
                    RecordKey recordKey = RecordKey.Parse(key);
                    return new Record(
                        key,
                        new ByteString(BitConverter.GetBytes(this.accounts[recordKey.Path.FullPath]).Reverse()),
                        ByteString.Empty);
                })
                .ToList());
            }

            public Task<IReadOnlyList<ByteString>> GetTransactions(ByteString from)
            {
                throw new NotImplementedException();
            }

            public void Dispose()
            { }
        }
    }
}


text:
from mixbox import entities
from mixbox import fields

import cybox.bindings.disk_object as disk_binding
from cybox.objects.disk_partition_object import DiskPartition
from cybox.common import BaseProperty, ObjectProperties, String, UnsignedLong

class PartitionList(entities.EntityList):
    _binding = disk_binding
    _binding_class = disk_binding.PartitionListType
    _namespace = "http://cybox.mitre.org/objects#DiskObject-2"

    partition = fields.TypedField("Partition", DiskPartition, multiple=True)

class DiskType(BaseProperty):
    _binding = disk_binding
    _binding_class = disk_binding.DiskType
    _namespace = "http://cybox.mitre.org/objects#DiskObject-2"

    TERM_REMOVABLE = "Removable"
    TERM_FIXED = "Fixed"
    TERM_REMOTE = "Remote"
    TERM_CDROM = "CDRom"
    TERM_RAMDISK = "RAMDisk"

class Disk(ObjectProperties):
    _binding = disk_binding
    _binding_class = disk_binding.DiskObjectType
    _namespace = "http://cybox.mitre.org/objects#DiskObject-2"
    _XSI_NS = "DiskObj"
    _XSI_TYPE = "DiskObjectType"

    disk_name = fields.TypedField('Disk_Name', String)
    disk_size = fields.TypedField('Disk_Size', UnsignedLong)
    free_space = fields.TypedField('Free_Space', UnsignedLong)
    partition_list = fields.TypedField('Partition_List', PartitionList)
    type_ = fields.TypedField('Type', DiskType)

redpajama_set_name: RedPajamaGithub


text:
package androidx.recyclerview.selection.testing;

import android.view.View;

import androidx.recyclerview.widget.RecyclerView.ViewHolder;

public class TestHolder extends ViewHolder {
    public TestHolder(View itemView) {
        super(itemView);
    }
}


text:
// Copyright (c) 2008-2022, Hazelcast, Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using System;
using System.Threading;
using Hazelcast.Messaging;

namespace Hazelcast.Clustering
{
    // this is in-progress, the idea being that the cluster should provide some
    // basic instrumentation regarding abnormal situations, etc.

    internal class ClusterInstrumentation
    {
        private int _missedEventsCount;
        private int _exceptionsInEventHandlersCount;

        public int MissedEventsCount => _missedEventsCount;

        public int ExceptionsInEventHandlersCount => _exceptionsInEventHandlersCount;

        // work-in-progress, not using all parameters for now
#pragma warning disable IDE0060 // Remove unused parameter
#pragma warning disable CA1801 // Review unused parameters

        internal void CountMissedEvent(ClientMessage message)
            => Interlocked.Increment(ref _missedEventsCount);

        internal void CountExceptionInEventHandler(Exception exception)
            => Interlocked.Increment(ref _exceptionsInEventHandlersCount);
    }
}


text:
/* QJsonWaveformCorpus.h from libstand http://github.com/qtau-devgroup/libstand by Hal@shurabaP, BSD license */
#ifndef QJSONWAVEFORMCORPUS_H
#define QJSONWAVEFORMCORPUS_H

#include <QJsonValue>
#include <QSharedPointer>

namespace stand
{

template <class K, class V> class ResourceRepository;
class PhonemeKey;
class WaveformCorpus;
class WaveformFrameInfo;
typedef QList<WaveformFrameInfo> WaveformFrameInfoList;

QJsonValue operator <<(QJsonValue &left, const WaveformCorpus &right);
QSharedPointer<ResourceRepository<PhonemeKey, WaveformFrameInfoList> > operator >>(
        const QJsonValue &left, QSharedPointer<ResourceRepository<PhonemeKey, WaveformFrameInfoList> > &right);

}

#endif // QJSONWAVEFORMCORPUS_H


text:
package com.vipshop.microscope.storage;

import com.vipshop.microscope.client.system.SystemData;
import org.apache.hadoop.hbase.util.Bytes;

/**
 * Hbase schema for system table
 */
public class SystemTable {

    public static final String TABLE_NAME = "system";

    public static final String CF = "c";
    public static final String C_SYSTEM = "system";

    public static final byte[] BYTE_CF = Bytes.toBytes(CF);
    public static final byte[] BYTE_C_SYSTEM = Bytes.toBytes(C_SYSTEM);

    public static String rowKey(SystemData system) {
        return system.getApp() + system.getHost();
    }

}


text:
class Param:
    def __init__(self, value):
        self.value = value
    def __repr__(self):
        return 'Param(%r)' % (self.value,)

def to_qmark(chunks):
    query_parts = []
    params = []
    for chunk in chunks:
        if isinstance(chunk, Param):
            params.append(chunk.value)
            query_parts.append('?')
        else:
            query_parts.append(chunk)
    return ''.join(query_parts), params

def to_numeric(chunks):
    query_parts = []
    params = []
    for chunk in chunks:
        if isinstance(chunk, Param):
            params.append(chunk.value)
            query_parts.append(':%d' % len(params))
        else:
            query_parts.append(chunk)
    return ''.join(query_parts), tuple(params)  # DCOracle2 has broken support
                                                # for sequences of other types

def to_named(chunks):
    query_parts = []
    params = {}
    for chunk in chunks:
        if isinstance(chunk, Param):
            name = 'p%d' % len(params)  # Are numbers in name allowed?
            params[name] = chunk.value
            query_parts.append(':%s' % name)
        else:
            query_parts.append(chunk)
    return ''.join(query_parts), params

def to_format(chunks):
    query_parts = []
    params = []
    for chunk in chunks:
        if isinstance(chunk, Param):
            params.append(chunk.value)
            query_parts.append('%s')
        else:
            query_parts.append(chunk.replace('%', '%%'))
    return ''.join(query_parts), params

def to_pyformat(chunks):
    query_parts = []
    params = {}
    for chunk in chunks:
        if isinstance(chunk, Param):
            name = '%d' % len(params)
            params[name] = chunk.value
            query_parts.append('%%(%s)s' % name)
        else:
            query_parts.append(chunk.replace('%', '%%'))
    return ''.join(query_parts), params

if __name__=='__main__':
    query = ('SELECT * FROM test WHERE field1>', Param(10),
             ' AND field2 LIKE ', Param('%value%'))
    print 'Query:', query
    for param_style in ('qmark', 'numeric', 'named', 'format', 'pyformat'):
        print '%s: %r' % (param_style, vars()['to_'+param_style](query))


text:
<?php
class homeController Extends Controller {
	protected function init(){}

	public function index() {
		/* template variables */
		$this->template->title = 'Home - Simple-MVC-Framework';

		$this->template->loadTemplate('home');
	}

	public function about(){
		$this->template->title = 'About - Simple-MVC-Framework';

		$this->template->loadTemplate('home');
	}
}


text:
<kd-card [initialized]="initialized"
         *ngIf="podInfo">

Pods status

 0">
      Running:
      {{ podInfo.running }}

 0">
      Succeeded:
      {{ podInfo.succeeded }}

 0">
      Pending:
      {{ podInfo.pending }}

 0">
      Failed:
      {{ podInfo.failed }}

      Desired:
      {{ podInfo.desired }}

    <kd-property *ngIf="podInfo.running > 0">

Running

{{ podInfo.running }}

    </kd-property>

    <kd-property *ngIf="podInfo.succeeded > 0">

Succeeded

{{ podInfo.succeeded }}

    </kd-property>

    <kd-property *ngIf="podInfo.pending > 0">

Pending

{{ podInfo.pending }}

    </kd-property>

    <kd-property [ngClass]="{'kd-error': podInfo.failed > 0}"
                 *ngIf="podInfo.failed > 0">

Failed

{{ podInfo.failed }}

    </kd-property>

    <kd-property>

Desired

{{ podInfo.desired }}

    </kd-property>

</kd-card>


text:
package org.apache.oodt.cas.cli.option.store.spring;

//JDK imports
import java.util.Map;
import java.util.Set;

//OODT imports
import org.apache.oodt.cas.cli.exception.CmdLineOptionStoreException;
import org.apache.oodt.cas.cli.option.CmdLineOption;
import org.apache.oodt.cas.cli.option.store.CmdLineOptionStore;

//Spring imports
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

//Google imports
import com.google.common.collect.Sets;

/**
 * Spring Framework based {@link CmdLineOptionStore}.
 *
 * @author bfoster (Brian Foster)
 */
public class SpringCmdLineOptionStore implements CmdLineOptionStore {

   private ApplicationContext appContext;

   public SpringCmdLineOptionStore(String springConfig) {
      appContext = new FileSystemXmlApplicationContext(springConfig);
   }

   @Override
   public Set<CmdLineOption> loadSupportedOptions()
         throws CmdLineOptionStoreException {
      @SuppressWarnings("unchecked")
      Map<String, CmdLineOption> optionsMap = appContext
            .getBeansOfType(CmdLineOption.class);
      Set<CmdLineOption> supportedOptions = Sets.newHashSet();
      for (CmdLineOption option : optionsMap.values()) {
         if (!option.isSubOption()) {
            supportedOptions.add(option);
         }
      }
      return supportedOptions;
   }

   protected ApplicationContext getApplicationContext() {
      return appContext;
   }
}


text:
#include <iostream>
#include <cstdio>
#include <string>

using namespace std;

extern "C" cudnnStatus_t CUDNNWINAPI cudnnCreate        (cudnnHandle_t *handle) {
    CudnnFrontend::Prepare();
    CudnnFrontend::AddHostPointerForArguments(handle);
    CudnnFrontend::Execute("cudnnCreate");
    if(CudnnFrontend::Success())
        *handle = *(CudnnFrontend::GetOutputHostPointer<cudnnHandle_t>());
    return CudnnFrontend::GetExitCode();
}
extern "C" cudnnStatus_t CUDNNWINAPI cudnnDestroy       (cudnnHandle_t handle) {
    CudnnFrontend::Prepare();
    CudnnFrontend::AddVariableForArguments(handle);
    CudnnFrontend::Execute("cudnnDestroy");
    return CudnnFrontend::GetExitCode();
}
extern "C" cudnnStatus_t CUDNNWINAPI cudnnSetStream     (cudnnHandle_t handle, cudaStream_t streamId) {
    CudnnFrontend::Prepare();
    CudnnFrontend::AddVariableForArguments(handle);
    CudnnFrontend::AddVariableForArguments(streamId);
    CudnnFrontend::Execute("cudnnSetStream");
    return CudnnFrontend::GetExitCode();
}
extern "C" cudnnStatus_t CUDNNWINAPI cudnnGetStream     (cudnnHandle_t handle, cudaStream_t *streamId) {
    CudnnFrontend::Prepare();
    CudnnFrontend::AddVariableForArguments(handle);
    CudnnFrontend::Execute("cudnnGetStream");
    return CudnnFrontend::GetExitCode();
}


text:
using System.Collections;
using System.Linq;
using System.Collections.Generic;
using TankArena.Constants;
using TankArena.Models.Dialogue;
using TankArena.Utils;
using UnityEngine;
using UnityEngine.UI;
using MovementEffects;
using System;

namespace TankArena.UI.Dialogue
{
    public class DialogueSceneController : MonoBehaviour
    {

        private string dialogueSceneId;
        private DialoguePosition dialoguePosition;
        private DialogueScene dialogueSceneModel;
        public Text sceneTitleText;
        public Image sceneBgImage;
        public GameObject sceneDialogBox;
        public GameObject sceneAdvanceDialogBox;
        public float sceneBgInterpolateTime;
        private float sceneStartTime;
        private float sceneEndTime;
        public Text sceneDialogueText;
        public Text sceneSpeakerText;
        public DialogueActorController leftActorController;
        public DialogueActorController rightActorController;
        private Dictionary<DialogueSignalTypes, DialogueActorController> actors;
        private Dictionary<DialogueSignalTypes, Action<DialogueSignal>> actorActions;
        private DialogueBeat currentBeat;
        private DialogueSpeechBit currentSpeechBit;
        private List<DialogueSignal> currentBeatSignals;
        private int currentBeatIdx = 0;
        private int CurrentBeatIdx
        {
            get { return currentBeatIdx; }
            set
            {
                currentBeatIdx = value;
                currentBeatSignals.Clear();
                currentAnimationWait = 0.0f;
                readyForSignal = true;
                actors.ForEachWithIndex((actor, idx) => actor.Value.ResetActor());
                if (currentBeatIdx < dialogueSceneModel.dialogueBeats.Count)
                {
                    currentBeat = dialogueSceneModel[value];
                    currentSpeechBit = currentBeat.speech;
                    finishedSpeechBit = currentSpeechBit == null;
                    if (currentBeat.signals != null)
                    {
                        currentBeatSignals.AddRange(currentBeat.signals);
                    }
                    sentBeatSignals = currentBeatSignals.Count == 0;
                    //reset text carrets, etc
                    if (!finishedSpeechBit)
                    {
                        DBG.Log("NEW SPEECH BIT: {0}", currentSpeechBit);
                        sceneSpeakerText.text = String.IsNullOrEmpty(currentSpeechBit.name)?
                            actors[currentSpeechBit.speaker].actorName
                            : currentSpeechBit.name;

                        foreach (var actorEntry in actors)
                        {
                            actorEntry.Value.DimActor(actorEntry.Key != currentSpeechBit.speaker);
                        }
                        sceneDialogueText.text = "";
                    }
                    currentTextIdx = 0;
                    currentSignalIdx = 0;
                    currentLetterDelay = lettersDelay;

                }
                DBG.Log("current beat idx: {0} | beat signals: {1} | beat speech: {2}", currentBeatIdx, currentBeatSignals.Count, !finishedSpeechBit);
            }
        }
        private bool sentBeatSignals = false;
        private bool finishedSpeechBit = false;
        private int currentTextIdx = 0;
        private int currentSignalIdx = 0;
        public float lettersDelay = 0.1f;
        private float currentLetterDelay;
        private bool finishingScene = false; //only turn true when dialogue over and ready for outro
        private bool startedScene = false; //only turn true when intro played and ready for dialogue
        [HideInInspector]
        public float currentAnimationWait = 0.0f;
        [HideInInspector]
        public bool readyForSignal = true;

        private void SendTriggerSignal(DialogueSignalTypes ctx, DialogueSignal data)
        {

            var controller = ctx.ToString().StartsWith("LEFT") ? leftActorController : rightActorController;
            controller.SendMessage("UseTrigger", data.signalParams, SendMessageOptions.DontRequireReceiver);
            //animation wait will be handled by the actor
        }

        void Start()
        {
            //get dialogue model
            dialogueSceneId = (string)CurrentState.Instance.CurrentSceneParams[TransitionParams.PARAM_DIALOGUE_SCENE_ID];
            dialoguePosition = (DialoguePosition)CurrentState.Instance.CurrentSceneParams[TransitionParams.PARAM_DIALOGUE_POSITION];
            dialogueSceneModel = EntitiesStore.Instance.DialogueScenes[dialogueSceneId];

            //start building dialogue flow
            SetSceneInfo(dialogueSceneModel);
            Timing.RunCoroutine(_StartDeferred());
        }

        private void SetSceneInfo(DialogueScene model)
        {
            sceneTitleText.text = dialogueSceneModel.Name;
            sceneBgImage.sprite = dialogueSceneModel.SceneBackground;
            sceneStartTime = model.SceneStartTime;
            sceneEndTime = model.SceneEndTime;
            sceneBgInterpolateTime = model.SceneBgInterpolateTime;

            leftActorController.SetActorInfo(dialogueSceneModel.LeftActor);
            rightActorController.SetActorInfo(dialogueSceneModel.RightActor);

        }

        void Update()
        {
            //detect skip scene input
            var skipPressed = Input.GetButtonUp(ControlsButtonNames.BTN_NAME_WPN_GROUP_2);
            if (skipPressed && !finishingScene) { EndScene(); }
            //wait for complete start of scene
            if (!startedScene) { return; }

            if (!readyForSignal)
            {
                if (currentAnimationWait > 0.0f)
                {
                    currentAnimationWait -= Time.deltaTime;
                }
                else
                {
                    currentAnimationWait = 0.0f;
                    readyForSignal = true;
                }
            }

            //DO TEXT
            if (!finishedSpeechBit)
            {
                currentLetterDelay -= Time.deltaTime;
                //wait over, add another letter
                if (currentLetterDelay <= 0.0f)
                {
                    currentLetterDelay = lettersDelay;
                    sceneDialogueText.text += currentSpeechBit.text[currentTextIdx];
                    currentTextIdx++;
                    finishedSpeechBit = currentTextIdx >= currentSpeechBit.text.Length;
                }
            }

            //DO SIGNALS
            if (currentBeatSignals.Count > 0 && !sentBeatSignals && readyForSignal)
            {
                var signal = currentBeatSignals[currentSignalIdx];

                DBG.Log("NEW SIGNAL: {0}", signal);

                //actor is ready for singal or the actor is actually background, either way atcions
                //are described for it
                actorActions[signal.signalType](currentBeatSignals[currentSignalIdx]);
                currentSignalIdx++;
                if (currentSignalIdx >= currentBeatSignals.Count)
                {
                    sentBeatSignals = true;
                }
            }

            //DO INPUT
            var pressedFwd = Input.GetButtonUp(ControlsButtonNames.BTN_NAME_WPN_GROUP_1);
            if (pressedFwd && !finishingScene)
            {
                if (!finishedSpeechBit)
                {
                    //not finished speech on beat, finish it
                    currentTextIdx = currentSpeechBit.text.Length;
                    sceneDialogueText.text = currentSpeechBit.text;
                    finishedSpeechBit = true;
                }
                else
                {
                    //finished speech bit, lets advance the beat itself
                    if (sentBeatSignals) CurrentBeatIdx += 1;
                }

                //all over, lets play the end of scene and move on
                if (CurrentBeatIdx >= dialogueSceneModel.dialogueBeats.Count)
                {
                    EndScene();
                }

            }
        }

        private void EndScene()
        {
            finishingScene = true;
            Timing.RunCoroutine(_PlayEndSceneAnimation());
            //this dialogue was before arena, then we fo to it
            if (dialoguePosition == DialoguePosition.BEFORE_LEVEL)
            {
                TransitionUtil.WaitAndStartTransitionTo(SceneIds.SCENE_ARENA_ID, sceneEndTime);
            } else
            {
                //after arena we go to select screen
                TransitionUtil.WaitAndStartTransitionTo(SceneIds.SCENE_ARENA_SELECT_ID, sceneEndTime);
            }
        }

        //       COROUTINES

        private IEnumerator<float> _PlaySceneStartAnimation()
        {
            sceneTitleText.color = Color.clear;
            sceneBgImage.color = Color.black;
            sceneDialogBox.SetActive(false);
            sceneAdvanceDialogBox.SetActive(false);
            var halfTime = sceneStartTime / 2;
            var time = halfTime;
            while (time > 0.0f)
            {
                sceneTitleText.color = Color.Lerp(sceneTitleText.color, Color.white, Mathf.SmoothStep(0.0f, 1.0f, (halfTime - time) / halfTime));
                time -= Timing.DeltaTime;
                yield return Timing.WaitForSeconds(Timing.DeltaTime);
            }
            sceneTitleText.color = Color.white;
            //half a second to read intro text
            yield return Timing.WaitForSeconds(0.5f);
            time = halfTime;
            while (time > 0.0f)
            {
                sceneBgImage.color = Color.Lerp(sceneBgImage.color, Color.white, Mathf.SmoothStep(0.0f, 1.0f, (halfTime - time) / halfTime));
                sceneTitleText.color = Color.Lerp(sceneTitleText.color, Color.clear, Mathf.SmoothStep(0.0f, 1.0f, (halfTime - time) / halfTime));
                time -= Timing.DeltaTime;
                yield return Timing.DeltaTime;
            }

            sceneBgImage.color = Color.white;
            sceneTitleText.gameObject.SetActive(false);
            sceneDialogBox.SetActive(true);
            sceneAdvanceDialogBox.SetActive(true);
        }

        private IEnumerator<float> _PlayEndSceneAnimation()
        {
            sceneDialogBox.SetActive(false);
            sceneAdvanceDialogBox.SetActive(false);
            actors.ForEachWithIndex((actorEntry, idx) => {actorEntry.Value.gameObject.SetActive(false); });
            var time = sceneEndTime;
            while (time > 0.0f)
            {
                sceneBgImage.color = Color.Lerp(sceneBgImage.color, Color.black, Mathf.SmoothStep(0.0f, 1.0f, (sceneEndTime - time) / sceneEndTime));
                time -= Timing.DeltaTime;
                yield return Timing.WaitForSeconds(Timing.DeltaTime);
            }

            sceneBgImage.color = Color.black;

        }

        private IEnumerator<float> _StartDeferred()
        {
            var handle = Timing.RunCoroutine(_PlaySceneStartAnimation());

            currentBeatSignals = new List<DialogueSignal>();
            actors = new Dictionary<DialogueSignalTypes, DialogueActorController>()
            {
                { DialogueSignalTypes.LEFT_ACTOR_SPEECH, leftActorController},
                { DialogueSignalTypes.RIGHT_ACTOR_SPEECH, rightActorController},
            };
            actorActions = new Dictionary<DialogueSignalTypes, Action<DialogueSignal>>()
            {
                { DialogueSignalTypes.LEFT_ACTOR_ACTION,  (signal) => {SendTriggerSignal(DialogueSignalTypes.LEFT_ACTOR_ACTION, signal);}},
                { DialogueSignalTypes.RIGHT_ACTOR_ACTION,  (signal) => {SendTriggerSignal(DialogueSignalTypes.RIGHT_ACTOR_ACTION, signal);}},
                { DialogueSignalTypes.CHANGE_BACKGROUND, (signal) => {

                    //first signal param is sprite
                    var sprite = (Sprite)signal.signalParams[0];
                    var time = sceneBgInterpolateTime;
                    //second might be time or we use default
                    if (signal.signalParams.Count > 1)
                    {
                        time = (float)signal.signalParams[1];
                    }
                    DBG.Log("Interpolating sprite {0} for time: {1}", sprite, time);
                    Timing.RunCoroutine(_InterpolateBG(sprite, time));
                    currentAnimationWait = time;
                    readyForSignal = false;
                }},
                { DialogueSignalTypes.LEFT_CHANGE_MODEL, (signal) => { leftActorController.DoModelChange(signal.signalParams); }},
                { DialogueSignalTypes.RIGHT_CHANGE_MODEL, (signal) => { rightActorController.DoModelChange(signal.signalParams); }}
            };
            yield return Timing.WaitUntilDone(handle);
            CurrentBeatIdx = 0;
            startedScene = true;
        }

        private IEnumerator<float> _InterpolateBG(Sprite newBg, float interpolateTime)
        {
            //use half time to reduce to black and second half to go from black up again
            var halfTime = interpolateTime / 2;
            var time = halfTime;
            //fade out image
            while (time > 0.0f)
            {
                sceneBgImage.color = Color.Lerp(sceneBgImage.color, Color.black, Mathf.SmoothStep(0.0f, 1.0f, (halfTime - time) / halfTime));
                yield return Timing.WaitForSeconds(Timing.DeltaTime);
                time -= Timing.DeltaTime;
                if (time <= 0.0f)
                {
                    sceneBgImage.sprite = newBg;
                    sceneBgImage.color = Color.black;
                }
            }

            //fade in new one
            time = halfTime;
            while (time > 0.0f)
            {
                //lerp is smothed by math smooth, but we also express the time in percentiles of max in order to keep smooth range 0-1
                sceneBgImage.color = Color.Lerp(sceneBgImage.color, Color.white, Mathf.SmoothStep(0.0f, 1.0f, (halfTime - time) / halfTime));
                yield return Timing.WaitForSeconds(Timing.DeltaTime);
                time -= Timing.DeltaTime;
                if (time <= 0.0f)
                {
                    sceneBgImage.color = Color.white;
                }
            }
        }

    }

}


text:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;

namespace Formall.Navigation
{
    using Formall.Reflection;

    public class Area
    {
        public Text Summary
        {
            get;
            set;
        }

        public Text Title
        {
            get;
            set;
        }
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="20dp">
    <stroke android:color="#000000" android:width="1dp" />
    <solid android:color="#88CCCCCC"/>
    <corners android:bottomRightRadius="5dp" android:bottomLeftRadius="5dp"
android:topLeftRadius="5dp" android:topRightRadius="5dp"/>
</shape>


text:
RubyAppAr
=========

[RubyApp](http://github.com/kostya/ruby-app) extension, adds ActiveRecord support.

Install
-------

Use generator:

    ruby-app new app --ar

### OR Manually

Add to Gemfile:

    gem 'ruby-app'
    gem 'ruby-app-ar'

Add to Rakefile:

    load "ruby-app/tasks.rake"
    load "ruby-app-ar/tasks.rake"

Create

    db/migrate
    config/database.yml

Using
-----

Use as it is in Rails. But use APP_ENV for specify environment.

Examples:

    $ rake db:create APP_ENV=test
    $ rake db:migrate

Generate migration:

    $ ruby-app migration bla


text:
// DlgSettings.cpp : implementation file
//

#include "stdafx.h"
#include "InjectorUI.h"
#include "DlgSettings.h"
#include "afxdialogex.h"

// CDlgSettings dialog

IMPLEMENT_DYNAMIC(CDlgSettings, CDialogEx)

CDlgSettings::CDlgSettings(UIInternalSettings& uiInternalSettings, CWnd* pParent /*=NULL*/)
  : CDialogEx(IDD_DLG_SETTINGS, pParent),
  m_uiInternalSettings(uiInternalSettings)
{

}

CDlgSettings::~CDlgSettings()
{
}

void CDlgSettings::DoDataExchange(CDataExchange* pDX)
{
  CDialogEx::DoDataExchange(pDX);
  DDX_Control(pDX, IDC_CHECK_REMOVE_EXTRA_SECTIONS, m_cbRemoveExtraSections);
  DDX_Control(pDX, IDC_CHECK_REMOVE_PE_HEADER, m_cbRemovePEHeader);
  DDX_Control(pDX, IDC_CHECK_RANDOM_HEAD, m_cbRandomHead);
  DDX_Control(pDX, IDC_CHECK_RANDOM_TAIL, m_cbRandomTail);
  DDX_Control(pDX, IDC_CHECK_INJECT_WITH_LOCAL_DLL, m_cbInjectWithLocalDLL);
  DDX_Control(pDX, ID_BTN_SAVE, m_btnSave);
}

BEGIN_MESSAGE_MAP(CDlgSettings, CDialogEx)
  ON_BN_CLICKED(ID_BTN_SAVE, &CDlgSettings::OnBnClickedBtnSave)
END_MESSAGE_MAP()

// CDlgSettings message handlers

BOOL CDlgSettings::OnInitDialog()
{
  CDialogEx::OnInitDialog();

  m_cbRemoveExtraSections.SetCheck( m_uiInternalSettings.injOpts.removeExtraSections  ? BST_CHECKED : BST_UNCHECKED);
  m_cbRemovePEHeader.SetCheck(      m_uiInternalSettings.injOpts.removePEHeader       ? BST_CHECKED : BST_UNCHECKED);
  m_cbRandomHead.SetCheck(          m_uiInternalSettings.injOpts.randomHead           ? BST_CHECKED : BST_UNCHECKED);
  m_cbRandomTail.SetCheck(          m_uiInternalSettings.injOpts.randomTail           ? BST_CHECKED : BST_UNCHECKED);
  m_cbInjectWithLocalDLL.SetCheck(  m_uiInternalSettings.injOpts.injectWithLocalDll   ? BST_CHECKED : BST_UNCHECKED);

  return TRUE;
}

void CDlgSettings::OnBnClickedBtnSave()
{
  m_uiInternalSettings.injOpts.removeExtraSections =  m_cbRemoveExtraSections.GetCheck() == BST_CHECKED;
  m_uiInternalSettings.injOpts.removePEHeader =       m_cbRemovePEHeader.GetCheck() == BST_CHECKED;
  m_uiInternalSettings.injOpts.randomHead =           m_cbRandomHead.GetCheck() == BST_CHECKED;
  m_uiInternalSettings.injOpts.randomTail =           m_cbRandomTail.GetCheck() == BST_CHECKED;
  m_uiInternalSettings.injOpts.injectWithLocalDll =   m_cbInjectWithLocalDLL.GetCheck() == BST_CHECKED;

  CDialog::OnCancel();
}


text:
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace Enterprise.Invoicing.Entities.Models.Mapping
{
    public class PurchaseRequireMap : EntityTypeConfiguration<PurchaseRequire>
    {
        public PurchaseRequireMap()
        {
            // Primary Key
            this.HasKey(t => t.requireNo);

            // Properties
            this.Property(t => t.requireNo)
                .IsRequired()
                .HasMaxLength(50);

            this.Property(t => t.checkStaff)
                .HasMaxLength(50);

            this.Property(t => t.remark)
                .HasMaxLength(50);

            this.Property(t => t.bomOrderNo)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("PurchaseRequire");
            this.Property(t => t.requireNo).HasColumnName("requireNo");
            this.Property(t => t.staffId).HasColumnName("staffId");
            this.Property(t => t.depId).HasColumnName("depId");
            this.Property(t => t.status).HasColumnName("status");
            this.Property(t => t.canfs).HasColumnName("canfs");
            this.Property(t => t.isover).HasColumnName("isover");
            this.Property(t => t.createDate).HasColumnName("createDate");
            this.Property(t => t.valid).HasColumnName("valid");
            this.Property(t => t.isclose).HasColumnName("isclose");
            this.Property(t => t.checkStaff).HasColumnName("checkStaff");
            this.Property(t => t.remark).HasColumnName("remark");
            this.Property(t => t.bomOrderNo).HasColumnName("bomOrderNo");
            this.Property(t => t.orderDetailSn).HasColumnName("orderDetailSn");

            // Relationships
            this.HasRequired(t => t.Department)
                .WithMany(t => t.PurchaseRequires)
                .HasForeignKey(d => d.depId);
            this.HasRequired(t => t.Employee)
                .WithMany(t => t.PurchaseRequires)
                .HasForeignKey(d => d.staffId);

        }
    }
}


text:
function kernel = RRgaussfilter1D(halfsupport, sigma, center)
% kernel = RRgaussfilter1D(halfsupport, sigma)
%   Creates a 1D gaussian filter kernel, centered at center (default=0), with pixels from
%   -halfsupport:halfsupport, and standard deviation sigma.

t = -halfsupport:halfsupport;
if nargin<3,
    center = 0;
end
kernel = exp(-(t-center).^2/(2*sigma^2));
kernel = kernel/sum(kernel);

return;


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <item type="id" name="background" />
    <item type="id" name="checkbox" />
    <item type="id" name="content" />
    <item type="id" name="edit" />
    <item type="id" name="empty" />
    <item type="id" name="hint" />
    <item type="id" name="icon" />
    <item type="id" name="icon1" />
    <item type="id" name="icon2" />
    <item type="id" name="input" />
    <item type="id" name="list" />
    <item type="id" name="message" />
    <item type="id" name="primary" />
    <item type="id" name="progress" />
    <item type="id" name="selectedIcon" />
    <item type="id" name="secondaryProgress" />
    <item type="id" name="summary" />
    <item type="id" name="tabcontent" />
    <item type="id" name="tabhost" />
    <item type="id" name="tabs" />
    <item type="id" name="text1" />
    <item type="id" name="text2" />
    <item type="id" name="title" />
    <item type="id" name="toggle" />
    <item type="id" name="widget_frame" />
    <item type="id" name="button1" />
    <item type="id" name="button2" />
    <item type="id" name="button3" />
    <item type="id" name="extractArea" />
    <item type="id" name="candidatesArea" />
    <item type="id" name="inputArea" />
    <item type="id" name="selectAll" />
    <item type="id" name="cut" />
    <item type="id" name="copy" />
    <item type="id" name="paste" />
    <item type="id" name="copyUrl" />
    <item type="id" name="switchInputMethod" />
    <item type="id" name="inputExtractEditText" />
    <item type="id" name="keyboardView" />
    <item type="id" name="closeButton" />
    <item type="id" name="startSelectingText" />
    <item type="id" name="stopSelectingText" />
    <item type="id" name="addToDictionary" />
    <item type="id" name="custom" />
    <item type="id" name="home" />
    <item type="id" name="selectTextMode" />
    <item type="id" name="left_icon" />
    <item type="id" name="menu" />
    <item type="id" name="right_icon" />
    <item type="id" name="title_container" />
    <item type="id" name="lock_screen" />
    <item type="id" name="accountPreferences" />
    <item type="id" name="smallIcon" />
    <item type="id" name="fillInIntent" />
    <item type="id" name="rowTypeId" />
    <item type="id" name="up" />
    <item type="id" name="action_menu_divider" />
    <item type="id" name="icon_menu_presenter" />
    <item type="id" name="list_menu_presenter" />
    <item type="id" name="action_menu_presenter" />
    <item type="id" name="overflow_menu_presenter" />
    <item type="id" name="popup_submenu_presenter" />
    <item type="id" name="websearch" />
    <item type="id" name="action_bar_title">false</item>
    <item type="id" name="action_bar_subtitle">false</item>
    <item type="id" name="action_mode_close_button">false</item>
    <item type="id" name="activity_chooser_view_content">false</item>
    <item type="id" name="expand_activities_button">false</item>
    <item type="id" name="image">false</item>
    <item type="id" name="default_activity_button">false</item>
    <item type="id" name="list_item">false</item>
    <item type="id" name="parentPanel">false</item>
    <item type="id" name="topPanel">false</item>
    <item type="id" name="title_template">false</item>
    <item type="id" name="alertTitle">false</item>
    <item type="id" name="titleDivider">false</item>
    <item type="id" name="buttonPanel">false</item>
    <item type="id" name="leftSpacer">false</item>
    <item type="id" name="rightSpacer">false</item>
    <item type="id" name="contentPanel">false</item>
    <item type="id" name="scrollView">false</item>
    <item type="id" name="customPanel">false</item>
    <item type="id" name="titleDividerTop">false</item>
    <item type="id" name="progress_percent">false</item>
    <item type="id" name="progress_number">false</item>
    <item type="id" name="alwaysUse">false</item>
    <item type="id" name="clearDefaultHint">false</item>
    <item type="id" name="compat_checkbox">false</item>
    <item type="id" name="ask_checkbox">false</item>
    <item type="id" name="reask_hint">false</item>
    <item type="id" name="perm_icon">false</item>
    <item type="id" name="perm_name">false</item>
    <item type="id" name="perm_money_icon">false</item>
    <item type="id" name="perm_money_label">false</item>
    <item type="id" name="permission_group">false</item>
    <item type="id" name="permission_list">false</item>
    <item type="id" name="table_perm_icon">false</item>
    <item type="id" name="table_perm_text">false</item>
    <item type="id" name="table_perm_checkbox">false</item>
    <item type="id" name="no_permissions">false</item>
    <item type="id" name="dangerous_perms_list">false</item>
    <item type="id" name="show_more">false</item>
    <item type="id" name="show_more_text">false</item>
    <item type="id" name="show_more_icon">false</item>
    <item type="id" name="non_dangerous_perms_list">false</item>
    <item type="id" name="perms_list">false</item>
    <item type="id" name="axis_single_line">false</item>
    <item type="id" name="constellation_container">false</item>
    <item type="id" name="constellation_bg">false</item>
    <item type="id" name="hotword1">false</item>
    <item type="id" name="hotword2">false</item>
    <item type="id" name="hotword3">false</item>
    <item type="id" name="hotword4">false</item>
    <item type="id" name="hotword5">false</item>
    <item type="id" name="clock">false</item>
    <item type="id" name="am_pm">false</item>
    <item type="id" name="gallery">false</item>
    <item type="id" name="search_expand">false</item>
    <item type="id" name="search">false</item>
    <item type="id" name="expand_text">false</item>
    <item type="id" name="hover_text">false</item>
    <item type="id" name="alarm_status">false</item>
    <item type="id" name="slide_miss_call_and_mms">false</item>
    <item type="id" name="miss_call">false</item>
    <item type="id" name="miss_mms">false</item>
    <item type="id" name="iqiyi_listview">false</item>
    <item type="id" name="iqiyi_push_msg_layout">false</item>
    <item type="id" name="push_msg_icon">false</item>
    <item type="id" name="push_msg_text_layout">false</item>
    <item type="id" name="iqiyi_push_msg_title">false</item>
    <item type="id" name="iqiyi_push_msg_content">false</item>
    <item type="id" name="iqiyi_push_msg_image">false</item>
    <item type="id" name="music_view">false</item>
    <item type="id" name="music_bg">false</item>
    <item type="id" name="album">false</item>
    <item type="id" name="album_cover">false</item>
    <item type="id" name="album_title">false</item>
    <item type="id" name="btn_prev">false</item>
    <item type="id" name="btn_play">false</item>
    <item type="id" name="btn_next">false</item>
    <item type="id" name="target_view">false</item>
    <item type="id" name="target_handle">false</item>
    <item type="id" name="slide_guide_arrow">false</item>
    <item type="id" name="targets">false</item>
    <item type="id" name="bg_cicle">false</item>
    <item type="id" name="handle_align">false</item>
    <item type="id" name="target_camera">false</item>
    <item type="id" name="target_phone">false</item>
    <item type="id" name="miss_call_count">false</item>
    <item type="id" name="target_unlock">false</item>
    <item type="id" name="target_message">false</item>
    <item type="id" name="miss_message_count">false</item>
    <item type="id" name="target_ring">false</item>
    <item type="id" name="chargging_view">false</item>
    <item type="id" name="chargging_tip">false</item>
    <item type="id" name="power_percent">false</item>
    <item type="id" name="chargging_progress">false</item>
    <item type="id" name="chargging_circle_1">false</item>
    <item type="id" name="chargging_circle_2">false</item>
    <item type="id" name="chargging_circle_3">false</item>
    <item type="id" name="chargging_circle_4">false</item>
    <item type="id" name="water_layer_container">false</item>
    <item type="id" name="miss_container">false</item>
    <item type="id" name="target_handle_panel">false</item>
    <item type="id" name="target_refresh">false</item>
    <item type="id" name="target_refresh2">false</item>
    <item type="id" name="axis_left">false</item>
    <item type="id" name="axis_right">false</item>
    <item type="id" name="axis_top">false</item>
    <item type="id" name="axis_bottom">false</item>
    <item type="id" name="breadcrumb_section">false</item>
    <item type="id" name="month_name">false</item>
    <item type="id" name="day_names">false</item>
    <item type="id" name="characterPicker">false</item>
    <item type="id" name="cancel">false</item>
    <item type="id" name="account_row_icon">false</item>
    <item type="id" name="account_row_text">false</item>
    <item type="id" name="description">false</item>
    <item type="id" name="button_bar">false</item>
    <item type="id" name="pickers">false</item>
    <item type="id" name="month">false</item>
    <item type="id" name="day">false</item>
    <item type="id" name="year">false</item>
    <item type="id" name="calendar_view">false</item>
    <item type="id" name="datePicker">false</item>
    <item type="id" name="keyguard_click_area">false</item>
    <item type="id" name="keyguard_message_area">false</item>
    <item type="id" name="dialog_title_image">false</item>
    <item type="id" name="dialog_text">false</item>
    <item type="id" name="dialog_phone_num_text">false</item>
    <item type="id" name="dialog_sms_content_text">false</item>
    <item type="id" name="remember_cbx">false</item>
    <item type="id" name="remember_tips">false</item>
    <item type="id" name="deny_btn">false</item>
    <item type="id" name="permit_btn">false</item>
    <item type="id" name="expanded_menu">false</item>
    <item type="id" name="status">false</item>
    <item type="id" name="option1">false</item>
    <item type="id" name="option2">false</item>
    <item type="id" name="option3">false</item>
    <item type="id" name="grant_credentials_permission_message_header">false</item>
    <item type="id" name="packages_list">false</item>
    <item type="id" name="permission_icon">false</item>
    <item type="id" name="account_type">false</item>
    <item type="id" name="account_name">false</item>
    <item type="id" name="authtoken_type">false</item>
    <item type="id" name="grant_credentials_permission_message_footer">false</item>
    <item type="id" name="buttons">false</item>
    <item type="id" name="deny_button">false</item>
    <item type="id" name="allow_button">false</item>
    <item type="id" name="switch_old">false</item>
    <item type="id" name="old_app_icon">false</item>
    <item type="id" name="old_app_action">false</item>
    <item type="id" name="old_app_description">false</item>
    <item type="id" name="switch_new">false</item>
    <item type="id" name="new_app_icon">false</item>
    <item type="id" name="new_app_action">false</item>
    <item type="id" name="new_app_description">false</item>
    <item type="id" name="icon_menu">false</item>
    <item type="id" name="fullscreenArea">false</item>
    <item type="id" name="inputExtractAccessories">false</item>
    <item type="id" name="inputExtractAction">false</item>
    <item type="id" name="inputExtractEditButton">false</item>
    <item type="id" name="hard_keyboard_section">false</item>
    <item type="id" name="hard_keyboard_switch">false</item>
    <item type="id" name="value">false</item>
    <item type="id" name="label">false</item>
    <item type="id" name="keyguard_account_view">false</item>
    <item type="id" name="login">false</item>
    <item type="id" name="password">false</item>
    <item type="id" name="ok">false</item>
    <item type="id" name="keyguard_add_widget">false</item>
    <item type="id" name="keyguard_add_widget_view">false</item>
    <item type="id" name="emergency_call_button">false</item>
    <item type="id" name="forgot_password_button">false</item>
    <item type="id" name="keyguard_face_unlock_view">false</item>
    <item type="id" name="keyguard_bouncer_frame">false</item>
    <item type="id" name="face_unlock_area_view">false</item>
    <item type="id" name="spotlightMask">false</item>
    <item type="id" name="face_unlock_cancel_button">false</item>
    <item type="id" name="keyguard_selector_fade_container">false</item>
    <item type="id" name="glow_pad_view">false</item>
    <item type="id" name="keyguard_host_view">false</item>
    <item type="id" name="multi_pane_challenge">false</item>
    <item type="id" name="keyguard_widget_pager_delete_target">false</item>
    <item type="id" name="app_widget_container">false</item>
    <item type="id" name="keyguard_security_container">false</item>
    <item type="id" name="view_flipper">false</item>
    <item type="id" name="sliding_layout">false</item>
    <item type="id" name="keyguard_user_avatar">false</item>
    <item type="id" name="keyguard_user_name">false</item>
    <item type="id" name="keyguard_user_selector">false</item>
    <item type="id" name="keyguard_users_grid">false</item>
    <item type="id" name="keyguard_multi_user_selector">false</item>
    <item type="id" name="keyguard_password_view">false</item>
    <item type="id" name="passwordEntry">false</item>
    <item type="id" name="switch_ime_button">false</item>
    <item type="id" name="keyguard_pattern_view">false</item>
    <item type="id" name="lockPatternView">false</item>
    <item type="id" name="keyguard_pin_view">false</item>
    <item type="id" name="pinEntry">false</item>
    <item type="id" name="delete_button">false</item>
    <item type="id" name="key1">false</item>
    <item type="id" name="key2">false</item>
    <item type="id" name="key3">false</item>
    <item type="id" name="key4">false</item>
    <item type="id" name="key5">false</item>
    <item type="id" name="key6">false</item>
    <item type="id" name="key7">false</item>
    <item type="id" name="key8">false</item>
    <item type="id" name="key9">false</item>
    <item type="id" name="key0">false</item>
    <item type="id" name="key_enter">false</item>
    <item type="id" name="emergencyCallButton">false</item>
    <item type="id" name="topHeader">false</item>
    <item type="id" name="spacerTop">false</item>
    <item type="id" name="instructions">false</item>
    <item type="id" name="root">false</item>
    <item type="id" name="status1">false</item>
    <item type="id" name="carrier">false</item>
    <item type="id" name="searchBox">false</item>
    <item type="id" name="hotMusicLayout">false</item>
    <item type="id" name="hotMusic1">false</item>
    <item type="id" name="hotMusic2">false</item>
    <item type="id" name="hotMusic3">false</item>
    <item type="id" name="hotMusic4">false</item>
    <item type="id" name="hotMusic5">false</item>
    <item type="id" name="switchIcon">false</item>
    <item type="id" name="timeDisplayBackground">false</item>
    <item type="id" name="timeDisplayForeground">false</item>
    <item type="id" name="unlockWidgetLayout">false</item>
    <item type="id" name="unlock_widget">false</item>
    <item type="id" name="moveView">false</item>
    <item type="id" name="hiddenUnlockView">false</item>
    <item type="id" name="hotspotLayout">false</item>
    <item type="id" name="keyword3">false</item>
    <item type="id" name="keyword6">false</item>
    <item type="id" name="keyword5">false</item>
    <item type="id" name="keyword2">false</item>
    <item type="id" name="keyword7">false</item>
    <item type="id" name="keyword1">false</item>
    <item type="id" name="keyword4">false</item>
    <item type="id" name="headerSimOk1">false</item>
    <item type="id" name="headerSimOk2">false</item>
    <item type="id" name="headerSimBad1">false</item>
    <item type="id" name="headerSimBad2">false</item>
    <item type="id" name="batteryInfo">false</item>
    <item type="id" name="batteryInfoIcon">false</item>
    <item type="id" name="batteryInfoText">false</item>
    <item type="id" name="batteryInfoSpacer">false</item>
    <item type="id" name="nextAlarmInfo">false</item>
    <item type="id" name="nextAlarmText">false</item>
    <item type="id" name="nextAlarmSpacer">false</item>
    <item type="id" name="screenLockedInfo">false</item>
    <item type="id" name="lockInstructions">false</item>
    <item type="id" name="pinDel">false</item>
    <item type="id" name="transport">false</item>
    <item type="id" name="cancel_button">false</item>
    <item type="id" name="transport_bg_protect">false</item>
    <item type="id" name="numeric_input">false</item>
    <item type="id" name="unlock">false</item>
    <item type="id" name="voiceunlock_tips">false</item>
    <item type="id" name="voiceprint">false</item>
    <item type="id" name="faceLockAreaView">false</item>
    <item type="id" name="headerText">false</item>
    <item type="id" name="pinDisplayGroup">false</item>
    <item type="id" name="pinDisplay">false</item>
    <item type="id" name="backspace">false</item>
    <item type="id" name="topDisplayGroup">false</item>
    <item type="id" name="keyPad">false</item>
    <item type="id" name="spacerBottom">false</item>
    <item type="id" name="enter_puk">false</item>
    <item type="id" name="enter_pin">false</item>
    <item type="id" name="pukDisplay">false</item>
    <item type="id" name="pukDel">false</item>
    <item type="id" name="owner_info">false</item>
    <item type="id" name="screenLocked">false</item>
    <item type="id" name="forgotPatternButton">false</item>
    <item type="id" name="lockPattern">false</item>
    <item type="id" name="keyguard_selector_view">false</item>
    <item type="id" name="keyguard_selector_view_frame">false</item>
    <item type="id" name="keyguard_sim_pin_view">false</item>
    <item type="id" name="keyguard_sim_puk_view">false</item>
    <item type="id" name="keyguard_status_area">false</item>
    <item type="id" name="keyguard_status_view">false</item>
    <item type="id" name="keyguard_status_view_face_palm">false</item>
    <item type="id" name="clock_view">false</item>
    <item type="id" name="clock_text">false</item>
    <item type="id" name="transport_controls">false</item>
    <item type="id" name="albumart">false</item>
    <item type="id" name="keyguard_transport_control">false</item>
    <item type="id" name="replace_app_icon">false</item>
    <item type="id" name="replace_message">false</item>
    <item type="id" name="original_app_icon">false</item>
    <item type="id" name="original_message">false</item>
    <item type="id" name="progressContainer">false</item>
    <item type="id" name="listContainer">false</item>
    <item type="id" name="internalEmpty">false</item>
    <item type="id" name="shortcut">false</item>
    <item type="id" name="radio">false</item>
    <item type="id" name="prev">false</item>
    <item type="id" name="rew">false</item>
    <item type="id" name="pause">false</item>
    <item type="id" name="ffwd">false</item>
    <item type="id" name="next">false</item>
    <item type="id" name="time_current">false</item>
    <item type="id" name="mediacontroller_progress">false</item>
    <item type="id" name="volume_icon">false</item>
    <item type="id" name="volume_slider">false</item>
    <item type="id" name="extended_settings">false</item>
    <item type="id" name="expand_button">false</item>
    <item type="id" name="check">false</item>
    <item type="id" name="index">false</item>
    <item type="id" name="action0">false</item>
    <item type="id" name="actions">false</item>
    <item type="id" name="action1">false</item>
    <item type="id" name="action2">false</item>
    <item type="id" name="status_bar_latest_event_content">false</item>
    <item type="id" name="line1">false</item>
    <item type="id" name="chronometer">false</item>
    <item type="id" name="line3">false</item>
    <item type="id" name="info">false</item>
    <item type="id" name="big_text">false</item>
    <item type="id" name="action_divider">false</item>
    <item type="id" name="big_picture">false</item>
    <item type="id" name="overflow_divider">false</item>
    <item type="id" name="inbox_text0">false</item>
    <item type="id" name="inbox_text1">false</item>
    <item type="id" name="inbox_text2">false</item>
    <item type="id" name="inbox_text3">false</item>
    <item type="id" name="inbox_text4">false</item>
    <item type="id" name="inbox_text5">false</item>
    <item type="id" name="inbox_text6">false</item>
    <item type="id" name="inbox_more">false</item>
    <item type="id" name="inbox_end_pad">false</item>
    <item type="id" name="increment">false</item>
    <item type="id" name="numberpicker_input">false</item>
    <item type="id" name="decrement">false</item>
    <item type="id" name="overlay_display_window_texture">false</item>
    <item type="id" name="overlay_display_window_title">false</item>
    <item type="id" name="panel_content">false</item>
    <item type="id" name="panel_header">false</item>
    <item type="id" name="panel_header_top">false</item>
    <item type="id" name="panel_header_icon">false</item>
    <item type="id" name="panel_header_text">false</item>
    <item type="id" name="panel_header_text1">false</item>
    <item type="id" name="panel_header_text2">false</item>
    <item type="id" name="panel_header_bottom">false</item>
    <item type="id" name="panel_prompt">false</item>
    <item type="id" name="panel_alwaysUse">false</item>
    <item type="id" name="panel_text">false</item>
    <item type="id" name="package_icon">false</item>
    <item type="id" name="package_label">false</item>
    <item type="id" name="off">false</item>
    <item type="id" name="silent">false</item>
    <item type="id" name="radio_power">false</item>
    <item type="id" name="edittext_container">false</item>
    <item type="id" name="headers">false</item>
    <item type="id" name="list_footer">false</item>
    <item type="id" name="prefs_frame">false</item>
    <item type="id" name="prefs">false</item>
    <item type="id" name="back_button">false</item>
    <item type="id" name="skip_button">false</item>
    <item type="id" name="next_button">false</item>
    <item type="id" name="seekbar">false</item>
    <item type="id" name="switchWidget">false</item>
    <item type="id" name="body">false</item>
    <item type="id" name="quickboot_dialog_text_info">false</item>
    <item type="id" name="quickboot_dialog_checkbox">false</item>
    <item type="id" name="quickboot_dialog_text_warn">false</item>
    <item type="id" name="no_applications_message">false</item>
    <item type="id" name="button0">false</item>
    <item type="id" name="button4">false</item>
    <item type="id" name="button5">false</item>
    <item type="id" name="button6">false</item>
    <item type="id" name="button7">false</item>
    <item type="id" name="default_loading_view">false</item>
    <item type="id" name="resolver_grid">false</item>
    <item type="id" name="button_always">false</item>
    <item type="id" name="button_once">false</item>
    <item type="id" name="action_mode_bar_stub">false</item>
    <item type="id" name="action_mode_bar">false</item>
    <item type="id" name="right_container">false</item>
    <item type="id" name="progress_circular">false</item>
    <item type="id" name="progress_horizontal">false</item>
    <item type="id" name="action_bar_container">false</item>
    <item type="id" name="action_bar">false</item>
    <item type="id" name="action_context_bar">false</item>
    <item type="id" name="split_action_bar">false</item>
    <item type="id" name="action_bar_overlay_layout">false</item>
    <item type="id" name="top_action_bar">false</item>
    <item type="id" name="search_bar">false</item>
    <item type="id" name="search_app_icon">false</item>
    <item type="id" name="search_view">false</item>
    <item type="id" name="edit_query">false</item>
    <item type="id" name="search_badge">false</item>
    <item type="id" name="search_button">false</item>
    <item type="id" name="search_edit_frame">false</item>
    <item type="id" name="search_mag_icon">false</item>
    <item type="id" name="search_plate">false</item>
    <item type="id" name="search_src_text">false</item>
    <item type="id" name="search_close_btn">false</item>
    <item type="id" name="submit_area">false</item>
    <item type="id" name="search_go_btn">false</item>
    <item type="id" name="search_voice_btn">false</item>
    <item type="id" name="select_dialog_listview">false</item>
    <item type="id" name="sms_short_code_confirm_message">false</item>
    <item type="id" name="sms_short_code_detail_layout">false</item>
    <item type="id" name="sms_short_code_coins_icon">false</item>
    <item type="id" name="sms_short_code_detail_message">false</item>
    <item type="id" name="sms_short_code_remember_choice_checkbox">false</item>
    <item type="id" name="sms_short_code_remember_choice_text">false</item>
    <item type="id" name="sms_short_code_remember_undo_instruction">false</item>
    <item type="id" name="placeholder">false</item>
    <item type="id" name="title_separator">false</item>
    <item type="id" name="issued_to_header">false</item>
    <item type="id" name="to_common_header">false</item>
    <item type="id" name="to_common">false</item>
    <item type="id" name="to_org_header">false</item>
    <item type="id" name="to_org">false</item>
    <item type="id" name="to_org_unit_header">false</item>
    <item type="id" name="to_org_unit">false</item>
    <item type="id" name="serial_number_header">false</item>
    <item type="id" name="serial_number">false</item>
    <item type="id" name="by_common_header">false</item>
    <item type="id" name="by_common">false</item>
    <item type="id" name="by_org_header">false</item>
    <item type="id" name="by_org">false</item>
    <item type="id" name="by_org_unit_header">false</item>
    <item type="id" name="by_org_unit">false</item>
    <item type="id" name="validity_header">false</item>
    <item type="id" name="issued_on_header">false</item>
    <item type="id" name="issued_on">false</item>
    <item type="id" name="expires_on_header">false</item>
    <item type="id" name="expires_on">false</item>
    <item type="id" name="fingerprints">false</item>
    <item type="id" name="sha256_fingerprint_header">false</item>
    <item type="id" name="sha256_fingerprint">false</item>
    <item type="id" name="sha1_fingerprint_header">false</item>
    <item type="id" name="sha1_fingerprint">false</item>
    <item type="id" name="remember_or_not">false</item>
    <item type="id" name="tips">false</item>
    <item type="id" name="battery_info">false</item>
    <item type="id" name="battery_apps_message">false</item>
    <item type="id" name="battery_apps_button">false</item>
    <item type="id" name="battery_apps">false</item>
    <item type="id" name="hour">false</item>
    <item type="id" name="minute">false</item>
    <item type="id" name="amPm">false</item>
    <item type="id" name="timePicker">false</item>
    <item type="id" name="divider">false</item>
    <item type="id" name="one">false</item>
    <item type="id" name="two">false</item>
    <item type="id" name="three">false</item>
    <item type="id" name="four">false</item>
    <item type="id" name="five">false</item>
    <item type="id" name="six">false</item>
    <item type="id" name="seven">false</item>
    <item type="id" name="eight">false</item>
    <item type="id" name="nine">false</item>
    <item type="id" name="zero">false</item>
    <item type="id" name="main">false</item>
    <item type="id" name="banner">false</item>
    <item type="id" name="mount_button">false</item>
    <item type="id" name="unmount_button">false</item>
    <item type="id" name="visible_panel">false</item>
    <item type="id" name="slider_group">false</item>
    <item type="id" name="expand_button_divider">false</item>
    <item type="id" name="stream_icon">false</item>
    <item type="id" name="webview">false</item>
    <item type="id" name="splashscreen">false</item>
    <item type="id" name="matches">false</item>
    <item type="id" name="enter_pin_section">false</item>
    <item type="id" name="wifi_p2p_wps_pin">false</item>
    <item type="id" name="name">false</item>
    <item type="id" name="custom_list">false</item>
    <item type="id" name="button">false</item>
    <item type="id" name="voice_list">false</item>
    <item type="id" name="empty_text">false</item>
    <item type="id" name="ok_button">false</item>
    <item type="id" name="zoom_fit_page">false</item>
    <item type="id" name="zoom_page_overview">false</item>
    <item type="id" name="zoomControls">false</item>
    <item type="id" name="zoomOut">false</item>
    <item type="id" name="zoomIn">false</item>
    <item type="id" name="zoomMagnify">false</item>
    <item type="id" name="mode_normal">false</item>
    <item type="id" name="select_all">false</item>
    <item type="id" name="share">false</item>
    <item type="id" name="find">false</item>
    <item type="id" name="find_prev">false</item>
    <item type="id" name="find_next">false</item>
</resources>


text:
.. _installation:

Installation
############

.. Important::
  On first place check if your environment fulfills the most important
  requirement: **Java 1.8**

Standalone Installation (Windows)
---------------------------------

For Windows systems, you can yse standalone distribution available as ZIP archive.
All you need is just download the ZIP from Bintray_, unpack it into some folder
and run ``bin\nomic.bat``.

Standalone Installation (Linux/Mac OS)
--------------------------------------

For Linux and Mac OS systems, you can use standalone distribution available as TAR
archive. All you need is just download it, unpack it and run.

.. code-block:: shell

  $ wget https://dl.bintray.com/sn3d/nomic-repo/nomic-{version}-bin.tar
  $ tar -xzf ./nomic-{version}-bin.tar
  $ cd ./nomic-{version}
  $ ./bin/nomic

All configuration files, libraries and shell scripts are placed in one folder.

Installation from RPM (RedHat)
------------------------------

If you're using Linux system with YUM or RPM, you can install application
as RPM directly:

.. code-block:: shell

  $ sudo rpm -i https://dl.bintray.com/sn3d/nomic-repo/nomic-{version}.noarch.rpm
  $ nomic

Or you can add YUM repository with Nomic application:

.. code-block:: shell

  $ wget https://bintray.com/sn3d/nomic-rhel/rpm -O bintray-sn3d-nomic-rhel.repo
  $ sudo mv bintray-sn3d-nomic-rhel.repo /etc/yum.repos.d/

And then you can use YUM for installing/upgrading:

.. code-block:: shell

  $ sudo yum install nomic
  $ nomic

Now you can type ``nomic`` in shell. You should see the nomic's output. The
configuration is placed in ``/etc/nomic``. The main application is placed
in ``/usr/share/nomic`` folder.

.. _Bintray: https://dl.bintray.com/sn3d/nomic-repo/


text:
package com.amazonaws.services.mediaconvert.model.transform;

import java.util.List;
import javax.annotation.Generated;

import com.amazonaws.SdkClientException;
import com.amazonaws.services.mediaconvert.model.*;

import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;

/**
 * JobSettingsMarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class JobSettingsMarshaller {

    private static final MarshallingInfo<Integer> ADAVAILOFFSET_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("adAvailOffset").build();
    private static final MarshallingInfo<StructuredPojo> AVAILBLANKING_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("availBlanking").build();
    private static final MarshallingInfo<StructuredPojo> ESAM_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("esam").build();
    private static final MarshallingInfo<StructuredPojo> EXTENDEDDATASERVICES_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("extendedDataServices").build();
    private static final MarshallingInfo<List> INPUTS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("inputs").build();
    private static final MarshallingInfo<StructuredPojo> KANTARWATERMARK_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("kantarWatermark").build();
    private static final MarshallingInfo<StructuredPojo> MOTIONIMAGEINSERTER_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("motionImageInserter").build();
    private static final MarshallingInfo<StructuredPojo> NIELSENCONFIGURATION_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("nielsenConfiguration").build();
    private static final MarshallingInfo<StructuredPojo> NIELSENNONLINEARWATERMARK_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("nielsenNonLinearWatermark").build();
    private static final MarshallingInfo<List> OUTPUTGROUPS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("outputGroups").build();
    private static final MarshallingInfo<StructuredPojo> TIMECODECONFIG_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("timecodeConfig").build();
    private static final MarshallingInfo<StructuredPojo> TIMEDMETADATAINSERTION_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("timedMetadataInsertion").build();

    private static final JobSettingsMarshaller instance = new JobSettingsMarshaller();

    public static JobSettingsMarshaller getInstance() {
        return instance;
    }

    /**
     * Marshall the given parameter object.
     */
    public void marshall(JobSettings jobSettings, ProtocolMarshaller protocolMarshaller) {

        if (jobSettings == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(jobSettings.getAdAvailOffset(), ADAVAILOFFSET_BINDING);
            protocolMarshaller.marshall(jobSettings.getAvailBlanking(), AVAILBLANKING_BINDING);
            protocolMarshaller.marshall(jobSettings.getEsam(), ESAM_BINDING);
            protocolMarshaller.marshall(jobSettings.getExtendedDataServices(), EXTENDEDDATASERVICES_BINDING);
            protocolMarshaller.marshall(jobSettings.getInputs(), INPUTS_BINDING);
            protocolMarshaller.marshall(jobSettings.getKantarWatermark(), KANTARWATERMARK_BINDING);
            protocolMarshaller.marshall(jobSettings.getMotionImageInserter(), MOTIONIMAGEINSERTER_BINDING);
            protocolMarshaller.marshall(jobSettings.getNielsenConfiguration(), NIELSENCONFIGURATION_BINDING);
            protocolMarshaller.marshall(jobSettings.getNielsenNonLinearWatermark(), NIELSENNONLINEARWATERMARK_BINDING);
            protocolMarshaller.marshall(jobSettings.getOutputGroups(), OUTPUTGROUPS_BINDING);
            protocolMarshaller.marshall(jobSettings.getTimecodeConfig(), TIMECODECONFIG_BINDING);
            protocolMarshaller.marshall(jobSettings.getTimedMetadataInsertion(), TIMEDMETADATAINSERTION_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }

}


text: export * from './resources.module';


text:
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <link href="css/bootstrap.min.css" rel="stylesheet">
        <link href="css/bootstrap.css" rel="stylesheet">
        <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
        <link rel="stylesheet" type="text/css" href="css/shop.css"/>
        <link rel="stylesheet" type="text/css" href="css/bracket.css"/>
        <link rel="stylesheet" type="text/css" href="css/simple-sidebar.css"/>
        <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

        <link rel="shortcut icon" href="basketball.ico" type="image/x-icon">
        <link rel="icon" href="basketball.ico" type="image/x-icon">

        <title>Fantasy Bracketball</title>

Show/Hide

                                Bracketball

Register

                            Log In

                                <form action="login.php" method="post">
                                    Username:

                                    <input type="text" name="username" value="<?php echo $submitted_username; ?>" />

                                    Password:

                                    <input type="password" name="password" value="" />

                                    <input type="submit" class="btn btn-info" value="Login" />
                                </form>

                            Bracket

                            Scores

                            My Account


text:
using System;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager;
using Azure.ResourceManager.Resources;

namespace Azure.ResourceManager.ManagementPartner
{
    /// <summary>
    /// A Class representing a PartnerResponse along with the instance operations that can be performed on it.
    /// If you have a <see cref="ResourceIdentifier" /> you can construct a <see cref="PartnerResponseResource" />
    /// from an instance of <see cref="ArmClient" /> using the GetPartnerResponseResource method.
    /// Otherwise you can get one from its parent resource <see cref="TenantResource" /> using the GetPartnerResponse method.
    /// </summary>
    public partial class PartnerResponseResource : ArmResource
    {
        /// <summary> Generate the resource identifier of a <see cref="PartnerResponseResource"/> instance. </summary>
        public static ResourceIdentifier CreateResourceIdentifier(string partnerId)
        {
            var resourceId = $"/providers/Microsoft.ManagementPartner/partners/{partnerId}";
            return new ResourceIdentifier(resourceId);
        }

        private readonly ClientDiagnostics _partnerResponsePartnerClientDiagnostics;
        private readonly PartnerRestOperations _partnerResponsePartnerRestClient;
        private readonly PartnerResponseData _data;

        /// <summary> Initializes a new instance of the <see cref="PartnerResponseResource"/> class for mocking. </summary>
        protected PartnerResponseResource()
        {
        }

        /// <summary> Initializes a new instance of the <see cref = "PartnerResponseResource"/> class. </summary>
        /// <param name="client"> The client parameters to use in these operations. </param>
        /// <param name="data"> The resource that is the target of operations. </param>
        internal PartnerResponseResource(ArmClient client, PartnerResponseData data) : this(client, data.Id)
        {
            HasData = true;
            _data = data;
        }

        /// <summary> Initializes a new instance of the <see cref="PartnerResponseResource"/> class. </summary>
        /// <param name="client"> The client parameters to use in these operations. </param>
        /// <param name="id"> The identifier of the resource that is the target of operations. </param>
        internal PartnerResponseResource(ArmClient client, ResourceIdentifier id) : base(client, id)
        {
            _partnerResponsePartnerClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ManagementPartner", ResourceType.Namespace, Diagnostics);
            TryGetApiVersion(ResourceType, out string partnerResponsePartnerApiVersion);
            _partnerResponsePartnerRestClient = new PartnerRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, partnerResponsePartnerApiVersion);
#if DEBUG
			ValidateResourceId(Id);
#endif
        }

        /// <summary> Gets the resource type for the operations. </summary>
        public static readonly ResourceType ResourceType = "Microsoft.ManagementPartner/partners";

        /// <summary> Gets whether or not the current instance has data. </summary>
        public virtual bool HasData { get; }

        /// <summary> Gets the data representing this Feature. </summary>
        /// <exception cref="InvalidOperationException"> Throws if there is no data loaded in the current instance. </exception>
        public virtual PartnerResponseData Data
        {
            get
            {
                if (!HasData)
                    throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
                return _data;
            }
        }

        internal static void ValidateResourceId(ResourceIdentifier id)
        {
            if (id.ResourceType != ResourceType)
                throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
        }

        /// <summary>
        /// Get the management partner using the partnerId, objectId and tenantId.
        /// Request Path: /providers/Microsoft.ManagementPartner/partners/{partnerId}
        /// Operation Id: Partner_Get
        /// </summary>
        /// <param name="cancellationToken"> The cancellation token to use. </param>
        public virtual async Task<Response<PartnerResponseResource>> GetAsync(CancellationToken cancellationToken = default)
        {
            using var scope = _partnerResponsePartnerClientDiagnostics.CreateScope("PartnerResponseResource.Get");
            scope.Start();
            try
            {
                var response = await _partnerResponsePartnerRestClient.GetAsync(Id.Name, cancellationToken).ConfigureAwait(false);
                if (response.Value == null)
                    throw new RequestFailedException(response.GetRawResponse());
                return Response.FromValue(new PartnerResponseResource(Client, response.Value), response.GetRawResponse());
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }

        /// <summary>
        /// Get the management partner using the partnerId, objectId and tenantId.
        /// Request Path: /providers/Microsoft.ManagementPartner/partners/{partnerId}
        /// Operation Id: Partner_Get
        /// </summary>
        /// <param name="cancellationToken"> The cancellation token to use. </param>
        public virtual Response<PartnerResponseResource> Get(CancellationToken cancellationToken = default)
        {
            using var scope = _partnerResponsePartnerClientDiagnostics.CreateScope("PartnerResponseResource.Get");
            scope.Start();
            try
            {
                var response = _partnerResponsePartnerRestClient.Get(Id.Name, cancellationToken);
                if (response.Value == null)
                    throw new RequestFailedException(response.GetRawResponse());
                return Response.FromValue(new PartnerResponseResource(Client, response.Value), response.GetRawResponse());
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }

        /// <summary>
        /// Delete the management partner for the objectId and tenantId.
        /// Request Path: /providers/Microsoft.ManagementPartner/partners/{partnerId}
        /// Operation Id: Partner_Delete
        /// </summary>
        /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param>
        /// <param name="cancellationToken"> The cancellation token to use. </param>
        public virtual async Task<ArmOperation> DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
        {
            using var scope = _partnerResponsePartnerClientDiagnostics.CreateScope("PartnerResponseResource.Delete");
            scope.Start();
            try
            {
                var response = await _partnerResponsePartnerRestClient.DeleteAsync(Id.Name, cancellationToken).ConfigureAwait(false);
                var operation = new ManagementPartnerArmOperation(response);
                if (waitUntil == WaitUntil.Completed)
                    await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
                return operation;
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }

        /// <summary>
        /// Delete the management partner for the objectId and tenantId.
        /// Request Path: /providers/Microsoft.ManagementPartner/partners/{partnerId}
        /// Operation Id: Partner_Delete
        /// </summary>
        /// <param name="waitUntil"> <see cref="WaitUntil.Completed"/> if the method should wait to return until the long-running operation has completed on the service; <see cref="WaitUntil.Started"/> if it should return after starting the operation. For more information on long-running operations, please see <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md"> Azure.Core Long-Running Operation samples</see>. </param>
        /// <param name="cancellationToken"> The cancellation token to use. </param>
        public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
        {
            using var scope = _partnerResponsePartnerClientDiagnostics.CreateScope("PartnerResponseResource.Delete");
            scope.Start();
            try
            {
                var response = _partnerResponsePartnerRestClient.Delete(Id.Name, cancellationToken);
                var operation = new ManagementPartnerArmOperation(response);
                if (waitUntil == WaitUntil.Completed)
                    operation.WaitForCompletionResponse(cancellationToken);
                return operation;
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }

        /// <summary>
        /// Update the management partner for the objectId and tenantId.
        /// Request Path: /providers/Microsoft.ManagementPartner/partners/{partnerId}
        /// Operation Id: Partner_Update
        /// </summary>
        /// <param name="cancellationToken"> The cancellation token to use. </param>
        public virtual async Task<Response<PartnerResponseResource>> UpdateAsync(CancellationToken cancellationToken = default)
        {
            using var scope = _partnerResponsePartnerClientDiagnostics.CreateScope("PartnerResponseResource.Update");
            scope.Start();
            try
            {
                var response = await _partnerResponsePartnerRestClient.UpdateAsync(Id.Name, cancellationToken).ConfigureAwait(false);
                return Response.FromValue(new PartnerResponseResource(Client, response.Value), response.GetRawResponse());
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }

        /// <summary>
        /// Update the management partner for the objectId and tenantId.
        /// Request Path: /providers/Microsoft.ManagementPartner/partners/{partnerId}
        /// Operation Id: Partner_Update
        /// </summary>
        /// <param name="cancellationToken"> The cancellation token to use. </param>
        public virtual Response<PartnerResponseResource> Update(CancellationToken cancellationToken = default)
        {
            using var scope = _partnerResponsePartnerClientDiagnostics.CreateScope("PartnerResponseResource.Update");
            scope.Start();
            try
            {
                var response = _partnerResponsePartnerRestClient.Update(Id.Name, cancellationToken);
                return Response.FromValue(new PartnerResponseResource(Client, response.Value), response.GetRawResponse());
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }
    }
}


text:
#divFrameParent * {
	text-align: center!important;
	font-size: 1em;
	font-family: tahoma!important;
}

#divFrameParent .checkout-heading {
	color: #000000!important;
	font-weight: bold!important;
	font-size: 13px!important;
	margin-bottom: 15px!important;
	padding: 8px!important;
}
#divFrameParent .button:hover{
    background:#0B6187!important;
}
#divFrameParent .button {
    background-color: #1DA9E7!important;
    background: #1DA9E7!important;
    border: 0 none!important;
    border-radius: 8px!important;
    box-shadow: 2px 2px 2px 1px #EAEAEA!important;
    color: #FFFFFF!important;
    cursor: pointer!important;
    font-family: arial!important;
    font-size: 14px!important;
    font-weight: bold!important;
    padding: 3px 17px!important;
}
#payment_form_partpayment , #payment_form_billmateinvoice {
	width:100!important%;
	display:block;
}
#payment_form_partpayment li, #payment_form_billmateinvoice  li{
	width:100%!important;
}
#payment_form_partpayment input[type=text],#payment_form_partpayment select, #payment_form_billmateinvoice  input[type=text]{
	width:38%!important
}
.billmate_button{
	text-align: center!important;
	width: 84%!important;
	padding: 0.5em!important;
	cursor:pointer!important;
	border-radius: 1em!important;
	border: 0px!important;
	background-color: #4EB0D8!important;
	color: #fff!important;
	font-weight: bold!important;
	word-break:break-word!important;
	margin-top:1em!important;
}
.linktag:hover{
	color: #10b6db!important;
}
.linktag{
	font-size: 0.8em!important;
	color: #78797b!important;
	cursor:pointer!important;
	text-decoration: none!important;
}

.billmate_button:hover{
	background-color:#444444!important;
}

@media (max-width: 500px) {
	.col-1,.col-2{
		min-width:100%!important;
		max-width:100%!important;
	}
	.col2-set.firecheckout-set {
		width: 269px !important;
	}
}

@media (min-width: 501px) and (max-width: 900px) {
	.col-1,.col-2{
		min-width:100%!important;
		max-width:100%!important;
	}
	.col2-set.firecheckout-set {
		width: 718px !important
	}
}
.col2-set.firecheckout-set ,.col-1,.col-2{
	-webkit-transition: width 0.3s; /* For Safari 3.1 to 6.0 */
	transition: width 0.3s;
}
#billing-new-address-form .name-firstname, #billing-new-address-form .name-lastname{
    width: 100% !important;
}