text:
package ssh

import (
	"crypto"
	"crypto/rand"
	"fmt"
	"io"
	"sync"

	_ "crypto/sha1"
	_ "crypto/sha256"
	_ "crypto/sha512"
)

// These are string constants in the SSH protocol.
const (
	compressionNone = "none"
	serviceUserAuth = "ssh-userauth"
	serviceSSH      = "ssh-connection"
)

// supportedCiphers specifies the supported ciphers in preference order.
var supportedCiphers = []string{
	"aes128-ctr", "aes192-ctr", "aes256-ctr",
	"aes128-gcm@openssh.com",
	"arcfour256", "arcfour128",
}

// supportedKexAlgos specifies the supported key-exchange algorithms in
// preference order.
var supportedKexAlgos = []string{
	// P384 and P521 are not constant-time yet, but since we don't
	// reuse ephemeral keys, using them for ECDH should be OK.
	kexAlgoECDH256, kexAlgoECDH384, kexAlgoECDH521,
	kexAlgoDH14SHA1, kexAlgoDH1SHA1,
}

// supportedKexAlgos specifies the supported host-key algorithms (i.e. methods
// of authenticating servers) in preference order.
var supportedHostKeyAlgos = []string{
	CertAlgoRSAv01, CertAlgoDSAv01, CertAlgoECDSA256v01,
	CertAlgoECDSA384v01, CertAlgoECDSA521v01,

	KeyAlgoECDSA256, KeyAlgoECDSA384, KeyAlgoECDSA521,
	KeyAlgoRSA, KeyAlgoDSA,
}

// supportedMACs specifies a default set of MAC algorithms in preference order.
// This is based on RFC 4253, section 6.4, but with hmac-md5 variants removed
// because they have reached the end of their useful life.
var supportedMACs = []string{
	"hmac-sha1", "hmac-sha1-96",
}

var supportedCompressions = []string{compressionNone}

// hashFuncs keeps the mapping of supported algorithms to their respective
// hashes needed for signature verification.
var hashFuncs = map[string]crypto.Hash{
	KeyAlgoRSA:          crypto.SHA1,
	KeyAlgoDSA:          crypto.SHA1,
	KeyAlgoECDSA256:     crypto.SHA256,
	KeyAlgoECDSA384:     crypto.SHA384,
	KeyAlgoECDSA521:     crypto.SHA512,
	CertAlgoRSAv01:      crypto.SHA1,
	CertAlgoDSAv01:      crypto.SHA1,
	CertAlgoECDSA256v01: crypto.SHA256,
	CertAlgoECDSA384v01: crypto.SHA384,
	CertAlgoECDSA521v01: crypto.SHA512,
}

// unexpectedMessageError results when the SSH message that we received didn't
// match what we wanted.
func unexpectedMessageError(expected, got uint8) error {
	return fmt.Errorf("ssh: unexpected message type %d (expected %d)", got, expected)
}

// parseError results from a malformed SSH message.
func parseError(tag uint8) error {
	return fmt.Errorf("ssh: parse error in message type %d", tag)
}

func findCommonAlgorithm(clientAlgos []string, serverAlgos []string) (commonAlgo string, ok bool) {
	for _, clientAlgo := range clientAlgos {
		for _, serverAlgo := range serverAlgos {
			if clientAlgo == serverAlgo {
				return clientAlgo, true
			}
		}
	}
	return
}

func findCommonCipher(clientCiphers []string, serverCiphers []string) (commonCipher string, ok bool) {
	for _, clientCipher := range clientCiphers {
		for _, serverCipher := range serverCiphers {
			// reject the cipher if we have no cipherModes definition
			if clientCipher == serverCipher && cipherModes[clientCipher] != nil {
				return clientCipher, true
			}
		}
	}
	return
}

struct directionAlgorithms {
	Cipher      string
	MAC         string
	Compression string
}

struct algorithms {
	kex     string
	hostKey string
	w       directionAlgorithms
	r       directionAlgorithms
}

func findAgreedAlgorithms(clientKexInit, serverKexInit *kexInitMsg) (algs *algorithms) {
	var ok bool
	result := &algorithms{}
	result.kex, ok = findCommonAlgorithm(clientKexInit.KexAlgos, serverKexInit.KexAlgos)
	if !ok {
		return
	}

	result.hostKey, ok = findCommonAlgorithm(clientKexInit.ServerHostKeyAlgos, serverKexInit.ServerHostKeyAlgos)
	if !ok {
		return
	}

	result.w.Cipher, ok = findCommonCipher(clientKexInit.CiphersClientServer, serverKexInit.CiphersClientServer)
	if !ok {
		return
	}

	result.r.Cipher, ok = findCommonCipher(clientKexInit.CiphersServerClient, serverKexInit.CiphersServerClient)
	if !ok {
		return
	}

	result.w.MAC, ok = findCommonAlgorithm(clientKexInit.MACsClientServer, serverKexInit.MACsClientServer)
	if !ok {
		return
	}

	result.r.MAC, ok = findCommonAlgorithm(clientKexInit.MACsServerClient, serverKexInit.MACsServerClient)
	if !ok {
		return
	}

	result.w.Compression, ok = findCommonAlgorithm(clientKexInit.CompressionClientServer, serverKexInit.CompressionClientServer)
	if !ok {
		return
	}

	result.r.Compression, ok = findCommonAlgorithm(clientKexInit.CompressionServerClient, serverKexInit.CompressionServerClient)
	if !ok {
		return
	}

	return result
}

// If rekeythreshold is too small, we can't make any progress sending
// stuff.
const minRekeyThreshold uint64 = 256

// Config contains configuration data common to both ServerConfig and
// ClientConfig.
struct Config {
	// Rand provides the source of entropy for cryptographic
	// primitives. If Rand is nil, the cryptographic random reader
	// in package crypto/rand will be used.
	Rand io.Reader

