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

<title>Serialized Form (xmlserializer4j 1.0 API)</title>
<meta name="date" content="2016-05-29">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Serialized Form

Package org.xmlserializer4j

Class org.xmlserializer4j.XMLSerializeException extends java.io.IOException implements Serializable

serialVersionUID:

6308471564646143352L

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes


text:
package unquietcode.tools.esm;

import unquietcode.tools.esm.sequences.Pattern;
import unquietcode.tools.esm.sequences.PatternBuilder;
import unquietcode.tools.esm.sequences.SequenceHandler;

import java.util.List;

/**
 * @author Ben Fagin
 * @version 2013-07-07
 */
public interface ProgrammableStateMachine<T> {

	/**
	 * Will not reset, just sets the initial state.
	 *
	 * @param state initial state to be set after next reset
	 */
	void setInitialState(T state);

	/**
	 * Adds a callback which will be executed whenever any state
	 * is entered.
	 */
	HandlerRegistration onEntering(StateHandler<T> callback);

	/**
	 * Adds a callback which will be executed whenever the specified state
	 * is entered, via any transition.
	 */
	HandlerRegistration onEntering(T state, StateHandler<T> callback);

	/**
	 * Adds a callback which will be executed whenever any state
	 * is exited.
	 */
	HandlerRegistration onExiting(StateHandler<T> callback);

	/**
	 * Adds a callback which will be executed whenever the specified state
	 * is exited, via any transition.
	 */
	HandlerRegistration onExiting(T state, StateHandler<T> callback);

	/**
	 * Adds a callback which will be executed whenever any state
	 * transitions to another state.
	 */
	HandlerRegistration onTransition(TransitionHandler<T> callback);

	/**
	 * Adds a callback which will be executed whenever the specified state
	 * is exited, via any transition.
	 */
	HandlerRegistration onTransition(T from, T to, TransitionHandler<T> callback);

	/**
	 * Adds a callback which will be executed whenever the specified sequence
	 * of states has been traversed.
	 *
	 * @param pattern to match
	 * @param handler to handle the match
	 * @return registration to assist in removing the handler
	 */
	default HandlerRegistration onSequence(List<T> pattern, SequenceHandler<T> handler) {
		Pattern<T> pattern_ = PatternBuilder.createFrom(pattern);
		return onSequence(pattern_, handler);
	}

	HandlerRegistration onSequence(Pattern<T> pattern, SequenceHandler<T> handler);

	/*
		Adds a transition from one state to another.
	 */
	boolean addTransition(T fromState, T toState);

	/**
	 * Add a transition between one and one-or-more states.
	 *
	 * @param fromState the initial state
	 * @param toStates one or more states to move to
	 */
	boolean addTransitions(T fromState, T...toStates);

	/*
		Adds a transition from one state to one-or-many states.
    */
	boolean addTransitions(T fromState, List<T> toStates);

	/*
		Adds a transition from one state to another, and adds a callback.
	 */
	boolean addTransition(T fromState, T toState, TransitionHandler<T> callback);

	/*
	    Add a transition between one and one-or-more states, and
	    provide a callback to execute.
	 */
	boolean addTransitions(TransitionHandler<T> callback, T fromState, T...toStates);

	/**
	 * Add a transition from one state to 0..n other states. The callback
	 * will be executed as the transition is occurring. If the state machine
	 * is modified during this operation, it will be reset. Adding a new
	 * callback to an existing transition will not be perceived as modification.
	 *
	 * @param callback callback, can be null
	 * @param fromState state moving from
	 * @param toStates states moving to
	 * @return true if the state machine was modified and a reset occurred, false otherwise
	 */
	boolean addTransitions(T fromState, List<T> toStates, TransitionHandler<T> callback);

	/**
	 * For every state in the list, create a transition to every other
	 * state. If the includeSelf parameter is true, then each state will
	 * also have a transition added which loops back to itself.
	 *
	 * @param states to add
	 * @param includeSelf if we should add loops as well
	 */
	void addAllTransitions(List<T> states, boolean includeSelf);

	/**
	 * Removes the set of transitions from the given state.
	 * When the state machine is modified, this method will
	 * return true and the state machine will be reset.
	 *
	 * @param fromState from state
	 * @param toStates to states
	 * @return true if the transitions were modified, false otherwise
	 */
	boolean removeTransitions(T fromState, T...toStates);

	boolean removeTransitions(T fromState, List<T> toStates);
}

redpajama_set_name: RedPajamaGithub


text:
create type Enseignant_Type;
/

--create type Professionnel
create type Professionnel_Type as object (
  Num_P number,
  Nom_P varchar2(50),
  Prenom_P varchar2(50),
  Entreprise varchar2(50),
  Domaine varchar2(50),
  Contact REF Enseignant_Type
);
/

create type Intervenant_REF_Type as object (
  Filiere varchar2(50),
  Enseig REF Enseignant_Type,
  Pro REF Professionnel_Type
);
/

create type Intervenant_REF_TI_Type as table of Intervenant_REF_Type;
/

create type Evenement_Type as object (
  Num_E number,
  Nom_E varchar2(50),
  Date_E Date,
  Lieu varchar2(50),
  Public_Cible varchar2(50),
  Intervenants Intervenant_REF_TI_Type
);
/

create type Evenement_REF_Type as object (
  Evenement REF Evenement_Type
);
/

create type Evenement_REF_TI_Type as table of Evenement_REF_Type;
/

create or replace type Enseignant_Type as object (
  Num_Ens number,
  Nom_Ens varchar2(50),
  Adress_Ens varchar2(50),
  Filiere varchar2(50),
  Evenements Evenement_REF_TI_Type
);
/


