text:
<?php
/**
 * Bulk add a POST webhook to all your Bitbucket repositories
 */

ini_set('display_errors', '1');
error_reporting(E_ALL);

// Help
if (isset($argv[1]) && in_array($argv[1], array('--help', '-help', '-h', '-?'))) {
    echo <<<EOD
Bulk add a POST hook to all repositories on your Bitbucket account

I use this to bulk add the Slack webhook to all our Bitbucket URLs

Usage: php bitbucket-bulk-add-hook.php

Script will ask for your Bitbucket login details and the URL of the
POST hook you want to add.

MIT License (MIT)
Copyright (c) 2014 Studio 24 Ltd (www.studio24.net)

EOD;
    exit();
}

echo PHP_EOL . "Bulk add a POST hook to all repositories on your Bitbucket account" . PHP_EOL;
echo "------------------------------------------------------------------" . PHP_EOL . PHP_EOL;

// Defaults (add values to auto-set these properties)
// define('BITBUCKET_ACCOUNT', '');
// define('BITBUCKET_POST_HOOK_URL', '');
// define('BITBUCKET_USERNAME', '');
//define('BITBUCKET_PASSWORD', '');

// Get arguments
if (defined('BITBUCKET_ACCOUNT') && BITBUCKET_ACCOUNT != '') {
    $account = BITBUCKET_ACCOUNT;
} else {
    echo "Enter the Bitbucket account name you want to apply the web hook to: ";
    $account = trim(fgets(STDIN));
}
if (defined('BITBUCKET_POST_HOOK_URL') && BITBUCKET_POST_HOOK_URL != '') {
    $hookUrl = BITBUCKET_POST_HOOK_URL;
} else {
    echo "Enter your new POST web hook to apply to all repositories: ";
    $hookUrl = trim(fgets(STDIN));
}
if (defined('BITBUCKET_USERNAME') && BITBUCKET_USERNAME != '') {
    $username = BITBUCKET_USERNAME;
} else {
    echo "Enter your Bitbucket username: ";
    $username = trim(fgets(STDIN));
}
if (defined('BITBUCKET_PASSWORD') && BITBUCKET_PASSWORD != '') {
    $password = BITBUCKET_PASSWORD;
} else {
    echo "Enter your Bitbucket password: ";
    $password = trim(fgets(STDIN));
}

// Confirm details
echo <<<EOD

About to set up the following POST web hook:
$hookUrl

On the Bitbucket account: $account
Using the login username '$username'

Do you want to continue (y/n)?
EOD;

$response = '';
while (!in_array(trim(strtolower($response)), array('y', 'n', 'yes', 'no'))) {
    $response = trim(fgets(STDIN));
}

if (in_array(trim(strtolower($response)), array('n','no'))) {
    echo "Quitting script" . PHP_EOL;
    exit(0);
}

echo "Reading in list of repositories from Bitbucket repositories/$account\n\n";

$api = new BitBucketAPI($username, $password);
$repos = $api->listRepositories($account);
echo "\n";

// Initial method
// $repoPattern = '!https://bitbucket.org/api/2.0/repositories/' . $account . '/(.+)/watchers$!';
$repoPattern = '!https://bitbucket.org/\!api/2.0/repositories/' . $account . '/(.+)/hooks$!';
foreach ($repos->values as $repo) {
    if (preg_match($repoPattern, $repo->links->hooks->href, $m)) {
        $url = $m[1];
    } else {
        echo "Cannot match URL from " . $repo->links->hooks->href . PHP_EOL;
        continue;
    }

    echo "Testing repository: $url\n";

    $services = $api->getRepositoryServices($account, $url);
    $slackIntegrated = false;
    if (!empty($services)) {
        foreach ($services as $service) {
            if ($service->service->type == 'POST') {
                foreach ($service->service->fields as $data) {
                    if ($data->value == $hookUrl) {
                        $slackIntegrated = true;
                    }
                }
            }
        }
    }

    if (!$slackIntegrated) {
        echo "Adding web hook to $hookUrl\n";
        if (!$api->createService($account, $url, $hookUrl)) {
            echo "Failed to add web hook!\n";
        }

    } else {
        echo "Already integrated with the web hook\n";
    }
    echo "\n";
}

echo "All done!\n\n";

/**
 * Class to send/receive data from BitBucket API
 *
 * @see https://confluence.atlassian.com/display/BITBUCKET/Use+the+Bitbucket+REST+APIs
 */
class BitBucketAPI {

    /**
     * Bitbucket username
     *
     * @var string
     */
    protected $username;

    /**
     * Bitbucket password
     *
     * @var string
     */
    protected $password;

    /**
     * Constructor
     *
     * @param string $username Bitbucket username
     * @param string $password Bitbucket password
     */
    public function __construct($username, $password)
    {
        $this->username = $username;
        $this->password = $password;
    }

    /**
     * Return all repositories under an account
     *
     * @param string $account
     * @return bool|mixed Array of response data, or false on failure
     */
    public function listRepositories($account)
    {
        $data = $this->get(sprintf('https://bitbucket.org/api/2.0/repositories/%s', $account));
        $nextPage = (isset($data->next)) ? $data->next : null;

        // Get paginated data & merge with original data
        while (!empty($nextPage)) {
            $next = $this->get($nextPage);

            foreach ($next->values as $item) {
                $data->values[] = $item;
            }
            $nextPage = (isset($next->next)) ? $next->next : null;
        }

        return $data;
    }

    /**
     * Return all services setup for a repository
     *
     * @param string $account
     * @param string $repository
     * @return bool|mixed Array of response data, or false on failure
     */
    public function getRepositoryServices($account, $repository)
    {
        return $this->get(sprintf('https://api.bitbucket.org/1.0/repositories/%s/%s/services', $account, $repository));
    }

    /**
     * Create a new POST web hook service for a repository
     *
     * @param string $account
     * @param string $repository
     * @param string $hookUrl
     * @return bool|mixed Array of response data, or false on failure
     */
    public function createService($account, $repository, $hookUrl)
    {
        $params = array(
            'type' => 'POST',
            'URL'  => $hookUrl
        );
        return $this->post(sprintf('https://api.bitbucket.org/1.0/repositories/%s/%s/services', $account, $repository), $params);
    }