	// The maximum number of bytes sent or received after which a
	// new key is negotiated. It must be at least 256. If
	// unspecified, 1 gigabyte is used.
	RekeyThreshold uint64

	// The allowed key exchanges algorithms. If unspecified then a
	// default set of algorithms is used.
	KeyExchanges []string

	// The allowed cipher algorithms. If unspecified then a sensible
	// default is used.
	Ciphers []string

	// The allowed MAC algorithms. If unspecified then a sensible default
	// is used.
	MACs []string
}

// SetDefaults sets sensible values for unset fields in config. This is
// exported for testing: Configs passed to SSH functions are copied and have
// default values set automatically.
func (c *Config) SetDefaults() {
	if c.Rand == nil {
		c.Rand = rand.Reader
	}
	if c.Ciphers == nil {
		c.Ciphers = supportedCiphers
	}

	if c.KeyExchanges == nil {
		c.KeyExchanges = supportedKexAlgos
	}

	if c.MACs == nil {
		c.MACs = supportedMACs
	}

	if c.RekeyThreshold == 0 {
		// RFC 4253, section 9 suggests rekeying after 1G.
		c.RekeyThreshold = 1 << 30
	}
	if c.RekeyThreshold < minRekeyThreshold {
		c.RekeyThreshold = minRekeyThreshold
	}
}

// buildDataSignedForAuth returns the data that is signed in order to prove
// possession of a private key. See RFC 4252, section 7.
func buildDataSignedForAuth(sessionId []byte, req userAuthRequestMsg, algo, pubKey []byte) []byte {
	data := struct {
		Session []byte
		Type    byte
		User    string
		Service string
		Method  string
		Sign    bool
		Algo    []byte
		PubKey  []byte
	}{
		sessionId,
		msgUserAuthRequest,
		req.User,
		req.Service,
		req.Method,
		true,
		algo,
		pubKey,
	}
	return Marshal(data)
}

func appendU16(buf []byte, n uint16) []byte {
	return append(buf, byte(n>>8), byte(n))
}

func appendU32(buf []byte, n uint32) []byte {
	return append(buf, byte(n>>24), byte(n>>16), byte(n>>8), byte(n))
}

func appendU64(buf []byte, n uint64) []byte {
	return append(buf,
		byte(n>>56), byte(n>>48), byte(n>>40), byte(n>>32),
		byte(n>>24), byte(n>>16), byte(n>>8), byte(n))
}

func appendInt(buf []byte, n int) []byte {
	return appendU32(buf, uint32(n))
}

func appendString(buf []byte, s string) []byte {
	buf = appendU32(buf, uint32(len(s)))
	buf = append(buf, s...)
	return buf
}

func appendBool(buf []byte, b bool) []byte {
	if b {
		return append(buf, 1)
	}
	return append(buf, 0)
}

// newCond is a helper to hide the fact that there is no usable zero
// value for sync.Cond.
func newCond() *sync.Cond { return sync.NewCond(new(sync.Mutex)) }

// window represents the buffer available to clients
// wishing to write to a channel.
struct window {
	*sync.Cond
	win          uint32 // RFC 4254 5.2 says the window size can grow to 2^32-1
	writeWaiters int
	closed       bool
}

// add adds win to the amount of window available
// for consumers.
func (w *window) add(win uint32) bool {
	// a zero sized window adjust is a noop.
	if win == 0 {
		return true
	}
	w.L.Lock()
	if w.win+win < win {
		w.L.Unlock()
		return false
	}
	w.win += win
	// It is unusual that multiple goroutines would be attempting to reserve
	// window space, but not guaranteed. Use broadcast to notify all waiters
	// that additional window is available.
	w.Broadcast()
	w.L.Unlock()
	return true
}

// close sets the window to closed, so all reservations fail
// immediately.
func (w *window) close() {
	w.L.Lock()
	w.closed = true
	w.Broadcast()
	w.L.Unlock()
}

// reserve reserves win from the available window capacity.
// If no capacity remains, reserve will block. reserve may
// return less than requested.
func (w *window) reserve(win uint32) (uint32, error) {
	var err error
	w.L.Lock()
	w.writeWaiters++
	w.Broadcast()
	for w.win == 0 && !w.closed {
		w.Wait()
	}
	w.writeWaiters--
	if w.win < win {
		win = w.win
	}
	w.win -= win
	if w.closed {
		err = io.EOF
	}
	w.L.Unlock()
	return win, err
}

// waitWriterBlocked waits until some goroutine is blocked for further
// writes. It is used in tests only.
func (w *window) waitWriterBlocked() {
	w.Cond.L.Lock()
	for w.writeWaiters == 0 {
		w.Cond.Wait()
	}
	w.Cond.L.Unlock()
}


text:
Imports SistFoncreagro.Report
Public Class ReporteRetencionesCuarta
    Inherits System.Web.UI.Page
    Dim FechaInicio As String
    Dim FechaFin As String
    Dim idProveedorCliente As String
    Dim idMoneda As String
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        FechaInicio = Request.QueryString("FechaInicio")
        FechaFin = Request.QueryString("FechaFin")
        idProveedorCliente = Request.QueryString("idProveedorCliente")
        idMoneda = Request.QueryString("idMoneda")
        Me.ReportViewer1.Report = New RepRetencionesCuarta
        Me.ReportViewer1.Report.ReportParameters(0).Value = FechaInicio
        Me.ReportViewer1.Report.ReportParameters(1).Value = FechaFin
        Me.ReportViewer1.Report.ReportParameters(2).Value = idProveedorCliente
        Me.ReportViewer1.Report.ReportParameters(3).Value = idMoneda
    End Sub

End Class

redpajama_set_name: RedPajamaGithub


text:
import { Observable } from 'rxjs/Observable';
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';

import { FormService } from './../form.service';

@Component({
  selector: 'app-form',
  templateUrl: './form.component.html',
  styleUrls: ['./form.component.css']
})
export class FormComponent implements OnInit {
  loginForm: FormGroup;
  user$: Observable<any>;

