text:
"""Cython.Distutils.build_ext

Implements a version of the Distutils 'build_ext' command, for
building Cython extension modules."""

# This module should be kept compatible with Python 2.1.

__revision__ = "$Id:$"

import sys, os, re
from types import *
from distutils.core import Command
from distutils.errors import *
from distutils.sysconfig import customize_compiler, get_python_version
from distutils.dep_util import newer, newer_group
from distutils import log
from distutils.dir_util import mkpath
from distutils.command import build_ext as _build_ext

extension_name_re = _build_ext.extension_name_re

show_compilers = _build_ext.show_compilers

class build_ext(_build_ext.build_ext):

    description = "build C/C++ and Cython extensions (compile/link to build directory)"

    sep_by = _build_ext.build_ext.sep_by
    user_options = _build_ext.build_ext.user_options
    boolean_options = _build_ext.build_ext.boolean_options
    help_options = _build_ext.build_ext.help_options

    # Add the pyrex specific data.
    user_options.extend([
        ('pyrex-cplus', None,
         "generate C++ source files"),
        ('pyrex-create-listing', None,
         "write errors to a listing file"),
        ('pyrex-line-directives', None,
         "emit source line directives"),
        ('pyrex-include-dirs=', None,
         "path to the Cython include files" + sep_by),
        ('pyrex-c-in-temp', None,
         "put generated C files in temp directory"),
        ('pyrex-gen-pxi', None,
            "generate .pxi file for public declarations"),
        ('pyrex-directives=', None,
            "compiler directive overrides"),
        ])

    boolean_options.extend([
        'pyrex-cplus', 'pyrex-create-listing', 'pyrex-line-directives', 'pyrex-c-in-temp'
    ])

    def initialize_options(self):
        _build_ext.build_ext.initialize_options(self)
        self.pyrex_cplus = 0
        self.pyrex_create_listing = 0
        self.pyrex_line_directives = 0
        self.pyrex_include_dirs = None
        self.pyrex_directives = None
        self.pyrex_c_in_temp = 0
        self.pyrex_gen_pxi = 0

    def finalize_options (self):
        _build_ext.build_ext.finalize_options(self)
        if self.pyrex_include_dirs is None:
            self.pyrex_include_dirs = []
        elif type(self.pyrex_include_dirs) is StringType:
            self.pyrex_include_dirs = \
                self.pyrex_include_dirs.split(os.pathsep)
        if self.pyrex_directives is None:
            self.pyrex_directives = {}
    # finalize_options ()

    def build_extensions(self):
        # First, sanity-check the 'extensions' list
        self.check_extensions_list(self.extensions)
        for ext in self.extensions:
            ext.sources = self.cython_sources(ext.sources, ext)
            self.build_extension(ext)

    def cython_sources(self, sources, extension):
        """
        Walk the list of source files in 'sources', looking for Cython
        source files (.pyx and .py).  Run Cython on all that are
        found, and return a modified 'sources' list with Cython source
        files replaced by the generated C (or C++) files.
        """
        try:
            from Cython.Compiler.Main \
                import CompilationOptions, \
                       default_options as pyrex_default_options, \
                       compile as cython_compile
            from Cython.Compiler.Errors import PyrexError
        except ImportError:
            e = sys.exc_info()[1]
            print("failed to import Cython: %s" % e)
            raise DistutilsPlatformError("Cython does not appear to be installed")

        new_sources = []
        pyrex_sources = []
        pyrex_targets = {}

        # Setup create_list and cplus from the extension options if
        # Cython.Distutils.extension.Extension is used, otherwise just
        # use what was parsed from the command-line or the configuration file.
        # cplus will also be set to true is extension.language is equal to
        # 'C++' or 'c++'.
        #try:
        #    create_listing = self.pyrex_create_listing or \
        #                        extension.pyrex_create_listing
        #    cplus = self.pyrex_cplus or \
        #                extension.pyrex_cplus or \
        #                (extension.language != None and \
        #                    extension.language.lower() == 'c++')
        #except AttributeError:
        #    create_listing = self.pyrex_create_listing
        #    cplus = self.pyrex_cplus or \
        #                (extension.language != None and \
        #                    extension.language.lower() == 'c++')

        create_listing = self.pyrex_create_listing or \
            getattr(extension, 'pyrex_create_listing', 0)
        line_directives = self.pyrex_line_directives or \
            getattr(extension, 'pyrex_line_directives', 0)
        cplus = self.pyrex_cplus or getattr(extension, 'pyrex_cplus', 0) or \
                (extension.language and extension.language.lower() == 'c++')
        pyrex_gen_pxi = self.pyrex_gen_pxi or getattr(extension, 'pyrex_gen_pxi', 0)

        # Set up the include_path for the Cython compiler:
        #    1.    Start with the command line option.
        #    2.    Add in any (unique) paths from the extension
        #        pyrex_include_dirs (if Cython.Distutils.extension is used).
        #    3.    Add in any (unique) paths from the extension include_dirs
        includes = self.pyrex_include_dirs
        try:
            for i in extension.pyrex_include_dirs:
                if not i in includes:
                    includes.append(i)
        except AttributeError:
            pass
        for i in extension.include_dirs:
            if not i in includes:
                includes.append(i)

        # Set up Cython compiler directives:
        #    1. Start with the command line option.
        #    2. Add in any (unique) entries from the extension
        #         pyrex_directives (if Cython.Distutils.extension is used).
        directives = self.pyrex_directives
        if hasattr(extension, "pyrex_directives"):
            directives.update(extension.pyrex_directives)

        # Set the target_ext to '.c'.  Cython will change this to '.cpp' if
        # needed.
        if cplus:
            target_ext = '.cpp'
        else:
            target_ext = '.c'

        # Decide whether to drop the generated C files into the temp dir
        # or the source tree.

        if not self.inplace and (self.pyrex_c_in_temp
                or getattr(extension, 'pyrex_c_in_temp', 0)):
            target_dir = os.path.join(self.build_temp, "pyrex")
        else:
            target_dir = None

        newest_dependency = None
        for source in sources:
            (base, ext) = os.path.splitext(os.path.basename(source))
            if ext == ".py":
                # FIXME: we might want to special case this some more
                ext = '.pyx'
            if ext == ".pyx":              # Cython source file
                output_dir = target_dir or os.path.dirname(source)
                new_sources.append(os.path.join(output_dir, base + target_ext))
                pyrex_sources.append(source)
                pyrex_targets[source] = new_sources[-1]
            elif ext == '.pxi' or ext == '.pxd':
                if newest_dependency is None \
                        or newer(source, newest_dependency):
                    newest_dependency = source
            else:
                new_sources.append(source)

        if not pyrex_sources:
            return new_sources

        module_name = extension.name

        for source in pyrex_sources:
            target = pyrex_targets[source]
            depends = [source] + list(extension.depends or ())
            rebuild = self.force or newer_group(depends, target, 'newer')
            if not rebuild and newest_dependency is not None:
                rebuild = newer(newest_dependency, target)
            if rebuild:
                log.info("cythoning %s to %s", source, target)
                self.mkpath(os.path.dirname(target))
                options = CompilationOptions(pyrex_default_options,
                    use_listing_file = create_listing,
                    include_path = includes,
                    compiler_directives = directives,
                    output_file = target,
                    cplus = cplus,
                    emit_linenums = line_directives,
                    generate_pxi = pyrex_gen_pxi)
                result = cython_compile(source, options=options,
                                        full_module_name=module_name)
            else:
                log.info("skipping '%s' Cython extension (up-to-date)", target)

        return new_sources

    # cython_sources ()

# class build_ext


text:
#include "GrProcessor.h"
#include "GrContext.h"
#include "GrGeometryProcessor.h"
#include "GrInvariantOutput.h"
#include "GrMemoryPool.h"
#include "GrXferProcessor.h"
#include "SkSpinlock.h"

#if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS

class GrFragmentProcessor;
class GrGeometryProcessor;

/*
 * Originally these were both in the processor unit test header, but then it seemed to cause linker
 * problems on android.
 */
template<>
SkTArray<GrProcessorTestFactory<GrFragmentProcessor>*, true>*
GrProcessorTestFactory<GrFragmentProcessor>::GetFactories() {
    static SkTArray<GrProcessorTestFactory<GrFragmentProcessor>*, true> gFactories;
    return &gFactories;
}

template<>
SkTArray<GrProcessorTestFactory<GrXPFactory>*, true>*
GrProcessorTestFactory<GrXPFactory>::GetFactories() {
    static SkTArray<GrProcessorTestFactory<GrXPFactory>*, true> gFactories;
    return &gFactories;
}

template<>
SkTArray<GrProcessorTestFactory<GrGeometryProcessor>*, true>*
GrProcessorTestFactory<GrGeometryProcessor>::GetFactories() {
    static SkTArray<GrProcessorTestFactory<GrGeometryProcessor>*, true> gFactories;
    return &gFactories;
}

/*
 * To ensure we always have successful static initialization, before creating from the factories
 * we verify the count is as expected.  If a new factory is added, then these numbers must be
 * manually adjusted.
 */
static const int kFPFactoryCount = 40;
static const int kGPFactoryCount = 14;
static const int kXPFactoryCount = 6;

template<>
void GrProcessorTestFactory<GrFragmentProcessor>::VerifyFactoryCount() {
    if (kFPFactoryCount != GetFactories()->count()) {
        SkFAIL("Wrong number of fragment processor factories!");
    }
}

template<>
void GrProcessorTestFactory<GrGeometryProcessor>::VerifyFactoryCount() {
    if (kGPFactoryCount != GetFactories()->count()) {
        SkFAIL("Wrong number of geometry processor factories!");
    }
}

template<>
void GrProcessorTestFactory<GrXPFactory>::VerifyFactoryCount() {
    if (kXPFactoryCount != GetFactories()->count()) {
        SkFAIL("Wrong number of xp factory factories!");
    }
}

#endif

// We use a global pool protected by a mutex(spinlock). Chrome may use the same GrContext on
// different threads. The GrContext is not used concurrently on different threads and there is a
// memory barrier between accesses of a context on different threads. Also, there may be multiple
// GrContexts and those contexts may be in use concurrently on different threads.
namespace {
static SkSpinlock gProcessorSpinlock;
class MemoryPoolAccessor {
public:
    MemoryPoolAccessor() { gProcessorSpinlock.acquire(); }

    ~MemoryPoolAccessor() { gProcessorSpinlock.release(); }

    GrMemoryPool* pool() const {
        static GrMemoryPool gPool(4096, 4096);
        return &gPool;
    }
};
}

int32_t GrProcessor::gCurrProcessorClassID = GrProcessor::kIllegalProcessorClassID;

///////////////////////////////////////////////////////////////////////////////

GrProcessor::~GrProcessor() {}

void GrProcessor::addTextureAccess(const GrTextureAccess* access) {
    fTextureAccesses.push_back(access);
    this->addGpuResource(access->getProgramTexture());
}

void GrProcessor::addBufferAccess(const GrBufferAccess* access) {
    fBufferAccesses.push_back(access);
    this->addGpuResource(access->getProgramBuffer());
}

void* GrProcessor::operator new(size_t size) {
    return MemoryPoolAccessor().pool()->allocate(size);
}

void GrProcessor::operator delete(void* target) {
    return MemoryPoolAccessor().pool()->release(target);
}

bool GrProcessor::hasSameSamplers(const GrProcessor& that) const {
    if (this->numTextures() != that.numTextures() || this->numBuffers() != that.numBuffers()) {
        return false;
    }
    for (int i = 0; i < this->numTextures(); ++i) {
        if (this->textureAccess(i) != that.textureAccess(i)) {
            return false;
        }
    }
    for (int i = 0; i < this->numBuffers(); ++i) {
        if (this->bufferAccess(i) != that.bufferAccess(i)) {
            return false;
        }
    }
    return true;
}

///////////////////////////////////////////////////////////////////////////////////////////////////

// Initial static variable from GrXPFactory
int32_t GrXPFactory::gCurrXPFClassID =
        GrXPFactory::kIllegalXPFClassID;