    protected function get($url, $params = array())
    {
        // Build URL params
        if (!empty($params)) {
            if (strpos($url, '?') === false) {
                $url . '?';
            } else {
                $url . '&';
            }
            $url .= http_build_query($params);
        }

        $curl = curl_init();
        curl_setopt($curl, CURLOPT_HEADER, false);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
        curl_setopt($curl, CURLOPT_USERPWD, $this->username . ':' . $this->password);
        curl_setopt($curl, CURLOPT_URL, $url);

        // Run query
        echo "Querying $url ...\n";
        $response = curl_exec($curl);
        if ($response !== false) {
            // var_dump(json_decode($response)->values);
            return json_decode($response);
        }
        return false;
    }

    protected function post($url, $params = array())
    {
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_HEADER, false);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
        curl_setopt($curl, CURLOPT_USERPWD, $this->username . ':' . $this->password);
        curl_setopt($curl, CURLOPT_POST, true);
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($params));

        // Run query
        echo "Posting to $url ...\n";
        $response = curl_exec($curl);
        if ($response !== false) {
            return json_decode($response);
        }
        return false;
    }

}


text:
<?php
	require_once("views/GeneralView.class.php");
	require_once("views/ErrorOrSuccessView.class.php");

	$viewG = new GeneralView();
	$errorView = new ErrorOrSuccessView();

	$viewG->header("Inscription");
	//if we dont have already complete the form, show it
	if(!isset($_POST['inscription'])){
		$viewG->inscriptionPage();
	//since here we will check all fields in the form
	}elseif(!isset($_POST['login']) && $_POST['login'] == ''){
		$errorView->errorCompleteForm("login");
		$errorView->redirection(5);
		header('Refresh: 5; url=inscription.php');
	}elseif (!isset($_POST['pwd']) && $_POST['pwd'] == '') {
		$errorView->errorCompleteForm("mot de passe");
		$errorView->redirection(5);
		header('Refresh: 5; url=inscription.php');
	}elseif (!isset($_POST['nom']) && $_POST['nom'] == '') {
		$errorView->errorCompleteForm("nom");
	}elseif (!isset($_POST['prenom']) && $_POST['prenom'] == '') {
		$errorView->errorCompleteForm("prenom");
		$errorView->redirection(5);
		header('Refresh: 5; url=inscription.php');
	}elseif (!isset($_POST['adresse']) && $_POST['adresse'] == '') {
		$errorView->errorCompleteForm("adresse");
		$errorView->redirection(5);
		header('Refresh: 5; url=inscription.php');
	//last check if the two password are the same
	}elseif($_POST['pwd'] != $_POST['pwdConfirm']){
		$errorView->errorMismatchPwd();
		$errorView->redirection(5);
		header('Refresh: 5; url=inscription.php');
	}else{
		//all is ok : success message / start session variable / add user in DB and redirect
		require_once("private/config.php");
		require_once("models/UserManager.class.php");
		$userManager = new UserManager($db);

		//Structure data
		$data = array();
		$data['id'] = null; //for the id
		$data['login'] = ucfirst(htmlspecialchars($_POST['login']));
		$data['pwd'] = sha1(htmlspecialchars($_POST['pwd']));
		$data['nom'] = htmlspecialchars($_POST['nom']);
		$data['prenom'] = htmlspecialchars($_POST['prenom']);
		$data['adresse'] = htmlspecialchars($_POST['adresse']);
		$newUser = new User($data);

		//verif if the user already exist
		if(!($currentUser = $userManager->verifConnexion($data['login'], $data['pwd']))){
			//the user dos not exit; we can add it and continue
			$userManager->add($newUser);
			$errorView->successInscription();
			$errorView->redirection(5);
			$_SESSION['login'] = $data['login'];
			header('Refresh: 5; url=calendar.php');
		}else{
			$errorView->errorUserAlreadyExist();
			$errorView->redirection(5);
			header('Refresh: 5; url=inscription.php');
		}

	}

	$viewG->footer();
?>

redpajama_set_name: RedPajamaGithub


text:
package org.jabref.model.strings;

import java.text.Normalizer;
import java.util.Objects;
import java.util.regex.Pattern;

import com.github.tomtung.latex2unicode.LaTeX2Unicode;

/**
 * Adapter class for the latex2unicode lib. This is an alternative to our LatexToUnicode class
 */
public class LatexToUnicodeAdapter {

    private static Pattern underscoreMatcher = Pattern.compile("_(?!\\{)");

    private static String replacementChar = "\uFFFD";

    private static Pattern underscorePlaceholderMatcher = Pattern.compile(replacementChar);

    public static String format(String inField) {
        Objects.requireNonNull(inField);

        String toFormat = underscoreMatcher.matcher(inField).replaceAll(replacementChar);
        toFormat = Normalizer.normalize(LaTeX2Unicode.convert(toFormat), Normalizer.Form.NFC);
        return underscorePlaceholderMatcher.matcher(toFormat).replaceAll("_");
    }
}


text:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@drawable/cave_background"
    tools:context="com.sisteritb.philosopherstone.scenes.InventoryScene">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:orientation="horizontal"
        android:layout_marginTop="5dp"
        android:layout_marginBottom="5dp"
        android:layout_weight="1"
        android:baselineAligned="false">

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_gravity="center_vertical"
            android:layout_weight="1"
            android:gravity="center_vertical"
            android:orientation="vertical"
            android:padding="@dimen/abc_control_padding_material">

            <ImageView
                android:id="@+id/item0Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/honey"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item0TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#fffff967"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000" />

            <ImageView
                android:id="@+id/item1Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/herbs"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item1TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#fffff967"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000" />

            <ImageView
                android:id="@+id/item2Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/clay"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item2TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#fffff967"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000" />

        </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_gravity="center_vertical"
            android:layout_weight="1"
            android:gravity="center_vertical"
            android:orientation="vertical"
            android:padding="@dimen/abc_control_padding_material">

            <ImageView
                android:id="@+id/item3Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/mineral"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item3TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#fffff967"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000" />

            <ImageView
                android:id="@+id/item4Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/potion"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item4TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#ff73ff54"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000" />

            <ImageView
                android:id="@+id/item5Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/incense"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item5TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#ff73ff54"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000" />

        </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_gravity="center_vertical"
            android:layout_weight="1"
            android:gravity="center_vertical"
            android:orientation="vertical"
            android:padding="@dimen/abc_control_padding_material">

            <ImageView
                android:id="@+id/item6Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/gems"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item6TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#ff73ff54"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000" />

            <ImageView
                android:id="@+id/item7Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/life_elixir"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item7TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#ff769fff"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000" />

            <ImageView
                android:id="@+id/item8Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/mana_crystal"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item8TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#ff769fff"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000" />

        </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_gravity="center_vertical"
            android:layout_weight="1"
            android:gravity="center_vertical"
            android:orientation="vertical"
            android:padding="@dimen/abc_control_padding_material">

            <ImageView
                android:id="@+id/item9Image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:adjustViewBounds="true"
                android:src="@drawable/philosopher_stone"
                android:onClick="imageClick"/>

            <TextView
                android:id="@+id/item9TextView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:background="#ffff5d5d"
                android:gravity="center"
                android:text="0"
                android:textColor="#000000"/>

        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp">
        <EditText
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:inputType="number"
            android:ems="10"
            android:id="@+id/offerAmountEditText"
            android:hint="Off"
            android:layout_weight="1" />

        <EditText
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:inputType="number"
            android:ems="10"
            android:id="@+id/demandAmountEditText"
            android:hint="Dem"
            android:layout_weight="1" />

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Offer"
            android:onClick="offerItem"
            android:id="@+id/offerButton"/>

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Mix Item"
            android:id="@+id/mixItemButton"
            android:onClick="mixItem"/>
    </LinearLayout>

</LinearLayout>


text:
import * as AdmZip from 'adm-zip'

interface File {
	name: string
	data: Buffer
}

export const toArchive = async (name: string, files: File[]) => {
	const archive = new AdmZip()

	for (const file of files) {
		if (!file) continue
		archive.addFile(file.name, file.data)
	}

	return {
		name: name + '.zip',
		data: await archive.toBuffer()
	}
}


text:
require 'spec_helper'

describe Typhoeus::Request::Stubbable do
  let(:base_url) { "localhost:3001" }
  let(:request) { Typhoeus::Request.new(base_url) }
  let(:response) { Typhoeus::Response.new }

  before { Typhoeus.stub(base_url).and_return(response) }

  describe "#run" do
    it "checks expectations" do
      request.run
    end

    context "when expectation found" do
      it "calls on_headers callbacks" do
        canary = :not_called
        request.on_headers do
          canary = :called
        end
        request.run
        expect(canary).to eq(:called)
      end

      it "calls on_body callbacks" do
        canary = :not_called
        request.on_body do
          canary = :called
        end
        request.run
        expect(canary).to eq(:called)
      end

      it "finishes request" do
        expect(request).to receive(:finish)
        request.run
      end

      it "sets mock on response" do
        request.run
        expect(request.response.mock).to be(true)
      end
    end
  end
end