text:
var questions = [
  {
    question: 'Alpacas are domesticated animals from which continent?',
    correct: 2,
    extras: 'question-1',
    choices: [
      'Asia',
      'North America',
      'South America',
    ],
    onStart: function () {
      main.style.filter = 'blur(3px)';
      instructions.innerText = 'Low vision acuity';
      document.body.appendChild(instructions);
    }
  },
  {
    question: 'How many breeds of alpacas are there?',
    correct: 0,
    extras: 'question-2',
    choices: [
      '2 breeds',
      '3 breeds',
      '4 breeds',
    ],
    onStart: function () {
      main.style.filter = 'none';
      instructions.innerText = 'Floaters';
      document.body.appendChild(instructions);
    }
  },
  {
    question: 'Alpacas graze in herds on level heights in what mountain range?',
    correct: 0,
    extras: 'question-3',
    choices: [
      'Andes',
      'Himalayas',
      'Rockies',
    ],
    onStart: function () {
      main.style.filter = 'none';
      instructions.innerText = 'Macular degeneration';
      document.body.appendChild(instructions);
    }
  },
  {
    question: 'For how many years have alpacas been domesticated?',
    correct: 0,
    extras: 'question-4',
    choices: [
      'Over one thousand years',
      'Over two thousand years',
      'Over three thousand years',
    ],
    onStart: function () {
      main.style.filter = 'blur(1px)';
      main.style.animationName = 'flutters';
      instructions.innerText = 'Flutters';
      document.body.appendChild(instructions);
    }
  },
  {
    question: 'What are alpacas bred for?',
    correct: 0,
    extras: 'question-5',
    choices: [
      'As fibre to make textiles',
      'As pack animals',
      'As guard animals',
    ],
    onStart: function () {
      main.style.filter = 'blur(1px)';
      main.style.animationName = 'none';
      instructions.innerText = 'Diabetic retinopathy';
      document.body.appendChild(instructions);
      document.body.appendChild(document.querySelector('.diabetic-retinopathy'));
    }
  },
  {
    question: 'What sound is the alpaca making?',
    correct: 1,
    extras: 'question-6',
    choices: [
      '(Humming)',
      '(Munching)',
      '(Screaming)',
    ],
    onStart: function () {
      main.style.filter = 'none';
      instructions.innerText = 'Deafness';
      document.body.appendChild(instructions);
      [].forEach.call(document.querySelectorAll('.diabetic-retinopathy'), function (elem) {
        elem.style.display = 'none';
      });
    }
  },
  {
    question: 'Which alpaca is red?',
    correct: 2,
    extras: 'question-7',
    choices: [
      'Alpaca A',
      'Alpaca B',
      'Alpaca C',
    ],
    onStart: function () {
      main.style.filter = 'url(#color-blindness)';
      instructions.innerText = 'Colour blindness';
      document.body.appendChild(instructions);
    }
  },
  {
    question: 'Alpacas generally eat:',
    correct: 1,
    extras: 'question-8',
    choices: [
      'Fruits & vegetables',
      'Hay & grasses',
      'Plants & insects',
    ],
    onStart: function () {
      main.style.filter = 'none';
      instructions.innerText = 'Broken wrist on mousing hand';
      document.body.appendChild(instructions);
      document.addEventListener('mousemove', mouseMoveError);
    }
  },
  {
    question: 'How many chambers does an alpaca's stomach have?',
    correct: 2,
    extras: 'question-9',
    choices: [
      '1 stomach chambers',
      '2 stomach chambers',
      '3 stomach chambers',
      '4 stomach chambers',
    ],
    onStart: function () {
      cursor = document.querySelector('#extras .cursor');
      main.style.filter = 'none';
      instructions.innerText = 'Limited fine motor control';
      document.body.appendChild(instructions);
      document.removeEventListener('mousemove', mouseMoveError);
      document.addEventListener('mousemove', bigCursorMove);
      document.addEventListener('click', bigCursorClick);

      document.querySelector('#extras #pointer-lock-engage').addEventListener('click', function (e) {
        e.preventDefault();
        document.body.requestPointerLock();
        document.querySelector('#extras #pointer-lock-overlay').style.display = 'none';
      })
    }
  },
  {
    question: 'What does the below image depict?',
    correct: 2,
    extras: 'question-10',
    choices: [
      'A herd of alpacas grazing on grass',
      'A red coloured shorn alpaca',
      'Fuzzy, funny looking, white & brown alpaca',
    ],
    onStart: function () {
      theTitle = document.getElementById('question-title');
      option1 = document.querySelector('#question-choices li:nth-child(1) input');
      option2 = document.querySelector('#question-choices li:nth-child(2) input');
      option3 = document.querySelector('#question-choices li:nth-child(3) input');
      theButton = document.querySelector('#question-form button');
      theImage = document.querySelector('#question-form .alpaca-img');

      theTitle.dataset.speak = 'Question: What does the below image depict?';
      option1.dataset.speak = 'Answer option 1: A herd of alpacas grazing on grass. Press "Space" to select.';
      option2.dataset.speak = 'Answer option 2: A red-coloured, shorn alpaca. Press "Space" to select.';
      option3.dataset.speak = 'Answer option 3: Fuzzy, funny looking, white & brown alpaca. Press "Space" to select.';
      theButton.dataset.speak = 'Button: Check answer.';

      main.style.filter = 'none';
      instructions.innerText = 'Blindness';
      document.body.appendChild(instructions);
      document.exitPointerLock();
      document.removeEventListener('mousemove', bigCursorMove);
      document.removeEventListener('click', bigCursorClick);

      theTitle.addEventListener('focus', speechifyElem);
      option1.addEventListener('focus', speechifyElem);
      option2.addEventListener('focus', speechifyElem);
      option3.addEventListener('focus', speechifyElem);
      theButton.addEventListener('focus', speechifyElem);
      theImage.addEventListener('focus', speechifyElem);

      var toSpeak = new SpeechSynthesisUtterance('Question: What does the below image depict?');
      window.speechSynthesis.speak(toSpeak);
    }
  },
];

var runner = ActivityRunner();
var main = document.querySelector('main.wrapper');
var instructions = document.createElement('h2');
var showingMouseError = false;
var cursorX = document.documentElement.clientWidth / 2;
var cursorY = document.documentElement.clientHeight / 2;
var cursor, theTitle, option1, option2, option3, theButton, theImage;

var mouseMoveError = function () {
  if (!showingMouseError) {
    showingMouseError = true;

    runner.send('failure', function () {
      showingMouseError = false;
    });
  }
};

