text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Nucleo.Presentation;
using Nucleo.Views;
using Nucleo.Web.Views;

namespace Nucleo.Tests.DataSource
{
	public partial class NestedControls02 : System.Web.UI.UserControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}
	}
}


text:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

   <title>Welcome to JBoss AS</title>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   <link rel="StyleSheet" href="css/jboss.css" type="text/css"/>

Manage this JBoss AS Instance

Administration Console

JMX Console

JBoss Web Console

Tomcat status
          (full)
          (XML)

JBoss AS Online Resources

JBoss AS Documentation

JBoss Wiki

JBoss AS JIRA

JBoss Forums

JBoss Mailing Lists

         JBoss Application Server

redpajama_set_name: RedPajamaGithub


text:
'use strict';

/**
 * Describes a virtual machine scale set sku.
 *
 */
class Sku {
  /**
   * Create a Sku.
   * @member {string} [name] The sku name.
   * @member {string} [tier] Specifies the tier of virtual machines in a scale
   * set.

 Possible Values:

 **Standard**

   * **Basic**
   * @member {number} [capacity] Specifies the number of virtual machines in
   * the scale set.
   */
  constructor() {
  }

  /**
   * Defines the metadata of Sku
   *
   * @returns {object} metadata of Sku
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'Sku',
      type: {
        name: 'Composite',
        className: 'Sku',
        modelProperties: {
          name: {
            required: false,
            serializedName: 'name',
            type: {
              name: 'String'
            }
          },
          tier: {
            required: false,
            serializedName: 'tier',
            type: {
              name: 'String'
            }
          },
          capacity: {
            required: false,
            serializedName: 'capacity',
            type: {
              name: 'Number'
            }
          }
        }
      }
    };
  }
}

module.exports = Sku;


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

<title>Uses of Class java.util.Currency (Java Platform SE 7 )</title>
<meta name="date" content="2014-12-18">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Java™ Platform
Standard Ed. 7

Prev

Next

Frames

No Frames

All Classes

Uses of Class
java.util.Currency

Packages that use Currency

Package
Description

java.text

Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages.

java.util

Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array).

Uses of Currency in java.text

Methods in java.text that return Currency

Modifier and Type
Method and Description

Currency
NumberFormat.getCurrency()

Gets the currency used by this number format when formatting
 currency values.

Currency
DecimalFormatSymbols.getCurrency()

Gets the currency of these DecimalFormatSymbols.

Currency
DecimalFormat.getCurrency()

Gets the currency used by this decimal format when formatting
 currency values.

Methods in java.text with parameters of type Currency

Modifier and Type
Method and Description

void
NumberFormat.setCurrency(Currency currency)

Sets the currency used by this number format when formatting
 currency values.

void
DecimalFormatSymbols.setCurrency(Currency currency)

Sets the currency of these DecimalFormatSymbols.

void
DecimalFormat.setCurrency(Currency currency)

Sets the currency used by this number format when formatting
 currency values.

Uses of Currency in java.util

Methods in java.util that return Currency

Modifier and Type
Method and Description

static Currency
Currency.getInstance(Locale locale)

Returns the Currency instance for the country of the
 given locale.

static Currency
Currency.getInstance(String currencyCode)

Returns the Currency instance for the given currency code.

Methods in java.util that return types with arguments of type Currency

Modifier and Type
Method and Description

static Set<Currency>
Currency.getAvailableCurrencies()

Gets the set of available currencies.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Java™ Platform
Standard Ed. 7

Prev

Next

Frames

No Frames

All Classes

 Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.


text:
Imports System.Collections.Generic
Imports Substrate

Module Module1

    Sub Main()
        Dim world As BetaWorld = BetaWorld.Open("F:\Minecraft\test")
        Dim bm As BlockManager = world.GetBlockManager()

        bm.AutoLight = False

        Dim grid As New Grid()
        grid.BuildInit(bm)

        Dim gen As New Generator()
        Dim edges As List(Of Generator.Edge) = gen.Generate()

        For Each e As Generator.Edge In edges
            Dim x1 As Integer
            Dim y1 As Integer
            Dim z1 As Integer
            gen.UnIndex(e.node1, x1, y1, z1)

            Dim x2 As Integer
            Dim y2 As Integer
            Dim z2 As Integer
            gen.UnIndex(e.node2, x2, y2, z2)

            grid.LinkRooms(bm, x1, y1, z1, x2, y2, z2)
        Next

        ' Entrance Room
        grid.BuildRoom(bm, 2, 5, 2)
        grid.LinkRooms(bm, 2, 5, 2, 1, 5, 2)
        grid.LinkRooms(bm, 2, 5, 2, 3, 5, 2)
        grid.LinkRooms(bm, 2, 5, 2, 2, 5, 1)
        grid.LinkRooms(bm, 2, 5, 2, 2, 5, 3)
        grid.LinkRooms(bm, 2, 4, 2, 2, 5, 2)

        ' Exit Room
        grid.BuildRoom(bm, 2, -1, 2)
        grid.LinkRooms(bm, 2, -1, 2, 2, 0, 2)
        grid.AddPrize(bm, 2, -1, 2)

        Console.WriteLine("Relight Chunks")

        Dim cm As RegionChunkManager = world.GetChunkManager()
        cm.RelightDirtyChunks()

        world.Save()
    End Sub

    Class Grid
        Private originx As Integer
        Private originy As Integer
        Private originz As Integer

        Private xlen As Integer
        Private ylen As Integer
        Private zlen As Integer

        Private cellxlen As Integer
        Private cellylen As Integer
        Private cellzlen As Integer
        Private wallxwidth As Integer
        Private wallywidth As Integer
        Private wallzwidth As Integer

        Public Sub New()
            originx = 0
            originy = 27
            originz = 0

            xlen = 5
            ylen = 5
            zlen = 5

            cellxlen = 5
            cellylen = 5
            cellzlen = 5
            wallxwidth = 2
            wallywidth = 2
            wallzwidth = 2
        End Sub

        Public Sub BuildInit(bm As BlockManager)
            For xi As Integer = 0 To xlen - 1
                For yi As Integer = 0 To ylen - 1
                    For zi As Integer = 0 To zlen - 1
                        BuildRoom(bm, xi, yi, zi)
                    Next
                Next
            Next
        End Sub

        Public Sub BuildRoom(bm As BlockManager, x As Integer, y As Integer, z As Integer)
            Dim ox As Integer = originx + (cellxlen + wallxwidth) * x
            Dim oy As Integer = originy + (cellylen + wallywidth) * y
            Dim oz As Integer = originz + (cellzlen + wallzwidth) * z

            ' Hollow out room
            For xi As Integer = 0 To cellxlen - 1
                Dim xx As Integer = ox + wallxwidth + xi
                For zi As Integer = 0 To cellzlen - 1
                    Dim zz As Integer = oz + wallzwidth + zi
                    For yi As Integer = 0 To cellylen - 1
                        Dim yy As Integer = oy + wallywidth + yi
                        bm.SetID(xx, yy, zz, CInt(BlockType.AIR))
                    Next
                Next
            Next

            ' Build walls
            For xi As Integer = 0 To cellxlen + (2 * wallxwidth - 1)
                For zi As Integer = 0 To cellzlen + (2 * wallzwidth - 1)
                    For yi As Integer = 0 To wallywidth - 1
                        bm.SetID(ox + xi, oy + yi, oz + zi, CInt(BlockType.BEDROCK))
                        bm.SetID(ox + xi, oy + yi + cellylen + wallywidth, oz + zi, CInt(BlockType.BEDROCK))
                    Next
                Next
            Next

            For xi As Integer = 0 To cellxlen + (2 * wallxwidth - 1)
                For zi As Integer = 0 To wallzwidth - 1
                    For yi As Integer = 0 To cellylen + (2 * wallywidth - 1)
                        bm.SetID(ox + xi, oy + yi, oz + zi, CInt(BlockType.BEDROCK))
                        bm.SetID(ox + xi, oy + yi, oz + zi + cellzlen + wallzwidth, CInt(BlockType.BEDROCK))
                    Next
                Next
            Next

            For xi As Integer = 0 To wallxwidth - 1
                For zi As Integer = 0 To cellzlen + (2 * wallzwidth - 1)
                    For yi As Integer = 0 To cellylen + (2 * wallywidth - 1)
                        bm.SetID(ox + xi, oy + yi, oz + zi, CInt(BlockType.BEDROCK))
                        bm.SetID(ox + xi + cellxlen + wallxwidth, oy + yi, oz + zi, CInt(BlockType.BEDROCK))
                    Next
                Next
            Next

            ' Torchlight
            bm.SetID(ox + wallxwidth, oy + wallywidth + 2, oz + wallzwidth + 1, CInt(BlockType.TORCH))
            bm.SetID(ox + wallxwidth, oy + wallywidth + 2, oz + wallzwidth + cellzlen - 2, CInt(BlockType.TORCH))
            bm.SetID(ox + wallxwidth + cellxlen - 1, oy + wallywidth + 2, oz + wallzwidth + 1, CInt(BlockType.TORCH))
            bm.SetID(ox + wallxwidth + cellxlen - 1, oy + wallywidth + 2, oz + wallzwidth + cellzlen - 2, CInt(BlockType.TORCH))
            bm.SetID(ox + wallxwidth + 1, oy + wallywidth + 2, oz + wallzwidth, CInt(BlockType.TORCH))
            bm.SetID(ox + wallxwidth + cellxlen - 2, oy + wallywidth + 2, oz + wallzwidth, CInt(BlockType.TORCH))
            bm.SetID(ox + wallxwidth + 1, oy + wallywidth + 2, oz + wallzwidth + cellzlen - 1, CInt(BlockType.TORCH))
            bm.SetID(ox + wallxwidth + cellxlen - 2, oy + wallywidth + 2, oz + wallzwidth + cellzlen - 1, CInt(BlockType.TORCH))
        End Sub

        Public Sub LinkRooms(bm As BlockManager, x1 As Integer, y1 As Integer, z1 As Integer, x2 As Integer, y2 As Integer, z2 As Integer)
            Dim xx As Integer = originx + (cellxlen + wallxwidth) * x1
            Dim yy As Integer = originy + (cellylen + wallywidth) * y1
            Dim zz As Integer = originz + (cellzlen + wallzwidth) * z1

            If x1 <> x2 Then
                xx = originx + (cellxlen + wallxwidth) * Math.Max(x1, x2)
                For xi As Integer = 0 To wallxwidth - 1
                    Dim zc As Integer = zz + wallzwidth + (cellzlen \ 2)
                    Dim yb As Integer = yy + wallywidth
                    bm.SetID(xx + xi, yb, zc - 1, CInt(BlockType.AIR))
                    bm.SetID(xx + xi, yb, zc, CInt(BlockType.AIR))
                    bm.SetID(xx + xi, yb, zc + 1, CInt(BlockType.AIR))
                    bm.SetID(xx + xi, yb + 1, zc - 1, CInt(BlockType.AIR))
                    bm.SetID(xx + xi, yb + 1, zc, CInt(BlockType.AIR))
                    bm.SetID(xx + xi, yb + 1, zc + 1, CInt(BlockType.AIR))
                    bm.SetID(xx + xi, yb + 2, zc, CInt(BlockType.AIR))
                Next
            ElseIf z1 <> z2 Then
                zz = originz + (cellzlen + wallzwidth) * Math.Max(z1, z2)
                For zi As Integer = 0 To wallxwidth - 1
                    Dim xc As Integer = xx + wallxwidth + (cellxlen \ 2)
                    Dim yb As Integer = yy + wallywidth
                    bm.SetID(xc - 1, yb, zz + zi, CInt(BlockType.AIR))
                    bm.SetID(xc, yb, zz + zi, CInt(BlockType.AIR))
                    bm.SetID(xc + 1, yb, zz + zi, CInt(BlockType.AIR))
                    bm.SetID(xc - 1, yb + 1, zz + zi, CInt(BlockType.AIR))
                    bm.SetID(xc, yb + 1, zz + zi, CInt(BlockType.AIR))
                    bm.SetID(xc + 1, yb + 1, zz + zi, CInt(BlockType.AIR))
                    bm.SetID(xc, yb + 2, zz + zi, CInt(BlockType.AIR))
                Next
            ElseIf y1 <> y2 Then
                yy = originy + (cellylen + wallywidth) * Math.Max(y1, y2)
                For yi As Integer = 0 - cellylen + 1 To wallywidth
                    Dim xc As Integer = xx + wallxwidth + (cellxlen \ 2)
                    Dim zc As Integer = zz + wallzwidth + (cellzlen \ 2)

                    bm.SetID(xc, yy + yi, zc, CInt(BlockType.BEDROCK))
                    bm.SetID(xc - 1, yy + yi, zc, CInt(BlockType.LADDER))
                    bm.SetData(xc - 1, yy + yi, zc, 4)
                    bm.SetID(xc + 1, yy + yi, zc, CInt(BlockType.LADDER))
                    bm.SetData(xc + 1, yy + yi, zc, 5)
                    bm.SetID(xc, yy + yi, zc - 1, CInt(BlockType.LADDER))
                    bm.SetData(xc, yy + yi, zc - 1, 2)
                    bm.SetID(xc, yy + yi, zc + 1, CInt(BlockType.LADDER))
                    bm.SetData(xc, yy + yi, zc + 1, 3)
                Next
            End If
        End Sub

        Public Sub AddPrize(bm As BlockManager, x As Integer, y As Integer, z As Integer)
            Dim ox As Integer = originx + (cellxlen + wallxwidth) * x + wallxwidth
            Dim oy As Integer = originy + (cellylen + wallywidth) * y + wallywidth
            Dim oz As Integer = originz + (cellzlen + wallzwidth) * z + wallzwidth

            Dim rand As New Random()
            For xi As Integer = 0 To cellxlen - 1
                For zi As Integer = 0 To cellzlen - 1
                    If rand.NextDouble() < 0.1 Then
                        bm.SetID(ox + xi, oy, oz + zi, CInt(BlockType.DIAMOND_BLOCK))
                    End If
                Next
            Next
        End Sub
    End Class

    Class Generator
        Public Structure Edge
            Public node1 As Integer
            Public node2 As Integer

            Public Sub New(n1 As Integer, n2 As Integer)
                node1 = n1
                node2 = n2
            End Sub
        End Structure

        Private xlen As Integer
        Private ylen As Integer
        Private zlen As Integer

        Private _edges As List(Of Edge)
        Private _cells As Integer()

        Public Sub New()
            xlen = 5
            ylen = 5
            zlen = 5

            _edges = New List(Of Edge)()
            _cells = New Integer(xlen * zlen * ylen - 1) {}

            For x As Integer = 0 To xlen - 1
                For z As Integer = 0 To zlen - 1
                    For y As Integer = 0 To ylen - 1
                        Dim n1 As Integer = Index(x, y, z)
                        _cells(n1) = n1
                    Next
                Next
            Next

            For x As Integer = 0 To xlen - 2
                For z As Integer = 0 To zlen - 1
                    For y As Integer = 0 To ylen - 1
                        Dim n1 As Integer = Index(x, y, z)
                        Dim n2 As Integer = Index(x + 1, y, z)
                        _edges.Add(New Edge(n1, n2))
                    Next
                Next
            Next

            For x As Integer = 0 To xlen - 1
                For z As Integer = 0 To zlen - 2
                    For y As Integer = 0 To ylen - 1
                        Dim n1 As Integer = Index(x, y, z)
                        Dim n2 As Integer = Index(x, y, z + 1)
                        _edges.Add(New Edge(n1, n2))
                    Next
                Next
            Next

            For x As Integer = 0 To xlen - 1
                For z As Integer = 0 To zlen - 1
                    For y As Integer = 0 To ylen - 2
                        Dim n1 As Integer = Index(x, y, z)
                        Dim n2 As Integer = Index(x, y + 1, z)
                        _edges.Add(New Edge(n1, n2))
                    Next
                Next
            Next
        End Sub

        Public Function Generate() As List(Of Edge)
            Dim rand As New Random()

            Dim passages As New List(Of Edge)()

            ' Randomize edges
            Dim redges As New Queue(Of Edge)()
            While _edges.Count > 0
                Dim index As Integer = rand.[Next](_edges.Count)
                Dim e As Edge = _edges(index)
                _edges.RemoveAt(index)
                redges.Enqueue(e)
            End While

            While redges.Count > 0
                Dim e As Edge = redges.Dequeue()

                If _cells(e.node1) = _cells(e.node2) Then
                    Continue While
                End If

                passages.Add(e)

                Dim n1 As Integer = _cells(e.node2)
                Dim n2 As Integer = _cells(e.node1)
                For i As Integer = 0 To _cells.Length - 1
                    If _cells(i) = n2 Then
                        _cells(i) = n1
                    End If
                Next
            End While

            Return passages
        End Function

        Public Function Index(x As Integer, y As Integer, z As Integer) As Integer
            Return (x * zlen + z) * ylen + y
        End Function

        Public Sub UnIndex(index As Integer, ByRef x As Integer, ByRef y As Integer, ByRef z As Integer)
            x = index \ (zlen * ylen)
            Dim xstr As Integer = index - (x * zlen * ylen)
            z = xstr \ ylen
            Dim ystr As Integer = xstr - (z * ylen)
            y = ystr
        End Sub
    End Class

End Module


text:
NS_ASSUME_NONNULL_BEGIN

@interface OBAReportProblemWithRecentTripsViewController : OBAStaticTableViewController
- (instancetype)initWithStopID:(NSString*)stopID;
@end

NS_ASSUME_NONNULL_END


text:
package data

import (
	"errors"

	pb "rsprd.com/spread/pkg/spreadproto"
)

// NewLink creates a new link from with the given details.
func NewLink(packageName string, target *SRI, override bool) *pb.Link {
	return &pb.Link{
		PackageName: packageName,
		Target:      target.Proto(),
		Override:    override,
	}
}

// CreateLinkInDocument creates a link from source to target with document.
func CreateLinkInDocument(doc *pb.Document, target *pb.Link, source *SRI) error {
	if !source.IsField() {
		return errors.New("passed SRI is not a field")
	}

	field, err := GetFieldFromDocument(doc, source.Field)
	if err != nil {
		return err
	}

	field.Value = &pb.Field_Link{
		Link: target,
	}
	return nil
}


text:
= Hello World VoltDB Example in Ruby

This is the hello world example in Ruby using VoltRb. The hello world database included in the installation directory of VoltDB should be running.

Then in the command line, type:

  % ruby helloworld.rb


text:
module.exports = {
  'Deletes a database with special chars': function (client) {
    var waitTime = client.globals.maxWaitTime,
        newDatabaseName = 'one/two-three/_four', // add any other chars here you want to test
        baseUrl = client.globals.test_settings.launch_url;

    client
      .createDatabase(newDatabaseName)
      .loginToGUI()
      .url(baseUrl + '/#/database/' + encodeURIComponent(newDatabaseName) + '/_all_docs')
      .waitForElementPresent('#header-dropdown-menu a.dropdown-toggle.icon.fonticon-vertical-ellipsis', waitTime, false)
      .clickWhenVisible("#header-dropdown-menu a.dropdown-toggle.icon.fonticon-vertical-ellipsis", waitTime, false)
      .waitForElementPresent('#header-dropdown-menu .fonticon-trash', waitTime, false)
      .clickWhenVisible('#header-dropdown-menu .fonticon-trash', waitTime, false)
      .waitForElementVisible('.delete-db-modal', waitTime, false)
      .clickWhenVisible('.delete-db-modal input[type="text"]', waitTime, false)
      .setValue('.delete-db-modal input[type="text"]', [newDatabaseName, client.Keys.ENTER])

      .checkForDatabaseDeleted(newDatabaseName, waitTime)

    .end();
  }
};


text:
/* global angular */
/* eslint no-param-reassign: 0 */
let Mock = require('../mock');

module.exports = class extends Mock {

  /**
   * Returns a mocked version of the given callback broadcasting the callback through
   * the AngularJS event broadcasting mechanism.
   *
   * @param {function} originalCallback
   * @param {string} callbackName
   * @param {string} methodName
   * @param {string} instanceName
   * @param {string} methodArguments: the arguments of the method that setup the callback
   * @return {Function} mocked callback function broadcasting angular events on the rootScope
   */

  generateMockedVersionOfCallback(originalCallback, callbackName, methodName, instanceName, methodArguments) {
    let $rootScope = this.$rootScope;
    let service = this.service;
    const channelName = methodArguments.channel || methodArguments.channel_group;

    return function () {
      // Broadcast through the generic event name
      $rootScope.$broadcast.bind(...[$rootScope, service.getEventNameFor(methodName, callbackName, instanceName)]
                                    .concat(Array.prototype.slice.call(arguments))
                                )();

        // Call the original callback
      if (callbackName && angular.isFunction(originalCallback)) {
        originalCallback(...arguments);
      }

        // Broadcast through the message event or presence event
      if (methodName === 'subscribe') {
        switch (callbackName) {
          case 'callback':
            $rootScope.$broadcast.bind(...[$rootScope, service.getMessageEventNameFor(channelName, instanceName)]
                                          .concat(Array.prototype.slice.call(arguments))
                                      )();
            break;
          case 'presence':
            $rootScope.$broadcast.bind(...[$rootScope, service.getPresenceEventNameFor(channelName, instanceName)]
                                          .concat(Array.prototype.slice.call(arguments))
                                       )();
            break;
          default:
            break;
        }
      }
    };
  }

  /**
   * Mock passed in callbacks with callback-wrappers to invoke both original callbacks and angular events
   *
   * This method is replacing from the list of arguments {{args}} the callbacks functions
   * allowed and enabled to be mocked provided by the {{callbackList}} by new callbacks functions
   * including the Angular event broadcasting
   *
   * @param {string} instanceName
   * @param {string} methodName
   * @param {Object} methodArguments : argument list of the function
   * @param {Array} callbacksList : list of callbacks functions to be mocked
   */
  mockCallbacks(instanceName, methodName, methodArguments, callbacksList) {
    let originalCallback;
    let currentCallbackName;

    let l = callbacksList.length;
    let i;

    // Replace each callbacks allowed to be mocked.
    for (i = 0; i < l; i += 1) {
      if (!angular.isObject(methodArguments)) {
        return;
      }

      currentCallbackName = callbacksList[i];
      originalCallback = methodArguments[currentCallbackName];

      // We replace the original callback with a mocked version.
      methodArguments[currentCallbackName] = this.generateMockedVersionOfCallback(originalCallback, currentCallbackName, methodName, instanceName, methodArguments);
    }
  }

};


text:
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}

