text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical" android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:background="#2196F3"
              android:layout_weight="10"
              android:id="@+id/main">

    <TextView
            android:layout_width="wrap_content"
            android:layout_height="0dp"
            android:layout_gravity="center"
            android:gravity="center"
            android:paddingLeft="32dp"
            android:layout_weight="3"
            android:textColor="#fff"
            android:paddingRight="32dp"
            android:textSize="28sp"
            android:text="@string/welcome_title"/>

    <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="0dp"
            android:orientation="vertical"
            android:gravity="center"
            android:layout_weight="5">

        <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:paddingLeft="16dp"
                android:paddingRight="16dp"
                android:src="@drawable/flying_sms"/>
    </LinearLayout>
    <TextView
            android:layout_width="wrap_content"
            android:layout_height="0dp"
            android:layout_weight="3"
            android:layout_gravity="center"
            android:gravity="center"
            android:textColor="#fff"
            android:paddingLeft="64dp"
            android:paddingRight="64dp"
            android:textSize="16sp"
            android:text="@string/welcome_description"/>
    <TextView
            android:layout_width="fill_parent"
            android:layout_height="64dp" />
</LinearLayout>


text:
//  RectanglesWithStruct.cs  (c) 2004 Kari Laitinen

//  www.naturalprogramming.com

//  This program is like program Rectangles.cs except that
//  the keyword struct is used in place of the keyword
//  class when type Rectangle is defined.

using System ;

struct Rectangle
{
   int  rectangle_width ;
   int  rectangle_height ;
   char  filling_character ;

   public void initialize_rectangle( int  given_rectangle_width,
                                     int  given_rectangle_height,
                                     char given_filling_character )
   {
      rectangle_width    =  given_rectangle_width ;
      rectangle_height   =  given_rectangle_height ;
      filling_character  =  given_filling_character ;
   }

   public void print_rectangle()
   {
      for ( int number_of_rows_printed  =  0 ;
                number_of_rows_printed  <  rectangle_height ;
                number_of_rows_printed  ++ )
      {
         Console.Write( "\n      " ) ;

         for ( int number_of_characters_printed  =  0 ;
                   number_of_characters_printed  <  rectangle_width ;
                   number_of_characters_printed  ++ )
         {
            Console.Write( filling_character ) ;
         }
      }

      Console.Write( "\n" ) ;
   }
}

class RectanglesWithStruct
{
   static void Main()
   {
      Rectangle  first_rectangle  =  new Rectangle() ;

      first_rectangle.initialize_rectangle( 7, 4, 'Z' ) ;
      first_rectangle.print_rectangle() ;

      Rectangle  second_rectangle  =  new Rectangle() ;

      second_rectangle.initialize_rectangle( 12, 3, 'X' ) ;
      second_rectangle.print_rectangle() ;
   }
}

redpajama_set_name: RedPajamaGithub


text:
document.querySelectorAll('.ytd-playlist-panel-renderer #wc-endpoint').forEach(function(element){
    var href = element.getAttribute('href');
    // console.log(href);
    if (href) {
        var url_base = 'https://www.youtube.com';
        var url_string = url_base+href;
        // console.log(url_string);
        var url = new URL(url_string);
        var id = url.searchParams.get("v");
        // console.log(id);
        if(id){
            url_base+'/watch?v='+id;
            console.log(url_base+'/watch?v='+id);
        }
    }
})


text:
import arrayBufferToImage from './arrayBufferToImage.js';
import createImage from './createImage.js';
import { loadImage, configure } from './loadImage.js';
import { external } from './externalModules.js';

export {
  arrayBufferToImage,
  createImage,
  loadImage,
  configure,
  external
};


text:
package org.nedervold.grammareditor.models.views

import scala.swing.TextArea

import org.nedervold.grammareditor.models.adapters.DocumentAdapter

import javax.swing.JTextArea

/**
 * A TextArea that displays the value of a [[Model]][String]
 *
 * @author nedervold
 */
class DocumentView(override val model: DocumentAdapter) extends TextArea with View[String] {
    require(model != null)

    override lazy val peer: JTextArea = new JTextArea(model.document) with SuperMixin
    editable = false;
}


text:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--

 Copyright 2003 - 2015 The eFaps Team

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

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

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

-->
<ui-command xmlns="http://www.efaps.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.efaps.org/xsd http://www.efaps.org/xsd/eFaps_1.0.xsd">
    <uuid>381d0466-ab79-4bdb-8178-7721d1a2b38d</uuid>
    <file-application>eFapsApp-Payroll</file-application>
    <definition>
        <version-expression>(version==latest)</version-expression>
        <name>Payroll_PayslipMyDesk_Menu_Action_EditMassive</name>
        <access>
            <role>Payroll_Admin</role>
            <role>Payroll_Modifier</role>
        </access>
        <target>
            <form>Payroll_PayslipEditMassiveSelectForm</form>
            <validate program="org.efaps.esjp.payroll.Payslip" method="validateSelection4EditMassive"/>
            <command>Payroll_PayslipMyDesk_Menu_Action_EditMassive2</command>
        </target>
        <property name="Target">modal</property>
        <property name="TargetMode">create</property>
        <property name="WindowHeight">660</property>
        <property name="WindowWidth">1200</property>
        <property name="TargetDefaultMenu">none</property>
        <property name="TargetCmdRevise">true</property>
        <property name="Submit">true</property>
    </definition>
</ui-command>


text:
import { RejectTestQueryRawResponse } from "v2/__generated__/RejectTestQuery.graphql"
import { OfferOrderWithShippingDetails } from "v2/Apps/__tests__/Fixtures/Order"
import { StepSummaryItem } from "v2/Components/StepSummaryItem"
import { createTestEnv } from "v2/DevTools/createTestEnv"
import { DateTime } from "luxon"
import { commitMutation as _commitMutation, graphql } from "react-relay"
import {
  rejectOfferFailed,
  rejectOfferSuccess,
} from "../__fixtures__/MutationResults/rejectOffer"
import { RejectFragmentContainer } from "../Reject"
import { OrderAppTestPage } from "./Utils/OrderAppTestPage"

jest.mock("v2/Utils/getCurrentTimeAsIsoString")
const NOW = "2018-12-05T13:47:16.446Z"
require("v2/Utils/getCurrentTimeAsIsoString").__setCurrentTime(NOW)

jest.unmock("react-relay")
const realSetInterval = global.setInterval

const testOrder: RejectTestQueryRawResponse["order"] = {
  ...OfferOrderWithShippingDetails,
  stateExpiresAt: DateTime.fromISO(NOW).plus({ days: 1 }).toString(),
  lastOffer: {
    internalID: "last-offer-id",
    id: "last-offer-id",
    createdAt: DateTime.fromISO(NOW).minus({ days: 1 }).toString(),
  },
}

describe("Buyer rejects seller offer", () => {
  const { mutations, buildPage, routes } = createTestEnv({
    Component: RejectFragmentContainer,
    query: graphql`
      query RejectTestQuery @raw_response_type {
        order: commerceOrder(id: "unused") {
          ...Reject_order
        }
      }
    `,
    defaultData: {
      order: testOrder,
      system: {
        time: {
          unix: 222,
        },
      },
    },
    defaultMutationResults: {
      ...rejectOfferSuccess,
    },
    TestPage: OrderAppTestPage,
  })

  describe("the page layout", () => {
    let page: OrderAppTestPage
    beforeAll(async () => {
      global.setInterval = jest.fn()
      page = await buildPage({
        mockData: {
          order: {
            ...testOrder,
            stateExpiresAt: DateTime.fromISO(NOW)
              .plus({ days: 1, hours: 4, minutes: 22, seconds: 59 })
              .toString(),
          },
        },
      })
    })

    afterAll(() => {
      global.setInterval = realSetInterval
    })

    it("Shows the countdown timer", () => {
      expect(page.countdownTimer.text()).toContain("01d 04h 22m 59s left")
    })

    it("Shows the stepper", () => {
      expect(page.orderStepper.text()).toMatchInlineSnapshot(
        `"CheckRespondNavigate rightReview"`
      )
      expect(page.orderStepperCurrentStep).toBe("Review")
    })

    it("Shows a message explaining the consequences of a rejection", () => {
      expect(page.find(StepSummaryItem).text()).toContain(
        "Declining an offer permanently ends the negotiation process."
      )
    })

    it("Shows a change link that takes the user back to the respond page", () => {
      page.root.find("StepSummaryItem a").simulate("click")
      expect(routes.mockPushRoute).toHaveBeenCalledWith(
        `/orders/${testOrder.internalID}/respond`
      )
    })
  })

  describe("taking action", () => {
    let page: OrderAppTestPage
    beforeEach(async () => {
      global.setInterval = jest.fn()
      page = await buildPage()
    })

    afterAll(() => {
      global.setInterval = realSetInterval
    })

    it("routes to status page after mutation completes", async () => {
      await page.clickSubmit()
      expect(routes.mockPushRoute).toHaveBeenCalledWith(
        `/orders/${testOrder.internalID}/status`
      )
    })

    it("shows the button spinner while loading the mutation", async () => {
      await page.expectButtonSpinnerWhenSubmitting()
    })

    it("shows an error modal when there is an error from the server", async () => {
      mutations.useResultsOnce(rejectOfferFailed)
      await page.clickSubmit()
      await page.expectAndDismissDefaultErrorDialog()
    })

    it("shows an error modal when there is a network error", async () => {
      mutations.mockNetworkFailureOnce()
      await page.clickSubmit()
      await page.expectAndDismissDefaultErrorDialog()
    })
  })
})


text:
package model

import (
	"encoding/json"
	"fmt"
	"regexp"
	"strings"
)

const (
	// ExportedLabelPrefix is the prefix to prepend to the label names present in
	// exported metrics if a label of the same name is added by the server.
	ExportedLabelPrefix LabelName = "exported_"

	// MetricNameLabel is the label name indicating the metric name of a
	// timeseries.
	MetricNameLabel LabelName = "__name__"

	// AddressLabel is the name of the label that holds the address of
	// a scrape target.
	AddressLabel LabelName = "__address__"

	// MetricsPathLabel is the name of the label that holds the path on which to
	// scrape a target.
	MetricsPathLabel LabelName = "__metrics_path__"

	// ReservedLabelPrefix is a prefix which is not legal in user-supplied
	// label names.
	ReservedLabelPrefix = "__"

	// MetaLabelPrefix is a prefix for labels that provide meta information.
	// Labels with this prefix are used for intermediate label processing and
	// will not be attached to time series.
	MetaLabelPrefix = "__meta_"

	// JobLabel is the label name indicating the job from which a timeseries
	// was scraped.
	JobLabel LabelName = "job"

	// InstanceLabel is the label name used for the instance label.
	InstanceLabel LabelName = "instance"

	// BucketLabel is used for the label that defines the upper bound of a
	// bucket of a histogram ("le" -> "less or equal").
	BucketLabel = "le"

	// QuantileLabel is used for the label that defines the quantile in a
	// summary.
	QuantileLabel = "quantile"
)

// LabelNameRE is a regular expression matching valid label names.
var LabelNameRE = regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9_]*$")