var getRandomIntInclusive = function (min, max) {
  min = Math.ceil(min);
  max = Math.floor(max);

  return Math.floor(Math.random() * (max - min + 1)) + min;
};

var bigCursorMove = function (e) {
  cursorX += getRandomIntInclusive(0, e.movementX * getRandomIntInclusive(1, 27));
  cursorY += getRandomIntInclusive(0, e.movementY * getRandomIntInclusive(1, 36));

  if (cursorX > document.documentElement.clientWidth) cursorX = 0;
  if (cursorY > document.documentElement.clientHeight) cursorY = 0;
  if (cursorX < 0) cursorX = document.documentElement.clientWidth;
  if (cursorY < 0) cursorY = document.documentElement.clientHeight;

  cursor.style.top = cursorY + 'px';
  cursor.style.left = cursorX + 'px';
};

var bigCursorClick = function (e) {
  var rectSelection = cursor.getBoundingClientRect();
  var elems = [
    document.querySelector('#question-choices li:nth-child(1) input'),
    document.querySelector('#question-choices li:nth-child(1) label'),
    document.querySelector('#question-choices li:nth-child(2) input'),
    document.querySelector('#question-choices li:nth-child(2) label'),
    document.querySelector('#question-choices li:nth-child(3) input'),
    document.querySelector('#question-choices li:nth-child(3) label'),
    document.querySelector('#question-choices li:nth-child(4) input'),
    document.querySelector('#question-choices li:nth-child(4) label'),
    document.querySelector('#question-form button[type="submit"]'),
  ];

  elems.forEach(function(elem) {
    var rect = elem.getBoundingClientRect();

    if(rect.top + rect.height > rectSelection.top
    && rect.left + rect.width > rectSelection.left
    && rect.bottom - rect.height < rectSelection.top + 10
    && rect.right - rect.width < rectSelection.left + 10) {
      elem.click();
    }
  });
};

var speechifyElem = function (e) {
  var toSpeak = new SpeechSynthesisUtterance(e.target.dataset.speak);
  window.speechSynthesis.cancel();
  window.speechSynthesis.speak(toSpeak);
};

runner.listen('end', function () {
  window.speechSynthesis.cancel();
  theTitle.removeEventListener('focus', speechifyElem);
  option1.removeEventListener('focus', speechifyElem);
  option2.removeEventListener('focus', speechifyElem);
  option3.removeEventListener('focus', speechifyElem);
  theButton.removeEventListener('focus', speechifyElem);
  theImage.removeEventListener('focus', speechifyElem);
  instructions.style.display = 'none';
});

MultipleChoice(runner, questions);
instructions.className += ' instructions';


text:
(function(){
  module.exports = {
    debugging: false,
    debug: function(msg){
      var constr;
      if (this.debugging) {
        constr = this.constructor.displayName || this.displayName;
        console.log(constr + ':');
        return console.log.apply(this, arguments);
      }
    },
    debugOn: function(){
      return this.debugging = true;
    },
    debugOff: function(){
      return this.debugging = false;
    }
  };
}).call(this);


text:
{% extends "base.html" %}

