text:
var models = require('../models');
var result = require("../result.json");
var profile = new models.Profile();
profile.TypesDone = false;
profile.DatesDone = false;
profile.RentDone = false;
profile.PropertyDone = false;
profile.OtherDone = false;
profile.AddressDone = false;

exports.submitForm = function(req, res) {
	// Your code goes here
	console.log("yay");

	console.log("here"+ result[req.params.name]);
	//JSON.parse(result);
	//console.log(result);
	res.json(result[req.params.name]);
}

/*.submitWholeForm = function(req, res) {
	// Your code goes here
	//console.log(result['Types']);
	console.log(result[req.params.name]);
	//JSON.parse(result);
	//console.log(result);
	res.json(result[req.params.name]);
}*/
//function to save each entry of a block
exports.save = function(req, res){
  //var json = req.body;
  console.log(req.body);
  console.log("user");
  //console.log(profile.User.type);
  //console.log(profile.User['type']);
  if(profile.User == undefined){
  	profile.User = req.session._id;
  	console.log("userId="+profile.User);
  }

  var form_data = req.body;
  if(form_data["label"]=="Profile Type"){
  	profile.RentType = form_data["value"];
  	console.log(profile.RentType);
  }
  var newEntry = new models.Entry({
      "label":form_data["label"],
      "type": form_data["type"],
      "value":form_data["value"],
      "selected":form_data["selected"],
      "order": form_data["order"],
      "group": form_data["group"]
  });
  switch(form_data["group"]){
  	case "Types":
      profile.Types.push(newEntry);
      break;
    case "Property":
      profile.Property.push(newEntry);
      break;
    case "Rent":
      profile.Rent.push(newEntry);
      break;
    case "Other":
      profile.Other.push(newEntry);
      break;
    case "Dates":
      profile.Dates.push(newEntry);
      break;
    case "Address":
      profile.Address.push(newEntry);
      break;
    default:
      console.log("switch err");
      break;
        //console.log(profile.Types[0].label);
  }
  res.send(200);
}
//function to do done (finish one block?)
exports.done = function(req,res){
  console.log("I am here"+ req.params.name);
  switch(req.params.name){
  	case "Types":
      profile.TypesDone = true;
      break;
    case "Property":
      profile.PropertyDone = true;
      break;
    case "Rent":
      profile.RentDone = true;
      break;
    case "Other":
      profile.OtherDone = true;
      break;
    case "Dates":
      profile.DatesDone = true;
      break;
    case "Address":
      profile.AddressDone = true;
      break;
    default:
      console.log("switch err done");
      break;
    //console.log(profile.Types[0].label);
  }
  res.send(200);
}

//function to submit whole form
exports.submit = function(req,res){

	console.log("insubmit");
	console.log(req.session._id);
	if(profile.TypesDone && profile.DatesDone && profile.OtherDone
	&& profile.RentDone && profile.PropertyDone && profile.AddressDone){

		profile.save(afterSaving);//find match before or after
		function afterSaving(err){
        if(err){console.log(err); res.send(500);}
        models.User
			    .find({"_id": req.session._id})
	    	  .sort()
	    	  .exec(saveUserInfo);

	    	function saveUserInfo(err, users){
	    		if(err) console.log(err);

	    		if(users[0] == undefined){//not found user
	          		res.send("impossible");//impossible
	    		}else{
            console.log("isHERE" + users);
            console.log(profile._id);
	    			users[0].Profiles.push(profile._id);
            users[0].save();
	    			console.log(users[0].Profiles);
	            	//res.send();

          	console.log("success");
      			console.log(profile._id);
            console.log("isHERE" + users);

            profile = new models.Profile();

            profile.TypesDone = false;
            profile.DatesDone = false;
            profile.RentDone = false;
            profile.PropertyDone = false;
            profile.OtherDone = false;
            profile.AddressDone = false;
      			res.send();
	    	  }
	    	}

		}
	}else{
		res.send("unfinished");
	}
}


text:
#pragma once

#include "envoy/extensions/resource_monitors/fixed_heap/v3/fixed_heap.pb.h"
#include "envoy/server/resource_monitor.h"

namespace Envoy {
namespace Extensions {
namespace ResourceMonitors {
namespace FixedHeapMonitor {

/**
 * Helper class for getting memory heap stats.
 */
class MemoryStatsReader {
public:
  MemoryStatsReader() = default;
  virtual ~MemoryStatsReader() = default;

  // Memory reserved for the process by the heap.
  virtual uint64_t reservedHeapBytes();
  // Memory in free, unmapped pages in the page heap.
  virtual uint64_t unmappedHeapBytes();
};

/**
 * Heap memory monitor with a statically configured maximum.
 */
class FixedHeapMonitor : public Server::ResourceMonitor {
public:
  FixedHeapMonitor(
      const envoy::extensions::resource_monitors::fixed_heap::v3::FixedHeapConfig& config,
      std::unique_ptr<MemoryStatsReader> stats = std::make_unique<MemoryStatsReader>());

  void updateResourceUsage(Server::ResourceUpdateCallbacks& callbacks) override;

private:
  const uint64_t max_heap_;
  std::unique_ptr<MemoryStatsReader> stats_;
};

} // namespace FixedHeapMonitor
} // namespace ResourceMonitors
} // namespace Extensions
} // namespace Envoy

redpajama_set_name: RedPajamaGithub


text:
package de.vandermeer.asciilist.enumerate;

import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.text.StrBuilder;

import de.vandermeer.asciilist.AbstractAsciiListContext;
import de.vandermeer.asciilist.AsciiListContext;
import de.vandermeer.asciilist.AsciiListItem;
import de.vandermeer.asciithemes.TA_EnumerateList;
import de.vandermeer.asciithemes.a7.A7_EnumerateLists;

/**
 * Context for an enumerate list.
 *
 * @author     Sven van der Meer <vdmeer.sven@mykolab.com>
 * @version    v0.0.5 build 170502 (02-May-17) for Java 1.8
 * @since      v0.1.0
 */
public class EnumerateListContext extends AbstractAsciiListContext {

	/** A string to separate numbers, default is dot "'.'". */
	protected String numberingSeparator = ".";

	/** The style for list items. */
	protected TA_EnumerateList style = A7_EnumerateLists.number();

	/** Flag controls the behavior for using numbering string after last number, default is true. */
	protected boolean useSeparatorAfterLastNumber = true;

	/** Flag for inhering style from another itemize list if this list is a child, default is true. */
	protected boolean inheritStyle = true;

	/**
	 * Creates a new context object for an enumerate lists.
	 */
	public EnumerateListContext(){
		this.init();
	}

	@Override
	public EnumerateListContext copySettings(AsciiListContext ctx) {
		super.copySettings(ctx);
		if(ctx instanceof EnumerateListContext){
			this.style = ((EnumerateListContext)ctx).style;
			this.inheritStyle = ((EnumerateListContext)ctx).inheritStyle;
			this.useSeparatorAfterLastNumber = ((EnumerateListContext)ctx).useSeparatorAfterLastNumber;
			this.numberingSeparator = ((EnumerateListContext)ctx).numberingSeparator;
		}
		return this;
	}

	@Override
	public <LI extends AsciiListItem> StrBuilder getItemString(LI item, int index) {
		StrBuilder ret = new StrBuilder(20);
		ret
			.appendPadding(this.getItemMargin(), this.getItemChar())
			.append(this.getLeftLabelString())
			.appendPadding(this.getLabelLeftMargin(), this.getLabelLeftChar())
		;

		if(this.parentIndex!=null && index>0){
			int[] levels = ArrayUtils.add(this.parentIndex, index);
			ret.append(this.getStyle().getLabel(levels, this.numberingSeparator, this.useSeparatorAfterLastNumber));
		}
		else if(index>0){
			ret.append(this.getStyle().getLabel(index));
			if(this.useSeparatorAfterLastNumber){
				ret.append(this.numberingSeparator);
			}
		}
		else{
			ret.append(this.getStyle().getLabel(this.getLevel()));
		}

		ret.appendPadding(this.getLabelRightMargin(), this.getLabelRightChar())
			.append(this.getRightLabelString())
			.appendPadding(this.getTextLeftMargin(), this.getTextLeftChar())
		;
		return ret;
	}

	/**
	 * Returns the label separator string.
	 * @return label separator string
	 */
	public String getNumberingSeparator() {
		return this.numberingSeparator;
	}

	/**
	 * Returns the flag controls the behavior for using numbering string after last number.
	 * @return flag true to use string, false if not
	 */
	public boolean getSeparatorAfterLastNumber(){
		return this.useSeparatorAfterLastNumber;
	}

	/**
	 * Returns the list style.
	 * @return list style
	 */
	public TA_EnumerateList getStyle() {
		return this.style;
	}

	@Override
	public EnumerateListContext inheritSettings(AsciiListContext ctx) {
		if(ctx instanceof EnumerateListContext){
			if(this.inheritStyle){
				this.style = ((EnumerateListContext)ctx).style;
			}
		}
		return this;
	}

	@Override
	public void init(){
		super.init();
		this.numberingSeparator = ".";
	}

	/**
	 * Sets the inherit-style flag.
	 * @param flag true if this list should inherit style (if it is a child list), false otherwise
	 * @return this to allow chaining
	 */
	public EnumerateListContext setInheritStyle(boolean flag){
		this.inheritStyle = flag;
		return this;
	}