redpajama_set_name: RedPajamaGithub


text:
package MAIN;
public class StopWatch {

    private long startTime = 0;
    private long stopTime = 0;
    private long pausedTime = 0;
    private boolean running = false;

    public void start() {
        this.startTime = System.currentTimeMillis();
        pausedTime = 0;
        this.running = true;
    }

    public void stop() {
        this.stopTime = System.currentTimeMillis();
        this.running = false;
    }

    public void pause() {
        if(running) {
            pausedTime = System.currentTimeMillis();
            stop();
        }
    }

    public void resume() {
        if(!running){
            long duration = System.currentTimeMillis() - pausedTime;
            startTime += duration;
            this.running = true;
        }
    }
    public long getElapsedTime() {
        long elapsed;
        if (running) {
            elapsed = (System.currentTimeMillis() - startTime);
        } else {
            elapsed = (stopTime - startTime);
        }
        return elapsed;
    }
}


text:
@import services.UserService
@import play.api._
@import play.api.mvc._
@import be.objectify.deadbolt.scala._
@import org.webjars.play.WebJarsUtil
@import play.api.i18n._
@import be.objectify.deadbolt.scala.views.html.di._

@this(subjectNotPresent: subjectNotPresent, subjectPresentOr: subjectPresentOr)
@(userService: UserService, playAuth: com.feth.play.module.pa.PlayAuthenticate)(implicit request: AuthenticatedRequest[Any],
  webJarsUtil: WebJarsUtil, jContext: play.mvc.Http.Context, config: Configuration, env: Environment, lang: Lang, messagesApi: MessagesApi)

@main(userService, messagesApi("playauthenticate.link.account.title"), jContext, subjectNotPresent, subjectPresentOr) {

@messagesApi("playauthenticate.link.account.title")

@_providerPartial(playAuth)

}


text:
module VagrantPlugins
  module HostVoid
    module Cap
      class NFS
        def self.nfs_check_command(env)
          "sudo /usr/bin/sv status nfs-server"
        end

        def self.nfs_start_command(env)
          <<-EOF
            /usr/bin/ln -s /etc/sv/statd      /var/service/ && \
            /usr/bin/ln -s /etc/sv/rpcbind    /var/service/ && \
            /usr/bin/ln -s /etc/sv/nfs-server /var/service/
          EOF
        end

        def self.nfs_installed(env)
          result = Vagrant::Util::Subprocess.execute("/usr/bin/xbps-query", "nfs-utils")
          result.exit_code == 0
        end
      end
    end
  end
end


text:
package server

import (
	"encoding/json"

	"reflect"

	"github.com/lfq7413/tomato/livequery/t"
)

var dafaultFields = []string{"className", "objectId", "updatedAt", "createdAt", "ACL"}

// Client 客户端信息
// ws 当前对象的 WebSocket 连接
// SubscriptionInfos 当前客户端发起的所有请求对应的订阅信息
type Client struct {
	id                int
	ws                *WebSocket
	SubscriptionInfos map[int]*SubscriptionInfo
	PushConnect       func(int, t.M, t.M)
	PushSubscribe     func(int, t.M, t.M)
	PushUnsubscribe   func(int, t.M, t.M)
	PushCreate        func(int, t.M, t.M)
	PushEnter         func(int, t.M, t.M)
	PushUpdate        func(int, t.M, t.M)
	PushDelete        func(int, t.M, t.M)
	PushLeave         func(int, t.M, t.M)
}

// NewClient ...
func NewClient(id int, ws *WebSocket) *Client {
	c := &Client{
		id: id,
		ws: ws,
	}
	c.SubscriptionInfos = map[int]*SubscriptionInfo{}
	c.PushConnect = c.pushEvent("connected")
	c.PushSubscribe = c.pushEvent("subscribed")
	c.PushUnsubscribe = c.pushEvent("unsubscribed")
	c.PushCreate = c.pushEvent("create")
	c.PushEnter = c.pushEvent("enter")
	c.PushUpdate = c.pushEvent("update")
	c.PushDelete = c.pushEvent("delete")
	c.PushLeave = c.pushEvent("leave")
	return c
}

func pushResponse(ws *WebSocket, msg string) {
	go ws.send(msg)
}

// PushError 发送错误信息
func PushError(ws *WebSocket, code int, errMsg string, reconnect bool) {
	errResp := t.M{
		"op":        "error",
		"error":     errMsg,
		"code":      code,
		"reconnect": reconnect,
	}
	data, err := json.Marshal(errResp)
	if err != nil {
		return
	}
	pushResponse(ws, string(data))
}

// AddSubscriptionInfo 添加 requestID 对应的订阅信息
func (c *Client) AddSubscriptionInfo(requestID int, subscriptionInfo *SubscriptionInfo) {
	c.SubscriptionInfos[requestID] = subscriptionInfo
}

// GetSubscriptionInfo 获取 requestID 对应的订阅信息
func (c *Client) GetSubscriptionInfo(requestID int) *SubscriptionInfo {
	return c.SubscriptionInfos[requestID]
}

// DeleteSubscriptionInfo 删除 requestID 对应的订阅信息
func (c *Client) DeleteSubscriptionInfo(requestID int) {
	delete(c.SubscriptionInfos, requestID)
}

// pushEvent 发送消息
func (c *Client) pushEvent(eventType string) func(int, t.M, t.M) {
	return func(subscriptionId int, object, originalObject t.M) {
		response := t.M{
			"op":       eventType,
			"clientId": c.id,
		}
		if subscriptionId != 0 {
			response["requestId"] = subscriptionId
		}
		if object != nil {
			fields := []string{}
			if info, ok := c.SubscriptionInfos[subscriptionId]; ok {
				fields = info.Fields
			}
			if eventType != "delete" {
				// 仅在更新与创建时去转换操作符
				transformUpdateOperators(object, originalObject)
			}
			response["object"] = c.toObjectWithFields(object, fields)
		}
		r, err := json.Marshal(response)
		if err != nil {
			return
		}
		pushResponse(c.ws, string(r))
	}
}

// toObjectWithFields 返回指定字段
func (c *Client) toObjectWithFields(object t.M, fields []string) t.M {
	if len(fields) == 0 {
		return object
	}

	limitedObject := t.M{}
	for _, field := range dafaultFields {
		limitedObject[field] = object[field]
	}

	for _, field := range fields {
		if v, ok := object[field]; ok {
			limitedObject[field] = v
		}
	}

	return limitedObject
}

// transformUpdateOperators 把更新操作符转换为更新之后的值
func transformUpdateOperators(object, originalObject t.M) {
	if object == nil {
		return
	}
	if originalObject == nil {
		originalObject = t.M{}
	}

	for key, v := range object {
		if value, ok := v.(map[string]interface{}); ok && value != nil {
			var op string
			if s, ok := value["__op"].(string); ok && s != "" {
				op = s
			} else {
				continue
			}
			switch op {
			case "Increment":
				var amount float64
				if a, ok := value["amount"].(float64); ok {
					amount = a
				} else if a, ok := value["amount"].(int); ok {
					amount = float64(a)
				}
				if a, ok := originalObject[key].(float64); ok {
					amount = a + amount
				} else if a, ok := originalObject[key].(int); ok {
					amount = float64(a) + amount
				}
				object[key] = amount
			case "Add":
				objects := []interface{}{}
				if objs, ok := value["objects"].([]interface{}); ok && objs != nil {
					objects = objs
				}
				if objs, ok := originalObject[key].([]interface{}); ok && objs != nil {
					objects = append(objs, objects...)
				}
				object[key] = objects
			case "AddUnique":
				objects := []interface{}{}
				if objs, ok := value["objects"].([]interface{}); ok && objs != nil {
					objects = objs
				}
				if objs, ok := originalObject[key].([]interface{}); ok && objs != nil {
					for _, obj := range objects {
						isUnique := true
						for _, obj2 := range objs {
							if reflect.DeepEqual(obj, obj2) {
								isUnique = false
								break
							}
						}
						if isUnique {
							objs = append(objs, obj)
						}
					}
					objects = objs
				}
				object[key] = objects
			case "Remove":
				objects := []interface{}{}
				if objs, ok := value["objects"].([]interface{}); ok && objs != nil {
					objects = objs
				}
				removeObjs := []interface{}{}
				if objs, ok := originalObject[key].([]interface{}); ok && objs != nil {
					for _, obj := range objs {
						canRemove := false
						for _, obj2 := range objects {
							if reflect.DeepEqual(obj, obj2) {
								canRemove = true
								break
							}
						}
						if canRemove == false {
							removeObjs = append(removeObjs, obj)
						}
					}
				}
				object[key] = removeObjs
			case "Delete":
				delete(object, key)
			case "AddRelation", "RemoveRelation":
				tp := map[string]interface{}{"__type": "Relation"}
				objects := []interface{}{}
				if objs, ok := value["objects"].([]interface{}); ok && objs != nil {
					objects = objs
				}
				for _, obj := range objects {
					if o, ok := obj.(map[string]interface{}); ok && o != nil {
						if className, ok := o["className"].(string); ok && className != "" {
							tp["className"] = className
							break
						}
					}
				}
				object[key] = tp
			}
		}
	}

}


text:
require "net/http"

class Foo
	def self.bar
		puts "from Foo.bar"
	end
end

class Fuck
	class << Fuck
		def fuck
			puts "fucked here"
		end
	end
end

Foo::bar

puts $LOAD_PATH
$LOAD_PATH.unshift('./')
require "require_lib"

RequireLib.test
RequireLib.test2
Fuck.fuck

puts File.dirname(__FILE__)


text:
package org.springframework.boot.gradle;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.gradle.tooling.ProjectConnection;
import org.junit.Test;
import org.springframework.boot.dependency.tools.ManagedDependencies;

import static org.junit.Assert.fail;

/**
 * Integration tests for the Gradle plugin's Spring Loaded support
 *
 * @author Andy Wilkinson
 */
public class SpringLoadedTests {

	private static final String BOOT_VERSION = ManagedDependencies.get()
			.find("spring-boot").getVersion();

	private static final String SPRING_LOADED_VERSION = ManagedDependencies.get()
			.find("springloaded").getVersion();

	@Test
	public void defaultJvmArgsArePreservedWhenLoadedAgentIsConfigured()
			throws IOException {
		ProjectConnection project = new ProjectCreator()
				.createProject("spring-loaded-jvm-args");
		project.newBuild()
				.forTasks("bootRun")
				.withArguments("-PbootVersion=" + BOOT_VERSION,
						"-PspringLoadedVersion=" + SPRING_LOADED_VERSION, "--stacktrace")
				.run();

		List<String> output = getOutput();
		assertOutputContains("-DSOME_ARG=someValue", output);
		assertOutputContains("-Xverify:none", output);
		assertOutputMatches(
				"-javaagent:.*springloaded-" + SPRING_LOADED_VERSION + ".jar", output);
	}

	@Test
	public void springLoadedCanBeUsedWithGradle16() throws IOException {
		ProjectConnection project = new ProjectCreator("1.6")
				.createProject("spring-loaded-old-gradle");
		project.newBuild()
				.forTasks("bootRun")
				.withArguments("-PbootVersion=" + BOOT_VERSION,
						"-PspringLoadedVersion=" + SPRING_LOADED_VERSION, "--stacktrace")
				.run();

		List<String> output = getOutput();
		assertOutputMatches(
				"-javaagent:.*springloaded-" + SPRING_LOADED_VERSION + ".jar", output);
	}

	private List<String> getOutput() throws IOException {
		BufferedReader reader = new BufferedReader(new FileReader(new File(
				"target/spring-loaded-jvm-args/build/output.txt")));
		try {
			List<String> lines = new ArrayList<String>();

			String line;

			while ((line = reader.readLine()) != null) {
				lines.add(line);
			}
			return lines;
		}
		finally {
			reader.close();
		}
	}

	private void assertOutputContains(String requiredOutput, List<String> actualOutput) {
		for (String line : actualOutput) {
			if (line.equals(requiredOutput)) {
				return;
			}
		}
		fail("Required output '" + requiredOutput + "' not found in " + actualOutput);
	}

