text:
import pygame

from config import HEIGHT, GAME_WIDTH
from repository.image_loader import ImageLoader

class Bird(pygame.sprite.Sprite):
    sprite_index = 0

    GRAVITY_ACC = 1

    y_vel = -6
    max_y_vel = 10
    jump_acc = -10

    jumping = False
    dead = False
    sprite_rate_index = 0

    score = 0
    distance = 0

    def __init__(self, name=None, y=HEIGHT / 2):
        pygame.sprite.Sprite.__init__(self)

        mid_flap = ImageLoader().get_image("redbird-midflap.png")
        up_flap = ImageLoader().get_image("redbird-upflap.png")
        down_flap = ImageLoader().get_image("redbird-downflap.png")

        self.flap_sprites = [mid_flap, down_flap, mid_flap, up_flap]

        self.image = mid_flap

        self.rect = self.image.get_rect()
        self.rect.center = (GAME_WIDTH / 2, y)
        self.name = name

    def change_flap_sprite(self):
        self.sprite_rate_index += 1
        if self.sprite_rate_index % 5 == 0:
            self.sprite_index += 1
            self.image = self.flap_sprites[self.sprite_index % len(self.flap_sprites)]

    def refresh(self):
        self.change_flap_sprite()

        if self.y_vel < self.max_y_vel and not self.jumping:
            self.y_vel += self.GRAVITY_ACC
        if self.jumping:
            self.jumping = False

        self.rect.y += self.y_vel

    def jump(self):
        self.jumping = True
        self.y_vel = self.jump_acc


text:
Process a directory of results files from running PlantCV over as many images as needed and create a formatted, concatenated data output file.

**plantcv.parallel.process_results**(*job_dir, json_file*)

**returns** none

- **Parameters:**
    - job_dir   - Path of the job directory
    - json_file - Path and name of the output combined json file
