text:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

/// <summary>
/// This the main class of the bezier splines. It holds all the points and does the interpolating.
/// </summary>
public class BezierPath : MonoBehaviour
{
    /// <summary>
    /// Editor only. The color of the points.
    /// </summary>
    public Color color = Color.yellow;
    /// <summary>
    /// Editor only. The color of the lines.
    /// </summary>
    public Color lineColor = Color.red;

    /// <summary>
    /// Stores the information about the point
    /// </summary>
    [System.Serializable]
    public class PathPoint
    {
        /// <summary>
        /// The point
        /// </summary>
        public Vector3 p1;
        /// <summary>
        /// The tangent
        /// </summary>
        public Vector3 h1;

        /// <summary>
        /// The bezier curve to the next point
        /// </summary>
        [HideInInspector]
        public Bezier bezier = new Bezier(Vector3.zero,Vector3.zero,Vector3.zero,Vector3.zero);

        /// <summary>
        /// The total distance of this bezier
        /// </summary>
        [HideInInspector]
        public float distance = 0;

        /// <summary>
        /// The distances in this bezier curve at 0.1 intervals
        /// </summary>
        [HideInInspector]
        public float[] internalDistance = new float[10];
    }

    /// <summary>
    /// The points
    /// </summary>
    public List<PathPoint> points = new List<PathPoint>();

    void Start()
    {
        // fill in the bezier curves; // calculate distance
        for (int i = 0; i < points.Count - 1; i++)
        {
            // draw line from point i to point i+1
            points[i].bezier.p1 = points[i].p1;
            points[i].bezier.h1 = points[i].h1;
            points[i].bezier.p2 = points[i + 1].p1;
            points[i].bezier.h2 = -points[i + 1].h1; // negative of this handle

            if (points[i].internalDistance == null) points[i].internalDistance = new float[10];
            // aproximate distance
            for (int t = 0; t < 10; t++)
            {
                points[i].internalDistance[t] = (points[i].bezier.GetPointAtTime((t / 10.0f) + 0.1f) - points[i].bezier.GetPointAtTime((t / 10.0f))).magnitude;
                points[i].distance += points[i].internalDistance[t];
            }
        }
    }

    /// <summary>
    /// Get a position along the path. At t=0 it will return the position of the first point. At t=i it returns the position of point i. At t=point count it will return the last point. At values in between, it returns the interpolated value.
    /// </summary>
    /// <param name="t">The t on the bezier spline</param>
    /// <returns>The interpolated postition</returns>
    public Vector3 GetPositionByT(float t)
    {
        if (t >= points.Count-1)
        {
            // clamp to end
            return points[points.Count-2].bezier.GetPointAtTime(1);
        }
        else if (t <= 0)
        {
            // clamp to begin
            return points[0].bezier.GetPointAtTime(0);
        }
        else
        {
            // position it
            int point1 = (int)t;
            return points[point1].bezier.GetPointAtTime(t - point1);
        }
    }

    /// <summary>
    /// Get a position along the path by distance. Remark: this function is more expensive to use then GetPositionByT.
    /// </summary>
    /// <param name="dist">The distance along the path</param>
    /// <returns>The interpolated distance</returns>
    public Vector3 GetPositionByDistance(float dist)
    {
        if (dist <= 0)
        {
            // clamp to begin
            return points[0].bezier.GetPointAtTime(0);
        }
        else
        {
            //Debug.Log(dist);
            // walk through point list till we hit the correct segment
            int p = 0;
            while (dist > 0 && p<points.Count-1)
            {
                dist -= points[p].distance;
                p++;
            }
            //Debug.Log(dist+":"+p);
            if (dist > 0)
            {
                // clamp to end
                return points[points.Count - 2].bezier.GetPointAtTime(1);
            }
            else
            {
                p--;
                // do the same for the internal distances
                dist += points[p].distance;
                int tBase = 0;
                while (dist > 0)
                {
                    dist -= points[p].internalDistance[tBase];
                    tBase++;
                }
                tBase--;
                //Debug.Log("tBase: " + tBase);
                dist += points[p].internalDistance[tBase];

                float t = (dist / points[p].internalDistance[tBase])/10.0f;
                t += tBase / 10.0f;
                //Debug.Log("t: " + t);
                return points[p].bezier.GetPointAtTime(t);
            }
        }
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true">

	<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
	</contextListener>

	<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <!-- encoders are assigned the type
         ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
		<encoder>
			<pattern>[%thread] %-5level %logger{36}:%line - %msg%n</pattern>
		</encoder>
	</appender>

	<logger name="org.eclipse.gemini.blueprint" level="WARN" />
	<logger name="org.springframework" level="WARN" />
	<logger name="org.eclipse.jetty" level="WARN" />
	<logger name="org.springframework.transaction" level="WARN" />
	<logger name="org.springframework.orm" level="WARN" />
	<logger name="org.openeos.liquibase.extender" level="WARN" />
	<logger name="${package}" level="DEBUG" />
	<logger name="org.hibernate.SQL" level="DEBUG" />
	<logger name="org.hibernate.type" level="TRACE" />

	<root level="DEBUG">
		<appender-ref ref="STDOUT" />
	</root>
</configuration>

redpajama_set_name: RedPajamaGithub


text:
Remapify
=======================

[![NPM](https://nodei.co/npm/remapify.png)](https://nodei.co/npm/remapify/) [![Build Status](https://travis-ci.org/joeybaker/remapify.png?branch=master)](https://travis-ci.org/joeybaker/remapify)

A [Browserify](https://github.com/substack/node-browserify) plugin to map whole directories as different directories to browserify. This is useful if you have a common batch of files that you don't want to have to refer to relatively all the time.

## Why

Suppose you've got an app structure that looks like

```
app
  - views
    - home
      index.js
    - people
      index.js
      _avatar.js
      _description.js
  - models
    person.js
```

```js
// _avatar.js
  // this gets really old after a while, and is prone to breaking if you change the directory hiearchy.
  var person = require('../../models/person.js')
  // This is much better
  var person = require('models/person.js')
```

## Usage
```js
var browserify = require('browserify')
  , remapify = require('remapify')
  , b = browserify(_dirname)

b.plugin(remapify, [
  {
    src: './client/views/**/*.js' // glob for the files to remap
    , expose: 'views' // this will expose `__dirname + /client/views/home.js` as `views/home.js`
    , cwd: __dirname // defaults to process.cwd()
  }
])

b.bundle()
```

### options `[{}]`
Array of objects. Each object is one remapping.

#### `src`
Glob pattern to find the files to remap.

#### `expose`
Replace the `cwd` of each file in `src` with this value.

#### `cwd` (optional)
Specify the 'current working directory' for the glob pattern to start from and for the `expose` option to replace.

#### glob options
All options specified by the [glob](https://www.npmjs.org/package/glob) module can be used as well.

### events
Remapify will emit events while processing. This is implemented to make testing easier, but… maybe it'll be useful for other things. The events are emitted on the bundle.

#### `b.on('remapify:file', function(file, expandedAliases, globber, pattern){})`
Emitted when the globbing finds a file to remap.

* **`file`** The path to the file
* **`expandedAliases`** The list of files and what they will be exposed as as found so far. Includes this file.
* **`globber`** The full [glob instance](https://github.com/isaacs/node-glob#properties).
* **`pattern`** The glob pattern in use.

#### `b.on('remapify:files', function(file, expandedAliases, globber, pattern){})`
Emitted when all files have been found to be remapped.

The arguments are the same as above.

## tests
All tests are mocha. You can run them with either `npm test` or `mocha test`.

## Changelog
See `CHANGELOG.md`


text:
#!/bin/bash

SYSNAME=`uname`

# params analyzing
if [ ${SYSNAME}='Darwin' ]; then
    # this shell only works on Mac and bash now.
    ARGS=`getopt ht:k:c:drf:p: $@`
elif [ ${SYSNAME}='Linux' || ${SYSNAME}='Unix' ]; then
    # this only works on linux/unix.
    ARGS=`getopt -o ht:k:c:drf:p: -l help,tag:,token:,target-commitish:,draft,prerelease,archive-files:directory-path: -- "$@"`
else
    echo "Windows not supported yet"
fi

if [ $? != 0 ]; then
    echo "Terminating..."
    exit 1
fi

eval set -- "${ARGS}"

function showHelp {
	echo "Upload current repo (latest) tag info and files to Github release page"
	echo ""
	echo "Usage: $0 [options]"
	echo "	-t|--tag tag (default: current repo's latest one)"
	echo "	-k|--token token"
	echo "	-c|--target-commitish target_commitish (default: 'master')"
	echo "	-d|--draft (default: disable, means false)"
	echo "	-r|--prerelease (default: disable, means false)"
	echo "	-f|--archive-files files (seperated by ',')"
    echo "  -p|--directory-path directory_path"
}

while true
do
    case "${1}" in
        -h|--help)
            shift
            showHelp
            exit 0
            ;;
        -t|--tag)
            tag="$2"
            shift 2
            ;;
        -k|--token)
            token="$2"
            shift 2
            ;;
        -c|--target-commitish)
            target="$2"
            shift 2
            ;;
        -d|--draft)
            isDraft="true"
            shift
            ;;
        -r|--prerelease)
            isPrerelease="true"
            shift
            ;;
        -f|--archive-files)
            fileArray=(${2//,/ })
            shift 2
            ;;
        -p|--directory-path)
            directoryPath="$2"
            shift 2
            ;;
        --)
            shift;
            break;
            ;;
        *)
            echo "Could not support that params $1"
            exit 1
            ;;
    esac
done

origin=`git remote -v | grep origin | awk 'NR==1 {print $2}'`
if [ -z "$origin" ]; then
    echo "not in a git repo"
    exit 1