{% block head-includes %}
    <link rel="stylesheet" src="/static/home.css">
{#    #}
{% endblock %}

{% block content %}

Events Finder

Find all the nearest events around you!

Finding your location: checking...

                What is Events Finder?

Create

Explore

Join

Are you planning to throw a party? A networking event? A hackathon? Adding your event to Events Finder is extremely simple!

                        <button class="btn btn-danger" onclick="location.href='/create';">Create</button>

You can find the best events in your area, sort them by popularity, see who is already attending, and even contact the organizers to get more information about the event!

                        <button class="btn btn-danger bottom" onclick="location.href='/find';">Explore</button>

Once you have found your favourite events your can join as many events as you want - you will be able to keep track of all you paste events as well as your upcoming events!

                        <button class="btn btn-danger" onclick="location.href='/find';">Join</button>

{% endblock %}


text:
NS_ASSUME_NONNULL_BEGIN

@interface DWShadowView : UIView

@property (nonatomic, assign) IBInspectable CGFloat spread;

@end

NS_ASSUME_NONNULL_END


text:
using namespace std;
#pragma once
#include "layer.h"
#ifdef SHTTY_CUDNN
#include "device_launch_parameters.h"
#include "C:\cudnn-8.0-windows10-x64-v5.1\cuda\include\cudnn.h"
// Properties->Linker->general->Additional Library Directories
// C:\cudnn - 8.0 - windows10 - x64 - v5.1\cuda\lib\x64
// Properties->Linker->Input->Additional Dependencies
// cudnn.lib
// cudart.lib
// kernel32.lib
// copy cudnn64_5.dll onto folder with exe file
#endif // SHTTY_CUDNN

class conv : public layer
{
private:
	static int n_conv_count;
#ifdef SHTTY_CUDNN
	cudnnHandle_t                gpu_handle;
	cudnnFilterDescriptor_t	     gpu_filterDesc;
	cudnnTensorDescriptor_t	     gpu_InputDesc;
	cudnnTensorDescriptor_t	     gpu_OutputDesc;
	cudnnConvolutionDescriptor_t gpu_convDesc;
	float *dev_filter_mem;
	float *dev_input_mem;
	float *dev_output_mem;
	int n_filter_mem_size, n_input_mem_size, n_output_mem_size;

	float *dev_workspace_fw;   int n_workspace_fw_size;
	float *dev_workspace_bw;   int n_workspace_bw_size;
	float *dev_workspace_wt;   int n_workspace_wt_size;
#endif // SHTTY_CUDNN
protected:
public:
	string layer_type() { return "conv"; }
	float   n_d;    // learning rate gradient step size
	bool	n_zero_padding;
	size2d  n_stride;
	float4d n_weights;
	float1d n_bias;
	float1d n_bias_gradient;
	float4d n_weights_gradient;

	conv(void);
	~conv(void);
	conv(const conv &cpy);
	conv& operator=(const conv &cpy);

	///// Even Sized filters: There will be size discrepencies between CPU and GPU imlementation
	///// Must fix CPU or GPU forward and backward
	void load_init(ifstream &myfile, string layer_type = "" );
	void save_init(ofstream &myfile);
	void load_weights(ifstream &myfile);
	void save_weights(ofstream &myfile);
	void n_weights_bias_set(int n, int c, int h, int w );
	void n_weights_set(string init_method = "xavier", std::mt19937 &rng = float4d::n_random_seed);
	void set_learning_rate(float d) { n_d = d; }
	void print(bool print_n_rsp = false);

	double forward_pass();
	void	forward_pass_cpu(layer *rsps);
	double backward_pass(bool update_weights = true);
	void	backward_pass_cpu(layer *inlayer, layer *outlayer);
	void		update_gradient_cpu(layer *inlayer, layer *outlayer);
	void		update_bias(layer *outlayer );

	void	forward_pass_gpu(layer *rsps);
	void	backward_pass_gpu(layer *inlayer, layer *outlayer);
	void		update_gradient_gpu(layer *inlayer, layer *outlayer);

};


text:
use macros::hashmap;
use std::collections::HashMap;

fn main() {
    // a single trailing comma is okay, but two is not
    let _hm: HashMap<_, _> = hashmap!('a' => 2, ,);
}


text:
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/**
 * @name: S10.1.4_A1_T1;
 * @section: 10.1.4;
 * @assertion: Every execution context has associated with it a scope chain.
 * A scope chain is a list of objects that are searched when evaluating an
 * Identifier;
 * @description: Checking scope chain containing function declarations;
*/

var x = 0;

function f1(){
  var x = 1;
  function f2(){
    return x;
  };
  return f2();
}

if(!(f1() === 1)){
  $ERROR("#1: Scope chain disturbed");
}


text:
var searchData=
[
  ['accuracy_2c_20tolerance_2c_20and_20precision',['Accuracy, Tolerance, and Precision',['../group__accuracy__and__tolerance.html',1,'']]],
  ['acrobot',['Acrobot',['../group__acrobot__systems.html',1,'']]],
  ['algorithms',['Algorithms',['../group__algorithms.html',1,'']]],
  ['analysis',['Analysis',['../group__analysis.html',1,'']]],
  ['a_20stable_20discretization_20strategy',['A stable discretization strategy',['../group__discretization.html',1,'']]]
];


text:
define(
     ({
        map: {
            error: "Harita oluşturulamıyor"
        },
        report: {
            flag: "Uygunsuz olarak işaretle",
            error: "Hata",
            success: "İşaretlendi",
            loading: "Yükleniyor…"
        },
        mapNotes:{
            notesUnavailable: "Açıklama bulunmuyor",
            bookmarks: "Yer İşaretleri",
            zoomTo: "Bu konumu yakınlaştırın ve daha fazla bilgi edinin.",
            untitledNote: "Başlıksız"
        },
        social: {
            flickr: "Flickr",
            mediaLayers: "Ortam Katmanları",
            mediaLayersDescription: "Harita üzerinde dışarıdan gelen katkıları göster.",
            flickrSettings: "Flickr Ayarları",
            twitter: "Twitter",
            twitterSettings: "Twitter Ayarları",
            twitterUser: "Twitter Hesabı",
            twitterSignIn: "Twitter\'a giriş yap",
            webcams: "Webcams.travel",
            instagram: "Instagram",
            moreInfo: "Daha Fazla Bilgi",
            searchTerms: "Arama Terimleri",
            search: "Ara",
            flSettingsInfo: "Bir fotoğrafın başlığı, açıklaması veya etiketleriyle eşleşen sonuçlar döndürün.",
            twSettingsInfo: "Şu anda ne olduğunu görün.",
            advancedOperators: "İpucu: gelişmiş aramalar oluşturmak için işleçler kullanın.",
            tweetsFilteredBy: "tweet filtreleme ölçütü:",
            photosFilteredBy: "fotoğraf filtreleme ölçütü:",
            twitterAccountStatus: "Durumunuzu görmek için Twitter katmanını etkinleştirin."
        },
        general: {
            map: "Harita",
            mapInfo: "Harita Bilgileri",
            legend: "Gösterge",
            featured: "Tanıtılan Konumlar",
            layers: "Katmanlar",
            share: "Paylaş",
            about: "Hakkında",
            find: "Posta Kodu, şehir vb.",
            moreInfo: "Ek bilgiler",
            dateModified: "Son değiştirilme tarihi",
            noSearchResult: "Hiçbir sonuç bulunamadı",
            switchAccount: "Hesap değiştir",
            signIn: "Hesabınıza",
            settings: "Ayarlar"
        }
    })

);


text:
module Gtt

  require 'httparty'
  require 'json'
  class Talker

    attr_reader :auth, :url

    def initialize(token, room_id)
      @auth = {username: token, password: 'X'}
      @url = "https://api-campfire.hipchat.com/room/#{room_id}/speak.json"
    end

    def send_message(chat_message)
      params = {
        basic_auth: auth,
        body: {message: {body: chat_message}}.to_json,
        headers: {'Content-Type' => 'application/json'}
      }
      HTTParty.post(url, params)
    end

  end

end


text:
namespace Ui {
class ThemeDialog;
}

class ThemeDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ThemeDialog(QWidget *parent = 0);
    ~ThemeDialog();

private slots:
    void on_theme_ok_button_clicked();                          // a function that dictates what happens when the user presses a specific button
    void on_theme_cancel_button_clicked();                      // a function that dictates what happens when the user presses a specific button

private:
    Ui::ThemeDialog *ui;
};

#endif // THEMEDIALOG_H


text:
/**
 * Created by Roger Jaggi on 16. Nov. 2014
 */