- **Context:**
    - This step is built into the [PlantCV Workflow Parallelization](pipeline_parallel.md) feature. Each image will likely print
    hierarchical data files if [`print_results`](print_results.md) is a step in the workflow but the `process_results` step takes place after all
    images have been analyzed and combines these single image data files into one text file that can be used as input for the [`json2csv`](tools.md#convert-output-json-data-files-to-csv-tables)
    function.
- **Example use:**
    - Below

```python
from plantcv import parallel

# Read in image
parallel.process_results(job_dir="home/user/parallel_results", json_file="combined_output.txt")

```

**Source Code:** [Here](https://github.com/danforthcenter/plantcv/blob/master/plantcv/parallel/process_results.py)

redpajama_set_name: RedPajamaGithub


text:
namespace MUD
{
//!
//!
class WelcomeScreen : public Scr::Tk::HorizontalGroup
{
	class LoginForm: public Scr::Tk::VerticalGroup
	{
		static const int min_height;
		static const int min_width;
	public:
		LoginForm(Scr::Uint _height,Scr::Uint _width,
				  const Scr::DisplayStyle& _style):
			BoxGroup(std::min<int>(min_height,_height),
					 std::min<int>(min_width,_width),_style),
			VerticalGroup(std::min<int>(min_height,_height),
						  std::min<int>(min_width,_width),_style)
			{
				//SetAlignPolicy(Scr::Tk::BoxGroup::Begin);
				SetMaxHeight(0);
				SetMaxWidth(min_width);
			}
		void AddWidget(Widget& widget)throw()
			{
				BoxGroup::AddWidget(widget);
				SetMaxHeight(GetMaxHeight()+widget.GetHeight());
			}
		void DelWidget(Widget& widget)throw()
			{
				SetMaxHeight(GetMaxHeight()-widget.GetHeight());
				BoxGroup::DelWidget(widget);
			}
		using Scr::Tk::Widget::GetParent;
	}login_form;

	Scr::Tk::Label hello;
	Scr::Tk::Label login;
	Scr::Tk::Inputbox login_prompt;
	Scr::Tk::Label password;
	Scr::Tk::Label separator;
	Scr::Tk::Label password_repeat;

	MUD::Aux::TextBox textbox;

	//! inputbox echoing '*' instead of proper characters (GetText()
	//! stull returns string entered).
	class PasswordBox: public Scr::Tk::Inputbox
	{
	public:
		PasswordBox():
			Inputbox(L"",Scr::Tk::INPUTBOX_DEFAULT_STYLE,
						Scr::Tk::INPUTBOX_DEFAULT_ACTIVESTYLE,
					 Scr::Tk::INPUTBOX_DEFAULT_IBOXSTYLE)
			{}
		virtual void OnRedraw(Scr::Screen& screen)throw()
			{
				std::wstring tmp(text);
				fill(text.begin(),text.end(),L'*');
				Inputbox::OnRedraw(screen);

				// swaps pointers only
				text.swap(tmp);
			}
	}password_prompt,password_prompt2;

	//! Is used to activate game
	class SubmitButton: public  Scr::Tk::Button
	{
	public:
		SubmitButton():
			Button("Enter",Scr::Tk::BUTTON_DEFAULT_STYLE,
				   Scr::Tk::BUTTON_DEFAULT_ACTIVESTYLE) {}

		virtual void OnAction()throw()
			{
				Scr::Tk::RootWindow &rw(GetParent().GetRootWindow());
				Scr::Tk::Widget &ws(rw.GetActiveWidget());

				// swap main widget : add new DingeonView, eliminate
				// old WelcomeScreen
				WelcomeScreen& par=dynamic_cast<WelcomeScreen&>(
					dynamic_cast<LoginForm&>(GetParent()).GetParent());
		        std::string name=Aux::to_u8(par.login_prompt.GetText());
				std::string psw=Aux::to_u8(par.password_prompt.GetText());
            	pCharacter pch = SelectCharacter(name);
				std::cout << "Trying to connect as " << name << " with password "<<psw<< ' ' ;
            	if (pch.get()==0)
            		par.login.SetText("Login*");
				else
	            if (pch->CheckPassword(psw))
            	{
					std::cout << "OK" << std::endl;
					rw.AddWidget(*new DungeonView(pch));
					std::cout << "DungeonView created; dropping WelcomeScreen " << std::flush;
					std::cout << "OK" << std::endl;
					rw.DelWidget(ws);
					delete &ws;
					return;
				}
				else
					par.password.SetText("Password*");
				std::cout << "failed" << std::endl;

				par.textbox.ClearText();
				par.textbox.AppendText(L"Please make sure, that all authentication tokens are correct."
					" You may want to create new account instead of logging into an existing one");
			}
	}submit_button;

	class RegisterButton: public Scr::Tk::Button
	{
	public:
		RegisterButton():
			Button("New Account",Scr::Tk::BUTTON_DEFAULT_STYLE,
				   Scr::Tk::BUTTON_DEFAULT_ACTIVESTYLE) {}
		virtual void OnAction()throw()
			{
				GetParent().PassFocusRequest(Scr::Tk::Widget::AllFocus);
				WelcomeScreen& par=dynamic_cast<WelcomeScreen&>(
					dynamic_cast<LoginForm&>(GetParent()).GetParent());
				par.hello.SetText("New Account");
				par.login_form.DelWidget(par.register_button);
				par.login_form.AddWidget(par.password_repeat);
				par.login_form.AddWidget(par.password_prompt2);
 				par.login_form.AddWidget(par.register_commit_button);

 				par.login_form.DelWidget(par.submit_button);
				par.login_form.OnResize();
				par.textbox.ClearText();
				par.textbox.AppendText(L"You are creating new character. Character name can't be changed"
									   ", so please be careful when choosing name. Character name will be your login. "
									   " \n\nPlease enter password twice. Please don't use the same password, as you use "
									   "in any sensitive system (i.e. bank), as telnet transmission is insecure.");
			}
	}register_button;
	class RegisterCommitButton: public Scr::Tk::Button
	{
	public:
		RegisterCommitButton():
			Button("OK",Scr::Tk::BUTTON_DEFAULT_STYLE,
				   Scr::Tk::BUTTON_DEFAULT_ACTIVESTYLE) {}
		virtual void OnAction()throw()
			{

				GetParent().PassFocusRequest(Scr::Tk::Widget::AllFocus);
				WelcomeScreen& par=dynamic_cast<WelcomeScreen&>(
					dynamic_cast<LoginForm&>(GetParent()).GetParent());
		        std::string name=Aux::to_u8(par.login_prompt.GetText());
				std::string psw=Aux::to_u8(par.password_prompt.GetText());
				std::string psw2=Aux::to_u8(par.password_prompt2.GetText());

				par.textbox.ClearText();
				if (name=="")
					par.textbox.AppendText(L"Name can't be empty");
				else if (name[0]==' ')
					par.textbox.AppendText(L"Name can't be empty");
				else if (SelectCharacter(name).get()!=0)
					par.textbox.AppendText(L"Name, you've selected is already used");
				else if (psw!=psw2)
					par.textbox.AppendText(L"Passwords don't match");
				else
				{
					par.textbox.AppendText(L"New character is created. you can now log in.");
					par.login_form.DelWidget(par.password_repeat);
					par.login_form.DelWidget(par.password_prompt2);
					par.login_form.DelWidget(par.register_commit_button);

					par.login_form.AddWidget(par.submit_button);
					SetUpNewCharacter(name,psw);
				}

			}
	}register_commit_button;
public:

	WelcomeScreen(Scr::Uint _height,	Scr::Uint _width,
				  const Scr::DisplayStyle& _style
				   = Scr::DisplayStyle(Scr::Fg::White,Scr::Fg::Dark,Scr::Bg::Black)):
		BoxGroup(_height, _width,_style),
		HorizontalGroup(_height, _width,_style),
		login_form(_height,_width,_style),
		hello("Please log in", Scr::DisplayStyle(
				  Scr::Fg::White,Scr::Fg::Bright,Scr::Bg::Red)),
		login("Login",Scr::Tk::LABEL_DEFAULT_STYLE),
		login_prompt(L"",Scr::Tk::INPUTBOX_DEFAULT_STYLE,
					 Scr::Tk::INPUTBOX_DEFAULT_ACTIVESTYLE,
					 Scr::Tk::INPUTBOX_DEFAULT_IBOXSTYLE),
		password("Password",Scr::Tk::LABEL_DEFAULT_STYLE),
		separator("  ",Scr::Tk::LABEL_DEFAULT_STYLE),
		password_repeat("Confirm password",Scr::Tk::LABEL_DEFAULT_STYLE),
		textbox(_height,_width,_style)
	{
		AddWidget(login_form);
		SetAlignPolicy(Scr::Tk::BoxGroup::Distribute);
		login_form.SetAlignPolicy(Scr::Tk::BoxGroup::Begin);
		login_form.AddWidget(hello);
		login_form.AddWidget(login);
		login_form.AddWidget(login_prompt);
		login_form.AddWidget(password);
		login_form.AddWidget(password_prompt);
		login_form.AddWidget(submit_button);
		login_form.AddWidget(register_button);
		separator.SetMaxWidth(2);
		AddWidget(separator);
		AddWidget(textbox);
		textbox.AppendText(L"Welcome to experimental game with ascii-art graphics. "
						   "We hope, you will enjoy playing this as much, as we enjoyed creating it.\n\n"
						   "Use Tab key to select form fields.\n\n"
						   "You can always halt the game by pressing Ctrl+d.\n\n"
						   "Programming Team:\n Maciej Kamiński\nArtur Jutrzenka");
	}
};
}
#endif


text:
import sys
import math
import time
import os
from cv2 import *
import numpy as np

from src.server import CubeScoutServer

class SightingInfo:

    def __init__(self):
        self.since_sighting = 9999999 # Time since last sighting
        self.since_notify = 9999999 # Time since last notification
        self.count = 0 # Count since last notification

def read_csv(filename):
    images = []
    labels = []
    names = {} # Maps person ID to name
    with open(filename, "r") as csv_file:
        for line in csv_file:
            columns = line.strip().split(";")
            if len(columns) != 2:
                continue # TODO: error message or something
            path = columns[0]
            label = int(columns[1])
            if label not in names: # New person! :D
                name = path.split("/")[-2]
                names[label] = name
            if path:
                images.append(cvtColor(imread(path), COLOR_BGR2GRAY))
                labels.append(label)
    return images, labels, names

def detect(img, cascade):
    rects = cascade.detectMultiScale(img, scaleFactor=1.3, minNeighbors=4, minSize=(40, 40))
    if len(rects) == 0:
        return []
    rects[:,2:] += rects[:,:2]
    return rects

def main():
    # Validate program arguments, print usage if invalid
    if len(sys.argv) < 2:
        print("usage: " + sys.argv[0] + " device_id")
        print("\t device_id -- The webcam device id to grab frames from.")
        exit()
    take_samples = False
    if "-s" in sys.argv:
        take_samples = True
        if not os.path.exists("data/samples"):
            os.makedirs("data/samples")

    # Get the program arguments
    #device_id = int(sys.argv[1])
    device_id = sys.argv[1]

    # Load the csv file
    print("Loading training data...")
    images = None
    labels = None
    names = None
    try:
        images, labels, names = read_csv("data/faces.csv")
    except Exception as error:
        sys.stderr.write("Failed to open 'data/faces.csv'. Reason: "+str(error)+"\n")
        exit()

    # Build sighting info by name
    sighting_info = {}
    for name in names.values():
        sighting_info[name] = SightingInfo()

    # Get image dimensions
    im_width, im_height = images[0].shape

    # Create a FaceRecognizer and train it on the given images
    print("Training face recognizer...")
    model = createLBPHFaceRecognizer()
    model.train(images, np.asarray(labels))

    # Create classifier for face detection
    haar_face = CascadeClassifier()
    haar_face.load("data/haarcascade_frontalface_default.xml")

    print("Initializing video capture...")

    # Get a handle to the video device
    cap = VideoCapture(device_id)

    # Make sure we can use the video device
    if not cap.isOpened():
        sys.stderr.write("Failed to open video capture device: "+device_id+"\n")
        exit()

    # Start server
    print("Starting server...")
    server = CubeScoutServer()

    # Count image samples
    image_sample_counter = 0

    # For frame rate calculation stuff
    last_frame_time = time.clock()

    face_frames = []
    print("Detecting faces...")

    while True:
        # Exit on escape key
        key = waitKey(10)
        if key == 27:
            break

        # Server listening
        server.listen()

        # Calculate delta time
        dt = time.clock()-last_frame_time
        last_frame_time = time.clock()

        # Update time since last sightings
        for name in sighting_info:
            sighting_info[name].since_sighting += dt
            sighting_info[name].since_notify += dt
            if sighting_info[name].since_sighting > 0.5:
                sighting_info[name].count = 0

        # frame holds the current frame of the video device
        frame_good, frame = cap.read()

        if not frame_good:
            break

        # Clone the current frame
        original = frame

        # Convert the current frame into grayscale
        gray = cvtColor(frame, COLOR_BGR2GRAY)

        # Find the faces in the frame
        faces = detect(gray, haar_face)

        # At this point we have the position of the faces in faces.
        # Now, we need to get the faces, make a prediction, and
        # annotate it in the video.
        for face in faces:
            # Unpack rect
            face_x1, face_y1, face_x2, face_y2 = face[0], face[1], face[2], face[3]

            # Crop the face from the image
            face_im = gray[face_y1:face_y2, face_x1:face_x2]

            # Resize face for Eigenfaces and Fisherfaces or whatever
            face_resized = resize(face_im, (im_width, im_height), 1.0, 1.0, INTER_CUBIC)

            # Now perform prediction
            prediction = model.predict(face_resized)

            # Write face image if we want
            if take_samples:
                face_im_color = original[face_y1:face_y2, face_x1:face_x2]
                face_im_color = resize(face_im_color, (130, 130), 1.0, 1.0, INTER_CUBIC)
                print("Writing image...")
                imwrite("data/samples/sample"+str(image_sample_counter)+".jpg", face_im_color)
                image_sample_counter += 1

            ####################
            # Write info to original image
            rectangle(original, (face_x1, face_y1), (face_x2, face_y2), (0, 255, 0), 3)

            # Create the text to annotate the box
            box_text = ""
            person = ""
            face_difference = 0
            if prediction:
                person = names[prediction[0]] # Check which person it is
                face_difference = math.floor(prediction[1])
                box_text = person+":"+str(face_difference)

            # Calculate the position for the annotation text
            text_x = face_x1 - 10
            text_y = face_y1 - 10

            # Put the text into the image
            putText(original, box_text, (text_x, text_y), FONT_HERSHEY_PLAIN, 2.0, (0, 120, 255), 2)

            ####################
            # Handle the sighting!
            if face_difference <= 130:
                sighting_info[person].count += 1
            sighting_info[person].since_sighting = 0
            if sighting_info[person].since_notify > 15 and sighting_info[person].count > 3:
                server.broadcast(person)
                sighting_info[person].since_notify = 0

        # Show the result
        imshow("face_recognizer", original)
	face_frames.append(original)

    destroyAllWindows()

    print("Ready for playback")
    fps = raw_input("Enter playback framerate:")

    for frame in face_frames:
        # Exit on escape key
        key = waitKey(10)
        if key == 27:
            break

        # Cap framerate
        while time.clock()-last_frame_time < 1.0/float(fps):
            pass

        # Calculate delta time
        dt = time.clock()-last_frame_time
        last_frame_time = time.clock()

        # Display the frame
        imshow("face_recognizer", frame)

if __name__ == "__main__":
    main()


text:
/**
	存储指令把变量从操作数栈顶弹出,然后存入局部变量表
 */
package stores

import (
	"GoVM/chapter5-instructions/base"
	"GoVM/chapter4-rtdt"
)

type FSTORE struct {
	base.Index8Instruction
}

func (self *FSTORE) Execute(frame *chapter4_rtdt.Frame) {
	_fstore(frame, self.Index)
}

type FSTORE_0 struct {
	base.NoOperandsInstruction
}

func (self *FSTORE_0) Execute(frame *chapter4_rtdt.Frame) {
	_fstore(frame, 0)
}

type FSTORE_1 struct {
	base.NoOperandsInstruction
}

func (self *FSTORE_1) Execute(frame *chapter4_rtdt.Frame) {
	_fstore(frame, 1)
}

type FSTORE_2 struct {
	base.NoOperandsInstruction
}

func (self *FSTORE_2) Execute(frame *chapter4_rtdt.Frame) {
	_fstore(frame, 2)
}

type FSTORE_3 struct {
	base.NoOperandsInstruction
}

func (self *FSTORE_3) Execute(frame *chapter4_rtdt.Frame) {
	_fstore(frame, 3)
}

func _fstore(frame *chapter4_rtdt.Frame, index uint) {
	val := frame.OperandStack().PopFloat()
	frame.LocalVars().SetFloat(index, val)
}


text:
const router = require(`express`).Router();
const Customer = require(`../../libs/Customer`);

router.get(`/`, async (req, res) => {
  try {
    const customers = await Customer.get();

    res.render(`customer_home`, { customers });
  } catch (err) {
    res
      .status(500)
      .render(`error`, { message: `Failed to get customers`, _page: `error` });
  }
});

module.exports = router;


text:
#pragma once
#include <aws/serverlessrepo/ServerlessApplicationRepository_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/serverlessrepo/model/ApplicationPolicyStatement.h>
#include <utility>

namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils
{
namespace Json
{
  class JsonValue;
} // namespace Json
} // namespace Utils
namespace ServerlessApplicationRepository
{
namespace Model
{
  class AWS_SERVERLESSAPPLICATIONREPOSITORY_API PutApplicationPolicyResult
  {
  public:
    PutApplicationPolicyResult();
    PutApplicationPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
    PutApplicationPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

    /**
     *
An array of policy statements applied to the application.

     */
    inline const Aws::Vector<ApplicationPolicyStatement>& GetStatements() const{ return m_statements; }

    /**
     *
An array of policy statements applied to the application.

     */
    inline void SetStatements(const Aws::Vector<ApplicationPolicyStatement>& value) { m_statements = value; }

    /**
     *
An array of policy statements applied to the application.

     */
    inline void SetStatements(Aws::Vector<ApplicationPolicyStatement>&& value) { m_statements = std::move(value); }

    /**
     *
An array of policy statements applied to the application.

     */
    inline PutApplicationPolicyResult& WithStatements(const Aws::Vector<ApplicationPolicyStatement>& value) { SetStatements(value); return *this;}

    /**
     *
An array of policy statements applied to the application.

     */
    inline PutApplicationPolicyResult& WithStatements(Aws::Vector<ApplicationPolicyStatement>&& value) { SetStatements(std::move(value)); return *this;}

    /**
     *
An array of policy statements applied to the application.

     */
    inline PutApplicationPolicyResult& AddStatements(const ApplicationPolicyStatement& value) { m_statements.push_back(value); return *this; }

    /**
     *
An array of policy statements applied to the application.

     */
    inline PutApplicationPolicyResult& AddStatements(ApplicationPolicyStatement&& value) { m_statements.push_back(std::move(value)); return *this; }

  private:

    Aws::Vector<ApplicationPolicyStatement> m_statements;
  };

} // namespace Model
} // namespace ServerlessApplicationRepository
} // namespace Aws


text:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="CoreNLP-to-HTML.xsl" type="text/xsl"?>
<root>
  <document>
    <sentences>
      <sentence id="1">
        <tokens>
          <token id="1">
            <word>The</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>0</CharacterOffsetBegin>
            <CharacterOffsetEnd>3</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="2">
            <word>mood</word>
            <lemma>mood</lemma>
            <CharacterOffsetBegin>4</CharacterOffsetBegin>
            <CharacterOffsetEnd>8</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="3">
            <word>throughout</word>
            <lemma>throughout</lemma>
            <CharacterOffsetBegin>9</CharacterOffsetBegin>
            <CharacterOffsetEnd>19</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="4">
            <word>the</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>20</CharacterOffsetBegin>
            <CharacterOffsetEnd>23</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="5">
            <word>event</word>
            <lemma>event</lemma>
            <CharacterOffsetBegin>24</CharacterOffsetBegin>
            <CharacterOffsetEnd>29</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="6">
            <word>was</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>30</CharacterOffsetBegin>
            <CharacterOffsetEnd>33</CharacterOffsetEnd>
            <POS>VBD</POS>
          </token>
          <token id="7">
            <word>jovial</word>
            <lemma>jovial</lemma>
            <CharacterOffsetBegin>34</CharacterOffsetBegin>
            <CharacterOffsetEnd>40</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="8">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>40</CharacterOffsetBegin>
            <CharacterOffsetEnd>41</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="9">
            <word>with</word>
            <lemma>with</lemma>
            <CharacterOffsetBegin>42</CharacterOffsetBegin>
            <CharacterOffsetEnd>46</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="10">
            <word>humourous</word>
            <lemma>humourous</lemma>
            <CharacterOffsetBegin>47</CharacterOffsetBegin>
            <CharacterOffsetEnd>56</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="11">
            <word>questions</word>
            <lemma>question</lemma>
            <CharacterOffsetBegin>57</CharacterOffsetBegin>
            <CharacterOffsetEnd>66</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="12">
            <word>such</word>
            <lemma>such</lemma>
            <CharacterOffsetBegin>67</CharacterOffsetBegin>
            <CharacterOffsetEnd>71</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="13">
            <word>as</word>
            <lemma>as</lemma>
            <CharacterOffsetBegin>72</CharacterOffsetBegin>
            <CharacterOffsetEnd>74</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="14">
            <word>``</word>
            <lemma>``</lemma>
            <CharacterOffsetBegin>75</CharacterOffsetBegin>
            <CharacterOffsetEnd>76</CharacterOffsetEnd>
            <POS>``</POS>
          </token>
          <token id="15">
            <word>can</word>
            <lemma>can</lemma>
            <CharacterOffsetBegin>76</CharacterOffsetBegin>
            <CharacterOffsetEnd>79</CharacterOffsetEnd>
            <POS>MD</POS>
          </token>
          <token id="16">
            <word>you</word>
            <lemma>you</lemma>
            <CharacterOffsetBegin>80</CharacterOffsetBegin>
            <CharacterOffsetEnd>83</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="17">
            <word>guys</word>
            <lemma>guy</lemma>
            <CharacterOffsetBegin>84</CharacterOffsetBegin>
            <CharacterOffsetEnd>88</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="18">
            <word>PLEASE</word>
            <lemma>please</lemma>
            <CharacterOffsetBegin>89</CharacterOffsetBegin>
            <CharacterOffsetEnd>95</CharacterOffsetEnd>
            <POS>VB</POS>
          </token>
          <token id="19">
            <word>release</word>
            <lemma>release</lemma>
            <CharacterOffsetBegin>96</CharacterOffsetBegin>
            <CharacterOffsetEnd>103</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="20">
            <word>a</word>
            <lemma>a</lemma>
            <CharacterOffsetBegin>104</CharacterOffsetBegin>
            <CharacterOffsetEnd>105</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="21">
            <word>CM</word>
            <lemma>cm</lemma>
            <CharacterOffsetBegin>106</CharacterOffsetBegin>
            <CharacterOffsetEnd>108</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="22">
            <word>build</word>
            <lemma>build</lemma>
            <CharacterOffsetBegin>109</CharacterOffsetBegin>
            <CharacterOffsetEnd>114</CharacterOffsetEnd>
            <POS>VB</POS>
          </token>
          <token id="23">
            <word>for</word>
            <lemma>for</lemma>
            <CharacterOffsetBegin>115</CharacterOffsetBegin>
            <CharacterOffsetEnd>118</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="24">
            <word>my</word>
            <lemma>my</lemma>
            <CharacterOffsetBegin>119</CharacterOffsetBegin>
            <CharacterOffsetEnd>121</CharacterOffsetEnd>
            <POS>PRP$</POS>
          </token>
          <token id="25">
            <word>toaster</word>
            <lemma>toaster</lemma>
            <CharacterOffsetBegin>122</CharacterOffsetBegin>
            <CharacterOffsetEnd>129</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="26">
            <word>?</word>
            <lemma>?</lemma>
            <CharacterOffsetBegin>129</CharacterOffsetBegin>
            <CharacterOffsetEnd>130</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (NP (NP (DT The) (NN mood)) (PP (IN throughout) (NP (DT the) (NN event)))) (VP (VBD was) (ADJP (JJ jovial)) (, ,) (PP (IN with) (NP (NP (JJ humourous) (NNS questions)) (PP (JJ such) (IN as) (SQ (`` ``) (MD can) (NP (PRP you) (NNS guys)) (VP (VB PLEASE) (NP (NP (NN release)) (SBAR (S (NP (DT a) (NN CM)) (VP (VB build) (PP (IN for) (NP (PRP$ my) (NN toaster))))))))))))) (. ?))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="7">jovial</dependent>
          </dep>
          <dep type="det">
            <governor idx="2">mood</governor>
            <dependent idx="1">The</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="7">jovial</governor>
            <dependent idx="2">mood</dependent>
          </dep>
          <dep type="prep">
            <governor idx="2">mood</governor>
            <dependent idx="3">throughout</dependent>
          </dep>
          <dep type="det">
            <governor idx="5">event</governor>
            <dependent idx="4">the</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="3">throughout</governor>
            <dependent idx="5">event</dependent>
          </dep>
          <dep type="cop">
            <governor idx="7">jovial</governor>
            <dependent idx="6">was</dependent>
          </dep>
          <dep type="prep">
            <governor idx="7">jovial</governor>
            <dependent idx="9">with</dependent>
          </dep>
          <dep type="amod">
            <governor idx="11">questions</governor>
            <dependent idx="10">humourous</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="9">with</governor>
            <dependent idx="11">questions</dependent>
          </dep>
          <dep type="mwe">
            <governor idx="13">as</governor>
            <dependent idx="12">such</dependent>
          </dep>
          <dep type="prep">
            <governor idx="11">questions</governor>
            <dependent idx="13">as</dependent>
          </dep>
          <dep type="aux">
            <governor idx="18">PLEASE</governor>
            <dependent idx="15">can</dependent>
          </dep>
          <dep type="dep">
            <governor idx="17">guys</governor>
            <dependent idx="16">you</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="18">PLEASE</governor>
            <dependent idx="17">guys</dependent>
          </dep>
          <dep type="dep">
            <governor idx="13">as</governor>
            <dependent idx="18">PLEASE</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="18">PLEASE</governor>
            <dependent idx="19">release</dependent>
          </dep>
          <dep type="det">
            <governor idx="21">CM</governor>
            <dependent idx="20">a</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="22">build</governor>
            <dependent idx="21">CM</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="19">release</governor>
            <dependent idx="22">build</dependent>
          </dep>
          <dep type="prep">
            <governor idx="22">build</governor>
            <dependent idx="23">for</dependent>
          </dep>
          <dep type="poss">
            <governor idx="25">toaster</governor>
            <dependent idx="24">my</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="23">for</governor>
            <dependent idx="25">toaster</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="7">jovial</dependent>
          </dep>
          <dep type="det">
            <governor idx="2">mood</governor>
            <dependent idx="1">The</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="7">jovial</governor>
            <dependent idx="2">mood</dependent>
          </dep>
          <dep type="det">
            <governor idx="5">event</governor>
            <dependent idx="4">the</dependent>
          </dep>
          <dep type="prep_throughout">
            <governor idx="2">mood</governor>
            <dependent idx="5">event</dependent>
          </dep>
          <dep type="cop">
            <governor idx="7">jovial</governor>
            <dependent idx="6">was</dependent>
          </dep>
          <dep type="amod">
            <governor idx="11">questions</governor>
            <dependent idx="10">humourous</dependent>
          </dep>
          <dep type="prep_with">
            <governor idx="7">jovial</governor>
            <dependent idx="11">questions</dependent>
          </dep>
          <dep type="mwe">
            <governor idx="13">as</governor>
            <dependent idx="12">such</dependent>
          </dep>
          <dep type="prep">
            <governor idx="11">questions</governor>
            <dependent idx="13">as</dependent>
          </dep>
          <dep type="aux">
            <governor idx="18">PLEASE</governor>
            <dependent idx="15">can</dependent>
          </dep>
          <dep type="dep">
            <governor idx="17">guys</governor>
            <dependent idx="16">you</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="18">PLEASE</governor>
            <dependent idx="17">guys</dependent>
          </dep>
          <dep type="dep">
            <governor idx="13">as</governor>
            <dependent idx="18">PLEASE</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="18">PLEASE</governor>
            <dependent idx="19">release</dependent>
          </dep>
          <dep type="det">
            <governor idx="21">CM</governor>
            <dependent idx="20">a</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="22">build</governor>
            <dependent idx="21">CM</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="19">release</governor>
            <dependent idx="22">build</dependent>
          </dep>
          <dep type="poss">
            <governor idx="25">toaster</governor>
            <dependent idx="24">my</dependent>
          </dep>
          <dep type="prep_for">
            <governor idx="22">build</governor>
            <dependent idx="25">toaster</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="7">jovial</dependent>
          </dep>
          <dep type="det">
            <governor idx="2">mood</governor>
            <dependent idx="1">The</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="7">jovial</governor>
            <dependent idx="2">mood</dependent>
          </dep>
          <dep type="det">
            <governor idx="5">event</governor>
            <dependent idx="4">the</dependent>
          </dep>
          <dep type="prep_throughout">
            <governor idx="2">mood</governor>
            <dependent idx="5">event</dependent>
          </dep>
          <dep type="cop">
            <governor idx="7">jovial</governor>
            <dependent idx="6">was</dependent>
          </dep>
          <dep type="amod">
            <governor idx="11">questions</governor>
            <dependent idx="10">humourous</dependent>
          </dep>
          <dep type="prep_with">
            <governor idx="7">jovial</governor>
            <dependent idx="11">questions</dependent>
          </dep>
          <dep type="mwe">
            <governor idx="13">as</governor>
            <dependent idx="12">such</dependent>
          </dep>
          <dep type="prep">
            <governor idx="11">questions</governor>
            <dependent idx="13">as</dependent>
          </dep>
          <dep type="aux">
            <governor idx="18">PLEASE</governor>
            <dependent idx="15">can</dependent>
          </dep>
          <dep type="dep">
            <governor idx="17">guys</governor>
            <dependent idx="16">you</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="18">PLEASE</governor>
            <dependent idx="17">guys</dependent>
          </dep>
          <dep type="dep">
            <governor idx="13">as</governor>
            <dependent idx="18">PLEASE</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="18">PLEASE</governor>
            <dependent idx="19">release</dependent>
          </dep>
          <dep type="det">
            <governor idx="21">CM</governor>
            <dependent idx="20">a</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="22">build</governor>
            <dependent idx="21">CM</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="19">release</governor>
            <dependent idx="22">build</dependent>
          </dep>
          <dep type="poss">
            <governor idx="25">toaster</governor>
            <dependent idx="24">my</dependent>
          </dep>
          <dep type="prep_for">
            <governor idx="22">build</governor>
            <dependent idx="25">toaster</dependent>
          </dep>
        </dependencies>
      </sentence>
      <sentence id="2">
        <tokens>
          <token id="1">
            <word>I</word>
            <lemma>I</lemma>
            <CharacterOffsetBegin>131</CharacterOffsetBegin>
            <CharacterOffsetEnd>132</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="2">
            <word>'m</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>132</CharacterOffsetBegin>
            <CharacterOffsetEnd>134</CharacterOffsetEnd>
            <POS>VBP</POS>
          </token>
          <token id="3">
            <word>not</word>
            <lemma>not</lemma>
            <CharacterOffsetBegin>135</CharacterOffsetBegin>
            <CharacterOffsetEnd>138</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="4">
            <word>sure</word>
            <lemma>sure</lemma>
            <CharacterOffsetBegin>139</CharacterOffsetBegin>
            <CharacterOffsetEnd>143</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="5">
            <word>what</word>
            <lemma>what</lemma>
            <CharacterOffsetBegin>144</CharacterOffsetBegin>
            <CharacterOffsetEnd>148</CharacterOffsetEnd>
            <POS>WP</POS>
          </token>
          <token id="6">
            <word>model</word>
            <lemma>model</lemma>
            <CharacterOffsetBegin>149</CharacterOffsetBegin>
            <CharacterOffsetEnd>154</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="7">
            <word>it</word>
            <lemma>it</lemma>
            <CharacterOffsetBegin>155</CharacterOffsetBegin>
            <CharacterOffsetEnd>157</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="8">
            <word>is</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>158</CharacterOffsetBegin>
            <CharacterOffsetEnd>160</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="9">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>160</CharacterOffsetBegin>
            <CharacterOffsetEnd>161</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="10">
            <word>but</word>
            <lemma>but</lemma>
            <CharacterOffsetBegin>162</CharacterOffsetBegin>
            <CharacterOffsetEnd>165</CharacterOffsetEnd>
            <POS>CC</POS>
          </token>
          <token id="11">
            <word>it</word>
            <lemma>it</lemma>
            <CharacterOffsetBegin>166</CharacterOffsetBegin>
            <CharacterOffsetEnd>168</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="12">
            <word>'s</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>168</CharacterOffsetBegin>
            <CharacterOffsetEnd>170</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="13">
            <word>white</word>
            <lemma>white</lemma>
            <CharacterOffsetBegin>171</CharacterOffsetBegin>
            <CharacterOffsetEnd>176</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="14">
            <word>and</word>
            <lemma>and</lemma>
            <CharacterOffsetBegin>177</CharacterOffsetBegin>
            <CharacterOffsetEnd>180</CharacterOffsetEnd>
            <POS>CC</POS>
          </token>
          <token id="15">
            <word>I</word>
            <lemma>I</lemma>
            <CharacterOffsetBegin>181</CharacterOffsetBegin>
            <CharacterOffsetEnd>182</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="16">
            <word>got</word>
            <lemma>get</lemma>
            <CharacterOffsetBegin>183</CharacterOffsetBegin>
            <CharacterOffsetEnd>186</CharacterOffsetEnd>
            <POS>VBD</POS>
          </token>
          <token id="17">
            <word>it</word>
            <lemma>it</lemma>
            <CharacterOffsetBegin>187</CharacterOffsetBegin>
            <CharacterOffsetEnd>189</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="18">
            <word>at</word>
            <lemma>at</lemma>
            <CharacterOffsetBegin>190</CharacterOffsetBegin>
            <CharacterOffsetEnd>192</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="19">
            <word>Savers</word>
            <lemma>saver</lemma>
            <CharacterOffsetBegin>193</CharacterOffsetBegin>
            <CharacterOffsetEnd>199</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="20">
            <word>.</word>
            <lemma>.</lemma>
            <CharacterOffsetBegin>199</CharacterOffsetBegin>
            <CharacterOffsetEnd>200</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
          <token id="21">
            <word>''</word>
            <lemma>''</lemma>
            <CharacterOffsetBegin>200</CharacterOffsetBegin>
            <CharacterOffsetEnd>201</CharacterOffsetEnd>
            <POS>''</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (S (S (NP (PRP I)) (VP (VBP 'm) (RB not) (ADJP (JJ sure) (SBAR (WHNP (WP what) (NN model)) (S (NP (PRP it)) (VP (VBZ is))))))) (, ,) (CC but) (S (NP (PRP it)) (VP (VBZ 's) (ADJP (JJ white))))) (CC and) (S (NP (PRP I)) (VP (VBD got) (NP (PRP it)) (PP (IN at) (NP (NNS Savers))))) (. .) ('' ''))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="4">sure</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="4">sure</governor>
            <dependent idx="1">I</dependent>
          </dep>
          <dep type="cop">
            <governor idx="4">sure</governor>
            <dependent idx="2">'m</dependent>
          </dep>
          <dep type="neg">
            <governor idx="4">sure</governor>
            <dependent idx="3">not</dependent>
          </dep>
          <dep type="det">
            <governor idx="6">model</governor>
            <dependent idx="5">what</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="8">is</governor>
            <dependent idx="6">model</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="8">is</governor>
            <dependent idx="7">it</dependent>
          </dep>
          <dep type="ccomp">
            <governor idx="4">sure</governor>
            <dependent idx="8">is</dependent>
          </dep>
          <dep type="cc">
            <governor idx="4">sure</governor>
            <dependent idx="10">but</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="13">white</governor>
            <dependent idx="11">it</dependent>
          </dep>
          <dep type="cop">
            <governor idx="13">white</governor>
            <dependent idx="12">'s</dependent>
          </dep>
          <dep type="conj">
            <governor idx="4">sure</governor>
            <dependent idx="13">white</dependent>
          </dep>
          <dep type="cc">
            <governor idx="4">sure</governor>
            <dependent idx="14">and</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="16">got</governor>
            <dependent idx="15">I</dependent>
          </dep>
          <dep type="conj">
            <governor idx="4">sure</governor>
            <dependent idx="16">got</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="16">got</governor>
            <dependent idx="17">it</dependent>
          </dep>
          <dep type="prep">
            <governor idx="16">got</governor>
            <dependent idx="18">at</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="18">at</governor>
            <dependent idx="19">Savers</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="4">sure</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="4">sure</governor>
            <dependent idx="1">I</dependent>
          </dep>
          <dep type="cop">
            <governor idx="4">sure</governor>
            <dependent idx="2">'m</dependent>
          </dep>
          <dep type="neg">
            <governor idx="4">sure</governor>
            <dependent idx="3">not</dependent>
          </dep>
          <dep type="det">
            <governor idx="6">model</governor>
            <dependent idx="5">what</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="8">is</governor>
            <dependent idx="6">model</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="8">is</governor>
            <dependent idx="7">it</dependent>
          </dep>
          <dep type="ccomp">
            <governor idx="4">sure</governor>
            <dependent idx="8">is</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="13">white</governor>
            <dependent idx="11">it</dependent>
          </dep>
          <dep type="cop">
            <governor idx="13">white</governor>
            <dependent idx="12">'s</dependent>
          </dep>
          <dep type="conj_but">
            <governor idx="4">sure</governor>
            <dependent idx="13">white</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="16">got</governor>
            <dependent idx="15">I</dependent>
          </dep>
          <dep type="conj_and">
            <governor idx="4">sure</governor>
            <dependent idx="16">got</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="16">got</governor>
            <dependent idx="17">it</dependent>
          </dep>
          <dep type="prep_at">
            <governor idx="16">got</governor>
            <dependent idx="19">Savers</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="4">sure</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="4">sure</governor>
            <dependent idx="1">I</dependent>
          </dep>
          <dep type="cop">
            <governor idx="4">sure</governor>
            <dependent idx="2">'m</dependent>
          </dep>
          <dep type="neg">
            <governor idx="4">sure</governor>
            <dependent idx="3">not</dependent>
          </dep>
          <dep type="det">
            <governor idx="6">model</governor>
            <dependent idx="5">what</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="8">is</governor>
            <dependent idx="6">model</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="8">is</governor>
            <dependent idx="7">it</dependent>
          </dep>
          <dep type="ccomp">
            <governor idx="4">sure</governor>
            <dependent idx="8">is</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="13">white</governor>
            <dependent idx="11">it</dependent>
          </dep>
          <dep type="cop">
            <governor idx="13">white</governor>
            <dependent idx="12">'s</dependent>
          </dep>
          <dep type="conj_but">
            <governor idx="4">sure</governor>
            <dependent idx="13">white</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="16">got</governor>
            <dependent idx="15">I</dependent>
          </dep>
          <dep type="conj_and">
            <governor idx="4">sure</governor>
            <dependent idx="16">got</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="16">got</governor>
            <dependent idx="17">it</dependent>
          </dep>
          <dep type="prep_at">
            <governor idx="16">got</governor>
            <dependent idx="19">Savers</dependent>
          </dep>
        </dependencies>
      </sentence>
      <sentence id="3">
        <tokens>
          <token id="1">
            <word>toaster</word>
            <lemma>toaster</lemma>
            <CharacterOffsetBegin>202</CharacterOffsetBegin>
            <CharacterOffsetEnd>209</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="2">
            <word>specifications</word>
            <lemma>specification</lemma>
            <CharacterOffsetBegin>210</CharacterOffsetBegin>
            <CharacterOffsetEnd>224</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="3">
            <word>joke</word>
            <lemma>joke</lemma>
            <CharacterOffsetBegin>225</CharacterOffsetBegin>
            <CharacterOffsetEnd>229</CharacterOffsetEnd>
            <POS>VBP</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (NP (NN toaster) (NNS specifications)) (VP (VBP joke)))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="3">joke</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">specifications</governor>
            <dependent idx="1">toaster</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="3">joke</governor>
            <dependent idx="2">specifications</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="3">joke</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">specifications</governor>
            <dependent idx="1">toaster</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="3">joke</governor>
            <dependent idx="2">specifications</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="3">joke</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">specifications</governor>
            <dependent idx="1">toaster</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="3">joke</governor>
            <dependent idx="2">specifications</dependent>
          </dep>
        </dependencies>
      </sentence>
    </sentences>
  </document>