--
-- Safe.hs --- Checked binary packing/unpacking.
--
-- Copyright (C) 2015, Galois, Inc.
-- All Rights Reserved.
--

module Ivory.Serialize.Safe.LittleEndian where

import Ivory.Language
import Ivory.Serialize.Atoms
import Ivory.Serialize.PackRep

packInto :: (Packable a, ANat len)
         => Ref s1 ('Array len ('Stored Uint8)) -- ^ buf
         -> Uint32 -- ^ offset
         -> ConstRef s2 a -- ^ value
         -> Ivory ('Effects r b ('Scope s3)) ()
packInto = packInto' packRep

packInto' :: ANat len
          => PackRep a -- ^ encoding
          -> Ref s1 ('Array len ('Stored Uint8)) -- ^ buf
          -> Uint32 -- ^ offset
          -> ConstRef s2 a -- ^ value
          -> Ivory ('Effects r b ('Scope s3)) ()
packInto' rep buf offs val = do
  assert $ offs + fromIntegral (packSize rep) <=? arrayLen buf
  packSetLE rep (toCArray buf) offs val

packVInto :: (Packable ('Stored a), ANat len, IvoryInit a)
          => Ref s1 ('Array len ('Stored Uint8)) -- ^ buf
          -> Uint32 -- ^ offset
          -> a -- ^ value
          -> Ivory ('Effects r b ('Scope s2)) ()