text:
<Data>
    <Contract>
        <Types>
            <!--
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.BlobStoreTaskPriority">
                <Elements>
                    <Element Name="SpecifiableByUser" Type="boolean">
                        <Annotations/>
                    </Element>
                </Elements>
                <EnumConstants>
                    <EnumConstant Name="CRITICAL">
                        <Properties>
                            <Property Name="SpecifiableByUser" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="URGENT">
                        <Properties>
                            <Property Name="SpecifiableByUser" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="HIGH">
                        <Properties>
                            <Property Name="SpecifiableByUser" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="NORMAL">
                        <Properties>
                            <Property Name="SpecifiableByUser" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="LOW">
                        <Properties>
                            <Property Name="SpecifiableByUser" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="BACKGROUND">
                        <Properties>
                            <Property Name="SpecifiableByUser" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                </EnumConstants>
            </Type>
            -->
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.BucketAclPermission">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="LIST"/>
                    <EnumConstant Name="READ"/>
                    <EnumConstant Name="WRITE"/>
                    <EnumConstant Name="DELETE"/>
                    <EnumConstant Name="JOB"/>
                    <EnumConstant Name="OWNER"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.CapacitySummaryContainer">
                <Elements>
                    <Element Name="Pool"
                             Type="com.spectralogic.s3.common.dao.domain.ds3.StorageDomainCapacitySummary">
                        <Annotations/>
                    </Element>
                    <Element Name="Tape"
                             Type="com.spectralogic.s3.common.dao.domain.ds3.StorageDomainCapacitySummary">
                        <Annotations/>
                    </Element>
                </Elements>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.DataIsolationLevel">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="STANDARD"/>
                    <EnumConstant Name="BUCKET_ISOLATED"/>
                    <EnumConstant Name="SECURE_BUCKET_ISOLATED"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.DataPersistenceRuleState">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="NORMAL"/>
                    <EnumConstant Name="INCLUSION_IN_PROGRESS"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.DataPersistenceRuleType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="PERMANENT"/>
                    <EnumConstant Name="TEMPORARY"/>
                    <EnumConstant Name="RETIRED"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.JobChunkClientProcessingOrderGuarantee">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="NONE"/>
                    <EnumConstant Name="IN_ORDER"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.JobRequestType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="PUT"/>
                    <EnumConstant Name="GET"/>
                    <EnumConstant Name="VERIFY"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.LtfsFileNamingMode">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="OBJECT_NAME"/>
                    <EnumConstant Name="OBJECT_ID"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.S3ObjectType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="DATA"/>
                    <EnumConstant Name="FOLDER"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.StorageDomainFailureType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="ILLEGAL_EJECTION_OCCURRED"/>
                    <EnumConstant Name="MEMBER_BECAME_READ_ONLY"/>
                    <EnumConstant Name="WRITES_STALLED_DUE_TO_NO_FREE_MEDIA_REMAINING"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.StorageDomainMemberState">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="NORMAL"/>
                    <EnumConstant Name="EXCLUSION_IN_PROGRESS"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.WriteOptimization">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="CAPACITY"/>
                    <EnumConstant Name="PERFORMANCE"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.ds3.WritePreferenceLevel">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="HIGH"/>
                    <EnumConstant Name="NORMAL"/>
                    <EnumConstant Name="LOW"/>
                    <EnumConstant Name="NEVER_SELECT"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.pool.PoolFailureType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="BLOB_READ_FAILED"/>
                    <EnumConstant Name="DATA_CHECKPOINT_FAILURE"/>
                    <EnumConstant Name="DATA_CHECKPOINT_MISSING"/>
                    <EnumConstant Name="FORMAT_FAILED"/>
                    <EnumConstant Name="IMPORT_FAILED"/>
                    <EnumConstant Name="IMPORT_FAILED_DUE_TO_TAKE_OWNERSHIP_FAILURE"/>
                    <EnumConstant Name="IMPORT_FAILED_DUE_TO_DATA_INTEGRITY"/>
                    <EnumConstant Name="INSPECT_FAILED"/>
                    <EnumConstant Name="QUIESCED"/>
                    <EnumConstant Name="READ_FAILED"/>
                    <EnumConstant Name="VERIFY_FAILED"/>
                    <EnumConstant Name="WRITE_FAILED"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.pool.PoolHealth">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="OK"/>
                    <EnumConstant Name="DEGRADED"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.pool.PoolState">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="BLANK"/>
                    <EnumConstant Name="NORMAL"/>
                    <EnumConstant Name="LOST"/>
                    <EnumConstant Name="FOREIGN"/>
                    <EnumConstant Name="IMPORT_PENDING"/>
                    <EnumConstant Name="IMPORT_IN_PROGRESS"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.pool.PoolType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="NEARLINE"/>
                    <EnumConstant Name="ONLINE"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.shared.ImportConflictResolutionMode">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="ABORT"/>
                    <EnumConstant Name="ACCEPT_MOST_RECENT"/>
                    <EnumConstant Name="ACCEPT_HIGHEST_VERSION"/>
                    <EnumConstant Name="ACCEPT_IMPORT"/>
                    <EnumConstant Name="ACCEPT_EXISTING"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.shared.Quiesced">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="NO"/>
                    <EnumConstant Name="PENDING"/>
                    <EnumConstant Name="YES"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.shared.ReplicationConflictResolutionMode">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="ABORT"/>
                    <EnumConstant Name="ACCEPT_SOURCE"/>
                    <EnumConstant Name="ACCEPT_TARGET"/>
                    <EnumConstant Name="ACCEPT_MOST_RECENT"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.tape.ImportExportConfiguration">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="SUPPORTED"/>
                    <EnumConstant Name="NOT_SUPPORTED"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.tape.TapeDriveState">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="OFFLINE"/>
                    <EnumConstant Name="NORMAL"/>
                    <EnumConstant Name="ERROR"/>
                    <EnumConstant Name="NOT_COMPATIBLE_IN_PARTITION_DUE_TO_NEWER_TAPE_DRIVES"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.tape.TapeFailureType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="BLOB_READ_FAILED"/>
                    <EnumConstant Name="DATA_CHECKPOINT_FAILURE"/>
                    <EnumConstant Name="DATA_CHECKPOINT_MISSING"/>
                    <EnumConstant Name="DRIVE_CLEAN_FAILED"/>
                    <EnumConstant Name="DRIVE_CLEANED"/>
                    <EnumConstant Name="FORMAT_FAILED"/>
                    <EnumConstant Name="GET_TAPE_INFORMATION_FAILED"/>
                    <EnumConstant Name="IMPORT_FAILED"/>
                    <EnumConstant Name="IMPORT_FAILED_DUE_TO_TAKE_OWNERSHIP_FAILURE"/>
                    <EnumConstant Name="IMPORT_FAILED_DUE_TO_DATA_INTEGRITY"/>
                    <EnumConstant Name="INSPECT_FAILED"/>
                    <EnumConstant Name="READ_FAILED"/>
                    <EnumConstant Name="REIMPORT_REQUIRED"/>
                    <EnumConstant Name="VERIFY_FAILED"/>
                    <EnumConstant Name="WRITE_FAILED"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.tape.TapePartitionFailureType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="CLEANING_TAPE_REQUIRED"/>
                    <EnumConstant Name="DUPLICATE_TAPE_BAR_CODES_DETECTED"/>
                    <EnumConstant Name="EJECT_STALLED_DUE_TO_OFFLINE_TAPES"/>
                    <EnumConstant Name="MINIMUM_DRIVE_COUNT_NOT_MET"/>
                    <EnumConstant Name="MOVE_FAILED"/>
                    <EnumConstant Name="MOVE_FAILED_DUE_TO_PREPARE_TAPE_FOR_REMOVAL_FAILURE"/>
                    <EnumConstant Name="NO_USABLE_DRIVES"/>
                    <EnumConstant Name="ONLINE_STALLED_DUE_TO_NO_STORAGE_SLOTS"/>
                    <EnumConstant Name="TAPE_DRIVE_IN_ERROR"/>
                    <EnumConstant Name="TAPE_DRIVE_TYPE_MISMATCH"/>
                    <EnumConstant Name="TAPE_EJECTION_BY_OPERATOR_REQUIRED"/>
                    <EnumConstant Name="TAPE_MEDIA_TYPE_INCOMPATIBLE"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.common.dao.domain.tape.TapePartitionState">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="ONLINE"/>
                    <EnumConstant Name="OFFLINE"/>
                    <EnumConstant Name="ERROR"/>
                </EnumConstants>
            </Type>
            <!--
            <Type Name="com.spectralogic.s3.common.dao.domain.tape.TapeState">
                <Elements>
                    <Element Name="AllowedToBeLoadedIntoDrive" Type="boolean">
                        <Annotations/>
                    </Element>
                    <Element Name="CancellableToPreviousState" Type="boolean">
                        <Annotations/>
                    </Element>
                    <Element Name="PhysicallyPresent" Type="boolean">
                        <Annotations/>
                    </Element>
                    <Element Name="PreviousStateTracked" Type="boolean">
                        <Annotations/>
                    </Element>
                </Elements>
                <EnumConstants>
                    <EnumConstant Name="NORMAL">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="OFFLINE">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="false" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="ONLINE_PENDING">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="ONLINE_IN_PROGRESS">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="PENDING_INSPECTION">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="UNKNOWN">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DATA_CHECKPOINT_FAILURE">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DATA_CHECKPOINT_MISSING">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="LTFS_WITH_FOREIGN_DATA">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="FOREIGN">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="IMPORT_PENDING">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="true" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="IMPORT_IN_PROGRESS">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="LOST">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="false" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="BAD">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="SERIAL_NUMBER_MISMATCH">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="true" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="BAR_CODE_MISSING">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="FORMAT_PENDING">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="true" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="FORMAT_IN_PROGRESS">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="true" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="true" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="EJECT_TO_EE_IN_PROGRESS">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="false" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="EJECT_FROM_EE_PENDING">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="false" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="EJECTED">
                        <Properties>
                            <Property Name="AllowedToBeLoadedIntoDrive" Value="false" ValueType="boolean"/>
                            <Property Name="CancellableToPreviousState" Value="false" ValueType="boolean"/>
                            <Property Name="PhysicallyPresent" Value="false" ValueType="boolean"/>
                            <Property Name="PreviousStateTracked" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                </EnumConstants>
            </Type>
            -->
            <Type Name="com.spectralogic.s3.common.dao.domain.tape.TapeType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="LTO5"/>
                    <EnumConstant Name="LTO6"/>
                    <EnumConstant Name="LTO7"/>
                    <EnumConstant Name="LTO_CLEANING_TAPE"/>
                    <EnumConstant Name="TS_JC"/>
                    <EnumConstant Name="TS_JY"/>
                    <EnumConstant Name="TS_JK"/>
                    <EnumConstant Name="TS_JD"/>
                    <EnumConstant Name="TS_JZ"/>
                    <EnumConstant Name="TS_JL"/>
                    <EnumConstant Name="TS_CLEANING_TAPE"/>
                    <EnumConstant Name="UNKNOWN"/>
                    <EnumConstant Name="FORBIDDEN"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.server.domain.JobStatus">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="IN_PROGRESS"/>
                    <EnumConstant Name="COMPLETED"/>
                    <EnumConstant Name="CANCELED"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.server.handler.reqhandler.spectrainternal.system.CreateHeapDumpRequestHandler$Application">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="S3_SERVER"/>
                    <EnumConstant Name="DATA_PLANNER"/>
                </EnumConstants>
            </Type>
            <!--
            <Type Name="com.spectralogic.s3.server.request.rest.RestActionType">
                <Elements>
                    <Element Name="IdApplicable" Type="boolean">
                        <Annotations/>
                    </Element>
                </Elements>
                <EnumConstants>
                    <EnumConstant Name="BULK_MODIFY">
                        <Properties>
                            <Property Name="IdApplicable" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="CREATE">
                        <Properties>
                            <Property Name="IdApplicable" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DELETE">
                        <Properties>
                            <Property Name="IdApplicable" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="LIST">
                        <Properties>
                            <Property Name="IdApplicable" Value="false" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="MODIFY">
                        <Properties>
                            <Property Name="IdApplicable" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="SHOW">
                        <Properties>
                            <Property Name="IdApplicable" Value="true" ValueType="boolean"/>
                        </Properties>
                    </EnumConstant>
                </EnumConstants>
            </Type>
            -->
            <!--
            <Type Name="com.spectralogic.s3.server.request.rest.RestDomainType">
                <Elements>
                    <Element Name="ResourceType"
                             Type="com.spectralogic.s3.server.request.rest.RestResourceType">
                        <Annotations/>
                    </Element>
                </Elements>
                <EnumConstants>
                    <EnumConstant Name="ACTIVE_JOB">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="BEANS_RETRIEVER">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="BLOB_STORE_TASK">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="BUCKET">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="BUCKET_ACL">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="BUCKET_CAPACITY_SUMMARY">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="CACHE_FILESYSTEM">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="CACHE_STATE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="CANCELED_JOB">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="CAPACITY_SUMMARY">
                        <Properties>
                            <Property Name="ResourceType" Value="SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="COMPLETED_JOB">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DATA_PATH">
                        <Properties>
                            <Property Name="ResourceType" Value="SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DATA_PATH_BACKEND">
                        <Properties>
                            <Property Name="ResourceType" Value="SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DATA_PERSISTENCE_RULE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DATA_POLICY">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DATA_POLICY_ACL">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DEGRADED_BUCKET">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="DEGRADED_DATA_PERSISTENCE_RULE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="FOLDER">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="GENERIC_DAO_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="GROUP">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="GROUP_MEMBER">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="HEAP_DUMP">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="JOB">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="JOB_CHUNK">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="JOB_COMPLETED_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="JOB_CREATED_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="NODE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="OBJECT">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="OBJECT_CACHED_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="OBJECT_LOST_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="OBJECT_PERSISTED_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="POOL">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="POOL_ENVIRONMENT">
                        <Properties>
                            <Property Name="ResourceType" Value="SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="POOL_FAILURE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="POOL_FAILURE_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="POOL_PARTITION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="REQUEST_HANDLER">
                        <Properties>
                            <Property Name="ResourceType" Value="SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="REQUEST_HANDLER_CONTRACT">
                        <Properties>
                            <Property Name="ResourceType" Value="SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="STORAGE_DOMAIN">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="STORAGE_DOMAIN_FAILURE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="STORAGE_DOMAIN_FAILURE_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="STORAGE_DOMAIN_MEMBER">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="SYSTEM_HEALTH">
                        <Properties>
                            <Property Name="ResourceType" Value="SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="SYSTEM_INFORMATION">
                        <Properties>
                            <Property Name="ResourceType" Value="SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_BUCKET">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_DENSITY_DIRECTIVE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_DRIVE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_ENVIRONMENT">
                        <Properties>
                            <Property Name="ResourceType" Value="SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_FAILURE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_FAILURE_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_LIBRARY">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_PARTITION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_PARTITION_FAILURE">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="TAPE_PARTITION_FAILURE_NOTIFICATION_REGISTRATION">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="USER">
                        <Properties>
                            <Property Name="ResourceType" Value="NON_SINGLETON"
                                      ValueType="com.spectralogic.s3.server.request.rest.RestResourceType"/>
                        </Properties>
                    </EnumConstant>
                </EnumConstants>
            </Type>
            -->
            <Type Name="com.spectralogic.s3.server.request.rest.RestOperationType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="ALLOCATE"/>
                    <EnumConstant Name="CANCEL_EJECT"/>
                    <EnumConstant Name="CANCEL_FORMAT"/>
                    <EnumConstant Name="CANCEL_IMPORT"/>
                    <EnumConstant Name="CANCEL_ONLINE"/>
                    <EnumConstant Name="CLEAN"/>
                    <EnumConstant Name="COMPACT"/>
                    <EnumConstant Name="DEALLOCATE"/>
                    <EnumConstant Name="EJECT"/>
                    <EnumConstant Name="FORMAT"/>
                    <EnumConstant Name="GET_PHYSICAL_PLACEMENT"/>
                    <EnumConstant Name="IMPORT"/>
                    <EnumConstant Name="INSPECT"/>
                    <EnumConstant Name="ONLINE"/>
                    <EnumConstant Name="REGENERATE_SECRET_KEY"/>
                    <EnumConstant Name="START_BULK_GET"/>
                    <EnumConstant Name="START_BULK_PUT"/>
                    <EnumConstant Name="START_BULK_VERIFY"/>
                    <EnumConstant Name="VERIFY"/>
                    <EnumConstant Name="VERIFY_PHYSICAL_PLACEMENT"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.s3.server.request.rest.RestResourceType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="SINGLETON"/>
                    <EnumConstant Name="NON_SINGLETON"/>
                </EnumConstants>
            </Type>
            <!--
            <Type Name="com.spectralogic.util.db.manager.DatabasePhysicalSpaceState">
                <Elements>
                    <Element Name="FreeSpaceRatioToReachThreshold" Type="double">
                        <Annotations/>
                    </Element>
                </Elements>
                <EnumConstants>
                    <EnumConstant Name="CRITICAL">
                        <Properties>
                            <Property Name="FreeSpaceRatioToReachThreshold" Value="0.05" ValueType="double"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="LOW">
                        <Properties>
                            <Property Name="FreeSpaceRatioToReachThreshold" Value="0.1" ValueType="double"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="NEAR_LOW">
                        <Properties>
                            <Property Name="FreeSpaceRatioToReachThreshold" Value="0.2" ValueType="double"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="NORMAL">
                        <Properties>
                            <Property Name="FreeSpaceRatioToReachThreshold" Value="1.0" ValueType="double"/>
                        </Properties>
                    </EnumConstant>
                </EnumConstants>
            </Type>
            -->
            <Type Name="com.spectralogic.util.http.HttpResponseFormatType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="DEFAULT"/>
                    <EnumConstant Name="JSON"/>
                    <EnumConstant Name="XML"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.util.http.RequestType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="DELETE"/>
                    <EnumConstant Name="GET"/>
                    <EnumConstant Name="HEAD"/>
                    <EnumConstant Name="POST"/>
                    <EnumConstant Name="PUT"/>
                </EnumConstants>
            </Type>
            <Type Name="com.spectralogic.util.lang.NamingConventionType">
                <Elements/>
                <EnumConstants>
                    <EnumConstant Name="CONCAT_LOWERCASE"/>
                    <EnumConstant Name="CONSTANT"/>
                    <EnumConstant Name="UNDERSCORED"/>
                    <EnumConstant Name="CAMEL_CASE_WITH_FIRST_LETTER_UPPERCASE"/>
                    <EnumConstant Name="CAMEL_CASE_WITH_FIRST_LETTER_LOWERCASE"/>
                </EnumConstants>
            </Type>
            <!--
            <Type Name="com.spectralogic.util.security.ChecksumType">
                <Elements>
                    <Element Name="AlgorithmName" Type="java.lang.String">
                        <Annotations/>
                    </Element>
                    <Element Name="HttpHeaderName" Type="java.lang.String">
                        <Annotations/>
                    </Element>
                </Elements>
                <EnumConstants>
                    <EnumConstant Name="CRC_32">
                        <Properties>
                            <Property Name="AlgorithmName" Value="CRC-32" ValueType="java.lang.String"/>
                            <Property Name="HttpHeaderName" Value="Content-CRC32"
                                      ValueType="java.lang.String"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="CRC_32C">
                        <Properties>
                            <Property Name="AlgorithmName" Value="CRC-32C" ValueType="java.lang.String"/>
                            <Property Name="HttpHeaderName" Value="Content-CRC32C"
                                      ValueType="java.lang.String"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="MD5">
                        <Properties>
                            <Property Name="AlgorithmName" Value="MD5" ValueType="java.lang.String"/>
                            <Property Name="HttpHeaderName" Value="Content-MD5" ValueType="java.lang.String"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="SHA_256">
                        <Properties>
                            <Property Name="AlgorithmName" Value="SHA-256" ValueType="java.lang.String"/>
                            <Property Name="HttpHeaderName" Value="Content-SHA256"
                                      ValueType="java.lang.String"/>
                        </Properties>
                    </EnumConstant>
                    <EnumConstant Name="SHA_512">
                        <Properties>
                            <Property Name="AlgorithmName" Value="SHA-512" ValueType="java.lang.String"/>
                            <Property Name="HttpHeaderName" Value="Content-SHA512"
                                      ValueType="java.lang.String"/>
                        </Properties>
                    </EnumConstant>
                </EnumConstants>
            </Type>
            -->
        </Types>
    </Contract>