</root>


text:
#include "stdafx.h"
#include "Parameter.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

static bool CopyToClipboard(char *strText)
{
	bool bRet = true;

	if (strlen(strText) > 0)
	{
		HGLOBAL		hGlobalMemory;
		LPVOID		lpGlobalMemory;

		// allocate global memory
		hGlobalMemory = GlobalAlloc(GHND, strlen(strText) + 1);
		if (hGlobalMemory)
		{
			// lock block to get a pointer to it
			lpGlobalMemory = GlobalLock(hGlobalMemory);
			// copy string to the block
			lpGlobalMemory = strcpy((char *)lpGlobalMemory, strText);
			// free memory
			GlobalUnlock(hGlobalMemory);

			// open clipboard for task
			if (OpenClipboard(0))
			{
				EmptyClipboard();
				// try writing if successful
				if (!SetClipboardData(CF_TEXT, hGlobalMemory))
				{
					// error writing to clipboard
					bRet = false;
				}
				CloseClipboard();
			}
		}
	}
	return bRet;
}

Parameter::Parameter(void)
{
	/* Initialize values */
	for (int i = 0; i < NUM_PARAMETERS; i++)
	{
		value[i] = 0.0f;
		changed[i] = false;
	}

	/* Open Midi device */
	numDevices = midiInGetNumDevs();
	if (numDevices > MAX_NUM_DEVICES) numDevices = MAX_NUM_DEVICES;
	for (unsigned int devID = 0; devID < numDevices; devID++)
	{
		MMRESULT rc;
		rc = midiInOpen(&(midiInDevice[devID]), devID, (DWORD_PTR)MidiInProc, NULL, CALLBACK_FUNCTION);
		/* Create input buffers */
		midiInHeader[devID].lpData = (LPSTR)midiData[devID];
		midiInHeader[devID].dwBufferLength = MIDI_DATA_SIZE;
		midiInHeader[devID].dwFlags = 0;
		rc = midiInPrepareHeader(midiInDevice[devID], &midiInHeader[devID], sizeof(midiInHeader[devID]));
		rc = midiInAddBuffer(midiInDevice[devID], &midiInHeader[devID], sizeof(midiInHeader[devID]));
		rc = midiInStart(midiInDevice[devID]);
	}
}

