text:
package validation

import (
	"fmt"
	"math"
	"net"
	"regexp"
	"strings"
)

const qnameCharFmt string = "[A-Za-z0-9]"
const qnameExtCharFmt string = "[-A-Za-z0-9_.]"
const qualifiedNameFmt string = "(" + qnameCharFmt + qnameExtCharFmt + "*)?" + qnameCharFmt
const qualifiedNameMaxLength int = 63

var qualifiedNameRegexp = regexp.MustCompile("^" + qualifiedNameFmt + "$")

// IsQualifiedName tests whether the value passed is what Kubernetes calls a
// "qualified name".  This is a format used in various places throughout the
// system.  If the value is not valid, a list of error strings is returned.
// Otherwise an empty list (or nil) is returned.
func IsQualifiedName(value string) []string {
	var errs []string
	parts := strings.Split(value, "/")
	var name string
	switch len(parts) {
	case 1:
		name = parts[0]
	case 2:
		var prefix string
		prefix, name = parts[0], parts[1]
		if len(prefix) == 0 {
			errs = append(errs, "prefix part "+EmptyError())
		} else if msgs := IsDNS1123Subdomain(prefix); len(msgs) != 0 {
			errs = append(errs, prefixEach(msgs, "prefix part ")...)
		}
	default:
		return append(errs, RegexError(qualifiedNameFmt, "MyName", "my.name", "123-abc")+
			" with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName'")
	}

	if len(name) == 0 {
		errs = append(errs, "name part "+EmptyError())
	} else if len(name) > qualifiedNameMaxLength {
		errs = append(errs, "name part "+MaxLenError(qualifiedNameMaxLength))
	}
	if !qualifiedNameRegexp.MatchString(name) {
		errs = append(errs, "name part "+RegexError(qualifiedNameFmt, "MyName", "my.name", "123-abc"))
	}
	return errs
}

const labelValueFmt string = "(" + qualifiedNameFmt + ")?"
const LabelValueMaxLength int = 63

var labelValueRegexp = regexp.MustCompile("^" + labelValueFmt + "$")

// IsValidLabelValue tests whether the value passed is a valid label value.  If
// the value is not valid, a list of error strings is returned.  Otherwise an
// empty list (or nil) is returned.
func IsValidLabelValue(value string) []string {
	var errs []string
	if len(value) > LabelValueMaxLength {
		errs = append(errs, MaxLenError(LabelValueMaxLength))
	}
	if !labelValueRegexp.MatchString(value) {
		errs = append(errs, RegexError(labelValueFmt, "MyValue", "my_value", "12345"))
	}
	return errs
}

const DNS1123LabelFmt string = "[a-z0-9]([-a-z0-9]*[a-z0-9])?"
const DNS1123LabelMaxLength int = 63

var dns1123LabelRegexp = regexp.MustCompile("^" + DNS1123LabelFmt + "$")

// IsDNS1123Label tests for a string that conforms to the definition of a label in
// DNS (RFC 1123).
func IsDNS1123Label(value string) []string {
	var errs []string
	if len(value) > DNS1123LabelMaxLength {
		errs = append(errs, MaxLenError(DNS1123LabelMaxLength))
	}
	if !dns1123LabelRegexp.MatchString(value) {
		errs = append(errs, RegexError(DNS1123LabelFmt, "my-name", "123-abc"))
	}
	return errs
}

const DNS1123SubdomainFmt string = DNS1123LabelFmt + "(\\." + DNS1123LabelFmt + ")*"
const DNS1123SubdomainMaxLength int = 253

var dns1123SubdomainRegexp = regexp.MustCompile("^" + DNS1123SubdomainFmt + "$")

// IsDNS1123Subdomain tests for a string that conforms to the definition of a
// subdomain in DNS (RFC 1123).
func IsDNS1123Subdomain(value string) []string {
	var errs []string
	if len(value) > DNS1123SubdomainMaxLength {
		errs = append(errs, MaxLenError(DNS1123SubdomainMaxLength))
	}
	if !dns1123SubdomainRegexp.MatchString(value) {
		errs = append(errs, RegexError(DNS1123SubdomainFmt, "example.com"))
	}
	return errs
}

const DNS952LabelFmt string = "[a-z]([-a-z0-9]*[a-z0-9])?"
const DNS952LabelMaxLength int = 24

var dns952LabelRegexp = regexp.MustCompile("^" + DNS952LabelFmt + "$")

// IsDNS952Label tests for a string that conforms to the definition of a label in
// DNS (RFC 952).
func IsDNS952Label(value string) []string {
	var errs []string
	if len(value) > DNS952LabelMaxLength {
		errs = append(errs, MaxLenError(DNS952LabelMaxLength))
	}
	if !dns952LabelRegexp.MatchString(value) {
		errs = append(errs, RegexError(DNS952LabelFmt, "my-name", "abc-123"))
	}
	return errs
}

const CIdentifierFmt string = "[A-Za-z_][A-Za-z0-9_]*"

var cIdentifierRegexp = regexp.MustCompile("^" + CIdentifierFmt + "$")

// IsCIdentifier tests for a string that conforms the definition of an identifier
// in C. This checks the format, but not the length.
func IsCIdentifier(value string) bool {
	return cIdentifierRegexp.MatchString(value)
}

// IsValidPortNum tests that the argument is a valid, non-zero port number.
func IsValidPortNum(port int) bool {
	return 0 < port && port < 65536
}

// Now in libcontainer UID/GID limits is 0 ~ 1<<31 - 1
// TODO: once we have a type for UID/GID we should make these that type.
const (
	minUserID  = 0
	maxUserID  = math.MaxInt32
	minGroupID = 0
	maxGroupID = math.MaxInt32
)

// IsValidGroupId tests that the argument is a valid gids.
func IsValidGroupId(gid int64) bool {
	return minGroupID <= gid && gid <= maxGroupID
}

// IsValidUserId tests that the argument is a valid uids.
func IsValidUserId(uid int64) bool {
	return minUserID <= uid && uid <= maxUserID
}

const doubleHyphensFmt string = ".*(--).*"

var doubleHyphensRegexp = regexp.MustCompile("^" + doubleHyphensFmt + "$")

const IdentifierNoHyphensBeginEndFmt string = "[a-z0-9]([a-z0-9-]*[a-z0-9])*"

var identifierNoHyphensBeginEndRegexp = regexp.MustCompile("^" + IdentifierNoHyphensBeginEndFmt + "$")

const atLeastOneLetterFmt string = ".*[a-z].*"

var atLeastOneLetterRegexp = regexp.MustCompile("^" + atLeastOneLetterFmt + "$")

// IsValidPortName check that the argument is valid syntax. It must be non empty and no more than 15 characters long
// It must contains at least one letter [a-z] and it must contains only [a-z0-9-].
// Hypens ('-') cannot be leading or trailing character of the string and cannot be adjacent to other hyphens.
// Although RFC 6335 allows upper and lower case characters but case is ignored for comparison purposes: (HTTP
// and http denote the same service).
func IsValidPortName(port string) bool {
	if len(port) < 1 || len(port) > 15 {
		return false
	}
	if doubleHyphensRegexp.MatchString(port) {
		return false
	}
	if identifierNoHyphensBeginEndRegexp.MatchString(port) && atLeastOneLetterRegexp.MatchString(port) {
		return true
	}
	return false
}

// IsValidIP tests that the argument is a valid IP address.
func IsValidIP(value string) bool {
	return net.ParseIP(value) != nil
}

const percentFmt string = "[0-9]+%"

var percentRegexp = regexp.MustCompile("^" + percentFmt + "$")

func IsValidPercent(percent string) bool {
	return percentRegexp.MatchString(percent)
}

const HTTPHeaderNameFmt string = "[-A-Za-z0-9]+"

var httpHeaderNameRegexp = regexp.MustCompile("^" + HTTPHeaderNameFmt + "$")

// IsHTTPHeaderName checks that a string conforms to the Go HTTP library's
// definition of a valid header field name (a stricter subset than RFC7230).
func IsHTTPHeaderName(value string) bool {
	return httpHeaderNameRegexp.MatchString(value)
}

// MaxLenError returns a string explanation of a "string too long" validation
// failure.
func MaxLenError(length int) string {
	return fmt.Sprintf("must be no more than %d characters", length)
}

// RegexError returns a string explanation of a regex validation failure.
func RegexError(fmt string, examples ...string) string {
	s := "must match the regex " + fmt
	if len(examples) == 0 {
		return s
	}
	s += " (e.g. "
	for i := range examples {
		if i > 0 {
			s += " or "
		}
		s += "'" + examples[i] + "'"
	}
	return s + ")"
}

// EmptyError returns a string explanation of a "must not be empty" validation
// failure.
func EmptyError() string {
	return "must be non-empty"
}

func prefixEach(msgs []string, prefix string) []string {
	for i := range msgs {
		msgs[i] = prefix + msgs[i]
	}
	return msgs
}


text:
package com.vaadin.tests.applicationservlet;

import org.junit.Assert;
import org.junit.Test;

import com.vaadin.testbench.elements.LabelElement;
import com.vaadin.testbench.elements.VerticalLayoutElement;
import com.vaadin.tests.tb3.MultiBrowserTest;

public class CustomDeploymentConfTest extends MultiBrowserTest {
    @Test
    public void testCustomDeploymentConf() {
        openTestURL();

        LabelElement cacheTimeLabel = $$(VerticalLayoutElement.class)
                .$$(VerticalLayoutElement.class).$$(LabelElement.class).first();

        LabelElement customParamLabel = $$(VerticalLayoutElement.class)
                .$$(VerticalLayoutElement.class).$$(LabelElement.class).get(1);

        Assert.assertEquals("Resource cache time: 3599",
                cacheTimeLabel.getText());
        Assert.assertEquals("Custom config param: customValue",
                customParamLabel.getText());
    }
}

redpajama_set_name: RedPajamaGithub


text:
    <link href="./style.css" rel="stylesheet" type="text/css"/>
    <title>One piece</title>

    <input id="btn-refresh" type="submit" value="Refresh"/>


text:
Introduction
============