packVInto = packVInto' packRep

packVInto' :: (ANat len, IvoryInit a)
           => PackRep ('Stored a) -- ^ encoding
           -> Ref s1 ('Array len ('Stored Uint8)) -- ^ buf
           -> Uint32 -- ^ offset
           -> a -- ^ value
           -> Ivory ('Effects r b ('Scope s2)) ()
packVInto' rep buf offs val = do
  tmp <- local $ ival val
  packInto' rep buf offs (constRef tmp)

unpackFrom :: (Packable a, ANat len)
           => ConstRef s1 ('Array len ('Stored Uint8)) -- ^ buf
           -> Uint32 -- ^ offset
           -> Ref s2 a -- ^ value
           -> Ivory ('Effects r b ('Scope s3)) ()
unpackFrom = unpackFrom' packRep

unpackFrom' :: ANat len
            => PackRep a -- ^ encoding
            -> ConstRef s1 ('Array len ('Stored Uint8)) -- ^ buf
            -> Uint32 -- ^ offset
            -> Ref s2 a -- ^ value
            -> Ivory ('Effects r b ('Scope s3)) ()
unpackFrom' rep buf offs val = do
  assert $ offs + fromIntegral (packSize rep) <=? arrayLen buf
  packGetLE rep (toCArray buf) offs val