fi

if [ -z "$userID" ]; then
	userID=`echo $origin | awk -F "/" '{print $4}'`
fi
if [ -z "$repoName" ]; then
    repoName=`echo $origin | awk -F "/" '{print $5}'`
    repoName=${repoName%.*}
fi
if [ -z "$tag" ]; then
	tag=`git tag -l | tail -n 1`
fi
if [ -z "$token" ]; then
	echo "must provide token"
	exit 1
fi
if [ -z "$target" ]; then
	target="master"
fi

if [ -z `which github-release` ]; then
    go get github.com/aktau/github-release
fi

# read tag info
tagInfo=`git cat-file -p $(git rev-parse $tag) | tail -n +6`
if [ -z "$tagInfo" ]; then
	tagInfo="No tag info"
fi

# set your token
export GITHUB_TOKEN=$token

# create release
cmd="github-release release \
--user $userID \
--repo $repoName \
--tag $tag \
--name $tag \
--description \"$tagInfo\""

if [ -n "$isDraft" ]; then
    cmd="$cmd --draft"
fi
if [ -n "$isPrerelease" ]; then
    cmd="$cmd --pre-release"
fi

eval $cmd

# upload files
for f in ${fileArray[@]}; do
    github-release upload -u $userID -r $repoName -t $tag -f $f -n ${f#*/}
done

# upload all files in directory, depth 1
if [ -n "$directoryPath" ]; then
    ls $directoryPath/* | while read f; do echo "github-release upload -u $userID -r $repoName -t $tag -f $f -n ${f#*/}";github-release upload -u $userID -r $repoName -t $tag -f $f -n ${f#*/}; done
fi


text:
package com.itfvck.wechatframework.api.wxstore.stock.model;

public class StockInfo {
	// 商品ID
	private String product_id;
	// sku信息
	private String sku_info;
	// 库存数量
	private Integer quantity;

	public String getProduct_id() {
		return product_id;
	}
	public void setProduct_id(String product_id) {
		this.product_id = product_id;
	}
	public String getSku_info() {
		return sku_info;
	}
	public void setSku_info(String sku_info) {
		this.sku_info = sku_info;
	}
	public Integer getQuantity() {
		return quantity;
	}
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

}


text:
import React, { Component, PropTypes } from 'react'
import { Images, ApplicationStyles, Metrics, Colors, Fonts } from '@themes'
import { View } from 'react-native'

export default class PresentationPage extends Component {
  render() {
    return (
      <View>
        {this.props.children}
      </View>
    )
  }
}


text:
class cPet :public cObjectLevel
{
	sf::Vector2f *point_follow;	//Punkt za którym bêdzie pod¹¿aæ pet

	short hp;
	sf::Vector2f speed;

public:
	cPet();
	cPet(eCharacter character_type, sf::Vector2f *point_follow, short initial_hp);

	void move();

	void adjustGraphics();
	void increaseHP();
	void decreaseHP();
	void kill();

	unsigned short getHP();
};

#endif //!pet_h


text:
package org.apache.metron.parsers;

import org.apache.metron.parsers.interfaces.MessageParser;
import org.json.simple.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;

public abstract class BasicParser implements
        MessageParser<JSONObject>,
        Serializable {

  protected static final Logger LOG = LoggerFactory
          .getLogger(BasicParser.class);

  @Override
  public boolean validate(JSONObject message) {
    JSONObject value = message;
    if (!(value.containsKey("original_string"))) {
      LOG.trace("[Metron] Message does not have original_string: " + message);
      return false;
    } else if (!(value.containsKey("timestamp"))) {
      LOG.trace("[Metron] Message does not have timestamp: " + message);
      return false;
    } else {
      LOG.trace("[Metron] Message conforms to schema: "
              + message);
      return true;
    }
  }

  public String getKey(JSONObject value) {
    try {
      String ipSrcAddr = null;
      String ipDstAddr = null;
      if (value.containsKey("ip_src_addr"))
        ipSrcAddr = value.get("ip_src_addr").toString();
      if (value.containsKey("ip_dst_addr"))
        ipDstAddr = value.get("ip_dst_addr").toString();
      if (ipSrcAddr == null && ipDstAddr == null)
        return "0";
      if (ipSrcAddr == null || ipSrcAddr.length() == 0)
        return ipDstAddr;
      if (ipDstAddr == null || ipDstAddr.length() == 0)
        return ipSrcAddr;
      double ip1 = Double.parseDouble(ipSrcAddr.replace(".", ""));
      double ip2 = Double.parseDouble(ipDstAddr.replace(".", ""));
      return String.valueOf(ip1 + ip2);
    } catch (Exception e) {
      return "0";
    }
  }
}


text:
layout: post
title: Sum Sum Summertime
date: 2018-06-15  08:00:00
categories: updates
---
__STATUS__:
- current version: __3.49.0__
- next scheduled release: __6/21/2018__

__HIGHLIGHTS__:
- updates to viusalizations
- bugfixes and performance improvements

__COMING SOON__:
- Program/competency level curriculum map visuals
- Linked Sessions
- Selectives modeling