`Kraken <http://ccb.jhu.edu/software/kraken/>`__ is a taxonomic sequence
classifier that assigns taxonomic labels to short DNA reads. It does
this by examining the :math:`k`-mers within a read and querying a
database with those :math:`k`-mers. This database contains a mapping of
every :math:`k`-mer in
`Kraken <http://ccb.jhu.edu/software/kraken/>`__'s genomic library to
the lowest common ancestor (LCA) in a taxonomic tree of all genomes that
contain that :math:`k`-mer. The set of LCA taxa that correspond to the
:math:`k`-mers in a read are then analyzed to create a single taxonomic
label for the read; this label can be any of the nodes in the taxonomic
tree. `Kraken <http://ccb.jhu.edu/software/kraken/>`__ is designed to be
rapid, sensitive, and highly precise. Our tests on various real and
simulated data have shown
`Kraken <http://ccb.jhu.edu/software/kraken/>`__ to have sensitivity
slightly lower than Megablast with precision being slightly higher. On a
set of simulated 100 bp reads,
`Kraken <http://ccb.jhu.edu/software/kraken/>`__ processed over 1.3
million reads per minute on a single core in normal operation, and over
4.1 million reads per minute in quick operation.

The latest released version of Kraken will be available at the `Kraken
website <http://ccb.jhu.edu/software/kraken/>`__, and the latest updates
to the Kraken source code are available at the `Kraken GitHub
repository <https://github.com/DerrickWood/kraken>`__.

If you use `Kraken <http://ccb.jhu.edu/software/kraken/>`__ in your
research, please cite the `Kraken
paper <http://genomebiology.com/2014/15/3/R46>`__. Thank you!

System Requirements
===================

Note: Users concerned about the disk or memory requirements should read
the paragraph about MiniKraken, below.

-  **Disk space**: Construction of Kraken's standard database will
   require at least 160 GB of disk space. Customized databases may
   require more or less space. Disk space used is linearly proportional
   to the number of distinct :math:`k`-mers; as of Feb. 2015, Kraken's
   default database contains just under 6 billion (6e9) distinct
   :math:`k`-mers.

   In addition, the disk used to store the database should be
   locally-attached storage. Storing the database on a network
   filesystem (NFS) partition can cause Kraken's operation to be very
   slow, or to be stopped completely. As NFS accesses are much slower
   than local disk accesses, both preloading and database building will
   be slowed by use of NFS.

-  **Memory**: To run efficiently, Kraken requires enough free memory to
   hold the database in RAM. While this can be accomplished using a
   ramdisk, Kraken supplies a utility for loading the database into RAM
   via the OS cache. The default database size is 75 GB (as of Feb.
   2015), and so you will need at least that much RAM if you want to
   build or run with the default database.

-  **Dependencies**: Kraken currently makes extensive use of Linux
   utilities such as sed, find, and wget. Many scripts are written using
   the Bash shell, and the main scripts are written using Perl. Core
   programs needed to build the database and run the classifier are
   written in C++, and need to be compiled using g++. Multithreading is
   handled using OpenMP. Downloads of NCBI data are performed by wget
   and in some cases, by rsync. Most Linux systems that have any sort of
   development package installed will have all of the above listed
   programs and libraries available.

   Finally, if you want to build your own database, you will need to
   install the
   `Jellyfish <http://www.cbcb.umd.edu/software/jellyfish/>`__
   :math:`k`-mer counter. Note that Kraken only supports use of
   Jellyfish version 1. Jellyfish version 2 is not yet compatible with
   Kraken.

-  **Network connectivity**: Kraken's standard database build and
   download commands expect unfettered FTP and rsync access to the NCBI
   FTP server. If you're working behind a proxy, you may need to set
   certain environment variables (such as ``ftp_proxy`` or
   ``RSYNC_PROXY``) in order to get these commands to work properly.

-  **MiniKraken**: To allow users with low-memory computing environments
   to use Kraken, we supply a reduced standard database that can be
   downloaded from the Kraken web site. When Kraken is run with a
   reduced database, we call it MiniKraken.

   The database we make available is only 4 GB in size, and should run
   well on computers with as little as 8 GB of RAM. Disk space required
   for this database is also only 4 GB.


text:
<!DOCTYPE html>

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

  <title>A Espuma dos Dias</title>
  <meta name="author" content="" />
  <meta name="description"
        content="Imagine que o mundo real foi invadido pela física (e a lógica) dos desenhos de animação no seu sentido mais bucólico. Onde a paixão é o suficiente para desenrolar qualquer novo relacionamento, e a..."/>

  <meta name="yandex-verification" content="48a8210fc043c5e8" />

  <meta name="generator" content="Hugo 0.54.0" />

  <meta itemprop="name" content="A Espuma dos Dias"/>
  <meta itemprop="description"
        content="Imagine que o mundo real foi invadido pela física (e a lógica) dos desenhos de animação no seu sentido mais bucólico. Onde a paixão é o suficiente para desenrolar qualquer novo relacionamento, e a..."/>
  <meta itemprop="image"
        content="/img/logo.svg"/>

  <meta property="og:title" content="A Espuma dos Dias"/>
  <meta property="og:type"
        content="article"/>
  <meta property="og:url" content="http://www.cinetenisverde.com.br/a-espuma-dos-dias/"/>
  <meta property="og:image"
        content="/img/logo.svg"/>
  <meta property="og:description"
        content="Imagine que o mundo real foi invadido pela física (e a lógica) dos desenhos de animação no seu sentido mais bucólico. Onde a paixão é o suficiente para desenrolar qualquer novo relacionamento, e a..."/>
  <meta property="og:site_name" content="Cine Tênis Verde"/>
  <meta property="article:published_time"
        content="2015-07-20T00:00:00+00:00"/>
  <meta property="article:section" content="post"/>

  <meta name="twitter:card" content="summary"/>
  <meta name="twitter:site"
        content=""/>
  <meta name="twitter:title" content="A Espuma dos Dias"/>
  <meta name="twitter:description"
        content="Imagine que o mundo real foi invadido pela física (e a lógica) dos desenhos de animação no seu sentido mais bucólico. Onde a paixão é o suficiente para desenrolar qualquer novo relacionamento, e a..."/>
  <meta name="twitter:creator"
        content=""/>
  <meta name="twitter:image:src"
        content="/img/logo.svg"/>

  <link rel="stylesheet" type="text/css" href="/css/capsule.min.css"/>
  <link rel="stylesheet" type="text/css" href="/css/custom.css"/>

  <link rel="apple-touch-icon" href="/img/apple-touch-icon.png"/>
  <link rel="icon" href="/img/favicon.ico"/>

 Cine Tênis Verde

    <input type="checkbox" id="navbar-burger-state"/>

      search

      twitter

      rss

A Espuma dos Dias

    ★★★★★

 Wanderley Caloni, July 20, 2015

Imagine que o mundo real foi invadido pela física (e a lógica) dos desenhos de animação no seu sentido mais bucólico. Onde a paixão é o suficiente para desenrolar qualquer novo relacionamento, e a dança é o suficiente para alterar as paredes de um quarto. Imagine, enfim, que estamos em um filme completamente tomado pelas loucuras inventivas de Michel Gondry.

Gondry, para quem não lembra, foi o diretor de Brilho Eterno de uma Mente Sem Lembranças, um filme onde Jim Carrey e Kate Winslet entram nas memórias de infância para esconder a lembrança do que sentem um pelo outro. O diretor também fez uma merecida homenagem aos efeitos de trucagens que tanto venera em “Rebobine, Por Favor”, onde cenas icônicas de filmes clássicos – como 2001 – são refeitas com o uso de técnicas amadorísticas de fundo de garagem. Esses dois exemplos agora lembram meros aquecimentos para o que viria em A Espuma dos Dias, um mundo inteiro criado através das tais trucagens, que parece evitar ao máximo o uso do digital, não como um desafio, mas como uma abordagem apaixonada do Cinema de mentirinha, algo que levaria às lágrimas o pai dos efeitos no Cinema, Georges Méliès.

Com essa abordagem de Moulin Rouge nos Tempos da Brilhantina, ninguém melhor para fazer o par romântico do que a namoradinha da França: Amélie Poulain… quero dizer, Audrey Tautou. Junto de um elenco que abraça o impossível com o maior prazer – incluindo Romain Duris (Bonecas Russas), Gad Elmaleh (Meia-Noite em Paris) e Omar Sy (Intocáveis).

           Imagens e créditos no IMDB.

    ★★★★★

 A Espuma dos Dias ● A Espuma dos Dias. L'écume des jours (France, 2013). Dirigido por Michel Gondry. Escrito por Michel Gondry, Luc Bossi, Boris Vian. Com Romain Duris, Audrey Tautou, Gad Elmaleh, Omar Sy, Aïssa Maïga, Charlotte Le Bon, Sacha Bourdo, Vincent Rottiers, Philippe Torreton. ● Nota: 5/5. Categoria: movies.  Publicado em 2015-07-20.  Texto escrito por Wanderley Caloni.

Quer comentar?

      Share


text:
<ngl-form-element nglFormLabel="Required" style="display: inline-block;">
  <input type="checkbox" [(ngModel)]="required" />
</ngl-form-element>
<ngl-form-element nglFormLabel="Error" style="display: inline-block;">
  <input type="checkbox" [(ngModel)]="hasError" />
</ngl-form-element>

<ngl-form-element nglFormLabel="Input Label" [nglFormError]="hasError ? error : null" class="slds-m-top--small">
  <input type="text" placeholder="My input" [required]="required">
</ngl-form-element>

<ngl-form-element [nglFormError]="hasError ? error : null" class="slds-m-top--small">
  <template nglFormLabel>Textarea Label (required!)</template>
  <textarea placeholder="Placeholder Text" [required]="required"></textarea>
</ngl-form-element>

<ngl-form-element nglFormLabel="Select Label" [nglFormError]="hasError ? error : null" class="slds-m-top--small">
  <select class="slds-select" [required]="required">
    <option>Option One</option>
    <option>Option Two</option>
    <option>Option Three</option>
  </select>
</ngl-form-element>