</Data>


text:
using RoaringFangs.Attributes;
using System;
using UnityEditor;
using UnityEngine;

namespace RoaringFangs.Animation.Editor
{
    [CustomPropertyDrawer(typeof(RefBool))]
    public class RefBoolDrawer : PropertyDrawer
    {
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            var serialied_value_object = property.FindPropertyRelative("_ValueObject");
            var value_object = serialied_value_object.objectReferenceValue;
            bool value = value_object == RefBool.True;
            bool next_value = EditorGUI.Toggle(position, "Value", value);
            if (value != next_value)
            {
                var next_value_object = next_value ? RefBool.True : RefBool.False;
                serialied_value_object.objectReferenceValue = next_value_object;
                var serialized_object = property.serializedObject;
                serialized_object.ApplyModifiedProperties();
            }
        }
    }
}


text:
import sys
import os

# Get the project root dir, which is the parent dir of this
sys.path.insert(0, os.path.abspath('..'))
sys.path.append(os.path.abspath('_exts'))

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = '1.3'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autodoc',
              'sphinx.ext.intersphinx',
              'sphinx.ext.napoleon',
              'pyspecific']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
master_doc = 'index'
project = 'AIO Vault'
copyright = '2015, Xavier Barbosa'
author = 'Xavier Barbosa'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.1'
# The full version, including alpha/beta/rc tags.
release = '0.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']

# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None

# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True

# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
add_module_names = False

# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
#show_authors = False

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
todo_include_todos = False

# -- Options for HTML output ----------------------------------------------

import alabaster
extensions.append('alabaster')
html_theme = 'alabaster'
html_theme_path = [alabaster.get_path()]
html_theme_options = {
    'github_user': 'johnnoone',
    'github_repo': 'aiovault',
    'github_button': True,
    'github_banner': True,
    'travis_button': True,
    'show_powered_by': False,
}
html_sidebars = {
    '**': [
        'about.html', 'navigation.html', 'searchbox.html',
    ]
}

napoleon_google_docstring = True
napoleon_numpy_docstring = False
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = True
napoleon_use_admonition_for_notes = True
napoleon_use_admonition_for_references = True
napoleon_use_ivar = True
napoleon_use_param = True
napoleon_use_rtype = False

autodoc_member_order = 'groupwise'

# The name for this set of Sphinx documents.  If None, it defaults to
# "<project> v<release> documentation".
html_title = 'AIO Vault documentation'

# A shorter title for the navigation bar.  Default is the same as html_title.
#html_short_title = None

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None

# The name of an image file (within the static path) to use as favicon of the
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
htmlhelp_basename = 'AIOVaultdoc'

intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None)}

#  Options for LaTeX output