exports = module.exports = function(app, mongoose) {
    var trackerSchema = new mongoose.Schema({
        deviceID: { type: String },
        deviceType: { type: String },
        lastPosition: { type: mongoose.Schema.Types.Mixed },
        lastBatteryVoltage: { type: Number },
        lastExternVoltage: { type: Number },
        lastEstimatedRuntime: { type: Number },
        lastWanStatus: { type: mongoose.Schema.Types.Mixed }
    });

    trackerSchema.methods.addLogEntry = function(request, response) {

        var ConnectionLogModel = app.db.model('connectionLog');
        var logEntry = new ConnectionLogModel();

        logEntry._trackerId = this._id;
        logEntry.request = request;
        logEntry.response = response;
        logEntry.save();
    };

    trackerSchema.methods.updateStatus = function(batteryVoltage, externVoltage) {

        this.lastBatteryVoltage = batteryVoltage;
        this.lastExternVoltage = externVoltage;
        this.save();

        var StatusHistoryModel = app.db.model('statusHistory');
        var logEntry = new StatusHistoryModel();

        logEntry._trackerId = this._id;
        logEntry.batteryVoltage = batteryVoltage;
        logEntry.externVoltage = externVoltage;
        logEntry.save();
    };

    trackerSchema.plugin(require('./plugins/StatusPlugin'));
    //userSchema.plugin(require('./plugins/pagedFind'));
    trackerSchema.index({ timeCreated: 1 });
    trackerSchema.index({ search: 1 });
    //trackerSchema.set('autoIndex', (app.get('env') === 'development'));

    app.db.model('tracker', trackerSchema);
};


text:
import sys
import os
from music21 import *

for arg in sys.argv:
	print arg

sfilename = sys.argv[1]

# TODO : check if file exists
if (os.path.exists(sfilename)):
	sfile = sfilename
else:
	raise ValueError('File does not exist!')

# Read a file into music21
sfile = converter.parse(sfile)

# Get a list of all measures of this file and all notes in the measure

for curPart in sfile.getElementsByClass('Part'):
	for curMeasure in curPart.getElementsByClass('Measure'):
		# Get the notes, rests and chords
		mLength = curMeasure.duration.quarterLength
		curNotes = curMeasure.flat.getElementsByClass('GeneralNote')
			# Flattening merges all the separate voices ...
			# TODO figure out whether it is necessary
		listdurs = []
		for note in curNotes:
			listdurs.append( note.duration.quarterLength )
		print listdurs
		if not listdurs : continue	# Deal with empty measures

		# avgdur = sum(listdurs)/len(listdurs)
		reciproc = [ 1/x for x in listdurs if x>0 ]
			# The IF-statement necessary to handle grace notes

		# note: this is leftover from a previous try, manipulating harmonic means
			#print reciproc
			#avgrecip = sum(reciproc)/len(reciproc)
			#print avgrecip
			#fliprecip = [ 2*avgrecip-x for x in reciproc ]
			#print fliprecip
			#avgflip = sum(fliprecip)/len(fliprecip)
			#print avgflip
			#newdurs = [ 1/x for x in fliprecip if x>0 ]
			#print newdurs

		# re-fit the new durations into the measure's time
		# note: working directly on the reciprocals of quarternote values tends to give better results than working on harmonic means
		ratio = sum(reciproc) / mLength
		finaldurs = [ 1/ratio*x for x in reciproc ]
		print finaldurs

		print ('---') # end of measure

		# Assign the new note durations
		i=0
		for note in curNotes:
			if note.duration.quarterLength > 0:
				note.duration.quarterLength = finaldurs[i]
				i=i+1

# Finally: print score using your favourite editor
sfile.show()


text:
#import <UIKit/UIKit.h>

@interface CDisclosureIndicator : UIControl

+ (CDisclosureIndicator *)disclosureIndicatorWithColor:(UIColor*)color highlightColor:(UIColor*)highlightColor;

@property (strong, nonatomic) UIColor* color;
@property (strong, nonatomic) UIColor* highlightColor;

@end


text:
/**
 * The Scale Manager was in fullscreen mode, but has since left, either directly via game code,
 * or via a user gestured, such as pressing the ESC key.
 *
 * @event Phaser.Scale.Events#LEAVE_FULLSCREEN
 * @since 3.16.1
 */
module.exports = 'leavefullscreen';


text:
package org.apache.jena.tdb.store.nodetable;

import org.apache.jena.tdb.base.file.Location ;
import org.apache.jena.tdb.setup.Build ;

public class TestNodeTableStored extends AbstractTestNodeTable
{
    @Override
    protected NodeTable createEmptyNodeTable()
    {
        return Build.makeNodeTable(Location.mem()) ;
    }
}


text:
#import "EC2Response.h"

/**
 * Reset Snapshot Attribute
 */
@interface EC2ResetSnapshotAttributeResponse:EC2Response
{
}

@end


text:
from django.contrib import admin

from groups.models import Group

@admin.register(Group)
class GroupAdmin(admin.ModelAdmin):
    """ """


text:
package fergusonmodel;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import util.LinkedHashMap;

public class Host {

   public Host(int patchID, int id) {
      this.patchID = patchID;
      this.id = id;
      //Allocate this bitset once, then clear it whenever this host is reincarnated
      //todo - precalculate this
      int length = ((Main.simulationInfo.numEpitopes * Main.simulationInfo.codonsPerEpitope * 20 + 7) / 8);
      immuneHistory = new byte[length];
      Reset();
   }

   public void Reset() {
      lastInfectionDate = Integer.MIN_VALUE;
      lastInfectionStrain = null;
      for (int i = 0; i < immuneHistory.length; i++) {
         immuneHistory[i] = 0;
      }
   }

   public boolean IsIncubating(int date) {
      return lastInfectionDate != Integer.MIN_VALUE && (date - lastInfectionDate) < 2;
   }

   public boolean IsInfectious(int date) {
      return lastInfectionDate != Integer.MIN_VALUE && (date - lastInfectionDate) >= 2 && (date - lastInfectionDate) < 6;
   }

   public boolean IsSick(int date) {
      return lastInfectionDate != Integer.MIN_VALUE && (date - lastInfectionDate) < 6;
   }

   public void Infect(int date, Strain strain) {
      lastInfectionDate = date;
      lastInfectionStrain = strain;
      //Update the immune history
      for (int i = 0; i < strain.epitopes.length; i++) {
         for (int j = 0; j < strain.epitopes[0].length; j++) {
            int bitIndex = i * strain.epitopes[0].length * 20 + j * 20 + (strain.epitopes[i][j] & 0xFF);
            immuneHistory[bitIndex / 8] = (byte) ((immuneHistory[bitIndex / 8] & 0xFF) | (1 << (bitIndex % 8)));
         }
      }
   }