	private void assertOutputMatches(String requiredPattern, List<String> actualOutput) {
		for (String line : actualOutput) {
			if (line.matches(requiredPattern)) {
				return;
			}
		}
		fail("Required pattern '" + requiredPattern + "' not matched in " + actualOutput);
	}
}


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

<!-- *********************************************************************** -->
<!-- SPECIAL NOTES TO TRANSLATORS:  -->

<!--   Background information: These phrases are from an iPhone app called "Bump" that lets two users connect to share contact information and photos by physically bumping their two phones together.  Before starting your translation, please watch this 30-second video so you understand what this means: http://bu.mp/videos.html -->

<!--   How to treat the word "bump":  "Bump" is the name of the application and the name of our company, but it represents a physical action of bumping two phones together.  Please use the most appropriate word in your language to represent this, unless otherwise instructed. -->

<!--   *Length of your tranlsations*:  Because these phrases will appear on a mobile phone, you must keep your translations short in length so they fit in the space provided.  Please try to keep your translations shorter-than or equal-to the length of the English phrase.  If you must alter the wording to achieve this, that is OK.  -->

<!--   Special placeholders:  This file is read directly by the computer to generate the phrases in the application.  Some phrases contain special characters that represent various things.  For example, %s is used as a placeholder for another word, usually a person's name.  \n is sometimes used to represent a newline character.  If a special character placeholder appears in the English phrase, please use it in your translation in the appropriate place.  -->

<!--   How to read this file:  Each phrase listed is shown in this format: "This is the English phrase" = "This is where you put your translation</string>  Please DO NOT ALTER THE LEFT HAND SIDE OF THE = sign IN ANY WAY.  You will place your translation in place of the English phrase on the RIGHT-HAND SIDE of the =.  For example, "This phrase is in English" = "This phrase is now in Chinese becuase I replaced the English phrase with my translation</string>  Above each phrase, we've explained exactly how this phrase is used and included any special instructions.  Please DO NOT tranlsation these instructions :) -->

<!--   IF YOU HAVE ANY QUESTIONS WHATSOEVER, PLEASE EMAIL translations@bu.mp  or call 1-650-275-2867.  We will respond within minutes unless we are asleep.  Thanks!!! :)  -->

<!-- *********************************************************************** -->

<!-- Tell the user that the other user has canceled the bump connection and ask him to please try again.  The %s is a placeholder for a person's name.  Please use %s as a placeholder for the other user's name. "bump" is used as a noun here. -->
<string name="bump_other_canceled">%s取消了相碰操作 - 請重試</string>

<!-- This message tells the user that the application they are using does not have a valid key for the Bump API.  "Key" in this context means "permission" or "authorization".  Please leave "Bump API" in English.  -->
<string name="bump_invalid_key">%s的Bump API授權無效</string>

<!-- This message tells the user that the connection is almost complete and prompts him to bump his phone with the other user's phone again.  "bump" is used as a verb here. -->
<string name="bump_again">即將完成 - 請再次相碰</string>

<!-- This prompts the user to bump his phone against the phone of another user to initiate a connection between their two phones. "Bump" is used as a verb here.  \n represents a newline character, so please make sure the translation includes this.  -->
<string name="bump_to_connect">為了連接\n請把手機相碰</string>

<!-- This message tells the user that the connection was successfully made using Bump. "Bump" is used as a noun here.  -->
<string name="bump_successful">相碰成功!</string>

<!-- This message tells the user that the this application cannot connect to the Bump service -->
<string name="bump_cannot_connect">無法連接</string>

<!-- This prompt asks the user if he would like to connect with the other user.  "%s" is a placeholder for the other user's name.  Please use it in your translation. -->
<string name="bump_confirm_connect">與%s連接?</string>

<!-- This message tells the user that he is now connected to the other user.  "%s" is a placeholder for the other user's name.  Please use it in your translation.  -->
<string name="bump_connected">已連接到%s!</string>

<!-- This message tells the user that the Bump service is currently trying to find a connection with another user.  -->
<string name="bump_connecting">正在連接</string>

<!-- This text appears on a button that allows the user to change his displayed name in the application.  Please pay special attention to keeping this text as short as possible while still conveying the meaning. -->
<string name="bump_edit_name">編輯名稱</string>

<!-- This message is displayed to tell the user that the Network (the internet, the cellular network, etc) is not currently available. -->
<string name="bump_no_network">網絡暫時無法使用</string>

<!-- This message prompts the user to check that his internet connection is working. -->
<string name="bump_check_network">請檢查您的網際網路連接</string>

<!-- This message asks the user to please wait while the Bump service is doing something. -->
<string name="bump_please_wait">請稍候</string>

<!-- This message tells the user that the action he just tried to perform is not supported by this application. -->
<string name="bump_unsupported">不支援的操作,請重試。</string>

<!-- This message tells the user that the Bump service is waiting for the other user to do something. "%s" is a placeholder for the other user's name.  Please use it in your translation.  -->
<string name="bump_waiting_for">等待%s</string>

<!-- This message tells the user to please wait while the Bump service is initialized.  "Warming up" is an English slang for "initializing" or "getting ready".  The \n before "please" represents a newline character, please use it in your translation. -->
<string name="bump_warming_up">初始化中 -\n請稍候</string>

<!-- This message informs the user that he canceled the bump connection.  "bump" is used as a noun here.   -->
<string name="bump_you_canceled">您取消了相碰</string>

<!-- *********************************** -->

<!-- Tell the user that no match was found with another user and ask him to please try again -->
<string name="bump_no_match">無匹配 - 請重試</string>

<!-- This message is displayed if the user attempts to share an item with a user of a different app.  We tell the user he can only share with users of the Bump app.  Please leave "Bump App" in English. -->
<string name="bump_only_share">您只能與Bump App使用者共用</string>

<!-- Tell the user that the other user's version of the Bump app does not support a feature called "Bump-an-App".  "Bump-an-app" means "share an application by using the Bump application.  The '\' in "user\'s" is to allow the computer to display the apostrophe.  If your translation uses an apostrophe, please use "\'".  In this case, "Bump" refers to the name of our application, so please leave "Bump" in English.  If there is a good way to translation "Bump-an-app" while keeping the "Bump" part of it in English, feel free to do so.  Otherwise leave "Bump-an-App" in English too.  -->
<string name="bump_app_unsupp">對方的Bump版本不支援Bump-an-App</string>

<!-- ************************************** -->

<!-- Tell the user that the person they bumped with experienced  an error with their network communications and ask them to try again later when a better signal is available -->
<string name="bump_other_error">另一使用者遇到通信錯誤。請在信號更好時重試。</string>

<!-- Tell the user that the location of his iPod may be unknown and warm them that Bump may now work -->
<string name="bump_no_location_ipod">此iPod位置可能未知。Bump可能無法工作。</string>

<!-- Tell the user that the location of his iPhone may be unknown and warm them that Bump may now work -->
<string name="bump_no_location_iphone">此iPhone位置可能未知。Bump可能無法工作。</string>

<!-- Tell the user that Bump is having trouble finding his location.  Ask them to turn on Location Services or connect both devices to the same Wifi network -->
<string name="bump_bad_location">Bump難以確定您的位置。\n\n請開啟「位置服務」和/或將兩個裝置都連線到同一WiFi熱點。</string>

<!-- Tell the user that there was no matching device phone, meaning that he was the only person to bump -->
<string name="bump_no_matches">您是唯一要進行相碰操作的人。</string>

<!-- Tell the user that sometimes they have to bump twice to find a match -->
<string name="bump_two_times">有時候需要相碰兩次。</string>

<!-- Tell the user that his network connection may be too slow. -->
<string name="bump_slow_network">您的網路可能太慢,因此無法使用Bump。\n\n請稍後在有更好的網路連線時重試。</string>

<!-- Tell the user that his version of Bump does not support a feature called Bump-an-App. "Bump-an-app" means "share an application by using the Bump application. If there is a good way to translation "Bump-an-app" while keeping the "Bump" part of it in English, feel free to do so.  Otherwise leave "Bump-an-App" in English too.  -->
<string name="bump_old_version">您的版本不支援Bump-an-App。請升級。</string>

<!-- This text appears on a small button, so it must be short -->
<string name="bump_yes">是</string>

<!-- This text appears on a small button, so it must be short -->
<string name="bump_no">否</string>

</resources>


text:
/**
 */
export default function OperationCtrl() {

    this.types = {
        scheme: ["http", "https", "ws", "wws"],
        mime: ["create custom", "text/plain", "application/json", "text/xml", "application/xml", "application/atom+xml", "application/x-www-form-urlencoded"]
    };

    this.state = {
        consume: null,
        customConsume: null,
        produce: null,
        customProduce: null,
        schema: null,
        customSchema: null
    };

    this.reset = reset;

    /**
      * @name addType
      * @desc invokes a call to handle the logic of adding types.
      * @type {Function}
     **/
    this.addType = function addEvent(...args) {

        const list = args[0];
        const type = args[1];
        const resetDropdown = args[2];

        this.operationObj.addType(list, type);

        if (resetDropdown) {
            reset.call(this, list);
        }

    }.bind(this);

    /**
      * @name removeType
      * @desc invokes a call to handle the logic of removing types.
      * @type {Function}
     **/
    this.removeType = function removeEvent(list, type) {
        this.operationObj.removeType(list, type);

    }.bind(this);

    /**
     *
     * @param list
     */
    function reset(list) {
        switch (list) {
        case "consumes":
            this.state.consume = null;
            this.state.customConsume = "";
            break;
        case "produces":
            this.state.produce = null;
            this.state.customProduce = "";
            break;
        case "schemes":
            this.state.scheme = null;
            this.state.customScheme = "";
            break;
        default:
            this.state = {
                consume: null,
                customConsume: null,
                produce: null,
                customProduce: null,
                schema: null,
                customSchema: null
            };

        }
    }
}


text:
var cordova_events = require('./src/events');
var cordova_util = require('./src/util');

var off = function() {
    cordova_events.removeListener.apply(cordova_events, arguments);
};

var emit = function() {
    cordova_events.emit.apply(cordova_events, arguments);
};

exports = module.exports = {
    on:        function() {
        cordova_events.on.apply(cordova_events, arguments);
    },
    off:       off,
    removeListener:off,
    removeAllListeners:function() {
        cordova_events.removeAllListeners.apply(cordova_events, arguments);
    },
    emit:      emit,
    trigger:   emit,
    raw: {}
};

exports.findProjectRoot = function(opt_startDir) {
    return cordova_util.isCordova(opt_startDir);
}

// Each of these APIs takes a final parameter that is a callback function.
// The callback is passed the error object upon failure, or undefined upon success.
// To use a promise instead, call the APIs via cordova.raw.FOO(), which returns
// a promise instead of using a final-parameter-callback.
var addModuleProperty = cordova_util.addModuleProperty;
addModuleProperty(module, 'prepare', './src/prepare', true);
addModuleProperty(module, 'build', './src/build', true);
addModuleProperty(module, 'help', './src/help');
addModuleProperty(module, 'config', './src/config');
addModuleProperty(module, 'create', './src/create', true);
addModuleProperty(module, 'emulate', './src/emulate', true);
addModuleProperty(module, 'plugin', './src/plugin', true);
addModuleProperty(module, 'plugins', './src/plugin', true);
addModuleProperty(module, 'serve', './src/serve');
addModuleProperty(module, 'platform', './src/platform', true);
addModuleProperty(module, 'platforms', './src/platform', true);
addModuleProperty(module, 'compile', './src/compile', true);
addModuleProperty(module, 'run', './src/run', true);
addModuleProperty(module, 'info', './src/info', true);