  constructor(private formBuilder: FormBuilder, private formService: FormService) { }

  ngOnInit() {
    // Use FormBuilder to build FormGroup
    this.loginForm = this.formBuilder.group({
      username: ['', [Validators.required, Validators.minLength(4)]],
      password: ['', [Validators.required, Validators.minLength(8)]]
    });

    // Or define FormGroup and FormControls more explicitly
    // this.loginForm = new FormGroup({
    //   username: new FormControl('', [Validators.required, Validators.minLength(4)]),
    //   password: new FormControl('', [Validators.required, Validators.minLength(8)])
    // });
  }

  public onSubmit(): void {
    const username = this.loginForm.get('username').value,
      password = this.loginForm.get('password').value;

    this.user$ = this.formService.login(username, password);
  }

}


text:
import NotificationsDropdown from 'flarum/components/NotificationsDropdown';

import FlagList from 'flags/components/FlagList';

export default class FlagsDropdown extends NotificationsDropdown {
  static initProps(props) {
    props.label = props.label || 'Flagged Posts';
    props.icon = props.icon || 'flag';

    super.initProps(props);
  }

  constructor(...args) {
    super(...args);

    this.list = new FlagList();
  }

  goToRoute() {
    m.route(app.route('flags'));
  }

  getUnreadCount() {
    return app.forum.attribute('unreadFlagsCount');
  }
}


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>Limitless - Responsive Web Application Kit by Eugene Kopyov</title>

	<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css">
	<link href="assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css">
	<link href="assets/css/bootstrap.css" rel="stylesheet" type="text/css">
	<link href="assets/css/core.css" rel="stylesheet" type="text/css">
	<link href="assets/css/components.css" rel="stylesheet" type="text/css">
	<link href="assets/css/colors.css" rel="stylesheet" type="text/css">

						Git updates
						9

							Git updates

									Drop the IE specific hacks for temporal inputs

4 minutes ago

									Add full font overrides for popovers and tooltips

36 minutes ago

									Chris Arney created a new Design branch

2 hours ago

									Eugene Kopyov merged Master and Dev branches

Dec 18, 18:36

									Have Carousel ignore keyboard events

Dec 12, 05:46

				Online

							Users

								Users online

										Jordana Ansley
										Lead web developer

										Will Brason
										Marketing manager

										Hanna Walden
										Project manager

										Dori Laperriere
										Business developer

										Vanessa Aurelius
										UX expert

							Messages
							2

								Messages

										5

											James Alexander
											04:58

										who knows, maybe that would be the best thing for me...

										4

											Margo Baker
											12:16

										That was something he was unable to do because...

											Jeremy Victorino
											22:48

										But that would be extremely strained and suspicious...

											Beatrix Diaz
											Tue

										What a strenuous career it is that I've chosen...

											Richard Vango
											Mon

										Other travelling salesmen live a life of luxury...

							Victoria

 My profile

 My balance

58  Messages

 Account settings

 Logout

									Victoria Baker

										  Santa Ana, CA

Main

 Dashboard

									 Page layouts

Fixed navbar

Fixed navbar & sidebar

Fixed sidebar native scroll

Hideable navbar

Hideable & fixed sidebar

Fixed footer

Boxed with default sidebar

Boxed with mini sidebar

Boxed full width

									 Layouts

Layout 1

Layout 2 Current

Layout 3

Layout 4

Layout 5

Layout 6 Coming soon

									 Color system

Primary palette

Danger palette

Success palette

Warning palette

Info palette

Pink palette

Violet palette

Purple palette

Indigo palette

Blue palette

Teal palette

Green palette

Orange palette

Brown palette

Grey palette

Slate palette

									 Starter kit

Horizontal navigation

1 column

2 columns

											3 columns

Dual sidebars

Double sidebars

4 columns

											Detached layout

Left sidebar

Right sidebar

Sticky sidebar

Boxed layout

Fixed main navbar

Fixed secondary navbar

Both navbars fixed

Fixed layout

 Changelog 1.4

 RTL version

Forms

									 Form components

Basic inputs

Checkboxes & radios

Input groups

Extended controls

Floating labels

											Selects

Select2 selects

Bootstrap multiselect

SelectBoxIt selects

Bootstrap selects

Tag inputs

Dual Listboxes

Editable forms

Validation

Inputs grid

									 JSON forms

Basic inputs

Advanced inputs

Controls

									 Wizards

Steps wizard

Form wizard

Stepy wizard

									 Editors

Summernote editor

CKEditor

WYSIHTML5 editor

Code editor

									 Pickers

Date & time pickers

Color pickers

Location pickers

									 Form layouts

Vertical form

Horizontal form

Appearance

									 Components

Modals

Dropdown menus

Tabs component

Pills component

Accordion and navs

Buttons

PNotify notifications

Other notifications

Tooltips and popovers

Alerts

Pagination

Labels and badges

Loaders and bars

Thumbnails

Page header

Breadcrumbs

Media objects

Affix and Scrollspy

									 Content appearance

Content panels

Panel heading elements

Panel footer elements

Draggable panels

Text styling

Typography

Helper classes

Syntax highlighter

Grid system

									 Extra components

NoUI sliders

Ion range sliders

Session timeout

Idle timeout

Dynamic tree views

Context menu

Floating action buttons

									 Animations

CSS3 animations

											Velocity animations

Basic usage

UI pack effects

Advanced examples

									 Icons

Glyphicons

Icomoon

Font awesome

Layout

									 Sidebars

Default collapsible

Default hideable

Mini collapsible

Mini hideable

											Dual sidebar

Dual sidebar

Dual double collapse

Dual double hide

Swap sidebars

											Double sidebar

Collapse main sidebar

Hide main sidebar

Fix default width

Fix mini width

Opposite sidebar visible

											Detached sidebar

Left position

Right position

Sticky (custom scroll)