// A LabelName is a key for a LabelSet or Metric.  It has a value associated
// therewith.
type LabelName string

// UnmarshalYAML implements the yaml.Unmarshaler interface.
func (ln *LabelName) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var s string
	if err := unmarshal(&s); err != nil {
		return err
	}
	if !LabelNameRE.MatchString(s) {
		return fmt.Errorf("%q is not a valid label name", s)
	}
	*ln = LabelName(s)
	return nil
}

// UnmarshalJSON implements the json.Unmarshaler interface.
func (ln *LabelName) UnmarshalJSON(b []byte) error {
	var s string
	if err := json.Unmarshal(b, &s); err != nil {
		return err
	}
	if !LabelNameRE.MatchString(s) {
		return fmt.Errorf("%q is not a valid label name", s)
	}
	*ln = LabelName(s)
	return nil
}

// LabelNames is a sortable LabelName slice. In implements sort.Interface.
type LabelNames []LabelName

func (l LabelNames) Len() int {
	return len(l)
}

func (l LabelNames) Less(i, j int) bool {
	return l[i] < l[j]
}

func (l LabelNames) Swap(i, j int) {
	l[i], l[j] = l[j], l[i]
}

func (l LabelNames) String() string {
	labelStrings := make([]string, 0, len(l))
	for _, label := range l {
		labelStrings = append(labelStrings, string(label))
	}
	return strings.Join(labelStrings, ", ")
}


text:
package org.usfirst.frc.team6584.robot;

import edu.wpi.first.wpilibj.CameraServer;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
import org.usfirst.frc.team6584.robot.commands.AutoMove;
import org.usfirst.frc.team6584.robot.commands.AutoMoveToDistance;
import org.usfirst.frc.team6584.robot.commands.AutoSwerve;
import org.usfirst.frc.team6584.robot.subsystems.DriveTrain;
import org.usfirst.frc.team6584.robot.subsystems.RollyPolly;

import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

/**
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the IterativeRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 */
public class Robot extends IterativeRobot {

	public static final DriveTrain drivetrain = new DriveTrain();
	public static OI oi;
	public static final RollyPolly winch =new RollyPolly();

    Command autonomousCommand;
    SendableChooser chooser;

    /**
     * This function is run when the robot is first started up and should be
     * used for any initialization code.
     */
    public void robotInit() {
		oi = new OI();
        chooser = new SendableChooser();
        chooser.addDefault("Do Nothing", new AutoMove(0.0, 0.0));
        chooser.addObject("Move 2 Peg", new AutoMoveToDistance(1.0, 108.0));
        chooser.addObject("2016memes", new AutoSwerve(1.0,90.0));
        chooser.addObject("Move 2 Base", new AutoMoveToDistance(1.0,117.6));

        SmartDashboard.putData("Auto mode", chooser);
        SmartDashboard.putData(drivetrain);

        CameraServer.getInstance().startAutomaticCapture(0);
        CameraServer.getInstance().startAutomaticCapture(1);
    }

	/**
     * This function is called once each time the robot enters Disabled mode.
     * You can use it to reset any subsystem information you want to clear when
	 * the robot is disabled.
     */
    public void disabledInit(){

    }

	public void disabledPeriodic() {
		Scheduler.getInstance().run();

	 drivetrain.SendToDashboard();
	}

	/**
	 * This autonomous (along with the chooser code above) shows how to select between different autonomous modes
	 * using the dashboard. The sendable chooser code works with the Java SmartDashboard. If you prefer the LabVIEW
	 * Dashboard, remove all of the chooser code and uncomment the getString code to get the auto name from the text box
	 * below the Gyro
	 *
	 * You can add additional auto modes by adding additional commands to the chooser code above (like the commented example)
	 * or additional comparisons to the switch structure below with additional strings & commands.
	 */
    public void autonomousInit() {
        autonomousCommand = (Command) chooser.getSelected();

		/* String autoSelected = SmartDashboard.getString("Auto Selector", "Default");
		switch(autoSelected) {
		case "My Auto":
			autonomousCommand = new MyAutoCommand();
			break;
		case "Default Auto":
		default:
			autonomousCommand = new ExampleCommand();
			break;
		} */

    	// schedule the autonomous command (example)
        if (autonomousCommand != null) autonomousCommand.start();
    }

    /**
     * This function is called periodically during autonomous
     */
    public void autonomousPeriodic() {
        Scheduler.getInstance().run();
        drivetrain.SendToDashboard();
    }

    public void teleopInit() {
		// This makes sure that the autonomous stops running when
        // teleop starts running. If you want the autonomous to
        // continue until interrupted by another command, remove
        // this line or comment it out.
        if (autonomousCommand != null) autonomousCommand.cancel();
    }

    /**
     * This function is called periodically during operator control
     */
    public void teleopPeriodic() {
        Scheduler.getInstance().run();
        drivetrain.SendToDashboard();
    }

    /**
     * This function is called periodically during test mode
     */
    public void testPeriodic() {
        LiveWindow.run();
    }
}


text:
using System;
using System.IO;
using System.Threading.Tasks;
using Dependinator.Common;
using Dependinator.Common.MessageDialogs;
using Dependinator.Common.ModelMetadataFolders;
using Dependinator.Common.ProgressHandling;
using Dependinator.ModelViewing.Private.DataHandling;
using Dependinator.ModelViewing.Private.DataHandling.Dtos;
using Dependinator.Utils.ErrorHandling;
using DependinatorApi;
using DependinatorApi.ApiHandling;

namespace Dependinator.ModelViewing.Private.CodeViewing.Private
{
    internal class CodeViewService : ICodeViewService
    {
        private readonly Func<NodeName, Source, Func<Task<M<Source>>>, CodeDialog> codeDialogProvider;
        private readonly IDataService dataService;
        private readonly IProgressService progressService;
        private readonly IMessage message;
        private readonly ModelMetadata modelMetadata;

        public CodeViewService(
            IDataService dataService,
            IProgressService progressService,
            IMessage message,
            Func<NodeName, Source, Func<Task<M<Source>>>, CodeDialog> codeDialogProvider,
            ModelMetadata modelMetadata)
        {
            this.dataService = dataService;
            this.progressService = progressService;
            this.message = message;
            this.codeDialogProvider = codeDialogProvider;
            this.modelMetadata = modelMetadata;
        }

        public async Task ShowCodeAsync(NodeName nodeName)
        {
            Source source = null;
            ModelPaths modelPaths = modelMetadata.ModelPaths;
            M<Source> result;

            using (progressService.ShowDialog("Getting source code.."))
            {
               result = await dataService.TryGetSourceAsync(modelPaths, nodeName);

                if (result.HasValue(out source))
                {
                    if (source.Path != null && File.Exists(source.Path))
                    {
                        if (TryOpenInVisualStudio(modelPaths, source))
                        {
                            return;
                        }

                        // Lets show the file in "our" code viewer
                        string fileText = File.ReadAllText(source.Path);
                        source = new Source(source.Path, fileText, source.LineNumber);
                    }
                }
            }

            if (result.IsFaulted)
            {
                if (result.Error == M.NoValue)
                {
                    message.ShowInfo($"No source available for {nodeName}");
                }
                else
                {
                    message.ShowWarning($"Error while showing code for:\n{nodeName}\n\n{result.ErrorMessage}");
                }
                return;
            }

            CodeDialog codeDialog = codeDialogProvider(
                nodeName, source, () => dataService.TryGetSourceAsync(modelPaths, nodeName));
            codeDialog.Show();
        }

        private static bool TryOpenInVisualStudio(ModelPaths modelPaths, Source source)
        {
            string solutionPath = modelPaths.ModelPath;
            string serverName = ApiServerNames.ServerName<IVsExtensionApi>(solutionPath);

            if (!ApiIpcClient.IsServerRegistered(serverName)) return false;

            using (ApiIpcClient apiIpcClient = new ApiIpcClient(serverName))
            {
                apiIpcClient.Service<IVsExtensionApi>().ShowFile(source.Path, source.LineNumber);
                apiIpcClient.Service<IVsExtensionApi>().Activate();
            }

            return true;
        }
    }
}