text:
{{'code' | translate}}

        {{'team' | translate}}

         <ng-select
              id='configure-bitbucket-org-select'
              class="custom-select"
              aria-labelledby="dc-bitbucket-org-label"
              [items]="OrgList"
              bindLabel="displayLabel"
              bindValue="value"
              [clearable]="false"
              [(ngModel)]="selectedOrg"
              [loading]="orgsLoading"
              [ngModelOptions]="{standalone: true}"
              (change)="OrgChanged($event)">
        </ng-select>

      {{'repository' | translate}}

        <ng-select
          id='configure-bitbucket-repo-select'
          class="custom-select"
          aria-describedby="dc-bitbucket-repo-error"
          aria-labelledby="dc-bitbucket-repo-label"
          [items]="RepoList"
          bindLabel="displayLabel"
          bindValue="value"
          [clearable]="false"
          formControlName="repoUrl"
          [(ngModel)]="selectedRepo"
          [loading]="reposLoading"
          (change)="RepoChanged($event)">
        </ng-select>

      {{'branch' | translate}}

        <ng-select
          id='configure-bitbucket-branch-select'
          class="custom-select"
          [items]="BranchList"
          aria-describedby="dc-bitbucket-branch-error"
          aria-labelledby="dc-bitbucket-branch-label"
          bindLabel="displayLabel"
          bindValue="value"
          [clearable]="false"
          [(ngModel)]="selectedBranch"
          [loading]="branchesLoading"
          formControlName="branch">
        </ng-select>


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dbot.CommonModels {
  public class ModPrivateMessage : PrivateMessage {
    public ModPrivateMessage(string nick, string data) : base(nick, data) {
      Sender.Flair.Add("mod");
    }
  }
}


text:
/* version: 1.3.1 */

.sheet-13thAge {
    padding-top: 10px;
    background: url('https://neovatar.github.io/roll20-character-sheets/13th_Age-neovatar/img/bg3.jpg') repeat top left;
    position: relative;
    font-size: 0.9em;
}

.sheet-desc-show:not(:checked)~.sheet-desc,
.sheet-macro-text-show:not(:checked)~.sheet-macro-text,
.sheet-sect-show:not(:checked)~.sheet-sect {
    display:none;
}

.sheet-table {
    display:table;
    border-collapse: collapse;
    width:100%;
}

.sheet-small-label {
    font-size: 85%!important;
    font-style: italic;
    font-weight: bold;
}

.sheet-table-name {
    display:table-caption;
    text-align:center;
    width:100%;
    /*background-color: rgba(125,114,69,0.7);*/
    background-color: rgba(0,0,0,0.7);
    color: white;*
}

.sheet-round {
    border-width: 0px 1px 0px 0px;
    border-color: rgba(125,114,69,0.2);
    border-style: solid;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    padding-bottom: 2px;
    padding-top: 2px;
}

.sheet-caps {
    font-size: 1.6em;
    font-variant: small-caps;
}

.sheet-invert {
    background-color:black;
    color: white;
    font-weight: bold
}

.sheet-table-smallsub {
    font-variant: small-caps;
    text-transform: capitalize;
}

.sheet-table-header {
    display:table-cell;
    text-align:center;
    font-weight:bold;
    vertical-align:bottom;
    background-color: rgba(125,114,69,0.2);
}

.sheet-table-maxspan {
    display:table-caption;
    text-align:center;
    width:100%;
    background-color: rgba(125,114,69,0.2);
    border-width: 0px 1px 0px 0px;
    border-color: rgba(125,114,69,0.2);
    border-style: solid;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
}

.sheet-table-small {
    font-size: 0.8em;
}

.sheet-table-padding {
    padding: 0px 5px 0px 5px;
}

.sheet-table-subheader {
    display:table-cell;
    text-align:left;
    font-style: italic;
    vertical-align:middle;
}

.sheet-table-total {
    display:table-cell;
    text-align:left;
    font-style: italic;
    background-color:black;
    color: white;
}

.sheet-table-data {
    display:table-cell;
    vertical-align:middle;
}

.sheet-center {
    text-align:center;
}

.sheet-left {
    text-align:left;
}

.sheet-right {
    text-align:right;
}

.sheet-bold {
    font-weight: bold;
}

.sheet-table-row {
    display:table-row;
    vertical-align:bottom;
    width:100%;
}

.sheet-table-row-name {
    display:table-cell;
    text-align:center;
    vertical-align:middle;
    color:white;
    background-color:black;
    font-weight:bold;
}

.sheet-label {
    font-weight:bold;
}

input[type="text"], input[type="number"] {
    background-color: transparent;
    border-style: solid;
    border-color: darkgray;
    border-width: 0px 0px 2px 0px;
}

input.sheet-power-header[type="text"], input.sheet-power-header[type="number"] {
    /*background-color: black;*/
    border-style: solid;
    border-width: 0px 0px 0px 0px;
    /*color: white;*/
    font-weight: bold;
    background-color: rgba(125,114,69,0.2);
}

input[type="text"]:disabled, input[type="number"]:disabled {
    background-color: lightgray;
    border-style: solid;
    border-color: black;
    border-width: 0px 0px 0px 0px;
}

input[type="text"], select {
    width:100%;
    margin:0;
}

div[class^="sheet-section"] {
    display: none;
}

div[class^="sheet-setup"] {
    display: none;
}

div[class^="sheet-npc"] {
    display: none;
}

input.sheet-tab11:checked ~ div[class^="sheet-section-setup"] {
    display: block;
}

input.sheet-tab99:checked ~ div[class^="sheet-section-npc"] {
    display: block;
}

input.sheet-tab {
    width: 70px;
    height: 20px;
    cursor: pointer;
    position: relative;
    opacity: 0;
    z-index: 9999;
}

span.sheet-tab {
    text-align: center;
    display: inline-block;
    font-size: 13px;
    /*background: black;*/
    background-color: rgba(125,114,69,0.2);
    color: white;
    font-weight: bold;
    border-style: solid;
    border-radius: 10px;
    border-width: 0px;
    width: 70px;
    height: 20px;
    cursor: pointer;
    position: relative;
    margin-left: -70px;
    margin-bottom: 2px;
}

input.sheet-tab::before {
    content: attr(title);
    text-align: center;
    display: inline-block;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    font-weight: bold;
}

input.sheet-tab:checked::before {
    background:gray;
    color:white;
}

input.sheet-tab1:checked ~ div.sheet-section-core,
input.sheet-tab2:checked ~ div.sheet-section-class,
input.sheet-tab3:checked ~ div.sheet-section-defenses,
input.sheet-tab4:checked ~ div.sheet-section-attacks,
input.sheet-tab5:checked ~ div.sheet-section-skills,
input.sheet-tab6:checked ~ div.sheet-section-feats,
input.sheet-tab7:checked ~ div.sheet-section-inventory,
input.sheet-tab8:checked ~ div.sheet-section-spells,
input.sheet-tab9:checked ~ div.sheet-section-details,
input.sheet-tab11:checked ~ div.sheet-section-setup,
input.sheet-tab10:checked ~ div.sheet-section-npc {
    display: block;
}

input.sheet-tab1:checked + span.sheet-tab1,
input.sheet-tab2:checked + span.sheet-tab2,
input.sheet-tab3:checked + span.sheet-tab3,
input.sheet-tab4:checked + span.sheet-tab4,
input.sheet-tab5:checked + span.sheet-tab5,
input.sheet-tab6:checked + span.sheet-tab6,
input.sheet-tab7:checked + span.sheet-tab7,
input.sheet-tab8:checked + span.sheet-tab8,
input.sheet-tab9:checked + span.sheet-tab9,
input.sheet-tab11:checked + span.sheet-tab11,
input.sheet-tab99:checked + span.sheet-tab99,
input.sheet-tab10:checked + span.sheet-tab10 {
    background: gray;
    color: white;
}

.sheet-text-button {
    font-size:100%;
    color:white;
    background-color:black;
    border:0px;
    font-weight: bold;
}

button,
button:hover,
button:active
{
    background-image: none;
}

input[type="checkbox"] + span::before
{
    margin-right: 4px;
    line-height: 14px;
    text-align: center;
    display: inline-block;
    vertical-align: middle;

    content: "[show]";
    width: 14px;
    height: 14px;
}
input[type="checkbox"]:checked + span::before
{
    content: "[hide]";
}

hr {
    border-color:black;
}

hr.sheet-hr {
    height: 5px;
    border-width: 2px 0 0 0;
    margin: 0px;
    padding: 0px;
    border-color: darkgray;
}