Sticky (native scroll)

Separate categories

Hidden sidebar

Light sidebar

Sidebar components

									 Vertical navigation

Collapsible menu

Accordion menu

Navigation sizing

Bordered navigation

Right icons

Labels and badges

Disabled navigation links

									 Horizontal navigation

Submenu on click

Submenu on hover

With custom elements

Tabbed navigation

Disabled navigation links

Horizontal mega menu

									 Navbars

Single navbar

											Multiple navbars

Navbar + navbar

Navbar + header

Header + navbar

Top + bottom

Color options

Sizing options

Hide on scroll

Navbar components

									 Menu levels

 Second level

											 Second level with child

 Third level

													 Third level with child

 Fourth level

 Fourth level

 Third level

 Second level

Data visualization

									 Echarts library

Lines and areas

Columns and waterfalls

Bars and tornados

Scatter charts

Pies and donuts

Funnels and chords

Candlesticks and others

Chart combinations

									 D3 library

Simple lines

Advanced lines

Simple bars

Advanced bars

Pie charts

Circle diagrams

Tree layout

Other charts

									 Dimple library

											Line charts

Horizontal orientation

Vertical orientation

											Bar charts

Horizontal orientation

Vertical orientation

											Area charts

Horizontal orientation

Vertical orientation

											Step charts

Horizontal orientation

Vertical orientation

Pie charts

Ring charts

Scatter charts

Bubble charts

									 C3 library

Lines and areas

Bars and pies

Advanced examples

Chart axis

Grid options

									 Google visualization

Line charts

Bar charts

Pie charts

Bubble & scatter charts

Other charts

									 Maps integration

											Google maps

Basics

Controls

Markers

Map drawings

Layers

Vector maps

Extensions

									 Extensions

Image cropper

Block UI

Drag and drop

									 JQuery UI

Interactions

Forms

Components

Sliders

Navigation

									 File uploaders

Plupload

Bootstrap file uploader

Dropzone

									 Event calendars

Basic views

Event styling

Language and time

Advanced usage

									 Internationalization

Direct translation

Querystring parameter

Set language on init

Set language after init

Language fallback

Callbacks

Tables

									 Basic tables

Basic examples

Table sizing

Table borders

Table styling

Table elements

									 Data tables

Basic initialization

Basic styling

Advanced examples

Sorting options

Using API

Data sources

									 Data tables extensions

Columns reorder

Row reorder

Fixed columns

Fixed header

Auto fill

Key table

Scroller

Select

											Buttons

Initialization

Flash buttons

Print buttons

HTML5 buttons

Columns visibility

									 Handsontable

Basic configuration

Advanced setup

Column features

Cell features

Basic cell types

Custom & checkboxes

Autocomplete & password

Search

Context menu

									 Responsive options

Responsive basic tables

Responsive data tables

Page kits

									 Task manager

Task grid

Task list

Task detailed

									 Invoicing

Invoice template

Invoice grid

Invoice archive

									 User pages

User cards

User list

Simple profile

Profile with cover

									 Login & registration

Simple login

More login info

Simple registration

More registration info

Unlock user

Reset password

Hide navbar

Transparent box

Background option

With validation

Tabbed form

Inside modals

									 Timelines

Left timeline

Right timeline

Centered timeline

									 Support

Conversation layouts

Conversation options

Knowledgebase

FAQ page

									 Search

Basic search results

User search results

Image search results

Video search results

									 Gallery

Media grid

Media with titles

Media with description

Media library

									 Error pages

Error 403

Error 404

Error 405

Error 500

Error 503

Offline page

 Support - Knowledgebase

Home

Support

Knowledgebase

								Statistics
								 Invoices
								 Schedule

								Welcome to our knowledge base
								Panther egret cut a more this bound one much yikes more less because hello alas while unbridled seal

							<form action="#" class="main-search">

										<input type="text" class="form-control input-xlg" placeholder="Search our knowledgebase">

										<button type="submit" class="btn btn-primary btn-xlg">Search</button>

													 All categories

 Getting started

 Registration

 General info

 Your settings

 Copyrights

 Contacting authors

 Refine your search

 Browse articles

 Advanced search

							</form>

Knowledge Base

Ouch found swore much dear conductively hid submissively hatchet vexed far inanimately alongside candidly much and jeez

									Browse articles

Support center

Dear spryly growled much far jeepers vigilantly less and far hideous and some mannishly less jeepers less and and crud

									Open a ticket

Articles and news

Diabolically somberly astride crass one endearingly blatant depending peculiar antelope piquantly popularly adept much

									Browse articles

						Browse articles by category
						Yikes snuffed goat macaw overlay much and goodness and alas kookaburra a goldfish

Browse articles

 Getting started (93)

														 And hello exotic staunch Popular

														 That and well ecstatically

														 Sheared coasted so concurrent

														 Into darn intrepid belated

														 Show all articles (93)

 Becoming an author (56)

														 Jeepers therefore one

														 Near and ladybug forewent Review

														 Well much strove when stuck

														 Lorikeet much fantastic less

														 Show all articles (56)

 General info for all authors (29)

														 Lackadaisical dear crude Closed

														 Effortless one powerlessly

														 Some less hey and less Article

														 Jeepers pill nonsensically

														 Show all articles (29)

 Your statement & documents (58)

														 Incongruously gorilla New

														 Playful amongst hence

														 Sobbingly altruistic nasty

														 Hung insecure far ferret

														 Show all articles (58)

 Account settings (92)

														 Reined and this vigorous Popular

														 Oh positively well crab

														 Recast then impalpable cried

														 Eclectic mechanically as on Closed

														 Show all articles (92)

 Protecting your copyright (15)

														 And dear dealt bat far redid

														 Trout some after effective On hold

														 The one rhythmically whale

														 Admirably spun a the belched Article

														 Show all articles (15)

 Intellectual Property (12)

														 Gagged more much around Closed

														 Much oh much along gnu

														 Aardvark far the until alas Review

														 Hence expeditiously goldfish

														 Show all articles (12)

 Item support (34)

														 Shark hello less well

														 Far pious gosh cuttingly Review

														 Tonally guardedly jeepers

														 Since growled overheard

														 Show all articles (34)

 Contacting authors (85)

														 Jeepers circa sneered well

														 Oh one ouch ouch armadillo Popular

														 Thus went far and pending On hold

														 Or cat together chose eagle

														 Show all articles (85)

						Latest articles & videos
						Dear bawled since some the contrary much hyena jeez clear fox despite the concomitant