<ngl-form-element nglFormLabel="Checkbox Label" [nglFormError]="hasError ? error : null" class="slds-m-top--small">
  <input type="checkbox" [required]="required" />
</ngl-form-element>

<fieldset ngl-form-group nglFormLabel="Radio Group Label" [nglFormRequired]="required" [nglFormError]="hasError ? error : null" class="slds-m-top--small">
  <input type="radio" />
  <input type="radio" />
</fieldset>

<fieldset ngl-form-group-alt [nglFormRequired]="required" [nglFormError]="hasError ? error : null" class="slds-m-top--small">
  <template nglFormLabel>Alternate Radio Group</template>
  <template nglFormLabel>{{day}}</template><input type="radio" />
</fieldset>

<fieldset ngl-form-group nglFormLabel="Checkbox Group Label" [nglFormRequired]="required" [nglFormError]="hasError ? error : null" class="slds-m-top--small">
  <input type="checkbox" />
  <input type="checkbox" />
</fieldset>

<fieldset ngl-form-group-alt nglFormLabel="Alternate Checkbox Group" [nglFormRequired]="required" [nglFormError]="hasError ? error : null" class="slds-m-top--small">
  <input type="checkbox" />
</fieldset>


text:
require 'spec_helper'

module Refinery
  module Hooks
    describe Hook do
      describe "validations" do
        subject do
          FactoryGirl.create(:hook,
          :name => "Refinery CMS")
        end

        it { should be_valid }
        its(:errors) { should be_empty }
        its(:name) { should == "Refinery CMS" }
      end
    end
  end
end


text:
from templeplus.pymod import PythonModifier
from toee import *
import tpdp

# Sudden Enlarge:  Miniatures Handbook, p. 28

print "Registering Sudden Enlarge"

def SuddenEnlargeRadial(attachee, args, evt_obj):
	#Add a checkbox to turn on and off sudden Enlarge if there is a carge available, otherwise just don't show it
	if args.get_arg(0):
		checkboxSuddenEnlarge = tpdp.RadialMenuEntryToggle("Sudden Enlarge", "TAG_INTERFACE_HELP")
		checkboxSuddenEnlarge.link_to_args(args, 1)
		checkboxSuddenEnlarge.add_child_to_standard(attachee, tpdp.RadialMenuStandardNode.Feats)
	return 0

def SuddenEnlargeNewDay(attachee, args, evt_obj):
	#One charge per day
	args.set_arg(0, 1)

	#Set the checkbox to off at the begining of the day
	args.set_arg(1, 0)

	return 0

def SuddenEnlargeMetamagicUpdate(attachee, args, evt_obj):

	#Check for a charge
	charges = args.get_arg(0)
	if charges < 1:
		return 0

	#Check if sudden enlarge is turned on
	if not args.get_arg(1):
		return 0

	#Get the metamagic info
	metaMagicData = evt_obj.meta_magic

	#Don't enlarge more than once
	if metaMagicData.get_enlarge_count() < 1:
		metaMagicData.set_enlarge_count(1)

	return 0

def SuddenEnlargeDeductCharge(attachee, args, evt_obj):
	#Check for a charge and the enable flag
	charges = args.get_arg(0)
	if charges < 1 or not args.get_arg(1):
		return 0

	#Decriment the charges
	charges = charges - 1
	args.set_arg(0, charges)

	return 0

#Setup the feat
tpdp.register_metamagic_feat("Sudden Enlarge")
suddenEnlargeFeat = PythonModifier("Sudden Enlarge Feat", 4) #Charges, Toggeled On, Spare, Spare
suddenEnlargeFeat.MapToFeat("Sudden Enlarge")
suddenEnlargeFeat.AddHook(ET_OnBuildRadialMenuEntry, EK_NONE, SuddenEnlargeRadial, ())
suddenEnlargeFeat.AddHook(ET_OnConditionAdd, EK_NONE, SuddenEnlargeNewDay, ())
suddenEnlargeFeat.AddHook(ET_OnNewDay, EK_NEWDAY_REST, SuddenEnlargeNewDay, ())
suddenEnlargeFeat.AddHook(ET_OnMetaMagicMod, EK_NONE, SuddenEnlargeMetamagicUpdate, ())
suddenEnlargeFeat.AddHook(ET_OnD20PythonSignal, "Sudden Metamagic Deduct Charge", SuddenEnlargeDeductCharge, ())


text:
package org.motechproject.server.messagecampaign.builder;

import org.motechproject.server.messagecampaign.domain.campaign.CampaignType;
import org.motechproject.server.messagecampaign.userspecified.CampaignMessageRecord;
import org.motechproject.server.messagecampaign.userspecified.CampaignRecord;

import java.util.ArrayList;
import java.util.List;

public class CampaignRecordBuilder {

    public static CampaignRecord absoluteCampaignRecord(String name, CampaignMessageRecord absoluteCampaignMessageRecord) {
        List<CampaignMessageRecord> campaignMessageRecords = new ArrayList<CampaignMessageRecord>();
        campaignMessageRecords.add(absoluteCampaignMessageRecord);

        CampaignRecord record = new CampaignRecord();
        record.setName(name);
        record.setCampaignType(CampaignType.ABSOLUTE);
        record.setMessages(campaignMessageRecords);

        return record;
    }

    public static CampaignRecord offsetCampaignRecord(String name, CampaignMessageRecord offsetCampaignMessageRecord) {
        List<CampaignMessageRecord> campaignMessageRecords = new ArrayList<CampaignMessageRecord>();
        campaignMessageRecords.add(offsetCampaignMessageRecord);

        CampaignRecord record = new CampaignRecord();
        record.setName(name);
        record.setCampaignType(CampaignType.OFFSET);
        record.setMaxDuration("2 Weeks");
        record.setMessages(campaignMessageRecords);

        return record;
    }

    public static CampaignRecord cronBasedCampaignRecord(String name, CampaignMessageRecord cronBasedMessageRecord) {
        List<CampaignMessageRecord> campaignMessageRecords = new ArrayList<CampaignMessageRecord>();
        campaignMessageRecords.add(cronBasedMessageRecord);

        CampaignRecord record = new CampaignRecord();
        record.setName(name);
        record.setCampaignType(CampaignType.CRON);
        record.setMessages(campaignMessageRecords);

        return record;
    }
}


text:
<?php
/* Prototype  : public DateTime DateTime::setTime  ( int $hour  , int $minute  [, int $second  ] )
 * Description: Resets the current time of the DateTime object to a different time.
 * Source code: ext/date/php_date.c
 * Alias to functions: date_time_set
 */

 //Set the default time zone
date_default_timezone_set("Europe/London");

echo "*** Testing DateTime::setTime() : basic functionality ***\n";

// Create a DateTime object
$datetime = new DateTime("2009-01-31 15:14:10");

echo "Initial date: " . $datetime ->format(DATE_RFC2822) . "\n";

$datetime->setTime(17, 20);
echo "After modification1 " . $datetime ->format(DATE_RFC2822) . "\n";

$datetime->setTime(19, 05, 59);
echo "After modification2 " . $datetime ->format(DATE_RFC2822) . "\n";

$datetime->setTime(24, 10);
echo "After modification3 " . $datetime ->format(DATE_RFC2822) . "\n";

$datetime->setTime(47, 35, 47);
echo "After modification4 " . $datetime ->format(DATE_RFC2822) . "\n";

$datetime->setTime(54, 25);
echo "After modification5 " . $datetime ->format(DATE_RFC2822) . "\n";

?>
===DONE===


text:
@protocol ExchangeListener <NSObject>

- (void)exchangeChanged:(Exchange *)exchange;

@end


text:
namespace boost { namespace mpl { namespace aux {

typedef char (&no_tag)[1];
typedef char (&yes_tag)[2];

template< bool C_ > struct yes_no_tag
{
    typedef no_tag type;
};

template<> struct yes_no_tag<true>
{
    typedef yes_tag type;
};

template< long n > struct weighted_tag
{
    typedef char (&type)[n];
};

#if defined(BOOST_MPL_CFG_NO_DEPENDENT_ARRAY_TYPES)
template<> struct weighted_tag<0>
{
    typedef char (&type)[1];
};
#endif

}}}

#endif // BOOST_MPL_AUX_YES_NO_HPP_INCLUDED


text:
package com.mauriciotogneri.designpatterns.structural.bridge;

public class DrawingApiWindows implements DrawingApi
{
    @Override
    public void drawCircle(float x, float y, float radius)
    {
        System.out.println("Drawing circle in Windows in x: " + x + " y: " + y + " radius: " + radius);
    }

    @Override
    public void drawTriangle(float x1, float y1, float x2, float y2, float x3, float y3)
    {
        System.out.println("Drawing triangle in Windows in x1: " + x1 + " y1: " + y1 + " x2: " + x2 + " y2: " + y2 + " x3: " + x3 + " y3: " + y3);
    }

    @Override
    public void drawRectangle(float x, float y, float width, float height)
    {
        System.out.println("Drawing rectangle in Windows in x: " + x + " y: " + y + " width: " + width + " height: " + height);
    }
}


text:
<?php
/**
 * Generated by yentu on 6th November, 2015 07:17:03
 */

begin()->table('user_projects')->rename('projects_users')->end();


text:
function Subscription(to, by, type, createdAt) {
	this.to = to;
	this.by = by;
	this.type = type;
	if (typeof createdAt != 'undefined' && createdAt) {
		this.createdAt = createdAt;
	}
}
module.exports = Subscription;

Subscription.serializeFromJson = function serializeFrom(json) {
	return new Subscription(json.to, json.by, json.type, json.createdAt);
};


text:
package com.github.rahulsom.grooves.groovy.transformations;

import com.github.rahulsom.grooves.groovy.transformations.internal.EventASTTransformation;
import org.codehaus.groovy.transform.GroovyASTTransformationClass;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks a class as an Event.
 *
 * @author Rahul Somasunderam
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
@GroovyASTTransformationClass(classes = EventASTTransformation.class)
public @interface Event {
    /**
     * Aggregates to which this event can be applied
     *
     * @return The type of the Aggregate
     */
    Class<?> value();
}