Parameter::~Parameter(void)
{
	char string[NUM_PARAMETERS*12];
	char tmpString[12];

	/* Stop midi */
	for (unsigned int devID = 0; devID < numDevices; devID++)
	{
		MMRESULT rc;
		rc = midiInReset(midiInDevice[devID]);
		rc = midiInStop(midiInDevice[devID]);
		rc = midiInClose(midiInDevice[devID]);
	}

#if 0
	/* Save to clipboard... */
	string[0] = 0;
	for (int par = 0; par < NUM_PARAMETERS; par++)
	{
		if (changed[par])
		{
			sprintf(tmpString, "%d:%.2f(%d) ", par, value[par], (int)(value[par]*127.0f + 0.49f));
			strcat(string, tmpString);
		}
	}

	CopyToClipboard(string);
#endif
}

float Parameter::getParam(int index, float defaultValue)
{
	if (!changed[index])
	{
		value[index] = defaultValue;
	}

	return value[index];
}

void CALLBACK Parameter::MidiInProc(HMIDIIN hMidiIn, UINT wMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2)
{
	if (wMsg == MIM_DATA)
	{
		int first = (dwParam1 >> 8) & 255;
		int second = (dwParam1 >> 16) & 255;
		params.changed[first] = true;
		params.value[first] = (float)second / 127.0f;
	}
}