Walking away fallaciously

										Ouch licentiously lackadaisical crud together began gregarious below near darn goodness

Nutria and rewound

										Strove the darn hey as far oh alas and yikes and gosh knitted this slept via gerbil baneful

Bound befell well

										And since left before understandably much groomed along burped through dear and gosh

Porcupine strict nodded

										Left extravagant leered crab repaid outgrew said knelt hello astride within oh disbanded

Ducked ravenously dear

										Reran sincere said monkey one slapped jeepers rubbed fleetly incongruously due yet llama

Contemptibly bleakly

										Speechless far goodness bent as boa crud because vague far koala the that lantern alas sold

Blamelessly wow hence

										A without walking some objective hiccupped some this overlay immorally crud and gosh

Manatee broadcast

										And some where indecently manta floated raptly youthful unlike swept dragonfly pulled moth

Stretched flamboyant

										Some when foolhardy dangerous so less less aimlessly along hazardously oversaw much stopped

						Featured articles and tutorials
						And porcupine the wallaby far the due thus rash did near dear far pangolin parrot less

For ostrich much

									Some various less crept gecko the jeepers dear forewent far the ouch far a incompetent saucy wherever towards

Helpfully stolidly

									Hippopotamus aside while a shrewdly this after kookaburra wow in haphazardly much salmon buoyantly sullen gosh

Considering far

									Kookaburra so hey a less tritely far congratulated this winked some under had unblushing beyond sympathetic

Despite perversely

									Coming merits and was talent enough far. Sir joy northward sportsmen education. Put still any about manor heard

Can't find what you're looking for?

							Maladroit forgetfully under until the fraternally on one much whispered waked much cumulatively some rabidly after thanks hey

							 Submit a ticket

						© 2015. Limitless Web App Kit by Eugene Kopyov


text:
A basic Ansible playbook to install Cobbler on Ubuntu.

## Usage

First, update the **ansible_hosts** file to include the nodes to be provisioned. A single entry has been provided by default for deployment on a Vagrant instance. You will just need to update the IP address corresponding to your Vagrant instance.

Once the nodes have been added to the hosts file, run the playbook to install Cobbler.

    $ ansible-playbook deploy.yml


text:
<?php
namespace App\Tencent\Models;

class AppKey extends \App\Common\Models\Tencent\AppKey
{
}


text:
var util = require("util");
var dgram = require('dgram');
var extend = require('gextend');
var events = require("events");

var DEFAULTS = {
    autoinitialize: true,
    port: 8899,
    host: '192.168.1.100',
    activeZone: 1,
    repeatSendCommand: 8,
    sendCommandInterval: 100
};

var ZONES = [
    {on: 0x35, off: 0x39, nightMode:0xB9, fullMode:0xB5, label: 'All'},

    {on: 0x38, off: 0x3B, nightMode: 0xBB, fullMode: 0xB8, label: 'Zone1'},
    {on: 0x3D, off: 0x33, nightMode: 0xB3, fullMode: 0xBD, label: 'Zone2'},
    {on: 0x37, off: 0x3A, nightMode: 0xBA, fullMode: 0xB7, label: 'Zone3'},
    {on: 0x32, off: 0x36, nightMode: 0xB6, fullMode: 0xB2, label: 'Zone4'},
];

var VALUE              = 0x00;
var EXTENSION          = 0x55;

var DIM_CMD            = 0x34;
var BRIGHTEN_CMD       = 0x3C;
var SET_BRIGHTNESS_CMD = 0x4E;
var WARM_COLOR_UP_CMD  = 0x3E;
var COOL_COLOR_UP_CMD  = 0x3F;
var ALL_LIGHTS_ON_CMD  = ZONES[0].on;
var ALL_LIGHTS_OFF_CMD = ZONES[0].off;

var ALL_LIGHTS_FULL_CMD = ZONES[0].fullMode;//0xB5;
var ALL_LIGHTS_NIGHTMODE_CMD = ZONES[0].nightMode;//0xB9;

/**
 * Controller constructor
 * @param {Object} config Options object
 */
var Controller = function(config){
    config = extend({}, this.constructor.DEFAULTS, config);

    events.EventEmitter.call(this);

    if(config.autoinitialize ) this.init(config);
};

util.inherits(Controller, events.EventEmitter);

Controller.DEFAULTS = DEFAULTS;

/**
 * Initialize the `Controller` instance
 * @param  {Object} config Options object
 * @return {this}
 */
Controller.prototype.init = function(config){
    if(this.initialized) return;
    this.initialized = true;

    extend(this, this.constructor.DEFAULTS, config);

    return this;
};

/**
 * Sends a message over `UDP` to the bridge
 * @param  {Number}   command  Hex code
 * @param  {Function} callback
 * @return {void}
 */
Controller.prototype.sendCommand = function(command, callback, value){
    value || (value = VALUE);
    var msg = new Buffer([command, value, EXTENSION]);

    var i = 0,
        MAX = this.repeatSendCommand,
        INT = this.sendCommandInterval;

    var _done = function(err, dat){
        i++;
        if(i !== MAX) return setTimeout(_send, INT);
        if(callback) callback(err, dat);
    };

    var _send = function(){

        var socket = dgram.createSocket('udp4');
        console.log('SEND', msg)
        socket.send(msg, 0, msg.length, this.port, this.host, function(err, dat){
            socket.close();
            if(err) console.log('ERROR: ', err);
            _done(err, dat);
        });
    }.bind(this);

    _send();
};