hr.sheet-hr-fancy {
    border: 0;
    height: 1px;
    margin: 0px;
    padding: 0px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

textarea {
    box-sizing:border-box;
    background-color: rgba(255,255,255,0.5);
    font-size: 12px;
    line-height: 1.25em;
}

textarea.sheet-textarea-desc {
    height:5em;
    font-size: 12px;
}

/* roll templates */

/* generic template */
.sheet-rolltemplate-13thage_generic table {
    width:100%;
    background-color:white;
    border:2px solid #000;
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 5px;
    -moz-box-shadow: 2px 2px 5px #000;
    -webkit-box-shadow: 2px 2px 5px #000;
    box-shadow:2px 2px 5px #000;
    overflow: hidden;
}

.sheet-rolltemplate-13thage_generic .sheet-header {
    background-color:#000;
    margin: 2px 25px 2px 25px;
    border: 1px solid #000;
    color:white;
    font-family:"Helvetica Neue",Helvetica,sans-serif;
    font-size:1em;
    font-weight:bold;
    text-align: center;
}

.sheet-rolltemplate-13thage_generic .sheet-header a{
    color:white;
    text-decoration: underline;
}

.sheet-rolltemplate-13thage_generic td {
    padding:5px;line-height:1.4em;
    vertical-align:top;
    text-align:right
}
.sheet-rolltemplate-13thage_generic tr:nth-child(odd) {
    background-color:#D3D3D3;
}

.sheet-rolltemplate-13thage_generic td:nth-child(odd) {
    text-align:left;
    font-weight:bold
}

.sheet-rolltemplate-13thage_generic .inlinerollresult  {
    color: white;
    background-color: black;
    border-color:black;
}

.sheet-rolltemplate-13thage_generic .inlinerollresult.fullcrit {
    color: white;
    background-color: #3FB315
}

.sheet-rolltemplate-13thage_generic .inlinerollresult.fullfail {
    color: white;
    background-color: #B31515
}

.sheet-rolltemplate-13thage_generic .inlinerollresult.importantroll {
    color: white;
    background-color: #4A57ED;
}

/* power template */
.sheet-rolltemplate-13thage_power table {
    width:100%;
    background-color:white;
    border:2px solid #000;
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 5px;
    -moz-box-shadow: 2px 2px 5px #000;
    -webkit-box-shadow: 2px 2px 5px #000;
    box-shadow:2px 2px 5px #000;
    overflow: hidden;
}

.sheet-rolltemplate-13thage_power .sheet-header {
    background-color:#000;
    margin: 2px 25px 2px 25px;
    border: 1px solid #000;
    padding-bottom: 2px;
    color:white;
    font-family:"Helvetica Neue",Helvetica,sans-serif;
    font-size:1em;
    font-weight:bold;
    text-align: center;
}

.sheet-rolltemplate-13thage_power .sheet-header-small {
    background-color:#000;
    margin: 2px 2px 2px 2px;
    border: 1px solid #000;
    padding-top: 2px;
    color:white;
    font-family:"Helvetica Neue",Helvetica,sans-serif;
    font-size:0.8em;
    font-weight:bold;
    text-align: center;
}

.sheet-rolltemplate-13thage_power .sheet-header a{
    color:white;
    text-decoration: underline;
}

.sheet-rolltemplate-13thage_power td {
    padding:5px;line-height:1.4em;
    vertical-align:top;
    text-align:justify;
}

.sheet-rolltemplate-13thage_power .inlinerollresult  {
    color: white;
    background-color: black;
    border-color:black;
}

.sheet-rolltemplate-13thage_power .inlinerollresult.fullcrit {
    color: white;
    background-color: #3FB315
}

.sheet-rolltemplate-13thage_power .inlinerollresult.fullfail {
    color: white;
    background-color: #B31515
}

.sheet-rolltemplate-13thage_power .inlinerollresult.importantroll {
    color: white;
    background-color: #4A57ED;
}

/* block text template */
.sheet-rolltemplate-13thage_block table {
    width:100%;
    background-color:white;
    border:2px solid #000;
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 5px;
    -moz-box-shadow: 2px 2px 5px #000;
    -webkit-box-shadow: 2px 2px 5px #000;
    box-shadow:2px 2px 5px #000;
    overflow: hidden;
}

.sheet-rolltemplate-13thage_block .sheet-header {
    background-color:#000;
    margin: 2px 25px 2px 25px;
    border: 1px solid #000;
    color:white;
    font-family:"Helvetica Neue",Helvetica,sans-serif;
    font-size:1em;
    font-weight:bold;
    text-align: center;
}

.sheet-rolltemplate-13thage_block .sheet-header a{
    color:white;
    text-decoration: underline;
}

.sheet-rolltemplate-13thage_block td {
    padding:5px;line-height:1.4em;
    vertical-align:top;
    text-align:right
}
.sheet-rolltemplate-13thage_block tr:nth-child(odd) {
    background-color:#D3D3D3;
}

.sheet-rolltemplate-13thage_block .inlinerollresult  {
    background-color: transparent;
    border: none;
}

.sheet-rolltemplate-13thage_block .inlinerollresult.fullcrit {
    color: #3FB315;
    border: none;
}

.sheet-rolltemplate-13thage_block .inlinerollresult.fullfail {
    color: #B31515;
    border: none;
}

.sheet-rolltemplate-13thage_block .inlinerollresult.importantroll {
    color: #4A57ED;
    border: none;
}


text:
/**
 * @class angular_module.Module:app.Controller:logoutCtrl
 * @description This is an AngularJS controller component, can be defined in JavaScript object or as a value of attribute ng-controller
 * @example
 * {
 *  controller: 'logoutCtrl as LC'
 * }
 * @example
 *

 */

app.controller('logoutCtrl', ['auth', function (auth) {
    /**
     * @function logout
     * @memberOf angular_module.Module:app.Controller:logoutCtrl
     * @instance
     * @description This method is used to log out user from application
     * @example
     * this,logout();
     * logout();
     */

    var logout = this.logout = function () {
        auth.logout();
    };

    logout();
}]);


text:
Modifier le découpage n° <?php echo $form->getObject()->getId()?>

    <?php include_partial('form', array('form' => $form)) ?>


text:
module Azure::ARM::MachineLearning
  module Models
    #
    # Defines values for ColumnFormat
    #
    module ColumnFormat
      Byte = "Byte"
      Char = "Char"
      Complex64 = "Complex64"
      Complex128 = "Complex128"
      DateTime = "Date-time"
      DateTimeOffset = "Date-timeOffset"
      Double = "Double"
      Duration = "Duration"
      Float = "Float"
      Int8 = "Int8"
      Int16 = "Int16"
      Int32 = "Int32"
      Int64 = "Int64"
      Uint8 = "Uint8"
      Uint16 = "Uint16"
      Uint32 = "Uint32"
      Uint64 = "Uint64"
    end
  end
end


text:
namespace boost {
namespace unit_test {
namespace data {
namespace monomorphic {

namespace ds_detail {

// !! ?? variadic template implementation; use forward_as_tuple?
template<typename T1, typename T2>
struct grid_traits {
    typedef std::tuple<T1,T2> type;
    typedef typename monomorphic::traits<type>::ref_type ref_type;

    static ref_type
    tuple_merge(T1 const& a1, T2 const& a2)
    {
        return ref_type(a1,a2);
    }
};

//____________________________________________________________________________//

template<typename T1, typename T2,typename T3>
struct grid_traits<T1,std::tuple<T2,T3>> {
    typedef std::tuple<T1,T2,T3> type;
    typedef typename monomorphic::traits<type>::ref_type ref_type;

    static ref_type
    tuple_merge(T1 const& a1, std::tuple<T2 const&,T3 const&> const& a2)
    {
        return ref_type(a1,get<0>(a2),get<1>(a2));
    }
};

//____________________________________________________________________________//

template<typename T1, typename T2,typename T3>
struct grid_traits<std::tuple<T1,T2>,T3> {
    typedef std::tuple<T1,T2,T3> type;
    typedef typename monomorphic::traits<type>::ref_type ref_type;

    static ref_type
    tuple_merge(std::tuple<T1 const&,T2 const&> const& a1, T3 const& a2)
    {
        return ref_type(get<0>(a1),get<1>(a1),a2);
    }
};

//____________________________________________________________________________//

} // namespace ds_detail

// ************************************************************************** //
// **************                       grid                    ************** //
// ************************************************************************** //

template<typename DS1, typename DS2>
class grid : public monomorphic::dataset<typename ds_detail::grid_traits<typename boost::decay<DS1>::type::data_type,
                                                                         typename boost::decay<DS2>::type::data_type>::type> {
    typedef typename boost::decay<DS1>::type::data_type T1;
    typedef typename boost::decay<DS2>::type::data_type T2;

    typedef typename monomorphic::dataset<T1>::iter_ptr ds1_iter_ptr;
    typedef typename monomorphic::dataset<T2>::iter_ptr ds2_iter_ptr;

    typedef typename ds_detail::grid_traits<T1,T2>::type T;
    typedef monomorphic::dataset<T> base;
    typedef typename base::iter_ptr iter_ptr;

    struct iterator : public base::iterator {
        typedef typename monomorphic::traits<T>::ref_type ref_type;

        // Constructor
        explicit    iterator( ds1_iter_ptr iter1, DS2 const& ds2 )
        : m_iter1( iter1 )
        , m_iter2( ds2.begin() )
        , m_ds2( ds2 )
        , m_ds2_pos( 0 )
        {}

        // forward iterator interface
        virtual ref_type    operator*()     { return ds_detail::grid_traits<T1,T2>::tuple_merge( **m_iter1, **m_iter2 ); }
        virtual void        operator++()
        {
            ++m_ds2_pos;
            if( m_ds2_pos != m_ds2.size() )
                ++(*m_iter2);
            else {
                m_ds2_pos = 0;
                ++(*m_iter1);
                m_iter2 = m_ds2.begin();
            }
        }

    private:
        // Data members
        ds1_iter_ptr    m_iter1;
        ds2_iter_ptr    m_iter2;
        DS2 const&      m_ds2;
        data::size_t    m_ds2_pos;
    };

public:
    enum { arity = boost::decay<DS1>::type::arity + boost::decay<DS2>::type::arity };

    // Constructor
    grid( DS1&& ds1, DS2&& ds2 )
    : m_ds1( std::forward<DS1>( ds1 ) )
    , m_ds2( std::forward<DS2>( ds2 ) )
    {}

    // Move constructor
    grid( grid&& j )
    : m_ds1( std::forward<DS1>( j.m_ds1 ) )
    , m_ds2( std::forward<DS2>( j.m_ds2 ) )
    {}

    // dataset interface
    virtual data::size_t    size() const    { return m_ds1.size() * m_ds2.size(); }
    virtual iter_ptr        begin() const   { return boost::make_shared<iterator>( m_ds1.begin(), m_ds2 ); }

private:
    // Data members
    DS1             m_ds1;
    DS2             m_ds2;
};

//____________________________________________________________________________//

template<typename DS1, typename DS2>
struct is_dataset<grid<DS1,DS2> > : mpl::true_ {};

//____________________________________________________________________________//

namespace result_of {

template<typename DS1Gen, typename DS2Gen>
struct grid {
    typedef monomorphic::grid<typename DS1Gen::type,typename DS2Gen::type> type;
};

} // namespace result_of

//____________________________________________________________________________//

template<typename DS1, typename DS2>
inline typename boost::lazy_enable_if_c<is_dataset<DS1>::value && is_dataset<DS2>::value,
                                        result_of::grid<mpl::identity<DS1>,mpl::identity<DS2>>
>::type
operator*( DS1&& ds1, DS2&& ds2 )
{
    BOOST_TEST_DS_ASSERT( !ds1.size().is_inf() && !ds2.size().is_inf(), "Grid dimension can't have infinite size" );

    return grid<DS1,DS2>( std::forward<DS1>( ds1 ),  std::forward<DS2>( ds2 ) );
}

//____________________________________________________________________________//

template<typename DS1, typename DS2>
inline typename boost::lazy_enable_if_c<is_dataset<DS1>::value && !is_dataset<DS2>::value,
                                        result_of::grid<mpl::identity<DS1>,data::result_of::make<DS2>>
>::type
operator*( DS1&& ds1, DS2&& ds2 )
{
    return std::forward<DS1>(ds1) * data::make(std::forward<DS2>(ds2));
}

//____________________________________________________________________________//

template<typename DS1, typename DS2>
inline typename boost::lazy_enable_if_c<!is_dataset<DS1>::value && is_dataset<DS2>::value,
                                        result_of::grid<data::result_of::make<DS1>,mpl::identity<DS2>>
>::type
operator*( DS1&& ds1, DS2&& ds2 )
{
    return data::make(std::forward<DS1>(ds1)) * std::forward<DS2>(ds2);
}

//____________________________________________________________________________//

} // namespace monomorphic

} // namespace data
} // namespace unit_test
} // namespace boost

#include <boost/test/detail/enable_warnings.hpp>

#endif // BOOST_NO_CXX11_HDR_TUPLE

#endif // BOOST_TEST_DATA_MONOMORPHIC_GRID_HPP_101512GER


text:
namespace v8 {
namespace internal {
namespace compiler {

// Contains logic related to changing the representation of values for constants
// and other nodes, as well as lowering Simplified->Machine operators.
// Eagerly folds any representation changes for constants.
class RepresentationChanger {
 public:
  RepresentationChanger(JSGraph* jsgraph, SimplifiedOperatorBuilder* simplified,
                        Isolate* isolate)
      : jsgraph_(jsgraph),
        simplified_(simplified),
        isolate_(isolate),
        testing_type_errors_(false),
        type_error_(false) {}

  // TODO(titzer): should Word64 also be implicitly convertable to others?
  static bool IsWord(MachineTypeUnion type) {
    return (type & (kRepWord8 | kRepWord16 | kRepWord32)) != 0;
  }

  Node* GetRepresentationFor(Node* node, MachineTypeUnion output_type,
                             MachineTypeUnion use_type) {
    if (!base::bits::IsPowerOfTwo32(output_type & kRepMask)) {
      // There should be only one output representation.
      return TypeError(node, output_type, use_type);
    }
    if ((use_type & kRepMask) == (output_type & kRepMask)) {
      // Representations are the same. That's a no-op.
      return node;
    }
    if (IsWord(use_type) && IsWord(output_type)) {
      // Both are words less than or equal to 32-bits.
      // Since loads of integers from memory implicitly sign or zero extend the
      // value to the full machine word size and stores implicitly truncate,
      // no representation change is necessary.
      return node;
    }
    if (use_type & kRepTagged) {
      return GetTaggedRepresentationFor(node, output_type);
    } else if (use_type & kRepFloat32) {
      return GetFloat32RepresentationFor(node, output_type);
    } else if (use_type & kRepFloat64) {
      return GetFloat64RepresentationFor(node, output_type);
    } else if (use_type & kRepBit) {
      return GetBitRepresentationFor(node, output_type);
    } else if (IsWord(use_type)) {
      return GetWord32RepresentationFor(node, output_type,
                                        use_type & kTypeUint32);
    } else if (use_type & kRepWord64) {
      return GetWord64RepresentationFor(node, output_type);
    } else {
      return node;
    }
  }

  Node* GetTaggedRepresentationFor(Node* node, MachineTypeUnion output_type) {
    // Eagerly fold representation changes for constants.
    switch (node->opcode()) {
      case IrOpcode::kNumberConstant:
      case IrOpcode::kHeapConstant:
        return node;  // No change necessary.
      case IrOpcode::kInt32Constant:
        if (output_type & kTypeUint32) {
          uint32_t value = static_cast<uint32_t>(OpParameter<int32_t>(node));
          return jsgraph()->Constant(static_cast<double>(value));
        } else if (output_type & kTypeInt32) {
          int32_t value = OpParameter<int32_t>(node);
          return jsgraph()->Constant(value);
        } else if (output_type & kRepBit) {
          return OpParameter<int32_t>(node) == 0 ? jsgraph()->FalseConstant()
                                                 : jsgraph()->TrueConstant();
        } else {
          return TypeError(node, output_type, kRepTagged);
        }
      case IrOpcode::kFloat64Constant:
        return jsgraph()->Constant(OpParameter<double>(node));
      case IrOpcode::kFloat32Constant:
        return jsgraph()->Constant(OpParameter<float>(node));
      default:
        break;
    }
    // Select the correct X -> Tagged operator.
    const Operator* op;
    if (output_type & kRepBit) {
      op = simplified()->ChangeBitToBool();
    } else if (IsWord(output_type)) {
      if (output_type & kTypeUint32) {
        op = simplified()->ChangeUint32ToTagged();
      } else if (output_type & kTypeInt32) {
        op = simplified()->ChangeInt32ToTagged();
      } else {
        return TypeError(node, output_type, kRepTagged);
      }
    } else if (output_type & kRepFloat32) {  // float32 -> float64 -> tagged
      node = InsertChangeFloat32ToFloat64(node);
      op = simplified()->ChangeFloat64ToTagged();
    } else if (output_type & kRepFloat64) {
      op = simplified()->ChangeFloat64ToTagged();
    } else {
      return TypeError(node, output_type, kRepTagged);
    }
    return jsgraph()->graph()->NewNode(op, node);
  }

  Node* GetFloat32RepresentationFor(Node* node, MachineTypeUnion output_type) {
    // Eagerly fold representation changes for constants.
    switch (node->opcode()) {
      case IrOpcode::kFloat64Constant:
      case IrOpcode::kNumberConstant:
        return jsgraph()->Float32Constant(
            DoubleToFloat32(OpParameter<double>(node)));
      case IrOpcode::kInt32Constant:
        if (output_type & kTypeUint32) {
          uint32_t value = static_cast<uint32_t>(OpParameter<int32_t>(node));
          return jsgraph()->Float32Constant(static_cast<float>(value));
        } else {
          int32_t value = OpParameter<int32_t>(node);
          return jsgraph()->Float32Constant(static_cast<float>(value));
        }
      case IrOpcode::kFloat32Constant:
        return node;  // No change necessary.
      default:
        break;
    }
    // Select the correct X -> Float32 operator.
    const Operator* op;
    if (output_type & kRepBit) {
      return TypeError(node, output_type, kRepFloat32);
    } else if (IsWord(output_type)) {
      if (output_type & kTypeUint32) {
        op = machine()->ChangeUint32ToFloat64();
      } else {
        op = machine()->ChangeInt32ToFloat64();
      }
      // int32 -> float64 -> float32
      node = jsgraph()->graph()->NewNode(op, node);
      op = machine()->TruncateFloat64ToFloat32();
    } else if (output_type & kRepTagged) {
      op = simplified()
               ->ChangeTaggedToFloat64();  // tagged -> float64 -> float32
      node = jsgraph()->graph()->NewNode(op, node);
      op = machine()->TruncateFloat64ToFloat32();
    } else if (output_type & kRepFloat64) {
      op = machine()->TruncateFloat64ToFloat32();
    } else {
      return TypeError(node, output_type, kRepFloat32);
    }
    return jsgraph()->graph()->NewNode(op, node);
  }

  Node* GetFloat64RepresentationFor(Node* node, MachineTypeUnion output_type) {
    // Eagerly fold representation changes for constants.
    switch (node->opcode()) {
      case IrOpcode::kNumberConstant:
        return jsgraph()->Float64Constant(OpParameter<double>(node));
      case IrOpcode::kInt32Constant:
        if (output_type & kTypeUint32) {
          uint32_t value = static_cast<uint32_t>(OpParameter<int32_t>(node));
          return jsgraph()->Float64Constant(static_cast<double>(value));
        } else {
          int32_t value = OpParameter<int32_t>(node);
          return jsgraph()->Float64Constant(value);
        }
      case IrOpcode::kFloat64Constant:
        return node;  // No change necessary.
      case IrOpcode::kFloat32Constant:
        return jsgraph()->Float64Constant(OpParameter<float>(node));
      default:
        break;
    }
    // Select the correct X -> Float64 operator.
    const Operator* op;
    if (output_type & kRepBit) {
      return TypeError(node, output_type, kRepFloat64);
    } else if (IsWord(output_type)) {
      if (output_type & kTypeUint32) {
        op = machine()->ChangeUint32ToFloat64();
      } else {
        op = machine()->ChangeInt32ToFloat64();
      }
    } else if (output_type & kRepTagged) {
      op = simplified()->ChangeTaggedToFloat64();
    } else if (output_type & kRepFloat32) {
      op = machine()->ChangeFloat32ToFloat64();
    } else {
      return TypeError(node, output_type, kRepFloat64);
    }
    return jsgraph()->graph()->NewNode(op, node);
  }

  Node* MakeInt32Constant(double value) {
    if (value < 0) {
      DCHECK(IsInt32Double(value));
      int32_t iv = static_cast<int32_t>(value);
      return jsgraph()->Int32Constant(iv);
    } else {
      DCHECK(IsUint32Double(value));
      int32_t iv = static_cast<int32_t>(static_cast<uint32_t>(value));
      return jsgraph()->Int32Constant(iv);
    }
  }

  Node* GetTruncatedWord32For(Node* node, MachineTypeUnion output_type) {
    // Eagerly fold truncations for constants.
    switch (node->opcode()) {
      case IrOpcode::kInt32Constant:
        return node;  // No change necessary.
      case IrOpcode::kFloat32Constant:
        return jsgraph()->Int32Constant(
            DoubleToInt32(OpParameter<float>(node)));
      case IrOpcode::kNumberConstant:
      case IrOpcode::kFloat64Constant:
        return jsgraph()->Int32Constant(
            DoubleToInt32(OpParameter<double>(node)));
      default:
        break;
    }
    // Select the correct X -> Word32 truncation operator.
    const Operator* op = NULL;
    if (output_type & kRepFloat64) {
      op = machine()->TruncateFloat64ToInt32(TruncationMode::kJavaScript);
    } else if (output_type & kRepFloat32) {
      node = InsertChangeFloat32ToFloat64(node);
      op = machine()->TruncateFloat64ToInt32(TruncationMode::kJavaScript);
    } else if (output_type & kRepTagged) {
      node = InsertChangeTaggedToFloat64(node);
      op = machine()->TruncateFloat64ToInt32(TruncationMode::kJavaScript);
    } else {
      return TypeError(node, output_type, kRepWord32);
    }
    return jsgraph()->graph()->NewNode(op, node);
  }

  Node* GetWord32RepresentationFor(Node* node, MachineTypeUnion output_type,
                                   bool use_unsigned) {
    // Eagerly fold representation changes for constants.
    switch (node->opcode()) {
      case IrOpcode::kInt32Constant:
        return node;  // No change necessary.
      case IrOpcode::kFloat32Constant:
        return MakeInt32Constant(OpParameter<float>(node));
      case IrOpcode::kNumberConstant:
      case IrOpcode::kFloat64Constant:
        return MakeInt32Constant(OpParameter<double>(node));
      default:
        break;
    }
    // Select the correct X -> Word32 operator.
    const Operator* op;
    if (output_type & kRepBit) {
      return node;  // Sloppy comparison -> word32
    } else if (output_type & kRepFloat64) {
      if (output_type & kTypeUint32 || use_unsigned) {
        op = machine()->ChangeFloat64ToUint32();
      } else {
        op = machine()->ChangeFloat64ToInt32();
      }
    } else if (output_type & kRepFloat32) {
      node = InsertChangeFloat32ToFloat64(node);  // float32 -> float64 -> int32
      if (output_type & kTypeUint32 || use_unsigned) {
        op = machine()->ChangeFloat64ToUint32();
      } else {
        op = machine()->ChangeFloat64ToInt32();
      }
    } else if (output_type & kRepTagged) {
      if (output_type & kTypeUint32 || use_unsigned) {
        op = simplified()->ChangeTaggedToUint32();
      } else {
        op = simplified()->ChangeTaggedToInt32();
      }
    } else {
      return TypeError(node, output_type, kRepWord32);
    }
    return jsgraph()->graph()->NewNode(op, node);
  }

  Node* GetBitRepresentationFor(Node* node, MachineTypeUnion output_type) {
    // Eagerly fold representation changes for constants.
    switch (node->opcode()) {
      case IrOpcode::kHeapConstant: {
        Handle<HeapObject> value = OpParameter<Handle<HeapObject>>(node);
        DCHECK(value.is_identical_to(factory()->true_value()) ||
               value.is_identical_to(factory()->false_value()));
        return jsgraph()->Int32Constant(
            value.is_identical_to(factory()->true_value()) ? 1 : 0);
      }
      default:
        break;
    }
    // Select the correct X -> Bit operator.
    const Operator* op;
    if (output_type & kRepTagged) {
      op = simplified()->ChangeBoolToBit();
    } else {
      return TypeError(node, output_type, kRepBit);
    }
    return jsgraph()->graph()->NewNode(op, node);
  }

  Node* GetWord64RepresentationFor(Node* node, MachineTypeUnion output_type) {
    if (output_type & kRepBit) {
      return node;  // Sloppy comparison -> word64
    }
    // Can't really convert Word64 to anything else. Purported to be internal.
    return TypeError(node, output_type, kRepWord64);
  }

  const Operator* Int32OperatorFor(IrOpcode::Value opcode) {
    switch (opcode) {
      case IrOpcode::kNumberAdd:
        return machine()->Int32Add();
      case IrOpcode::kNumberSubtract:
        return machine()->Int32Sub();
      case IrOpcode::kNumberMultiply:
        return machine()->Int32Mul();
      case IrOpcode::kNumberDivide:
        return machine()->Int32Div();
      case IrOpcode::kNumberModulus:
        return machine()->Int32Mod();
      case IrOpcode::kNumberEqual:
        return machine()->Word32Equal();
      case IrOpcode::kNumberLessThan:
        return machine()->Int32LessThan();
      case IrOpcode::kNumberLessThanOrEqual:
        return machine()->Int32LessThanOrEqual();
      default:
        UNREACHABLE();
        return NULL;
    }
  }

  const Operator* Uint32OperatorFor(IrOpcode::Value opcode) {
    switch (opcode) {
      case IrOpcode::kNumberAdd:
        return machine()->Int32Add();
      case IrOpcode::kNumberSubtract:
        return machine()->Int32Sub();
      case IrOpcode::kNumberMultiply:
        return machine()->Int32Mul();
      case IrOpcode::kNumberDivide:
        return machine()->Uint32Div();
      case IrOpcode::kNumberModulus:
        return machine()->Uint32Mod();
      case IrOpcode::kNumberEqual:
        return machine()->Word32Equal();
      case IrOpcode::kNumberLessThan:
        return machine()->Uint32LessThan();
      case IrOpcode::kNumberLessThanOrEqual:
        return machine()->Uint32LessThanOrEqual();
      default:
        UNREACHABLE();
        return NULL;
    }
  }

  const Operator* Float64OperatorFor(IrOpcode::Value opcode) {
    switch (opcode) {
      case IrOpcode::kNumberAdd:
        return machine()->Float64Add();
      case IrOpcode::kNumberSubtract:
        return machine()->Float64Sub();
      case IrOpcode::kNumberMultiply:
        return machine()->Float64Mul();
      case IrOpcode::kNumberDivide:
        return machine()->Float64Div();
      case IrOpcode::kNumberModulus:
        return machine()->Float64Mod();
      case IrOpcode::kNumberEqual:
        return machine()->Float64Equal();
      case IrOpcode::kNumberLessThan:
        return machine()->Float64LessThan();
      case IrOpcode::kNumberLessThanOrEqual:
        return machine()->Float64LessThanOrEqual();
      default:
        UNREACHABLE();
        return NULL;
    }
  }

  MachineType TypeForBasePointer(const FieldAccess& access) {
    return access.tag() != 0 ? kMachAnyTagged : kMachPtr;
  }

  MachineType TypeForBasePointer(const ElementAccess& access) {
    return access.tag() != 0 ? kMachAnyTagged : kMachPtr;
  }

  MachineType TypeFromUpperBound(Type* type) {
    if (type->Is(Type::None()))
      return kTypeAny;  // TODO(titzer): should be an error
    if (type->Is(Type::Signed32())) return kTypeInt32;
    if (type->Is(Type::Unsigned32())) return kTypeUint32;
    if (type->Is(Type::Number())) return kTypeNumber;
    if (type->Is(Type::Boolean())) return kTypeBool;
    return kTypeAny;
  }

 private:
  JSGraph* jsgraph_;
  SimplifiedOperatorBuilder* simplified_;
  Isolate* isolate_;

  friend class RepresentationChangerTester;  // accesses the below fields.

  bool testing_type_errors_;  // If {true}, don't abort on a type error.
  bool type_error_;           // Set when a type error is detected.

  Node* TypeError(Node* node, MachineTypeUnion output_type,
                  MachineTypeUnion use) {
    type_error_ = true;
    if (!testing_type_errors_) {
      std::ostringstream out_str;
      out_str << static_cast<MachineType>(output_type);

      std::ostringstream use_str;
      use_str << static_cast<MachineType>(use);

      V8_Fatal(__FILE__, __LINE__,
               "RepresentationChangerError: node #%d:%s of "
               "%s cannot be changed to %s",
               node->id(), node->op()->mnemonic(), out_str.str().c_str(),
               use_str.str().c_str());
    }
    return node;
  }

  Node* InsertChangeFloat32ToFloat64(Node* node) {
    return jsgraph()->graph()->NewNode(machine()->ChangeFloat32ToFloat64(),
                                       node);
  }

  Node* InsertChangeTaggedToFloat64(Node* node) {
    return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(),
                                       node);
  }

  JSGraph* jsgraph() const { return jsgraph_; }
  Isolate* isolate() const { return isolate_; }
  Factory* factory() const { return isolate()->factory(); }
  SimplifiedOperatorBuilder* simplified() { return simplified_; }
  MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
};

}  // namespace compiler
}  // namespace internal
}  // namespace v8