Parameter params;


text:
class AdditionModel : public MathOperationDataModel
{
public:

  virtual
  ~AdditionModel() {}

public:

  QString
  caption() const override
  { return QStringLiteral("Addition"); }

  QString
  name() const override
  { return QStringLiteral("Addition"); }

  std::unique_ptr<NodeDataModel>
  clone() const override
  { return std::make_unique<AdditionModel>(); }

private:

  void
  compute() override
  {
    PortIndex const outPortIndex = 0;

    auto n1 = _number1.lock();
    auto n2 = _number2.lock();

    if (n1 && n2)
    {
      modelValidationState = NodeValidationState::Valid;
      modelValidationError = QString();
      _result = std::make_shared<DecimalData>(n1->number() +
                                              n2->number());
    }
    else
    {
      modelValidationState = NodeValidationState::Warning;
      modelValidationError = QStringLiteral("Missing or incorrect inputs");
      _result.reset();
    }

    emit dataUpdated(outPortIndex);
  }
};


text:
<?php

declare(strict_types=1);

namespace Nelmio\Alice\Throwable\Exception;

use PHPUnit\Framework\TestCase;

/**
 * @covers \Nelmio\Alice\Throwable\Exception\FixtureNotFoundExceptionFactory
 */
class FixtureNotFoundExceptionFactoryTest extends TestCase
{
    public function testCreateNewExceptionWithFactory()
    {
        $exception = FixtureNotFoundExceptionFactory::create('foo');

        $this->assertEquals(
            'Could not find the fixture "foo".',
            $exception->getMessage()
        );
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }
}


text:
package com.karolmajta.stp.views;

import com.karolmajta.stp.models.IProgress;

import processing.core.PApplet;
import processing.core.PFont;

public class ProgressView extends View<IProgress> {
	private static final int SHOW = 0;
	private static final int SHRINK = 1;
	private static final int HIDE = 2;

	private static final float SHRINK_SPEED = 0.001f;
	private static final float ALPHA_SPEED = 0.5f;
	private static final int OVERLAY = 0xff000000;

	private int mode;
	private Integer lastTick = null;
	private Integer deltaTime = null;
	private float textX;
	private float alpha = 0;

	private String name;
	private PFont pFont;
	private float x;
	private float y;
	private float w;
	private float outerHeight;
	private float innerHeight;
	private int background;
	private int inactiveBar;
	private int activeBar;

	public ProgressView
			(
					String name,
					PFont pFont,
					float x,
					float y,
					float w,
					float outerHeight,
					float innerHeight,
					int background,
					int inactiveBar,
					int activeBar
			) {
		this.mode = SHOW;

		this.name = name;
		this.pFont = pFont;
		this.x = x;
		this.y = y;
		this.w = w;
		textX = x+(w/2);
		this.outerHeight = outerHeight;
		this.innerHeight = innerHeight;
		this.background = background;
		this.inactiveBar = inactiveBar;
		this.activeBar = activeBar;
	}

	@Override
	protected void onDraw(PApplet p) {
		int newTick = p.millis();
		if(lastTick == null){
			lastTick = newTick;
		}
		deltaTime = newTick - lastTick;
		lastTick = newTick;

		switch(mode){
			case SHOW:
				show(p);
				break;
			case SHRINK:
				shrink(p);
				break;
			case HIDE:
				hide(p);
				break;
		}
	}

	private void show(PApplet p) {
		float midpoint = w*((float)model.getProcessed()/model.getTotal());

		int prevStroke = p.g.strokeColor;
		float prevWeight = p.g.strokeWeight;
		int prevTextAlign = p.g.textAlign;
		PFont prevPFont = p.g.textFont;

		p.stroke(background);
		p.strokeWeight(outerHeight);

		p.line(x, y, x+w, y);

		p.stroke(inactiveBar);
		p.strokeWeight(innerHeight);

		p.line(x, y, x+w, y);

		p.stroke(activeBar);

		p.line(x, y, x+midpoint, y);

		p.stroke(background);
		if(pFont != null){
			p.textFont(pFont);
		}
		p.textAlign(p.CENTER);
		p.text(name, textX, y+3.5f*outerHeight, p.width);

		p.stroke(prevStroke);
		p.strokeWeight(prevWeight);
		p.textAlign(prevTextAlign);
		if(prevPFont != null){
			p.textFont(prevPFont);
		}

		if(!model.hasNextTask() && mode == SHOW){
			mode = SHRINK;
		}
	}

	private void shrink(PApplet p) {
		float vel = p.width*SHRINK_SPEED;
		if(x < p.width/2){
			x += vel*deltaTime;
		}else{
			x = p.width/2+0.1f;
		}
		if(w > 0){
			w -= 2*vel*deltaTime;
		}else{
			w = -0.1f;
		}
		show(p);

		if(w < 1 && x > p.width/2){
			mode = HIDE;
		}
	}

	private void hide(PApplet p) {
		show(p);
		int prevColor = p.g.fillColor;

		float red = p.red(OVERLAY);
		float green = p.green(OVERLAY);
		float blue = p.blue(OVERLAY);

		p.fill(red, green, blue, alpha);
		p.ellipse(textX, y, p.width/3, p.width/3);

		p.fill(prevColor);

		if(alpha < 255){
			alpha += ALPHA_SPEED*deltaTime;
		}
		if(alpha > 254){
			setVisible(false);
		}
	}
}