text:
struct RecognitionMatch
{
    unsigned offset; // the matched position in the recognition site
    unsigned length; // the length of the match, 0 indicates no match
    bool covers_methylated_site; // does the match cover an M base?
};

// Check whether a recognition site starts at position i of str
inline RecognitionMatch match_to_site(const std::string& str, size_t i, const char* recognition, size_t rl)
{
    RecognitionMatch match;
    match.length = 0;
    match.offset = 0;
    match.covers_methylated_site = false;

    // Case 1: str is a substring of recognition
    const char* p = strstr(recognition, str.c_str());
    if(i == 0 && p != NULL) {
        match.offset = p - recognition;
        match.length = str.length();
    } else {
        // Case 2: the suffix str[i..n] is a prefix of recognition
        size_t cl = std::min(rl, str.length() - i);
        if(str.compare(i, cl, recognition, cl) == 0) {
            match.offset = 0;
            match.length = cl;
        }
    }

    //printf("Match site: %s %s %s %d %d\n", str.c_str(), str.substr(i).c_str(), recognition, match.offset, match.length);
    if(match.length > 0) {
        match.covers_methylated_site =
            str.substr(i, match.length).find_first_of(METHYLATED_SYMBOL) != std::string::npos;
    }

    return match;
}

// Abstract base class for alphabets
class Alphabet
{
    public:
        // basic functions
        virtual uint8_t rank(char b) const = 0;
        virtual char base(uint8_t r) const = 0;
        virtual char complement(char b) const = 0;
        virtual uint32_t size() const = 0;
        virtual std::string get_name() const = 0;

        // support for methylated bases with recognition sequences
        virtual size_t num_recognition_sites() const = 0;
        virtual size_t recognition_length() const = 0;
        virtual const char* get_recognition_site(size_t i) const = 0;
        virtual const char* get_recognition_site_methylated(size_t i) const = 0;
        virtual const char* get_recognition_site_methylated_complement(size_t i) const = 0;

        // return the lexicographic rank of the kmer amongst all strings of
        // length k for this alphabet
        inline uint32_t kmer_rank(const char* str, uint32_t k) const
        {
            uint32_t p = 1;
            uint32_t r = 0;

            // from last base to first
            for(uint32_t i = 0; i < k; ++i) {
                r += rank(str[k - i - 1]) * p;
                p *= size();
            }
            return r;
        }

        // Increment the input string to be the next sequence in lexicographic order
        inline void lexicographic_next(std::string& str) const
        {
            int carry = 1;
            int i = str.size() - 1;
            do {
                uint32_t r = rank(str[i]) + carry;
                str[i] = base(r % size());
                carry = r / size();
                i -= 1;
            } while(carry > 0 && i >= 0);
        }

        // returns the number of unique strings of length l for this alphabet
        inline size_t get_num_strings(size_t l) const
        {
            size_t s = size();
            size_t n = 1;
            for(size_t i = 0; i < l; ++i) {
                n *= s;
            }
            return n;
        }

        // reverse-complement a string
        // when the string contains methylated bases, the methylation
        // symbol transfered to the output strand in the appropriate position
        virtual std::string reverse_complement(const std::string& str) const
        {
            std::string out(str.length(), 'A');
            size_t i = 0; // input
            int j = str.length() - 1; // output
            while(i < str.length()) {
                int recognition_index = -1;
                RecognitionMatch match;

                // Does this location (partially) match a methylated recognition site?
                for(size_t j = 0; j < num_recognition_sites(); ++j) {
                    match = match_to_site(str, i, get_recognition_site_methylated(j), recognition_length());
                    if(match.length > 0 && match.covers_methylated_site) {
                        recognition_index = j;
                        break;
                    }
                }

                // If this subsequence matched a methylated recognition site,
                // copy the complement of the site to the output
                if(recognition_index != -1) {
                    for(size_t k = match.offset; k < match.offset + match.length; ++k) {
                        out[j--] = get_recognition_site_methylated_complement(recognition_index)[k];
                        i += 1;
                    }
                } else {
                    // complement a single base
                    assert(str[i] != METHYLATED_SYMBOL);
                    out[j--] = complement(str[i++]);
                }
            }
            return out;
        }

        // return a new copy of the string with IUPAC ambiguity characters changed
        virtual std::string disambiguate(const std::string& str) const
        {
            // create output and convert lower case to upper case
            std::string out(str);
            std::transform(out.begin(), out.end(), out.begin(), ::toupper);

            size_t i = 0;
            while(i < out.length()) {
                size_t stride = 1;
                bool is_recognition_site = false;

                // Does this location (partially) match a methylated recognition site?
                for(size_t j = 0; j < num_recognition_sites(); ++j) {

                    RecognitionMatch match = match_to_site(out, i, get_recognition_site_methylated(j), recognition_length());
                    if(match.length > 0) {
                        stride = match.length; // skip to end of match
                        is_recognition_site = true;
                        break;
                    }
                }

                // disambiguate if not a recognition site
                if(!is_recognition_site) {
                    assert(IUPAC::isValid(out[i]));
                    out[i] = IUPAC::getPossibleSymbols(out[i])[0];
                    stride = 1;
                }

                i += stride;
            }
            return out;
        }

        // If the alphabet supports methylated bases, convert str
        // to a methylated string using the recognition sites
        virtual std::string methylate(const std::string& str) const
        {
            std::string out(str);
            size_t i = 0;
            while(i < out.length()) {
                size_t stride = 1;

                // Does this location match a recognition site?
                for(size_t j = 0; j < num_recognition_sites(); ++j) {

                    RecognitionMatch match = match_to_site(str, i, get_recognition_site(j), recognition_length());
                    // Require the recognition site to be completely matched
                    if(match.length == recognition_length()) {
                        // Replace by the methylated version
                        out.replace(i, recognition_length(), get_recognition_site_methylated(j));
                        stride = match.length; // skip to end of match
                        break;
                    }
                }

                i += stride;
            }
            return out;
        }

        // Remove methylated bases according to the recognition site
        std::string unmethylate(const std::string& str) const
        {
            std::string out(str);
            size_t i = 0;
            while(i < out.length()) {
                size_t stride = 1;

                // Does this location (partially) match a methylated recognition site?
                for(size_t j = 0; j < num_recognition_sites(); ++j) {

                    RecognitionMatch match = match_to_site(str, i, get_recognition_site_methylated(j), recognition_length());
                    if(match.length > 0) {

                        // Replace by the unmethylated version
                        out.replace(i, match.length, get_recognition_site(j) + match.offset, match.length);
                        stride = match.length; // skip to end of match
                        break;
                    }
                }

                i += stride;
            }
            return out;
        }

        // does this alphabet contain all of the nucleotides in bases?
        virtual bool contains_all(const char *bases) const = 0;
};

#define BASIC_MEMBER_BOILERPLATE \
    static const uint8_t _rank[256]; \
    static const char* _name; \
    static const char* _base; \
    static const char* _complement; \
    static const uint32_t _size;

#define BASIC_ACCESSOR_BOILERPLATE \
    virtual std::string get_name() const { return _name; } \
    virtual uint8_t rank(char b) const { return _rank[(int)b]; }        \
    virtual char base(uint8_t r) const { return _base[r]; } \
    virtual char complement(char b) const { return _complement[_rank[(int)b]]; } \
    virtual uint32_t size() const { return _size; } \

struct DNAAlphabet : public Alphabet
{
    // members
    BASIC_MEMBER_BOILERPLATE

    // functions
    BASIC_ACCESSOR_BOILERPLATE

    // no methylation in this alphabet
    virtual size_t num_recognition_sites() const { return 0; }
    virtual size_t recognition_length() const { return 0; }
    virtual const char* get_recognition_site(size_t) const { return NULL; }
    virtual const char* get_recognition_site_methylated(size_t) const { return NULL; }
    virtual const char* get_recognition_site_methylated_complement(size_t) const {
        return NULL;
    }

    // does this alphabet contain all of the nucleotides in bases?
    virtual inline bool contains_all(const char *bases) const
    {
        return strspn(bases, _base) == strlen(bases);
    }
};

#define METHYLATION_MEMBER_BOILERPLATE \
    static const uint32_t _num_recognition_sites; \
    static const uint32_t _recognition_length; \
    static const char* _recognition_sites[]; \
    static const char* _recognition_sites_methylated[]; \
    static const char* _recognition_sites_methylated_complement[];

#define METHYLATION_ACCESSOR_BOILERPLATE \
    virtual size_t num_recognition_sites() const { return _num_recognition_sites; } \
    virtual size_t recognition_length() const { return _recognition_length; } \
    virtual const char* get_recognition_site(size_t i) const { return _recognition_sites[i]; } \
    virtual const char* get_recognition_site_methylated(size_t i) const { return _recognition_sites_methylated[i]; } \
    virtual const char* get_recognition_site_methylated_complement(size_t i) const { \
        return _recognition_sites_methylated_complement[i]; \
    }

//
// methyl-cytosine in CG context
//
struct MethylCpGAlphabet : public Alphabet
{
    // member variables, expanded by macrocs
    BASIC_MEMBER_BOILERPLATE
    METHYLATION_MEMBER_BOILERPLATE

    // member functions
    BASIC_ACCESSOR_BOILERPLATE
    METHYLATION_ACCESSOR_BOILERPLATE

    // does this alphabet contain all of the nucleotides in bases?
    virtual inline bool contains_all(const char *bases) const
    {
        return strspn(bases, _base) == strlen(bases);
    }
};

//
// Dam methylation: methyl-adenine in GATC context
//
struct MethylDamAlphabet : public Alphabet
{
    // member variables, expanded by macrocs
    BASIC_MEMBER_BOILERPLATE
    METHYLATION_MEMBER_BOILERPLATE

    // member functions
    BASIC_ACCESSOR_BOILERPLATE
    METHYLATION_ACCESSOR_BOILERPLATE

    // does this alphabet contain all of the nucleotides in bases?
    virtual inline bool contains_all(const char *bases) const
    {
        return strspn(bases, _base) == strlen(bases);
    }
};