#endif  // V8_COMPILER_REPRESENTATION_CHANGE_H_


text:
RAILS_ENV = test
BUNDLE = RAILS_ENV=${RAILS_ENV} bundle
BUNDLE_OPTIONS = -j 3 --without=production
RAKE = ${BUNDLE} exec rake
RSPEC = ${BUNDLE} exec rspec

all: test

test: configure bundler migrations
	${RSPEC} spec/ 2>&1

configure:
	cp config/database.yml.example config/database.yml
	cp config/application.yml.example config/application.yml
	cp config/resque_schedule.yml.example config/resque_schedule.yml
	cp config/memcached.yml.example config/memcached.yml

bundler:
	if ! gem list bundler -i > /dev/null; then \
	  gem install bundler; \
	fi
	${BUNDLE} install ${BUNDLE_OPTIONS}

migrations:
	${RAKE} db:migrate


text:
<!--
  Copyright 2013 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
<LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="horizontal"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/sample_main_layout">

    <LinearLayout
          android:id="@+id/sample_output"
          android:layout_width="0px"
          android:layout_height="match_parent"
          android:layout_weight="1"
          android:orientation="vertical">

        <FrameLayout
              style="@style/Widget.SampleMessageTile"
              android:layout_width="match_parent"
              android:layout_height="wrap_content">

            <TextView
                  style="@style/Widget.SampleMessage"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:paddingLeft="@dimen/margin_medium"
                  android:paddingRight="@dimen/margin_medium"
                  android:paddingTop="@dimen/margin_large"
                  android:paddingBottom="@dimen/margin_large"
                  android:text="@string/intro_message" />
        </FrameLayout>

        <View
              android:layout_width="match_parent"
              android:layout_height="1dp"
              android:background="@android:color/darker_gray" />

        <fragment
              android:name="com.example.android.common.logger.LogFragment"
              android:id="@+id/log_fragment"
              android:layout_width="match_parent"
              android:layout_height="0px"
              android:layout_weight="1" />

    </LinearLayout>

    <View
          android:layout_width="1dp"
          android:layout_height="match_parent"
          android:background="@android:color/darker_gray" />

    <FrameLayout
          android:id="@+id/sample_content_fragment"
          android:layout_weight="2"
          android:layout_width="0px"
          android:layout_height="match_parent" />