text:
package mcjty.gui.layout;

public enum VerticalAlignment {
    ALIGN_TOP,
    ALIGN_BOTTOM,
    ALIGN_CENTER
}


text:
import React from 'react';
import { Link } from 'react-router';
import AuthContainer from '../containers/AuthContainer';
import NavMenuContainer from '../containers/NavMenuContainer';
import { Toolbar, ToolbarTitle, ToolbarGroup } from 'material-ui/Toolbar';

export const Nav = () => (
  <Toolbar className="navbar" iconElementLeft={<div />}>
    <Link to={'/'} className="navbar__title">
      <ToolbarTitle text="React-Redux-ToDo" />
    </Link>
    <div className="navbar__container">
      <ToolbarGroup firstChild>
          <AuthContainer />
          <NavMenuContainer />
      </ToolbarGroup>
    </div>
  </Toolbar>
);

export default Nav;


text:
package io.github.mandar2812.dynaml.optimization

import breeze.linalg._
import io.github.mandar2812.dynaml.graphUtils.CausalEdge

/**
 * @author mandar2812
 */
class ConjugateGradient extends RegularizedOptimizer[Int, DenseVector[Double],
  DenseVector[Double], Double, Iterable[CausalEdge]]{

  def getRegParam = this.regParam

  /**
   * Find the optimum value of the parameters using
   * Gradient Descent.
   *
   * @param nPoints The number of data points
   * @param initialP The initial value of the parameters
   *                 as a [[DenseVector]]
   * @param ParamOutEdges An [[java.lang.Iterable]] object
   *                      having all of the out edges of the
   *                      parameter node
   *
   * @return The value of the parameters as a [[DenseVector]]
   *
   *
   * */
  override def optimize(nPoints: Long,
                        ParamOutEdges: Iterable[CausalEdge],
                        initialP: DenseVector[Double]): DenseVector[Double] = {

    val dims = initialP.length
    //Cast as problem of form A.w = b
    //A = Phi^T . Phi + I_dims*regParam
    //b = Phi^T . Y
    val (a,b): (DenseMatrix[Double], DenseVector[Double]) = ParamOutEdges.map((edge) => {
      val phi = DenseVector(edge.getPoint().getFeatureMap())
      val label = edge.getLabel().getValue()
      val phiY: DenseVector[Double] = phi * label
      (phi*phi.t, phiY)
    }).reduce((couple1, couple2) => {
      (couple1._1+couple2._1, couple1._2+couple2._2)
    })
    val A = a + (DenseMatrix.eye[Double](dims)*regParam)

    ConjugateGradient.runCG(A, b, initialP, 0.0001, this.numIterations)
  }
}

object ConjugateGradient {
  /**
   * Solves for x in A.x = b (where A is symmetric +ve semi-definite)
   * iteratively using the Conjugate Gradient
   * algorithm.
   * */
  def runCG(A: DenseMatrix[Double],
            b: DenseVector[Double],
            x: DenseVector[Double],
            epsilon: Double,
            MAX_ITERATIONS: Int): DenseVector[Double] = {
    val residual = b - (A*x)
    val p = residual
    var count = 1.0
    var alpha = math.pow(norm(residual, 2), 2)/(p.t * (A*p))
    var beta = 0.0
    while(norm(residual, 2) >= epsilon && count <= MAX_ITERATIONS) {
      //update x
      axpy(alpha, p, x)
      //before updating residual, calculate norm (required for beta)
      val de = math.pow(norm(residual, 2), 2)
      //update residual
      axpy(-1.0*alpha, A*p, residual)
      //calculate beta
      beta = math.pow(norm(residual, 2), 2)/de
      //update p
      p :*= beta
      axpy(1.0, residual, p)
      //update alpha
      alpha = math.pow(norm(residual, 2), 2)/(p.t * (A*p))
      count += 1
    }
    x
  }
}


text:
#include "config.h"
#include "DragImage.h"

#include "NotImplemented.h"

namespace WebCore {

IntSize dragImageSize(DragImageRef)
{
    return { 0, 0 };
}

void deleteDragImage(DragImageRef)
{
}

DragImageRef scaleDragImage(DragImageRef, FloatSize)
{
    return nullptr;
}

DragImageRef dissolveDragImageToFraction(DragImageRef, float)
{
    return nullptr;
}

DragImageRef createDragImageFromImage(Image*, ImageOrientationDescription)
{
    notImplemented();
    return nullptr;
}

DragImageRef createDragImageIconForCachedImageFilename(const String&)
{
    notImplemented();
    return nullptr;
}

DragImageRef createDragImageForLink(Element&, URL&, const String&, TextIndicatorData&, FontRenderingMode, float)
{
    notImplemented();
    return nullptr;
}

}


text:
from __future__ import absolute_import

from games.TicTacToe.TicTacToe import TicTacToeGame


text:
<?php
/* @var $this SforumController */
/* @var $model Sforum */
/* @var $form CActiveForm */
?>

Post a Reply

	<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'scomment-form',
		'enableAjaxValidation'=>false,
	));
	echo $form->hiddenField($model, 'stopic_id', array());
	echo $form->hiddenField($model, 'sforum_id', array());
	?>

		<?php echo SforumUtils::textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'body'); ?>

		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>

<?php $this->endWidget(); ?>


text:
// Type definitions for CodeMirror
// Project: https://github.com/marijnh/CodeMirror
// Definitions by: Joseph Vaughan <https://github.com/Joev->
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

// See docs https://codemirror.net/doc/manual.html#addon_runmode

import * as CodeMirror from "codemirror";

declare module "codemirror" {

    /**
     * Runs a CodeMirror mode over text without opening an editor instance.
     *
     * @param text The document to run through the highlighter.
     * @param mode The mode to use (must be loaded as normal).
     * @param output If this is a function, it will be called for each token with
     *               two arguments, the token's text and the token's style class
     *               (may be null for unstyled tokens). If it is a DOM node, the
     *               tokens will be converted to span elements as in an editor,
     *               and inserted into the node (through innerHTML).
     */
    function runMode(text: string, modespec: any, callback: (HTMLElement | ((text: string, style: string) => void)), options? : { tabSize?: number; state?: any; }): void;
}


text:
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Change image on click with jQuery</title>
<meta name="description" content="Change image on click with jQuery">
<meta name="keywords" content="Change image on click with jQuery">
<meta name="author" content="SSD Tutorials">
<link rel="stylesheet" href="/css/core.css" media="all" type="text/css">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>

<script src="/js/jquery-1.7.1.min.js"></script>
<script src="/js/core.js"></script>
</body>
</html>


text:
lp2-db CHANGELOG
================

This file is used to list changes made in each version of the lp2-db cookbook.

0.1.0
-----
- [Miguel Landaeta] - Initial release of lp2-db.

- - -
Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.

The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.


text:
/**
 * Created by soeren on 13.01.17.
 */
import {Piece} from './piece';
export interface Field {
    color: string;
    pieces: Piece[];
    sanCode: string;
}


text:
import { renderColorImage } from './renderColorImage.js';
import { renderGrayscaleImage } from './renderGrayscaleImage.js';
import { renderWebImage } from './renderWebImage.js';

export default {
  colorImage: renderColorImage,
  grayscaleImage: renderGrayscaleImage,
  webImage: renderWebImage
};


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

<meta name="collection" content="api">

<TITLE>
JMXConnectorServerFactory (Java 2 Platform SE 5.0)
</TITLE>

<META NAME="keywords" CONTENT="javax.management.remote.JMXConnectorServerFactory class">
<META NAME="keywords" CONTENT="DEFAULT_CLASS_LOADER">
<META NAME="keywords" CONTENT="DEFAULT_CLASS_LOADER_NAME">
<META NAME="keywords" CONTENT="PROTOCOL_PROVIDER_PACKAGES">
<META NAME="keywords" CONTENT="PROTOCOL_PROVIDER_CLASS_LOADER">
<META NAME="keywords" CONTENT="newJMXConnectorServer()">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

JavaTM 2 Platform
Standard Ed. 5.0

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

javax.management.remote

Class JMXConnectorServerFactory

java.lang.Object
  javax.management.remote.JMXConnectorServerFactory

public class JMXConnectorServerFactory
extends Object

Factory to create JMX API connector servers.  There
 are no instances of this class.

Each connector server is created by an instance of JMXConnectorServerProvider.  This instance is found as follows.  Suppose
 the given JMXServiceURL looks like
 "service:jmx:protocol:remainder".
 Then the factory will attempt to find the appropriate JMXConnectorServerProvider for protocol.  Each
 occurrence of the character + or - in
 protocol is replaced by . or
 _, respectively.

A provider package list is searched for as follows:

If the environment parameter to newJMXConnectorServer contains the key
 jmx.remote.protocol.provider.pkgs then the associated
 value is the provider package list.

Otherwise, if the system property
 jmx.remote.protocol.provider.pkgs exists, then its value
 is the provider package list.

Otherwise, there is no provider package list.

The provider package list is a string that is interpreted as a
 list of non-empty Java package names separated by vertical bars
 (|).  If the string is empty, then so is the provider
 package list.  If the provider package list is not a String, or if
 it contains an element that is an empty string, a JMXProviderException is thrown.

If the provider package list exists and is not empty, then for
 each element pkg of the list, the factory
 will attempt to load the class

 pkg.protocol.ServerProvider

If the environment parameter to newJMXConnectorServer contains the key
 jmx.remote.protocol.provider.class.loader then the
 associated value is the class loader to use to load the provider.
 If the associated value is not an instance of ClassLoader, an IllegalArgumentException is thrown.

If the jmx.remote.protocol.provider.class.loader
 key is not present in the environment parameter, the
 calling thread's context class loader is used.

If the attempt to load this class produces a ClassNotFoundException, the search for a handler continues with
 the next element of the list.

Otherwise, a problem with the provider found is signalled by a
 JMXProviderException whose cause indicates the
 underlying exception, as follows:

if the attempt to load the class produces an exception other
 than ClassNotFoundException, that is the
 cause;

if Class.newInstance() for the class produces an
 exception, that is the cause.

If no provider is found by the above steps, including the
 default case where there is no provider package list, then the
 implementation will use its own provider for
 protocol, or it will throw a
 MalformedURLException if there is none.  An
 implementation may choose to find providers by other means.  For
 example, it may support the
 JAR conventions for service providers, where the service
 interface is JMXConnectorServerProvider.