unpackVFrom :: (Packable ('Stored a), ANat len, IvoryStore a, IvoryZeroVal a)
            => ConstRef s1 ('Array len ('Stored Uint8)) -- ^ buf
            -> Uint32 -- ^ offset
            -> Ivory ('Effects r b ('Scope s2)) a
unpackVFrom = unpackVFrom' packRep

unpackVFrom' :: (Packable ('Stored a), ANat len, IvoryStore a, IvoryZeroVal a)
             => PackRep ('Stored a)
             -> ConstRef s1 ('Array len ('Stored Uint8)) -- ^ buf
             -> Uint32 -- ^ offset
             -> Ivory ('Effects r b ('Scope s2)) a
unpackVFrom' rep buf offs = do
  tmp <- local izero
  unpackFrom' rep buf offs tmp
  deref tmp


text:
@interface MOBProjectionEPSG32126 : MOBProjection

@end


text:
#include "TunnelLoop.h"
#include "../Utils/Data/DataProvider.h"
#include "../Utils/Data/Logger.h"
#include "../VideoScene/VideoScene.h"
#include "../WatchmanScene/WatchmanScene.h"

cocos2d::Scene* (*TunnelLoop::NEXT_SCENE_CREATE_SCENE)() = nullptr;

const bool TunnelLoop::ENABLE_TOUCH = true;								// Used to disable tutorial on first touch and manage general touch events
const string TunnelLoop::PATH = "TunnelLoop/";								// Resources' subfolder path for this game