</LinearLayout>

<!-- From: file:/Users/xiaoyiz/Desktop/UnlockLog-DataVis/Application/src/main/res/layout-w720dp/activity_main.xml -->


text:
package org.datagr4m.drawing.layout.factories;

import org.datagr4m.drawing.layout.hierarchical.IHierarchicalNodeLayout;
import org.datagr4m.drawing.model.items.IBoundedItem;
import org.datagr4m.drawing.model.items.hierarchical.IHierarchicalNodeModel;

public class AlternateRowColumnLayoutFactory extends HierarchicalLayoutFactory {
    @Override
    public IHierarchicalNodeLayout getHierarchicalNodeLayout(IHierarchicalNodeModel model) {
        IHierarchicalNodeLayout layout = getHierarchicalNodeLayout(model, HierarchicalLayoutFactory.LAYOUT_COLUMN_NAME);
        return layout;
    }

    public IHierarchicalNodeLayout getHierarchicalNodeLayout(IHierarchicalNodeModel model, String layout) {
        IHierarchicalNodeLayout layoutModel = getNodeLayoutByName(layout);
        layoutModel.setModel(model);
        attachChildren(layoutModel, model, layout);
        return layoutModel;
    }

    protected void attachChildren(IHierarchicalNodeLayout layoutModel, IHierarchicalNodeModel model, String layout) {
        for (IBoundedItem child : model.getChildren()) {
            if (child instanceof IHierarchicalNodeModel) {
                IHierarchicalNodeModel submodel = (IHierarchicalNodeModel) child;
                IHierarchicalNodeLayout subLayoutModel = null;
                if (HierarchicalLayoutFactory.LAYOUT_COLUMN_NAME.equals(layout))
                    subLayoutModel = getHierarchicalNodeLayout(submodel, HierarchicalLayoutFactory.LAYOUT_ROW_NAME);
                else
                    subLayoutModel = getHierarchicalNodeLayout(submodel, HierarchicalLayoutFactory.LAYOUT_COLUMN_NAME);
                if (subLayoutModel != null)
                    layoutModel.addChild(subLayoutModel);
            }
        }
    }