Every implementation must support the RMI connector protocols,
 specified with the string rmi or
 iiop.

Once a provider is found, the result of the
 newJMXConnectorServer method is the result of calling
 newJMXConnectorServer on the provider.

The Map parameter passed to the
 JMXConnectorServerProvider is a new read-only
 Map that contains all the entries that were in the
 environment parameter to JMXConnectorServerFactory.newJMXConnectorServer, if there was one.
 Additionally, if the
 jmx.remote.protocol.provider.class.loader key is not
 present in the environment parameter, it is added to
 the new read-only Map. The associated value is the
 calling thread's context class loader.

Since:

1.5

Field Summary

static String
DEFAULT_CLASS_LOADER

          Name of the attribute that specifies the default class
 loader.

static String
DEFAULT_CLASS_LOADER_NAME

          Name of the attribute that specifies the default class
 loader MBean name.

static String
PROTOCOL_PROVIDER_CLASS_LOADER

          Name of the attribute that specifies the class
 loader for loading protocol providers.

static String
PROTOCOL_PROVIDER_PACKAGES

          Name of the attribute that specifies the provider packages
 that are consulted when looking for the handler for a protocol.

Method Summary

static JMXConnectorServer
newJMXConnectorServer(JMXServiceURL serviceURL,
                      Map<String,?> environment,
                      MBeanServer mbeanServer)

          Creates a connector server at the given address.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

DEFAULT_CLASS_LOADER

public static final String DEFAULT_CLASS_LOADER

Name of the attribute that specifies the default class
 loader.  This class loader is used to deserialize objects in
 requests received from the client, possibly after consulting an
 MBean-specific class loader.  The value associated with this
 attribute is an instance of ClassLoader.

See Also:
Constant Field Values

DEFAULT_CLASS_LOADER_NAME

public static final String DEFAULT_CLASS_LOADER_NAME

Name of the attribute that specifies the default class
 loader MBean name.  This class loader is used to deserialize objects in
 requests received from the client, possibly after consulting an
 MBean-specific class loader.  The value associated with this
 attribute is an instance of ObjectName.

See Also:
Constant Field Values

PROTOCOL_PROVIDER_PACKAGES

public static final String PROTOCOL_PROVIDER_PACKAGES

Name of the attribute that specifies the provider packages
 that are consulted when looking for the handler for a protocol.
 The value associated with this attribute is a string with
 package names separated by vertical bars (|).

See Also:
Constant Field Values

PROTOCOL_PROVIDER_CLASS_LOADER

public static final String PROTOCOL_PROVIDER_CLASS_LOADER

Name of the attribute that specifies the class
 loader for loading protocol providers.
 The value associated with this attribute is an instance
 of ClassLoader.

See Also:
Constant Field Values

Method Detail

newJMXConnectorServer

public static JMXConnectorServer newJMXConnectorServer(JMXServiceURL serviceURL,
                                                       Map<String,?> environment,
                                                       MBeanServer mbeanServer)
                                                throws IOException

Creates a connector server at the given address.  The
 resultant server is not started until its start method is called.

Parameters:
serviceURL - the address of the new connector server.  The
 actual address of the new connector server, as returned by its
 getAddress method, will
 not necessarily be exactly the same.  For example, it might
 include a port number if the original address did not.
environment - a set of attributes to control the new
 connector server's behaviour.  This parameter can be null.
 Keys in this map must be Strings.  The appropriate type of each
 associated value depends on the attribute.  The contents of
 environment are not changed by this call.
mbeanServer - the MBean server that this connector server
 is attached to.  Null if this connector server will be attached
 to an MBean server by being registered in it.

Returns:
a JMXConnectorServer representing the new
 connector server.  Each successful call to this method produces
 a different object.

Throws:

NullPointerException - if serviceURL is null.

IOException - if the connector server cannot be made
 because of a communication problem.

MalformedURLException - if there is no provider for the
 protocol in serviceURL.

JMXProviderException - if there is a provider for the
 protocol in serviceURL but it cannot be used for
 some reason.

      Overview
      Package
    Class
      Use
      Tree
      Deprecated
      Index
      Help

JavaTM 2 Platform
Standard Ed. 5.0

 PREV CLASS
 NEXT CLASS

  FRAMES
 NO FRAMES

  All Classes

  SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.


text:
namespace OpenInApp.Common.Helpers.Dtos
{
    public enum ArtefactTypeToOpen
    {
        Undefined = 0,
        File,
        Folder
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <title>Qt 4.8: Q3ListBoxPixmap Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />

  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />

      Home

    Qt Reference Documentation

Qt HOME

DEV

          DOC

BLOG

Qt 4.8

ALL VERSIONS

API Lookup

Class index

Function index

Modules

Namespaces

Global Declarations

QML elements

Qt Topics

Programming with Qt

Device UIs & Qt Quick

UI Design with Qt

Supported Platforms

Qt and Key Technologies

How-To's and Best Practices

Examples

Examples

Tutorials

Demos

QML Examples

          Search index:

          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />

 Close

All | API | Articles | Examples

 results:

            </fieldset>
          </form>

            API Lookup

Class index

Function index

Modules

Namespaces

Global Declarations

QML elements

            Qt Topics

Programming with Qt

Device UIs & Qt Quick

UI Design with Qt

Supported Platforms

Qt and Key Technologies

How-To's and Best Practices

            Examples

Examples

Tutorials

Demos

QML Examples

Home

Modules

Qt3SupportLight

Q3ListBoxPixmap

A

A

A

                Print

Contents

Public Functions

Protected Functions

Detailed Description

Q3ListBoxPixmap Class Reference

The Q3ListBoxPixmap class provides list box items with a pixmap and optional text. More...

 #include <Q3ListBoxPixmap>

This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information.

Inherits: Q3ListBoxItem.

List of all members, including inherited members

Public Functions

 	Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pixmap )

 	Q3ListBoxPixmap ( const QPixmap & pixmap )

 	Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pixmap, Q3ListBoxItem * after )

 	Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pix, const QString & text )

 	Q3ListBoxPixmap ( const QPixmap & pix, const QString & text )

 	Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pix, const QString & text, Q3ListBoxItem * after )

 	~Q3ListBoxPixmap ()

Reimplemented Public Functions

 virtual int 	height ( const Q3ListBox * lb ) const

 virtual const QPixmap * 	pixmap () const

 virtual int 	rtti () const

 virtual int 	width ( const Q3ListBox * lb ) const

14 public functions inherited from Q3ListBoxItem

Reimplemented Protected Functions

 virtual void 	paint ( QPainter * painter )

3 protected functions inherited from Q3ListBoxItem

Detailed Description

The Q3ListBoxPixmap class provides list box items with a pixmap and optional text.

Items of this class are drawn with the pixmap on the left with the optional text to the right of the pixmap.

See also Q3ListBox and Q3ListBoxItem.

Member Function Documentation

Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pixmap )

Constructs a new list box item in list box listbox showing the pixmap pixmap.

Q3ListBoxPixmap::Q3ListBoxPixmap ( const QPixmap & pixmap )

Constructs a new list box item showing the pixmap pixmap.

Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pixmap, Q3ListBoxItem * after )

Constructs a new list box item in list box listbox showing the pixmap pixmap. The item gets inserted after the item after, or at the beginning if after is 0.

Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pix, const QString & text )

Constructs a new list box item in list box listbox showing the pixmap pix and the text text.

Q3ListBoxPixmap::Q3ListBoxPixmap ( const QPixmap & pix, const QString & text )

Constructs a new list box item showing the pixmap pix and the text to text.

Q3ListBoxPixmap::Q3ListBoxPixmap ( Q3ListBox * listbox, const QPixmap & pix, const QString & text, Q3ListBoxItem * after )

Constructs a new list box item in list box listbox showing the pixmap pix and the string text. The item gets inserted after the item after, or at the beginning if after is 0.

Q3ListBoxPixmap::~Q3ListBoxPixmap ()

Destroys the item.

int Q3ListBoxPixmap::height ( const Q3ListBox * lb ) const<tt> [virtual]</tt>

Reimplemented from Q3ListBoxItem::height().

Returns the height of the pixmap in list box lb.

See also paint() and width().

void Q3ListBoxPixmap::paint ( QPainter * painter )<tt> [virtual protected]</tt>

Reimplemented from Q3ListBoxItem::paint().

Draws the pixmap using painter.

const QPixmap * Q3ListBoxPixmap::pixmap () const<tt> [virtual]</tt>

Reimplemented from Q3ListBoxItem::pixmap().

Returns the pixmap associated with the item.

int Q3ListBoxPixmap::rtti () const<tt> [virtual]</tt>

Reimplemented from Q3ListBoxItem::rtti().

Returns 2.

Make your derived classes return their own values for rtti(), and you can distinguish between listbox items. You should use values greater than 1000 preferably a large random number, to allow for extensions to this class.

int Q3ListBoxPixmap::width ( const Q3ListBox * lb ) const<tt> [virtual]</tt>

Reimplemented from Q3ListBoxItem::width().

Returns the width of the pixmap plus some margin in list box lb.

See also paint() and height().

      <acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.

      The documentation provided herein is licensed under the terms of the
      GNU Free Documentation
      License version 1.3 as published by the Free Software Foundation.

      Documentation sources may be obtained from
      www.qt-project.org.

      Digia, Qt and their respective logos are trademarks of Digia Plc
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. Privacy Policy