Scene* TunnelLoop::createScene() {

	CCLOG("TunnelLoop - createScene");

	// 'scene' is an autorelease object
	Scene* scene = Scene::create();

	// 'layer' is an autorelease object
	auto layer = TunnelLoop::create();

	// add layer as a child to scene
	scene->addChild(layer);

	// return the scene
	return scene;

}

TunnelLoop::~TunnelLoop() {

	CCLOG("~TunnelLoop");

	// Delete objects created with new
	//this->unscheduleUpdate();
	delete sema;
    delete bg;

}

bool TunnelLoop::init() {

	CCLOG("TunnelLoop - init");

	if (!Layer::init())
	{
		return false;
	}

	rootNode = CSLoader::createNode(PATH + "MainScene.csb");

	rootNode->setAnchorPoint(Point(0.5, 0.5));
	rootNode->setPosition(Point(_director->getWinSize().width / 2, _director->getWinSize().height / 2));
	addChild(rootNode);

	startGame();

	return true;

}

void TunnelLoop::startGame() {

	CCLOG("TunnelLoop - startGame");

	Logger::getInstance()->logEvent("TunnelTransition", Logger::OPEN, "");

	initVariables();
	initAudio();
	initGameObjects();
	fadeIn();

	// this->scheduleUpdate();
}

void TunnelLoop::initVariables() {

	dataProvider = DataProvider::getInstance();

}

void TunnelLoop::initAudio() {

	//CCLOG("TunnelLoop - Init audio");

	simpleAudioEngine = SimpleAudioEngine::getInstance();

	// Preload audio files
	//simpleAudioEngine->preloadEffect("TunnelLoop/audio/backhome.mp3");
	simpleAudioEngine->playBackgroundMusic("TunnelLoop/audio/loop.mp3", true);

}

void TunnelLoop::initGameObjects() {

    auto frameSize =  rootNode->getBoundingBox().size;
    //bg = new GameObject(*rootNode, Vec2(frameSize.width / 2, frameSize.height / 2), "WatchmanScene/CSD/Passaggio.csb");
    bg = new GameObject(*rootNode, Vec2(frameSize.width / 2, frameSize.height / 2), "TunnelLoop/Passaggio.csb");

    bg->play("passaggio_loop", [=]() {
        closePage();
        bg->clearLastFrameCallFunc();
    });

	sema = new GameObject(*rootNode, Vec2(640.0f, 200.0f), "WatchmanScene/CSD/Sema_front.csb");

}

void TunnelLoop::fadeIn() {

	sema->play("Sema_Vola", nullptr, true);

	/*
	CallFunc *runCallback_end = CallFunc::create(CC_CALLBACK_0(TunnelLoop::closePage, this));
    if ( WatchmanScene::TEST_ENABLED ) {
        this->runAction(Sequence::create(DelayTime::create(3.0), runCallback_end, nullptr));
    } else {
        this->runAction(Sequence::create(DelayTime::create(3.0), runCallback_end, nullptr));
    }
	*/

}

void TunnelLoop::closePage(){
    Logger::getInstance()->logEvent("TunnelTransition", Logger::CLOSE, "");
    assert(NEXT_SCENE_CREATE_SCENE != nullptr);
    simpleAudioEngine->stopBackgroundMusic();
    Director::getInstance()->replaceScene(TransitionFade::create(0.7, NEXT_SCENE_CREATE_SCENE(), Color3B(255, 255, 255)));

    NEXT_SCENE_CREATE_SCENE = nullptr;

}


text:
<?php

// make 100% sure this is the same TZ mysql is set to, or there will be untold grief
// and the lamentations of thousands

define('COUNTRY_ID_USA', 840);
define('COUNTRY_ID_UK', 826);