//
// Dcm methylation: methyl-cytosine in CCAGG and CCTGG context
//
struct MethylDcmAlphabet : public Alphabet
{
    // member variables, expanded by macrocs
    BASIC_MEMBER_BOILERPLATE
    METHYLATION_MEMBER_BOILERPLATE

    // member functions
    BASIC_ACCESSOR_BOILERPLATE
    METHYLATION_ACCESSOR_BOILERPLATE

    // does this alphabet contain all of the nucleotides in bases?
    virtual inline bool contains_all(const char *bases) const
    {
        return strspn(bases, _base) == strlen(bases);
    }
};

// Global alphabet objects that can be re-used
extern DNAAlphabet gDNAAlphabet;
extern MethylCpGAlphabet gMCpGAlphabet;
extern MethylDamAlphabet gMethylDamAlphabet;
extern MethylDcmAlphabet gMethylDcmAlphabet;

const Alphabet* best_alphabet(const char *bases);
const Alphabet* get_alphabet_by_name(const std::string& name);

#endif


text:
package com.github.harrischu.webAuto.core;

import org.apache.log4j.Logger;
import org.testng.Assert;

/**
 * Created by Harris on 2014/12/16.
 */
public class TestCase extends Assert{
    protected Logger logger = Logger.getLogger(getClass());

    protected void tearDown(WebDriverDecorator webDriverDecorator) {
        try {
            webDriverDecorator.close();
            webDriverDecorator.quit();
        } catch (Exception e) {
            //TODO
        }
    }
}


text:
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\modules\realestate\models\PropertySourceEntryPointSearchModel */
/* @var $form yii\widgets\ActiveForm */
?>

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]); ?>

    <?= $form->field($model, 'id') ?>

    <?= $form->field($model, 'sourceId') ?>

    <?= $form->field($model, 'statusId') ?>

    <?= $form->field($model, 'startedAt') ?>

    <?= $form->field($model, 'finishedAt') ?>

    <?php // echo $form->field($model, 'url') ?>

    <?php // echo $form->field($model, 'currentPage') ?>

    <?php // echo $form->field($model, 'description') ?>

        <?= Html::submitButton(Yii::t('app/realestate', 'Search'), ['class' => 'btn btn-primary']) ?>
        <?= Html::resetButton(Yii::t('app/realestate', 'Reset'), ['class' => 'btn btn-default']) ?>

    <?php ActiveForm::end(); ?>


text:
Citations
---------

https://github.com/chapmanb/bcbio-nextgen

small RNA-seq
=============

Download BIB format: https://github.com/chapmanb/bcbio-nextgen/tree/master/docs/contents/misc/bcbio-smallrna.bib

Tools
~~~~~

* Andrews, S. (2010). FastQC: A quality control tool for high throughput sequence data. Bioinformatics. doi:citeulike-article-id:11583827

* Martin, M. (2011). Cutadapt removes adapter sequences from high-throughput sequencing reads. EMBnet.journal, 17(1), 10. doi:10.14806/ej.17.1.200

* Dale, R. K., Pedersen, B. S., & Quinlan, A. R. (2011). Pybedtools: A flexible Python library for manipulating genomic datasets and annotations. Bioinformatics, 27(24), 3423–3424. doi:10.1093/bioinformatics/btr539

* Quinlan, A. R., & Hall, I. M. (2010). BEDTools: A flexible suite of utilities for comparing genomic features. Bioinformatics, 26(6), 841–842. doi:10.1093/bioinformatics/btq033

* Tarasov, A., Vilella, A. J., Cuppen, E., Nijman, I. J., & Prins, P. (2015). Sambamba: Fast processing of NGS alignment formats. Bioinformatics, 31(12), 2032–2034. doi:10.1093/bioinformatics/btv098

* Heger, A. (2009). Pysam. github.com. Retrieved from https://github.com/pysam-developers/pysam

* Li, H. (2011). A statistical framework for SNP calling, mutation discovery, association mapping and population genetical parameter estimation from sequencing data. Bioinformatics, 27(21), 2987–2993. doi:10.1093/bioinformatics/btr509

* Li, H., Handsaker, B., Wysoker, A., Fennell, T., Ruan, J., Homer, N., … Durbin, R. (2009). The Sequence Alignment/Map format and SAMtools. Bioinformatics, 25(16), 2078–2079. doi:10.1093/bioinformatics/btp352

* Pantano, L., Estivill, X., & Martí, E. (2010). SeqBuster, a bioinformatic tool for the processing and analysis of small RNAs datasets, reveals ubiquitous miRNA modifications in human embryonic cells. Nucleic Acids Research, 38(5), e34. Retrieved from http://www.ncbi.nlm.nih.gov/pubmed/20008100

* Pantano, L., Friedlander, M. R., Escaramis, G., Lizano, E., Pallares-Albanell, J., Ferrer, I., … Marti, E. (2015). Specific small-RNA signatures in the amygdala at premotor and motor stages of Parkinson's disease revealed by deep sequencing analysis. Bioinformatics (Oxford, England). doi:10.1093/bioinformatics/btv632

For the alignment, add what you have used:

* Dobin, A., Davis, C. A., Schlesinger, F., Drenkow, J., Zaleski, C., Jha, S., … Gingeras, T. R. (2013). STAR: Ultrafast universal RNA-seq aligner. Bioinformatics, 29(1), 15–21. doi:10.1093/bioinformatics/bts635

* Langmead, B., Trapnell, C., Pop, M., & Salzberg, S. L. (2009). Ultrafast and memory-efficient alignment of short DNA sequences to the human genome. Genome Biol, 10, R25. doi:10.1186/gb-2009-10-3-r25

If you have in the output novel miRNA discovering, add:

* Friedlander, M. R., MacKowiak, S. D., Li, N., Chen, W., & Rajewsky, N. (2012). MiRDeep2 accurately identifies known and hundreds of novel microRNA genes in seven animal clades. Nucleic Acids Research, 40(1), 37–52. doi:10.1093/nar/gkr688

If you have tRNA mapping output, add:

* Selitsky, S. R., & Sethupathy, P. (2015). tDRmapper: challenges and solutions to mapping, naming, and quantifying tRNA-derived RNAs from human small RNA-sequencing data. BMC Bioinformatics, 16(1), 354. doi:10.1186/s12859-015-0800-0

Data
~~~~

* Griffiths-Jones, S. (2004). The microRNA Registry. Nucleic Acids Research, 32(Database issue), D109–11. doi:10.1093/nar/gkh023

* Griffiths-Jones, S. (2006). miRBase: the microRNA sequence database. Methods in Molecular Biology (Clifton, N.J.), 342, 129–38. doi:10.1385/1-59745-123-1:129

* Griffiths-Jones, S., Saini, H. K., Van Dongen, S., & Enright, A. J. (2008). miRBase: Tools for microRNA genomics. Nucleic Acids Research, 36(SUPPL. 1). doi:10.1093/nar/gkm952

* Kozomara, A., & Griffiths-Jones, S. (2011). MiRBase: Integrating microRNA annotation and deep-sequencing data. Nucleic Acids Research, 39(SUPPL. 1). doi:10.1093/nar/gkq1027

* Kozomara, A., & Griffiths-Jones, S. (2014). MiRBase: Annotating high confidence microRNAs using deep sequencing data. Nucleic Acids Research, 42(D1). doi:10.1093/nar/gkt1181


text:
/* jslint node: true */
module.exports = function (grunt) {
  if (process.env.APPVEYOR_PULL_REQUEST_NUMBER) {
    grunt.log.writeln('Artifacts will not be created for pull requests.');
    return;
  }

  return {
    options: {
      base: 'dist',
      branch: process.env.APPVEYOR_REPO_BRANCH || 'master',
      message: 'Build: ' + process.env.APPVEYOR_BUILD_VERSION + ' Author: ' + process.env.APPVEYOR_REPO_COMMIT_AUTHOR + ' ' + process.env.APPVEYOR_REPO_NAME + '@' + process.env.APPVEYOR_REPO_COMMIT,
      repo: process.env.BUILD_REPO_URL,
      silent: true,
      user: {
        name: 'AppVeyor CI',
        email: 'builds@exceptionless.io'
      }
    },
    src: [ '**/*', '.deployment' ]
  };
};


text:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    xmlns:card_view="http://schemas.android.com/apk/res-auto"
    android:layout_margin="8dp"
    card_view:cardCornerRadius="4dp"
    android:layout_height="wrap_content">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <RelativeLayout
            android:layout_width="match_parent"
            android:id="@+id/users_container"
            android:background="@color/grey_100"
            android:layout_height="50dp"
            android:padding="10dp">
            <de.hdodenhof.circleimageview.CircleImageView
                android:id="@+id/post_author_icon"
                android:contentDescription="@string/profile_photo"
                android:layout_width="@dimen/post_author_icon_size"
                android:layout_height="@dimen/post_author_icon_size"
                android:layout_centerVertical="true"
                android:layout_alignParentStart="true"/>
            <TextView
                android:id="@+id/post_author_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_toEndOf="@id/post_author_icon"
                android:layout_marginStart="4dp"
                style="@style/Base.TextAppearance.AppCompat.Title"
                android:textColor="@android:color/primary_text_light_nodisable" />

            <TextView
                android:id="@+id/post_timestamp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:layout_alignParentEnd="true"
                android:layout_gravity="end"
                android:textColor="@android:color/primary_text_light"
                android:textSize="18sp" />

        </RelativeLayout>

        <ImageView
            android:id="@+id/post_photo"
            android:layout_width="match_parent"
            android:layout_height="200dp"
            android:scaleType="centerCrop" />
        <TextView
            android:id="@+id/post_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:maxLines="1"
            android:layout_marginLeft="6dp"
            android:layout_marginRight="6dp"
            android:layout_marginTop="6dp"
            android:layout_marginBottom="6dp"
            android:textColor="@android:color/primary_text_light"
            android:textSize="16sp"
            android:ellipsize="end" />
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <TextView
                android:id="@+id/post_num_likes"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentStart="true"
                android:layout_marginLeft="6dp"
                android:layout_marginRight="6dp"
                android:layout_marginTop="6dp"
                android:layout_marginBottom="6dp"
                android:textColor="@android:color/secondary_text_light"
                android:textSize="14sp" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toEndOf="@id/post_num_likes"
                android:layout_marginTop="6dp"
                android:layout_marginBottom="6dp"
                android:id="@+id/comment_num"
                android:textColor="@android:color/secondary_text_light"
                android:textSize="14sp"/>

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:id="@+id/views_num"
                android:textSize="14sp"
                android:textColor="@android:color/secondary_text_light"
                android:layout_gravity="end"
                android:layout_marginEnd="6dp"
                android:layout_marginTop="6dp"
                android:layout_marginBottom="6dp"/>
        </RelativeLayout>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="6dp">

            <ImageView
                android:id="@+id/post_like_icon"
                android:contentDescription="@string/like_icon"
                android:layout_width="30dp"
                android:layout_height="30dp"
                android:src="@drawable/ic_heart_outline_grey600_18dp"/>
            <ImageView
                android:id="@+id/post_comment_icon"
                android:layout_width="30dp"
                android:contentDescription="@string/comments_icon"
                android:layout_height="30dp"
                android:layout_marginStart="6dp"
                android:layout_toEndOf="@id/post_like_icon"
                android:src="@drawable/ic_comment_multiple_outline_grey600_18dp" />

            <ImageView
                android:layout_width="30dp"
                android:contentDescription="@string/views_icon"
                android:layout_height="30dp"
                android:layout_marginEnd="6dp"
                android:layout_alignParentEnd="true"
                android:src="@drawable/ic_eye_grey600_18dp"/>
        </RelativeLayout>

    </LinearLayout>