   public int GetImmunityDistance(Strain strain) {
      int sum = 0;
      for (int i = 0; i < strain.epitopes.length; i++) {
         for (int j = 0; j < strain.epitopes[0].length; j++) {
            int bitIndex = i * strain.epitopes[0].length * 20 + j * 20 + (strain.epitopes[i][j] & 0xFF);
            if (((immuneHistory[bitIndex / 8] & 0xFF) & (1 << (bitIndex % 8))) == 0) {
               ++sum;
            }
         }
      }
      return sum;
   }

   public void SaveState(DataOutput out) throws IOException {
      out.writeInt(lastInfectionDate);
      out.writeBoolean(lastInfectionStrain != null);
      if (lastInfectionStrain != null) {
         out.writeInt(lastInfectionStrain.stats.id);
      }
      out.write(immuneHistory);
   }

   public void LoadState(DataInput in, LinkedHashMap<Integer, Strain> strains) throws IOException {
      lastInfectionDate = in.readInt();
      if (in.readBoolean()) {
         int strainID = in.readInt();
         lastInfectionStrain = strains.Get(strainID);
      }
      in.readFully(immuneHistory);
   }

   @Override
   public int hashCode() {
      return (patchID << 24) | id;
   }

   @Override
   public boolean equals(Object obj) {
      if (obj == null) {
         return false;
      }
      if (getClass() != obj.getClass()) {
         return false;
      }
      final Host other = (Host) obj;
      if (this.patchID != other.patchID) {
         return false;
      }
      if (this.id != other.id) {
         return false;
      }
      return true;
   }
   public static int[] neighborList;
   public int patchID;
   public int id;
   public byte numNeighbors;
   public int neighborIndex;
   public int lastInfectionDate;
   public Strain lastInfectionStrain;
   public byte[] immuneHistory; //boolean[4][3][20] (sites, codons/site, possible codons)
}


text:
#ifndef __MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_AUDIOOUT_H__
#define __MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_AUDIOOUT_H__

#include "common-hal/audioio/AudioOut.h"
#include "common-hal/microcontroller/Pin.h"
#include "extmod/vfs_fat_file.h"

extern const mp_obj_type_t audioio_audioout_type;

void common_hal_audioio_audioout_construct_from_buffer(audioio_audioout_obj_t* self, const mcu_pin_obj_t* pin, uint16_t* buffer, uint32_t len);
void common_hal_audioio_audioout_construct_from_file(audioio_audioout_obj_t* self, const mcu_pin_obj_t* pin, pyb_file_obj_t* file);

void common_hal_audioio_audioout_deinit(audioio_audioout_obj_t* self);
void common_hal_audioio_audioout_play(audioio_audioout_obj_t* self, bool loop);
void common_hal_audioio_audioout_stop(audioio_audioout_obj_t* self);
bool common_hal_audioio_audioout_get_playing(audioio_audioout_obj_t* self);
uint32_t common_hal_audioio_audioout_get_frequency(audioio_audioout_obj_t* self);
void common_hal_audioio_audioout_set_frequency(audioio_audioout_obj_t* self, uint32_t frequency);

#endif // __MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_AUDIOOUT_H__


text:
(function () {
    var pianoKeyboards = Array.prototype.slice.call(document.querySelectorAll('.piano')),
        clearBtns = Array.prototype.slice.call(document.querySelectorAll('[data-action="clear"]'));

    pianoKeyboards
        .forEach(function initializePianoKeyboard(pianoKeyboard) {
            var log;

            if (pianoKeyboard.dataset.action !== 'log') {
                return;
            }

            log = document.getElementById(pianoKeyboard.dataset.log);

            pianoKeyboard.addEventListener('noteon', function onNoteOn(e) {
                log.value += e.pitch + e.octave + ' ';
            });
        });

    clearBtns.forEach(function initializeClearBtn(clearBtn) {
        var log = document.getElementById(clearBtn.dataset.log);

        clearBtn.addEventListener('click', function clearLog() {
            log.value = '';
        });
    });
})();