	/**
	 * Sets the numbering separator string.
	 * @param numberingSeparator numbering separator string
	 * @return this to allow chaining
	 */
	public EnumerateListContext setNumberingSeparator(String numberingSeparator) {
		this.numberingSeparator = numberingSeparator;
		return this;
	}

	/**
	 * Sets the flag controls the behavior for using numbering string after last number.
	 * @param flag true to use string, false if not
	 * @return this to allow chaining
	 */
	public EnumerateListContext setSeparatorAfterLastNumber(boolean flag){
		this.useSeparatorAfterLastNumber = flag;
		return this;
	}

	/**
	 * Sets the list style.
	 * @param style new style
	 * @return this to allow chaining
	 * @throws NullPointerException if style was null
	 */
	public EnumerateListContext setStyle(TA_EnumerateList style) {
		Validate.notNull(style);
		this.style = style;
		return this;
	}
}


text:
#import "NSObject.h"

@class NSString;

@interface CertUIPrompt : NSObject
{
    struct __SecTrust *_trust;
    NSString *_host;
    NSString *_service;
    NSString *_connectionDisplayName;
    id _responseBlock;
}

+ (id)promptQueue;
@property(copy, nonatomic) NSString *connectionDisplayName; // @synthesize connectionDisplayName=_connectionDisplayName;
@property(retain, nonatomic) NSString *service; // @synthesize service=_service;
@property(retain, nonatomic) NSString *host; // @synthesize host=_host;
- (int)showAndWaitForResponse;
- (void)_informConsumerOfResponse:(int)arg1;
- (void)showPromptWithResponseBlock:(id)arg1;
- (int)_sendRemoteMessage;
- (int)_responseFromReplyDict:(id)arg1;
- (id)_messagingCenter;
- (id)_newUserInfoForDisplayName:(id)arg1 hostname:(id)arg2 trust:(struct __SecTrust *)arg3;
- (id)_digestFromTrust:(struct __SecTrust *)arg1;
- (id)_expirationFromTrust:(struct __SecTrust *)arg1;
- (id)_purposeFromTrustProperties:(id)arg1;
- (id)_propertyNamed:(id)arg1 ofType:(id)arg2 inProperties:(id)arg3;
- (id)_subtitleFromTrust:(struct __SecTrust *)arg1;
- (id)_titleFromTrust:(struct __SecTrust *)arg1;
- (id)_sendablePropertiesFromTrust:(struct __SecTrust *)arg1;
- (id)_copyPropertiesFromTrust:(struct __SecTrust *)arg1;
- (id)_sendablePropertiesFromProperties:(id)arg1;
- (id)_sendablePropertyFromProperty:(id)arg1;
- (struct __SecTrust *)trust;
- (void)setTrust:(struct __SecTrust *)arg1;
- (id)description;
- (void)dealloc;

@end


text:
We are glad you want to contribute to the `vagrant-parallels` plugin!
First of all,  clone this repository:

```
$ git clone https://github.com/Parallels/vagrant-parallels
$ cd vagrant-parallels
```

### Dependencies and Unit Tests