/**
 * Sends brighten command
 * @param  {Function} callback
 * @return {this}
 */
Controller.prototype.brighten = function(callback){
    this.sendCommand(BRIGHTEN_CMD, callback);
    return this;
};

Controller.prototype.setBrightness = function(percent, callback){
    //value is from 0-100, should be converted to 2-27.
    var value = Math.floor(2 + ((percent / 100) * 25));
    //value should be hex
    value = struct.pack('B', value);
    console.log('VALUE', value)
    //command is 4E
    this.sendCommand(SET_BRIGHTNESS_CMD, callback, value);
    return this;
};

/**
 * Sends dim command
 * @param  {Function} callback
 * @return {this}
 */
Controller.prototype.dim = function(callback){
    this.sendCommand(DIM_CMD, callback);
    return this;
};

/**
 * Sends warmer color command
 * @param  {Function} callback
 * @return {this}
 */
Controller.prototype.warmerColor = function(callback){
    this.sendCommand(WARM_COLOR_UP_CMD, callback);
    return this;
};

/**
 * Sends cooler color command
 * @param  {Function} callback
 * @return {this}
 */
Controller.prototype.coolerColor = function(callback){
    this.sendCommand(COOL_COLOR_UP_CMD, callback);
    return this;
};

/**
 * Sets `activeZone` to all zones.
 * @return {this}
 */
Controller.prototype.all = function(){
    this.previousActive = this.activeZone;
    this.activeZone = 0;
    return this;
};

/**
 * Set the `activeZone` which should
 * be between 1 and 4
 * @param  {int} id Zone id
 * @return {this}
 */
Controller.prototype.zone = function(id){
    if(id < 0 || id > 4) id = 1;
    this.activeZone = id;
    return this;
};

//TODO: Fix recursion, for now only one clone works...curry
Controller.prototype.wait = function(delay){
    var wrap = function(clone, self, property, time){
        clone[prop] = function(){
            var args = arguments;
            setTimeout(function(){
                console.log('EXECUTE', property)
                clone.self[property].apply(clone.self, args);
            }, delay + time);
            return clone;
        };
    }
    var clone = {self: this}, self = this;

    for(var prop in this){
        if(typeof this[prop] === 'function'){
            wrap(clone, self, prop, delay)
        }
        console.log(prop)
    }

    return clone;
};

/**
 * Turn led bulbs of a zone **on**, using `activeZone`
 * @param  {Function} callback
 * @return {this}
 */
Controller.prototype.ledsOn = function(callback){
    this.sendCommand(ZONES[this.activeZone].on, this._onLedCommand.bind(this, callback));
    return this;
};

/**
 * Turn led bulbs of a zone **off**, using `activeZone`
 * @param  {Function} callback
 * @return {this}
 */
Controller.prototype.ledsOff = function(callback){
    this.sendCommand(ZONES[this.activeZone].off, callback, this._onLedCommand.bind(this, callback));
    return this;
};

Controller.prototype.fullColor = function(callback){
    this.sendCommand(ZONES[this.activeZone].fullMode, callback);
    return this;
};

Controller.prototype.nightMode = function(callback){
    this.sendCommand(ZONES[this.activeZone].nightMode, callback);
    return this;
};

/**
 * Led command complete handler
 * @param  {Function} callback
 * @param  {Object}   err
 * @param  {Object}   dat
 * @return {void}
 * @private
 */
Controller.prototype._onLedCommand = function(callback, err, dat){
    console.log('ON LED COMMAND', arguments)
    if(!this.previousActive) return;
    this.activeZone = this.previousActive;
    this.previousActive = null;
    if(callback) callback(err, dat);
};

Controller.prototype.logger = console;

module.exports = Controller;


text:
Hi there! This repo serves as a central place for Node.js documentation
coordination, but not documentation itself. The documentation for node can be
found at <http://nodejs.org/en/docs/>. The source material is found in the
[node core repo][].

## Current Documentation WG Members