text:
extern "C" {
#endif  // __cplusplus

// Handle `TixNativeBufferUnity`
typedef struct TixNativeBufferUnity_t *TixNativeBufferUnity;

// Function `tix_import_native_runtime_unity`
TI_DLL_EXPORT TiRuntime TI_API_CALL tix_import_native_runtime_unity();

// Function `tix_launch_kernel_async_unity`
TI_DLL_EXPORT void TI_API_CALL
tix_launch_kernel_async_unity(TiRuntime runtime,
                              TiKernel kernel,
                              uint32_t arg_count,
                              const TiArgument *args);

// Function `tix_launch_compute_graph_async_unity`
TI_DLL_EXPORT void TI_API_CALL
tix_launch_compute_graph_async_unity(TiRuntime runtime,
                                     TiComputeGraph compute_graph,
                                     uint32_t arg_count,
                                     const TiNamedArgument *args);

// Function `tix_copy_memory_to_native_buffer_async_unity`
TI_DLL_EXPORT void TI_API_CALL
tix_copy_memory_to_native_buffer_async_unity(TiRuntime runtime,
                                             TixNativeBufferUnity dst,
                                             uint64_t dst_offset,
                                             const TiMemorySlice *src);

// Function `tix_copy_memory_device_to_host_unity`
TI_DLL_EXPORT void TI_API_CALL
tix_copy_memory_device_to_host_unity(TiRuntime runtime,
                                     void *dst,
                                     uint64_t dst_offset,
                                     const TiMemorySlice *src);

// Function `tix_copy_memory_host_to_device_unity`
TI_DLL_EXPORT void TI_API_CALL
tix_copy_memory_host_to_device_unity(TiRuntime runtime,
                                     const TiMemorySlice *dst,
                                     const void *src,
                                     uint64_t src_offset);

// Function `tix_submit_async_unity`
TI_DLL_EXPORT void *TI_API_CALL tix_submit_async_unity(TiRuntime runtime);

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


text:
import { combineReducers } from 'redux-immutable';

import routerReducer from './router/router.reducer';
import localesReducer from './locales/locales.reducer';
import maintainersReducer from './maintainers/maintainers.reducer';

export default function createReducer() {
  return combineReducers({
    route: routerReducer,
    maintainers: maintainersReducer,
    locales: localesReducer,
  });
}


text:
namespace CleanArchitecture.Presentation.DependencyResolution {
    using StructureMap;

    public static class IoC {
        public static IContainer Initialize() {
            return new Container(c => c.AddRegistry<DefaultRegistry>());
        }
    }
}


text:
    #import <CFNetwork/CFNetwork.h>
#else
    #import <CoreServices/CoreServices.h>
#endif

#pragma mark * IGPing

@protocol IGPingDelegate;

@interface IGPing : NSObject
@property (weak, nonatomic)   id<IGPingDelegate> delegate;
@property (strong, nonatomic) NSString           *hostName;
@property (strong, nonatomic) NSData             *hostAddress;
@property (assign, atomic)    CFSocketRef        socket;
@property (assign, nonatomic) CFHostRef          host;

@property (assign, nonatomic) uint16_t           nextSequenceNumber;
@property (assign, nonatomic) uint8_t            payloadLen;

+ (IGPing *)pingWithHostName:(NSString *)hostName;
+ (IGPing *)pingWithHostAddress:(NSData *)hostAddress;

- (void)start;
- (void)sendPacket;
- (void)stop;

- (NSString*) getIpAddr;

+ (const struct ICMPHeader *)icmpInPacket:(NSData *)packet;
+ (NSUInteger)icmpHeaderOffsetInPacket:(NSData *)packet;
@end

@protocol IGPingDelegate <NSObject>

@optional

- (void)ping:(IGPing *)pinger onStartup:(NSError *)error;
- (void)ping:(IGPing *)pinger didFailWithError:(NSError *)error;
- (void)ping:(IGPing *)pinger didSendPacket:(uint16_t)sequence packet:(NSData *)packet;
- (void)ping:(IGPing *)pinger didFailToSendPacket:(uint16_t)sequence packet:(NSData *)packet error:(NSError *)error;
- (void)ping:(IGPing *)pinger didReceivePacket:(uint16_t)sequence packet:(NSData *)packet;
- (void)ping:(IGPing *)pinger didReceiveUnexpectedPacket: (NSData*)packet;
@end


text:
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
                  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
                  xmlns:tns="http://nfse.blumenau.sc.gov.br" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                  xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
                  targetNamespace="http://nfse.blumenau.sc.gov.br" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="http://nfse.blumenau.sc.gov.br">
            <s:element name="EnvioRPSRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="EnvioRPSResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="EnvioLoteRPSRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="EnvioLoteRPSResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="TesteEnvioLoteRPSRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="TesteEnvioLoteRPSResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="CancelamentoNFeRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="CancelamentoNFeResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaNFeRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaNFeResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaNFeRecebidasRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaNFeRecebidasResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaNFeEmitidasRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaNFeEmitidasResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaLoteRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaLoteResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaInformacoesLoteRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaInformacoesLoteResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaCNPJRequest">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="1" maxOccurs="1" name="VersaoSchema" type="s:int"/>
                        <s:element minOccurs="0" maxOccurs="1" name="MensagemXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="ConsultaCNPJResponse">
                <s:complexType>
                    <s:sequence>
                        <s:element minOccurs="0" maxOccurs="1" name="RetornoXML" type="s:string"/>
                    </s:sequence>
                </s:complexType>
            </s:element>
        </s:schema>
    </wsdl:types>
    <wsdl:message name="EnvioRPSSoapIn">
        <wsdl:part name="parameters" element="tns:EnvioRPSRequest"/>
    </wsdl:message>
    <wsdl:message name="EnvioRPSSoapOut">
        <wsdl:part name="parameters" element="tns:EnvioRPSResponse"/>
    </wsdl:message>
    <wsdl:message name="EnvioLoteRPSSoapIn">
        <wsdl:part name="parameters" element="tns:EnvioLoteRPSRequest"/>
    </wsdl:message>
    <wsdl:message name="EnvioLoteRPSSoapOut">
        <wsdl:part name="parameters" element="tns:EnvioLoteRPSResponse"/>
    </wsdl:message>
    <wsdl:message name="TesteEnvioLoteRPSSoapIn">
        <wsdl:part name="parameters" element="tns:TesteEnvioLoteRPSRequest"/>
    </wsdl:message>
    <wsdl:message name="TesteEnvioLoteRPSSoapOut">
        <wsdl:part name="parameters" element="tns:TesteEnvioLoteRPSResponse"/>
    </wsdl:message>
    <wsdl:message name="CancelamentoNFeSoapIn">
        <wsdl:part name="parameters" element="tns:CancelamentoNFeRequest"/>
    </wsdl:message>
    <wsdl:message name="CancelamentoNFeSoapOut">
        <wsdl:part name="parameters" element="tns:CancelamentoNFeResponse"/>
    </wsdl:message>
    <wsdl:message name="ConsultaNFeSoapIn">
        <wsdl:part name="parameters" element="tns:ConsultaNFeRequest"/>
    </wsdl:message>
    <wsdl:message name="ConsultaNFeSoapOut">
        <wsdl:part name="parameters" element="tns:ConsultaNFeResponse"/>
    </wsdl:message>
    <wsdl:message name="ConsultaNFeRecebidasSoapIn">
        <wsdl:part name="parameters" element="tns:ConsultaNFeRecebidasRequest"/>
    </wsdl:message>
    <wsdl:message name="ConsultaNFeRecebidasSoapOut">
        <wsdl:part name="parameters" element="tns:ConsultaNFeRecebidasResponse"/>
    </wsdl:message>
    <wsdl:message name="ConsultaNFeEmitidasSoapIn">
        <wsdl:part name="parameters" element="tns:ConsultaNFeEmitidasRequest"/>
    </wsdl:message>
    <wsdl:message name="ConsultaNFeEmitidasSoapOut">
        <wsdl:part name="parameters" element="tns:ConsultaNFeEmitidasResponse"/>
    </wsdl:message>
    <wsdl:message name="ConsultaLoteSoapIn">
        <wsdl:part name="parameters" element="tns:ConsultaLoteRequest"/>
    </wsdl:message>
    <wsdl:message name="ConsultaLoteSoapOut">
        <wsdl:part name="parameters" element="tns:ConsultaLoteResponse"/>
    </wsdl:message>
    <wsdl:message name="ConsultaInformacoesLoteSoapIn">
        <wsdl:part name="parameters" element="tns:ConsultaInformacoesLoteRequest"/>
    </wsdl:message>
    <wsdl:message name="ConsultaInformacoesLoteSoapOut">
        <wsdl:part name="parameters" element="tns:ConsultaInformacoesLoteResponse"/>
    </wsdl:message>
    <wsdl:message name="ConsultaCNPJSoapIn">
        <wsdl:part name="parameters" element="tns:ConsultaCNPJRequest"/>
    </wsdl:message>
    <wsdl:message name="ConsultaCNPJSoapOut">
        <wsdl:part name="parameters" element="tns:ConsultaCNPJResponse"/>
    </wsdl:message>
    <wsdl:portType name="LoteNFeSoap">
        <wsdl:operation name="EnvioRPS">
            <wsdl:input message="tns:EnvioRPSSoapIn"/>
            <wsdl:output message="tns:EnvioRPSSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="EnvioLoteRPS">
            <wsdl:input message="tns:EnvioLoteRPSSoapIn"/>
            <wsdl:output message="tns:EnvioLoteRPSSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="TesteEnvioLoteRPS">
            <wsdl:input message="tns:TesteEnvioLoteRPSSoapIn"/>
            <wsdl:output message="tns:TesteEnvioLoteRPSSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="CancelamentoNFe">
            <wsdl:input message="tns:CancelamentoNFeSoapIn"/>
            <wsdl:output message="tns:CancelamentoNFeSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="ConsultaNFe">
            <wsdl:input message="tns:ConsultaNFeSoapIn"/>
            <wsdl:output message="tns:ConsultaNFeSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="ConsultaNFeRecebidas">
            <wsdl:input message="tns:ConsultaNFeRecebidasSoapIn"/>
            <wsdl:output message="tns:ConsultaNFeRecebidasSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="ConsultaNFeEmitidas">
            <wsdl:input message="tns:ConsultaNFeEmitidasSoapIn"/>
            <wsdl:output message="tns:ConsultaNFeEmitidasSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="ConsultaLote">
            <wsdl:input message="tns:ConsultaLoteSoapIn"/>
            <wsdl:output message="tns:ConsultaLoteSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="ConsultaInformacoesLote">
            <wsdl:input message="tns:ConsultaInformacoesLoteSoapIn"/>
            <wsdl:output message="tns:ConsultaInformacoesLoteSoapOut"/>
        </wsdl:operation>
        <wsdl:operation name="ConsultaCNPJ">
            <wsdl:input message="tns:ConsultaCNPJSoapIn"/>
            <wsdl:output message="tns:ConsultaCNPJSoapOut"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="LoteNFeSoap" type="tns:LoteNFeSoap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="EnvioRPS">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/envioRPS" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="EnvioLoteRPS">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/envioLoteRPS" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="TesteEnvioLoteRPS">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/testeenvio" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="CancelamentoNFe">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/cancelamentoNFe" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="ConsultaNFe">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/consultaNFe" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="ConsultaNFeRecebidas">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/consultaNFeRecebidas" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="ConsultaNFeEmitidas">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/consultaNFeEmitidas" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="ConsultaLote">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/consultaLote" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="ConsultaInformacoesLote">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/consultaInformacoesLote" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="ConsultaCNPJ">
            <soap:operation soapAction="http://nfse.blumenau.sc.gov.br/ws/consultaCNPJ" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="LoteNFe">
        <wsdl:port name="LoteNFeSoap" binding="tns:LoteNFeSoap">
            <soap:address location="https://nfse.blumenau.sc.gov.br/ws/lotenfe.asmx"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>


text:
[![Build Status](https://travis-ci.org/docker/swarm.svg?branch=master)](https://travis-ci.org/docker/swarm)
[![Coverage Status](https://coveralls.io/repos/docker/swarm/badge.svg)](https://coveralls.io/r/docker/swarm)

![Docker Swarm Logo](logo.png?raw=true "Docker Swarm Logo")

Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts
into a single, virtual host.

Swarm serves the standard Docker API, so any tool which already communicates
with a Docker daemon can use Swarm to transparently scale to multiple hosts:
Dokku, Compose, Krane, Flynn, Deis, DockerUI, Shipyard, Drone, Jenkins... and,
of course, the Docker client itself.

Like other Docker projects, Swarm follows the "batteries included but removable"
principle. It ships with a set of simple scheduling backends out of the box, and as
initial development settles, an API will be developed to enable pluggable backends.
The goal is to provide a smooth out-of-the-box experience for simple use cases, and
allow swapping in more powerful backends, like Mesos, for large scale production
deployments.

## Installation and documentation

Full documentation [is available here](http://docs.docker.com/swarm/).

## Development installation

You can download and install from source instead of using the Docker image.

Ensure you have golang, godep and git client installed. For example, on Ubuntu you'd run:

```bash
apt-get install golang git
go get github.com/tools/godep
```

You may need to set `$GOPATH`, e.g `mkdir ~/gocode; export GOPATH=~/gocode`.

Then install the `swarm` binary:

```bash
git clone https://github.com/docker/swarm
cd swarm
godep go install .
```

From here, you can follow the instructions [in the main documentation](http://docs.docker.com/swarm/),
replacing `docker run swarm` with just `swarm`.

## Participating

We welcome pull requests and patches; come say hi on IRC, #docker-swarm on freenode.

## Creators

**Andrea Luzzardi**

- <http://twitter.com/aluzzardi>
- <http://github.com/aluzzardi>

**Victor Vieux**

- <http://twitter.com/vieux>
- <http://github.com/vieux>

## Copyright and license

Code and documentation copyright 2014-2015 Docker, inc. Code released under the
Apache 2.0 license.

Docs released under Creative commons.