</android.support.v7.widget.CardView>


text:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context="com.example.jorge.myapplication.DistritosActivity">

    <WebView
        android:id="@+id/activity_main_webview"
        android:layout_width="300dp"
        android:layout_height="300dp"/>
</RelativeLayout>


text:
package uk.co.ribot.androidboilerplate.ui.view_interface;

import uk.co.ribot.androidboilerplate.ui.base.MvpView;

/**
 * Created by mike on 2017/11/22.
 */
public interface OrderListMvpView extends MvpView {

}


text:
package logger

import (
	"gopkg.in/Clever/kayvee-go.v6/logger"
)

var log logger.KayveeLogger

const (
	// jobFinished refers to job completions
	jobFinished = "job-finished"
)

func init() {
	log = logger.New("s3-to-redshift")
}

// GetLogger returns a reference to the logger
func GetLogger() logger.KayveeLogger {
	return log
}

// M is an alias for map[string]interface{} to make log lines less painful to write
type M map[string]interface{}

// SetGlobalRouting installs a new log router with the input config
func SetGlobalRouting(kvconfigPath string) error {
	return logger.SetGlobalRouting(kvconfigPath)
}

// JobFinishedEvent logs when s3-to-redshift has completed
// along with payload and success/failure
func JobFinishedEvent(payload string, didSucceed bool) {
	value := 0
	if didSucceed {
		value = 1
	}
	log.GaugeIntD(jobFinished, value, M{
		"payload": payload,
		"success": didSucceed,
	})
}


text:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
    <title>HTML5 Terminal</title>
    <link rel='stylesheet' type='text/css' href='/katra-console/assets/fonts.css' />
<link rel='stylesheet' type='text/css' href='/katra-console/assets/terminal.css' />

    <link rel="chrome-application-definition" href="/katra-console/assets/manifest.json">

      x

Keyboard shortcuts

<ctrl> + s : Toggle CRT monitor flicker effect

<esc> : toggle this help menu

What is this?

A Command-line terminal/shell running on top of HTML5 APIs.

By: Eric Bidelman <ericbidelman@chromium.org>


text:
package teetime.framework.exceptionHandling;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public abstract class AbstractExceptionListenerFactory<T extends AbstractExceptionListener> {

	private final Map<Thread, List<Exception>> threadExceptionsMap = new ConcurrentHashMap<Thread, List<Exception>>();

	protected abstract T createInstance();

	public T createInstance(final Thread thread) {
		T instance = createInstance();
		threadExceptionsMap.put(thread, instance.getLoggedExceptions());
		return instance;
	}

	public Map<Thread, List<Exception>> getThreadExceptionsMap() {
		return threadExceptionsMap;
	}

}