text:
var GraphPkg = {};
(function() {
	////////////////////
	//edge definition //
	////////////////////

	GraphPkg.jsEdge = function(edgeKey, edgeWeight) {
		this.edgeType = 'undirected';
		this.origin = null;
		this.destination = null;
		this.edgeKey = edgeKey;
		this.edgeWeight = edgeWeight;
		this.visited = false;
	};

	GraphPkg.jsEdge.prototype.getOpposite = function(vert) {
		if (vert === this.destination) {
			return this.origin;
		} else {
			return this.destination;
		}
	};

	GraphPkg.jsEdge.prototype.getOrigin = function() {
		return this.origin;
	};

	GraphPkg.jsEdge.prototype.setOrigin = function(origin) {
		this.origin = origin;
	};

	GraphPkg.jsEdge.prototype.getDestination = function() {
		return this.destination;
	};

	GraphPkg.jsEdge.prototype.setDestination = function(destination) {
		this.destination = destination;
	};

	GraphPkg.jsEdge.prototype.getKey = function() {
		return this.edgeKey;
	};

	GraphPkg.jsEdge.prototype.setKey = function(data) {
		this.edgeKey = data;
	};

	GraphPkg.jsEdge.prototype.getWeight = function() {
		return this.edgeWeight;
	};

	GraphPkg.jsEdge.prototype.setWeight = function(data) {
		this.edgeWeight = data;
	};

	GraphPkg.jsEdge.prototype.visited = function() {
		return this.visited;
	};

	GraphPkg.jsEdge.prototype.setVisited = function(bool) {
		this.visited = bool;
	};

	///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	//vertex definition. ... Spinning, cycling, channeling closer and closer together, all mass converging into a single point, my life, circling around a transparent sphere, a flat circle, a captain, taking his ship across the Atlantic, only to find his home on the other side, a captain, taking his boat across the Atlantic, only to give up and turn around three-quarters of the way there, a captain, taking his canoe across the marsh of dead trees, finding a woman there, tied to the branch of a weeping willow, she asks what he is doing there, and he says he is stuck in a vortex, oh, well, i suppose we all are, aren't we, a captain, talking to his wife in bed, was it thirteen years ago, before he left to Atlantic.  //
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	GraphPkg.jsVertex = function(vertKey, vertData) {

		this.vertKey = vertKey;
		this.vertData = vertData;
		this.incidentEdges = {};
		this.outgoingEdges = {};
		this.incidentEdgeCounter = 0;
		this.outgoingEdgeCounter = 0;

	};

	GraphPkg.jsVertex.prototype.getKey = function() {
		return this.vertKey;
	};

	GraphPkg.jsVertex.prototype.getData = function() {
		return this.vertData;
	};

	GraphPkg.jsVertex.prototype.setData = function(newData) {
		this.vertKey = newData;
	};

	GraphPkg.jsVertex.prototype.getIncidentEdges = function() {
		return this.incidentEdges;
	};

	GraphPkg.jsVertex.prototype.insertIncidentEdge = function(edge) {
		this.incidentEdges[edge.getKey().toString()] = edge;
		this.incidentEdgeCounter++;
	};

	GraphPkg.jsVertex.prototype.removeIncidentEdge = function(edge) {
		delete this.incidentEdges[edge.getKey().toString()];
		this.incidentEdgeCounter--;
	};

	GraphPkg.jsVertex.prototype.clearIncidentEdges = function() {
		var tempEdges = this.incidentEdges;
		this.incidentEdges = {};
		this.incidentEdgeCounter = 0;
		return tempEdges;
	};

	GraphPkg.jsVertex.prototype.getNumberOfIncidentEdges = function() {
		return this.incidentEdgeCounter;
	};

	GraphPkg.jsVertex.prototype.getOutgoingEdges = function() {
		return this.outgoingEdges;
	};

	GraphPkg.jsVertex.prototype.insertOutgoingEdge = function(edge) {
		this.outgoingEdges[edge.getKey().toString()] = edge;
		this.outgoingEdgeCounter++;
	};

	GraphPkg.jsVertex.prototype.removeOutgoingEdge = function(edge) {
		delete this.outgoingEdges[edge.getKey().toString()];
		this.outgoingEdgeCounter--;
	};

	GraphPkg.jsVertex.prototype.clearOutgoingEdges = function() {
		var tempEdges = this.outgoingEdges;
		this.outgoingEdges = {};
		this.outgoingEdgeCounter = 0;
		return tempEdges;
	};

	GraphPkg.jsVertex.prototype.getNumberOfOutgoingEdges = function() {
		return this.outgoingEdgeCounter;
	};

	//////////////////////
	// graph contructor //
	/////////////////////

	GraphPkg.jsGraph = function() {

		this.graphVerts = {};
		this.graphEdges = {};
		this.altEdgeKeys = {};
	};

	GraphPkg.jsGraph.prototype.vertices = function() {
		return this.graphVerts;
	};

	GraphPkg.jsGraph.prototype.getVertex = function(key) {
		return this.graphVerts[key.toString()];
	};

	GraphPkg.jsGraph.prototype.getEdge = function(key) {
		return this.graphEdges[key.toString()];
	};

	GraphPkg.jsGraph.prototype.getConnectingEdge = function(v1, v2) {
		var key = this.altEdgeKeys[v1.getKey() + v2.getKey()];
		return this.graphEdges[key];
	};

	GraphPkg.jsGraph.prototype.edges = function() {
		return this.graphEdges;
	};

	GraphPkg.jsGraph.prototype.incidentEdges = function(vertex) {
		return vertex.getIncidentEdges();
	};

	GraphPkg.jsGraph.prototype.outgoingEdges = function(vertex) {
		return vertex.getOutgoingEdges();
	};

	GraphPkg.jsGraph.prototype.getNumberOfIncidentEdges = function(vertex) {
		return vertex.getNumberOfIncidentEdges();
	};

	GraphPkg.jsGraph.prototype.getNumberOfOutgoingEdges = function(vertex) {
		return vertex.getNumberOfOutgoingEdges();
	};

	GraphPkg.jsGraph.prototype.areAdjacent = function(v1, v2) {
		return this.getConnectingEdge(v1, v2) !== undefined;
	};

	GraphPkg.jsGraph.prototype.endVertices = function(edge) {
		var endVerts = [];
		endVerts.push(edge.getOrigin());
		endVerts.push(edge.getDestination());
		return endVerts;
	};

	GraphPkg.jsGraph.prototype.opposite = function(vertex, edge) {
		if (edge.getOrigin.getKey() === vertex.getKey()) {
			return edge.getDestination();
		} else {
			return edge.getOrigin();
		}
	};

	GraphPkg.jsGraph.prototype.insertVertex = function(vertex) {
		this.graphVerts[vertex.getKey().toString()] = vertex;
	};

	GraphPkg.jsGraph.prototype.insertEdge = function(v1, v2, edge) {
		edge.edgeType = 'directed';
		edge.setOrigin(v1);
		edge.setDestination(v2);
		v1.insertOutgoingEdge(edge);
		v2.insertIncidentEdge(edge);
		this.graphEdges[edge.getKey().toString()] = edge;
		this.altEdgeKeys[v1.getKey() + v2.getKey()] = edge.getKey().toString();
		this.altEdgeKeys[v2.getKey() + v1.getKey()] = edge.getKey().toString();

	};

	GraphPkg.jsGraph.prototype.insertUndirectedEdge = function(v1, v2, edge) {
		edge.edgeType = 'undirected';
		edge.setOrigin(v1);
		edge.setDestination(v2);
		v1.insertOutgoingEdge(edge);
		v1.insertIncidentEdge(edge);

		v2.insertIncidentEdge(edge);
		v2.insertOutgoingEdge(edge);
		this.graphEdges[edge.getKey().toString()] = edge;
		this.altEdgeKeys[v1.getKey() + v2.getKey()] = edge.getKey().toString();
		this.altEdgeKeys[v2.getKey() + v1.getKey()] = edge.getKey().toString();
	};

	GraphPkg.jsGraph.prototype.removeVertex = function(vertex) {
		var inEdges = vertex.clearIncidentEdges();
		for (var edge in inEdges) {
			if (inEdges.hasOwnProperty(edge)) {
				if (inEdges[edge].edgeType === 'directed') {
					this.removeEdge(inEdges[edge]);
				} else {
					this.removeUndirectedEdge(inEdges[edge]);
				}
			}
		}
		var outEdges = vertex.clearOutgoingEdges();
		for (var edgey in outEdges) {
			if (outEdges.hasOwnProperty(edgey)) {
				if (outEdges[edgey].edgeType === 'directed') {
					this.removeEdge(outEdges[edgey]);
				} else {
					this.removeUndirectedEdge(outEdges[edgey]);
				}
			}
		}
		delete this.graphVerts[vertex.getKey().toString()];
	};

	GraphPkg.jsGraph.prototype.removeEdge = function(edge) {
		var v1 = edge.getOrigin();
		var v2 = edge.getDestination();
		v1.removeOutgoingEdge(edge);
		v2.removeIncidentEdge(edge);
		delete this.graphEdges[edge.getKey().toString()];
		delete this.altEdgeKeys[v1.getKey() + v2.getKey()];
		delete this.altEdgeKeys[v2.getKey() + v1.getKey()];
	};

	GraphPkg.jsGraph.prototype.removeUndirectedEdge = function(edge) {
		var v1 = edge.getOrigin();
		var v2 = edge.getDestination();
		v1.removeOutgoingEdge(edge);
		v1.removeIncidentEdge(edge);
		v2.removeOutgoingEdge(edge);
		v2.removeIncidentEdge(edge);
		delete this.graphEdges[edge.getKey().toString()];
		delete this.altEdgeKeys[v1.getKey() + v2.getKey()];
		delete this.altEdgeKeys[v2.getKey() + v1.getKey()];
	};

}());


text:
module VmOrTemplate::Operations::Power
  def raw_start
    raise NotImplementedError, _("must be implemented in a subclass")
  end

  def start_queue
    run_command_via_queue("raw_start")
  end

  def start
    check_policy_prevent(:request_vm_start, :start_queue)
  end

  def raw_stop
    raise NotImplementedError, _("must be implemented in a subclass")
  end

  def stop_queue
    run_command_via_queue("raw_stop")
  end

  def stop
    check_policy_prevent(:request_vm_poweroff, :stop_queue)
  end

  # Suspend saves the state of the VM to disk and shuts it down
  def raw_suspend
    raise NotImplementedError, _("must be implemented in a subclass")
  end

  def suspend_queue
    run_command_via_queue("raw_suspend")
  end

  def suspend
    check_policy_prevent(:request_vm_suspend, :suspend_queue)
  end

  # All associated data and resources are kept but anything still in memory is not retained.
  def raw_shelve
    raise NotImplementedError, _("must be implemented in a subclass")
  end

  def shelve_queue
    run_command_via_queue("raw_shelve")
  end

  def shelve
    check_policy_prevent(:request_vm_shelve, :shelve_queue)
  end

  # Has to be in shelved state first. Data and resource associations are deleted.
  def raw_shelve_offload
    raise NotImplementedError, _("must be implemented in a subclass")
  end

  def shelve_offload_queue
    run_command_via_queue("raw_shelve_offload")
  end

  def shelve_offload
    check_policy_prevent(:request_vm_shelve_offload, :shelve_offload_queue)
  end

  # Pause keeps the VM in memory but does not give it CPU cycles.
  # Not supported in VMware, so it is the same as suspend
  def raw_pause
    raise NotImplementedError, _("must be implemented in a subclass")
  end

  def pause_queue
    run_command_via_queue("raw_pause")
  end

  def pause
    check_policy_prevent(:request_vm_pause, :pause_queue)
  end
end


text:
from .models import *  # NOQA
from .views import *  # NOQA


text:
using System.Linq;
using Elasticsearch.Net;
using FluentAssertions;
using Nest.Tests.MockData;
using Nest.Tests.MockData.Domain;
using NUnit.Framework;

namespace Nest.Tests.Integration.Search
{
	[TestFixture]
	public class PercolateTests : IntegrationTests
	{
		private string _LookFor = NestTestData.Data.First().Followers.First().FirstName;

		[Test]
		public void RegisterPercolateTest()
		{
			var name = "mypercolator";
			var c = this._client;
			var r = c.RegisterPercolator<ElasticsearchProject>(name, p => p
				.Query(q => q
					.Term(f => f.Name, "elasticsearch.pm")
				)
			);
			Assert.True(r.IsValid);
			Assert.True(r.Created);
			Assert.AreEqual(r.Index, ElasticsearchConfiguration.DefaultIndex);
			Assert.AreEqual(r.Type, ".percolator");
			Assert.AreEqual(r.Id, name);
			Assert.Greater(r.Version, 0);
			var request = r.ConnectionStatus.Request.Utf8String();
			request.Should().NotBeNullOrEmpty().And.NotBe("{}");

		}
		[Test]
		public void UnregisterPercolateTest()
		{
			var name = "mypercolator";
			var c = this._client;
			var r = c.RegisterPercolator<ElasticsearchProject>(name, p => p
				.AddMetadata(md=>md.Add("color", "blue"))
				.Query(q => q
					.Term(f => f.Name, "elasticsearch.pm")
				)
			);
			Assert.True(r.IsValid);
			Assert.True(r.Created);
			Assert.AreEqual(r.Index, ElasticsearchConfiguration.DefaultIndex);
			Assert.AreEqual(r.Id, name);
			Assert.Greater(r.Version, 0);

			var re = c.UnregisterPercolator(name, ur=>ur.Index<ElasticsearchProject>());
			Assert.True(re.IsValid);
			Assert.True(re.Found);
			Assert.AreEqual(re.Index, ElasticsearchConfiguration.DefaultIndex);
			Assert.AreEqual(re.Type, ".percolator");
			Assert.AreEqual(re.Id, name);
			Assert.Greater(re.Version, 0);
			re = c.UnregisterPercolator(name, ur=>ur.Index<ElasticsearchProject>());
			Assert.True(re.IsValid);
			Assert.False(re.Found);
		}