class config {
	static $db_charset = 'utf8'; // set this to utf8mb4 if you have utf8mb4 columns in the db and want _actual_ utf8 from mysql
	static $timezone = 'America/New_York';
	static $admin_user = 'admin';
	static $admin_pass = 'admin';
	static $tempdir = '/tmp/';

	static $date_formats = array(
		'default' => '%B %e, %Y at %I:%M %p'
	);

	static $serverid = 0;
	static $whoami = 'stk';
	static $instance_type = 'prod';

	static $dbck = array(
		'ro' => 'default',
		'rw' => 'default',
	);

	static $switch_to_rw_db_after_write = false;

	// database configuration
	static $db = array(
		'default' => array(
			'host' => 'localhost',
			'port' => 0,
			'user' => 'root', # when this is empty(), a username is generated from config::$whoami.config::$serverid
			'pass' => '',
			'db' => 'stk',
		),
		'maintenance' => array(
			'host' => 'localhost',
			'port' => 0,
			'user' => 'root', # when this is empty(), a username is generated from config::$whoami.config::$serverid
			'pass' => '',
			'db' => 'stk',
		),
	);
	static $do_transactions = false;

	static $locale = 'en_US.UTF-8';

	static $baseurl = 'http://localhost/';
	static $static_baseurls = false;

	static $do_image_stat = false;

	// THESE PATHS MUST BE / TERMINATED
	// root inside rootdir for route()-ing, these can be reached from urls
	static $sitedir = 'www/';
	// error dir inside rootdir
	static $errordir = 'errors/';
	// if false, the site will try to re-route an error through the dyn_routes
	static $route_error_status = false;
	// webroot for link generation or whatever
	static $webroot = '/';
	// dir for static content
	static $static_dir = 'static/';
	// fcache dir
	static $fcache_dir = '/tmp/fc/';
	// route cache file
	static $route_cache_path = false;
	// class to load for the stash() of this site
	static $stash_class = 'site_stash';
	// class to load for the session
	static $session_class = 'site_session';
	// default template engine
	static $default_tmpl_type = 'smarty';
	// smarty config
	static $smarty = array(
	);
	// files to inc() before anything serious happens
	static $inc = array(
		'cache-none',
		'site_stash',
		'site_session',
		'acl',
		'input-validation',
		'userlib',
		'util',
		'OAuth',
		'facebook',
	); // load anything you need early (such as the stash class)
	static $disable_mailer = false;
	static $mail_from = 'info@localhost';
	static $mail_backend = 'smtp';//amazon_ses';
	static $mail_backend_params = array(
		'info@localhost'=>array(
		),
	);
	static $mail_bccs = array(
	);

	static $aws_key = '';
	static $aws_secret = '';

	static $img_stores = array(
		'facebook' => array(
			'sizes' => array(
				'user' => array(
					'micro' => 'square',
					'thumb' => 'large',
					'original' => 'large',
				),
			),
		),
		'twitter' => array(
			'sizes' => array(
				'user' => array(
					'micro'=>array(48,48), // normal size, also has bigger size 73x73
				),
			),
		),

		'temp' => array(
			'dir' => '/tmp/',
			'prefix' => 'tempimage-',
		),

		'static' => array(),

		'local' => array(
			'path' => 'files/',
			'hash_len' => 4,
			'sizes' => array(
				// size => array(x, y, should_crop = false)
				'user' => array(
					'thumb' => array(160, 140, true),
					'micro' => array(50, 50, true),
					'featured' => array(150,35,false,array('ondemand'=>true)),
				),
			),
		),
	);

	static $msg_headers = array(
		0 => 'Failure! %s',
		1 => 'Success! %s',
	);

	static $delete_time_limit = 900; // 15 minutes (this is how long the user may delete his own stuff)

	static $bitly = array(
		'login' => '',
		'api_key' => '',
	);
	static $default_session_lifetime = 86400;
	static $persistent_session_lifetime = 2592000; // 30 days

	static $gdata = array(
		'user' => '',
		'pass' => '',
	);
	static $min_pass_length = 6;

	static $norobots = false; // ban the robots
	static $static_files_revision_postfix = '1';
	static $static_rev_via_rewrite = true;
	static $host = 'localhost';
	static $cookie_domain = '.localhost';

	static $oauth_services = array(
		'facebook' => array(
			'version' => 2,
			'login_service' => true,
			'register_redirect' => '',
			'login_redirect' => '',
			'key' => '',
			'secret' => '',
			'url_authorize' => 'https://www.facebook.com/dialog/oauth',
			'url_authorize_param' => array(),
			'url_access_token' => 'https://graph.facebook.com/oauth/access_token',
			'permissions' => array(
				'email',
				'user_birthday',
			),
		),
	);

	static $oauth_get_access_token_max_retry_count = 2;

	static $output_filters = array(
	);

	static $db_debug_mode = false;

	static $cli_error_log_file = '/var/log/stk.log';

	static $dyn_routes = array(
	);

	static $message_timeout_ms = 5000;

	static $message_admins_with_debug = false;

	static $session_cookie_name = 'STKSESSID';

	// stomp data
	static $stomp_server_addr = 'tcp://localhost:61613';
	static $stomp_user = 'guest';
	static $stomp_pw = 'guest';
	static $stomp_worker_time = 600;
	static $stomp_max_runs = 300;

	static $cloudfront_api_user = '';
	static $cloudfront_api_secret = '';
	static $cloudfront_distribution_id = '';

        static $cache_kinds = [
                'static' => [
                        'cached_methods' => ['GET', 'HEAD'],
                        'allowed_methods' => ['HEAD', 'GET'],
                        'ttl' => 7200,
                        'headers' => ['Host'],
                        'cookies' => false,
                        'query_string' => false,
                ],
                'static_s3' => [
                        'cached_methods' => ['GET', 'HEAD'],
                        'allowed_methods' => ['HEAD', 'GET'],
                        'ttl' => 7200,
                        'headers' => [],
                        'cookies' => false,
                        'query_string' => false,
                ],
                'cached_dynamic' => [
                        'cached_methods' => ['GET', 'HEAD'],
                        'allowed_methods' => ['HEAD', 'DELETE', 'POST', 'GET', 'OPTIONS', 'PUT', 'PATCH'],
                        'ttl' => 600,
                        'headers' => ['Host', 'Authorization', 'Origin', 'Referer'],
                        'cookies' => true,
                        'query_string' => true,
                ],
                'uncached' => [
                        'cached_methods' => ['GET', 'HEAD'], // FUCF
                        'allowed_methods' => ['HEAD', 'DELETE', 'POST', 'GET', 'OPTIONS', 'PUT', 'PATCH'],
                        'ttl' => 0,
                        'headers' => ['Host', 'Authorization', 'Origin', 'Referer'],
                        'cookies' => true,
                        'query_string' => true,
                ],
        ];