text:
body{padding-top:20px;padding-bottom:20px}
.header,.marketing,.footer{padding-right:15px;padding-left:15px}
.header{padding-bottom:20px;border-bottom:1px solid #e5e5e5}
.header h3{margin-top:0;margin-bottom:0;line-height:40px}
.footer{padding-top:19px;color:#777;border-top:1px solid #e5e5e5}
@media (min-width: 768px) {
.container{max-width:730px}
}
.container-narrow > hr{margin:30px 0}
.jumbotron{text-align:center;border-bottom:1px solid #e5e5e5}
.jumbotron .btn{padding:14px 24px;font-size:21px}
.marketing{margin:40px 0}
.marketing p + h4{margin-top:28px}
@media screen and (min-width: 768px) {
.header,.marketing,.footer{padding-right:0;padding-left:0}
.header{margin-bottom:30px}
.jumbotron{border-bottom:0}
}
ul.tweet-header{list-style:none;padding:0;margin:0 0 5px}
ul.tweet-header li{display:inline-block;padding:0 10px 0 0}
.tweet-wrap{padding:15px 0 15px 63px}
.font-blue{color:#55ACEE}
.twitter-icon,.username,.time,.retweets{color:#8899a6}
.avatar{margin-left:-63px;float:left}
.avatar img{width:48px;height:48px;border-radius:5px}
.tweet-text{margin:0 0 15px}
.bubble{background:#F5F8FA;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;border:#E1E8ED solid 1px}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <link rel= "stylesheet" href="../quiz.css">
    <link rel="icon" type="tab icon" href="../icons/paw.jpeg"/>
    <link href="https://fonts.googleapis.com/css?family=Lobster+Two|Quicksand" rel="stylesheet">
    <title>Barks 'N Rec</title>

Barks 'N Rec

        HOME
        ABOUT US
        CONTACT US
        TESTIMONIALS

      <form id="form">
        <fieldset id = "field">

            Dog Info

          What breed is your dog?
          <input required class="typeOfDog"type="text" id = "ques1"/>

          What Seattle Area neighborhood do you live in?
          <input required class="typeOfDog" type="text" id = "ques2"/>

          What is your dog's Zodiac sign?
          <input required class="typeOfDog" type="text" id = "ques3"/>

          <input type="submit" name="button" class = "sub"></input>
        </fieldset>
      </form>


text:
module BrowseEverything
  module Driver
    class SkyDrive < Base

      require 'skydrive'

      def icon
        'windows'
      end

      def container_items
        ["folder","album"]
      end

      def validate_config
        unless config[:client_id]
          raise BrowseEverything::InitializationError, "SkyDrive driver requires a :client_id argument"
        end
        unless config[:client_secret]
          raise BrowseEverything::InitializationError, "SkyDrive driver requires a :client_secret argument"
        end
      end

      def contents(path='')
        result = []
        token_obj = rehydrate_token
        client = Skydrive::Client.new(token_obj)
        if (path == '')
          folder = client.my_skydrive
        #todo do some loop to get down to my path
        else
          folder = client.get("/#{path.gsub("-",".")}/")
          result += [parent_folder_details(folder)] if folder.parent_id
        end

        files = folder.files
        files.items.each do |item|
          if container_items.include? item.type
            result += [folder_details(item)]
          else
            Rails.logger.warn("\n\nID #{item.id} #{item.type}")
            result += [file_details(item)]
          end
        end
        result
      end

      def link_for(path)
        response = Skydrive::Client.new(rehydrate_token).get("/#{real_id(path)}/")
        [response.download_link, {expires: 1.hour.from_now, file_name: File.basename(path)}]
      end

      def file_details(file)
          BrowseEverything::FileEntry.new(
            safe_id(file.id),
            "#{key}:#{safe_id(file.id)}",
            file.name,
            file.size,
            file.updated_time,
            false
          )
      end

     def parent_folder_details(file)
          BrowseEverything::FileEntry.new(
            safe_id(file.parent_id),
            "#{key}:#{safe_id(file.parent_id)}",
            "..",
            0,
            Time.now,
            true
          )
      end

      def folder_details(folder)
        BrowseEverything::FileEntry.new(
            safe_id(folder.id),
            "#{key}:#{safe_id(folder.id)}",
            folder.name,
            0,
            folder.updated_time,
            true,
            'directory'#todo how are we getting mime type
        )
      end

      def auth_link
        oauth_client.authorize_url
      end

      def authorized?
        return false unless @token.present?
        return !rehydrate_token.expired?
      end

      def connect(params,data)
        Rails.logger.warn "params #{params.inspect}"
        token = oauth_client.get_access_token(params[:code])
        @token = {token:token.token, expires_at:token.expires_at}
      end

      private
      def oauth_client
        callback = connector_response_url(config[:url_options])
        Skydrive::Oauth::Client.new(config[:client_id], config[:client_secret], callback.to_s,"wl.skydrive")
        #todo error checking here
      end

      def rehydrate_token
        return @rehydrate_token if @rehydrate_token
        token_str = @token[:token]
        token_expires = @token[:expires_at]
        Rails.logger.warn "\n\n Rehydrating: #{@token} #{token_str} #{token_expires}"
        @rehydrate_token = oauth_client.get_access_token_from_hash(token_str,{expires_at:token_expires})
      end

      def safe_id(id)
        id.gsub(".","-")
      end

      def real_id(id)
        id.gsub("-",".")
      end
    end
  end
end


text:
Bristol-Web-Page
================

A silly personal web page


text:
import { IfObservable } from './IfObservable';
export const /** @type {?} */ _if = IfObservable.create;


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

<meta name="collection" content="exclude">

<TITLE>
Uses of Class javax.swing.border.AbstractBorder (Java 2 Platform SE 5.0)
</TITLE>

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

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

JavaTM 2 Platform
Standard Ed. 5.0

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Uses of Class
javax.swing.border.AbstractBorder

Packages that use AbstractBorder

javax.swing.border
Provides classes and interface for drawing
specialized borders around a Swing component.

javax.swing.plaf
Provides one interface and many abstract classes that
Swing uses to provide its pluggable look-and-feel capabilities.

javax.swing.plaf.basic
Provides user interface objects built according to the
Basic look and feel.

javax.swing.plaf.metal
Provides user interface objects built according to
the Java look and feel (once codenamed Metal),
which is the default look and feel.

Uses of AbstractBorder in javax.swing.border

Subclasses of AbstractBorder in javax.swing.border

 class
BevelBorder

          A class which implements a simple two-line bevel border.

 class
CompoundBorder

          A composite Border class used to compose two Border objects
 into a single border by nesting an inside Border object within
 the insets of an outside Border object.

 class
EmptyBorder

          A class which provides an empty, transparent border which
 takes up space but does no drawing.

 class
EtchedBorder

          A class which implements a simple etched border which can
 either be etched-in or etched-out.

 class
LineBorder

          A class which implements a line border of arbitrary thickness
 and of a single color.

 class
MatteBorder

          A class which provides a matte-like border of either a solid color
 or a tiled icon.

 class
SoftBevelBorder

          A class which implements a raised or lowered bevel with
 softened corners.

 class
TitledBorder

          A class which implements an arbitrary border
 with the addition of a String title in a
 specified position and justification.

Uses of AbstractBorder in javax.swing.plaf

Subclasses of AbstractBorder in javax.swing.plaf

static class
BorderUIResource.BevelBorderUIResource

static class
BorderUIResource.CompoundBorderUIResource

static class
BorderUIResource.EmptyBorderUIResource

static class
BorderUIResource.EtchedBorderUIResource

static class
BorderUIResource.LineBorderUIResource

static class
BorderUIResource.MatteBorderUIResource

static class
BorderUIResource.TitledBorderUIResource

Uses of AbstractBorder in javax.swing.plaf.basic

Subclasses of AbstractBorder in javax.swing.plaf.basic

static class
BasicBorders.ButtonBorder

static class
BasicBorders.FieldBorder

static class
BasicBorders.MarginBorder

static class
BasicBorders.MenuBarBorder

static class
BasicBorders.RadioButtonBorder

static class
BasicBorders.RolloverButtonBorder

          Special thin border for rollover toolbar buttons.

static class
BasicBorders.ToggleButtonBorder

Uses of AbstractBorder in javax.swing.plaf.metal

Subclasses of AbstractBorder in javax.swing.plaf.metal

static class
MetalBorders.ButtonBorder

static class
MetalBorders.Flush3DBorder

static class
MetalBorders.InternalFrameBorder

static class
MetalBorders.MenuBarBorder

static class
MetalBorders.MenuItemBorder

static class
MetalBorders.OptionDialogBorder

static class
MetalBorders.PaletteBorder

          Border for a Palette.

static class
MetalBorders.PopupMenuBorder

static class
MetalBorders.RolloverButtonBorder

static class
MetalBorders.ScrollPaneBorder

static class
MetalBorders.TableHeaderBorder

          Border for a Table Header

static class
MetalBorders.TextFieldBorder

static class
MetalBorders.ToggleButtonBorder

static class
MetalBorders.ToolBarBorder

      Overview
      Package
      Class
    Use
      Tree
      Deprecated
      Index
      Help

JavaTM 2 Platform
Standard Ed. 5.0

 PREV
 NEXT

  FRAMES
 NO FRAMES

  All Classes

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.


text:
package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"runtime"
	"strconv"
	"strings"

	"github.com/docker/docker/api"
	"github.com/docker/docker/integration-cli/checker"
	"github.com/docker/docker/internal/test/request"
	"github.com/go-check/check"
)

func (s *DockerSuite) TestAPIOptionsRoute(c *check.C) {
	resp, _, err := request.Do("/", request.Method(http.MethodOptions))
	c.Assert(err, checker.IsNil)
	c.Assert(resp.StatusCode, checker.Equals, http.StatusOK)
}

func (s *DockerSuite) TestAPIGetEnabledCORS(c *check.C) {
	res, body, err := request.Get("/version")
	c.Assert(err, checker.IsNil)
	c.Assert(res.StatusCode, checker.Equals, http.StatusOK)
	body.Close()
	// TODO: @runcom incomplete tests, why old integration tests had this headers
	// and here none of the headers below are in the response?
	//c.Log(res.Header)
	//c.Assert(res.Header.Get("Access-Control-Allow-Origin"), check.Equals, "*")
	//c.Assert(res.Header.Get("Access-Control-Allow-Headers"), check.Equals, "Origin, X-Requested-With, Content-Type, Accept, X-Registry-Auth")
}

func (s *DockerSuite) TestAPIClientVersionOldNotSupported(c *check.C) {
	if testEnv.OSType != runtime.GOOS {
		c.Skip("Daemon platform doesn't match test platform")
	}
	if api.MinVersion == api.DefaultVersion {
		c.Skip("API MinVersion==DefaultVersion")
	}
	v := strings.Split(api.MinVersion, ".")
	vMinInt, err := strconv.Atoi(v[1])
	c.Assert(err, checker.IsNil)
	vMinInt--
	v[1] = strconv.Itoa(vMinInt)
	version := strings.Join(v, ".")

	resp, body, err := request.Get("/v" + version + "/version")
	c.Assert(err, checker.IsNil)
	defer body.Close()
	c.Assert(resp.StatusCode, checker.Equals, http.StatusBadRequest)
	expected := fmt.Sprintf("client version %s is too old. Minimum supported API version is %s, please upgrade your client to a newer version", version, api.MinVersion)
	content, err := ioutil.ReadAll(body)
	c.Assert(err, checker.IsNil)
	c.Assert(strings.TrimSpace(string(content)), checker.Contains, expected)
}

func (s *DockerSuite) TestAPIErrorJSON(c *check.C) {
	httpResp, body, err := request.Post("/containers/create", request.JSONBody(struct{}{}))
	c.Assert(err, checker.IsNil)
	c.Assert(httpResp.StatusCode, checker.Equals, http.StatusBadRequest)
	c.Assert(httpResp.Header.Get("Content-Type"), checker.Equals, "application/json")
	b, err := request.ReadBody(body)
	c.Assert(err, checker.IsNil)
	c.Assert(getErrorMessage(c, b), checker.Equals, "Config cannot be empty in order to create a container")
}

func (s *DockerSuite) TestAPIErrorPlainText(c *check.C) {
	// Windows requires API 1.25 or later. This test is validating a behaviour which was present
	// in v1.23, but changed in 1.24, hence not applicable on Windows. See apiVersionSupportsJSONErrors
	testRequires(c, DaemonIsLinux)
	httpResp, body, err := request.Post("/v1.23/containers/create", request.JSONBody(struct{}{}))
	c.Assert(err, checker.IsNil)
	c.Assert(httpResp.StatusCode, checker.Equals, http.StatusBadRequest)
	c.Assert(httpResp.Header.Get("Content-Type"), checker.Contains, "text/plain")
	b, err := request.ReadBody(body)
	c.Assert(err, checker.IsNil)
	c.Assert(strings.TrimSpace(string(b)), checker.Equals, "Config cannot be empty in order to create a container")
}

func (s *DockerSuite) TestAPIErrorNotFoundJSON(c *check.C) {
	// 404 is a different code path to normal errors, so test separately
	httpResp, body, err := request.Get("/notfound", request.JSON)
	c.Assert(err, checker.IsNil)
	c.Assert(httpResp.StatusCode, checker.Equals, http.StatusNotFound)
	c.Assert(httpResp.Header.Get("Content-Type"), checker.Equals, "application/json")
	b, err := request.ReadBody(body)
	c.Assert(err, checker.IsNil)
	c.Assert(getErrorMessage(c, b), checker.Equals, "page not found")
}

func (s *DockerSuite) TestAPIErrorNotFoundPlainText(c *check.C) {
	httpResp, body, err := request.Get("/v1.23/notfound", request.JSON)
	c.Assert(err, checker.IsNil)
	c.Assert(httpResp.StatusCode, checker.Equals, http.StatusNotFound)
	c.Assert(httpResp.Header.Get("Content-Type"), checker.Contains, "text/plain")
	b, err := request.ReadBody(body)
	c.Assert(err, checker.IsNil)
	c.Assert(strings.TrimSpace(string(b)), checker.Equals, "page not found")
}


text:
from fixture.db import DbFixture

db = DbFixture(host="127.0.0.1", name="addressbook", user="root", password="")

try:
    groups = db.get_group_list()
    for group in groups:
        print(group)
    print(len(groups))
finally:
    db.destroy()


text:
<?php
namespace Aws\StorageGateway;

use Aws\AwsClient;

/**
 * AWS Storage Gateway client.
 *
 * @method \Aws\Result activateGateway(array $args = [])
 * @method \GuzzleHttp\Promise\Promise activateGatewayAsync(array $args = [])
 * @method \Aws\Result addCache(array $args = [])
 * @method \GuzzleHttp\Promise\Promise addCacheAsync(array $args = [])
 * @method \Aws\Result addTagsToResource(array $args = [])
 * @method \GuzzleHttp\Promise\Promise addTagsToResourceAsync(array $args = [])
 * @method \Aws\Result addUploadBuffer(array $args = [])
 * @method \GuzzleHttp\Promise\Promise addUploadBufferAsync(array $args = [])
 * @method \Aws\Result addWorkingStorage(array $args = [])
 * @method \GuzzleHttp\Promise\Promise addWorkingStorageAsync(array $args = [])
 * @method \Aws\Result assignTapePool(array $args = [])
 * @method \GuzzleHttp\Promise\Promise assignTapePoolAsync(array $args = [])
 * @method \Aws\Result associateFileSystem(array $args = [])
 * @method \GuzzleHttp\Promise\Promise associateFileSystemAsync(array $args = [])
 * @method \Aws\Result attachVolume(array $args = [])
 * @method \GuzzleHttp\Promise\Promise attachVolumeAsync(array $args = [])
 * @method \Aws\Result cancelArchival(array $args = [])
 * @method \GuzzleHttp\Promise\Promise cancelArchivalAsync(array $args = [])
 * @method \Aws\Result cancelRetrieval(array $args = [])
 * @method \GuzzleHttp\Promise\Promise cancelRetrievalAsync(array $args = [])
 * @method \Aws\Result createCachediSCSIVolume(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createCachediSCSIVolumeAsync(array $args = [])
 * @method \Aws\Result createNFSFileShare(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createNFSFileShareAsync(array $args = [])
 * @method \Aws\Result createSMBFileShare(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createSMBFileShareAsync(array $args = [])
 * @method \Aws\Result createSnapshot(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createSnapshotAsync(array $args = [])
 * @method \Aws\Result createSnapshotFromVolumeRecoveryPoint(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createSnapshotFromVolumeRecoveryPointAsync(array $args = [])
 * @method \Aws\Result createStorediSCSIVolume(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createStorediSCSIVolumeAsync(array $args = [])
 * @method \Aws\Result createTapePool(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createTapePoolAsync(array $args = [])
 * @method \Aws\Result createTapeWithBarcode(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createTapeWithBarcodeAsync(array $args = [])
 * @method \Aws\Result createTapes(array $args = [])
 * @method \GuzzleHttp\Promise\Promise createTapesAsync(array $args = [])
 * @method \Aws\Result deleteAutomaticTapeCreationPolicy(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteAutomaticTapeCreationPolicyAsync(array $args = [])
 * @method \Aws\Result deleteBandwidthRateLimit(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteBandwidthRateLimitAsync(array $args = [])
 * @method \Aws\Result deleteChapCredentials(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteChapCredentialsAsync(array $args = [])
 * @method \Aws\Result deleteFileShare(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteFileShareAsync(array $args = [])
 * @method \Aws\Result deleteGateway(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteGatewayAsync(array $args = [])
 * @method \Aws\Result deleteSnapshotSchedule(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteSnapshotScheduleAsync(array $args = [])
 * @method \Aws\Result deleteTape(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteTapeAsync(array $args = [])
 * @method \Aws\Result deleteTapeArchive(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteTapeArchiveAsync(array $args = [])
 * @method \Aws\Result deleteTapePool(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteTapePoolAsync(array $args = [])
 * @method \Aws\Result deleteVolume(array $args = [])
 * @method \GuzzleHttp\Promise\Promise deleteVolumeAsync(array $args = [])
 * @method \Aws\Result describeAvailabilityMonitorTest(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeAvailabilityMonitorTestAsync(array $args = [])
 * @method \Aws\Result describeBandwidthRateLimit(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBandwidthRateLimitAsync(array $args = [])
 * @method \Aws\Result describeBandwidthRateLimitSchedule(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeBandwidthRateLimitScheduleAsync(array $args = [])
 * @method \Aws\Result describeCache(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeCacheAsync(array $args = [])
 * @method \Aws\Result describeCachediSCSIVolumes(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeCachediSCSIVolumesAsync(array $args = [])
 * @method \Aws\Result describeChapCredentials(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeChapCredentialsAsync(array $args = [])
 * @method \Aws\Result describeFileSystemAssociations(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeFileSystemAssociationsAsync(array $args = [])
 * @method \Aws\Result describeGatewayInformation(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeGatewayInformationAsync(array $args = [])
 * @method \Aws\Result describeMaintenanceStartTime(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeMaintenanceStartTimeAsync(array $args = [])
 * @method \Aws\Result describeNFSFileShares(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeNFSFileSharesAsync(array $args = [])
 * @method \Aws\Result describeSMBFileShares(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeSMBFileSharesAsync(array $args = [])
 * @method \Aws\Result describeSMBSettings(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeSMBSettingsAsync(array $args = [])
 * @method \Aws\Result describeSnapshotSchedule(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeSnapshotScheduleAsync(array $args = [])
 * @method \Aws\Result describeStorediSCSIVolumes(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeStorediSCSIVolumesAsync(array $args = [])
 * @method \Aws\Result describeTapeArchives(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeTapeArchivesAsync(array $args = [])
 * @method \Aws\Result describeTapeRecoveryPoints(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeTapeRecoveryPointsAsync(array $args = [])
 * @method \Aws\Result describeTapes(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeTapesAsync(array $args = [])
 * @method \Aws\Result describeUploadBuffer(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeUploadBufferAsync(array $args = [])
 * @method \Aws\Result describeVTLDevices(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeVTLDevicesAsync(array $args = [])
 * @method \Aws\Result describeWorkingStorage(array $args = [])
 * @method \GuzzleHttp\Promise\Promise describeWorkingStorageAsync(array $args = [])
 * @method \Aws\Result detachVolume(array $args = [])
 * @method \GuzzleHttp\Promise\Promise detachVolumeAsync(array $args = [])
 * @method \Aws\Result disableGateway(array $args = [])
 * @method \GuzzleHttp\Promise\Promise disableGatewayAsync(array $args = [])
 * @method \Aws\Result disassociateFileSystem(array $args = [])
 * @method \GuzzleHttp\Promise\Promise disassociateFileSystemAsync(array $args = [])
 * @method \Aws\Result joinDomain(array $args = [])
 * @method \GuzzleHttp\Promise\Promise joinDomainAsync(array $args = [])
 * @method \Aws\Result listAutomaticTapeCreationPolicies(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listAutomaticTapeCreationPoliciesAsync(array $args = [])
 * @method \Aws\Result listFileShares(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listFileSharesAsync(array $args = [])
 * @method \Aws\Result listFileSystemAssociations(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listFileSystemAssociationsAsync(array $args = [])
 * @method \Aws\Result listGateways(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listGatewaysAsync(array $args = [])
 * @method \Aws\Result listLocalDisks(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listLocalDisksAsync(array $args = [])
 * @method \Aws\Result listTagsForResource(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
 * @method \Aws\Result listTapePools(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listTapePoolsAsync(array $args = [])
 * @method \Aws\Result listTapes(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listTapesAsync(array $args = [])
 * @method \Aws\Result listVolumeInitiators(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listVolumeInitiatorsAsync(array $args = [])
 * @method \Aws\Result listVolumeRecoveryPoints(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listVolumeRecoveryPointsAsync(array $args = [])
 * @method \Aws\Result listVolumes(array $args = [])
 * @method \GuzzleHttp\Promise\Promise listVolumesAsync(array $args = [])
 * @method \Aws\Result notifyWhenUploaded(array $args = [])
 * @method \GuzzleHttp\Promise\Promise notifyWhenUploadedAsync(array $args = [])
 * @method \Aws\Result refreshCache(array $args = [])
 * @method \GuzzleHttp\Promise\Promise refreshCacheAsync(array $args = [])
 * @method \Aws\Result removeTagsFromResource(array $args = [])
 * @method \GuzzleHttp\Promise\Promise removeTagsFromResourceAsync(array $args = [])
 * @method \Aws\Result resetCache(array $args = [])
 * @method \GuzzleHttp\Promise\Promise resetCacheAsync(array $args = [])
 * @method \Aws\Result retrieveTapeArchive(array $args = [])
 * @method \GuzzleHttp\Promise\Promise retrieveTapeArchiveAsync(array $args = [])
 * @method \Aws\Result retrieveTapeRecoveryPoint(array $args = [])
 * @method \GuzzleHttp\Promise\Promise retrieveTapeRecoveryPointAsync(array $args = [])
 * @method \Aws\Result setLocalConsolePassword(array $args = [])
 * @method \GuzzleHttp\Promise\Promise setLocalConsolePasswordAsync(array $args = [])
 * @method \Aws\Result setSMBGuestPassword(array $args = [])
 * @method \GuzzleHttp\Promise\Promise setSMBGuestPasswordAsync(array $args = [])
 * @method \Aws\Result shutdownGateway(array $args = [])
 * @method \GuzzleHttp\Promise\Promise shutdownGatewayAsync(array $args = [])
 * @method \Aws\Result startAvailabilityMonitorTest(array $args = [])
 * @method \GuzzleHttp\Promise\Promise startAvailabilityMonitorTestAsync(array $args = [])
 * @method \Aws\Result startGateway(array $args = [])
 * @method \GuzzleHttp\Promise\Promise startGatewayAsync(array $args = [])
 * @method \Aws\Result updateAutomaticTapeCreationPolicy(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateAutomaticTapeCreationPolicyAsync(array $args = [])
 * @method \Aws\Result updateBandwidthRateLimit(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateBandwidthRateLimitAsync(array $args = [])
 * @method \Aws\Result updateBandwidthRateLimitSchedule(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateBandwidthRateLimitScheduleAsync(array $args = [])
 * @method \Aws\Result updateChapCredentials(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateChapCredentialsAsync(array $args = [])
 * @method \Aws\Result updateFileSystemAssociation(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateFileSystemAssociationAsync(array $args = [])
 * @method \Aws\Result updateGatewayInformation(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateGatewayInformationAsync(array $args = [])
 * @method \Aws\Result updateGatewaySoftwareNow(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateGatewaySoftwareNowAsync(array $args = [])
 * @method \Aws\Result updateMaintenanceStartTime(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateMaintenanceStartTimeAsync(array $args = [])
 * @method \Aws\Result updateNFSFileShare(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateNFSFileShareAsync(array $args = [])
 * @method \Aws\Result updateSMBFileShare(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateSMBFileShareAsync(array $args = [])
 * @method \Aws\Result updateSMBFileShareVisibility(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateSMBFileShareVisibilityAsync(array $args = [])
 * @method \Aws\Result updateSMBLocalGroups(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateSMBLocalGroupsAsync(array $args = [])
 * @method \Aws\Result updateSMBSecurityStrategy(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateSMBSecurityStrategyAsync(array $args = [])
 * @method \Aws\Result updateSnapshotSchedule(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateSnapshotScheduleAsync(array $args = [])
 * @method \Aws\Result updateVTLDeviceType(array $args = [])
 * @method \GuzzleHttp\Promise\Promise updateVTLDeviceTypeAsync(array $args = [])
 */
class StorageGatewayClient extends AwsClient {}