		[Test]
		public void PercolateDoc()
		{
			this.RegisterPercolateTest(); // I feel a little dirty.
			var c = this._client;
			var name = "mypercolator";
			var r = c.Percolate<ElasticsearchProject>(new ElasticsearchProject()
			{
				Name = "elasticsearch.pm",
				Country = "netherlands",
				LOC = 100000, //Too many :(
			}, p=>p.Index<ElasticsearchProject>());
			Assert.True(r.IsValid);
			Assert.NotNull(r.Matches);
			Assert.True(r.Matches.Select(m=>m.Id).Contains(name));
			var re = c.UnregisterPercolator(name, ur=>ur.Index<ElasticsearchProject>());
		}
		[Test]
		public void PercolateTypedDoc()
		{
			this.RegisterPercolateTest(); // I feel a little dirty.
			var c = this._client;
			var name = "eclecticsearch";
			var r = c.RegisterPercolator<ElasticsearchProject>(name, p => p
				 .Query(q => q
					.Term(f => f.Country, "netherlands")
				 )
			 );
			Assert.True(r.IsValid);
			Assert.True(r.Created);
			var obj = new ElasticsearchProject()
			{
				Name = "NEST",
				Country = "netherlands",
				LOC = 100000, //Too many :(
			};
			var percolateResponse = this._client.Percolate(obj);
			Assert.True(percolateResponse.IsValid);
			Assert.NotNull(percolateResponse.Matches);
			Assert.True(percolateResponse.Matches.Select(m=>m.Id).Contains(name));

			var re = c.UnregisterPercolator(name, ur=>ur.Index<ElasticsearchProject>());
		}
		[Test]
		public void PercolateTypedDocWithQuery()
		{
			var c = this._client;
			var name = "eclecticsearch" + ElasticsearchConfiguration.NewUniqueIndexName();
			var re = c.UnregisterPercolator(name, ur=>ur.Index<ElasticsearchProject>());
			var r = c.RegisterPercolator<ElasticsearchProject>(name, p => p
				 .AddMetadata(md=>md.Add("color", "blue"))
				 .Query(q => q
					.Term(f => f.Country, "netherlands")
				 )
			 );
			Assert.True(r.IsValid);
			Assert.True(r.Created);
			c.Refresh();
			var obj = new ElasticsearchProject()
			{
				Name = "NEST",
				Country = "netherlands",
				LOC = 100000, //Too many :(
			};
			var percolateResponse = this._client.Percolate(obj,p => p.Query(q=>q.Match(m=>m.OnField("color").Query("blue"))));
			Assert.True(percolateResponse.IsValid);
			Assert.NotNull(percolateResponse.Matches);
			Assert.True(percolateResponse.Matches.Select(m=>m.Id).Contains(name));

			//should not match since we registered with the color blue
			percolateResponse = this._client.Percolate(obj, p => p.Query(q => q.Term("color", "green")));
			Assert.True(percolateResponse.IsValid);
			Assert.NotNull(percolateResponse.Matches);
			Assert.False(percolateResponse.Matches.Select(m=>m.Id).Contains(name));

			var countPercolateReponse = this._client.PercolateCount(obj,p => p
				.Query(q=>q.Match(m=>m.OnField("color").Query("blue")))
			);
			countPercolateReponse.IsValid.Should().BeTrue();
			countPercolateReponse.Total.Should().Be(1);
			re = c.UnregisterPercolator(name, ur=>ur.Index<ElasticsearchProject>());

		}
	}
}


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.baidu.maptest"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="21" />

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" >
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" >
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" >
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" >
    </uses-permission>
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" >
    </uses-permission>
    <uses-permission android:name="android.permission.READ_PHONE_STATE" >
    </uses-permission>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" >
    </uses-permission>
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" >
    </uses-permission>
    <uses-permission android:name="android.permission.READ_LOGS" >
    </uses-permission>
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <meta-data
            android:name="com.baidu.lbsapi.API_KEY"
            android:value="hwfyQkowKNsesDUPXwL3hcdSic1x4QtA" />

        <service
            android:name="com.baidu.location.f"
            android:enabled="true"
            android:process=":remote" >
        </service>

        <activity
            android:name="com.baidu.maptest.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>


text:
function formatTime(date) {
  var year = date.getFullYear()
  var month = date.getMonth() + 1
  var day = date.getDate()

  var hour = date.getHours()
  var minute = date.getMinutes()
  var second = date.getSeconds()

  return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
}

function formatNumber(n) {
  n = n.toString()
  return n[1] ? n : '0' + n
}

// 传入两个参数
/*
  @ startTime string 开始时间  eg:"2017-09-05"
  @ duration string 间隔 eg:"15"
*/
function convertTime (startTime,duration){
  const time = new Date(startTime).getTime() + Number.parseInt(duration) * 24 * 3600 * 1000
  return formatTime(new Date(time)).split(" ")[0]
}
module.exports = {
  formatTime: formatTime,
  convertTime: convertTime
}


text:
<?php
namespace Procure\Application\DTO\Qr;

use Procure\Domain\QuotationRequest\QRSnapshot;

/**
 *
 * @author Nguyen Mau Tri - ngmautri@gmail.com
 *
 */
class QrDetailsDTO extends QRSnapshot
{
}


text:
@interface JHURLAnalyseDetailViewController ()

@property (nonatomic, strong) UIScrollView* scrollView;

@property (nonatomic, copy) NSString *requestUrl;

@end

@implementation JHURLAnalyseDetailViewController

- (instancetype)init
{
    self = [super init];
    if (self) {
        _urlInfo = [NSDictionary dictionary];
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = @"URL 详细信息";
    self.view.backgroundColor = [UIColor whiteColor];

    [self setBarButtonItem];

    [self createUrlInfoView];

}

- (void)setBarButtonItem
{
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithTitle:@"嘿嘿嘿" style:UIBarButtonItemStylePlain target:self action:@selector(rightBarButtonDidClicked)];
    self.navigationItem.rightBarButtonItem = rightItem;
}

#pragma mark 嘿嘿嘿是为了copy
- (void)rightBarButtonDidClicked
{

    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"嘿嘿嘿" message:@"select" preferredStyle:UIAlertControllerStyleActionSheet];

    UIAlertAction *alert1 = [UIAlertAction actionWithTitle:@"cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {

    }];

    UIAlertAction *alert2 = [UIAlertAction actionWithTitle:@"copy url" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        //使用粘贴板功能copy url
        UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard];
        [pasteBoard setString:self.requestUrl];
    }];

    [alertController addAction:alert1];
    [alertController addAction:alert2];
    [self.navigationController presentViewController:alertController animated:YES completion:nil];
}

- (void)createUrlInfoView
{
    if (_scrollView) {
        return;
    }
    _scrollView = [[UIScrollView alloc] initWithFrame:self.view.frame];
    [self.view addSubview:_scrollView];

    //request内容
    NSMutableString *requestString = [NSMutableString stringWithFormat:@"Request:\n\n"];
    [requestString appendFormat:@"URL:\n%@\n\n",_urlInfo[JHUrlRequestUrl]];
    [requestString appendFormat:@"HttpBody:\n%@\n\n",_urlInfo[JHUrlRequestHttpBody]];
    [requestString appendFormat:@"HeaderFields:\n"];
    if ([_urlInfo[JHUrlRequestHttpHeaderFields] isKindOfClass:[NSDictionary class]]) {
        NSDictionary *headerFields = _urlInfo[JHUrlRequestHttpHeaderFields];
        [headerFields enumerateKeysAndObjectsUsingBlock:^(id  _Nonnull key, id  _Nonnull obj, BOOL * _Nonnull stop) {
            [requestString appendFormat:@"%@ : %@\n",key, obj];
        }];
    }

    UILabel *requestLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 20, self.view.frame.size.width - 30, 0)];
//    requestLabel.backgroundColor = [UIColor redColor];
    requestLabel.text = requestString;
    requestLabel.numberOfLines = 0;
    [requestLabel sizeToFit];
    [_scrollView addSubview:requestLabel];

    //划线
    CGRect lineFrame = CGRectMake(requestLabel.frame.origin.x, requestLabel.frame.origin.y + requestLabel.frame.size.height + 10, [UIScreen mainScreen].bounds.size.width - 30, 1);
    [self createLineViewWithFrame:lineFrame];

    //response内容
    NSMutableString *responseString = [NSMutableString stringWithFormat:@"Response:\n\n"];
    [responseString appendFormat:@"URL:\n%@\n\n",_urlInfo[JHUrlResponseUrl]];
    [responseString appendFormat:@"HttpBody:\n%@\n\n",_urlInfo[JHUrlResponseHttpBody]];
    [responseString appendFormat:@"HttpMethod:%@\n\nStatusCode:%@\n\n",_urlInfo[JHUrlRequestHttpMethod],_urlInfo[JHUrlRequestStatusCode]];
    [responseString appendFormat:@"Responsetime:\n%@\n\n",_urlInfo[JHUrlResponseTime]];
    [responseString appendFormat:@"MIMEType:\n%@\n\n",_urlInfo[JHUrlResponseMIMEType]];
    [responseString appendFormat:@"HeaderFields:\n"];

    if ([_urlInfo[JHUrlRequestHttpHeaderFields] isKindOfClass:[NSDictionary class]]) {
        NSDictionary *headerFields = _urlInfo[JHUrlRequestHttpHeaderFields];
        [headerFields enumerateKeysAndObjectsUsingBlock:^(id  _Nonnull key, id  _Nonnull obj, BOOL * _Nonnull stop) {
            [responseString appendFormat:@"%@ : %@\n",key, obj];
        }];
    }

    UILabel *responseLabel = [[UILabel alloc] initWithFrame:CGRectMake(lineFrame.origin.x, lineFrame.origin.y + lineFrame.size.height + 10, lineFrame.size.width, 0)];
//    responseLabel.backgroundColor = [UIColor blueColor];
    responseLabel.text = responseString;
    responseLabel.numberOfLines = 0;
    [responseLabel sizeToFit];
    [_scrollView addSubview:responseLabel];

    _scrollView.contentSize = CGSizeMake(self.view.frame.size.width, responseLabel.frame.origin.y + responseLabel.frame.size.height + 20);

}