latex_elements = {
    'papersize': 'a4paper',
}

latex_documents = [
    (master_doc, 'AIOVault.tex', 'AIO Vault Documentation',
     'Xavier Barbosa', 'manual'),
]

#  Options for manual page output

man_pages = [
    (master_doc, 'aiovault', 'AIO Vault Documentation',
     [author], 1)
]

#  Options for Texinfo output

texinfo_documents = [
    (master_doc, 'AIOVault', 'AIO Vault Documentation',
     author, 'AIOVault', 'One line description of project.',
     'Miscellaneous'),
]

autodoc_member_order = 'bysource'


text:
package jp.satorufujiwara.binder;

import java.util.ArrayList;
import java.util.List;

public class SectionBinderHolder<S extends Section, V extends ViewType, VH> {

    private final List<List<Binder<V, VH>>> mSectionItemsList = new ArrayList<>();

    public int getSectionIndex(S section) {
        initSections(section);
        final int sectionPosition = section.position();
        if (sectionPosition == 0) {
            return 0;
        }
        int index = 0;
        for (final List<Binder<V, VH>> items : mSectionItemsList
                .subList(0, sectionPosition)) {
            index += items.size();
        }
        return index;
    }

    public int getSectionSize(final S section) {
        initSections(section);
        return getSectionSize(section.position());
    }

    public <B extends Binder<V, VH>> void add(final S section, final B item) {
        initSections(section);
        mSectionItemsList.get(section.position()).add(item);
    }

    public <B extends Binder<V, VH>> void insert(final S section, final B item,
            final int index) {
        initSections(section);
        mSectionItemsList.get(section.position()).add(index, item);
    }

    public <B extends Binder<V, VH>> void remove(final S section, final B item) {
        initSections(section);
        mSectionItemsList.get(section.position()).remove(item);
    }

    public <B extends Binder<V, VH>> void replace(final S section, final B item,
                                                 final int index) {
        initSections(section);
            int pos = 0;
            for (int i=0; i < mSectionItemsList.size() ; i++) {
                if (pos >= index) break;
                pos += mSectionItemsList.get(i).size();
            }
        mSectionItemsList.get(section.position()).remove(pos - index);
        mSectionItemsList.get(section.position()).add(pos-index,item);
    }

    public void clear(final S section) {
        initSections(section);
        mSectionItemsList.get(section.position()).clear();
    }

    public List<Binder<V, VH>> getAllItem(final S section) {
        initSections(section);
        return mSectionItemsList.get(section.position());
    }

    public Binder<V, VH> getItem(final S section, final int index) {
        initSections(section);
        final List<Binder<V, VH>> list = mSectionItemsList
                .get(section.position());
        if (list.size() <= index) {
            return null;
        }
        return list.get(index);
    }

    public boolean isEmpty(final S section) {
        initSections(section);
        final List<Binder<V, VH>> list = mSectionItemsList
                .get(section.position());
        return list.isEmpty();
    }

    public void clear() {
        for (final List<Binder<V, VH>> items : mSectionItemsList) {
            items.clear();
        }
        mSectionItemsList.clear();
    }

    private void initSections(final S section) {
        final int sectionPosition = section.position();
        if(sectionPosition < mSectionItemsList.size()){
            return;
        }
        for (int i = 0; i <= sectionPosition; i++) {
            mSectionItemsList.add(new ArrayList<Binder<V, VH>>());
        }
    }

    private int getSectionSize(final int sectionPosition) {
        return mSectionItemsList.get(sectionPosition).size();
    }

}


text:
<?php

use webvimark\modules\UserManagement\UserManagementModule;

/**
 * @var yii\web\View $this
 */

$this->title = UserManagementModule::t('back', 'Change own password');
$this->params['breadcrumbs'][] = $this->title;
?>

		<?= UserManagementModule::t('back', 'Password has been changed') ?>


text:
/**
 * Created by Administrator on 2015/4/7.
 */
module lizhi {

    /**
     * 控制面板類
     */
    export class ControlPanel extends egret.Sprite {

        // 遊戲時間圖標
        private time:egret.Bitmap;
        // 剩餘時間文本
        private timeCount:egret.TextField;
        // 遊戲聲音圖片
        private sound:egret.Bitmap;
        // 禁止聲音圖標
        private soundStop:egret.Bitmap;
        // 分數文本
        private score:egret.TextField;
        // 聲音標誌位
        private soundFlag:boolean = true;

        public constructor() {
            super();
            this.createControlPanel();
        }