* [**@a0viedo**](https://github.com/a0viedo)
* [**@ashleygwilliams**](https://github.com/ashleygwilliams)
* [**@bengl**](https://github.com/bengl)
* [**@benjamingr**](https://github.com/benjamingr)
* [**@chrisdickinson**](https://github.com/chrisdickinson)
* [**@danielkhan**](https://github.com/danielkhan)
* [**@danjenkins**](https://github.com/danjenkins)
* [**@DavidTPate**](https://github.com/DavidTPate)
* [**@distracteddev**](https://github.com/distracteddev)
* [**@drewfish**](https://github.com/drewfish)
* [**@eljefedelrodeodeljefe**](https://github.com/eljefedelrodeodeljefe)
* [**@estliberitas**](https://github.com/estliberitas)
* [**@evanlucas**](https://github.com/evanlucas)
* [**@jasisk**](https://github.com/jasisk)
* [**@kahwee**](https://github.com/kahwee)
* [**@kelthenoble**](https://github.com/kelthenoble)
* [**@kosamari**](https://github.com/kosamari)
* [**@MylesBorins**](https://github.com/MylesBorins)
* [**@Qard**](https://github.com/Qard)
* [**@rdodev**](https://github.com/rdodev)
* [**@rodmachen**](https://github.com/rodmachen)
* [**@romankl**](https://github.com/romankl)
* [**@rubo-21**](https://github.com/rubo-21)
* [**@ryansobol**](https://github.com/ryansobol)
* [**@snostorm**](https://github.com/snostorm)
* [**@stevemao**](https://github.com/stevemao)
* [**@techjeffharris**](https://github.com/techjeffharris)
* [**@thefourtheye**](https://github.com/thefourtheye)
* [**@tomgco**](https://github.com/tomgco)

[node core repo]: https://github.com/nodejs/node


text:
namespace FakeItEasy.Tests
{
    using System;
    using FluentAssertions;
    using Xunit;

    public class TypeExtensionsTests
    {
        private interface IFoo
        {
        }

        private interface IBar
        {
        }

        [Fact]
        public void CanBeInstantiatedAs_should_return_false_when_type_is_not_assignable_from_targetType()
        {
            typeof(Bar).CanBeInstantiatedAs(typeof(IFoo)).Should().BeFalse();
        }

        [Fact]
        public void CanBeInstantiatedAs_should_return_false_when_type_is_an_interface()
        {
            typeof(IBar).CanBeInstantiatedAs(typeof(IBar)).Should().BeFalse();
        }

        [Fact]
        public void CanBeInstantiatedAs_should_return_false_when_type_is_abstract()
        {
            typeof(AbstractBar).CanBeInstantiatedAs(typeof(IBar)).Should().BeFalse();
        }

        [Fact]
        public void CanBeInstantiatedAs_should_return_false_when_type_is_an_open_generic()
        {
            typeof(GenericBar<>).CanBeInstantiatedAs(typeof(AbstractBar)).Should().BeFalse();
        }

        [Theory]
        [InlineData(typeof(Bar), typeof(IBar))]
        [InlineData(typeof(Bar), typeof(AbstractBar))]
        [InlineData(typeof(Bar), typeof(Bar))]
        [InlineData(typeof(GenericBar<IFoo>), typeof(IBar))]
        [InlineData(typeof(GenericBar<IFoo>), typeof(AbstractBar))]
        [InlineData(typeof(GenericBar<IFoo>), typeof(GenericBar<IFoo>))]
        public void CanBeInstantiatedAs_should_return_true_when_type_can_be_instantiated_as_targetType(
            Type type,
            Type targetType)
        {
            type.CanBeInstantiatedAs(targetType).Should().BeTrue();
        }

        private abstract class AbstractBar : IBar
        {
        }

        private class Bar : AbstractBar
        {
        }

        private class GenericBar<T> : AbstractBar
        {
        }
    }
}


text:
<?php
    require '../../re-use/head.php';
?>

                        Maquinaria

 Maquinaria

Agregar Maquinaria

Maquinaria

                                <form role="form">

                                        Nombre
                                        <input type="text" class="form-control" placeholder=" Nombre"/>

                                        Capacidad
                                        <input type="text" class="form-control" placeholder=" Capacidad"/>

                                        Hora
                                        <input type="text" class="form-control" placeholder="Ingrese Hora"/>

                                </form>

                                    Jornada
                                    <input type="text" class="form-control" placeholder=" Jornada"/>

                                    Disponibilidad
                                    <input type="text" class="form-control" placeholder=" Hora"/>

                                    Carga Nominal
                                    <input type="text" class="form-control" placeholder=" Jornada"/>

                                    Etapas

                                    <select name="origen[]" id="origen" multiple="multiple" size="8">
                                        <option value="2">ABRIR 2 </option>
                                        <option value="3">ABRIR BLANCO </option>
                                        <option value="4">ABRIR CARDA </option>
                                        <option value="5">BLANQUEAR </option>
                                        <option value="6">CARDA BLANCO </option>
                                        <option value="7">CARDADO </option>
                                        <option value="8">CENTRIFUGA BCO </option>
                                        <option value="1">RAMA POLIN </option>
                                        <option value="2">RAMA RAQUELADO </option>
                                        <option value="3">RAMA SECADO </option>
                                        <option value="4">RAQUELADO </option>
                                        <option value="5">SECADO </option>
                                        <option value="6">SECADO BLANCO </option>
                                        <option value="7">TEÑIDO </option>
                                        <option value="8">VAPORIZADO </option>
                                    </select>

                                    <input type="button" class="pasar izq" value="Pasar »">
                                    <input type="button" class="quitar der" value="« Quitar">

                                    <select name="destino[]" id="destino" multiple="multiple" size="8">
                                        <option value="1">ABRIR 1 </option>
                                    </select>

                                    Descripción
                                    <textarea class="form-control"></textarea>

                            </form>

                        <form action="lista_maquinaria.php">
                            <button class="btn btn-success btn-right btn-margin btn-lg" onclick="alert('Registro agregado');" >Ingresar Maquina</button>
                            <button class="btn btn-danger btn-right btn-margin btn-lg" >Eliminar</button>
                        </form>

        <?php
            require('../../re-use/footer.php');
        ?>


text:
package com.intellij.internal.psiView;

import javax.annotation.Nonnull;

import com.intellij.ide.highlighter.JavaFileType;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.project.Project;
import com.intellij.psi.JavaPsiFacade;
import com.intellij.psi.PsiElementFactory;

/**
 * @author Konstantin Bulenkov
 */
public abstract class JavaPsiViewerExtension implements PsiViewerExtension{
  @Nonnull
  public FileType getDefaultFileType() {
    return JavaFileType.INSTANCE;
  }

  protected static PsiElementFactory getFactory(Project project) {
    return JavaPsiFacade.getElementFactory(project);
  }
}


text:
package com.brettonw.bedrock.bag.formats;

import com.brettonw.bedrock.bag.BagObject;
import com.brettonw.bedrock.bag.BagObjectFrom;
import org.junit.jupiter.api.Test;

import java.io.File;

import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertTrue;

public class FormatReaderTest {

    @Test
    public void testFormatReader () {
        BagObject bagObject = BagObjectFrom.file (new File ("data", "title.properties"));
        assertTrue (bagObject.getString ("note").equals ("this is a test"));
    }
}


text:
from __future__ import with_statement

import os
import re
from subprocess import Popen, PIPE, STDOUT, check_call
from kokki.base import Fail
from kokki.providers import Provider

class MountProvider(Provider):
    def action_mount(self):
        if not os.path.exists(self.resource.mount_point):
            os.makedirs(self.resource.mount_point)

        if self.is_mounted():
            self.log.debug("%s already mounted" % self)
        else:
            args = ["mount"]
            if self.resource.fstype:
                args += ["-t", self.resource.fstype]
            if self.resource.options:
                args += ["-o", ",".join(self.resource.options)]
            if self.resource.device:
                args.append(self.resource.device)
            args.append(self.resource.mount_point)

            check_call(args)

            self.log.info("%s mounted" % self)
            self.resource.updated()

    def action_umount(self):
        if self.is_mounted():
            check_call(["umount", self.resource.mount_point])

            self.log.info("%s unmounted" % self)
            self.resource.updated()
        else:
            self.log.debug("%s is not mounted" % self)

    def action_enable(self):
        if self.is_enabled():
            self.log.debug("%s already enabled" % self)
        else:
            if not self.resource.device:
                raise Fail("[%s] device not set but required for enable action" % self)
            if not self.resource.fstype:
                raise Fail("[%s] fstype not set but required for enable action" % self)

            with open("/etc/fstab", "a") as fp:
                fp.write("%s %s %s %s %d %d\n" % (
                        self.resource.device,
                        self.resource.mount_point,
                        self.resource.fstype,
                        ",".join(self.resource.options or ["defaults"]),
                        self.resource.dump,
                        self.resource.passno,
                    ))

            self.log.info("%s enabled" % self)
            self.resource.updated()

    def action_disable(self):
        pass # TODO

    def is_mounted(self):
        if not os.path.exists(self.resource.mount_point):
            return False

        if self.resource.device and not os.path.exists(self.resource.device):
            raise Fail("%s Device %s does not exist" % (self, self.resource.device))

        mounts = self.get_mounted()
        for m in mounts:
            if m['mount_point'] == self.resource.mount_point:
                return True

        return False

    def is_enabled(self):
        mounts = self.get_fstab()
        for m in mounts:
            if m['mount_point'] == self.resource.mount_point:
                return True

        return False

    def get_mounted(self):
        p = Popen("mount", stdout=PIPE, stderr=STDOUT, shell=True)
        out = p.communicate()[0]
        if p.wait() != 0:
            raise Fail("[%s] Getting list of mounts (calling mount) failed" % self)

        mounts = [x.split(' ') for x in out.strip().split('\n')]

        return [dict(
                device = m[0],
                mount_point = m[2],
                fstype = m[4],
                options = m[5][1:-1].split(','),
            ) for m in mounts if m[1] == "on" and m[3] == "type"]

    def get_fstab(self):
        mounts = []
        with open("/etc/fstab", "r") as fp:
            for line in fp:
                line = line.split('#', 1)[0].strip()
                mount = re.split('\s+', line)
                if len(mount) == 6:
                    mounts.append(dict(
                        device = mount[0],
                        mount_point = mount[1],
                        fstype = mount[2],
                        options = mount[3].split(","),
                        dump = int(mount[4]),
                        passno = int(mount[5]),
                    ))
        return mounts


text:
<system>
	<name>HD 189733</name>
	<rightascension>20 00 43</rightascension>
	<declination>+22 42 39</declination>
	<distance>19.3</distance>
	<binary>
		<semimajoraxis>216</semimajoraxis>
		<star>
			<name>HD 189733 B</name>
			<name>V452 Vulpeculae B</name>
			<spectraltype>M4</spectraltype>
			<mass>0.4</mass>
		</star>
		<star>
			<name>HD 189733 A</name>
			<name>V452 Vulpeculae A</name>
			<mass>0.8</mass>
			<radius>0.788</radius>
			<magV errorminus="0.05" errorplus="0.05">7.68</magV>
			<magB>8.578</magB>
			<magR>7.126</magR>
			<magI>6.68</magI>
			<magJ errorminus="0.027" errorplus="0.027">6.073</magJ>
			<magH errorminus="0.027" errorplus="0.027">5.587</magH>
			<magK errorminus="0.02" errorplus="0.02">5.54</magK>
			<metallicity>-0.03</metallicity>
			<spectraltype>K2V</spectraltype>
			<planet>
				<name>HD 189733 A b</name>
				<name>HD 189733 b</name>
				<name>V452 Vulpeculae A b</name>
				<list>Confirmed planets</list>
				<mass>1.138</mass>
				<radius>1.138</radius>
				<period>2.21857312</period>
				<semimajoraxis>0.03142</semimajoraxis>
				<eccentricity>0.0041</eccentricity>
				<inclination>85.51</inclination>
				<transittime errorminus="0.0004" errorplus="0.0004" unit="BJD">2453629.3928</transittime>
				<discoverymethod>transit</discoverymethod>
				<lastupdate>13/08/18</lastupdate>
				<discoveryyear>2005</discoveryyear>
				<temperature>1099.7</temperature>
				<description>The planet HD 189733 b is a transiting hot Jupiter on a 2 day orbit. Astronomers have observed the secondary eclipse with the Hubble Space Telescope. They found evidence for optically thick reflective clouds on the dayside hemisphere. According to the best-fit albedo values, the planet would appear deep blue at visible wavelengths.</description>
				<image>HD189733</image>
				<imagedescription>This illustration shows HD 189733b, a huge gas giant that orbits very close to its host star HD 189733. The planet's atmosphere is scorching with a temperature of over 1000 degrees Celsius, and it rains glass, sideways, in howling 7000 kilometre-per-hour winds.

	At a distance of 63 light-years from us, this turbulent alien world is one of the nearest exoplanets to Earth that can be seen crossing the face of its star. By observing this planet before, during, and after it disappeared behind its host star during orbit, astronomers were able to deduce that HD 189733b is a deep, azure blue - reminiscent of Earth's colour as seen from space.

	Credit: NASA, ESA, M. Kornmesser</imagedescription>
				<list>Planets in binary systems, S-type</list>
			</planet>
			<temperature>4980.0</temperature>
		</star>
	</binary>
</system>