#pragma mark 分割线
- (void)createLineViewWithFrame:(CGRect)frame
{
    UILabel *line = [[UILabel alloc] initWithFrame:frame];
    line.backgroundColor = [UIColor blackColor];
    [self.scrollView addSubview:line];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end


text:
@implementation CALayer (PauseAimate)

- (void)pauseAnimate
{
    CFTimeInterval pausedTime = [self convertTime:CACurrentMediaTime() fromLayer:nil];
    self.speed = 0.0;
    self.timeOffset = pausedTime;
}

- (void)resumeAnimate
{
    CFTimeInterval pausedTime = [self timeOffset];
    self.speed = 1.0;
    self.timeOffset = 0.0;
    self.beginTime = 0.0;
    CFTimeInterval timeSincePause = [self convertTime:CACurrentMediaTime() fromLayer:nil] - pausedTime;
    self.beginTime = timeSincePause;
}

@end


text:
SYNONYM

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

#### Published in
Fungal Science, Taipei 11(3, 4): 91 (1996)

#### Original name
Boletus cervinus Schwein., 1822

### Remarks
null


text:
project_path: /web/_project.yaml
book_path: /web/updates/_book.yaml
description: Reducing Chrome's memory footprint is one of the team's top priorities this year.

{# wf_updated_on: 2018-07-31 #}
{# wf_published_on: 2015-08-31 #}
{# wf_tags: news,performance,update #}
{# wf_featured_image: /web/updates/images/2015-09-01-tab-discarding/image09.png #}
{# wf_blink_components: N/A #}

# Tab Discarding in Chrome: A Memory-Saving Experiment {: .page-title }

{% include "web/_shared/contributors/addyosmani.html" %}

Reducing Chrome's memory footprint is one of the team's top priorities this
year. We've already seen up to a 45% reduction in GMail's memory usage thanks to
improvements in V8's [garbage collection](http://v8project.blogspot.nl/2015/08/getting-garbage-collection-for-free.html)
process but we're really just getting started. One of our next experiments
in memory use is aimed at tab hoarders (like myself). It's called **Tab
Discarding**.

_Tab discarding is available as an experiment in Chrome 46 and above._

### Background

For every tab you have open our renderer process usually takes around 50MB per
tab, even though most people use just a single tab at a time. If you've got 10
tabs open there's at least 450MB of memory being spent just to
keep your background tab state. This can get a little unwieldy over time.

One of our goals is to reduce the memory used on tabs you're **not** actually
using. If I look at what tabs are consuming my system memory in the Chrome Task
Manager, I'm really just 'using' one or two of the sites below whilst the other
tabs in the background are unused.

That's where tab discarding can help reduce our memory usage.

### Discarding unused tabs

Tab discarding allows Chrome to automatically discard tabs that aren't of great
interest to you when it's detected that system memory is running pretty low.
What do we mean by discarding? Well, a discarded tab doesn't go anywhere. We
kill it but it's still visible on the Chrome tab strip. If you navigate back to
a tab that's been discarded, it'll reload when clicked. Form content, scroll
position and so on are saved and restored the same way they would be during
forward/backward tab navigation.

Note: The current mechanism is similar to how we tackle tab discarding on
ChromeOS. The renderer process is shut down. When the tab gets reactivated we go
back to the network and load it like normal.

We also have another new feature that allows caching all tab resources locally
which works nicely with tab discarding when you're offline. When the tab is
reactivated we offer you the choice to reload the cached version that was
previously loaded over the network. To enable page reloading from cache, you can
try out another experiment under `chrome://flags/#show-saved-copy`.

You can try out tab discarding today by enabling it via
`chrome://flags/#enable-tab-discarding` and relaunching Chrome. You can
control whether it's enabled or disabled via the same Chrome `chrome://flags`
page.

A new page called `chrome://discards` lets you list what tabs are currently
open and we try to share some insight into how interesting (we think) they are
to you, from most to least.

To test out the feature, you can either carry out your normal browsing behavior
until your system is in a low-memory mode, or alternatively trigger a tab
discard from about:discards by clicking 'Discard tab now'. This will discard the
last tab in the list. You can also discard a particular tab from the list by
clicking its corresponding 'Discard' button. A discarded tab will display with a
[Discarded] prefix.

**Tab discarding discards tabs in this order:**

- Internal pages like new tab page, bookmarks, etc.
- Tabs selected a long time ago
- Tabs selected recently
- Apps running in a window
- Pinned tabs
- The selected tab

We've enabled the tab discarding experiment in Chrome Canary for Windows and Mac
OS, with a Linux implementation coming soon.

### Inspiration: hey there, great suspender

If tab discarding sounds familiar, it's because you've probably come across
useful Chrome extensions that give you a slightly simpler version of this idea,
such as the [The Great Suspender](https://chrome.google.com/webstore/detail/the-great-suspender/klbibkeccnjlkjkiokjodocebajanakg). The Great Suspender aims to reduce Chrome's memory and GPU footprint by
suspending tabs after a custom period of inactivity.

Similar to tab discarding, tabs can be un-suspended when you need to interact
with them again. Great Suspender maintains each tab's title and favicon, showing
suspended tabs in a dimmed state, making it straight-forward to navigate back to
them any time.

_Tabs in the background that I'm not actively using have been suspended, saving
on memory. Tabs I am still actively using (GitHub and YouTube) are however still
running as normal._

We actually had a great chat with the author of the Great Suspender extension
while developing tab discarding and they're glad to see us natively tackling
this problem in ways that are more efficient than an extension might be able to,
such as losing the state of your user inactions.

### Future improvements: the tab serializer

The tab serializer is a future piece of work we think may lead to significant
improvements on our current approach to tab discarding. It takes the contents of
a Chrome tab and serializes its \*current\* state into a binary blob. This
binary blob can later be deserialized into a tab.

The serializer would serialize almost everything Chrome, Blink and V8 need to
properly preserve a tab (something Chrome extensions tackling this problem
historically haven't been able to easily achieve). Serialization would include
the usual suspects: the DOM (with a lot of WebGL and Canvas included), CSS and
the state of the V8 JavaScript VM.

If you use Android or ChromeOS, you may know that (similar to the tab discarding
experiment covered in this post) we kill background tabs aggressively in order
to ensure memory usage is low. The issue with the way we tackle this was that
your tab would lose \*all\* of its state.

When you showed interest in the tab again, we would have to reload it and all
your interaction with it would be lost. The tab serializer just approaches this
problem in a way that gets you back to almost exactly what you were
without requiring going back to the network. We look forward to sharing more
information about this work at a later date.

### Try out tab discarding and let us know what you think

We'd love to know whether this feature is useful to you and how it could be
improved. Try it out, play around with it (especially if you're a tab hoarder!)
and let us know what you think in the comments. :) We'd also appreciate it if you
file tickets for any bugs you encounter on [crbug.com](https://crbug.com).


text:
<ot-view>

    <ot-extension-indicators-message></ot-extension-indicators-message>

                Loading the global indicators...

                <input type="checkbox" ng-model="category.selected" ng-change="updateCategories()">

                {{category.name}}
                <ot-extension-indicators-deprecation-icon deprecated="category.deprecated"></ot-extension-indicators-deprecation-icon>

                <ot-extension-indicators-type-name type="type"></ot-extension-indicators-type-name>
                <ot-extension-indicators-deprecation-icon deprecated="type.deprecated"></ot-extension-indicators-deprecation-icon>

</ot-view>


text:
Make sure you have [Node.js](http://nodejs.org/) and the [Heroku Toolbelt](https://toolbelt.heroku.com/) installed.

```sh
$ npm install
$ npm start
```

Your app should now be running on [localhost:5000](http://localhost:5000/).

## Deploying to Heroku

```
$ heroku create
$ git push heroku master
$ heroku open
```

## Documentation

For more information about using Node.js on Heroku, see these Dev Center articles:

- [Getting Started with Node.js on Heroku](https://devcenter.heroku.com/articles/getting-started-with-nodejs)
- [Heroku Node.js Support](https://devcenter.heroku.com/articles/nodejs-support)
- [Node.js on Heroku](https://devcenter.heroku.com/categories/nodejs)
- [Best Practices for Node.js Development](https://devcenter.heroku.com/articles/node-best-practices)
- [Using WebSockets on Heroku with Node.js](https://devcenter.heroku.com/articles/node-websockets)


text:
module SensuPluginsGraphite
  module GraphiteProxy
    module Options
      def self.included(base)
        add_default_options(base)
      end

      def self.add_default_options(base)
        default_options.each do |name, vals|
          base.send(:option, name, vals)
        end
      end

      def self.default_options
        {
          target: {
            description: 'Graphite data target',
            short: '-t TARGET',
            long: '--target TARGET',
            required: true
          },

          server: {
            description: 'Server host and port',
            short: '-s SERVER:PORT',
            long: '--server SERVER:PORT',
            required: true
          },

          username: {
            description: 'Username for basic HTTP authentication',
            short: '-u USERNAME',
            long: '--user USERNAME',
            required: false
          },

          password: {
            description: 'User password for basic HTTP authentication',
            short: '-p PASSWORD',
            long: '--pass PASSWORD',
            required: false
          },

          passfile: {
            description: 'Password file path for basic HTTP authentication',
            short: '-P PASSWORDFILE',
            long: '--passfile PASSWORDFILE',
            required: false
          },

          no_ssl_verify: {
            description: 'Do not verify SSL certs',
            short: '-v',
            long: '--nosslverify'
          },

          help: {
            description: 'Show this message',
            short: '-h',
            long: '--help'
          },

          auth: {
            description: 'Add an auth token to the HTTP request, in the form of "Name: Value",
                                             e.g. --auth yourapitokenvaluegoeshere',
            short: '-A TOKEN',
            long: '--auth TOKEN'
          },

          name: {
            description: 'Name used in responses',
            short: '-n NAME',
            long: '--name NAME',
            default: 'graphite check'
          },

          hostname_sub: {
            description: 'Character used to replace periods (.) in hostname (default: _)',
            long: '--host-sub CHARACTER'
          },

          from: {
            description: 'Get samples starting from FROM (default: -10mins)',
            short: '-f FROM',
            long: '--from FROM',
            default: '-10mins'
          },

          until: {
            description: 'Get samples ending at UNTIL (default: now)',
            short: '-l UNTIL',
            long: '--until UNTIL',
            default: 'now'
          },

          warning: {
            description: 'Generate warning if number of hosts is below received value',
            short: '-w VALUE',
            long: '--warn VALUE',
            proc: proc(&:to_f)
          },

          critical: {
            description: 'Generate critical if number of hosts is below received value',
            short: '-c VALUE',
            long: '--critical VALUE',
            proc: proc(&:to_f)
          },

          below: {
            description: 'Alert if number of hosts is below specified thresholds',
            short: '-b',
            long: '--below'
          }
        }
      end
    end
  end
end


text:
          Datasource > Create

   	Store Type
   	>
   	choice source
   	>
   	기본 정보
   	>
   	요약 정보 보기

			<form class="form-horizontal" name="form" novalidate>

			      DataStore

			        <select class="form-control" name="datstoreType" id="datstoreType"
									ng-model="datasource.datastore.id"
									ng-options="option.id as ('[' + option.type + '] ' + option.name) for option in datastoreList"
									ng-change="getLayoutSchemaList()" >
							</select>

Schema

Table

							하나의 테이블을 선택하세요.

Column

			      DataSource Name

			        <input type="text" class="form-control" ng-model="datasource.datsrcName" name="datsrcName" id="datsrcName" autofocus required ng-minlength="2" ng-maxlength="30">
			        이름을 입력하세요.
        			2자 이상 30자 이하로 입력하세요.

			      Description

			        <textarea class="form-control" ng-model="datasource.description" name="description" id="description" ng-maxlength="300" rows="5"></textarea>
			        300자 이하로 입력하세요.

				          DataSource Name
				          {{datasource.datsrcName}}

				          DataStore Type
				          [{{datastore.type}}] {{datastore.name}}

				          Container
				          {{datasource.containerName}}

				          source
				          {{datasource.srcObjName}}

				          Description
				          {{datasource.description}}

			</form>

				<button class="btn btn-white btn-default btn-bold" ng-click="previous()" ng-show="wizardCurrentStep > 1" >
					 Previous
				</button>
				<button class="btn btn-white btn-default btn-bold" ng-click="next()" ng-show="wizardCurrentStep < wizardStepCount">
					 Next
				</button>
				<button class="btn btn-white btn-default btn-bold" ng-click="complete()" ng-show="wizardCurrentStep === wizardStepCount" >
					 Complete
				</button>
				<button class="btn btn-white btn-default btn-bold" ng-click="cancel()">
					 Cancel
				</button>


text:
Spree::Calculator::Shipping::PerItem.class_eval do
  def compute_shipment(shipment)
    # DD: could probably call compute_from_price here
    compute_package(shipment.to_package)
  end
end


text:
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is JavaScript Engine testing utilities.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communication Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

/**
 *  File Name:          instanceof-001.js
 *  ECMA Section:       11.8.6
 *  Description:
 *
 *  RelationalExpression instanceof Identifier
 *
 *  Author:             christine@netscape.com
 *  Date:               2 September 1998
 */
var SECTION = "instanceof-003-n";
var VERSION = "ECMA_2";
var TITLE   = "instanceof"

  startTest();
writeHeaderToLog( SECTION + " "+ TITLE);

function InstanceOf( object_1, object_2, expect ) {

  result = object_1 instanceof object_2;

  new TestCase(
    SECTION,
    "(" + object_1 + ") instanceof " + object_2,
    expect,
    result );
}

function Gen3(value) {
  this.value = value;
  this.generation = 3;
  this.toString = new Function ( "return \"(Gen\"+this.generation+\" instance)\"" );
}
Gen3.name = 3;
Gen3.__proto__.toString = new Function( "return \"(\"+this.name+\" object)\"");

function Gen2(value) {
  this.value = value;
  this.generation = 2;
}
Gen2.name = 2;
Gen2.prototype = new Gen3();

function Gen1(value) {
  this.value = value;
  this.generation = 1;
}
Gen1.name = 1;
Gen1.prototype = new Gen2();

function Gen0(value) {
  this.value = value;
  this.generation = 0;
}
Gen0.name = 0;
Gen0.prototype = new Gen1();

function GenA(value) {
  this.value = value;
  this.generation = "A";
  this.toString = new Function ( "return \"(instance of Gen\"+this.generation+\")\"" );

}
GenA.prototype = new Gen0();
GenA.name = "A";

function GenB(value) {
  this.value = value;
  this.generation = "B";
  this.toString = new Function ( "return \"(instance of Gen\"+this.generation+\")\"" );
}
GenB.name = "B"
  GenB.prototype = void 0;

// Identifier is not a function
DESCRIPTION = "Identifier is not a function";
EXPECTED = "error";

InstanceOf( true, true, "error" );

test();


text:
/**
 * Conventions and templates to aid the construction of FRAs.
 */
package com.opengamma.strata.product.fra.type;


text:
package com.lachesis.mnisqm.module.manualWork.domain;

import java.util.Date;
import java.util.List;

public class ManualWork {
    private Long seqId;

    private String workCode;

    private String itemCode;

    private String userCode;

    private String deptCode;

    private String userType;

    private String planDate;

    private String mouth;

    private String week;

    private String status;

    private Date createTime;

    private Date updateTime;

    private String createPerson;

    private String updatePerson;

    private List<ManualWorkDetail> manualWorkDetailList;

    public Long getSeqId() {
        return seqId;
    }

    public void setSeqId(Long seqId) {
        this.seqId = seqId;
    }

    public String getWorkCode() {
        return workCode;
    }

    public void setWorkCode(String workCode) {
        this.workCode = workCode;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getPlanDate() {
        return planDate;
    }

    public void setPlanDate(String planDate) {
        this.planDate = planDate;
    }

    public String getMouth() {
        return mouth;
    }

    public void setMouth(String mouth) {
        this.mouth = mouth;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreatePerson() {
        return createPerson;
    }

    public void setCreatePerson(String createPerson) {
        this.createPerson = createPerson;
    }

    public String getUpdatePerson() {
        return updatePerson;
    }

    public void setUpdatePerson(String updatePerson) {
        this.updatePerson = updatePerson;
    }

	public List<ManualWorkDetail> getManualWorkDetailList() {
		return manualWorkDetailList;
	}

	public void setManualWorkDetailList(List<ManualWorkDetail> manualWorkDetailList) {
		this.manualWorkDetailList = manualWorkDetailList;
	}

}


text:
unless defined? RADIANT_ROOT
  ENV["RAILS_ENV"] = "test"
  case
  when ENV["RADIANT_ENV_FILE"]
    require ENV["RADIANT_ENV_FILE"]
  when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
    require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
  else
    require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment"
  end
end
require "#{RADIANT_ROOT}/spec/spec_helper"
require File.expand_path(File.dirname(__FILE__) + "/chronicle_spec_helpers")

require 'webrat'

Dataset::Resolver.default << (File.dirname(__FILE__) + "/datasets")

if File.directory?(File.dirname(__FILE__) + "/matchers")
  Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file }
end

Spec::Runner.configure do |config|
  # config.use_transactional_fixtures = true
  # config.use_instantiated_fixtures  = false
  # config.fixture_path = RAILS_ROOT + '/spec/fixtures'

  # You can declare fixtures for each behaviour like this:
  #   describe "...." do
  #     fixtures :table_a, :table_b
  #
  # Alternatively, if you prefer to declare them only once, you can
  # do so here, like so ...
  #
  #   config.global_fixtures = :table_a, :table_b
  #
  # If you declare global fixtures, be aware that they will be declared
  # for all of your examples, even those that don't use them.
  config.include ChronicleSpecHelpers
  config.include Webrat::Matchers, :type => [:helper, :views]
end


text:
//
//  MainNavigationViewController.m
//  FindMovies
//
//  Created by qianfeng on 15/10/26.
//  Copyright © 2015年 qianfeng. All rights reserved.
//

#import "MainNavigationViewController.h"

#define TOP_TAG 200
#define CONTENT_TAG 201

#import "SettingTableViewController.h"
#import "MineTableViewController.h"
#import "CommendTableViewController.h"
#import "FindTableViewController.h"
#import "SearchTableViewController.h"

@interface MainNavigationViewController ()<UIScrollViewDelegate,CommendTableViewControllerDelegate>
{
    NSMutableArray *_titleLableArray;
}
@property (strong,nonatomic) NSArray *ViewControllers;
@property (nonatomic,strong) UIScrollView *contentScrollView;
@property (nonatomic,strong) UIScrollView *titleScrollView;

@end

@implementation MainNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view

    self.edgesForExtendedLayout = UIRectEdgeNone;
    [self createContentView];

    [self createTitleView];

    [self createLeftView];

    [self createRightView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
#pragma mark - 创建导航栏的viewControllers的View
- (void)createContentView
{
    UIStoryboard* mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    MineTableViewController *mineTableViewController = [mainStoryboard instantiateViewControllerWithIdentifier:@"MineID"];

    CommendTableViewController *commendTableViewController = [mainStoryboard instantiateViewControllerWithIdentifier:@"CommendID"];
    commendTableViewController.delegate = self;

    FindTableViewController *findTableViewController = [mainStoryboard instantiateViewControllerWithIdentifier:@"FindID"];

    NSArray *viewControllers = @[mineTableViewController,commendTableViewController,findTableViewController];
    [self createContentViewWithArray:viewControllers];
    self.ViewControllers = viewControllers;
}

- (void)createContentViewWithArray:(NSArray *)viewControllers
{
    UIView *backView = [[UIView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:backView];
    _contentScrollView = [[UIScrollView alloc] initWithFrame:backView.bounds];
    [backView addSubview:_contentScrollView];

    _contentScrollView.pagingEnabled = YES;
    _contentScrollView.tag = CONTENT_TAG;
    _contentScrollView.showsHorizontalScrollIndicator = NO;
    _contentScrollView.showsVerticalScrollIndicator = NO;
    _contentScrollView.delegate = self;

    CGFloat X = 0;
    CGFloat Y = 0;
    CGFloat W = _contentScrollView.frame.size.width;
    CGFloat H = _contentScrollView.frame.size.height;

    for(int i=0;i<viewControllers.count;i++)
    {
        UIViewController *vc = viewControllers[i];
        vc.view.frame = CGRectMake( X, Y, W, H);

        [_contentScrollView addSubview:vc.view];

        //将子类添加到父类控制器
        [self addChildViewController:vc];
        X += W;
    }
    _contentScrollView.contentSize = CGSizeMake(_contentScrollView.frame.size.width*viewControllers.count, 0);

    //显示第0页
    [self contentScrollViewShowPage:1];
}

-(void)contentScrollViewShowPage:(int)page
{
    [_contentScrollView setContentOffset:CGPointMake(page * _contentScrollView.frame.size.width, 0) animated:YES];
}

#pragma mark - 创建导航栏的titleView
- (void)createTitleView
{
    UIView *titleView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 180, 30)];
//    titleView.contentMode = UIViewContentModeScaleAspectFit;
    self.navigationItem.titleView = titleView;

    _titleScrollView = [[UIScrollView alloc] initWithFrame:titleView.bounds];
    [titleView addSubview:_titleScrollView];
    _titleScrollView.tag = TOP_TAG;
    _titleScrollView.showsHorizontalScrollIndicator = NO;
    _titleScrollView.showsVerticalScrollIndicator = NO;
    _titleScrollView.delegate = self;

    CGFloat titleLabelWidth = titleView.frame.size.width/_ViewControllers.count-10;
    _titleLableArray = [[NSMutableArray alloc] init];
    for (int i=0; i<_ViewControllers.count; i++) {
        UIViewController *vc = _ViewControllers[i];

        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(titleLabelWidth * i, 0, titleLabelWidth, titleView.frame.size.height)];

        label.text = vc.navigationItem.title;
        label.userInteractionEnabled = YES;
        label.tag = i+100;
        label.textColor = [UIColor blackColor];
        label.font = [UIFont systemFontOfSize:14];

        label.textAlignment = NSTextAlignmentCenter;
        [_titleLableArray addObject:label];

        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dealTap:)];
        [label addGestureRecognizer:tap];
        [_titleScrollView addSubview:label];
    }
    _titleScrollView.contentSize = CGSizeMake(titleLabelWidth*_ViewControllers.count, titleView.frame.size.height-20);

    [self topScrollViewShowPage:1];
}
-(void)dealTap:(UITapGestureRecognizer *)tap
{
    int page = (int)tap.view.tag - 100;
    [self topScrollViewShowPage:page];
    [self contentScrollViewShowPage:page];
}
-(void)topScrollViewShowPage:(int)page
{
    for (UILabel *label in _titleLableArray) {
        label.textColor = [UIColor blackColor];
    }
    UILabel *selectLabel = _titleLableArray[page];
    selectLabel.textColor = [UIColor redColor];
}
-(void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
{
    if(scrollView.tag == CONTENT_TAG)
    {
        //注意0除
        int page = scrollView.contentOffset.x / self.view.frame.size.width;
        [self topScrollViewShowPage:page];
    }
}

#pragma  mark - 创建导航栏左边的视图
- (void)createLeftView
{
    UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:leftButton];
    leftButton.frame = CGRectMake(0, 0, 30, 30);
    leftButton.clipsToBounds = YES;
    [leftButton setBackgroundImage:[UIImage imageNamed:@"user-grey"] forState:UIControlStateNormal];
    leftButton.layer.cornerRadius = 15;
    [leftButton addTarget:self action:@selector(dealLeftButtonClick) forControlEvents:UIControlEventTouchUpInside];
}
- (void)dealLeftButtonClick
{
    UIStoryboard* mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    SettingTableViewController *svc = [mainStoryboard instantiateViewControllerWithIdentifier:@"SettingID"];
    svc.navigationItem.hidesBackButton = YES;
    [self.navigationController pushViewController:svc animated:YES];
}

#pragma mark - 创建导航栏右边的视图
- (void)createRightView
{
    UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:rightButton];
    rightButton.frame = CGRectMake(0, 0, 25, 25);
    [rightButton setBackgroundImage:[UIImage imageNamed:@"search_d"] forState:UIControlStateNormal];
    [rightButton addTarget:self action:@selector(dealRightButtonClick) forControlEvents:UIControlEventTouchUpInside];
}
- (void)dealRightButtonClick
{
    UIStoryboard* mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    SearchTableViewController *svc = [mainStoryboard instantiateViewControllerWithIdentifier:@"SearchID"];
    [self.navigationController pushViewController:svc animated:YES];
}

- (void)moreButtonClickWithViewController:(UIViewController *)viewController button:(UIButton *)button
{
    NSLog(@"---------");
    [self topScrollViewShowPage:2];
    [self contentScrollViewShowPage:2];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end


text:
namespace content {
namespace protocol {
namespace {

using crdtp::Binary;

TEST(ProtocolBinaryTest, base64EmptyArgs) {
  EXPECT_EQ(std::string(), Binary().toBase64());

  bool success = false;
  Binary decoded = Binary::fromBase64("", &success);
  EXPECT_TRUE(success);
  EXPECT_EQ(
      std::vector<uint8_t>(),
      std::vector<uint8_t>(decoded.data(), decoded.data() + decoded.size()));
}

TEST(ProtocolStringTest, AllBytesBase64Roundtrip) {
  std::vector<uint8_t> all_bytes;
  for (int ii = 0; ii < 255; ++ii)
    all_bytes.push_back(ii);
  Binary binary = Binary::fromVector(all_bytes);
  bool success = false;
  Binary decoded = Binary::fromBase64(binary.toBase64(), &success);
  EXPECT_TRUE(success);
  std::vector<uint8_t> decoded_bytes(decoded.data(),
                                     decoded.data() + decoded.size());
  EXPECT_EQ(all_bytes, decoded_bytes);
}

TEST(ProtocolStringTest, HelloWorldBase64Roundtrip) {
  const char* kMsg = "Hello, world.";
  std::vector<uint8_t> msg(kMsg, kMsg + strlen(kMsg));
  EXPECT_EQ(strlen(kMsg), msg.size());

  auto encoded = Binary::fromVector(msg).toBase64();
  EXPECT_EQ("SGVsbG8sIHdvcmxkLg==", encoded);
  bool success = false;
  Binary decoded_binary = Binary::fromBase64(encoded, &success);
  EXPECT_TRUE(success);
  std::vector<uint8_t> decoded(decoded_binary.data(),
                               decoded_binary.data() + decoded_binary.size());
  EXPECT_EQ(msg, decoded);
}

TEST(ProtocolBinaryTest, InvalidBase64Decode) {
  bool success = true;
  Binary binary = Binary::fromBase64("This is not base64.", &success);
  EXPECT_FALSE(success);
}
}  // namespace
}  // namespace protocol
}  // namespace content


text:
class Herald
  class Watcher
    class Notifier

      module Stdout

        def parse_options(options)
          # option to send stdout to file
          if file = options.delete(:file)
            $stdout = File.new(file, 'a')
          end
        end

        # is always working, so true
        def test; true; end

        # print to $stdout
        def notify(item)
          $stdout.puts item.data.inspect
          $stdout.flush
        end

        def to_s
          "Herald Stdout Notifier"
        end

      end

    end
  end
end


text:
class ImagingResponse(object):
    """NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually."""

    def __init__(self):
        """
        Attributes:
          swaggerTypes (dict): The key is attribute name and the value is attribute type.
          attributeMap (dict): The key is attribute name and the value is json key in definition.
        """
        self.swaggerTypes = {
            'Height': 'int',
            'Width': 'int',
            'BitsPerPixel': 'int',
            'BmpProperties': 'BmpProperties',
            'GifProperties': 'GifProperties',
            'JpegProperties': 'JpegProperties',
            'PngProperties': 'PngProperties',
            'TiffProperties': 'TiffProperties',
            'PsdProperties': 'PsdProperties',
            'HorizontalResolution': 'float',
            'VerticalResolution': 'float',
            'IsCached': 'bool',
            'Code': 'str',
            'Status': 'str'

        }

        self.attributeMap = {
            'Height': 'Height','Width': 'Width','BitsPerPixel': 'BitsPerPixel','BmpProperties': 'BmpProperties','GifProperties': 'GifProperties','JpegProperties': 'JpegProperties','PngProperties': 'PngProperties','TiffProperties': 'TiffProperties','PsdProperties': 'PsdProperties','HorizontalResolution': 'HorizontalResolution','VerticalResolution': 'VerticalResolution','IsCached': 'IsCached','Code': 'Code','Status': 'Status'}

        self.Height = None # int
        self.Width = None # int
        self.BitsPerPixel = None # int
        self.BmpProperties = None # BmpProperties
        self.GifProperties = None # GifProperties
        self.JpegProperties = None # JpegProperties
        self.PngProperties = None # PngProperties
        self.TiffProperties = None # TiffProperties
        self.PsdProperties = None # PsdProperties
        self.HorizontalResolution = None # float
        self.VerticalResolution = None # float
        self.IsCached = None # bool
        self.Code = None # str
        self.Status = None # str


text:
namespace base {
class FilePath;
}

namespace spellcheck {

// The number of hours that a session of feedback for spelling service lasts.
// After this number of hours passes, all feedback.
static const int kSessionHours = 6;

// The number of context words to keep on either side of a misspelling for
// spelling service feedback.
static const int kContextWordCount = 2;

// The number of seconds between sending feedback to spelling service.
static const int kFeedbackIntervalSeconds = 1800;  // 30 minutes

// Max number of dictionary suggestions.
static const int kMaxSuggestions = 5;

// Maximum number of words in the custom spellcheck dictionary that can be
// synced.
static const size_t MAX_SYNCABLE_DICTIONARY_WORDS = 1300;

// Maximum number of bytes in a word that can be added to the custom spellcheck
// dictionary.
static const size_t MAX_CUSTOM_DICTIONARY_WORD_BYTES = 99;

base::FilePath GetVersionedFileName(const std::string& input_language,
                                    const base::FilePath& dict_dir);

// Returns the spellcheck language that should be used for |language|. For
// example, converts "hu-HU" into "hu", because we have only one variant of
// Hungarian. Converts "en-US" into "en-US", because we have several variants of
// English dictionaries.
//
// Returns an empty string if no spellcheck language found. For example, there's
// no single dictionary for English, so this function returns an empty string
// for "en".
std::string GetCorrespondingSpellCheckLanguage(const std::string& language);

// Get SpellChecker supported languages.
void SpellCheckLanguages(std::vector<std::string>* languages);

// Gets the ISO codes for the language and country of this |locale|. The
// |locale| is an ISO locale ID that may not include a country ID, e.g., "fr" or
// "de". This method converts the UI locale to a full locale ID and converts the
// full locale ID to an ISO language code and an ISO3 country code.
void GetISOLanguageCountryCodeFromLocale(const std::string& locale,
                                         std::string* language_code,
                                         std::string* country_code);

}  // namespace spellcheck

#endif  // COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_COMMON_H_


text:
import os

start_page = 17
end_page = 2306

page_range = range(start_page, end_page+1)
for page_number in page_range:
    output_filename = "pages/layout_%s.txt" % (page_number)
    layout_cmd = "pdftotext -f %s -l %s -layout GPO-CDOC-112sdoc4.pdf %s" % (page_number, page_number, output_filename)
    print layout_cmd
    result = os.popen(layout_cmd).read()
    print result


text:
{% extends "docs/base.html" %}

{% block content %}
    {{ docs|safe }}
{% endblock %}


text:
//  This file only Copyright (c) 2009 Kåre Morstøl (NotTooBad Software).
//  This file only under the Eclipse public license v1.0
//  http://www.eclipse.org/legal/epl-v10.html

#import "DistancePickerView.h"

@implementation DistancePickerView

- (id)initWithFrame:(CGRect)frame
{

    self = [super initWithFrame:frame];
    if ( self )
    {
        labels = [[NSMutableDictionary alloc] initWithCapacity:2];
    }
    return self;
}

- (void)addLabel:(NSString *)labeltext forComponent:(NSUInteger)component forLongestString:(NSString *)longestString
{
    labels[@(component)] = labeltext;

    NSString *keyName = [NSString stringWithFormat:@"%@_%ld", @"longestString", (unsigned long)component];

    if ( !longestString )
    {
        longestString = labeltext;
    }

    labels[keyName] = longestString;
}

- (void)updateLabel:(NSString *)labeltext forComponent:(NSUInteger)component
{

    UILabel *theLabel = (UILabel *) [self viewWithTag:component + 1];

    // Update label if it doesn't match current label
    if ( ![theLabel.text isEqualToString:labeltext] )
    {

        NSString *keyName = [NSString stringWithFormat:@"%@_%ld", @"longestString", (unsigned long)component];
        NSString *longestString = labels[keyName];

        // Update label array with our new string value
        [self addLabel:labeltext forComponent:component forLongestString:longestString];

        // change label during fade out/in
        [UIView beginAnimations:nil context:NULL];
        [UIView setAnimationDuration:0.75];
        [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
        theLabel.alpha = 0.00;
        theLabel.text = labeltext;
        theLabel.alpha = 1.00;
        [UIView commitAnimations];
    }

}

/**
 Adds the labels to the view, below the selection indicator glass.
 The labels are aligned to the right side of the wheel.
 The delegate is responsible for providing enough width for both the value and the label.
 */
- (void)didMoveToWindow
{
    // exit if view is removed from the window or there are no labels.
    if ( !self.window || [labels count] == 0 )
        return;

    UIFont *labelfont = [UIFont boldSystemFontOfSize:20];

    // find the width of all the wheels combined
    CGFloat widthofwheels = 0;
    for (int i = 0; i < self.numberOfComponents; i++)
    {
        widthofwheels += [self rowSizeForComponent:i].width;
    }

    // find the left side of the first wheel.
    // seems like a misnomer, but that will soon be corrected.
    CGFloat rightsideofwheel = (self.frame.size.width - widthofwheels) / 2;

    // cycle through all wheels
    for (int component = 0; component < self.numberOfComponents; component++)
    {
        // find the right side of the wheel
        rightsideofwheel += [self rowSizeForComponent:component].width;

        // get the text for the label.
        // move on to the next if there is no label for this wheel.
        NSString *text = labels[@(component)];
        if ( text )
        {

            // set up the frame for the label using our longestString length
            NSString *keyName = [NSString stringWithFormat:@"%@_%@", @"longestString",
                                                           @(component)];
            NSString *longestString = labels[keyName];
            CGRect frame;

            if ( NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1)
            {
#pragma clang diagnostic push
#pragma ide diagnostic ignored "UnavailableInDeploymentTarget"
                frame.size = [longestString sizeWithAttributes:
                                                    @{NSFontAttributeName :
                                                            labelfont}];
#pragma clang diagnostic pop
            }
            else
            {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
                frame.size = [longestString sizeWithFont:labelfont];
#pragma clang diagnostic pop
            }

            // center it vertically
            frame.origin.y = (CGFloat) ((self.frame.size.height / 2.f) - (frame.size.height / 2.f) - 0.5f);

            // align it to the right side of the wheel, with a margin.
            // use a smaller margin for the rightmost wheel.
            frame.origin.x = rightsideofwheel - frame.size.width - (component == self.numberOfComponents - 1 ? 5 : 7);

            // set up the label. If label already exists, just get a reference to it
            BOOL addlabelView = NO;
            UILabel *label = (UILabel *) [self viewWithTag:component + 1];
            if ( !label )
            {
                label = [[UILabel alloc] initWithFrame:frame];
                addlabelView = YES;
            }

            label.text = text;
            label.font = labelfont;
            label.backgroundColor = [UIColor clearColor];
            label.shadowColor = [UIColor whiteColor];
            label.shadowOffset = CGSizeMake(0, 1);

            // Tag cannot be 0 so just increment component number to esnure we get a positive
            // NB update/remove Label methods are aware of this incrementation!
            label.tag = component + 1;

            if ( addlabelView )
            {
                /*
                 and now for the tricky bit: adding the label to the view.
                 kind of a hack to be honest, might stop working if Apple decides to
                 change the inner workings of the UIPickerView.
                 */
                if ( self.showsSelectionIndicator )
                {
                    // if this is the last wheel, add label as the third view from the top
                    if ( component == self.numberOfComponents - 1 ) if ( NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1)
                    {
                        UIView *o = [self.subviews[0] subviews][[[self.subviews[0] subviews] count] - 1];
                        UIView *subview = [o subviews][2];
                        UIView *view = [(subview.subviews)[0] subviews][1];
                        [self insertSubview:label aboveSubview:view];
                    }
                    else
                    {
                        [self insertSubview:label atIndex:[self.subviews count] - 3];
                    }
                            // otherwise add label as the 5th, 10th, 15th etc view from the top
                    else
                    {
                        if ( NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1)
                        {
                            [self insertSubview:label
                                   aboveSubview:[self.subviews[0] subviews][(NSUInteger) component]];
                        }
                        else
                        {
                            [self insertSubview:label aboveSubview:(self.subviews)[(NSUInteger) (5 * (component + 1))]];
                        }

                    }
                } else
                        // there is no selection indicator, so just add it to the top
                    [self addSubview:label];

            }

            if ( [self.delegate respondsToSelector:@selector(pickerView:didSelectRow:inComponent:)] )
                [self.delegate pickerView:self didSelectRow:[self selectedRowInComponent:component]
                              inComponent:component];
        }

    }

}

@end


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

namespace TSQL.IO
{
	internal interface ICharacterReader : IDisposable, IEnumerator<char>, IEnumerable<char>
	{

    }
}


text:
package concurrency.ch3;

import java.util.Random;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

public class ReadWriteLockDemo {
    private static Lock lock = new ReentrantLock();
    private static ReentrantReadWriteLock readWriteLock = new ReentrantReadWriteLock();

    private static Lock readLock = readWriteLock.readLock();
    private static Lock writeLock = readWriteLock.writeLock();

    private int value;

    public Object handleRead(Lock lock) throws InterruptedException {
        try {
            lock.lock();
            Thread.sleep(1000);
            return value;
        } finally {
            lock.unlock();
        }
    }

    public void handleWrite(Lock lock, int index) throws InterruptedException {
        try {
            lock.lock();
            Thread.sleep(2000);
            value = index;
        } finally {
            lock.unlock();
        }
    }

    public static void main(String[] args) {
        ReadWriteLockDemo demo = new ReadWriteLockDemo();
        Runnable readRunable = () -> {
            try {
                demo.handleRead(lock);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        };

        Runnable writeRunable = () -> {
            try {
                demo.handleWrite(lock, new Random().nextInt(1000));
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        };

        for (int i = 0; i < 18; i++) {
            new Thread(readRunable).start();
        }

        for (int i = 18; i < 20; i++) {
            new Thread(writeRunable).start();
        }
    }
}


text:
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.11
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.badlogic.gdx.physics.bullet.collision;

import com.badlogic.gdx.physics.bullet.BulletBase;
import com.badlogic.gdx.physics.bullet.linearmath.*;
import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.math.Quaternion;
import com.badlogic.gdx.math.Matrix3;
import com.badlogic.gdx.math.Matrix4;

public class btBox2dShape extends btPolyhedralConvexShape {
	private long swigCPtr;

	protected btBox2dShape(final String className, long cPtr, boolean cMemoryOwn) {
		super(className, CollisionJNI.btBox2dShape_SWIGUpcast(cPtr), cMemoryOwn);
		swigCPtr = cPtr;
	}

	/** Construct a new btBox2dShape, normally you should not need this constructor it's intended for low-level usage. */
	public btBox2dShape(long cPtr, boolean cMemoryOwn) {
		this("btBox2dShape", cPtr, cMemoryOwn);
		construct();
	}

	@Override
	protected void reset(long cPtr, boolean cMemoryOwn) {
		if (!destroyed)
			destroy();
		super.reset(CollisionJNI.btBox2dShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn);
	}

	public static long getCPtr(btBox2dShape obj) {
		return (obj == null) ? 0 : obj.swigCPtr;
	}

	@Override
	protected void finalize() throws Throwable {
		if (!destroyed)
			destroy();
		super.finalize();
	}

  @Override protected synchronized void delete() {
		if (swigCPtr != 0) {
			if (swigCMemOwn) {
				swigCMemOwn = false;
				CollisionJNI.delete_btBox2dShape(swigCPtr);
			}
			swigCPtr = 0;
		}
		super.delete();
	}

  public long operatorNew(long sizeInBytes) {
    return CollisionJNI.btBox2dShape_operatorNew__SWIG_0(swigCPtr, this, sizeInBytes);
  }

  public void operatorDelete(long ptr) {
    CollisionJNI.btBox2dShape_operatorDelete__SWIG_0(swigCPtr, this, ptr);
  }

  public long operatorNew(long arg0, long ptr) {
    return CollisionJNI.btBox2dShape_operatorNew__SWIG_1(swigCPtr, this, arg0, ptr);
  }

  public void operatorDelete(long arg0, long arg1) {
    CollisionJNI.btBox2dShape_operatorDelete__SWIG_1(swigCPtr, this, arg0, arg1);
  }

  public long operatorNewArray(long sizeInBytes) {
    return CollisionJNI.btBox2dShape_operatorNewArray__SWIG_0(swigCPtr, this, sizeInBytes);
  }

  public void operatorDeleteArray(long ptr) {
    CollisionJNI.btBox2dShape_operatorDeleteArray__SWIG_0(swigCPtr, this, ptr);
  }

  public long operatorNewArray(long arg0, long ptr) {
    return CollisionJNI.btBox2dShape_operatorNewArray__SWIG_1(swigCPtr, this, arg0, ptr);
  }

  public void operatorDeleteArray(long arg0, long arg1) {
    CollisionJNI.btBox2dShape_operatorDeleteArray__SWIG_1(swigCPtr, this, arg0, arg1);
  }

  public Vector3 getHalfExtentsWithMargin() {
	return CollisionJNI.btBox2dShape_getHalfExtentsWithMargin(swigCPtr, this);
}

  public Vector3 getHalfExtentsWithoutMargin() {
	return CollisionJNI.btBox2dShape_getHalfExtentsWithoutMargin(swigCPtr, this);
}

  public btBox2dShape(Vector3 boxHalfExtents) {
    this(CollisionJNI.new_btBox2dShape(boxHalfExtents), true);
  }

  public int getVertexCount() {
    return CollisionJNI.btBox2dShape_getVertexCount(swigCPtr, this);
  }

  public btVector3 getVertices() {
    long cPtr = CollisionJNI.btBox2dShape_getVertices(swigCPtr, this);
    return (cPtr == 0) ? null : new btVector3(cPtr, false);
  }

  public btVector3 getNormals() {
    long cPtr = CollisionJNI.btBox2dShape_getNormals(swigCPtr, this);
    return (cPtr == 0) ? null : new btVector3(cPtr, false);
  }

  public Vector3 getCentroid() {
	return CollisionJNI.btBox2dShape_getCentroid(swigCPtr, this);
}

  public void getPlaneEquation(btVector4 plane, int i) {
    CollisionJNI.btBox2dShape_getPlaneEquation(swigCPtr, this, btVector4.getCPtr(plane), plane, i);
  }

}


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

<c:task xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<c:name>Execute send notifications on objects 1 to 0</c:name>
	<c:extension>
		<scext:executeScript xmlns:scext="http://midpoint.evolveum.com/xml/ns/public/model/scripting/extension-3">
			<s:pipeline xmlns:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-3">
				<s:expression xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s:SearchExpressionType">
					<s:type>UserType</s:type>
				</s:expression>
				<s:expression xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="s:ActionExpressionType">
					<s:type>notify</s:type>
					<s:parameter>
						<s:name>subtype</s:name>
						<c:value xsi:type="xsd:string">type1</c:value>
					</s:parameter>
					<s:parameter>
						<s:name>handler</s:name>
						<c:value xsi:type="c:EventHandlerType">
							<c:generalNotifier>
								<c:recipientExpression>
									<c:value>recipient@evolveum.com</c:value>
								</c:recipientExpression>
								<c:bodyExpression>
									<c:script>
										<c:language>http://midpoint.evolveum.com/xml/ns/public/expression/language#velocity</c:language>
										<c:code>event.object is '$event.object.name' with OID of $event.object.oid</c:code>
									</c:script>
								</c:bodyExpression>
								<c:transport>mail</c:transport>
							</c:generalNotifier>
						</c:value>
					</s:parameter>
					<!-- Other parameters: forWholeInput, status, operation -->
				</s:expression>
			</s:pipeline>
		</scext:executeScript>
	</c:extension>
	<c:taskIdentifier>1474665896757:987750751</c:taskIdentifier>
	<c:ownerRef oid="00000000-0000-0000-0000-000000000002"/>
	<c:executionStatus>runnable</c:executionStatus>
	<c:category>BulkActions</c:category>
	<c:handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/scripting/handler-3</c:handlerUri>
	<c:recurrence>single</c:recurrence>
</c:task>