__MORE DETAILS__:
- [http://bit.ly/IliosWeeklyUpdates](http://bit.ly/IliosWeeklyUpdates){:target="updates"}

Questions? Comments? Feedback? Please let us know at [support@iliosproject.org](mailto:support@iliosproject.org) or in [https://team-ilios.slack.com/messages/help/](https://team-ilios.slack.com/messages/help/){:target="_slackithelp"}.  (If you have not yet joined our slack channel, you can get started at [https://ilios-slack.herokuapp.com/](https://ilios-slack.herokuapp.com/){:target="_slackit"}.)

Please [download the most recent release](https://www.github.com/ilios/ilios/releases/latest){:target="_releases"} and update your frontend to take advantage of all the latest updates!


text:
/**
* @name         : EDITOR.tchat.getMessages
* @localization : core/js/tchat/getMessages.js
* @arguments    : EDITOR.tchat.getMessages()
* @description  : Permet de recevoir les messages du tchat
* @return       : aucun retour
*/

EDITOR.tchat.getMessages = function()
{
	// Le tchat est ouvert
	if(query("#content_tchat").style.opacity == 1)
	{
		var xhr = new XMLHttpRequest();
		xhr.open("POST", "core/php/controller.php", true);
		xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

		xhr.onreadystatechange = function()
		{
			if(xhr.status == 200 && xhr.readyState == 4)
			{
				var state = xhr.responseText.split("\u0000")[0];
				var data = xhr.responseText.split("\u0000")[1];

				if(state == "S")
				{
					try
					{
						var messages = JSON.parse(data);

						query("#area_tchat #messages").innerHTML = "";

						for(k in messages)
						{
							var date_area = document.createElement("div");
							date_area.className = "infos";
							date_area.innerHTML = " \

" + messages[k]["pseudo"] + " (" + messages[k]["date"] + ")
 \
							";

							query("#area_tchat #messages").appendChild(date_area);

							var message_area = document.createElement("div");
							message_area.className = "message";
							message_area.innerHTML = " \

" + messages[k]["message"] + "
 \
							";

							query("#area_tchat #messages").appendChild(message_area);
						}
					}
					catch(err)
					{
						console.error(err);
					}
				}
				else
				{
					console.error("Error");
				}
			}
		}

		xhr.send("c=Tchat&a=getMessages&p="+JSON.parse(localStorage.getItem("request_args"))[2]);
	}
}


text:
/*
	Simple OpenID Plugin
	http://code.google.com/p/openid-selector/

	This code is licensed under the New BSD License.
*/

var providers_large = {
	google : {
		name : 'Google',
		url : 'https://www.google.com/accounts/o8/id'
	},
	yahoo : {
		name : 'Yahoo',
		url : 'https://me.yahoo.com/'
	},
	myopenid : {
		name : 'MyOpenID',
		url : 'http://www.myopenid.com/server'
	},
	openid : {
		name : 'OpenID',
		label : 'Enter your OpenID:',
		url : null
	}
};

var providers_small = null

openid.locale = 'en';
openid.sprite = 'en'; // reused in german& japan localization
openid.signin_text = 'Sign-In';
openid.image_title = 'log in with {provider}';


text:
<!--
  ~ Copyright 2015 Priyesh Patel
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="8dp">

    <LinearLayout
        android:orientation="vertical"
        android:paddingLeft="24dp"
        android:paddingRight="24dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <RadioGroup
            android:id="@+id/radio_group"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:checkedButton="@+id/donate_medium">

            <RadioButton
                android:padding="16dp"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Small"
                android:id="@+id/donate_small" />

            <RadioButton
                android:padding="16dp"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Medium"
                android:id="@+id/donate_medium" />

            <RadioButton
                android:padding="16dp"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Large"
                android:id="@+id/donate_large" />
        </RadioGroup>
    </LinearLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:paddingRight="8dp">

        <Button
            android:id="@+id/done_button"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Ok"
            style="@android:style/Widget.Material.Light.Button.Borderless.Colored" />
    </RelativeLayout>
</LinearLayout>


text:
<?xml version="1.0" encoding="utf-8"?>
<desktop>

	<title>Haberdashery Management</title>
	<icon>icon/icon.png</icon>
	<laf>com.sun.java.swing.plaf.windows.WindowsLookAndFeel</laf>
	<bgcolor>230</bgcolor>
	<login>system.tasks.Login</login>
	<exit>system.tasks.Exit</exit>
	<blocker_time>10</blocker_time> <!-- in minutes -->

	<messages>
		<information>Information</information>
		<confirm>Confirmation</confirm>
		<warning>Warning</warning>
		<error>Error</error>
		<no_permission>The user does not have permissions to perform this operation</no_permission>
		<communication_error>Communication error</communication_error>
		<wait>Please, wait...</wait>
		<true_string>Yes</true_string>
		<false_string>No</false_string>
	</messages>

</desktop>


text:
namespace third_party_dlls {

namespace {

class BeaconTest : public testing::Test {
 protected:
  BeaconTest() : override_manager_() {}

  std::unique_ptr<base::win::RegKey> beacon_registry_key_;
  registry_util::RegistryOverrideManager override_manager_;

 private:
  void SetUp() override {
    std::wstring temp;
    ASSERT_NO_FATAL_FAILURE(
        override_manager_.OverrideRegistry(HKEY_CURRENT_USER, &temp));
    ASSERT_TRUE(nt::SetTestingOverride(nt::HKCU, temp));

    beacon_registry_key_ = std::make_unique<base::win::RegKey>(
        HKEY_CURRENT_USER,
        install_static::GetRegistryPath()
            .append(blacklist::kRegistryBeaconKeyName)
            .c_str(),
        KEY_QUERY_VALUE | KEY_SET_VALUE);
  }

  void TearDown() override {
    ASSERT_TRUE(nt::SetTestingOverride(nt::HKCU, std::wstring()));
  }
};

}  // namespace

//------------------------------------------------------------------------------
// Beacon tests
//------------------------------------------------------------------------------

// Ensure that the beacon state starts off 'running' if a version is specified.
TEST_F(BeaconTest, Beacon) {
  LONG result = beacon_registry_key_->WriteValue(
      blacklist::kBeaconState, blacklist::BLACKLIST_SETUP_RUNNING);
  EXPECT_EQ(ERROR_SUCCESS, result);

  result = beacon_registry_key_->WriteValue(blacklist::kBeaconVersion,
                                            L"beacon_version");
  EXPECT_EQ(ERROR_SUCCESS, result);

  // First call should find the beacon and reset it.
  EXPECT_TRUE(ResetBeacon());

  // First call should succeed as the beacon is enabled.
  EXPECT_TRUE(LeaveSetupBeacon());
}

void TestResetBeacon(std::unique_ptr<base::win::RegKey>& key,
                     DWORD input_state,
                     DWORD expected_output_state) {
  LONG result = key->WriteValue(blacklist::kBeaconState, input_state);
  EXPECT_EQ(ERROR_SUCCESS, result);

  EXPECT_TRUE(ResetBeacon());
  DWORD blacklist_state = blacklist::BLACKLIST_STATE_MAX;
  result = key->ReadValueDW(blacklist::kBeaconState, &blacklist_state);
  EXPECT_EQ(ERROR_SUCCESS, result);
  EXPECT_EQ(expected_output_state, blacklist_state);
}

TEST_F(BeaconTest, ResetBeacon) {
  // Ensure that ResetBeacon resets properly on successful runs and not on
  // failed or disabled runs.
  TestResetBeacon(beacon_registry_key_, blacklist::BLACKLIST_SETUP_RUNNING,
                  blacklist::BLACKLIST_ENABLED);

  TestResetBeacon(beacon_registry_key_, blacklist::BLACKLIST_SETUP_FAILED,
                  blacklist::BLACKLIST_SETUP_FAILED);

  TestResetBeacon(beacon_registry_key_, blacklist::BLACKLIST_DISABLED,
                  blacklist::BLACKLIST_DISABLED);
}

TEST_F(BeaconTest, SetupFailed) {
  // Ensure that when the number of failed tries reaches the maximum allowed,
  // the blacklist state is set to failed.
  LONG result = beacon_registry_key_->WriteValue(
      blacklist::kBeaconState, blacklist::BLACKLIST_SETUP_RUNNING);
  EXPECT_EQ(ERROR_SUCCESS, result);

  // Set the attempt count so that on the next failure the blacklist is
  // disabled.
  result = beacon_registry_key_->WriteValue(blacklist::kBeaconAttemptCount,
                                            blacklist::kBeaconMaxAttempts - 1);
  EXPECT_EQ(ERROR_SUCCESS, result);

  EXPECT_FALSE(LeaveSetupBeacon());

  DWORD attempt_count = 0;
  beacon_registry_key_->ReadValueDW(blacklist::kBeaconAttemptCount,
                                    &attempt_count);
  EXPECT_EQ(attempt_count, blacklist::kBeaconMaxAttempts);

  DWORD blacklist_state = blacklist::BLACKLIST_STATE_MAX;
  result = beacon_registry_key_->ReadValueDW(blacklist::kBeaconState,
                                             &blacklist_state);
  EXPECT_EQ(ERROR_SUCCESS, result);
  EXPECT_EQ(blacklist_state,
            static_cast<DWORD>(blacklist::BLACKLIST_SETUP_FAILED));
}

TEST_F(BeaconTest, SetupSucceeded) {
  // Starting with the enabled beacon should result in the setup running state
  // and the attempt counter reset to zero.
  LONG result = beacon_registry_key_->WriteValue(blacklist::kBeaconState,
                                                 blacklist::BLACKLIST_ENABLED);
  EXPECT_EQ(ERROR_SUCCESS, result);
  result = beacon_registry_key_->WriteValue(blacklist::kBeaconAttemptCount,
                                            blacklist::kBeaconMaxAttempts);
  EXPECT_EQ(ERROR_SUCCESS, result);

  EXPECT_TRUE(LeaveSetupBeacon());

  DWORD blacklist_state = blacklist::BLACKLIST_STATE_MAX;
  beacon_registry_key_->ReadValueDW(blacklist::kBeaconState, &blacklist_state);
  EXPECT_EQ(blacklist_state,
            static_cast<DWORD>(blacklist::BLACKLIST_SETUP_RUNNING));

  DWORD attempt_count = blacklist::kBeaconMaxAttempts;
  beacon_registry_key_->ReadValueDW(blacklist::kBeaconAttemptCount,
                                    &attempt_count);
  EXPECT_EQ(static_cast<DWORD>(0), attempt_count);
}

}  // namespace third_party_dlls


text:
<form class="form-horizontal">
	<fieldset>
		<legend>Agora Login</legend>

			Username

				<input name="login-username" type="text" placeholder="Username" class="form-control input-md" ng-model="username">

			Password

<input name="login-password" type="password" placeholder="Password" class="form-control input-md" ng-model="password">

			Login

				<button type="button" class="btn btn-primary" ng-click="login(username, password)">Submit</button>

				Register

	</fiedset>
</form>


text:
/**
 * @brief box for constant values
 */

#include "Const.h"

/**
 * @brief Constructor
 * @param num the inner value
 */
Const::Const(double num) : num(num) {
	debug_creation(this);
}

/**
 * @brief Desctructor
 */
Const::~Const() {
	debug_destruction(this);
}

/**
 * @brief just return the inner value
 * @return double
*/
double Const::evaluate() const {
	return this->num;
}

/**
 * @brief format the value as string
 * @return string
 */
std::string Const::print() const {
	std::ostringstream out;
	out << num;
	return out.str();
}

/**
 * @brief unique class description for debugging purpose
 * @return string
 */
std::string Const::class_desc() const {
	return "Const";
}


text:
<?php
require __DIR__ . '/config_with_app.php';

$app->url->setUrlType(\Anax\Url\CUrl::URL_CLEAN);
$app->theme->configure(ANAX_APP_PATH . 'config/duplo/theme.php');
$app->navbar->configure(ANAX_APP_PATH . 'config/duplo/navbar.php');

$di->setShared('db', function() {
    $db = new \Mos\Database\CDatabaseBasic();
    $db->setOptions(require ANAX_APP_PATH . 'config/config_sqlite.php');
    $db->connect();
    return $db;
});

$di->set('form', '\Mos\HTMLForm\CForm');

$di->setShared('QuestionsController', function() use ($di) {
    $controller = new Anax\Questions\QuestionsController();
    $controller->setDI($di);
    return $controller;
});

$di->set('TagsController', function() use ($di) {
    $controller = new Anax\QuestionTags\TagsController();
    $controller->setDI($di);
    return $controller;
});

$di->set('UsersController', function() use ($di) {
    $controller = new Anax\Users\UsersController();
    $controller->setDI($di);
    return $controller;
});

$app->router->add('', function() use ($app) {

    $app->theme->setTitle('Hem');
    $content = $app->fileContent->get("frontpage.md");
    $content = $app->textFilter->doFilter($content, 'shortcode, markdown');

    $app->views->add('users/authentication', [
	'user' => $app->session->get('user'),
    ]);
    $app->views->add('duplo/page', [
	'content' => $content,
    ]);
    $app->dispatcher->forward([
	'controller' => 'questions',
	'action' =>	'getLatestQuestions',
    ]);
    $app->dispatcher->forward([
	'controller' => 'users',
	'action' =>	'getMostActiveUsers',
    ]);
    $app->dispatcher->forward([
	'controller' => 'tags',
	'action' =>	'MostPopularTags',
    ]);
});

$app->router->add('about', function() use ($app){
    $app->theme->setTitle('Om MoppeTrim');
    $content = $app->fileContent->get("about.md");
    $content = $app->textFilter->doFilter($content, 'shortcode, markdown');
    $app->views->add('duplo/page', [
	'content' => $content,
    ]);
});

$app->router->add('showsource', function() use ($app) {
    $app->theme->addStyleSheet('css/csource.css');
    $app->theme->setTitle("Visa källkod");

    $source = new \Mos\CSource\CSource([
	'secure_dir' => '..',
	'base_dir' => '..',
    ]);

    $app->views->add('csource/csource', [
	'content' => $source->View(),
    ]);
});

$app->router->handle();
$app->theme->render();


text:
import React from 'react'

export default class DragAndDrop extends React.Component{

    state={};

    componentDidMount() {
        this.oldMouseDown = document.onmousedown;
        this.oldMouseUp = document.onmouseup;

        document.onmouseup = function (e) {
            this.setState({dad: false});
            this.oldMouseUp && this.oldMouseUp(e)
        }.bind(this);

        document.onmousedown = function (e) {
            if (e.target.classList.value.indexOf("rmd-draggable") > -1) {
                let dad = e.target;
                let position = dad.getBoundingClientRect();
                let dadOffsetX = parseInt(dad.style.left);
                let dadOffsetY = parseInt(dad.style.top);
                if(!dadOffsetX)
                    dadOffsetX = 0;
                if(!dadOffsetY)
                    dadOffsetY = 0;

                if(!this.state.initial){
                    this.setState({initial:{x:position.left - dadOffsetX,y:position.top - dadOffsetY,parentHeight:e.srcElement.offsetParent.clientHeight,parentWidth:e.srcElement.offsetParent.clientWidth}})
                }
                this.setState({dad: true,offset:{x:(e.clientX - position.left),y:(e.clientY - position.top)}});
            }
            this.oldMouseDown && this.oldMouseDown(e)
        }.bind(this);

        document.onmousemove = function (e) {
            let dad = e.target;
            let position = dad.getBoundingClientRect();

            let dadOffsetX = parseInt(dad.style.left);
            let dadOffsetY = parseInt(dad.style.top);
            if(!dadOffsetX)
                dadOffsetX = 0;
            if(!dadOffsetY)
                dadOffsetY = 0;

            if (this.state.dad && e.target.classList.value.indexOf("rmd-draggable") > -1) {

                const isRightEdgeOut = (dadOffsetX + position.width) <= this.state.initial.parentWidth;
                const isMouseDragToLeft =  e.clientX < (position.left + this.state.offset.x);

                const isBottomEdgeOut = (dadOffsetY + position.height) <= this.state.initial.parentHeight;
                const isMouseDragToTop =  e.clientY < (position.top + this.state.offset.y);

                const isTopEdgeOut = (e.clientY - position.top) + dadOffsetY - this.state.offset.y >= 0;
                const isMouseDragToBottom = e.clientY > (position.top + this.state.offset.y);

                const isLeftEdgeOut = (e.clientX - position.left) + dadOffsetX - this.state.offset.x >=0;
                const isMouseDragToRight = e.clientX > (position.left + this.state.offset.x);

                if(!this.props.limitToEdge || (isRightEdgeOut ||isMouseDragToLeft) && (isBottomEdgeOut || isMouseDragToTop ) && (isTopEdgeOut || isMouseDragToBottom) && (isLeftEdgeOut || isMouseDragToRight) ){

                    dad.style.left = ((e.clientX - position.left) + dadOffsetX - this.state.offset.x + 'px');
                    dad.style.top = ((e.clientY - position.top) + dadOffsetY - this.state.offset.y  + 'px');

                }

            }

        }.bind(this)
    }

    render(){

        return null
    }

}


text:
function TodosListPresenter(view, model) {
  this.view = view
  this.model = model
  this.init()
}

TodosListPresenter.prototype.init = function() {
  this.view.setPresenter(this)
  this.view.build(this.model.getTodos())
  this.listenModelChange()
}

TodosListPresenter.prototype.onCheck = function(index) {
  this.toggleTodoModel(index)
  this.toggleTodoView(index)
}

TodosListPresenter.prototype.toggleTodoModel = function(index) {
  var todos = this.model.getTodos()
  var todo = todos[index]
  todo.done = !todo.done
}

TodosListPresenter.prototype.toggleTodoView = function(index) {
  if (this.model.getTodos()[index].done) {
    this.view.checkItem(index)
  } else {
    this.view.uncheckItem(index)
  }
}

TodosListPresenter.prototype.listenModelChange = function() {
  var self = this
  this.model.on("change", function() {
    self.view.render(self.model.getTodos())
  })
}

module.exports = TodosListPresenter


text:
using System.Diagnostics.CodeAnalysis;

namespace Parsley;

public static partial class Grammar
{
    /// <summary>
    /// Optional(p) is equivalent to p whenever p succeeds or when p fails after consuming input.
    /// If p fails without consuming input, Optional(p) succeeds.
    /// </summary>
    public static Parser<TItem, TValue?> Optional<TItem, TValue>(Parser<TItem, TValue> parser)
        where TValue : class
    {
        var nothing = default(TValue).SucceedWithThisValue<TItem, TValue?>();
        return Choice(parser, nothing);
    }

    /// <summary>
    /// Optional(p) is equivalent to p whenever p succeeds or when p fails after consuming input.
    /// If p fails without consuming input, Optional(p) succeeds.
    /// </summary>
    [SuppressMessage("ReSharper", "MethodOverloadWithOptionalParameter",
        Justification = "This warning is inaccurate. The other `struct` " +
                        "overload does not in fact hide this one.")]
    public static Parser<TItem, TValue?> Optional<TItem, TValue>(Parser<TItem, TValue> parser, TValue? ignoredOverloadResolver = null)
        where TValue : struct
    {
        var nothing = default(TValue?).SucceedWithThisValue<TItem, TValue?>();
        return Choice(parser.Select(x => (TValue?)x), nothing);
    }
}


text:
namespace TestCases.SS.Formula.Functions
{

    using NPOI.SS.Formula.Eval;
    using NUnit.Framework;
    using NPOI.SS.Formula.Functions;

    /**
     * Test cases for ROUND(), ROUNDUP(), ROUNDDOWN()
     *
     * @author Josh Micich
     */
    [TestFixture]
    public class TestRoundFuncs
    {
        //private static NumericFunction F = null;
        [Test]
        public void TestRounddownWithStringArg()
        {

            ValueEval strArg = new StringEval("abc");
            ValueEval[] args = { strArg, new NumberEval(2), };
            ValueEval result = NumericFunction.ROUNDDOWN.Evaluate(args, -1, (short)-1);
            Assert.AreEqual(ErrorEval.VALUE_INVALID, result);
        }
        [Test]
        public void TestRoundupWithStringArg()
        {

            ValueEval strArg = new StringEval("abc");
            ValueEval[] args = { strArg, new NumberEval(2), };
            ValueEval result = NumericFunction.ROUNDUP.Evaluate(args, -1, (short)-1);
            Assert.AreEqual(ErrorEval.VALUE_INVALID, result);
        }

    }
}


text:
import enum_thorough.*;

public class enum_thorough_runme {

  static {
    try {
        System.loadLibrary("enum_thorough");
    } catch (UnsatisfiedLinkError e) {
      System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
      System.exit(1);
    }
  }

  public static void main(String argv[])
  {
    {
      // Anonymous enums
      int i = enum_thorough.AnonEnum1;
      if (enum_thorough.ReallyAnInteger != 200) throw new RuntimeException("Test Anon 1 failed");
      int j = enum_thorough.AnonSpaceEnum1;
      int k = AnonStruct.AnonStructEnum1;
    }
    {
      colour red = colour.red;
      enum_thorough.colourTest1(red);
      enum_thorough.colourTest2(red);
      enum_thorough.colourTest3(red);
      enum_thorough.colourTest4(red);
      enum_thorough.setMyColour(red);
    }
    {
      SpeedClass s = new SpeedClass();
      SpeedClass.speed speed = SpeedClass.speed.slow;
      if (s.speedTest1(speed) != speed) throw new RuntimeException("speedTest 1 failed");
      if (s.speedTest2(speed) != speed) throw new RuntimeException("speedTest 2 failed");
      if (s.speedTest3(speed) != speed) throw new RuntimeException("speedTest 3 failed");
      if (s.speedTest4(speed) != speed) throw new RuntimeException("speedTest 4 failed");
      if (s.speedTest5(speed) != speed) throw new RuntimeException("speedTest 5 failed");
      if (s.speedTest6(speed) != speed) throw new RuntimeException("speedTest 6 failed");
      if (s.speedTest7(speed) != speed) throw new RuntimeException("speedTest 7 failed");
      if (s.speedTest8(speed) != speed) throw new RuntimeException("speedTest 8 failed");

      if (enum_thorough.speedTest1(speed) != speed) throw new RuntimeException("speedTest Global 1 failed");
      if (enum_thorough.speedTest2(speed) != speed) throw new RuntimeException("speedTest Global 2 failed");
      if (enum_thorough.speedTest3(speed) != speed) throw new RuntimeException("speedTest Global 3 failed");
      if (enum_thorough.speedTest4(speed) != speed) throw new RuntimeException("speedTest Global 4 failed");
      if (enum_thorough.speedTest5(speed) != speed) throw new RuntimeException("speedTest Global 5 failed");
    }
    {
      SpeedClass s = new SpeedClass();
      SpeedClass.speed slow = SpeedClass.speed.slow;
      SpeedClass.speed lightning = SpeedClass.speed.lightning;

      if (s.getMySpeedtd1() != slow) throw new RuntimeException("mySpeedtd1 1 failed");
      if (s.getMySpeedtd1().swigValue() != 10) throw new RuntimeException("mySpeedtd1 2 failed");

      s.setMySpeedtd1(lightning);
      if (s.getMySpeedtd1() != lightning) throw new RuntimeException("mySpeedtd1 3 failed");
      if (s.getMySpeedtd1().swigValue() != 31) throw new RuntimeException("mySpeedtd1 4 failed");
    }
    {
      if (enum_thorough.namedanonTest1(namedanon.NamedAnon2) != namedanon.NamedAnon2) throw new RuntimeException("namedanonTest 1 failed");
    }
    {
      twonames val = twonames.TwoNames2;
      if (enum_thorough.twonamesTest1(val) != val) throw new RuntimeException("twonamesTest 1 failed");
      if (enum_thorough.twonamesTest2(val) != val) throw new RuntimeException("twonamesTest 2 failed");
      if (enum_thorough.twonamesTest3(val) != val) throw new RuntimeException("twonamesTest 3 failed");
    }
    {
      TwoNamesStruct t = new TwoNamesStruct();
      TwoNamesStruct.twonames val = TwoNamesStruct.twonames.TwoNamesStruct1;
      if (t.twonamesTest1(val) != val) throw new RuntimeException("twonamesTest 1 failed");
      if (t.twonamesTest2(val) != val) throw new RuntimeException("twonamesTest 2 failed");
      if (t.twonamesTest3(val) != val) throw new RuntimeException("twonamesTest 3 failed");
    }
    {
      namedanonspace val = namedanonspace.NamedAnonSpace2;
      if (enum_thorough.namedanonspaceTest1(val) != val) throw new RuntimeException("namedanonspaceTest 1 failed");
      if (enum_thorough.namedanonspaceTest2(val) != val) throw new RuntimeException("namedanonspaceTest 2 failed");
      if (enum_thorough.namedanonspaceTest3(val) != val) throw new RuntimeException("namedanonspaceTest 3 failed");
      if (enum_thorough.namedanonspaceTest4(val) != val) throw new RuntimeException("namedanonspaceTest 4 failed");
    }
    {
      TemplateClassInt t = new TemplateClassInt();
      TemplateClassInt.scientists galileo = TemplateClassInt.scientists.galileo;

      if (t.scientistsTest1(galileo) != galileo) throw new RuntimeException("scientistsTest 1 failed");
      if (t.scientistsTest2(galileo) != galileo) throw new RuntimeException("scientistsTest 2 failed");
      if (t.scientistsTest3(galileo) != galileo) throw new RuntimeException("scientistsTest 3 failed");
      if (t.scientistsTest4(galileo) != galileo) throw new RuntimeException("scientistsTest 4 failed");
      if (t.scientistsTest5(galileo) != galileo) throw new RuntimeException("scientistsTest 5 failed");
      if (t.scientistsTest6(galileo) != galileo) throw new RuntimeException("scientistsTest 6 failed");
      if (t.scientistsTest7(galileo) != galileo) throw new RuntimeException("scientistsTest 7 failed");
      if (t.scientistsTest8(galileo) != galileo) throw new RuntimeException("scientistsTest 8 failed");
      if (t.scientistsTest9(galileo) != galileo) throw new RuntimeException("scientistsTest 9 failed");
//      if (t.scientistsTestA(galileo) != galileo) throw new RuntimeException("scientistsTest A failed");
      if (t.scientistsTestB(galileo) != galileo) throw new RuntimeException("scientistsTest B failed");
//      if (t.scientistsTestC(galileo) != galileo) throw new RuntimeException("scientistsTest C failed");
      if (t.scientistsTestD(galileo) != galileo) throw new RuntimeException("scientistsTest D failed");
      if (t.scientistsTestE(galileo) != galileo) throw new RuntimeException("scientistsTest E failed");
      if (t.scientistsTestF(galileo) != galileo) throw new RuntimeException("scientistsTest F failed");
      if (t.scientistsTestG(galileo) != galileo) throw new RuntimeException("scientistsTest G failed");
      if (t.scientistsTestH(galileo) != galileo) throw new RuntimeException("scientistsTest H failed");
      if (t.scientistsTestI(galileo) != galileo) throw new RuntimeException("scientistsTest I failed");
      if (t.scientistsTestJ(galileo) != galileo) throw new RuntimeException("scientistsTest J failed");

      if (enum_thorough.scientistsTest1(galileo) != galileo) throw new RuntimeException("scientistsTest Global 1 failed");
      if (enum_thorough.scientistsTest2(galileo) != galileo) throw new RuntimeException("scientistsTest Global 2 failed");
      if (enum_thorough.scientistsTest3(galileo) != galileo) throw new RuntimeException("scientistsTest Global 3 failed");
      if (enum_thorough.scientistsTest4(galileo) != galileo) throw new RuntimeException("scientistsTest Global 4 failed");
      if (enum_thorough.scientistsTest5(galileo) != galileo) throw new RuntimeException("scientistsTest Global 5 failed");
      if (enum_thorough.scientistsTest6(galileo) != galileo) throw new RuntimeException("scientistsTest Global 6 failed");
      if (enum_thorough.scientistsTest7(galileo) != galileo) throw new RuntimeException("scientistsTest Global 7 failed");
      if (enum_thorough.scientistsTest8(galileo) != galileo) throw new RuntimeException("scientistsTest Global 8 failed");
    }
    {
      TClassInt t = new TClassInt();
      TClassInt.scientists bell = TClassInt.scientists.bell;
      TemplateClassInt.scientists galileo = TemplateClassInt.scientists.galileo;
      if (t.scientistsNameTest1(bell) != bell) throw new RuntimeException("scientistsNameTest 1 failed");
      if (t.scientistsNameTest2(bell) != bell) throw new RuntimeException("scientistsNameTest 2 failed");
      if (t.scientistsNameTest3(bell) != bell) throw new RuntimeException("scientistsNameTest 3 failed");
      if (t.scientistsNameTest4(bell) != bell) throw new RuntimeException("scientistsNameTest 4 failed");
      if (t.scientistsNameTest5(bell) != bell) throw new RuntimeException("scientistsNameTest 5 failed");
      if (t.scientistsNameTest6(bell) != bell) throw new RuntimeException("scientistsNameTest 6 failed");
      if (t.scientistsNameTest7(bell) != bell) throw new RuntimeException("scientistsNameTest 7 failed");
      if (t.scientistsNameTest8(bell) != bell) throw new RuntimeException("scientistsNameTest 8 failed");
      if (t.scientistsNameTest9(bell) != bell) throw new RuntimeException("scientistsNameTest 9 failed");
//      if (t.scientistsNameTestA(bell) != bell) throw new RuntimeException("scientistsNameTest A failed");
      if (t.scientistsNameTestB(bell) != bell) throw new RuntimeException("scientistsNameTest B failed");
//      if (t.scientistsNameTestC(bell) != bell) throw new RuntimeException("scientistsNameTest C failed");
      if (t.scientistsNameTestD(bell) != bell) throw new RuntimeException("scientistsNameTest D failed");
      if (t.scientistsNameTestE(bell) != bell) throw new RuntimeException("scientistsNameTest E failed");
      if (t.scientistsNameTestF(bell) != bell) throw new RuntimeException("scientistsNameTest F failed");
      if (t.scientistsNameTestG(bell) != bell) throw new RuntimeException("scientistsNameTest G failed");
      if (t.scientistsNameTestH(bell) != bell) throw new RuntimeException("scientistsNameTest H failed");
      if (t.scientistsNameTestI(bell) != bell) throw new RuntimeException("scientistsNameTest I failed");

      if (t.scientistsNameSpaceTest1(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest 1 failed");
      if (t.scientistsNameSpaceTest2(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest 2 failed");
      if (t.scientistsNameSpaceTest3(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest 3 failed");
      if (t.scientistsNameSpaceTest4(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest 4 failed");
      if (t.scientistsNameSpaceTest5(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest 5 failed");
      if (t.scientistsNameSpaceTest6(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest 6 failed");
      if (t.scientistsNameSpaceTest7(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest 7 failed");

      if (t.scientistsOtherTest1(galileo) != galileo) throw new RuntimeException("scientistsOtherTest 1 failed");
      if (t.scientistsOtherTest2(galileo) != galileo) throw new RuntimeException("scientistsOtherTest 2 failed");
      if (t.scientistsOtherTest3(galileo) != galileo) throw new RuntimeException("scientistsOtherTest 3 failed");
      if (t.scientistsOtherTest4(galileo) != galileo) throw new RuntimeException("scientistsOtherTest 4 failed");
      if (t.scientistsOtherTest5(galileo) != galileo) throw new RuntimeException("scientistsOtherTest 5 failed");
      if (t.scientistsOtherTest6(galileo) != galileo) throw new RuntimeException("scientistsOtherTest 6 failed");
      if (t.scientistsOtherTest7(galileo) != galileo) throw new RuntimeException("scientistsOtherTest 7 failed");

      if (enum_thorough.scientistsNameTest1(bell) != bell) throw new RuntimeException("scientistsNameTest Global 1 failed");
      if (enum_thorough.scientistsNameTest2(bell) != bell) throw new RuntimeException("scientistsNameTest Global 2 failed");
      if (enum_thorough.scientistsNameTest3(bell) != bell) throw new RuntimeException("scientistsNameTest Global 3 failed");
      if (enum_thorough.scientistsNameTest4(bell) != bell) throw new RuntimeException("scientistsNameTest Global 4 failed");
      if (enum_thorough.scientistsNameTest5(bell) != bell) throw new RuntimeException("scientistsNameTest Global 5 failed");
      if (enum_thorough.scientistsNameTest6(bell) != bell) throw new RuntimeException("scientistsNameTest Global 6 failed");
      if (enum_thorough.scientistsNameTest7(bell) != bell) throw new RuntimeException("scientistsNameTest Global 7 failed");

      if (enum_thorough.scientistsNameSpaceTest1(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global 1 failed");
      if (enum_thorough.scientistsNameSpaceTest2(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global 2 failed");
      if (enum_thorough.scientistsNameSpaceTest3(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global 3 failed");
      if (enum_thorough.scientistsNameSpaceTest4(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global 4 failed");
      if (enum_thorough.scientistsNameSpaceTest5(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global 5 failed");
      if (enum_thorough.scientistsNameSpaceTest6(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global 6 failed");
      if (enum_thorough.scientistsNameSpaceTest7(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global 7 failed");

      if (enum_thorough.scientistsNameSpaceTest8(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global 8 failed");
      if (enum_thorough.scientistsNameSpaceTest9(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global 9 failed");
      if (enum_thorough.scientistsNameSpaceTestA(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global A failed");
      if (enum_thorough.scientistsNameSpaceTestB(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global B failed");
      if (enum_thorough.scientistsNameSpaceTestC(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global C failed");
      if (enum_thorough.scientistsNameSpaceTestD(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global D failed");
      if (enum_thorough.scientistsNameSpaceTestE(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global E failed");

      if (enum_thorough.scientistsNameSpaceTestF(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global F failed");
      if (enum_thorough.scientistsNameSpaceTestG(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global G failed");
      if (enum_thorough.scientistsNameSpaceTestH(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global H failed");
      if (enum_thorough.scientistsNameSpaceTestI(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global I failed");
      if (enum_thorough.scientistsNameSpaceTestJ(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global J failed");
      if (enum_thorough.scientistsNameSpaceTestK(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global K failed");
      if (enum_thorough.scientistsNameSpaceTestL(bell) != bell) throw new RuntimeException("scientistsNameSpaceTest Global L failed");
    }
    {
      newname val = newname.argh;
      if (enum_thorough.renameTest1(val) != val) throw new RuntimeException("renameTest Global 1 failed");
      if (enum_thorough.renameTest2(val) != val) throw new RuntimeException("renameTest Global 2 failed");
    }
    {
      NewNameStruct n = new NewNameStruct();
      if (n.renameTest1(NewNameStruct.enumeration.bang) != NewNameStruct.enumeration.bang) throw new RuntimeException("renameTest 1 failed");
      if (n.renameTest2(NewNameStruct.enumeration.bang) != NewNameStruct.enumeration.bang) throw new RuntimeException("renameTest 2 failed");
      if (n.renameTest3(NewNameStruct.simplerenamed.simple1) != NewNameStruct.simplerenamed.simple1) throw new RuntimeException("renameTest 3 failed");
      if (n.renameTest4(NewNameStruct.doublenamerenamed.doublename1) != NewNameStruct.doublenamerenamed.doublename1) throw new RuntimeException("renameTest 4 failed");
      if (n.renameTest5(NewNameStruct.doublenamerenamed.doublename1) != NewNameStruct.doublenamerenamed.doublename1) throw new RuntimeException("renameTest 5 failed");
      if (n.renameTest6(NewNameStruct.singlenamerenamed.singlename1) != NewNameStruct.singlenamerenamed.singlename1) throw new RuntimeException("renameTest 6 failed");
    }
    {
      if (enum_thorough.renameTest3(NewNameStruct.enumeration.bang) != NewNameStruct.enumeration.bang) throw new RuntimeException("renameTest Global 3 failed");
      if (enum_thorough.renameTest4(NewNameStruct.simplerenamed.simple1) != NewNameStruct.simplerenamed.simple1) throw new RuntimeException("renameTest Global 4 failed");
      if (enum_thorough.renameTest5(NewNameStruct.doublenamerenamed.doublename1) != NewNameStruct.doublenamerenamed.doublename1) throw new RuntimeException("renameTest Global 5 failed");
      if (enum_thorough.renameTest6(NewNameStruct.doublenamerenamed.doublename1) != NewNameStruct.doublenamerenamed.doublename1) throw new RuntimeException("renameTest Global 6 failed");
      if (enum_thorough.renameTest7(NewNameStruct.singlenamerenamed.singlename1) != NewNameStruct.singlenamerenamed.singlename1) throw new RuntimeException("renameTest Global 7 failed");
    }
    {
      TreesClass t = new TreesClass();
      TreesClass.trees pine = TreesClass.trees.pine;

      if (t.treesTest1(pine) != pine) throw new RuntimeException("treesTest 1 failed");
      if (t.treesTest2(pine) != pine) throw new RuntimeException("treesTest 2 failed");
      if (t.treesTest3(pine) != pine) throw new RuntimeException("treesTest 3 failed");
      if (t.treesTest4(pine) != pine) throw new RuntimeException("treesTest 4 failed");
      if (t.treesTest5(pine) != pine) throw new RuntimeException("treesTest 5 failed");
      if (t.treesTest6(pine) != pine) throw new RuntimeException("treesTest 6 failed");
      if (t.treesTest7(pine) != pine) throw new RuntimeException("treesTest 7 failed");
      if (t.treesTest8(pine) != pine) throw new RuntimeException("treesTest 8 failed");
      if (t.treesTest9(pine) != pine) throw new RuntimeException("treesTest 9 failed");
      if (t.treesTestA(pine) != pine) throw new RuntimeException("treesTest A failed");
      if (t.treesTestB(pine) != pine) throw new RuntimeException("treesTest B failed");
      if (t.treesTestC(pine) != pine) throw new RuntimeException("treesTest C failed");
      if (t.treesTestD(pine) != pine) throw new RuntimeException("treesTest D failed");
      if (t.treesTestE(pine) != pine) throw new RuntimeException("treesTest E failed");
      if (t.treesTestF(pine) != pine) throw new RuntimeException("treesTest F failed");
      if (t.treesTestG(pine) != pine) throw new RuntimeException("treesTest G failed");
      if (t.treesTestH(pine) != pine) throw new RuntimeException("treesTest H failed");
      if (t.treesTestI(pine) != pine) throw new RuntimeException("treesTest I failed");
      if (t.treesTestJ(pine) != pine) throw new RuntimeException("treesTest J failed");
      if (t.treesTestK(pine) != pine) throw new RuntimeException("treesTest K failed");
      if (t.treesTestL(pine) != pine) throw new RuntimeException("treesTest L failed");
      if (t.treesTestM(pine) != pine) throw new RuntimeException("treesTest M failed");
      if (t.treesTestN(pine) != pine) throw new RuntimeException("treesTest N failed");
      if (t.treesTestO(pine) != pine) throw new RuntimeException("treesTest O failed");

      if (enum_thorough.treesTest1(pine) != pine) throw new RuntimeException("treesTest Global 1 failed");
      if (enum_thorough.treesTest2(pine) != pine) throw new RuntimeException("treesTest Global 2 failed");
      if (enum_thorough.treesTest3(pine) != pine) throw new RuntimeException("treesTest Global 3 failed");
      if (enum_thorough.treesTest4(pine) != pine) throw new RuntimeException("treesTest Global 4 failed");
      if (enum_thorough.treesTest5(pine) != pine) throw new RuntimeException("treesTest Global 5 failed");
      if (enum_thorough.treesTest6(pine) != pine) throw new RuntimeException("treesTest Global 6 failed");
      if (enum_thorough.treesTest7(pine) != pine) throw new RuntimeException("treesTest Global 7 failed");
      if (enum_thorough.treesTest8(pine) != pine) throw new RuntimeException("treesTest Global 8 failed");
      if (enum_thorough.treesTest9(pine) != pine) throw new RuntimeException("treesTest Global 9 failed");
      if (enum_thorough.treesTestA(pine) != pine) throw new RuntimeException("treesTest Global A failed");
      if (enum_thorough.treesTestB(pine) != pine) throw new RuntimeException("treesTest Global B failed");
      if (enum_thorough.treesTestC(pine) != pine) throw new RuntimeException("treesTest Global C failed");
      if (enum_thorough.treesTestD(pine) != pine) throw new RuntimeException("treesTest Global D failed");
      if (enum_thorough.treesTestE(pine) != pine) throw new RuntimeException("treesTest Global E failed");
      if (enum_thorough.treesTestF(pine) != pine) throw new RuntimeException("treesTest Global F failed");
      if (enum_thorough.treesTestG(pine) != pine) throw new RuntimeException("treesTest Global G failed");
      if (enum_thorough.treesTestH(pine) != pine) throw new RuntimeException("treesTest Global H failed");
      if (enum_thorough.treesTestI(pine) != pine) throw new RuntimeException("treesTest Global I failed");
      if (enum_thorough.treesTestJ(pine) != pine) throw new RuntimeException("treesTest Global J failed");
      if (enum_thorough.treesTestK(pine) != pine) throw new RuntimeException("treesTest Global K failed");
      if (enum_thorough.treesTestL(pine) != pine) throw new RuntimeException("treesTest Global L failed");
      if (enum_thorough.treesTestM(pine) != pine) throw new RuntimeException("treesTest Global M failed");
//      if (enum_thorough.treesTestN(pine) != pine) throw new RuntimeException("treesTest Global N failed");
      if (enum_thorough.treesTestO(pine) != pine) throw new RuntimeException("treesTest Global O failed");
      if (enum_thorough.treesTestP(pine) != pine) throw new RuntimeException("treesTest Global P failed");
      if (enum_thorough.treesTestQ(pine) != pine) throw new RuntimeException("treesTest Global Q failed");
      if (enum_thorough.treesTestR(pine) != pine) throw new RuntimeException("treesTest Global R failed");
    }
    {
      HairStruct h = new HairStruct();
      HairStruct.hair ginger = HairStruct.hair.ginger;

      if (h.hairTest1(ginger) != ginger) throw new RuntimeException("hairTest 1 failed");
      if (h.hairTest2(ginger) != ginger) throw new RuntimeException("hairTest 2 failed");
      if (h.hairTest3(ginger) != ginger) throw new RuntimeException("hairTest 3 failed");
      if (h.hairTest4(ginger) != ginger) throw new RuntimeException("hairTest 4 failed");
      if (h.hairTest5(ginger) != ginger) throw new RuntimeException("hairTest 5 failed");
      if (h.hairTest6(ginger) != ginger) throw new RuntimeException("hairTest 6 failed");
      if (h.hairTest7(ginger) != ginger) throw new RuntimeException("hairTest 7 failed");
      if (h.hairTest8(ginger) != ginger) throw new RuntimeException("hairTest 8 failed");
      if (h.hairTest9(ginger) != ginger) throw new RuntimeException("hairTest 9 failed");
      if (h.hairTestA(ginger) != ginger) throw new RuntimeException("hairTest A failed");
      if (h.hairTestB(ginger) != ginger) throw new RuntimeException("hairTest B failed");

      colour red = colour.red;
      if (h.colourTest1(red) != red) throw new RuntimeException("colourTest HairStruct 1 failed");
      if (h.colourTest2(red) != red) throw new RuntimeException("colourTest HairStruct 2 failed");
      if (h.namedanonTest1(namedanon.NamedAnon2) != namedanon.NamedAnon2) throw new RuntimeException("namedanonTest HairStruct 1 failed");
      if (h.namedanonspaceTest1(namedanonspace.NamedAnonSpace2) != namedanonspace.NamedAnonSpace2) throw new RuntimeException("namedanonspaceTest HairStruct 1 failed");

      TreesClass.trees fir = TreesClass.trees.fir;
      if (h.treesGlobalTest1(fir) != fir) throw new RuntimeException("treesGlobalTest1 HairStruct 1 failed");
      if (h.treesGlobalTest2(fir) != fir) throw new RuntimeException("treesGlobalTest1 HairStruct 2 failed");
      if (h.treesGlobalTest3(fir) != fir) throw new RuntimeException("treesGlobalTest1 HairStruct 3 failed");
      if (h.treesGlobalTest4(fir) != fir) throw new RuntimeException("treesGlobalTest1 HairStruct 4 failed");
    }
    {
      HairStruct.hair blonde = HairStruct.hair.blonde;
      if (enum_thorough.hairTest1(blonde) != blonde) throw new RuntimeException("hairTest Global 1 failed");
      if (enum_thorough.hairTest2(blonde) != blonde) throw new RuntimeException("hairTest Global 2 failed");
      if (enum_thorough.hairTest3(blonde) != blonde) throw new RuntimeException("hairTest Global 3 failed");
      if (enum_thorough.hairTest4(blonde) != blonde) throw new RuntimeException("hairTest Global 4 failed");
      if (enum_thorough.hairTest5(blonde) != blonde) throw new RuntimeException("hairTest Global 5 failed");
      if (enum_thorough.hairTest6(blonde) != blonde) throw new RuntimeException("hairTest Global 6 failed");
      if (enum_thorough.hairTest7(blonde) != blonde) throw new RuntimeException("hairTest Global 7 failed");
      if (enum_thorough.hairTest8(blonde) != blonde) throw new RuntimeException("hairTest Global 8 failed");
      if (enum_thorough.hairTest9(blonde) != blonde) throw new RuntimeException("hairTest Global 9 failed");
      if (enum_thorough.hairTestA(blonde) != blonde) throw new RuntimeException("hairTest Global A failed");
      if (enum_thorough.hairTestB(blonde) != blonde) throw new RuntimeException("hairTest Global B failed");
      if (enum_thorough.hairTestC(blonde) != blonde) throw new RuntimeException("hairTest Global C failed");

      if (enum_thorough.hairTestA1(blonde) != blonde) throw new RuntimeException("hairTest Global A1 failed");
      if (enum_thorough.hairTestA2(blonde) != blonde) throw new RuntimeException("hairTest Global A2 failed");
      if (enum_thorough.hairTestA3(blonde) != blonde) throw new RuntimeException("hairTest Global A3 failed");
      if (enum_thorough.hairTestA4(blonde) != blonde) throw new RuntimeException("hairTest Global A4 failed");
      if (enum_thorough.hairTestA5(blonde) != blonde) throw new RuntimeException("hairTest Global A5 failed");
      if (enum_thorough.hairTestA6(blonde) != blonde) throw new RuntimeException("hairTest Global A6 failed");
      if (enum_thorough.hairTestA7(blonde) != blonde) throw new RuntimeException("hairTest Global A7 failed");
      if (enum_thorough.hairTestA8(blonde) != blonde) throw new RuntimeException("hairTest Global A8 failed");
      if (enum_thorough.hairTestA9(blonde) != blonde) throw new RuntimeException("hairTest Global A9 failed");
      if (enum_thorough.hairTestAA(blonde) != blonde) throw new RuntimeException("hairTest Global AA failed");
      if (enum_thorough.hairTestAB(blonde) != blonde) throw new RuntimeException("hairTest Global AB failed");
      if (enum_thorough.hairTestAC(blonde) != blonde) throw new RuntimeException("hairTest Global AC failed");

      if (enum_thorough.hairTestB1(blonde) != blonde) throw new RuntimeException("hairTest Global B1 failed");
      if (enum_thorough.hairTestB2(blonde) != blonde) throw new RuntimeException("hairTest Global B2 failed");
      if (enum_thorough.hairTestB3(blonde) != blonde) throw new RuntimeException("hairTest Global B3 failed");
      if (enum_thorough.hairTestB4(blonde) != blonde) throw new RuntimeException("hairTest Global B4 failed");
      if (enum_thorough.hairTestB5(blonde) != blonde) throw new RuntimeException("hairTest Global B5 failed");
      if (enum_thorough.hairTestB6(blonde) != blonde) throw new RuntimeException("hairTest Global B6 failed");
      if (enum_thorough.hairTestB7(blonde) != blonde) throw new RuntimeException("hairTest Global B7 failed");
      if (enum_thorough.hairTestB8(blonde) != blonde) throw new RuntimeException("hairTest Global B8 failed");
      if (enum_thorough.hairTestB9(blonde) != blonde) throw new RuntimeException("hairTest Global B9 failed");
      if (enum_thorough.hairTestBA(blonde) != blonde) throw new RuntimeException("hairTest Global BA failed");
      if (enum_thorough.hairTestBB(blonde) != blonde) throw new RuntimeException("hairTest Global BB failed");
      if (enum_thorough.hairTestBC(blonde) != blonde) throw new RuntimeException("hairTest Global BC failed");

      if (enum_thorough.hairTestC1(blonde) != blonde) throw new RuntimeException("hairTest Global C1 failed");
      if (enum_thorough.hairTestC2(blonde) != blonde) throw new RuntimeException("hairTest Global C2 failed");
      if (enum_thorough.hairTestC3(blonde) != blonde) throw new RuntimeException("hairTest Global C3 failed");
      if (enum_thorough.hairTestC4(blonde) != blonde) throw new RuntimeException("hairTest Global C4 failed");
      if (enum_thorough.hairTestC5(blonde) != blonde) throw new RuntimeException("hairTest Global C5 failed");
      if (enum_thorough.hairTestC6(blonde) != blonde) throw new RuntimeException("hairTest Global C6 failed");
      if (enum_thorough.hairTestC7(blonde) != blonde) throw new RuntimeException("hairTest Global C7 failed");
      if (enum_thorough.hairTestC8(blonde) != blonde) throw new RuntimeException("hairTest Global C8 failed");
      if (enum_thorough.hairTestC9(blonde) != blonde) throw new RuntimeException("hairTest Global C9 failed");
      if (enum_thorough.hairTestCA(blonde) != blonde) throw new RuntimeException("hairTest Global CA failed");
      if (enum_thorough.hairTestCB(blonde) != blonde) throw new RuntimeException("hairTest Global CB failed");
      if (enum_thorough.hairTestCC(blonde) != blonde) throw new RuntimeException("hairTest Global CC failed");
    }
    {
      FirStruct f = new FirStruct();
      HairStruct.hair blonde = HairStruct.hair.blonde;

      if (f.hairTestFir1(blonde) != blonde) throw new RuntimeException("hairTestFir 1 failed");
      if (f.hairTestFir2(blonde) != blonde) throw new RuntimeException("hairTestFir 2 failed");
      if (f.hairTestFir3(blonde) != blonde) throw new RuntimeException("hairTestFir 3 failed");
      if (f.hairTestFir4(blonde) != blonde) throw new RuntimeException("hairTestFir 4 failed");
      if (f.hairTestFir5(blonde) != blonde) throw new RuntimeException("hairTestFir 5 failed");
      if (f.hairTestFir6(blonde) != blonde) throw new RuntimeException("hairTestFir 6 failed");
      if (f.hairTestFir7(blonde) != blonde) throw new RuntimeException("hairTestFir 7 failed");
      if (f.hairTestFir8(blonde) != blonde) throw new RuntimeException("hairTestFir 8 failed");
      if (f.hairTestFir9(blonde) != blonde) throw new RuntimeException("hairTestFir 9 failed");
      if (f.hairTestFirA(blonde) != blonde) throw new RuntimeException("hairTestFir A failed");
    }
    {
      enum_thorough.setGlobalInstance(enum_thorough.globalinstance2);
      if (enum_thorough.getGlobalInstance() != enum_thorough.globalinstance2) throw new RuntimeException("GlobalInstance 1 failed");

      Instances i = new Instances();
      i.setMemberInstance(Instances.memberinstance3);
      if (i.getMemberInstance() != Instances.memberinstance3) throw new RuntimeException("MemberInstance 1 failed");
    }
    // ignore enum item tests start
    {
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_zero).swigValue() != 0) throw new RuntimeException("ignoreATest 0 failed");
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_three).swigValue() != 3) throw new RuntimeException("ignoreATest 3 failed");
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_ten).swigValue() != 10) throw new RuntimeException("ignoreATest 10 failed");
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_eleven).swigValue() != 11) throw new RuntimeException("ignoreATest 11 failed");
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_thirteen).swigValue() != 13) throw new RuntimeException("ignoreATest 13 failed");
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_fourteen).swigValue() != 14) throw new RuntimeException("ignoreATest 14 failed");
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_twenty).swigValue() != 20) throw new RuntimeException("ignoreATest 20 failed");
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_thirty).swigValue() != 30) throw new RuntimeException("ignoreATest 30 failed");
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_thirty_two).swigValue() != 32) throw new RuntimeException("ignoreATest 32 failed");
      if (enum_thorough.ignoreATest(IgnoreTest.IgnoreA.ignoreA_thirty_three).swigValue() != 33) throw new RuntimeException("ignoreATest 33 failed");
    }
    {
      if (enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_eleven).swigValue() != 11) throw new RuntimeException("ignoreBTest 11 failed");
      if (enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_twelve).swigValue() != 12) throw new RuntimeException("ignoreBTest 12 failed");
      if (enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_thirty_one).swigValue() != 31) throw new RuntimeException("ignoreBTest 31 failed");
      if (enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_thirty_two).swigValue() != 32) throw new RuntimeException("ignoreBTest 32 failed");
      if (enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_forty_one).swigValue() != 41) throw new RuntimeException("ignoreBTest 41 failed");
      if (enum_thorough.ignoreBTest(IgnoreTest.IgnoreB.ignoreB_forty_two).swigValue() != 42) throw new RuntimeException("ignoreBTest 42 failed");
    }
    {
      if (enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_ten).swigValue() != 10) throw new RuntimeException("ignoreCTest 10 failed");
      if (enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_twelve).swigValue() != 12) throw new RuntimeException("ignoreCTest 12 failed");
      if (enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_thirty).swigValue() != 30) throw new RuntimeException("ignoreCTest 30 failed");
      if (enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_thirty_two).swigValue() != 32) throw new RuntimeException("ignoreCTest 32 failed");
      if (enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_forty).swigValue() != 40) throw new RuntimeException("ignoreCTest 40 failed");
      if (enum_thorough.ignoreCTest(IgnoreTest.IgnoreC.ignoreC_forty_two).swigValue() != 42) throw new RuntimeException("ignoreCTest 42 failed");
    }
    {
      if (enum_thorough.ignoreDTest(IgnoreTest.IgnoreD.ignoreD_twenty_one).swigValue() != 21) throw new RuntimeException("ignoreDTest 21 failed");
      if (enum_thorough.ignoreDTest(IgnoreTest.IgnoreD.ignoreD_twenty_two).swigValue() != 22) throw new RuntimeException("ignoreDTest 22 failed");
    }
    {
      if (enum_thorough.ignoreETest(IgnoreTest.IgnoreE.ignoreE_zero).swigValue() != 0) throw new RuntimeException("ignoreETest 0 failed");
      if (enum_thorough.ignoreETest(IgnoreTest.IgnoreE.ignoreE_twenty_one).swigValue() != 21) throw new RuntimeException("ignoreETest 21 failed");
      if (enum_thorough.ignoreETest(IgnoreTest.IgnoreE.ignoreE_twenty_two).swigValue() != 22) throw new RuntimeException("ignoreETest 22 failed");
    }
    // ignore enum item tests end
    {
      if (enum_thorough.repeatTest(repeat.one).swigValue() != 1) throw new RuntimeException("repeatTest 1 failed");
      if (enum_thorough.repeatTest(repeat.initial).swigValue() != 1) throw new RuntimeException("repeatTest 2 failed");
      if (enum_thorough.repeatTest(repeat.two).swigValue() != 2) throw new RuntimeException("repeatTest 3 failed");
      if (enum_thorough.repeatTest(repeat.three).swigValue() != 3) throw new RuntimeException("repeatTest 4 failed");
      if (enum_thorough.repeatTest(repeat.llast).swigValue() != 3) throw new RuntimeException("repeatTest 5 failed");
      if (enum_thorough.repeatTest(repeat.end).swigValue() != 3) throw new RuntimeException("repeatTest 6 failed");
    }
    // different types
    {
      if (enum_thorough.differentTypesTest(DifferentTypes.typeint).swigValue() != 10) throw new RuntimeException("differentTypes 1 failed");
      if (enum_thorough.differentTypesTest(DifferentTypes.typeboolfalse).swigValue() != 0) throw new RuntimeException("differentTypes 2 failed");
      if (enum_thorough.differentTypesTest(DifferentTypes.typebooltrue).swigValue() != 1) throw new RuntimeException("differentTypes 3 failed");
      if (enum_thorough.differentTypesTest(DifferentTypes.typebooltwo).swigValue() != 2) throw new RuntimeException("differentTypes 4 failed");
      if (enum_thorough.differentTypesTest(DifferentTypes.typechar).swigValue() != 'C') throw new RuntimeException("differentTypes 5 failed");
      if (enum_thorough.differentTypesTest(DifferentTypes.typedefaultint).swigValue() != 'D') throw new RuntimeException("differentTypes 6 failed");

      int global_enum = enum_thorough.global_typeint;
      if (enum_thorough.globalDifferentTypesTest(global_enum) != 10) throw new RuntimeException("global differentTypes 1 failed");
      global_enum = enum_thorough.global_typeboolfalse;
      if (enum_thorough.globalDifferentTypesTest(global_enum) != 0) throw new RuntimeException("global differentTypes 2 failed");
      global_enum = enum_thorough.global_typebooltrue;
      if (enum_thorough.globalDifferentTypesTest(global_enum) != 1) throw new RuntimeException("global differentTypes 3 failed");
      global_enum = enum_thorough.global_typebooltwo;
      if (enum_thorough.globalDifferentTypesTest(global_enum) != 2) throw new RuntimeException("global differentTypes 4 failed");
      global_enum = enum_thorough.global_typechar;
      if (enum_thorough.globalDifferentTypesTest(global_enum) != 'C') throw new RuntimeException("global differentTypes 5 failed");
      global_enum = enum_thorough.global_typedefaultint;
      if (enum_thorough.globalDifferentTypesTest(global_enum) != 'D') throw new RuntimeException("global differentTypes 6 failed");
    }
  }
}


text:
package org.apache.olingo.client.core.communication.response.batch;

import java.util.Collection;
import java.util.Map;

import org.apache.olingo.client.api.communication.request.batch.ODataBatchLineIterator;
import org.apache.olingo.client.core.communication.request.batch.ODataBatchController;
import org.apache.olingo.client.core.communication.response.AbstractODataResponse;

public class ODataBatchErrorResponse extends AbstractODataResponse {

  public ODataBatchErrorResponse(
          final Map.Entry<Integer, String> responseLine,
          final Map<String, Collection<String>> headers,
          final ODataBatchLineIterator batchLineIterator,
          final String boundary) {

    super(null, null, null);

    if (hasBeenInitialized) {
      throw new IllegalStateException("Request already initialized");
    }

    this.hasBeenInitialized = true;

    this.batchInfo = new ODataBatchController(batchLineIterator, boundary);

    this.statusCode = responseLine.getKey();
    this.statusMessage = responseLine.getValue();
    this.headers.putAll(headers);
  }

  @Override
  public String getETag() {
    return null;
  }
}


text:
from __future__ import absolute_import, division, print_function, unicode_literals

import os

print("VAR is '{}'".format(os.environ["VAR"]))


text:
Phantom Steed

**Source** [_phantom steed_](spells/phantomSteed#_phantom-steed)

The steed's rider automatically succeeds at [Ride](skills/ride#_ride) checks to remain mounted. The mount's hit points increase to 10 plus 2 per caster level, and its speed increases to 30 feet per 2 caster levels (maximum 150 feet).

**Augmented (3rd)** : If you expend two uses of mythic power, the phantom steed is incorporeal, but its rider can interact with it normally.


text:
Request Agent
==================================================

JQuery is great, but its greatness comes at a cost. Sometimes you wish you could extract just a few of its modules and though [it's possible](https://github.com/jquery/jquery#how-to-build-your-own-jquery) it can still end up being quite heavy.

Request Agent is a fork of jQuery v2.1.0 that leaves [jQuery](http://jquery.com/) core with only two of its most popular modules ([Ajax](http://api.jquery.com/category/ajax/) & [Deferreds](http://api.jquery.com/category/deferred-object/)) and strips out the rest. The result is an AJAX library with a lighter footprint (14 KB -minified) and an awesome (and well-known) API that can be used in browser and non-browser environments.

How to build this project
----------------------------

Clone a copy of the repo by running:

```bash
git clone https://github.com/quiaro/request-agent.git
```

Enter the project's directory and run the build script:
```bash
cd request-agent && npm run build
```

The built version of the project will be put in the `dist/` subdirectory, along with the minified copy and associated map file.

Also, by running the `grunt` command, in the `request-agent` directory, you are able to build the project (just like with `npm run build` command):
```
grunt
```

To look at the other tasks available inherited from the jQuery project, try the -help option for grunt:
```
grunt -help
```

Building to a different directory
---------------------------------

To copy the built project files from `/dist` to another directory:

```bash
grunt && grunt dist:/path/to/special/location/
```
With this example, the output files would be:

```bash
/path/to/special/location/request-agent.js
/path/to/special/location/request-agent.min.js
```

To add a permanent copy destination, create a file in `dist/` called ".destination.json". Inside the file, paste and customize the following:

```json

{
  "/Absolute/path/to/other/destination": true
}
```

Additionally, both methods can be combined.