        /**
         * 創建控制面板
         */
        private createControlPanel() {
            this.width = getWidth();
            this.height = getHeight();

            // 初始化元素
            this.time = createBitmapByName("time");
            this.sound = createBitmapByName("sound");
            this.soundStop = createBitmapByName("sound_stop");

            this.time.x = (getWidth()-this.time.width)/2 - 250;
            //this.time.y = (getHeight()-this.time.height)/2 - 400;
            this.time.y = 100;
            this.sound.x = (getWidth()-this.sound.width)/2 + 250;
            //this.sound.y = (getHeight()-this.sound.height)/2 - 400;
            this.sound.y = 111;
            this.soundStop.x = (getWidth()-this.soundStop.width)/2 + 250;
            //this.sound.y = (getHeight()-this.sound.height)/2 - 400;
            this.soundStop.y = 111;

            this.sound.touchEnabled = true;
            this.sound.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onSoundToggle,this);
            this.soundStop.touchEnabled = true;
            this.soundStop.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onSoundToggle,this);
            this.addChild(this.time);
            this.soundFlag = Data.soundFlat;
            if (this.soundFlag) {
                this.addChild(this.sound);
            } else {
                this.addChild(this.soundStop);
            }

            this.timeCount = new egret.TextField();
            this.timeCount.textAlign = "center";
            this.timeCount.textColor = 0xFFFFFF;
            this.timeCount.size = 48;
            this.timeCount.x = (getWidth()-this.timeCount.width)/2 - 200;
            //this.timeCount.y = (getHeight()-this.timeCount.height)/2 - 420;
            this.timeCount.y = 120;
            this.timeCount.text = "30";
            this.addChild(this.timeCount);

            this.score = new egret.TextField();
            this.score.textColor = 0xFFFFFF;
            this.score.size = 52;
            this.score.textAlign = egret.HorizontalAlign.CENTER;
            this.score.verticalAlign = egret.VerticalAlign.MIDDLE;
            //设置描边属性
            this.score.strokeColor = 0x833314;
            this.score.width = getWidth();
            this.score.stroke = 3;
            this.score.x = 0;
            this.score.y = (getHeight()-this.score.height)/2 - 320;
            this.score.text = "荔枝数:0";
            this.score.fontFamily = "幼圆";
            this.score.bold = true;
            this.addChild(this.score);

        }

        /**
         * 更改遊戲分數文本
         * @param score
         */
        public changeScore(score:number) {
            var msg = "荔枝数:";
            this.score.text = msg + score;
        }

        /**
         * 更改遊戲時間文本
         * @param time
         */
        public changeTime(time:number) {
            this.timeCount.text = time.toString();
        }

        /**
         * 切換聲音模式
         * @param evt
         */
        private onSoundToggle(evt:egret.TouchEvent) {
            this.soundFlag = !this.soundFlag;
            Data.soundFlat = this.soundFlag;
            if (!this.soundFlag) {
                this.removeChild(this.sound);
                this.addChild(this.soundStop);
            } else {
                this.removeChild(this.soundStop);
                this.addChild(this.sound);
            }
            // 轉發事件
            this.dispatchEventWith("soundToggle")
        }
    }
}


text:
import { createLocalVue, shallowMount } from '@vue/test-utils';
import VueRouter from 'vue-router';
import TopicSubsection from '../../src/views/TopicsPage/TopicSubsection';

const localVue = createLocalVue();
localVue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: '/',
      name: 'TOPICS_TOPIC',
    },
  ],
});

describe('TopicSubsection', () => {
  it('displays a "more" button when the topic has more to show', () => {
    const wrapper = shallowMount(TopicSubsection, {
      propsData: {
        topic: {
          id: 'topic-id',
          title: 'topic-title',
          description: 'topic-description',
          showMore: true,
        },
      },
      router,
      localVue,
    });
    expect(wrapper.find('[data-test="more-button"]').exists()).toBe(true);
  });
});


text:
{% load staticfiles %}

      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        Visa/dölj meny

      </button>

      Ullas kortkatalog

Om katalogen

        {% include "_navbar_menuitem.html" %}


text:
/**
 * 比较一下各种排序的性能
 *
 */

var Benchmark = require('benchmark');
var suite = new Benchmark.Suite;
var faker = require('faker');
var BitArray = require('bit-array');

//生成 100,000个7位数
var numbers = new Set();

while(numbers.size < 10000000 ){
	var number = +faker.phone.phoneNumber('########')
	numbers.add(number);
}

//write to file

var array = Array.from(numbers)

suite.add('bit-array' ,function(){
	var bitArray = new BitArray(100000000);

	for(var i = 0 ; i < array.length ; i++){
		bitArray.set(i, true);
	}

	var result = [];

	for(var i = 0 ; i < 100000000 ; i++){
		if(bitArray.get(i)){
			result.push(i);
		}
	}

})
.add('Array.sort' ,function(){
	array.sort(function(a, b){
		return a - b;
	})
})
.on('cycle', function(event) {
  console.log(String(event.target));
})
.on('complete', function() {
  console.log('Fastest is ' + this.filter('fastest').pluck('name'));
})
// run async
.run({ 'async': true });


text:
<!DOCTYPE html>

    <meta charset="utf-8">

    <title>标签: note | ben~z blog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta property="og:type" content="website">
<meta property="og:title" content="ben~z blog">
<meta property="og:url" content="https://blog.zhuozhibin.com/tags/note/index.html">
<meta property="og:site_name" content="ben~z blog">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="ben~z blog">

    <link rel="stylesheet" href="/libs/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/libs/open-sans/styles.css">
    <link rel="stylesheet" href="/libs/source-code-pro/styles.css">

    <link rel="stylesheet" href="/css/style.css">

        <link rel="stylesheet" href="/libs/lightgallery/css/lightgallery.min.css">

        <link rel="stylesheet" href="/libs/justified-gallery/justifiedGallery.min.css">

                ben~z blog

                    主页

                    归档

                    分类

                    标签

                    关于

    <form class="search-form">
        <input type="text" class="ins-search-input search-form-input" placeholder="搜索" />
        <button type="submit" class="search-form-submit"></button>
    </form>

            <input type="text" class="ins-search-input" placeholder="想要查找什么..." />

                    主页

                    归档

                    分类

                    标签

                    关于

        <input type="text" class="ins-search-input search-form-input" placeholder="搜索" />

zhuozhibin

IOS Android Node Developer

            GuangZhou, China
            关注我

                3
                文章

                5
                标签

#note

            Gitlab环境搭建

            <time datetime="2018-01-24T13:39:00.000Z" itemprop="datePublished">2018-01-24</time>

        Note

        ci, note

            © 2018 卓智斌

            Powered by Hexo. Theme by PPOffice