text:
goog.provide('goog.events.BrowserEvent');
goog.provide('goog.events.BrowserEvent.MouseButton');
goog.require('goog.events.BrowserFeature');
goog.require('goog.events.Event');
goog.require('goog.events.EventType');
goog.require('goog.reflect');
goog.require('goog.userAgent');
goog.events.BrowserEvent = function(opt_e, opt_currentTarget) {
  if(opt_e) {
    this.init(opt_e, opt_currentTarget);
  }
};
goog.inherits(goog.events.BrowserEvent, goog.events.Event);
goog.events.BrowserEvent.MouseButton = {
  LEFT: 0,
  MIDDLE: 1,
  RIGHT: 2
};
goog.events.BrowserEvent.IEButtonMap =[1, 4, 2];
goog.events.BrowserEvent.prototype.target = null;
goog.events.BrowserEvent.prototype.currentTarget;
goog.events.BrowserEvent.prototype.relatedTarget = null;
goog.events.BrowserEvent.prototype.offsetX = 0;
goog.events.BrowserEvent.prototype.offsetY = 0;
goog.events.BrowserEvent.prototype.clientX = 0;
goog.events.BrowserEvent.prototype.clientY = 0;
goog.events.BrowserEvent.prototype.screenX = 0;
goog.events.BrowserEvent.prototype.screenY = 0;
goog.events.BrowserEvent.prototype.button = 0;
goog.events.BrowserEvent.prototype.keyCode = 0;
goog.events.BrowserEvent.prototype.charCode = 0;
goog.events.BrowserEvent.prototype.ctrlKey = false;
goog.events.BrowserEvent.prototype.altKey = false;
goog.events.BrowserEvent.prototype.shiftKey = false;
goog.events.BrowserEvent.prototype.metaKey = false;
goog.events.BrowserEvent.prototype.state;
goog.events.BrowserEvent.prototype.platformModifierKey = false;
goog.events.BrowserEvent.prototype.event_ = null;
goog.events.BrowserEvent.prototype.init = function(e, opt_currentTarget) {
  var type = this.type = e.type;
  goog.events.Event.call(this, type);
  this.target =(e.target) || e.srcElement;
  this.currentTarget = opt_currentTarget;
  var relatedTarget =(e.relatedTarget);
  if(relatedTarget) {
    if(goog.userAgent.GECKO) {
      if(! goog.reflect.canAccessProperty(relatedTarget, 'nodeName')) {
        relatedTarget = null;
      }
    }
  } else if(type == goog.events.EventType.MOUSEOVER) {
    relatedTarget = e.fromElement;
  } else if(type == goog.events.EventType.MOUSEOUT) {
    relatedTarget = e.toElement;
  }
  this.relatedTarget = relatedTarget;
  this.offsetX = e.offsetX !== undefined ? e.offsetX: e.layerX;
  this.offsetY = e.offsetY !== undefined ? e.offsetY: e.layerY;
  this.clientX = e.clientX !== undefined ? e.clientX: e.pageX;
  this.clientY = e.clientY !== undefined ? e.clientY: e.pageY;
  this.screenX = e.screenX || 0;
  this.screenY = e.screenY || 0;
  this.button = e.button;
  this.keyCode = e.keyCode || 0;
  this.charCode = e.charCode ||(type == 'keypress' ? e.keyCode: 0);
  this.ctrlKey = e.ctrlKey;
  this.altKey = e.altKey;
  this.shiftKey = e.shiftKey;
  this.metaKey = e.metaKey;
  this.platformModifierKey = goog.userAgent.MAC ? e.metaKey: e.ctrlKey;
  this.state = e.state;
  this.event_ = e;
  delete this.returnValue_;
  delete this.propagationStopped_;
};
goog.events.BrowserEvent.prototype.isButton = function(button) {
  if(! goog.events.BrowserFeature.HAS_W3C_BUTTON) {
    if(this.type == 'click') {
      return button == goog.events.BrowserEvent.MouseButton.LEFT;
    } else {
      return ! !(this.event_.button & goog.events.BrowserEvent.IEButtonMap[button]);
    }
  } else {
    return this.event_.button == button;
  }
};
goog.events.BrowserEvent.prototype.isMouseActionButton = function() {
  return this.isButton(goog.events.BrowserEvent.MouseButton.LEFT) && !(goog.userAgent.WEBKIT && goog.userAgent.MAC && this.ctrlKey);
};
goog.events.BrowserEvent.prototype.stopPropagation = function() {
  goog.events.BrowserEvent.superClass_.stopPropagation.call(this);
  if(this.event_.stopPropagation) {
    this.event_.stopPropagation();
  } else {
    this.event_.cancelBubble = true;
  }
};
goog.events.BrowserEvent.prototype.preventDefault = function() {
  goog.events.BrowserEvent.superClass_.preventDefault.call(this);
  var be = this.event_;
  if(! be.preventDefault) {
    be.returnValue = false;
    if(goog.events.BrowserFeature.SET_KEY_CODE_TO_PREVENT_DEFAULT) {
      try {
        var VK_F1 = 112;
        var VK_F12 = 123;
        if(be.ctrlKey || be.keyCode >= VK_F1 && be.keyCode <= VK_F12) {
          be.keyCode = - 1;
        }
      } catch(ex) { }
    }
  } else {
    be.preventDefault();
  }
};
goog.events.BrowserEvent.prototype.getBrowserEvent = function() {
  return this.event_;
};
goog.events.BrowserEvent.prototype.disposeInternal = function() {
  goog.events.BrowserEvent.superClass_.disposeInternal.call(this);
  this.event_ = null;
  this.target = null;
  this.currentTarget = null;
  this.relatedTarget = null;
};


text:
<?php

namespace Flosch\Bundle\StripeBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Config\FileLocator;

/**
 * This is the class that loads and manages your bundle configuration
 *
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
 */
class FloschStripeExtension extends Extension
{
    /**
     * {@inheritdoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();

        $config = $this->processConfiguration($configuration, $configs);

        $container->setParameter('flosch_stripe.stripe_api_key', $config['stripe_api_key']);

        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
        $loader->load('services.yml');
    }
}


text:
/**
 * Simple Security Routing Application.
 */
package org.security.app;


text:
using System.Reflection;
using System.Runtime.InteropServices;
using System.Web;
using System.Web.UI;
using Telerik.Sitefinity.Less;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Telerik.Sitefinity.Less")]
[assembly: AssemblyDescription("The solution contains projects for compilation of LESS syntax to CSS styles.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Telerik")]
[assembly: AssemblyProduct("Telerik.Sitefinity.Less")]
[assembly: AssemblyCopyright("Copyright © 2005-2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Registers ModuleInstaller.PreApplicationStart() to be executed prior to the application start
[assembly: PreApplicationStartMethod(typeof(LessModuleInstaller), "PreApplicationStart")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components.  If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("5692e865-28fc-4804-9c50-746524d80896")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: WebResource("Telerik.Sitefinity.Less.Module.Web.Resources.CustomStylesKendoUIView.css", "text/css", PerformSubstitution = true)]
[assembly: WebResource("Telerik.Sitefinity.Less.Module.Web.Resources.paging.png", "image/gif")]


text:
namespace Com.Ericmas001.Userbase.Models.ServiceInterfaces
{
    public interface IValidationService
    {
        bool ValidateDisplayName(string displayName);
        bool ValidateEmail(string email);
        bool ValidatePassword(string password);
        bool ValidateUsername(string username);
    }
}


text:
module server {
    requires jakarta.xml.ws;
     requires jdk.httpserver;
      requires java.logging;

    // generated by WebServiceWrapperGenerator
    exports bugs.jaxws236.server.jaxws;
    exports bugs.jaxws236.server;
}


text:
fn main() {
    match val {
    ThisIsA::ReallyLongPatternNameToHelpOverflowTheNextValueOntoTheNextLine | ThisIsA::SecondValueSeparatedByAPipe | ThisIsA::ThirdValueSeparatedByAPipe => {
    //
    }
    }
}


text:
{% load forms %}

        <input class="enableddisable-widget__enabled" type="checkbox"{% if is_enabled %} checked{% endif %} name="{{name}}" data-bind="checked: enabled"> {{field.label}}
        {% if field.tooltip %}

        {% endif %}

        {% render_field field field_name field_value %}


text:
<!DOCTYPE html>

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, minimal-ui" />

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

        <gs-page>
            <gs-header>
Inputs:
</gs-header>
            <gs-body padded>
                <gs-button onclick="document.getElementsByTagName('gs-text')[testNum].focus(); testNum += 1;">Focus</gs-button>
                First Name:
                <gs-text defer-insert column="first_name"></gs-text>
                Last Name:
                <gs-text defer-insert column="last_name" id="2"></gs-text>
                <gs-form src="gsdoc.tpeople" where="id=2341">
                    <template>
                        First Name:
                        <gs-text defer-insert column="first_name"></gs-text>
                        Last Name:
                        <gs-text defer-insert column="last_name" id="2"></gs-text>
                    </template>
                </gs-form>

                <gs-datasheet src="gsdoc.tpeople" limit= "1" style="height: 5em;">
                    <template for="hud"></template>
                    <template for="table">

                                    <gs-static column="row_number"></gs-static>
                                    <gs-text defer-insert column="first_name"></gs-text>
                                    <gs-text defer-insert column="last_name"></gs-text>

                    </template>
                </gs-datasheet>

                <gs-envelope src="gsdoc.tpeople" limit= "1" style="height: 10em;">
                    <template for="hud"></template>
                    <template for="table">

                                    <gs-static column="row_number"></gs-static>
                                    <gs-text defer-insert column="first_name"></gs-text>
                                    <gs-text defer-insert column="last_name"></gs-text>

                    </template>
                </gs-envelope>
                <gs-table
                    id="test-table-2"
                    src="test.rtime_copy_datasheet"
                    pk="id"
                    ord="id ASC"
                    focus-on-load
                    style="width: 100%; height: 8em;"
                    limit= "1"
                >
                    <template for="header-record">
                        <gs-cell>id</gs-cell>
                        <gs-cell>user_name</gs-cell>
                        <gs-cell>cust_id</gs-cell>
                        <gs-cell>project_name</gs-cell>
                    </template>
                    <template for="data-record">
                        <gs-cell><gs-text defer-insert>{{! row.id }}</gs-text></gs-cell>
                        <gs-cell><gs-text defer-insert column="user_name">{{! row.user_name }}</gs-text></gs-cell>
                        <gs-cell><gs-text defer-insert column="cust_id">{{! row.cust_id }}</gs-text></gs-cell>
                        <gs-cell><gs-text defer-insert column="project_name">{{! row.project_name }}</gs-text></gs-cell>
                    </template>
                </gs-table>

                Month:
                <gs-text type="month" value="2019-06"></gs-text>

            </gs-body>
        </gs-page>


text:
package edu.uic.cs342.group7.rim;
import java.util.ArrayList;

public class Observer {
	private ArrayList<Dish> dishesOrdered = new ArrayList<Dish>();

	public void updateList(Dish dish){
		dishesOrdered.add(dish);
	}

	public void resetList(){
		dishesOrdered =  new ArrayList<Dish>();
	}

	public Dish removeLastAdded() {
	  int size = dishesOrdered.size();
	  return dishesOrdered.remove(size - 1);
	}

	public ArrayList<Dish> getDishesOrdered(){
		return dishesOrdered;
	}

}