        static $cache_default_kind = 'cached_dynamic';
        static $cache_paths = [
                'static*' => 'static',
                'admin/*' => 'uncached',
        ];

		static $img_s3_id = '';
		static $img_s3_secret = '';
		static $img_s3_bucket = '';
		static $img_s3_prefix = '';
}

// make sure that if this file exists, you dont add it to bzr.
//  it's for checkout-local configuration
if (file_exists('cfg/localcfg.php')) {
	include 'localcfg.php';
}

date_default_timezone_set(config::$timezone);


text:
module Ruby
  module Extensions
    VERSION = "0.1.0"
  end
end


text:
var fs = require('fs');
var path = require('path');
var async = require('async');
var printf = require('printf');
var image = require('./image');

var USE_NEW_NAME = false;
var NEW_NAME_REGEX  = '_twitterimage_%05d.jpg';
var NEW_NAME_COUNTER = 0; // start number of each converted image

var WIDTH = 256;
var HEIGHT = 256;

// var sourcefolder = '/Users/sam/Documents/lode_images/';
var sourcefolder = '/Users/sam/Dropbox/MiX/kerstkaart2013/';
var outputfolder = './raw_images/';

fs.readdir(sourcefolder, function (err, files) {
	if(err) return console.log(err);

	async.eachLimit(files, 10, function (file, $){

		var absoluteFile = path.join( sourcefolder, file );
		if(!file.match(/.jpg$|.png$/)) return $(); // only allow those file extensions

		var absoluteOutputfile;

		if(USE_NEW_NAME){
			var outputfile = printf(NEW_NAME_REGEX, NEW_NAME_COUNTER++);
			absoluteOutputfile = path.join(outputfolder, outputfile);
		}else{
			absoluteOutputfile =  path.join(outputfolder, file);
		}

		console.log(absoluteOutputfile);

		image.crop(absoluteFile, WIDTH, HEIGHT, absoluteOutputfile, $);
	}, function (err) {
		if(err) return console.log(err);
		return console.log("> DONE");
	});
});


text:
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif

#import "EditModeUITextView.h"
#import <QuartzCore/QuartzCore.h>

@implementation EditModeUITextView

- (void)setMode:(TextViewMode)mode {
  _mode = mode;

  // Reset the border color based on the edit mode
  CALayer *viewLayer = [self layer];
  if (self.mode == kTextViewModeEdit) {
    [viewLayer setBorderColor:[[UIColor grayColor] CGColor]];
  } else {
    [viewLayer setBorderColor:[[UIColor blueColor] CGColor]];
    self.text = nil; // Reset text field to nothing in insert mode
  }

  [self setFont:[UIFont systemFontOfSize:17.0]];

  [self setReturnKeyType:UIReturnKeySend];

  [[self layer] setBorderWidth:2.5];
  [[self layer] setCornerRadius:0];
  [self setContentInset:UIEdgeInsetsMake(5, 5, 5, 5)];
}

- (void)show {
  [[self superview] setUserInteractionEnabled:NO];
  [self becomeFirstResponder];
}

- (void)hide {
  [self resignFirstResponder];
  [[self superview] setUserInteractionEnabled:YES];
  [self removeFromSuperview];

}

@end


text:
using System;

namespace Consolas.Core
{
    public class CommandType
    {
        public Type Command { get; set; }
        public Type Args { get; set; }
    }
}


text: })( this.jQuery, this, this.document );


text:
@implementation DYNewsImageCellModel

- (NSString *)cellIdentifier
{
    return [DYNewListImageCell nibId];
}
@end


text:
<!DOCTYPE HTML>

		<title>完成注册 | LogInsight</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<link href="/static/css/bootstrap.css" rel='stylesheet' type='text/css' />

		<link href="/static/css/style.css" rel='stylesheet' type='text/css' />

恭喜你!完成注册

 s后跳转至登陆界面

点击登陆


text:
import React, { Component, PropTypes } from 'react';

import ListItem from 'material-ui/lib/lists/list-item';
import { grey100 } from 'material-ui/lib/styles/colors';

const StepItem = (props) => {

  const { selected, cbTouchTap, index, primaryText } = props;

  const grey = "lightgrey"
  const black = "black"

  const style = {
    listItem: {
      fontSize: "1.4em",
      lineHeight: "1em",
      borderBottom: "1px solid lightgrey",
      backgroundColor: selected ? grey100 : null
    }
  }

  return (
    <ListItem style={style.listItem}
              onTouchTap={cbTouchTap.bind(this, index)}
              primaryText={primaryText} />
  );

}

export default StepItem


text:
module PE0024 where

import Data.List (permutations, sort)
import Data.ByteString.Char8 (pack, unpack)
import Data.ByteString.Internal (ByteString)

charPermutations :: [[Char]]
charPermutations = permutations "0123456789"

sortedPermutations :: [Data.ByteString.Internal.ByteString]
sortedPermutations = sort $ map pack charPermutations

main :: IO ()
main = do
  putStrLn $ unpack $ sortedPermutations !! 999999


text:
java -Xmx32m -version
sdkmanager --list
./create-avd.sh
avdmanager list avd
emulator-check accel hyper-v cpu-info window-mgr desktop-env
adb kill-server
./start-emulator.sh &
adb start-server
./wait-for-boot-completed
adb devices -l
adb shell pm dump com.google.android.gms | grep version
sleep 2
adb emu kill


text:
package com.zxq.activity;

import org.jivesoftware.smackx.vcardtemp.packet.VCard;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.zxq.service.XmppService;
import com.zxq.util.LogUtil;
import com.zxq.util.ToastUtil;
import com.zxq.util.VCardConstants;
import com.zxq.vo.PersonEntityInfo;
import com.zxq.xmpp.R;