To hack on our plugin, you'll need a [Ruby interpreter](https://www.ruby-lang.org/en/downloads/)
(>= 2.0) and [Bundler](https://bundler.io/) which can be installed with a simple
`gem install bundler`. Afterwards, do the following:

```
$ bundle install
$ bundle exec rake
```

This will run the unit test suite, which should come back all green!
Then you're good to go!

If you want to run Vagrant without having to install the `vagrant-parallels`
gem, you may use `bundle exec`, like so:

```
$ bundle exec vagrant up --provider=parallels
```

### Building Provider from Source
To build a `vagrant-parallels` gem just run this command:

```
$ bundle exec rake build
```

The built "gem" package will appear in the `./pkg` folder.

Then, if you want to install plugin from your locally built "gem", use the
following commands:

```
$ vagrant plugin uninstall vagrant-parallels
$ vagrant plugin install pkg/vagrant-parallels-<version>.gem
```

Now that you have your own plugin installed, check it with the command
`vagrant plugin list`

### Sending a Pull Request
If you're ready to send your changes, please follow the next steps:

1. Fork the 'vagrant-parallels' repository and ad it as a new remote (`git add
remote my-fork <fork_url>`)
2. Create a branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am "Added a sweet feature"`)
4. Push the branch to your fork (`git push fork my-new-feature`)
5. Create a pull request from your `my-new-feature` branch into `master` of
`vagrant-parallels` repo

### Acceptance Tests

Vagrant also comes with an acceptance test suite that does black-box
tests of various Vagrant components. Note that these tests are **extremely
slow** because actual VMs are spun up and down. The full test suite can
take hours.

To run the acceptance test suite, first copy `vagrant-spec.config.example.rb`
to `vagrant-spec.config.rb` and modify it to valid values. The places you
should fill in are clearly marked. Highly recommend to download a box and
specify a local path to it.

Run acceptance tests:

```
$ bundle exec rake acceptance:run
...
```


text: This folder contains shell scripts that can be used as daily helpers for returning tasks.


text:
import GHC.ResponseFile

assertEqual :: (Eq a, Show a) => a -> a -> IO ()
assertEqual x y = if x == y
                  then return ()
                  else error $ "assertEqual: " ++ show x ++ " /= " ++ show y

-- Migrated from Haddock.

-- The first two elements are
--   1) a list of 'args' to encode and
--   2) a single string of the encoded args
-- The 3rd element is just a description for the tests.
testStrs :: [(([String], String), String)]
testStrs =
  [ ((["a simple command line"],
      "a\\ simple\\ command\\ line\n"),
     "the white-space, end with newline")

  , ((["arg 'foo' is single quoted"],
      "arg\\ \\'foo\\'\\ is\\ single\\ quoted\n"),
     "the single quotes as well")

  , ((["arg \"bar\" is double quoted"],
      "arg\\ \\\"bar\\\"\\ is\\ double\\ quoted\n"),
     "the double quotes as well" )

  , ((["arg \"foo bar\" has embedded whitespace"],
      "arg\\ \\\"foo\\ bar\\\"\\ has\\ embedded\\ whitespace\n"),
     "the quote-embedded whitespace")

  , ((["arg 'Jack said \\'hi\\'' has single quotes"],
      "arg\\ \\'Jack\\ said\\ \\\\\\'hi\\\\\\'\\'\\ has\\ single\\ quotes\n"),
     "the escaped single quotes")

  , ((["arg 'Jack said \\\"hi\\\"' has double quotes"],
      "arg\\ \\'Jack\\ said\\ \\\\\\\"hi\\\\\\\"\\'\\ has\\ double\\ quotes\n"),
     "the escaped double quotes")

  , ((["arg 'Jack said\\r\\n\\t \\\"hi\\\"' has other whitespace"],
      "arg\\ \\'Jack\\ said\\\\r\\\\n\\\\t\\ \\\\\\\"hi\\\\\\\"\\'\\ has\\ \
           \other\\ whitespace\n"),
     "the other whitespace")

  , (([ "--prologue=.\\dist\\.\\haddock-prologue3239114604.txt"
      , "--title=HaddockNewline-0.1.0.0: This has a\n\
        \newline yo."
      , "-BC:\\Program Files\\Haskell Platform\\lib"],
      "--prologue=.\\\\dist\\\\.\\\\haddock-prologue3239114604.txt\n\
      \--title=HaddockNewline-0.1.0.0:\\ This\\ has\\ a\\\n\
      \newline\\ yo.\n\
      \-BC:\\\\Program\\ Files\\\\Haskell\\ Platform\\\\lib\n"),
     "an actual haddock response file snippet with embedded newlines")
  ]

main :: IO ()
main = do
  -- Test escapeArgs
  mapM_ (\((ss1,s2),des) -> escapeArgs ss1 `assertEqual` s2) testStrs

  -- Test unescapeArgs
  mapM_ (\((ss1,s2),des) -> unescapeArgs s2 `assertEqual` ss1) testStrs

  -- Given unescaped quotes, it should pass-through,
  -- without escaping everything inside

  (filter (not . null) $
   unescapeArgs "this\\ is\\ 'not escape\\d \"inside\"'\\ yo\n")
   `assertEqual`
   ["this is not escaped \"inside\" yo"]

  (filter (not . null) $
   unescapeArgs "this\\ is\\ \"not escape\\d 'inside'\"\\ yo\n")
   `assertEqual`
   ["this is not escaped 'inside' yo"]


text:
from __future__ import unicode_literals

from django.apps import AppConfig

class CentroasistConfig(AppConfig):
    name = 'CentroAsist'


text:
<?xml version="1.0"?>

<!DOCTYPE topic SYSTEM "cruise_help.dtd">
<topic title="Materials API">

        APIs that notify Go Server when a commit has been made in Version Control and Go needs to trigger relevant pipelines.

    <note>
        NOTE: Only Go Administrators will be able to invoke this API
    </note>

                <col-header>URL format</col-header>
                <col-header>HTTP Verb</col-header>
                <col-header>Data</col-header>
                <col-header>Explanation</col-header>

            <row>
                <col>http://[server]:[port]/go/api/material/notify/svn</col>
                POST
                <col>uuid=[subversion repository UUID]</col>
                <col>Notifies Go that a commit has been made to a subversion repository with the given UUID</col>
            </row>

	<note>When using this feature, uncheck Poll for new changes or set autoUpdate flag in cruise configuration to false for the relevant subversion materials</note>
        <subsection title="Examples">
            <bullets>
                <item>We use curl, a command line tool for transferring files with URL syntax, in the following examples. Of course, you can use any HTTP client library.</item>
                <item>We assume that the URL of the Go server ishttp://goserver.com:8153/.
                </item>
                <item>We assume security has been switched on, and that there is an admin user named
                    admin
                    with the passwordpassword.
                </item>
            </bullets>

To notify Go via SVN post commit hook

                # File: [sub-version-repository]/hooks/post-commit
                # ================================================
                #!/bin/sh

                # POST-COMMIT HOOK
                #

                REPOS="$1"
                REV="$2"
                UUID=`svnlook uuid $1`

                curl -d "uuid=$UUID" -u admin:password http://goserver.com:8153/go/api/material/notify/svn

        </subsection>

</topic>


text:
local MaskedClassNLLCriterion, parent = torch.class('MaskedClassNLLCriterion', 'nn.Module')

function MaskedClassNLLCriterion:__init()
  parent.__init(self)
end

function MaskedClassNLLCriterion:updateOutput(input_)
  local input, target = unpack(input_)
  if input:dim() == 2 then
    local nll = 0
    local n = target:size(1)
    for i = 1, n do
      if target[i] ~= 0 then
        nll = nll - input[i][target[i]]
      end
    end
    self.output = nll / target:size(1)
    return self.output
  else
    error('input must be matrix! Note only batch mode is supported!')
  end
end

function MaskedClassNLLCriterion:updateGradInput(input_)
  local input, target = unpack(input_)
  -- print('self.gradInput', self.gradInput)
  self.gradInput:resizeAs(input)
  self.gradInput:zero()
  local er = -1 / target:size(1)
  if input:dim() == 2 then
    local n = target:size(1)
    for i = 1, n do
      if target[i] ~= 0 then
        self.gradInput[i][target[i]] = er
      end
    end
    return self.gradInput
  else
    error('input must be matrix! Note only batch mode is supported!')
  end
end


text:
icasp
====

Defines personnalized day to day functions & aliases used by icasp.

Aliases
-------

- `rr` reload that goddam conf I just edited
- `pg` quick google ping test.
- `ls` forces in "human readable to ls.
- `mdoors` ssh tunnel to home.
- `mproxy` ssh proxy socks.
- `zero-dev` activate zero-dev zero instance.
- `dqcowstatus` stats of docker qcow file until issue is fixed.
- `dscreen` docker list watcher.
- `myaliases` list all personnal aliases defined in prezto module
- `myprezto` CD to default prezto own module folder
- `myip` Get Public IP
- `flush` Clear macOS DNS cache
- `ddclean` All that stuff that should already be deleted
- `memclean` Let's flush our brain and cross fingers

Functions
---------

- `livestr` start twitch stream with livestreamer.
- `drun` run new docker container as daemon.
- `destroy` stop docker container and delete its data.
- `destroyall` remove all stopped containers data.
- `smartcompress` compress file using type given as arg.
- `smartextract` identify and use proper extraction command line depending on archive extension.
- `metaclean` Clear all macOS and MS Windows indexing files from location

Authors
-------

*The authors of this module should be contacted via the [issue tracker][1].*

  - [icasp](https://github.com/icasp)

[1]: https://github.com/icasp/prezto/issues


text:
namespace blink {

bool BluetoothCharacteristicProperties::broadcast() const {
  return properties & Property::kBroadcast;
}

bool BluetoothCharacteristicProperties::read() const {
  return properties & Property::kRead;
}

bool BluetoothCharacteristicProperties::writeWithoutResponse() const {
  return properties & Property::kWriteWithoutResponse;
}

bool BluetoothCharacteristicProperties::write() const {
  return properties & Property::kWrite;
}

bool BluetoothCharacteristicProperties::notify() const {
  return properties & Property::kNotify;
}

bool BluetoothCharacteristicProperties::indicate() const {
  return properties & Property::kIndicate;
}

bool BluetoothCharacteristicProperties::authenticatedSignedWrites() const {
  return properties & Property::kAuthenticatedSignedWrites;
}

bool BluetoothCharacteristicProperties::reliableWrite() const {
  return properties & Property::kReliableWrite;
}

bool BluetoothCharacteristicProperties::writableAuxiliaries() const {
  return properties & Property::kWritableAuxiliaries;
}

BluetoothCharacteristicProperties::BluetoothCharacteristicProperties(
    uint32_t device_properties) {
  DCHECK(device_properties != Property::kNone);
  properties = device_properties;
}

}  // namespace blink


text:
package robomaker

import (
	"github.com/aws/aws-sdk-go/private/protocol"
)

const (

	// ErrCodeConcurrentDeploymentException for service response error code
	// "ConcurrentDeploymentException".
	//
	// The failure percentage threshold percentage was met.
	ErrCodeConcurrentDeploymentException = "ConcurrentDeploymentException"

	// ErrCodeIdempotentParameterMismatchException for service response error code
	// "IdempotentParameterMismatchException".
	//
	// The request uses the same client token as a previous, but non-identical request.
	// Do not reuse a client token with different requests, unless the requests
	// are identical.
	ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// AWS RoboMaker experienced a service issue. Try your call again.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeInvalidParameterException for service response error code
	// "InvalidParameterException".
	//
	// A parameter specified in a request is not valid, is unsupported, or cannot
	// be used. The returned message provides an explanation of the error value.
	ErrCodeInvalidParameterException = "InvalidParameterException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// The requested resource exceeds the maximum number allowed, or the number
	// of concurrent stream requests exceeds the maximum number allowed.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeResourceAlreadyExistsException for service response error code
	// "ResourceAlreadyExistsException".
	//
	// The specified resource already exists.
	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The specified resource does not exist.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeServiceUnavailableException for service response error code
	// "ServiceUnavailableException".
	//
	// The request has failed due to a temporary failure of the server.
	ErrCodeServiceUnavailableException = "ServiceUnavailableException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// AWS RoboMaker is temporarily unable to process the request. Try your call
	// again.
	ErrCodeThrottlingException = "ThrottlingException"
)

var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
	"ConcurrentDeploymentException":        newErrorConcurrentDeploymentException,
	"IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException,
	"InternalServerException":              newErrorInternalServerException,
	"InvalidParameterException":            newErrorInvalidParameterException,
	"LimitExceededException":               newErrorLimitExceededException,
	"ResourceAlreadyExistsException":       newErrorResourceAlreadyExistsException,
	"ResourceNotFoundException":            newErrorResourceNotFoundException,
	"ServiceUnavailableException":          newErrorServiceUnavailableException,
	"ThrottlingException":                  newErrorThrottlingException,
}


text:
<?php

namespace backend\controllers;

use Yii;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use yii\helpers\Json;
use yii\helpers\Url;

use app\models\SdSignin;
use app\models\SdSigninSearch;

/**
 * SdSigninController implements the CRUD actions for SdSignin model.
 */
class SdSigninController extends Controller
{
    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            'access' => [
                'class' => AccessControl::className(),
                'rules' => [
                    [
                        'actions' => ['view', 'index', 'create', 'update', 'delete'],
                        'allow' => true,
                        'roles' => ['@'],
                    ],
                ],
            ],
            'verbs' => [
                'class' => VerbFilter::className(),
                'actions' => [
                    'delete' => ['POST'],
                ],
            ],
        ];
    }

    /**
     * Lists all SdSignin models.
     * @return mixed
     */
    public function actionIndex()
    {
        if (Yii::$app->request->isAjax) {
            $model = $this->findModel(Yii::$app->request->post('editableKey'));

            if ($model != null) {
                $post = [];
                $posted = current($_POST['SdSignin']);
                $post['SdSignin'] = $posted;
                if ($model->load($post)) {
                    $model->save();
                    // no message payload can be provided, as this would be regarded
                    // as an error in GridView PJax
                    return Json::encode(['success' => true]);
                }
            }

            return Json::encode(['success' => false, 'message' => Yii::t('app', '无法完成操作')]);
        }

        $searchModel = new SdSigninSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
        ]);
    }

    /**
     * Displays a single SdSignin model.
     * @param integer $id
     * @return mixed
     */
    public function actionView($id)
    {
        $model = $this->findModel($id);

        if ($model->load(Yii::$app->request->post()) && $model->save()) {
            Yii::$app->session->setFlash('kv-detail-success', Yii::t('app', '保存成功'));
            return $this->redirect(['view', 'id'=>$id]);
        }

        return $this->render('view', ['model' => $model]);
    }

    /**
     * Creates a new SdSignin model.
     * If creation is successful, the browser will be redirected to the 'view' page.
     * @return mixed
     */
    public function actionCreate()
    {
        $model = new SdSignin();

        if ($model->load(Yii::$app->request->post()) && $model->save()) {
            return $this->redirect(['index']);
        } else {
            return $this->render('create', ['model' => $model]);
        }
    }

    /**
     * Updates an existing SdSignin model.
     * If update is successful, the browser will be redirected to the 'view' page.
     * @param integer $id
     * @return mixed
     */
    public function actionUpdate($id)
    {
        $model = $this->findModel($id);

        if ($model->load(Yii::$app->request->post()) && $model->save()) {
            return $this->redirect(['index']);
        } else {
            return $this->render('update', ['model' => $model]);
        }
    }

    /**
     * Deletes an existing SdSignin model.
     * If deletion is successful, the browser will be redirected to the 'index' page.
     * @param integer $id
     * @return mixed
     */
    public function actionDelete($id)
    {
        if (Yii::$app->request->isAjax) {
            if ($this->findModel($id)->delete()) {
                return Json::encode([
                    'success' => true,
                    'messages' => [
                        'kv-detail-info' => Yii::t('app', '删除成功') . '# ' . $id .
                            '' . ' ' .
                            '' .
                            Yii::t('app', '点击继续') . '',
                    ],
                ]);
            } else {
                return Json::encode([
                    'success' => false,
                    'messages' => [
                        'kv-detail-error' => Yii::t('app', '无法删除') . '# ' . $id . '.',
                    ]
                ]);
            }
        }
        $this->findModel($id)->delete();

        return $this->redirect(['index']);
    }

    /**
     * Finds the SdSignin model based on its primary key value.
     * If the model is not found, a 404 HTTP exception will be thrown.
     * @param integer $id
     * @return SdSignin the loaded model
     * @throws NotFoundHttpException if the model cannot be found
     */
    protected function findModel($id)
    {
        if (($model = SdSignin::findOne($id)) !== null) {
            return $model;
        } else {
            throw new NotFoundHttpException(Yii::t('app', '请求的页面不存在.'));
        }
    }
}


text:
<!DOCTYPE html>

  <link rel="stylesheet" type="text/css" href="js/goog/css/common.css"/>
  <link rel="stylesheet" type="text/css" href="js/goog/css/dialog.css"/>
  <link rel="stylesheet" type="text/css" href="js/goog/css/tooltip.css"/>
  <link rel="stylesheet" type="text/css" href="js/goog/css/flatbutton.css"/>
  <link rel="stylesheet" type="text/css" href="js/goog/css/tab.css"/>
  <link rel="stylesheet" type="text/css" href="js/goog/css/tabbar.css"/>
  <link rel="stylesheet" type="text/css" href="js/goog/css/menu.css">
  <link rel="stylesheet" type="text/css" href="js/goog/css/menuitem.css">
  <link rel="stylesheet" type="text/css" href="js/goog/css/menuseparator.css">
  <link rel="stylesheet" type="text/css" href="js/goog/css/submenu.css">

  <link rel="stylesheet" type="text/css" href="css/main.css"/>
  <link rel="stylesheet" type="text/css" href="css/browser.css"/>

 Dark Matter βήτα

	  Address?:
	  <input id="address-txt" type="text" size="60"/>


text:
import java.io._

object GenerateInput {
    def main(args : Array[String]) {
        if (args.length != 3) {
            println("usage: GenerateInput output-dir n-output-files n-points-per-file")
            return;
        }

        val outputDir = args(0)
        val nOutputFiles = args(1).toInt
        val pointsPerFile = args(2).toInt
        val r = new scala.util.Random
        val range = 100.0

        for (f <- 0 until nOutputFiles) {
            val writer = new PrintWriter(new File(outputDir + "/input." + f))

            for (p <- 0 until pointsPerFile) {
                val x = r.nextDouble * range
                val y = r.nextDouble * range
                val z = r.nextDouble * range
                writer.write(x.toString + " " + y.toString + " " + z.toString +
                        "\n")
            }
            writer.close
        }
    }
}


text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/longrunning/operations.proto

package com.google.longrunning;

/**
 * Protobuf type {@code google.longrunning.ListOperationsResponse}
 *
 *

 * The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
 *

 */
public  final class ListOperationsResponse extends
    com.google.protobuf.GeneratedMessage implements
    // @@protoc_insertion_point(message_implements:google.longrunning.ListOperationsResponse)
    ListOperationsResponseOrBuilder {
  // Use ListOperationsResponse.newBuilder() to construct.
  private ListOperationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
    super(builder);
  }
  private ListOperationsResponse() {
    operations_ = java.util.Collections.emptyList();
    nextPageToken_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private ListOperationsResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
              operations_ = new java.util.ArrayList<com.google.longrunning.Operation>();
              mutable_bitField0_ |= 0x00000001;
            }
            operations_.add(input.readMessage(com.google.longrunning.Operation.PARSER, extensionRegistry));
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();

            nextPageToken_ = bs;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e.getMessage()).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
        operations_ = java.util.Collections.unmodifiableList(operations_);
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.longrunning.OperationsProto.internal_static_google_longrunning_ListOperationsResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.longrunning.OperationsProto.internal_static_google_longrunning_ListOperationsResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.longrunning.ListOperationsResponse.class, com.google.longrunning.ListOperationsResponse.Builder.class);
  }

  public static final com.google.protobuf.Parser<ListOperationsResponse> PARSER =
      new com.google.protobuf.AbstractParser<ListOperationsResponse>() {
    public ListOperationsResponse parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new ListOperationsResponse(input, extensionRegistry);
    }
  };

  @java.lang.Override
  public com.google.protobuf.Parser<ListOperationsResponse> getParserForType() {
    return PARSER;
  }

  private int bitField0_;
  public static final int OPERATIONS_FIELD_NUMBER = 1;
  private java.util.List<com.google.longrunning.Operation> operations_;
  /**
   * repeated .google.longrunning.Operation operations = 1;
   *
   *

   * A list of operations that match the specified filter in the request.
   *

   */
  public java.util.List<com.google.longrunning.Operation> getOperationsList() {
    return operations_;
  }
  /**
   * repeated .google.longrunning.Operation operations = 1;
   *
   *

   * A list of operations that match the specified filter in the request.
   *

   */
  public java.util.List<? extends com.google.longrunning.OperationOrBuilder>
      getOperationsOrBuilderList() {
    return operations_;
  }
  /**
   * repeated .google.longrunning.Operation operations = 1;
   *
   *

   * A list of operations that match the specified filter in the request.
   *

   */
  public int getOperationsCount() {
    return operations_.size();
  }
  /**
   * repeated .google.longrunning.Operation operations = 1;
   *
   *

   * A list of operations that match the specified filter in the request.
   *

   */
  public com.google.longrunning.Operation getOperations(int index) {
    return operations_.get(index);
  }
  /**
   * repeated .google.longrunning.Operation operations = 1;
   *
   *

   * A list of operations that match the specified filter in the request.
   *

   */
  public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(
      int index) {
    return operations_.get(index);
  }

  public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
  private java.lang.Object nextPageToken_;
  /**
   * optional string next_page_token = 2;
   *
   *

   * The standard List next-page token.
   *

   */
  public java.lang.String getNextPageToken() {
    java.lang.Object ref = nextPageToken_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        nextPageToken_ = s;
      }
      return s;
    }
  }
  /**
   * optional string next_page_token = 2;
   *
   *

   * The standard List next-page token.
   *

   */
  public com.google.protobuf.ByteString
      getNextPageTokenBytes() {
    java.lang.Object ref = nextPageToken_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      nextPageToken_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    getSerializedSize();
    for (int i = 0; i < operations_.size(); i++) {
      output.writeMessage(1, operations_.get(i));
    }
    if (!getNextPageTokenBytes().isEmpty()) {
      output.writeBytes(2, getNextPageTokenBytes());
    }
  }

  private int memoizedSerializedSize = -1;
  public int getSerializedSize() {
    int size = memoizedSerializedSize;
    if (size != -1) return size;

    size = 0;
    for (int i = 0; i < operations_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, operations_.get(i));
    }
    if (!getNextPageTokenBytes().isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(2, getNextPageTokenBytes());
    }
    memoizedSerializedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  public static com.google.longrunning.ListOperationsResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.longrunning.ListOperationsResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.longrunning.ListOperationsResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.longrunning.ListOperationsResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.longrunning.ListOperationsResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return PARSER.parseFrom(input);
  }
  public static com.google.longrunning.ListOperationsResponse parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return PARSER.parseFrom(input, extensionRegistry);
  }
  public static com.google.longrunning.ListOperationsResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return PARSER.parseDelimitedFrom(input);
  }
  public static com.google.longrunning.ListOperationsResponse parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return PARSER.parseDelimitedFrom(input, extensionRegistry);
  }
  public static com.google.longrunning.ListOperationsResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return PARSER.parseFrom(input);
  }
  public static com.google.longrunning.ListOperationsResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return PARSER.parseFrom(input, extensionRegistry);
  }

  public static Builder newBuilder() { return new Builder(); }
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder(com.google.longrunning.ListOperationsResponse prototype) {
    return newBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() { return newBuilder(this); }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code google.longrunning.ListOperationsResponse}
   *
   *

   * The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
   *

   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessage.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.longrunning.ListOperationsResponse)
      com.google.longrunning.ListOperationsResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.longrunning.OperationsProto.internal_static_google_longrunning_ListOperationsResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.longrunning.OperationsProto.internal_static_google_longrunning_ListOperationsResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.longrunning.ListOperationsResponse.class, com.google.longrunning.ListOperationsResponse.Builder.class);
    }

    // Construct using com.google.longrunning.ListOperationsResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        getOperationsFieldBuilder();
      }
    }
    public Builder clear() {
      super.clear();
      if (operationsBuilder_ == null) {
        operations_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        operationsBuilder_.clear();
      }
      nextPageToken_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.longrunning.OperationsProto.internal_static_google_longrunning_ListOperationsResponse_descriptor;
    }

    public com.google.longrunning.ListOperationsResponse getDefaultInstanceForType() {
      return com.google.longrunning.ListOperationsResponse.getDefaultInstance();
    }

    public com.google.longrunning.ListOperationsResponse build() {
      com.google.longrunning.ListOperationsResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.longrunning.ListOperationsResponse buildPartial() {
      com.google.longrunning.ListOperationsResponse result = new com.google.longrunning.ListOperationsResponse(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (operationsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          operations_ = java.util.Collections.unmodifiableList(operations_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.operations_ = operations_;
      } else {
        result.operations_ = operationsBuilder_.build();
      }
      result.nextPageToken_ = nextPageToken_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.longrunning.ListOperationsResponse) {
        return mergeFrom((com.google.longrunning.ListOperationsResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.longrunning.ListOperationsResponse other) {
      if (other == com.google.longrunning.ListOperationsResponse.getDefaultInstance()) return this;
      if (operationsBuilder_ == null) {
        if (!other.operations_.isEmpty()) {
          if (operations_.isEmpty()) {
            operations_ = other.operations_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureOperationsIsMutable();
            operations_.addAll(other.operations_);
          }
          onChanged();
        }
      } else {
        if (!other.operations_.isEmpty()) {
          if (operationsBuilder_.isEmpty()) {
            operationsBuilder_.dispose();
            operationsBuilder_ = null;
            operations_ = other.operations_;
            bitField0_ = (bitField0_ & ~0x00000001);
            operationsBuilder_ =
              com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                 getOperationsFieldBuilder() : null;
          } else {
            operationsBuilder_.addAllMessages(other.operations_);
          }
        }
      }
      if (!other.getNextPageToken().isEmpty()) {
        nextPageToken_ = other.nextPageToken_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.longrunning.ListOperationsResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.longrunning.ListOperationsResponse) e.getUnfinishedMessage();
        throw e;
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<com.google.longrunning.Operation> operations_ =
      java.util.Collections.emptyList();
    private void ensureOperationsIsMutable() {
      if (!((bitField0_ & 0x00000001) == 0x00000001)) {
        operations_ = new java.util.ArrayList<com.google.longrunning.Operation>(operations_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilder<
        com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder> operationsBuilder_;

    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public java.util.List<com.google.longrunning.Operation> getOperationsList() {
      if (operationsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(operations_);
      } else {
        return operationsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public int getOperationsCount() {
      if (operationsBuilder_ == null) {
        return operations_.size();
      } else {
        return operationsBuilder_.getCount();
      }
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public com.google.longrunning.Operation getOperations(int index) {
      if (operationsBuilder_ == null) {
        return operations_.get(index);
      } else {
        return operationsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public Builder setOperations(
        int index, com.google.longrunning.Operation value) {
      if (operationsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOperationsIsMutable();
        operations_.set(index, value);
        onChanged();
      } else {
        operationsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public Builder setOperations(
        int index, com.google.longrunning.Operation.Builder builderForValue) {
      if (operationsBuilder_ == null) {
        ensureOperationsIsMutable();
        operations_.set(index, builderForValue.build());
        onChanged();
      } else {
        operationsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public Builder addOperations(com.google.longrunning.Operation value) {
      if (operationsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOperationsIsMutable();
        operations_.add(value);
        onChanged();
      } else {
        operationsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public Builder addOperations(
        int index, com.google.longrunning.Operation value) {
      if (operationsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOperationsIsMutable();
        operations_.add(index, value);
        onChanged();
      } else {
        operationsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public Builder addOperations(
        com.google.longrunning.Operation.Builder builderForValue) {
      if (operationsBuilder_ == null) {
        ensureOperationsIsMutable();
        operations_.add(builderForValue.build());
        onChanged();
      } else {
        operationsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public Builder addOperations(
        int index, com.google.longrunning.Operation.Builder builderForValue) {
      if (operationsBuilder_ == null) {
        ensureOperationsIsMutable();
        operations_.add(index, builderForValue.build());
        onChanged();
      } else {
        operationsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public Builder addAllOperations(
        java.lang.Iterable<? extends com.google.longrunning.Operation> values) {
      if (operationsBuilder_ == null) {
        ensureOperationsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, operations_);
        onChanged();
      } else {
        operationsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public Builder clearOperations() {
      if (operationsBuilder_ == null) {
        operations_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        operationsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public Builder removeOperations(int index) {
      if (operationsBuilder_ == null) {
        ensureOperationsIsMutable();
        operations_.remove(index);
        onChanged();
      } else {
        operationsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public com.google.longrunning.Operation.Builder getOperationsBuilder(
        int index) {
      return getOperationsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(
        int index) {
      if (operationsBuilder_ == null) {
        return operations_.get(index);  } else {
        return operationsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public java.util.List<? extends com.google.longrunning.OperationOrBuilder>
         getOperationsOrBuilderList() {
      if (operationsBuilder_ != null) {
        return operationsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(operations_);
      }
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public com.google.longrunning.Operation.Builder addOperationsBuilder() {
      return getOperationsFieldBuilder().addBuilder(
          com.google.longrunning.Operation.getDefaultInstance());
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public com.google.longrunning.Operation.Builder addOperationsBuilder(
        int index) {
      return getOperationsFieldBuilder().addBuilder(
          index, com.google.longrunning.Operation.getDefaultInstance());
    }
    /**
     * repeated .google.longrunning.Operation operations = 1;
     *
     *

     * A list of operations that match the specified filter in the request.
     *

     */
    public java.util.List<com.google.longrunning.Operation.Builder>
         getOperationsBuilderList() {
      return getOperationsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilder<
        com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>
        getOperationsFieldBuilder() {
      if (operationsBuilder_ == null) {
        operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
            com.google.longrunning.Operation, com.google.longrunning.Operation.Builder, com.google.longrunning.OperationOrBuilder>(
                operations_,
                ((bitField0_ & 0x00000001) == 0x00000001),
                getParentForChildren(),
                isClean());
        operations_ = null;
      }
      return operationsBuilder_;
    }

    private java.lang.Object nextPageToken_ = "";
    /**
     * optional string next_page_token = 2;
     *
     *

     * The standard List next-page token.
     *

     */
    public java.lang.String getNextPageToken() {
      java.lang.Object ref = nextPageToken_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          nextPageToken_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string next_page_token = 2;
     *
     *

     * The standard List next-page token.
     *

     */
    public com.google.protobuf.ByteString
        getNextPageTokenBytes() {
      java.lang.Object ref = nextPageToken_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nextPageToken_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string next_page_token = 2;
     *
     *

     * The standard List next-page token.
     *

     */
    public Builder setNextPageToken(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }

      nextPageToken_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string next_page_token = 2;
     *
     *

     * The standard List next-page token.
     *

     */
    public Builder clearNextPageToken() {

      nextPageToken_ = getDefaultInstance().getNextPageToken();
      onChanged();
      return this;
    }
    /**
     * optional string next_page_token = 2;
     *
     *

     * The standard List next-page token.
     *

     */
    public Builder setNextPageTokenBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }

      nextPageToken_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    // @@protoc_insertion_point(builder_scope:google.longrunning.ListOperationsResponse)
  }

  // @@protoc_insertion_point(class_scope:google.longrunning.ListOperationsResponse)
  private static final com.google.longrunning.ListOperationsResponse defaultInstance;static {
    defaultInstance = new com.google.longrunning.ListOperationsResponse();
  }

  public static com.google.longrunning.ListOperationsResponse getDefaultInstance() {
    return defaultInstance;
  }

  public com.google.longrunning.ListOperationsResponse getDefaultInstanceForType() {
    return defaultInstance;
  }

}


text:
package org.apache.kafka.streams.kstream.internals.graph;

import org.apache.kafka.streams.processor.StateStore;
import org.apache.kafka.streams.processor.internals.InternalTopologyBuilder;
import org.apache.kafka.streams.state.StoreBuilder;

public class StateStoreNode<S extends StateStore> extends StreamsGraphNode {

    protected final StoreBuilder<S> storeBuilder;

    public StateStoreNode(final StoreBuilder<S> storeBuilder) {
        super(storeBuilder.name());

        this.storeBuilder = storeBuilder;
    }

    @Override
    public void writeToTopology(final InternalTopologyBuilder topologyBuilder) {

        topologyBuilder.addStateStore(storeBuilder);
    }

    @Override
    public String toString() {
        return "StateStoreNode{" +
               " name='" + storeBuilder.name() +  '\'' +
               ", logConfig=" + storeBuilder.logConfig() +
               ", loggingEnabled='" + storeBuilder.loggingEnabled() + '\'' +
               "} ";
    }
}


text:
import re,urllib,urlparse,base64,json
from liveresolver.modules import client,constants,liveresolver_utils
from liveresolver.modules.log_utils import log
import requests
def resolve(url):
    #try:
        s = requests.Session()

        ref = liveresolver_utils.remove_referer(url)
        result = s.get(url, headers={'User-agent':client.agent()}).text
        log(s.cookies)

    #except:
    #    return


text:
from distutils.core import setup

setup(name='ocookie',
    version='0.1.1',
    description='Comprehensive cookie library',
    author='Oleg Pudeyev',
    author_email='oleg@bsdpower.com',
    url='http://github.com/p/ocookie',
    packages=['ocookie'],
    data_files=['LICENSE', 'README.rst'],
)


text:
package com.izhbg.typz.database.service;

import java.util.List;

import com.izhbg.typz.database.dto.MainTableChart;

public interface MainTableChartService {

	/**
	 * 根据maintableid 获取主表相关的图表信息
	 * @param maintableid
	 * @return
	 * @throws Exception
	 */
	public List<MainTableChart> findByMainTableId(String maintableid) throws Exception;
	/**
	 * 根据主键获取图表信息
	 * @param maintablechartid
	 * @return
	 * @throws Exception
	 */
	public MainTableChart findByMainTableChartId(String maintablechartid) throws Exception;
	/**
	 * 添加主表图信息
	 * @param mainTableChart
	 * @throws Exception
	 */
	public void add(MainTableChart mainTableChart) throws Exception;
	/**
	 * 更新图表信息
	 * @param mainTableChart
	 * @throws Exception
	 */
	public void update(MainTableChart mainTableChart) throws Exception;
	/**
	 * 删除图表信息
	 * @param maintablechartId
	 * @throws Exception
	 */
	public void delete(String maintablechartId) throws Exception;
}


text:
package org.shaon.android.tictactoe.model;

/**
 * Represents a pair of action and state. Successor list of a state is a
 * a list of ActionState. An object of this class means
 * the corresponding state is achieved with this action.
 *
 * @author fahad
 */
public class ActionState {

	private State state;
	private Action action;

	public ActionState(State state, Action action) {
		this.state = state;
		this.action = action;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}

	public Action getAction() {
		return action;
	}

	public void setAction(Action action) {
		this.action = action;
	}

	@Override
	public String toString() {

		StringBuilder stringBuilder = new StringBuilder();

		stringBuilder.append("Action: [");
		stringBuilder.append(action.getPlayer());
		stringBuilder.append(" at ");
		stringBuilder.append("Row - ");
		stringBuilder.append(action.getRow());
		stringBuilder.append(", Column - ");
		stringBuilder.append(action.getColumn());
		stringBuilder.append("]");
		stringBuilder.append("\n");
		stringBuilder.append(state.toString());

		return stringBuilder.toString();
	}
}


text:
'use strict';

const chai = require('chai');
const expect = chai.expect;
const Support = require(__dirname + '/../support');
const current = Support.sequelize;
const sinon = require('sinon');
const DataTypes = require(__dirname + '/../../../lib/data-types');
const Utils = require('../../../lib/utils.js');
const sequelizeErrors = require('../../../lib/errors');

describe(Support.getTestDialectTeaser('Model'), () => {
  describe('warnOnInvalidOptions', () => {
    beforeEach(() => {
      this.loggerSpy = sinon.spy(Utils, 'warn');
    });

    afterEach(() => {
      this.loggerSpy.restore();
    });

    it('Warns the user if they use a model attribute without a where clause', () => {
      const User = current.define('User', {firstName: 'string'});
      User.warnOnInvalidOptions({firstName: 12, order: []}, ['firstName']);
      const expectedError = 'Model attributes (firstName) passed into finder method options of model User, but the options.where object is empty. Did you forget to use options.where?';
      expect(this.loggerSpy.calledWith(expectedError)).to.equal(true);
    });

    it('Does not warn the user if they use a model attribute without a where clause that shares its name with a query option', () => {
      const User = current.define('User', {order: 'string'});
      User.warnOnInvalidOptions({order: []}, ['order']);
      expect(this.loggerSpy.called).to.equal(false);
    });

    it('Does not warn the user if they use valid query options', () => {
      const User = current.define('User', {order: 'string'});
      User.warnOnInvalidOptions({where: {order: 1}, order: []});
      expect(this.loggerSpy.called).to.equal(false);
    });
  });

  describe('method findAll', () => {
    const Model = current.define('model', {
      name: DataTypes.STRING
    }, { timestamps: false });

    before(() => {
      this.stub = sinon.stub(current.getQueryInterface(), 'select').callsFake(() => {
        return Model.build({});
      });
      this.warnOnInvalidOptionsStub = sinon.stub(Model, 'warnOnInvalidOptions');
    });

    beforeEach(() => {
      this.stub.resetHistory();
      this.warnOnInvalidOptionsStub.resetHistory();
    });

    after(() => {
      this.stub.restore();
      this.warnOnInvalidOptionsStub.restore();
    });

    describe('handles input validation', () => {
      it('calls warnOnInvalidOptions', () => {
        Model.findAll();
        expect(this.warnOnInvalidOptionsStub.calledOnce).to.equal(true);
      });

      it('Throws an error when the attributes option is formatted incorrectly', () => {
        const errorFunction = Model.findAll.bind(Model, {attributes: 'name'});
        expect(errorFunction).to.throw(sequelizeErrors.QueryError);
      });
    });

    describe('attributes include / exclude', () => {
      it('allows me to include additional attributes', () => {
        return Model.findAll({
          attributes: {
            include: ['foobar']
          }
        }).then(() => {
          expect(this.stub.getCall(0).args[2].attributes).to.deep.equal([
            'id',
            'name',
            'foobar'
          ]);
        });
      });

      it('allows me to exclude attributes', () => {
        return Model.findAll({
          attributes: {
            exclude: ['name']
          }
        }).then(() => {
          expect(this.stub.getCall(0).args[2].attributes).to.deep.equal([
            'id'
          ]);
        });
      });

      it('include takes precendence over exclude', () => {
        return Model.findAll({
          attributes: {
            exclude: ['name'],
            include: ['name']
          }
        }).then(() => {
          expect(this.stub.getCall(0).args[2].attributes).to.deep.equal([
            'id',
            'name'
          ]);
        });
      });

      it('works for models without PK #4607', () => {
        const Model = current.define('model', {}, { timestamps: false });
        const Foo = current.define('foo');
        Model.hasOne(Foo);

        Model.removeAttribute('id');

        return Model.findAll({
          attributes: {
            include: ['name']
          },
          include: [Foo]
        }).then(() => {
          expect(this.stub.getCall(0).args[2].attributes).to.deep.equal([
            'name'
          ]);
        });
      });

    });
  });
});


text:
module Hatolence
  class VictimCount
    include HttpClient
    include ParamsBuilder

    def self.all
      count = self.new
      count.all
    end

    def self.filter_by_bias(*bias)
      count = self.new
      count.filter_by_bias(bias)
    end

    def self.filter_by_offense(*offense)
      count = self.new
      count.filter_by_offense(offense)
    end

    def all
      result = get_resource
      JSON.parse(result)
    end

    def filter_by_bias(bias)
      result = get_resource(biases(bias))
      JSON.parse(result)
    end

    def filter_by_offense(offense)
      result = get_resource(offenses(offense))
      JSON.parse(result)
    end

    def biases bias
      params("bias", bias)
    end

    def offenses offense
      params("offense", offense)
    end

  end
end


text:
package banner

import (
	"fmt"
	"log"
	"strings"
)

const ascii_offset = 32
const first_ascii = ' '
const last_ascii = '~'

type figure struct {
	phrase string
	font
	strict bool
}

func NewFigure(phrase, fontName string, strict bool) figure {
	font := newFont(fontName)
	if font.reverse {
		phrase = reverse(phrase)
	}
	return figure{phrase, font, strict}
}

func PrintNewFigure(phrase, fontName string, strict bool) {
	font := newFont(fontName)
	if font.reverse {
		phrase = reverse(phrase)
	}
	fig := figure{phrase, font, strict}
	for _, printRow := range fig.Slicify() {
		fmt.Println(printRow)
	}
}

func GetNewFigure(phrase, fontName string, strict bool) string {
	str := ""
	font := newFont(fontName)
	if font.reverse {
		phrase = reverse(phrase)
	}
	fig := figure{phrase, font, strict}
	for _, printRow := range fig.Slicify() {
		str += printRow + "\n"
	}
	str = strings.TrimRight(str, "\n")
	return str
}

func (figure figure) Slicify() (rows []string) {
	for r := 0; r < figure.font.height; r++ {
		printRow := ""
		for _, char := range figure.phrase {
			if char < first_ascii || char > last_ascii {
				if figure.strict {
					log.Fatal("invalid input.")
				} else {
					char = '?'
				}
			}
			fontIndex := char - ascii_offset
			charRowText := scrub(figure.font.letters[fontIndex][r], figure.font.hardblank)
			printRow += charRowText
		}
		if r < figure.font.baseline || len(strings.TrimSpace(printRow)) > 0 {
			rows = append(rows, printRow)
		}
	}
	return rows
}

func scrub(text string, char byte) string {
	return strings.Replace(text, string(char), " ", -1)
}

func reverse(s string) string {
	runes := []rune(s)
	for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
		runes[i], runes[j] = runes[j], runes[i]
	}
	return string(runes)
}


text:
{% extends 'base.html' %}
{{ form.media }}
{% block title %}

Add DR Event

        {% endblock %}

{% load staticfiles %}
{% load bootstrap_tags %}
{% load widget_tweaks %}
{% load admin_static %}
{% load static %}
 {% block heading %}
        Add DR Event
    {% endblock heading %}
{% block content %}
    <link rel="stylesheet" type="text/css" href="{% static 'css/dr_event_create.css' %}">

    {% if form.non_field_errors %}

                {% for err in form.non_field_errors %}

{{ form.utility_id.errors.as_text }}

                {% endfor %}

    {% endif %}
        {% if form.errors %}

                {% for key, value in form.errors.items %}
                    {{ value.as_text }}

                    {% endfor %}

    {% endif %}

  <form method="POST">
      {% csrf_token %}

                DR Program
                {{ form.dr_program }}

                First pick a program, and the 'Sites' will auto-populate

                 {{ form.sites.label }}

                {{ form.sites }}

                Notification
                {{ form.scheduled_notification_time }}

                Start
                {{ form.start }}

                End
                {{ form.end }}

          {{ form.status  }}
          {{ form.last_status_time }}
          {{ form.modification_number }}

                <button type="submit" class="btn btn-lg btn-primary" name="save">Save</button>
                <button type="reset" class="btn btn-lg btn-primary" name="reset">Reset</button>

    </form>

{% endblock %}


text:
/*jshint esversion: 6 */

/**
* Instantiate a new vtil object
*
**/
var VTILAPP = VTILAPP || Object.create(null);

var EventPlanner = (function(document) {
	'use strict';

	const _totalInputs = 11;

	let _eventNameEl = 				document.getElementById('event-name');
	let _eventTypeEl = 				document.getElementById('event-type');
	let _eventHostEl = 				document.getElementById('event-host');
	let _startDateEl = 				document.getElementById('start-date');
	let _endDateEl =				document.getElementById('end-date');
	let _contentEl = 				document.getElementById('vtil-content');
	let _inputEl = 					document.getElementById('vtil-input');
	let _locationInputEl =			document.getElementById('location-input');
	let _streetNumberEl =			document.getElementById('street-number');
	let _cityEl =					document.getElementById('city');
	let _stateEl =					document.getElementById('state');
	let _postalCodeEl =				document.getElementById('postal-code');
	let _countryEl =				document.getElementById('country');
	let _messageEl =				document.getElementById('message');
	let _progressBarEl =			document.getElementById('progress-bar');
	let _progressBarLabelEl =		document.getElementById('progress-bar-label');
	let _submitEventButton = 		document.getElementById('submit-event-button');
	let _addButton =				document.getElementById('add-button');
	let _eventPlannerSpinnerEl =	document.getElementById('event-planner-spinner');
	let _eventHostDiv =				document.getElementById('event-host-div');
	let _locationInputDiv =			document.getElementById('location-input-div');
	let _addressDivEl =				document.getElementById('address-div');
	let _cityDivEl =				document.getElementById('city-div');
	let _stateDivEl =				document.getElementById('state-div');
	let _zipDivEl = 				document.getElementById('zip-div');
	let _countryDivEl =				document.getElementById('country-div');
	let _locationButtonEl =			document.getElementById('location-button');
	let _startDateErrorEl =			document.getElementById('start-date-error');
	let _endDateErrorEl =			document.getElementById('end-date-error');
	let _locationValidationEl =		document.getElementById('location-validation');
	let _beginDateDivEl =			document.getElementById('begin-date-div');
	let _endDateDivEl =				document.getElementById('end-date-div');
	let _guestErrorEl = 			document.getElementById('guest-error');
	let _addressList = [_streetNumberEl, _cityEl, _stateEl, _postalCodeEl, _countryEl];
	let _autocomplete;

	_submitEventButton.disabled = true;

	VTILAPP.vtil = new VTIL(_contentEl, _inputEl, 'VTILAPP.vtil');

	/**
	 * Clear guests
	 *
	 *
	 */
	function _clearGuests() {

		var tags = VTILAPP.vtil.tags.slice(0);

		tags.forEach(function(tag) {

			VTILAPP.vtil.removeTag(tag.id);

		});

	}

	/**
	 * Clear the address elements
	 *
	 */
	function _clearAddress() {

		_addressList.forEach(function(addressEl) {

			addressEl.value = 		'';

		});

	}

	/**
	 * Clear the elements in the form
	 *
	 */
	function _clearElements() {

		_eventNameEl.value = 				'';
		_eventTypeEl.value = 				'';
		_eventHostEl.value = 				'';
		_startDateEl.value = 				'';
		_endDateEl.value = 					'';
		_locationInputEl.value = 			'';
		_messageEl.value = 					'';
		_progressBarEl.value =				0;
		_progressBarLabelEl.innerHTML = 	'0 of ' + _totalInputs.toString() + ' fields completed';
		_clearAddress();
		_clearGuests();

	}

	/**
	 * Fills in the address when the location is retrieved
	 *
	 */
	function _fillInAddress() {
	  // Get the place details from the autocomplete object.
	  let place = _autocomplete.getPlace();

	  _clearAddress(false);

	  _addressDivEl.className += ' is-invalid';
	  _cityDivEl.className += ' is-invalid';
	  _stateDivEl.className += ' is-invalid';
	  _zipDivEl.className +=  ' is-invalid';
	  _countryDivEl.className +=  ' is-invalid';

	  // Get each component of the address from the place details
	  // and fill the corresponding field on the form.
	  for (let component of place.address_components) {

	    let addressType = component.types[0];

	    switch(addressType) {

	    	//Address1
	    	case 'street_number':
	    		_streetNumberEl.value = component.short_name;
	    		break;

	    	//Address2
	    	case 'route':
	    		_streetNumberEl.value += ' ' + component.short_name;
	    		_addressDivEl.className = 'mdl-textfield mdl-js-textfield mdl-textfield--floating-label address-field is-upgraded is-dirty';
	    		break;

	    	//City
	    	case 'locality':
	    		_cityEl.value = component.short_name;
	    		_cityDivEl.className = 'mdl-textfield mdl-js-textfield mdl-textfield--floating-label address-field is-upgraded is-dirty';
	    		break;

	    	//State
	    	case 'administrative_area_level_1':
	    		_stateEl.value = component.short_name;
	    		_stateDivEl.className = 'mdl-textfield mdl-js-textfield mdl-textfield--floating-label address-field is-upgraded is-dirty';
	    		break;

	    	//Zip
	    	case 'postal_code':
	    		_postalCodeEl.value = component.short_name;
	    		_zipDivEl.className = 'mdl-textfield mdl-js-textfield mdl-textfield--floating-label address-field is-upgraded is-dirty';
	    		break;

	    	//Country
	    	case 'country':
	    		_countryEl.value = component.short_name;
	    		_countryDivEl.className = 'mdl-textfield mdl-js-textfield mdl-textfield--floating-label address-field is-upgraded is-dirty';
	    		break;

	    }

	  }

	  _locationValidationEl.hidden = true;

	  EventPlanner.checkEventFields();

	}

	/**
	 * Tag removed listener
	 *
	 */
	function _tagRemovedListener() {

		if(VTILAPP.vtil.tags.length === 0) {

			_guestErrorEl.hidden = false;

		}

	}

	/**
	 * Represents an Event Planner Page
	 * @class EventPlanner
	 *
	 */
	return class EventPlanner {

		/**
	     * EventPlanner constructor.
	     * @constructs EventPlanner
	     * @param {object} eventRef Reference to the firebase event route
	     */
		constructor(eventRef) {

			/**
	         * The events
	         * @member EventPlanner#events
	         * @type {array}
	         */
			this.events = [];

			/**
			*   Firebase reference
			* 	@member EventPlanner#eventRef
			* 	@type {Object}
			*/
			this.eventRef = eventRef;

			//Listen for tags being removed
			document.addEventListener("tag-removed", _tagRemovedListener);

		}

		/**
		 * Event Name Element
		 * @return {Object} Event Name Element
		 * @memberof EventPlanner
		 * @type {Object}
		 *
		 */
		static get eventNameEl() {

			return _eventNameEl;

		}

		/**
		 * Event Host Element
		 * @return {Object} Event Host Element
		 * @memberof EventPlanner
		 * @type {Object}
		 *
		 */
		static get eventHostEl() {

			return _eventHostEl;

		}

		/**
		 * Event Host Div Element
		 * @return {Object} Event Host Div Element
		 * @memberof EventPlanner
		 * @type {Object}
		 *
		 */
		static get eventHostDiv() {

			return _eventHostDiv;

		}

		/**
		 *  Checks if fields are completed
		 *  @function checkEventFields
		 * 	@memberof EventPlanner
		 *
		 */
		static checkEventFields() {

			let completed = 0;

			if(_eventNameEl.value !== '') {

				completed += 1;

			}

			if(_eventTypeEl.value !== '') {

				completed += 1;

			}

			if(_eventHostEl.value !== '') {

				completed += 1;

			}

			if(_startDateEl.value) {

				if(_endDateEl.value !== '') {

					let start = new Date(_startDateEl.value);
					let end = new Date(_endDateEl.value);
					let diff = Math.floor(((end - start) / 1000) / 60);

					if(diff < 0) {

						setTimeout(function() {

							if(_beginDateDivEl.className.indexOf('is-invalid') === -1) {

								_beginDateDivEl.className += ' is-invalid';

							}

							_startDateErrorEl.innerHTML = 'Whoa... this starts after it ends!?';

						});

					} else {

						completed += 1;

						_beginDateDivEl.className = 'mdl-textfield mdl-js-textfield mdl-textfield--floating-label is-upgraded is-dirty';

					}

				} else {

					completed += 1;

					_beginDateDivEl.className = 'mdl-textfield mdl-js-textfield mdl-textfield--floating-label is-upgraded is-dirty';

				}

			} else {

				if(_beginDateDivEl.className.indexOf('is-invalid') === -1) {

					_beginDateDivEl.className += ' is-invalid';

				}

				_startDateErrorEl.innerHTML = 'Required';

			}

			if(_endDateEl.value) {

				if(_startDateEl.value !== '') {

					let start = new Date(_startDateEl.value);
					let end = new Date(_endDateEl.value);
					let diff = Math.floor(((end - start) / 1000) / 60);

					if(diff < 0) {

						setTimeout(function() {

							if(_endDateDivEl.className.indexOf('is-invalid') === -1) {

								_endDateDivEl.className += ' is-invalid';

							}

							_endDateErrorEl.innerHTML =  'Whoa... this ends before it starts!?';

						});

					} else {

						completed += 1;

						_endDateDivEl.className = 'mdl-textfield mdl-js-textfield mdl-textfield--floating-label is-upgraded is-dirty';

					}

				} else {

					completed += 1;

					_endDateDivEl.className = 'mdl-textfield mdl-js-textfield mdl-textfield--floating-label is-upgraded is-dirty';

				}

			} else {

				if(_endDateDivEl.className.indexOf('is-invalid') === -1) {

					_endDateDivEl.className += ' is-invalid';

				}

				_endDateErrorEl.innerHTML =  'Required';

			}

			if(VTILAPP.vtil.tags.length > 0) {

				completed += 1;

			}

			if(_streetNumberEl.value !== '') {

				completed += 1;

			}

			if(_cityEl.value !== '') {

				completed += 1;

			}

			if(_stateEl.value !== '') {

				completed += 1;

			}

			if(_postalCodeEl.value !== '') {

				completed += 1;

			}

			if(_countryEl.value !== '') {

				completed += 1;

			}

			_progressBarLabelEl.innerHTML = 	completed.toString() + ' of ' + _totalInputs.toString() + ' fields completed';
			_progressBarEl.value = 				completed;

			//Disable the submit button until all the fields are filled out
			_submitEventButton.disabled = completed !== _totalInputs;

		}

		/**
		 *  Checks if we should redisplay the message on location input
		 *  @function checkLocationInput
		 * 	@memberof EventPlanner
		 *
		 */
		static checkLocationInput() {

			if(_locationInputEl.value === '') {

				_locationValidationEl.hidden = false;

			}

		}

		/**
		 *  Initializes the autocomplete object using the location
		 *  @function initAutocomplete
		 * 	@memberof EventPlanner
		 *
		 */
		static initAutocomplete() {
		  // Create the autocomplete object, restricting the search to geographical
		  // location types.
		  _autocomplete = new google.maps.places.Autocomplete(
		      /** @type {!HTMLInputElement} */(_locationInputEl),
		      {types: ['geocode']});

		  // When the user selects an address from the dropdown, populate the address
		  // fields in the form.
		  _autocomplete.addListener('place_changed', _fillInAddress);
		}

		/**
		 *  Checks if add guest button should be disabled
		 *  @function checkGuestField
		 * 	@memberof EventPlanner
		 *
		 */
		static checkGuestField() {

			_addButton.disabled = _inputEl.value === '';

		}

		/**
		 *  Get the location
		 *  @function geolocate
		 * 	@memberof EventPlanner
		 *  @instance
		 *
		 */
		geolocate() {

		  if (navigator.geolocation) {

		    navigator.geolocation.getCurrentPosition(function(position) {

		      let geolocation = {

		        lat: position.coords.latitude,
		        lng: position.coords.longitude

		      };

		      let circle = new google.maps.Circle({

		        center: geolocation,
		        radius: position.coords.accuracy

		      });

		      _autocomplete.setBounds(circle.getBounds());

		    });

		  }

		}

		/**
		 * Save the event
		 *  @function submitForm
		 * 	@memberof EventPlanner
		 *  @instance
		 *
		 */
		submitForm() {

			_eventPlannerSpinnerEl.hidden = false;
			Displayer.eventPlannerContainerEl.hidden = true;

			this.eventRef.push({

				'title': 	_eventNameEl.value,
				'type': 	_eventTypeEl.value,
				'host': 	_eventHostEl.value,
				'begin': 	_startDateEl.value,
				'end': 		_endDateEl.value,
				'guests': 	VTILAPP.vtil.tags,
				'address': 	_streetNumberEl.value,
				'city': 	_cityEl.value,
				'state': 	_stateEl.value,
				'zip': 		_postalCodeEl.value,
				'country': 	_countryEl.value,
				'message': 	_messageEl.value

			}, function(err) {

				_eventPlannerSpinnerEl.hidden = true;
				Displayer.eventPlannerContainerEl.hidden = false;

				if(err) {

					Displayer.showSnackbar('There was an error adding the event, how rude!  :-(');

				} else {

					Displayer.showSnackbar('Event popped and locked!  :-)');

				}

			});

			_clearElements();

		}

		/**
		 *  Add a person
		 *  @function addTag
		 * 	@memberof EventPlanner
		 *  @instance
		 *
		 */
		addTag() {

			VTILAPP.vtil.addTag();
			EventPlanner.checkEventFields();

			if(VTILAPP.vtil.tags.length > 0) {

				_guestErrorEl.hidden = true;

			}

			_addButton.disabled = true;

		}

		/**
		 *  Restore EventPlanner back to defaults
		 *  @function dispose
		 * 	@memberof EventPlanner
		 *  @instance
		 *
		 */
		dispose() {

			_clearElements();
			document.removeEventListener('tag-removed', _tagRemovedListener);
			this.eventRef = undefined;

		}

	};

})(document);


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

<title>CollectionDefinition (Hibernate JavaDocs)</title>
<meta name="date" content="2014-03-03">
<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

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

org.hibernate.persister.walking.spi

Interface CollectionDefinition

All Known Subinterfaces:

CollectionPersister, QueryableCollection, SQLLoadableCollection

All Known Implementing Classes:

AbstractCollectionPersister, BasicCollectionPersister, OneToManyPersister

public interface CollectionDefinition

Method Summary

Methods

Modifier and Type
Method and Description

CollectionPersister
getCollectionPersister()

CollectionType
getCollectionType()

CollectionElementDefinition
getElementDefinition()

CollectionIndexDefinition
getIndexDefinition()

Method Detail

getCollectionPersister

CollectionPersister getCollectionPersister()

getCollectionType

CollectionType getCollectionType()

getIndexDefinition

CollectionIndexDefinition getIndexDefinition()

getElementDefinition

CollectionElementDefinition getElementDefinition()

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

Copyright © 2001-2014 Red Hat, Inc.  All Rights Reserved.


text:
description("Tests dynamic updates of the 'exponent' property of the SVGFEComponentTransferElement object")
createSVGTestCase();

var feRFunc = createSVGElement("feFuncR");
feRFunc.setAttribute("type", "gamma");
feRFunc.setAttribute("exponent", "2");

var feGFunc = createSVGElement("feFuncG");
feGFunc.setAttribute("type", "gamma");
feGFunc.setAttribute("exponent", "2");

var feBFunc = createSVGElement("feFuncB");
feBFunc.setAttribute("type", "gamma");
feBFunc.setAttribute("exponent", "2");

var feAFunc = createSVGElement("feFuncA");
feAFunc.setAttribute("type", "gamma");
feAFunc.setAttribute("exponent", "2");

var feCompnentTransferElement = createSVGElement("feComponentTransfer");
feCompnentTransferElement.appendChild(feRFunc);
feCompnentTransferElement.appendChild(feGFunc);
feCompnentTransferElement.appendChild(feBFunc);
feCompnentTransferElement.appendChild(feAFunc);

var compTranFilter = createSVGElement("filter");
compTranFilter.setAttribute("id", "compTranFilter");
compTranFilter.setAttribute("filterUnits", "objectBoundingBox");
compTranFilter.setAttribute("x", "0%");
compTranFilter.setAttribute("y", "0%");
compTranFilter.setAttribute("width", "100%");
compTranFilter.setAttribute("height", "100%");
compTranFilter.appendChild(feCompnentTransferElement);

var defsElement = createSVGElement("defs");
defsElement.appendChild(compTranFilter);
rootSVGElement.appendChild(defsElement);

var imageElement = createSVGElement("image");
imageElement.setAttributeNS(xlinkNS, "xlink:href", "../W3C-SVG-1.1/resources/struct-image-01.png");
imageElement.setAttribute("width", "400");
imageElement.setAttribute("height", "200");
imageElement.setAttribute("preserveAspectRatio", "none");
imageElement.setAttribute("filter", "url(#compTranFilter)");
rootSVGElement.appendChild(imageElement);

rootSVGElement.setAttribute("width", "400");
rootSVGElement.setAttribute("height", "200");

shouldBe("feRFunc.exponent.baseVal", "2");
shouldBe("feGFunc.exponent.baseVal", "2");
shouldBe("feBFunc.exponent.baseVal", "2");
shouldBe("feAFunc.exponent.baseVal", "2");

function repaintTest() {
    feRFunc.exponent.baseVal = 1;
    feGFunc.exponent.baseVal = 1
    feBFunc.exponent.baseVal = 1
    feAFunc.exponent.baseVal = 1

    shouldBe("feRFunc.exponent.baseVal", "1");
    shouldBe("feGFunc.exponent.baseVal", "1");
    shouldBe("feBFunc.exponent.baseVal", "1");
    shouldBe("feAFunc.exponent.baseVal", "1");
}

var successfullyParsed = true;


text:
import luigi
import requests
import pandas as pd
import geocoder
class DownloadTask(luigi.ExternalTask):
    """
    Downloads Permit Data from the Portal
    """

    def run(self):
        url = "https://data.cityofchicago.org/api/views/ydr8-5enu/rows.csv?accessType=DOWNLOAD"
        response  = requests.get(url)
        with self.output().open('w') as out_file:
            out_file.write(response.text)

    def output(self):
        return luigi.LocalTarget("data/permits.csv")

class cleanCSV(luigi.Task):
    """This is our cleaning step"""

    def requires(self):
        return DownloadTask

## TODO ##
class ReverseGeocode(luigi.Task):
    "Pandas integration because we real cool"
    def requires(self):
        return DownloadTask()

    def run(self):
        df = pd.read_csv(self.input().open('r'))
        def reverse

    def output(self):
        pass

## TODO ##
class MakeWards(luigi.Task):
    pass

## TODO ##
class MakeMaps(luigi.Task):
    pass

## TODO ##
class MakePredictions(luigi.Task):
    pass

## TODO ##
class UploadPredictions(luigi.Task):
    pass

## TODO ##
class LoadCensus(luigi.Task):
    pass

if __name__ == '__main__':
    luigi.run()