    @Override
    public IHierarchicalNodeLayout getNodeLayoutByModelType(IHierarchicalNodeModel model) {
        IHierarchicalNodeLayout layoutModel = getNodeLayoutByName(HierarchicalLayoutFactory.LAYOUT_COLUMN_NAME);
        layoutModel.setModel(model);
        return layoutModel;
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- From: file:/home/salih/AndroidStudioProjects/GitarAkortab/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/21.0.2/res/values-w500dp/values.xml -->
    <eat-comment/>
    <integer name="abc_max_action_buttons">4</integer>
</resources>


text:
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook

class TestCompareXLSXFiles(ExcelComparisonTest):
    """
    Test file created by XlsxWriter against a file created by Excel.

    """

    def setUp(self):
        self.maxDiff = None

        filename = 'comment06.xlsx'

        test_dir = 'xlsxwriter/test/comparison/'
        self.got_filename = test_dir + '_test_' + filename
        self.exp_filename = test_dir + 'xlsx_files/' + filename

        self.ignore_files = []
        self.ignore_elements = {}

    def test_create_file(self):
        """Test the creation of a simple XlsxWriter file with comments."""

        workbook = Workbook(self.got_filename)

        worksheet = workbook.add_worksheet()

        worksheet.write_comment('A1', 'Some text')
        worksheet.write_comment('A2', 'Some text')
        worksheet.write_comment('A3', 'Some text', {'visible': True})
        worksheet.write_comment('A4', 'Some text')
        worksheet.write_comment('A5', 'Some text')

        worksheet.set_comments_author('John')

        workbook.close()

        self.assertExcelEqual()


text:
require "rails_helper"

RSpec.describe Dorsale::BillingMachine::Quotation::ToInvoice do
  let(:quotation) {
    quotation = create(:billing_machine_quotation)

    quotation.update_columns(
      :label      => "ABC",
      :date       => 3.days.ago,
      :state      => "canceled",
      :created_at => 3.days.ago,
      :updated_at => 3.days.ago,
    )

    line = create(:billing_machine_quotation_line,
      :quotation => quotation,
      :label     => "DEF",
    )

    quotation
  }

  let(:invoice) {
    Dorsale::BillingMachine::Quotation::ToInvoice.(quotation)
  }

  it "should convert quotation to invoice" do
    expect(invoice).to     be_a Dorsale::BillingMachine::Invoice
    expect(invoice).to_not be_persisted
    expect(invoice.label).to             eq "ABC"
    expect(invoice.lines.length).to      eq 1
    expect(invoice.lines.first.label).to eq "DEF"
  end

  it "should reset date" do
    expect(quotation.date).to_not eq Time.zone.now.to_date
    expect(invoice.date).to       eq Time.zone.now.to_date
  end

  it "should reset unique_index, tracking_id, created_at, updated_at" do
    expect(invoice.unique_index).to_not eq quotation.unique_index
    expect(invoice.tracking_id).to_not  eq quotation.tracking_id
    expect(invoice.created_at).to_not   eq quotation.created_at
    expect(invoice.updated_at).to_not   eq quotation.updated_at
  end
end


text:
@class MGLColor;
@class MGLPoint;

@interface MGLPolygon : NSObject

@property (strong, nonatomic, readwrite) MGLColor* fillColor;
@property (strong, nonatomic, readwrite) MGLColor* strokeColor;
@property (assign, nonatomic, readwrite) float strokeWidth;

- (instancetype)initWithPoint:(MGLPoint*)point inFrame:(CGRect)frame;
- (void)addPoint:(MGLPoint*)p;
- (void)fillPolygon;
- (void)strokePolygon;

@end


text:
package org.hyperfresh.craftf.parser.craftf;

import org.hyperfresh.craftf.ChatElement;
import org.hyperfresh.craftf.Element;
import org.hyperfresh.craftf.enums.ChatColor;
import org.hyperfresh.craftf.parser.MarkupParser;
import java.util.regex.MatchResult;

public class ColoredText implements ParserExtension {

	@Override
	public String getRegex() {
		return "(?i)(?<!/)\\&([0-9a-f])(.*?)(?:/\\&\\1|$|&r)";
	}

	@Override
	public void parse(MarkupParser parser, Element root, final MatchResult match) {

		char code = match.group(1).charAt(0);
		String after = match.group(2);

		if(after.equals("")) return;

		ChatColor color = ChatColor.fromChar(code);

		Element child = new ChatElement().color(color);
		parser.parse(child, after);
		root.attach(child);
	}
}


text:
/*
* config.h
* number.c from GNU bc-1.06 exports some symbols without the bc_ prefix.
* This header file fixes this without touching either number.c or number.h
* (luckily, number.c already wants to include a config.h).
* Clients of number.c should include config.h before number.h.
*/

#include <string.h>
#include <limits.h>
#define NDEBUG

#define _zero_		bc_zero
#define _one_		bc_one
#define _two_		bc_two
#define num2str		bc_num2str
#define mul_base_digits bc_mul_base_digits

#define bc_rt_warn		bc_error
#define bc_rt_error		bc_error
#define bc_out_of_memory()	bc_error(NULL)

void bc_error(const char *mesg);


text:
  <form wicket:id="form" id="form1" method="post" action="./page?6-1.IFormSubmitListener-form">
<input type="hidden" name="form1_hf_0" id="form1_hf_0" />

    <wicket:enclosure child="label">
      <input wicket:id="input" type="checkbox" name="input"/>

    </wicket:enclosure>
  </form>


text:
<?php

function load_addon_by_position($position, $addons, $admin = '', $page = "" , $dont_show = array()){
global $BASE_DIR;
    require("$BASE_DIR/config/config.inc.php");

$addons = loadAddonsAsArray($DBSERVER, $USERNAME, $PASSWORD, $DATABASENAME);

if(empty($page)){
$page = basename($_SERVER['PHP_SELF']);
}

$xtra = "and page = '$page'";
$xtra .= " and s.status >= 1";

if($page == 'buybids.php'){
 $xtra .= " and page_areas.name != 'faq_menu' and page_areas.name != 'help_menu'";

}
$xtra .= " and invisible != '1'";

    $qry_addon = db_query("select distinct page_areas.name from page_areas left join sitesetting s on s.value = page_areas.name where menu = '$position' $xtra order by menu_index asc");
      while($row_addon = db_fetch_array($qry_addon)){

		//echo "select value from sitesetting where name = '$row_addon[name]' order by id desc limit 1";
	$these_settings = db_fetch_array(db_query("select value from sitesetting where name = '$row_addon[name]' and value like 'folder:%' $admin_check order by id desc limit 1"));
	    if(!empty($these_settings[0])){

		  $settings = explode(":", $these_settings[0]);
		  $folder = $template . "/";
		//  echo $folder;
	      }else{
		  $folder = '';
	      }

if(db_num_rows(db_query("select * from nav_conditionals where menu_name = '$position' and link_name = '$row_addon[name]'")) ==0){
if($row_addon['name'] != 'rightnews' & $page != 'registration.php' & !in_array($row_addon['name'], $dont_show)){
echo "<!-- $row_addon[name] Begin -->";
	   // echo "include/$folder". "$row_addon[name].php";
	//echo $BASE_DIR . "/include/addons/$row_addon[name]/$template/";
	if(file_exists($BASE_DIR . "/include/$folder/". "$row_addon[name].php")){

	    require($BASE_DIR . "/include/$folder/" . "$row_addon[name].php");
	}else{

	if(file_exists($BASE_DIR . "/include/addons/$row_addon[name]/$template/" . basename($page))){

	    require($BASE_DIR . "/include/addons/$row_addon[name]/$template/" . basename($page));

	}else{
	    if(file_exists($BASE_DIR . "/include/addons/$row_addon[name]/$folder/$row_addon[name].php")){

		require($BASE_DIR . "/include/addons/$row_addon[name]/$folder/$row_addon[name].php");

	    }else{

		if(file_exists($BASE_DIR . "/page_areas/" . str_replace(".php", "_php", $row_addon['name']) . "/$folder/" . "$row_addon[name].php")){
		 require($BASE_DIR . "/page_areas/" . str_replace(".php", "_php", $row_addon['name']) . "/$folder/" . "$row_addon[name].php");
		 }else{

		      if(file_exists($BASE_DIR . "/include/addons/$row_addon[name]/$template/$row_addon[name].php")){

			    require($BASE_DIR . "/include/addons/$row_addon[name]/$template/$row_addon[name].php");

		      }else if(file_exists($BASE_DIR . "/include/addons/$row_addon[name]/$template/index.php")){

			    require($BASE_DIR . "/include/addons/$row_addon[name]/$template/index.php");

		      }else if(file_exists($BASE_DIR . "/include/addons/$row_addon[name]/index.php")){

			    require($BASE_DIR . "/include/addons/$row_addon[name]/index.php");

		      }

		 }

	    }
	    }
	}

	}
echo "<!-- $row_addon[name] End -->";
	}else{

	$show_me =check_addon_conditionals($row_addon, $row_addon['id'], $position);

	      if(empty($show_me)){
	      ?>
	      <div style="display:none;">
	      <?php
	      }

		  if(file_exists($BASE_DIR . "/include/addons/$row_addon[name]/$folder/" . basename($page))){

		      include($BASE_DIR . "/include/addons/$row_addon[name]/$folder/" . basename($page));

		  }else{
		      if(file_exists($BASE_DIR . "/include/addons/$row_addon[name]/$folder/$row_addon[name].php")){

			  include($BASE_DIR . "/include/addons/$row_addon[name]/$folder/$row_addon[name].php");

		      }else{

			  if(file_exists($BASE_DIR . "/page_areas/" . str_replace(".php", "_php", $row_addon['name']) . "/$folder/" . "$row_addon[name].php")){

			      include($BASE_DIR . "/page_areas/" . str_replace(".php", "_php", $row_addon['name']) . "/$folder/" . "$row_addon[name].php");
			  }

		      }

		  }
		if(empty($show_me)){
		  ?>
		    </div>
		  <?php
		  }
	    }

	  }
     echo db_error();
    }


text:
<?php

namespace Akeneo\Bundle\BatchBundle\Tests\Unit\Item\Support;

use Akeneo\Bundle\BatchBundle\Item\Support\ArrayReader;

/**
 * Tests related to the ArrayReader class
 *
 */
class ArrayReaderTest extends \PHPUnit_Framework_TestCase
{
    protected $arrayReader = null;

    /**
     * {@inheritdoc}
     */
    protected function setUp()
    {
        $this->arrayReader = new ArrayReader();
    }

    public function testReadNull()
    {
        $stepExecution = $this->getStepExecutionMock();
        $this->assertNull($this->arrayReader->read($stepExecution));
    }

    public function testRead()
    {
        $stepExecution = $this->getStepExecutionMock();
        $items = array('item1', 'item2', 'item3');
        $this->assertEntity($this->arrayReader->setItems($items));

        $readItems = array();

        while (($item = $this->arrayReader->read($stepExecution))) {
            $readItems[] = $item;
        }

        $this->assertEquals($items, $readItems);
    }

    /**
     * Assert the entity tested
     *
     * @param object $entity
     */
    protected function assertEntity($entity)
    {
        $this->assertInstanceOf('Akeneo\Bundle\BatchBundle\Item\Support\ArrayReader', $entity);
    }

    private function getStepExecutionMock()
    {
        return $this
            ->getMockBuilder('Akeneo\Bundle\BatchBundle\Entity\StepExecution')
            ->disableOriginalConstructor()
            ->getMock();
    }
}


text:
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Illinois Biol. Monogr. (Urbana) 13(no. 4): 66 (1935)

#### Original name
Lophodermium filiforme Darker, 1932

### Remarks
null


text:
from __future__ import print_function

import os
import pyos
import pyos.exceptions as exc

pyos.set_setting("identity_type", "rackspace")
creds_file = os.path.expanduser("~/.rackspace_cloud_credentials")
pyos.set_credential_file(creds_file)
pq = pyos.queues

queues = pq.list()
if not queues:
    print("There are no queues to post to. Please create one before proceeding.")
    exit()

if len(queues) == 1:
    queue = queues[0]
    print("Only one queue available; using '%s'." % queue.name)
else:
    print("Queues:")
    for pos, queue in enumerate(queues):
        print("%s - %s" % (pos, queue.name))
    snum = raw_input("Enter the number of the queue you wish to post a message "
            "to: ")
    if not snum:
        exit()
    try:
        num = int(snum)
    except ValueError:
        print("'%s' is not a valid number." % snum)
        exit()
    if not 0 <= num < len(queues):
        print("'%s' is not a valid queue number." % snum)
        exit()
    queue = queues[num]

sttl = raw_input("Enter a TTL for the claim: ")
if not sttl:
    print("A TTL value is required.")
    exit()
else:
    try:
        ttl = int(sttl)
        if not 60 <= ttl <= 43200:
            old_ttl = ttl
            ttl = max(min(ttl, 43200), 60)
            print("TTL values must be between 60 and 43200 seconds; changing "
                "it to '%s'." % ttl)
    except ValueError:
        print("'%s' is not a valid number." % sttl)
        exit()

sgrace = raw_input("Enter a grace period for the claim: ")
if not sgrace:
    print("A value for the grace period is required.")
    exit()
else:
    try:
        grace = int(sgrace)
        if not 60 <= grace <= 43200:
            old_grace = grace
            grace = max(min(grace, 43200), 60)
            print("Grace values must be between 60 and 43200 seconds; changing "
                "it to '%s'." % grace)
    except ValueError:
        print("'%s' is not a valid number." % sgrace)
        exit()

scount = raw_input("Enter the number of messages to claim (max=20), or press "
        "Enter for the default of 10: ")
if not scount:
    count = None
else:
    try:
        count = int(scount)
    except ValueError:
        print("'%s' is not a valid number." % scount)
        exit()

claim = pq.claim_messages(queue, ttl, grace, count=count)
if not claim:
    print("There were no messages available to claim.")
    exit()
num_msgs = len(claim.messages)
print()
print("You have successfully claimed %s messages." % num_msgs)
print("Claim ID:", claim.id)
for msg in claim.messages:
    print("Age:", msg.age)
    print("Body:", msg.body)
    print()


text:
'use strict';

Connector.playerSelector = '#player';

Connector.trackSelector = '#player .player-track';
Connector.artistSelector = '#player .player-artist';
Connector.albumSelector = '#player .player-play-container';
Connector.playButtonSelector = '#player .icon-play-button';

const filter = MetadataFilter.createFilter({
	// Remove the dash in front of the artist name
	artist: (text) => text.replace(/- /, ''),
});

Connector.applyFilter(filter);


text:
<!DOCTYPE html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Update Ubuntu with Approx | Linux in EnterPrise</title>
<meta name="generator" content="Jekyll v3.8.3" />
<meta property="og:title" content="Update Ubuntu with Approx" />
<meta name="author" content="edyliu" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Read some articles on Ubuntu recently." />
<meta property="og:description" content="Read some articles on Ubuntu recently." />
<link rel="canonical" href="http://192.168.1.77:4000/2009-07-update-ubuntu-with-approx/" />
<meta property="og:url" content="http://192.168.1.77:4000/2009-07-update-ubuntu-with-approx/" />
<meta property="og:site_name" content="Linux in EnterPrise" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2009-07-14T23:02:35-04:00" />

<link rel="stylesheet" href="/assets/main.css"><link type="application/atom+xml" rel="alternate" href="http://192.168.1.77:4000/feed.xml" title="Linux in EnterPrise" />

Linux in EnterPrise
        <input type="checkbox" id="nav-trigger" class="nav-trigger" />

            <svg viewBox="0 0 18 15" width="18px" height="15px">
              <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
            </svg>

关于(About Me)项目(Project)

Update Ubuntu with Approx

      <time class="dt-published" datetime="2009-07-14T23:02:35-04:00" itemprop="datePublished">Jul 14, 2009
      </time>• edyliu

Read some articles on Ubuntu recently.

occasionally read an article about approx, It works like a cache server. can cache the *.deb for other usage

the approx server: run sudo apt-get install approx

/etc/approx/approx.conf :

—–start———

ubuntu http://us.archive.ubuntu.com/ubuntu

security http://security.ubuntu.com/ubuntu

canonical http://archive.canonical.com/ubuntu

—–stop———

sudo /etc/init.d/approx start

if u has firewall, open port 9999

the clients: sudo mv /etc/atp/source.list /etc/atp/source.list.orgin

sudo vi /etc/atp/source.list

paste the following lines

(note: change SID to ur release )

deb http://approx_server_ip:9999/ubuntu/ intrepid main restricted universe multiverse

deb http://approx_server_ip:9999/buntu/ intrepid-updates universe multiverse

deb http://approx_server_ip:9999/ubuntu intrepid-security main restricted universe multiverse

  <data class="u-url" href="/"></data>

Linux in EnterPrise

Linux in EnterPrise

<svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#github"></use></svg> linuxdict

Focus in Linux, LAMP, Mail, Cluster Arch(ENterprise Linux Apache MySQL Php)


text:
package com.rapifire.rapifireclient.domain.repository;

import com.rapifire.rapifireclient.domain.model.ThingDetailsModel;
import com.rapifire.rapifireclient.domain.model.ThingModel;

import java.util.List;

import rx.Observable;

/**
 * Created by ktomek on 05.12.15.
 */
public interface ThingsRepository {
    Observable<List<ThingModel>> getThings(boolean forceSync);
}


text:
[![Build Status](https://travis-ci.org/Netfilter-Com/NFAlarmLibrary.svg?branch=master)](https://travis-ci.org/Netfilter-Com/NFAlarmLibrary)
# NFAlarmLibrary
iOS Alarm Managing Library

##Usage

##Credits