/**
 * Created by zxq on 2014/9/16.
 */
public class EditPersonInfoActivity extends Activity {
    private ImageView actionBarBack;
    private TextView acitonBarTitle;

    private EditText inputName;
    private EditText inputSignature;
    private EditText inputQQ;
    private EditText inputPhone;
    private EditText inputEmail;
    private Button btnSaveInfo;

    private PersonEntityInfo personEntityInfo;
    private XmppService mXmppService;

    ServiceConnection mServiceConnection = new ServiceConnection() {

        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
            mXmppService = ((XmppService.XXBinder) service).getService();
            setupData();
        }

        @Override
        public void onServiceDisconnected(ComponentName name) {
            mXmppService = null;
        }
    };

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_edit_person_info);
        initView();
    }

    private void setupData() {
        VCard myInfo = mXmppService.getMyInfo();
        personEntityInfo = new PersonEntityInfo();
        personEntityInfo.setName(myInfo.getField(VCardConstants.KEY_NIKENAME));
        personEntityInfo.setSignature(myInfo.getField(VCardConstants.KEY_SIGNATURE));
        personEntityInfo.setQq(myInfo.getField(VCardConstants.KEY_QQ));
        personEntityInfo.setPhone(myInfo.getField(VCardConstants.KEY_PHONE));
        personEntityInfo.setEmail(myInfo.getField(VCardConstants.KEY_EMAIL));
        inputName.setText(personEntityInfo.getName());
        inputSignature.setText(personEntityInfo.getSignature());
        inputQQ.setText(personEntityInfo.getQq());
        inputPhone.setText(personEntityInfo.getPhone());
        inputEmail.setText(personEntityInfo.getEmail());
        btnSaveInfo.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                boolean ok = mXmppService.saveMyInfo(inputName.getText().toString(),inputSignature.getText().toString(),inputQQ.getText().toString(),inputPhone.getText().toString(),inputEmail.getText().toString());
                if (ok == true){
                    ToastUtil.showShort(EditPersonInfoActivity.this,"修改成功!");
                }else{
                    ToastUtil.showShort(EditPersonInfoActivity.this,"修改失败!");
                }
            }
        });
    }

    private void initView() {
        actionBarBack = (ImageView) findViewById(R.id.actionbar_back);
        acitonBarTitle = (TextView) findViewById(R.id.actionbar_title);
        inputName = (EditText) findViewById(R.id.edit_person_info_text_name);
        inputSignature = (EditText) findViewById(R.id.edit_person_info_text_signature);
        inputQQ = (EditText) findViewById(R.id.edit_person_info_text_qq);
        inputPhone = (EditText) findViewById(R.id.edit_person_info_text_phone);
        inputEmail = (EditText) findViewById(R.id.edit_person_info_text_email);
        btnSaveInfo = (Button) findViewById(R.id.edit_person_info_btn_save_info);
        acitonBarTitle.setText("修改用户信息");
        actionBarBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                EditPersonInfoActivity.this.finish();
            }
        });
    }

    @Override
    protected void onResume() {
        super.onResume();
        bindXMPPService();

    }

    @Override
    protected void onPause() {
        super.onPause();
        unbindXMPPService();
    }

    private void bindXMPPService() {
        LogUtil.i(RegisterActivity.class, "[SERVICE] Unbind");
        Intent mServiceIntent = new Intent(this, XmppService.class);
        bindService(mServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE + Context.BIND_DEBUG_UNBIND);
    }

    private void unbindXMPPService() {
        try {
            unbindService(mServiceConnection);
            LogUtil.i(RegisterActivity.class, "[SERVICE] Unbind");
        } catch (IllegalArgumentException e) {
            LogUtil.e(RegisterActivity.class, "Service wasn't bound!");
        }
    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}


text:
"""
Module defining global singleton classes.

This module raises a RuntimeError if an attempt to reload it is made. In that
way the identities of the classes defined here are fixed and will remain so
even if numpy itself is reloaded. In particular, a function like the following
will still work correctly after numpy is reloaded::

    def foo(arg=np._NoValue):
        if arg is np._NoValue:
            ...

That was not the case when the singleton classes were defined in the numpy
``__init__.py`` file. See gh-7844 for a discussion of the reload problem that
motivated this module.

"""
from __future__ import division, absolute_import, print_function

__ALL__ = [
    'ModuleDeprecationWarning', 'VisibleDeprecationWarning', '_NoValue'
    ]

# Disallow reloading this module so as to preserve the identities of the
# classes defined here.
if '_is_loaded' in globals():
    raise RuntimeError('Reloading numpy._globals is not allowed')
_is_loaded = True

class ModuleDeprecationWarning(DeprecationWarning):
    """Module deprecation warning.

    The nose tester turns ordinary Deprecation warnings into test failures.
    That makes it hard to deprecate whole modules, because they get
    imported by default. So this is a special Deprecation warning that the
    nose tester will let pass without making tests fail.

    """

ModuleDeprecationWarning.__module__ = 'numpy'

class VisibleDeprecationWarning(UserWarning):
    """Visible deprecation warning.

    By default, python will not show deprecation warnings, so this class
    can be used when a very visible warning is helpful, for example because
    the usage is most likely a user bug.

    """

VisibleDeprecationWarning.__module__ = 'numpy'

class _NoValueType(object):
    """Special keyword value.

    The instance of this class may be used as the default value assigned to a
    deprecated keyword in order to check if it has been given a user defined
    value.
    """
    __instance = None
    def __new__(cls):
        # ensure that only one instance exists
        if not cls.__instance:
            cls.__instance = super(_NoValueType, cls).__new__(cls)
        return cls.__instance

    # needed for python 2 to preserve identity through a pickle
    def __reduce__(self):
        return (self.__class__, ())

    def __repr__(self):
        return "<no value>"

_NoValue = _NoValueType()


text:
package org.scassandra.http.client;

import nl.jqno.equalsverifier.EqualsVerifier;
import org.junit.Test;

public class BatchExecutionTest {
    @Test
    public void testEquals() throws Exception {
        EqualsVerifier.forClass(BatchExecution.class)
                .allFieldsShouldBeUsed()
                .verify();
    }
}