text:
from __future__ import annotations

from dataclasses import dataclass

from pants.backend.codegen.thrift.apache.java import subsystem
from pants.backend.codegen.thrift.apache.java.subsystem import ApacheThriftJavaSubsystem
from pants.backend.codegen.thrift.apache.rules import (
    GeneratedThriftSources,
    GenerateThriftSourcesRequest,
)
from pants.backend.codegen.thrift.target_types import (
    ThriftDependenciesField,
    ThriftSourceField,
    ThriftSourcesGeneratorTarget,
    ThriftSourceTarget,
)
from pants.backend.java.target_types import JavaSourceField
from pants.build_graph.address import Address
from pants.engine.fs import AddPrefix, Digest, Snapshot
from pants.engine.internals.selectors import Get
from pants.engine.rules import collect_rules, rule
from pants.engine.target import (
    FieldSet,
    GeneratedSources,
    GenerateSourcesRequest,
    InferDependenciesRequest,
    InferredDependencies,
)
from pants.engine.unions import UnionRule
from pants.jvm.dependency_inference import artifact_mapper
from pants.jvm.dependency_inference.artifact_mapper import (
    AllJvmArtifactTargets,
    UnversionedCoordinate,
    find_jvm_artifacts_or_raise,
)
from pants.jvm.subsystems import JvmSubsystem
from pants.jvm.target_types import JvmResolveField, PrefixedJvmJdkField, PrefixedJvmResolveField
from pants.source.source_root import SourceRoot, SourceRootRequest
from pants.util.logging import LogLevel

class GenerateJavaFromThriftRequest(GenerateSourcesRequest):
    input = ThriftSourceField
    output = JavaSourceField

@rule(desc="Generate Java from Thrift", level=LogLevel.DEBUG)
async def generate_java_from_thrift(
    request: GenerateJavaFromThriftRequest,
    thrift_java: ApacheThriftJavaSubsystem,
) -> GeneratedSources:
    result = await Get(
        GeneratedThriftSources,
        GenerateThriftSourcesRequest(
            thrift_source_field=request.protocol_target[ThriftSourceField],
            lang_id="java",
            lang_options=thrift_java.gen_options,
            lang_name="Java",
        ),
    )

    source_root = await Get(
        SourceRoot, SourceRootRequest, SourceRootRequest.for_target(request.protocol_target)
    )

    source_root_restored = (
        await Get(Snapshot, AddPrefix(result.snapshot.digest, source_root.path))
        if source_root.path != "."
        else await Get(Snapshot, Digest, result.snapshot.digest)
    )
    return GeneratedSources(source_root_restored)

@dataclass(frozen=True)
class ApacheThriftJavaDependenciesInferenceFieldSet(FieldSet):
    required_fields = (ThriftDependenciesField, JvmResolveField)

    dependencies: ThriftDependenciesField
    resolve: JvmResolveField

class InferApacheThriftJavaDependencies(InferDependenciesRequest):
    infer_from = ApacheThriftJavaDependenciesInferenceFieldSet

@dataclass(frozen=True)
class ApacheThriftJavaRuntimeForResolveRequest:
    resolve_name: str

@dataclass(frozen=True)
class ApacheThriftJavaRuntimeForResolve:
    addresses: frozenset[Address]

_LIBTHRIFT_GROUP = "org.apache.thrift"
_LIBTHRIFT_ARTIFACT = "libthrift"

@rule
async def resolve_apache_thrift_java_runtime_for_resolve(
    request: ApacheThriftJavaRuntimeForResolveRequest,
    jvm_artifact_targets: AllJvmArtifactTargets,
    jvm: JvmSubsystem,
) -> ApacheThriftJavaRuntimeForResolve:
    addresses = find_jvm_artifacts_or_raise(
        required_coordinates=[
            UnversionedCoordinate(
                group=_LIBTHRIFT_GROUP,
                artifact=_LIBTHRIFT_ARTIFACT,
            )
        ],
        resolve=request.resolve_name,
        jvm_artifact_targets=jvm_artifact_targets,
        jvm=jvm,
        subsystem="the Apache Thrift runtime",
        target_type="protobuf_sources",
    )
    return ApacheThriftJavaRuntimeForResolve(addresses)

@rule
async def infer_apache_thrift_java_dependencies(
    request: InferApacheThriftJavaDependencies, jvm: JvmSubsystem
) -> InferredDependencies:
    resolve = request.field_set.resolve.normalized_value(jvm)

    dependencies_info = await Get(
        ApacheThriftJavaRuntimeForResolve, ApacheThriftJavaRuntimeForResolveRequest(resolve)
    )
    return InferredDependencies(dependencies_info.addresses)

def rules():
    return (
        *collect_rules(),
        *subsystem.rules(),
        UnionRule(GenerateSourcesRequest, GenerateJavaFromThriftRequest),
        UnionRule(InferDependenciesRequest, InferApacheThriftJavaDependencies),
        ThriftSourceTarget.register_plugin_field(PrefixedJvmJdkField),
        ThriftSourcesGeneratorTarget.register_plugin_field(PrefixedJvmJdkField),
        ThriftSourceTarget.register_plugin_field(PrefixedJvmResolveField),
        ThriftSourcesGeneratorTarget.register_plugin_field(PrefixedJvmResolveField),
        # Rules needed to avoid rule graph errors.
        *artifact_mapper.rules(),
    )


text:
<?xml version="1.0" encoding="utf-8" ?>
<kademliadfuntest>
    <environment-factory-class-name>
        me.gregorias.dfuntest.LocalEnvironmentFactory
    </environment-factory-class-name>
    <environment-factory-config>
        <environment-count>
            11
        </environment-count>
        <dir-prefix>
            kademlia
        </dir-prefix>
    </environment-factory-config>
    <full-environment-preparation>
      true
    </full-environment-preparation>
    <clean-up-environment>
      true
    </clean-up-environment>
    <bucket-size>
        2
    </bucket-size>
    <initial-kademlia-port>
        9000
    </initial-kademlia-port>
    <initial-rest-port>
        10000
    </initial-rest-port>
    <should-use-different-ports>
        true
    </should-use-different-ports>
</kademliadfuntest>

redpajama_set_name: RedPajamaGithub


text:
/**
 * Created by miralabs on 04/05/14.
 */
/*global require:false, module:false */
"use strict";

var express = require('express');
var router = express.Router();
var redis = require("redis"),
    client = redis.createClient();
var async = require("async");
var articleService = require("../service/article");
var keys = require("../flipnokeys");

//contain keys for all that shit
//its mostly vote:up:articleid
//or for comments its vote:up:c:commentid
var VOTE_UP_PREFIX = "vote:up:";
var VOTE_UP_COMMENT_PREFIX = VOTE_UP_PREFIX + "c:";

var VOTE_DOWN_PREFIX = "vote:down:";
var VOTE_DOWN_COMMENT_PREFIX = VOTE_DOWN_PREFIX + "c:";

//var RESULT_SUCCESS_NOT_A_MEMBER = 0;
//var RESULT_SUCCESS_VOTE_REMOVED = 1;

//hardcoded
/**
 * Returns a json. See below whats going to happen, duh
 *
 * { result : number }
 0 - success, not a member
 1 - success, up to removed
 2 - success, down to removed
 3 - success up
 4 - success down
 */
var RESULT = {
    VOTE_UP_SUCCESS : 0,
    VOTE_DOWN_SUCCESS : 1,
    VOTE_UP_REMOVED : 2, //clicking up again will remove it
    VOTE_DOWN_REMOVED : 3,
    ERROR : -1
};

var writeRes = function(res,code) {
    res.setHeader('Content-Type', 'application/json');
    res.write(JSON.stringify({
        "result" : code
    }));
    res.end();
};

router.post("/votedown/:id",function(req,res) {

    var userid = req.user.username;

    var articleid = req.param('id');
    var keyup = keys.ARTICLE_VOTE_UP_PREFIX+articleid;
    var keydown = keys.ARTICLE_VOTE_DOWN_PREFIX+articleid;

    async.series({
        "article" : function(callback) {
            client.hgetall(keys.ARTICLE_PREFIX+articleid,function(err,article) {
                callback(err,article);
            });
        },
        "keydown" : function(callback) {
            client.sismember(keydown,userid,function(err, reply) {
                callback(err,reply);
            });
        },
        "keyup" : function(callback) {
            client.sismember(keyup,userid,function(err, reply) {
                callback(err,reply);
            });
        }
    },function(err,result){
        if ( err ) {
            writeRes(res,RESULT.ERROR);
        } else {
            var toexecuteAsync = null;
            //happy day scenario
            if ( result.keydown === 0 && result.keyup === 0 ) {
                //no vote do what is right
                toexecuteAsync = function(callback) {
                    client.sadd(keydown,userid,function(err,reply) {
                        console.log("VOTE SUCCESSFUL... for key: " + keyup);
                        callback(result.article,RESULT.VOTE_DOWN_SUCCESS);
                    });
                };

                //he wants to vote down, but he has a vote up, remove his vote up instead
            } else if ( result.keydown === 0 && result.keyup === 1 ) {
                toexecuteAsync = function(callback) {
                    client.srem(keyup,userid,function(err,reply) {
                        console.log("VOTE UP IS REMOVED");
                        callback(result.article,RESULT.VOTE_UP_REMOVED);
                    });
                };
                //he wants to vote down but he has already a key down, remove key down
            } else if ( result.keydown === 1 && result.keyup === 0  ) {
                toexecuteAsync = function(callback) {
                    client.srem(keydown,userid,function(err,reply) {
                        console.log("VOTE DOWN REMOVED");
                        callback(result.article,RESULT.VOTE_DOWN_REMOVED);
                    });
                };
            }

            toexecuteAsync(function(article,resultKey) {
                console.log("setting article stats");
                articleService.set_article_stats(article,function(err){

                    if ( err ) {
                        writeRes(res,RESULT.ERROR);
                        console.log("wRITE RESULT DONE: error");
                    } else {
                        writeRes(res,resultKey);
                        console.log("wRITE RESULT DONE: "+resultKey);
                    }
                });
            });
        }

    });

});

router.post("/voteup/:id",function(req,res) {

    var userid = req.user.username;

    var articleid = req.param('id');
    var keyup = keys.ARTICLE_VOTE_UP_PREFIX+articleid;
    var keydown = keys.ARTICLE_VOTE_DOWN_PREFIX+articleid;

    /**
     * Get everything we need initially
     * 1. Is he a member of the keydown or keyup
     */
    async.series({
        "article" : function(callback) {
            client.hgetall(keys.ARTICLE_PREFIX+articleid,function(err,article) {
                callback(err,article);
            });
        },
        "keydown" : function(callback) {
            client.sismember(keydown,userid,function(err, reply) {
                callback(err,reply);
            });
        },
        "keyup" : function(callback) {
            client.sismember(keyup,userid,function(err, reply) {
                callback(err,reply);
            });
        }
    },function(err,result){
        if ( err ) {
            writeRes(RESULT.ERROR);
        } else {
            var toexecuteAsync = null;
            //happy day scenario
            if ( result.keydown === 0 && result.keyup === 0 ) {
                //no vote do what is right
                toexecuteAsync = function(callback) {
                    client.sadd(keyup,userid,function(err,reply) {
                        callback(result.article,RESULT.VOTE_UP_SUCCESS);
                    });
                };

                //he wants to vote up, but he has a vote down, remove his vote down instead
            } else if ( result.keydown === 1 && result.keyup === 0 ) {
                toexecuteAsync = function(callback) {
                    client.srem(keydown,userid,function(err,reply) {
                        callback(result.article,RESULT.VOTE_DOWN_REMOVED);
                    });
                };
                //he wants to vote up but he has already a key up, remove key up
            } else if ( result.keydown === 0 && result.keyup ===  1 ) {
                toexecuteAsync = function(callback) {
                    client.srem(keyup,userid,function(err,reply) {
                        callback(result.article,RESULT.VOTE_UP_REMOVED);
                    });
                };
            }

            toexecuteAsync(function(article,resultKey) {
                articleService.set_article_stats(article,function(err){

                    if ( err ) {
                        writeRes(res,RESULT.ERROR);
                    } else {
                        writeRes(res,resultKey);
                    }
                });
            });
        }

    });

});

module.exports = router;


text:
layout: default
title: "Media Issues"

---

{% include interests/media-issues.md %}

### Who is interested in Media Issues?

* [Angie Bray]({{ site.baseurl }}/members/angie-bray.html)


text:
var setValueOpposite=function(imgObject,actionUrl){
	var oSrc=imgObject.src.toString();
	var oTitle=imgObject.title.toString();
	var oRef=imgObject.getAttribute('ref').toString();
	var oRev=imgObject.getAttribute('rev').toString();
	var oTitle=imgObject.title.toString();
	var oValue=imgObject.getAttribute('ret').toInt();
	//
	imgObject.src='/images/loading.gif';

	var req = new Request.HTML({url:actionUrl+oValue,
	onSuccess: function(html) {
		imgObject.src=oRev;
		imgObject.alt=oRef;
		imgObject.title=oRef;
		imgObject.rev=oSrc;
		imgObject.ref=oTitle;
		imgObject.ref=oTitle;
		imgObject.ret=(1-oValue).toInt();
	},
	onFailure: function() {
		alert('发生未知错误');
	}
	});
	req.send();
}
function itemCheck(id){
	var item=$('checkItem'+id)
	if(item.checked){
		item.checked=false;
	}else{
		item.checked=true;
	}
}


text:
namespace DtronixMessageQueue.Rpc
{
    /// <summary>
    /// Command types for Rpc commands.
    /// </summary>
    public enum RpcCommandType : byte
    {
        /// <summary>
        /// Server is sending a welcome message to the client with basic information about the server
        /// and authentication requirements.
        /// </summary>
        WelcomeMessage = 0,

        /// <summary>
        /// Client is sending an authentication request to the server with token data.
        /// </summary>
        AuthenticationRequest = 1,

        /// <summary>
        /// Server is sending the result of the authentication request.
        /// </summary>
        AuthenticationSuccess = 2,
    }
}


text:
namespace Trinity.Implementations.Wallets.EntityFramework
{
	internal class Key
	{
		public string Name { get; set; }
		public string Value { get; set; }
	}
}


text:
package com.qualcomm.ftcrobotcontroller.opmodes;

import com.qualcomm.ftccommon.DbgLog;
import com.qualcomm.ftcrobotcontroller.geekmybot.Behaviors_Joystick;
import com.qualcomm.ftcrobotcontroller.geekmybot.Behaviors_JsGyro_Heading;
import com.qualcomm.ftcrobotcontroller.geekmybot.GlobalData;
import com.qualcomm.ftcrobotcontroller.geekmybot.JsScale;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.GyroSensor;
import com.qualcomm.robotcore.hardware.IrSeekerSensor;

/**
 * Created by dlacres2 on 8/12/2016.
 *
 * TODO Test - Does the Y button toggle between drive and IR?
 * TODO Test this module. Does the bot turn to the IR Beacon?
 * Features
 *   Core motor controller for left/right motor drive
 *   Joystick in arcade
 *   Rate Gyro used for steering
 */
public class H1TeleOp_Js extends OpMode {

    // Constructor
    JsScale jsScale;
    public H1TeleOp_Js(){
        jsScale=new JsScale();
    }

    // Run one time
    DcMotor motorRight;
    DcMotor motorLeft;
    GyroSensor sensorGyro;
    Behaviors_Joystick be;
    GlobalData gd;
    IrSeekerSensor irSeeker;

    @Override
    public void init() {

        //hardwareMap.logDevices();

        irSeeker = hardwareMap.irSeekerSensor.get("ir");
        motorRight = hardwareMap.dcMotor.get("m2");
        motorLeft = hardwareMap.dcMotor.get("m1");
        motorLeft.setDirection(DcMotor.Direction.REVERSE);

        // get a reference to our GyroSensor object.
        sensorGyro = hardwareMap.gyroSensor.get("gyro");

        // calibrate the gyro.
        sensorGyro.calibrate();

        // make sure the gyro is calibrated.
        while (sensorGyro.isCalibrating())  {
            try {
                Thread.sleep(50);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        sensorGyro.resetZAxisIntegrator();

        // Setup the behavior model
        gd = new GlobalData();
        be = new Behaviors_Joystick(gd);

        // Initilize the past value of time.
        gd.time=(float)time;

        DbgLog.msg("Init Mode");
    }

    // Run periodically when sensors are read
    @Override
    public void loop() {
        // throttle: left_stick_y ranges from -1 to 1, where -1 is full up, and
        // 1 is full down
        // direction: left_stick_x ranges from -1 to 1, where -1 is full left
        // and 1 is full right
        gd.throttleJs = gamepad1.left_stick_y;
        gd.directionJs = -gamepad1.left_stick_x;

        gd.headingDot = (float)sensorGyro.rawZ(); //An integer value of 1 is 1 deg/sec of rotation
        gd.heading = (float)sensorGyro.getHeading(); //An integer value of 0 to 359 degrees
        if (gd.heading > 180) gd.heading = gd.heading - 360;

        gd.buttonX = gamepad1.x;
        gd.buttonY = gamepad1.y;
        gd.dpadRt = gamepad1.dpad_right;
        gd.dpadLt = gamepad1.dpad_left;
        gd.dpadUp = gamepad1.dpad_up;
        gd.dpadDn = gamepad1.dpad_down;

        // IR Seeker
        //gd.irAngle=irSeeker.getAngle();
        //gd.irStrength=irSeeker.getStrength();
        //gd.irDetected=irSeeker.signalDetected();

        // Pass time to the behaviors
        gd.deltaTime = (float)time - gd.time;
        gd.time=(float)time;

        // Run the state machine
        be.onLoop();

        // write the values to the motors
        motorRight.setPower(gd.rightCmd);
        motorLeft.setPower(gd.leftCmd);
        //motorRight.setPower(0.0f);
        //motorLeft.setPower(0.0f);
        //motorLeft.setPower(0.3);

        telemetry.addData("_Behavior", be.getActiveBehavior().getName());
        //telemetry.addData("Time", "elapsed time: " + Double.toString(this.time));
//        telemetry.addData("Throttle", Float.toString(gd.throttleJs));
        telemetry.addData("rightLeftPower", Float.toString(gd.rightCmd+gd.leftCmd));
        //telemetry.addData("rightLeftPower1", Float.toString(gd.rightCmd1+gd.leftCmd1));
        //telemetry.addData("IR Strength", Double.toString(gd.irStrength));
//        telemetry.addData("Heading", Double.toString(gd.heading));
//        telemetry.addData("debugFloat1", Float.toString(gd.debugFloat1));
//        telemetry.addData("HeadingDot", Float.toString(gd.headingDot));
        telemetry.addData("Left Js Y", Float.toString(gamepad1.left_stick_x));
        telemetry.addData("dpad Rt", Boolean.toString(gd.dpadRt));
        telemetry.addData("HeadingCmd", Float.toString(gd.headingCmd));
        //telemetry.addData("Debug Float 1", Float.toString(gd.debugFloat1));
        //telemetry.addData("Debug Float 2", Float.toString(gd.debugFloat2));

        //DbgLog.msg("Run Mode");
    }
}


text:
import("core.base.option")
import("core.project.config")
import("lib.detect.find_file")

-- get ndk directory
function _get_ndkdir()
    local ndk = assert(config.get("ndk"), "ndkbuild: please uses `xmake f --ndk=` to set the ndk path!")
    return path.absolute(ndk)
end

-- detect build-system and configuration file
function detect()
    return find_file("Android.mk", path.join(os.curdir(), "jni"))
end

-- do clean
function clean()

    -- get the ndk root directory
    local ndk = _get_ndkdir()
    assert(os.isdir(ndk), "%s not found!", ndk)

    -- do clean
    os.vexecv(path.join(ndk, "ndk-build"), {"clean"}, {envs = {NDK_ROOT = ndk}})
end

-- do build
function build()

    -- only support the android platform now!
    assert(is_plat("android"), "ndkbuild: please uses `xmake f -p android --trybuild=ndkbuild` to switch to android platform!")

    -- get the ndk root directory
    local ndk = _get_ndkdir()
    assert(os.isdir(ndk), "%s not found!", ndk)

    -- do build
    local argv = {}
    if option.get("verbose") then
        table.insert(argv, "V=1")
    end
    local ndkbuild = path.join(ndk, "ndk-build")
    if is_host("windows") then
        ndkbuild = ndkbuild .. ".cmd"
    end
    os.vexecv(ndkbuild, argv, {envs = {NDK_ROOT = ndk}})
    cprint("${color.success}build ok!")
end


text:
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:

#ifndef FLUSSPFERD_IO_IO_HPP
#define FLUSSPFERD_IO_IO_HPP

#include "../init.hpp"
#include "../object.hpp"

namespace flusspferd { namespace io {

object load_io_module(object container);

}}

#endif


text:
namespace GraphicsMagick
{
	//==============================================================================================
	DrawablePushPattern::DrawablePushPattern(String^ id, int x, int y, int width, int height)
	{
		std::string patternID;
		BaseValue = new Magick::DrawablePushPattern(Marshaller::Marshal(id, patternID), x, y, width, height);
	}
	//==============================================================================================
}


text:
package org.apache.hadoop.ozone.container.common.states.endpoint;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hdds.conf.OzoneConfiguration;
import org.apache.hadoop.hdds.protocol.DatanodeDetails;
import org.apache.hadoop.hdds.protocol.proto
    .StorageContainerDatanodeProtocolProtos.ContainerAction;
import org.apache.hadoop.hdds.protocol.proto
    .StorageContainerDatanodeProtocolProtos.CommandStatusReportsProto;
import org.apache.hadoop.hdds.protocol.proto
    .StorageContainerDatanodeProtocolProtos.ContainerReportsProto;
import org.apache.hadoop.hdds.protocol.proto
    .StorageContainerDatanodeProtocolProtos.NodeReportProto;
import org.apache.hadoop.hdds.protocol.proto
    .StorageContainerDatanodeProtocolProtos.SCMHeartbeatResponseProto;
import org.apache.hadoop.hdds.protocol.proto
    .StorageContainerDatanodeProtocolProtos.SCMHeartbeatRequestProto;
import org.apache.hadoop.ozone.container.common.statemachine
    .DatanodeStateMachine;
import org.apache.hadoop.ozone.container.common.statemachine
    .DatanodeStateMachine.DatanodeStates;
import org.apache.hadoop.ozone.container.common.statemachine
    .EndpointStateMachine;
import org.apache.hadoop.ozone.container.common.statemachine.StateContext;
import org.apache.hadoop.ozone.protocolPB
    .StorageContainerDatanodeProtocolClientSideTranslatorPB;

import org.junit.Assert;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;

import java.util.UUID;

/**
 * This class tests the functionality of HeartbeatEndpointTask.
 */
public class TestHeartbeatEndpointTask {

  @Test
  public void testheartbeatWithoutReports() throws Exception {
    StorageContainerDatanodeProtocolClientSideTranslatorPB scm =
        Mockito.mock(
            StorageContainerDatanodeProtocolClientSideTranslatorPB.class);
    ArgumentCaptor<SCMHeartbeatRequestProto> argument = ArgumentCaptor
        .forClass(SCMHeartbeatRequestProto.class);
    Mockito.when(scm.sendHeartbeat(argument.capture()))
        .thenAnswer(invocation ->
            SCMHeartbeatResponseProto.newBuilder()
                .setDatanodeUUID(
                    ((SCMHeartbeatRequestProto)invocation.getArgument(0))
                        .getDatanodeDetails().getUuid())
                .build());

    HeartbeatEndpointTask endpointTask = getHeartbeatEndpointTask(scm);
    endpointTask.call();
    SCMHeartbeatRequestProto heartbeat = argument.getValue();
    Assert.assertTrue(heartbeat.hasDatanodeDetails());
    Assert.assertFalse(heartbeat.hasNodeReport());
    Assert.assertFalse(heartbeat.hasContainerReport());
    Assert.assertTrue(heartbeat.getCommandStatusReportsCount() == 0);
    Assert.assertFalse(heartbeat.hasContainerActions());
  }

  @Test
  public void testheartbeatWithNodeReports() throws Exception {
    Configuration conf = new OzoneConfiguration();
    StateContext context = new StateContext(conf, DatanodeStates.RUNNING,
        Mockito.mock(DatanodeStateMachine.class));

    StorageContainerDatanodeProtocolClientSideTranslatorPB scm =
        Mockito.mock(
            StorageContainerDatanodeProtocolClientSideTranslatorPB.class);
    ArgumentCaptor<SCMHeartbeatRequestProto> argument = ArgumentCaptor
        .forClass(SCMHeartbeatRequestProto.class);
    Mockito.when(scm.sendHeartbeat(argument.capture()))
        .thenAnswer(invocation ->
            SCMHeartbeatResponseProto.newBuilder()
                .setDatanodeUUID(
                    ((SCMHeartbeatRequestProto)invocation.getArgument(0))
                        .getDatanodeDetails().getUuid())
                .build());

    HeartbeatEndpointTask endpointTask = getHeartbeatEndpointTask(
        conf, context, scm);
    context.addReport(NodeReportProto.getDefaultInstance());
    endpointTask.call();
    SCMHeartbeatRequestProto heartbeat = argument.getValue();
    Assert.assertTrue(heartbeat.hasDatanodeDetails());
    Assert.assertTrue(heartbeat.hasNodeReport());
    Assert.assertFalse(heartbeat.hasContainerReport());
    Assert.assertTrue(heartbeat.getCommandStatusReportsCount() == 0);
    Assert.assertFalse(heartbeat.hasContainerActions());
  }

  @Test
  public void testheartbeatWithContainerReports() throws Exception {
    Configuration conf = new OzoneConfiguration();
    StateContext context = new StateContext(conf, DatanodeStates.RUNNING,
        Mockito.mock(DatanodeStateMachine.class));

    StorageContainerDatanodeProtocolClientSideTranslatorPB scm =
        Mockito.mock(
            StorageContainerDatanodeProtocolClientSideTranslatorPB.class);
    ArgumentCaptor<SCMHeartbeatRequestProto> argument = ArgumentCaptor
        .forClass(SCMHeartbeatRequestProto.class);
    Mockito.when(scm.sendHeartbeat(argument.capture()))
        .thenAnswer(invocation ->
            SCMHeartbeatResponseProto.newBuilder()
                .setDatanodeUUID(
                    ((SCMHeartbeatRequestProto)invocation.getArgument(0))
                        .getDatanodeDetails().getUuid())
                .build());

    HeartbeatEndpointTask endpointTask = getHeartbeatEndpointTask(
        conf, context, scm);
    context.addReport(ContainerReportsProto.getDefaultInstance());
    endpointTask.call();
    SCMHeartbeatRequestProto heartbeat = argument.getValue();
    Assert.assertTrue(heartbeat.hasDatanodeDetails());
    Assert.assertFalse(heartbeat.hasNodeReport());
    Assert.assertTrue(heartbeat.hasContainerReport());
    Assert.assertTrue(heartbeat.getCommandStatusReportsCount() == 0);
    Assert.assertFalse(heartbeat.hasContainerActions());
  }

  @Test
  public void testheartbeatWithCommandStatusReports() throws Exception {
    Configuration conf = new OzoneConfiguration();
    StateContext context = new StateContext(conf, DatanodeStates.RUNNING,
        Mockito.mock(DatanodeStateMachine.class));

    StorageContainerDatanodeProtocolClientSideTranslatorPB scm =
        Mockito.mock(
            StorageContainerDatanodeProtocolClientSideTranslatorPB.class);
    ArgumentCaptor<SCMHeartbeatRequestProto> argument = ArgumentCaptor
        .forClass(SCMHeartbeatRequestProto.class);
    Mockito.when(scm.sendHeartbeat(argument.capture()))
        .thenAnswer(invocation ->
            SCMHeartbeatResponseProto.newBuilder()
                .setDatanodeUUID(
                    ((SCMHeartbeatRequestProto)invocation.getArgument(0))
                        .getDatanodeDetails().getUuid())
                .build());

    HeartbeatEndpointTask endpointTask = getHeartbeatEndpointTask(
        conf, context, scm);
    context.addReport(CommandStatusReportsProto.getDefaultInstance());
    endpointTask.call();
    SCMHeartbeatRequestProto heartbeat = argument.getValue();
    Assert.assertTrue(heartbeat.hasDatanodeDetails());
    Assert.assertFalse(heartbeat.hasNodeReport());
    Assert.assertFalse(heartbeat.hasContainerReport());
    Assert.assertTrue(heartbeat.getCommandStatusReportsCount() != 0);
    Assert.assertFalse(heartbeat.hasContainerActions());
  }

  @Test
  public void testheartbeatWithContainerActions() throws Exception {
    Configuration conf = new OzoneConfiguration();
    StateContext context = new StateContext(conf, DatanodeStates.RUNNING,
        Mockito.mock(DatanodeStateMachine.class));

    StorageContainerDatanodeProtocolClientSideTranslatorPB scm =
        Mockito.mock(
            StorageContainerDatanodeProtocolClientSideTranslatorPB.class);
    ArgumentCaptor<SCMHeartbeatRequestProto> argument = ArgumentCaptor
        .forClass(SCMHeartbeatRequestProto.class);
    Mockito.when(scm.sendHeartbeat(argument.capture()))
        .thenAnswer(invocation ->
            SCMHeartbeatResponseProto.newBuilder()
                .setDatanodeUUID(
                    ((SCMHeartbeatRequestProto)invocation.getArgument(0))
                        .getDatanodeDetails().getUuid())
                .build());

    HeartbeatEndpointTask endpointTask = getHeartbeatEndpointTask(
        conf, context, scm);
    context.addContainerAction(getContainerAction());
    endpointTask.call();
    SCMHeartbeatRequestProto heartbeat = argument.getValue();
    Assert.assertTrue(heartbeat.hasDatanodeDetails());
    Assert.assertFalse(heartbeat.hasNodeReport());
    Assert.assertFalse(heartbeat.hasContainerReport());
    Assert.assertTrue(heartbeat.getCommandStatusReportsCount() == 0);
    Assert.assertTrue(heartbeat.hasContainerActions());
  }

  @Test
  public void testheartbeatWithAllReports() throws Exception {
    Configuration conf = new OzoneConfiguration();
    StateContext context = new StateContext(conf, DatanodeStates.RUNNING,
        Mockito.mock(DatanodeStateMachine.class));

    StorageContainerDatanodeProtocolClientSideTranslatorPB scm =
        Mockito.mock(
            StorageContainerDatanodeProtocolClientSideTranslatorPB.class);
    ArgumentCaptor<SCMHeartbeatRequestProto> argument = ArgumentCaptor
        .forClass(SCMHeartbeatRequestProto.class);
    Mockito.when(scm.sendHeartbeat(argument.capture()))
        .thenAnswer(invocation ->
            SCMHeartbeatResponseProto.newBuilder()
                .setDatanodeUUID(
                    ((SCMHeartbeatRequestProto)invocation.getArgument(0))
                        .getDatanodeDetails().getUuid())
                .build());

    HeartbeatEndpointTask endpointTask = getHeartbeatEndpointTask(
        conf, context, scm);
    context.addReport(NodeReportProto.getDefaultInstance());
    context.addReport(ContainerReportsProto.getDefaultInstance());
    context.addReport(CommandStatusReportsProto.getDefaultInstance());
    context.addContainerAction(getContainerAction());
    endpointTask.call();
    SCMHeartbeatRequestProto heartbeat = argument.getValue();
    Assert.assertTrue(heartbeat.hasDatanodeDetails());
    Assert.assertTrue(heartbeat.hasNodeReport());
    Assert.assertTrue(heartbeat.hasContainerReport());
    Assert.assertTrue(heartbeat.getCommandStatusReportsCount() != 0);
    Assert.assertTrue(heartbeat.hasContainerActions());
  }

  /**
   * Creates HeartbeatEndpointTask for the given StorageContainerManager proxy.
   *
   * @param proxy StorageContainerDatanodeProtocolClientSideTranslatorPB
   *
   * @return HeartbeatEndpointTask
   */
  private HeartbeatEndpointTask getHeartbeatEndpointTask(
      StorageContainerDatanodeProtocolClientSideTranslatorPB proxy) {
    Configuration conf = new OzoneConfiguration();
    StateContext context = new StateContext(conf, DatanodeStates.RUNNING,
        Mockito.mock(DatanodeStateMachine.class));
    return getHeartbeatEndpointTask(conf, context, proxy);

  }

  /**
   * Creates HeartbeatEndpointTask with the given conf, context and
   * StorageContainerManager client side proxy.
   *
   * @param conf Configuration
   * @param context StateContext
   * @param proxy StorageContainerDatanodeProtocolClientSideTranslatorPB
   *
   * @return HeartbeatEndpointTask
   */
  private HeartbeatEndpointTask getHeartbeatEndpointTask(
      Configuration conf,
      StateContext context,
      StorageContainerDatanodeProtocolClientSideTranslatorPB proxy) {
    DatanodeDetails datanodeDetails = DatanodeDetails.newBuilder()
        .setUuid(UUID.randomUUID().toString())
        .setHostName("localhost")
        .setIpAddress("127.0.0.1")
        .build();
    EndpointStateMachine endpointStateMachine = Mockito
        .mock(EndpointStateMachine.class);
    Mockito.when(endpointStateMachine.getEndPoint()).thenReturn(proxy);
    return HeartbeatEndpointTask.newBuilder()
        .setConfig(conf)
        .setDatanodeDetails(datanodeDetails)
        .setContext(context)
        .setEndpointStateMachine(endpointStateMachine)
        .build();
  }

  private ContainerAction getContainerAction() {
    ContainerAction.Builder builder = ContainerAction.newBuilder();
    builder.setContainerID(1L)
        .setAction(ContainerAction.Action.CLOSE)
        .setReason(ContainerAction.Reason.CONTAINER_FULL);
    return builder.build();
  }
}


text:
module ROM
  module Dynamo
    class Relation < ROM::Relation
      require 'rom/dynamo/relation/dataset'
      require 'rom/dynamo/relation/retrieval_dataset'
      require 'rom/dynamo/relation/scan_dataset'
      require 'rom/dynamo/relation/batch_get_dataset'

      adapter :dynamo

      forward :restrict, :scan, :retrieve, :batch_get

      def insert(*args)
        dataset.insert(*args)
        self
      end

      def update(*args)
        dataset.update(*args)
        self
      end

      def delete(*args)
        dataset.delete(*args)
        self
      end
    end
  end
end


text:
var page = require('webpage').create();
var fs = require('fs');
var Resurrect = require('../lib/resurrect');
var compare = require('fast-json-patch').compare;
var system = require('system');

var demo,
    frames = 10,
    testUrl = 'http://localhost:8000/demo/index.html',
    refsPath = 'test/browser/refs',
    diffsPath = 'test/browser/diffs';

var update = arg('--update'),
    updateAll = typeof arg('--updateAll') !== 'undefined',
    diff = arg('--diff');

var resurrect = new Resurrect({ cleanup: true, revive: false }),
    created = [],
    changed = [];

var test = function(status) {
    if (status === 'fail') {
        console.log('failed to load', testUrl);
        console.log('check dev server is running!');
        console.log('use `grunt dev`');
        phantom.exit(1);
        return;
    }

    var demos = page.evaluate(function() {
        var demoSelect = document.getElementById('demo-select'),
            options = Array.prototype.slice.call(demoSelect);
        return options.map(function(o) { return o.value; });
    });

    fs.removeTree(diffsPath);

    if (diff) {
        fs.makeDirectory(diffsPath);
    }

    for (var i = 0; i < demos.length; i += 1) {
        demo = demos[i];

        var hasChanged = false,
            hasCreated = false,
            forceUpdate = update === demo || updateAll,
            worldStartPath = refsPath + '/' + demo + '/' + demo + '-0.json',
            worldEndPath = refsPath + '/' + demo + '/' + demo + '-' + frames + '.json',
            worldStartDiffPath = diffsPath + '/' + demo + '/' + demo + '-0.json',
            worldEndDiffPath = diffsPath + '/' + demo + '/' + demo + '-' + frames + '.json';

        var worldStart = page.evaluate(function(demo) {
            if (!(demo in Matter.Example)) {
                throw '\'' + demo + '\' is not defined in Matter.Demo';
            }

            var _demo = Matter.Demo.create(),
                engine = Matter.Example.engine(_demo),
                runner = Matter.Runner.create();

            Matter.Demo._demo = _demo;
            _demo.engine = engine;
            _demo.engine.render = {};
            _demo.engine.render.options = {};
            _demo.runner = runner;
            _demo.mouseConstraint = Matter.MouseConstraint.create(engine);

            Matter.Demo.reset(_demo);
            Matter.Example[demo](_demo);

            return engine.world;
        }, demo);

        var worldEnd = page.evaluate(function(demo, frames) {
            var engine = Matter.Demo._demo.engine,
                runner = Matter.Demo._demo.runner;

            for (var j = 0; j <= frames; j += 1) {
                Matter.Runner.tick(runner, engine, j * runner.delta);
            }

            return engine.world;
        }, demo, frames);

        worldEnd = JSON.parse(resurrect.stringify(worldEnd, precisionLimiter));
        worldStart = JSON.parse(resurrect.stringify(worldStart, precisionLimiter));

        if (fs.exists(worldStartPath)) {
            var worldStartRef = JSON.parse(fs.read(worldStartPath));
            var worldStartDiff = compare(worldStartRef, worldStart);

            if (worldStartDiff.length !== 0) {
                if (diff) {
                    fs.write(worldStartDiffPath, JSON.stringify(worldStartDiff, precisionLimiter, 2), 'w');
                }

                if (forceUpdate) {
                    hasCreated = true;
                    fs.write(worldStartPath, JSON.stringify(worldStart, precisionLimiter, 2), 'w');
                } else {
                    hasChanged = true;
                }
            }
        } else {
            hasCreated = true;
            fs.write(worldStartPath, JSON.stringify(worldStart, precisionLimiter, 2), 'w');
        }

        if (fs.exists(worldEndPath)) {
            var worldEndRef = JSON.parse(fs.read(worldEndPath));
            var worldEndDiff = compare(worldEndRef, worldEnd);

            if (worldEndDiff.length !== 0) {
                if (diff) {
                    fs.write(worldEndDiffPath, JSON.stringify(worldEndDiff, precisionLimiter, 2), 'w');
                }

                if (forceUpdate) {
                    hasCreated = true;
                    fs.write(worldEndPath, JSON.stringify(worldEnd, precisionLimiter, 2), 'w');
                } else {
                    hasChanged = true;
                }
            }
        } else {
            hasCreated = true;
            fs.write(worldEndPath, JSON.stringify(worldEnd, precisionLimiter, 2), 'w');
        }

        if (hasChanged) {
            changed.push("'" + demo + "'");
            system.stdout.write('x');
        } else if (hasCreated) {
            created.push("'" + demo + "'");
            system.stdout.write('+');
        } else {
            system.stdout.write('.');
        }
    }

    if (created.length > 0) {
        console.log('\nupdated', created.join(', '));
    }

    var isOk = changed.length === 0 ? 1 : 0;

    console.log('');

    if (isOk) {
        console.log('ok');
    } else {
        console.log('\nchanges detected on:');
        console.log(changed.join(', '));
        console.log('\nreview, then --update [name] or --updateAll');
        console.log('use --diff for diff log');
    }

    phantom.exit(!isOk);
};

var precisionLimiter = function(key, value) {
    if (typeof value === 'number') {
        return parseFloat(value.toFixed(5));
    }
    return value;
};

function arg(name) {
    var index = system.args.indexOf(name);
    if (index >= 0) {
        return system.args[index + 1] || true;
    }
    return undefined;
}

page.onError = function(msg, trace) {
    setTimeout(function() {
        var msgStack = ['testing \'' + demo + '\'', msg];

        if (trace && trace.length) {
            trace.forEach(function(t) {
                msgStack.push(' at ' + (t.file || t.sourceURL) + ': ' + t.line + (t.function ? ' (fn: ' + t.function +')' : ''));
            });
        }

        console.log(msgStack.join('\n'));
        phantom.exit(1);
    }, 0);
};

page.onResourceReceived = function(res) {
    setTimeout(function() {
        if (res.stage === 'end'
            && (res.status !== 304 && res.status !== 200 && res.status !== null)) {
            console.log('error', res.status, res.url);
            phantom.exit(1);
        }
    }, 0);
};

phantom.onError = page.onError;

page.open(testUrl, test);


text:
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Northwind.Models
{
    [Table("Supplier")]
    public partial class Supplier
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public Supplier()
        {
            Product = new HashSet<Product>();
        }

        public int ID { get; set; }

        [StringLength(40)]
        public string Name { get; set; }

        [StringLength(30)]
        public string ContactName { get; set; }

        [StringLength(30)]
        public string ContactTitle { get; set; }

        [StringLength(60)]
        public string Address { get; set; }

        [StringLength(15)]
        public string City { get; set; }

        [StringLength(15)]
        public string Region { get; set; }

        [StringLength(10)]
        public string PostalCode { get; set; }

        [StringLength(15)]
        public string Country { get; set; }

        [StringLength(24)]
        public string Phone { get; set; }

        [StringLength(24)]
        public string Fax { get; set; }

        [Column(TypeName = "ntext")]
        public string HomePage { get; set; }

        [Column(TypeName = "timestamp")]
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        [MaxLength(8)]
        public byte[] RowTimeStamp { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Product> Product { get; set; }
    }
}


text:
/****************************************************************************
** Meta object code from reading C++ file 'comsettings.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../comsettings.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'comsettings.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.2.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
struct qt_meta_stringdata_ComSettings_t {
    QByteArrayData data[1];
    char stringdata[13];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    offsetof(qt_meta_stringdata_ComSettings_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData) \
    )
static const qt_meta_stringdata_ComSettings_t qt_meta_stringdata_ComSettings = {
    {
QT_MOC_LITERAL(0, 0, 11)
    },
    "ComSettings\0"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_ComSettings[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       0,    0, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

       0        // eod
};

void ComSettings::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

const QMetaObject ComSettings::staticMetaObject = {
    { &QDialog::staticMetaObject, qt_meta_stringdata_ComSettings.data,
      qt_meta_data_ComSettings,  qt_static_metacall, 0, 0}
};

const QMetaObject *ComSettings::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *ComSettings::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_ComSettings.stringdata))
        return static_cast<void*>(const_cast< ComSettings*>(this));
    return QDialog::qt_metacast(_clname);
}

int ComSettings::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDialog::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    return _id;
}
QT_END_MOC_NAMESPACE


text:
<fc-content-head title="{{pageHead}}" desc="{{pageHeadDesc}}"></fc-content-head>

    <form class="form-horizontal" novalidate>

          <input type="text" class="form-control" id="username" ng-model="member.username">

          <button type="submit" class="btn btn-default" ng-click="updateMember()"
                  fc-i18n="user.profile.form.submit"></button>

    </form>

    <form class="form-horizontal" novalidate>

          <input type="password" class="form-control" id="oldPass" ng-model="changePasswordOption.oldPass">

          <input type="password" class="form-control" id="newPass" ng-model="changePasswordOption.newPass">

{{changePasswordResult.message}}

          <button type="submit" class="btn btn-danger" ng-click="updatePassword()"
                  fc-i18n="user.profile.form.submit"></button>

    </form>


text:
from panda3d.core import *

class DNAStorage():
	def __init__(self):
		self.nodes = {}
		self.catalogCodes = {}
		self.fonts = []
		self.textures = []
		self.hoodNodes = {}
		self.placeNodes = {}
		self.visGroups = []
		self.visGroupsAI = []
		self.dnaGroups = []

	def storeNode(self, node, p):
		self.nodes[node] = p

	def storeCatalogCode(self, root, code):
		self.catalogCodes[root] = code

	def storeFont(self, font, dir=None):
		font = font.capitalize()
		if font =='Mickey':
			self.fonts.append(loader.loadFont('phase_3/models/fonts/'+ font + 'Font' + '.bam'))
		elif font == 'Minnie':
			self.fonts.append(loader.loadFont('phase_3/models/fonts/'+ font + 'Font' + '.bam'))
		elif font == 'Suit': #TODO
			pass
		elif font == 'Tt_comedy':
			self.fonts.append(loader.loadFont('phase_3/models/fonts/Comedy.bam'))
		else:
			self.fonts.append(loader.loadFont('phase_3/models/fonts/'+ font + '.bam'))

	def storeTexture(self, name, texture):
		self.textures.append({name: loader.loadTexture(texture)})

	def storeHoodNode(self, node, p):
		self.hoodNodes[node] = p

	def storePlaceNode(self, node, p):
		self.placeNodes[node] = p

	def resetDNAVisGroups(self):
		self.visGroups = []

	def getNumDNAVisGroups(self):
		return len(self.visGroups)

	def resetDNAVisGroupsAI(self):
		self.visGroupsAI = []

	def resetPlaceNodes(self):
		self.placeNodes = {}

	def resetDNAGroups(self):
		self.dnaGroups = []

	def resetHood(self):
		self.hoodNodes = {}
		self.placeNodes = {}


text:
package middleware

import (
	"net/http"
)

// WrapAccesslog is a middleware that writes the access log.
func WrapAccesslog(h http.Handler) http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		// TODO
		h.ServeHTTP(w, r)
	})
}


text:
<?php

namespace Scribe\MantleBundle\Component\Translation;

use Scribe\MantleBundle\Component\DependencyInjection\Aware\EntityManagerAwareTrait;
use Symfony\Component\Translation\Loader\LoaderInterface;
use Symfony\Component\Translation\MessageCatalogue;

/**
 * Class DatabaseLoader.
 */
class DatabaseLoader implements LoaderInterface
{
    use EntityManagerAwareTrait;

    /**
     * @param mixed  $resource
     * @param string $locale
     * @param string $domain
     *
     * @return MessageCatalogue
     */
    public function load($resource, $locale, $domain = 'messages')
    {
        $catalogue = new MessageCatalogue($locale);
        $catalogue->add($this->getMessages(), $domain);

        return $catalogue;
    }

    public function getMessages()
    {
        $messages = [];
    }
}


text:
package com.huawei.push.reponse;

/**
 * A class of reponse which exposed to developer
 */
public class SendResponse {
    private final String code;
    private final String msg;
    private final String requestId;

    protected SendResponse(String coede, String msg, String requestId) {
        this.code = coede;
        this.msg = msg;
        this.requestId = requestId;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public String getRequestId() {
        return requestId;
    }

    public static SendResponse fromCode(String coede, String msg, String requestId) {
        return new SendResponse(coede, msg, requestId);
    }
}


text:
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Super audio</title>
    <link href="app/elements/my-super-audio/my-super-audio.html" rel="import">
</head>
<body>
    <my-super-audio author="David" title="My Podcast #17" src="app/elements/my-super-audio/starwars.wav"></my-super-audio>
</body>
</html>


text: Ruby utility for squashing Ranges


text:
using Newtonsoft.Json;
using System;
using Thinktecture.IdentityServer.Core.Models;
using Thinktecture.IdentityServer.Core.Services;

namespace Thinktecture.IdentityServer.EntityFramework.Serialization
{
    public class ClientLite
    {
        public string ClientId { get; set; }
    }

    public class ClientConverter : JsonConverter
    {
        private readonly IClientStore _clientStore;

        public ClientConverter(IClientStore clientStore)
        {
            if (clientStore == null) throw new ArgumentNullException("clientStore");

            _clientStore = clientStore;
        }

        public override bool CanConvert(Type objectType)
        {
            return typeof(Client) == objectType;
        }

        public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
        {
            var source = serializer.Deserialize<ClientLite>(reader);
            return AsyncHelper.RunSync(async () => await _clientStore.FindClientByIdAsync(source.ClientId));
        }

        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            var source = (Client)value;

            var target = new ClientLite
            {
                ClientId = source.ClientId
            };
            serializer.Serialize(writer, target);
        }
    }
}


text:
class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.string :content
    end
  end
end


text:
'use strict';
import React, { Component } from 'react';

export default class PubReferenceList extends Component {
    render() {
        var props = this.props;
        return (

                {props.values.map(function (value, index) {
                    return value.identifiers.map(function (identifier, index) {
                        return (

                            {identifier}

);
                    })
                })}

        );
    }
}


text:
package com.microsoft.aad.msal4j;

enum AuthorityType {
    AAD, ADFS, B2C
}


text:
Param($DomainFullName,$DPMPName,$Role,$ProvisionToolPath)

$logpath = $ProvisionToolPath+"\InstallDPlog.txt"
$ConfigurationFile = Join-Path -Path $ProvisionToolPath -ChildPath "$Role.json"
$Configuration = Get-Content -Path $ConfigurationFile | ConvertFrom-Json

#Install DP and MP
$Configuration.InstallDP.Status = 'Running'
$Configuration.InstallDP.StartTime = Get-Date -format "yyyy-MM-dd HH:mm:ss"
$Configuration | ConvertTo-Json | Out-File -FilePath $ConfigurationFile -Force

"[$(Get-Date -format "MM/dd/yyyy HH:mm:ss")] Start running add distribution point script." | Out-File -Append $logpath
$key = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, [Microsoft.Win32.RegistryView]::Registry32)
$subKey =  $key.OpenSubKey("SOFTWARE\Microsoft\ConfigMgr10\Setup")
$uiInstallPath = $subKey.GetValue("UI Installation Directory")
$modulePath = $uiInstallPath+"bin\ConfigurationManager.psd1"
Import-Module $modulePath
$key = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, [Microsoft.Win32.RegistryView]::Registry64)
$subKey =  $key.OpenSubKey("SOFTWARE\Microsoft\SMS\Identification")
$SiteCode =  $subKey.GetValue("Site Code")
$MachineName = $DPMPName + "." + $DomainFullName
$initParams = @{}
Set-Location "$($SiteCode):\" @initParams

$SystemServer = Get-CMSiteSystemServer -SiteSystemServerName $MachineName
if(!$SystemServer)
{
    "[$(Get-Date -format "MM/dd/yyyy HH:mm:ss")] Creating cm site system server..." | Out-File -Append $logpath
    New-CMSiteSystemServer -SiteSystemServerName $MachineName | Out-File -Append $logpath
    "[$(Get-Date -format "MM/dd/yyyy HH:mm:ss")] Finished creating cm site system server." | Out-File -Append $logpath
    $Date = [DateTime]::Now.AddYears(30)
    $SystemServer = Get-CMSiteSystemServer -SiteSystemServerName $MachineName
}
if((get-cmdistributionpoint -SiteSystemServerName $MachineName).count -ne 1)
{
    #Install DP
    "[$(Get-Date -format "MM/dd/yyyy HH:mm:ss")] Adding distribution point on $MachineName ..." | Out-File -Append $logpath
    Add-CMDistributionPoint -InputObject $SystemServer -CertificateExpirationTimeUtc $Date | Out-File -Append $logpath
    "[$(Get-Date -format "MM/dd/yyyy HH:mm:ss")] Finished adding distribution point on $MachineName ..." | Out-File -Append $logpath

    if((get-cmdistributionpoint -SiteSystemServerName $MachineName).count -eq 1)
    {
        "[$(Get-Date -format "MM/dd/yyyy HH:mm:ss")] Finished running the script." | Out-File -Append $logpath
        $Configuration.InstallDP.Status = 'Completed'
        $Configuration.InstallDP.EndTime = Get-Date -format "yyyy-MM-dd HH:mm:ss"
        $Configuration | ConvertTo-Json | Out-File -FilePath $ConfigurationFile -Force
    }
    else
    {
        "[$(Get-Date -format "MM/dd/yyyy HH:mm:ss")] Failed to run the script." | Out-File -Append $logpath
        $Configuration.InstallDP.Status = 'Failed'
        $Configuration.InstallDP.EndTime = Get-Date -format "yyyy-MM-dd HH:mm:ss"
        $Configuration | ConvertTo-Json | Out-File -FilePath $ConfigurationFile -Force
    }
}
else
{
    "[$(Get-Date -format "MM/dd/yyyy HH:mm:ss")] $MachineName is already a distribution point , skip running this script." | Out-File -Append $logpath
}


text:
namespace autofill {

// If parseable labels can be derived from |labels|, a vector of
// |std::u16string| is return that is aligned with |labels|.
// Parseable labels can be derived by splitting one label between multiple
// adjacent fields. If there aren't any changes to the labels, |absl::nullopt|
// is returned.
absl::optional<std::vector<std::u16string>> GetParseableLabels(
    const std::vector<base::StringPiece16>& labels);

}  // namespace autofill

#endif  // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_PROCESSING_LABEL_PROCESSING_UTIL_H_


text:
layout: docs
authors:
  - blairanderson
date: 2014-08-12 22:22:22
title: jQuery.fx.interval in Javascript - without jQuery
description: The rate (in milliseconds) at which animations fire.
method: jQuery.fx.interval
href: "docs/jQuery.fx.interval.html"
status: "inactive"
---

#### Sorry, we do not have code examples for implementing [jQuery.fx.interval](http://api.jquery.com/jQuery.fx.interval/) in vanilla javascript.

It would be great if you submitted code on [github](https://github.com/blairanderson/without-jquery/blob/master/docs/jQuery.fx.interval.md)

### Example:

```javascript
  //jQuery
  var i = jQuery.fx.interval(taco);

  //Javascript
  var i = document[somethingOtherThanjQuery.fx.interval](taco);

```

**REASONS:**
> Faster, and creates an event upon xyz

*example is computer generated, obviously not real.*


text:
```sh
mvn dependency:tree -Dverbose -Dincludes=commons-collections
```


text:
#ifndef MSONENOTEAPIRESOURCE_H
#define MSONENOTEAPIRESOURCE_H

#import <Foundation/Foundation.h>
#import "core/MSOrcChangesTrackingArray.h"

#import "core/MSOrcBaseEntity.h"
#import "api/MSOrcInteroperableWithDictionary.h"

/** Interface MSOneNoteApiResource
 *
 */
@interface MSOneNoteApiResource : MSOrcBaseEntity <MSOrcInteroperableWithDictionary>

/** Property _id
 *
 */
@property (nonatomic,  copy, setter=setId:, getter=_id) NSString * _id;

/** Property _self
 *
 */
@property (nonatomic,  copy, setter=setSelf:, getter=_self) NSString * _self;

/** Property content
 *
 */
@property (nonatomic,  copy, setter=setContent:, getter=content) NSStream * content;

/** Property contentUrl
 *
 */
@property (nonatomic,  copy, setter=setContentUrl:, getter=contentUrl) NSString * contentUrl;

+ (NSDictionary *) $$$_$$$propertiesNamesMappings;

@end

#endif


text:
goog.provide('ol.test.parser.ogc.WMSCapabilities_v1_3_0');

describe('ol.parser.ogc.wmscapabilities_v1_3_0', function() {

  var parser = new ol.parser.ogc.WMSCapabilities();

  describe('test read exception', function() {
    it('Error reported correctly', function(done) {
      var url = 'spec/ol/parser/ogc/xml/wmscapabilities_v1_3_0/' +
          'exceptionsample.xml';
      afterLoadXml(url, function(xml) {
        var result;
        result = parser.read(xml);
        expect(!!result.error).to.be(true);
        done();
      });
    });
  });

  describe('test read', function() {
    it('Test read', function(done) {
      var url = 'spec/ol/parser/ogc/xml/wmscapabilities_v1_3_0/ogcsample.xml';
      afterLoadXml(url, function(xml) {
        var obj, capability, layers = {}, rootlayer, identifiers, authorities;
        var featurelist, time, elevation, service, contactinfo, personPrimary,
            addr, request, exception, attribution, keywords, metadataURLs;
        obj = parser.read(xml);
        capability = obj.capability;
        for (var i = 0, len = capability.layers.length; i < len; i++) {
          if ('name' in capability.layers[i]) {
            layers[capability.layers[i].name] = capability.layers[i];
          }
        }
        rootlayer = capability.layers[capability.layers.length - 1];
        identifiers = layers['ROADS_RIVERS'].identifiers;
        authorities = layers['ROADS_RIVERS'].authorityURLs;
        featurelist = layers['ROADS_RIVERS'].featureListURL;
        time = layers['Clouds'].dimensions.time;
        elevation = layers['Pressure'].dimensions.elevation;
        service = obj.service;
        contactinfo = service.contactInformation;
        personPrimary = contactinfo.personPrimary;
        addr = contactinfo.contactAddress;
        request = obj.capability.request;
        exception = obj.capability.exception;
        attribution = capability.layers[2].attribution;
        keywords = capability.layers[0].keywords;
        metadataURLs = capability.layers[0].metadataURLs;
        expect(rootlayer.srs).to.eql({'CRS:84': true});
        var srs = {'CRS:84': true, 'EPSG:26986': true};
        expect(layers['ROADS_RIVERS'].srs).to.eql(srs);
        expect(layers['Temperature'].srs).to.eql({'CRS:84': true});
        var infoFormats = ['text/xml', 'text/plain', 'text/html'];
        expect(layers['Temperature'].infoFormats).to.eql(infoFormats);
        var bbox = layers['ROADS_RIVERS'].bbox['EPSG:26986'];
        expect(bbox.bbox).to.eql([189000, 834000, 285000, 962000]);
        expect(bbox.res).to.eql({x: 1, y: 1});
        bbox = layers['ROADS_RIVERS'].bbox['CRS:84'];
        expect(bbox.bbox).to.eql([-71.63, 41.75, -70.78, 42.90]);
        expect(bbox.res).to.eql({x: 0.01, y: 0.01});
        bbox = layers['ROADS_1M'].bbox['EPSG:26986'];
        expect(bbox.bbox).to.eql([189000, 834000, 285000, 962000]);
        expect(bbox.res).to.eql({x: 1, y: 1});
        expect(identifiers).to.be.ok();
        expect('DIF_ID' in identifiers).to.be.ok();
        expect(identifiers['DIF_ID']).to.eql('123456');
        expect('DIF_ID' in authorities).to.be.ok();
        var url = 'http://gcmd.gsfc.nasa.gov/difguide/whatisadif.html';
        expect(authorities['DIF_ID']).to.eql(url);
        expect(featurelist).to.be.ok();
        expect(featurelist.format).to.eql('XML');
        url = 'http://www.university.edu/data/roads_rivers.gml';
        expect(featurelist.href).to.eql(url);
        expect(layers['Pressure'].queryable).to.be.ok();
        expect(layers['ozone_image'].queryable).to.not.be();
        expect(layers['population'].cascaded).to.eql(1);
        expect(layers['ozone_image'].fixedWidth).to.eql(512);
        expect(layers['ozone_image'].fixedHeight).to.eql(256);
        expect(layers['ozone_image'].opaque).to.be.ok();
        expect(layers['ozone_image'].noSubsets).to.be.ok();
        expect(time['default']).to.eql('2000-08-22');
        expect(time.values.length).to.eql(1);
        expect(time.values[0]).to.eql('1999-01-01/2000-08-22/P1D');
        expect(elevation.units).to.eql('CRS:88');
        expect(elevation['default']).to.eql('0');
        expect(elevation.nearestVal).to.be.ok();
        expect(elevation.multipleVal).to.not.be();
        expect(elevation.values).to.eql(
            ['0', '1000', '3000', '5000', '10000']);
        expect(contactinfo).to.be.ok();
        expect(personPrimary).to.be.ok();
        expect(personPrimary.person).to.eql('Jeff Smith');
        expect(personPrimary.organization).to.eql('NASA');
        expect(contactinfo.position).to.eql('Computer Scientist');
        expect(addr).to.be.ok();
        expect(addr.type).to.eql('postal');
        expect(addr.address).to.eql('NASA Goddard Space Flight Center');
        expect(addr.city).to.eql('Greenbelt');
        expect(addr.stateOrProvince).to.eql('MD');
        expect(addr.postcode).to.eql('20771');
        expect(addr.country).to.eql('USA');
        expect(contactinfo.phone).to.eql('+1 301 555-1212');
        expect(contactinfo.email).to.eql('user@host.com');
        expect('fees' in service).to.not.be();
        expect('accessConstraints' in service).to.not.be();
        expect(request).to.be.ok();
        expect('getmap' in request).to.be.ok();
        expect('getfeatureinfo' in request).to.be.ok();
        var formats = ['text/xml', 'text/plain', 'text/html'];
        expect(request.getfeatureinfo.formats).to.eql(formats);
        expect(exception).to.be.ok();
        formats = ['XML', 'INIMAGE', 'BLANK'];
        expect(exception.formats).to.eql(formats);
        expect(attribution.title).to.eql('State College University');
        expect(attribution.href).to.eql('http://www.university.edu/');
        url = 'http://www.university.edu/icons/logo.gif';
        expect(attribution.logo.href).to.eql(url);
        expect(attribution.logo.format).to.eql('image/gif');
        expect(attribution.logo.width).to.eql('100');
        expect(attribution.logo.height).to.eql('100');
        expect(keywords.length).to.eql(3);
        expect(keywords[0].value).to.eql('road');
        expect(metadataURLs.length).to.eql(2);
        expect(metadataURLs[0].type).to.eql('FGDC:1998');
        expect(metadataURLs[0].format).to.eql('text/plain');
        url = 'http://www.university.edu/metadata/roads.txt';
        expect(metadataURLs[0].href).to.eql(url);
        var minScale = 250000;
        expect(capability.layers[0].minScale).to.eql(minScale.toPrecision(16));
        var maxScale = 1000;
        expect(capability.layers[0].maxScale).to.eql(maxScale.toPrecision(16));
        expect(obj.service.layerLimit).to.eql(16);
        expect(obj.service.maxHeight).to.eql(2048);
        expect(obj.service.maxWidth).to.eql(2048);
        done();
      });
    });
  });
});

goog.require('ol.parser.ogc.WMSCapabilities');


text:
layout: single
title: Settings for analyzing code using gnu global in vim
category: vim
tag: [vim, gnu global]
comments: true
public : true
parent : vim
date : 2020-01-15 01:33:04 +0900
last_modified_at : 2020-06-08 18:06:49 +0900
---

# reference
  * [https://www.gnu.org/software/global](https://www.gnu.org/software/global)

# gnu global settings
 gnu global is a source code tagging system that provides quick code search.
 It can be used by entering commands in a shell or in editors such as vim or emacs.
 This section introduces how to use it with vim.

* Each linux distribution provides a package to install gnu global. However, to use the final version as earlier as possible, you need to download it directly from the gnu global home page.
 You can get it here.
  * [https://www.gnu.org/software/global/download.html](https://www.gnu.org/software/global/download.html)
* After extracting the downloaded file, build and install it as follows.
    ```bash
    $ sh reconf.sh
    $ ./configure --prefix=$HOME/bin
    $ make
    $ make install
    $ cp ~/bin/share/gtags/gtags.vim $HOME/.vim/plugin/
    $ cp ~/bin/share/gtags/gtags.conf $HOME/.globalrc
    $ vim $HOME/.globalrc
    ## If you want to exclude specific folders when creating tag files, specify those folders at "skip" varialbe. Or Just quit vim
    ```

* Run the "gtags" command in the root direcotry of the code, then it generates "GTAGS", "GRTAGS" and "GPAHT".
    ```bash
    $ gtags
    ```
* Using gnu global in vim(referred to gnu global web-site)
  * Run gnu global command in vim ex-mode as below. Setting up shortcuts in .vimrc is described later in this article.
    ```vim
    To go to main, you can say
        :Gtags main

    To go to the referenced point of func1, add the '-r' option.
        :Gtags -r func1

    To locate symbols which are not defined in 'GTAGS', try this:
        :Gtags -s lbolt

    To locate strings, try this:
        :Gtags -g int argc
        :Gtags -g "root"
        :Gtags -ge -C               <- locate '-C'

    To get a list of tags in specified files, use the '-f' command.
        :Gtags -f main.c            <- locate tags in main.c

    If you are editing 'main.c' itself, you can use '%' instead.
        :Gtags -f %                 <- locate tags in main.c

    You can use POSIX regular expressions.
        :Gtags ^put_              <- locate tags starting with 'put_'
        :Gtags -g fseek(.*SEEK_SET) <- locate fseek() using SEEK_SET

    In the command line, press CTRL-D after some typing and Vim will show a list of tag names that start with the string. Press <TAB> and Vim will complete the tag name.
        :Gtags fu<TAB>
        :Gtags func1                <- 'nc1' is appended by vim

    You can browse files whose path includes specified pattern.
        :Gtags -P /vm/              <- under vm/ directory
        :Gtags -P \.h$              <- all include files
        :Gtags -P init              <- path including 'init'

    You can use all options of global(1) except for '-c -n -p -q -u -v' and all long name options. They are sent to global(1) as is. For example:
        :Gtags -gi paTtern        <- matches both 'PATTERN' and 'pattern'
        :Gtags -POi make          <- matches Makefile but not makeit.c
    ```

* [vim setting file(.vimrc)](/assets/files/vimrc.tar.gz ".vimrc file")
  * This file contains settings that are set when vim starts.
  * put ".vimrc" file to your home directory, then vim read this file when it starts.
    ```vim
    "c language syntax color settings
    hi Identifier cterm=underline ctermfg=146
    hi Comment cterm=none ctermfg=247
    hi CursorLine cterm=none ctermbg=236
    hi cCustomFunc cterm=bold ctermfg=111
    hi cCustomClass cterm=bold ctermfg=183
    ...
    "mapleader setting. This is the key corresponding to the <Leader>, here I set it to ",".
    let mapleader=","
    ...
    ":TlistToggle<CR> is run if you press <F2> key.
    map <F2> :TlistToggle<CR>
    "quickfix의 next item
    map <F6> :cn<CR>
    map <F5> :cp<CR>
    map <F8> :cnewer<CR>
    map <F7> :colder<CR>
    map <Leader><F7> :cope<CR>
    map <Leader><F8> :ccl<CR>
    map <F9> :bnext<CR>
    map <F10> :bprevious<CR>

    "=============gnu global keymap=============

    "Input ",gd". It searches the string at the current cursor position from tag files.(it's like searching definition)
    nmap <Leader>gd :Gtags <C-R>=expand("<cword>")<CR><CR>
    "Input ",gr". It searches the referenced places of the string where the cursor is located.
    nmap <Leader>gr :Gtags -r <C-R>=expand("<cword>")<CR><CR>
    "Input ",gs". It searches the symbols which are not defined in GTAGS.
    nmap <Leader>gs :Gtags -s <C-R>=expand("<cword>")<CR><CR>
    "Input ",gg". It searches "pattern" from all files.(*.h, *.c, *.txt and etc)
    nmap <Leader>gg :Gtags -go <C-R>=expand("<cword>")<CR><CR>
    "Input ",gp". It searches files.
    nmap <Leader>gp :Gtags -Po <C-R>=expand("<cword>")<CR><CR>
    "Input ",ge". It searches "--regexp" pattern.
    nmap <Leader>ge :Gtags -ge <C-R>=expand("<cword>")<CR><CR>

    "These keymaps are same with above, except "ignore case sensitivity".
    nmap <Leader>igd :Gtags -i <C-R>=expand("<cword>")<CR><CR>
    nmap <Leader>igr :Gtags -ir <C-R>=expand("<cword>")<CR><CR>
    nmap <Leader>igs :Gtags -is <C-R>=expand("<cword>")<CR><CR>
    nmap <Leader>igg :Gtags -igo <C-R>=expand("<cword>")<CR><CR>
    nmap <Leader>igp :Gtags -iPo <C-R>=expand("<cword>")<CR><CR>
    nmap <Leader>ige :Gtags -ige <C-R>=expand("<cword>")<CR><CR>

    "These keymaps are same with above, except that the above command searches the string at the current cursor position. Meanwhile, the commands below need to enters the string to search for
    nmap <Leader>ld :Gtags
    nmap <Leader>lr :Gtags -r
    nmap <Leader>ls :Gtags -s
    nmap <Leader>lg :Gtags -go
    nmap <Leader>lp :Gtags -Po
    nmap <Leader>le :Gtags -ge

    nmap <Leader>ild :Gtags -i
    nmap <Leader>ilr :Gtags -ir
    nmap <Leader>ils :Gtags -is
    nmap <Leader>ilg :Gtags -igo
    nmap <Leader>ilp :Gtags -iPo
    nmap <Leader>ile :Gtags -ige

    "Input ",nt". NERDTreeToggle<CR>
    map <Leader>nt :NERDTreeToggle<CR>

    " vim window navigation key
    nmap <C-H> <C-W>h
    nmap <C-J> <C-W>j
    nmap <C-K> <C-W>k
    nmap <C-L> <C-W>l
    ```
  * How to disable auto jump function after searching string with gtags in vim.
    * Add the following code to .vimrc file.
        ```vim
        let g:Gtags_No_Auto_Jump=1
	```


text:
module(..., package.seeall)

local localStorage = require 'gameLogic.localStorage'

function new(x, y)
	local group = display.newGroup()

	local diamondsText = display.newText("", x, y, native.systemFont, 9)
	diamondsText.text = localStorage.get("diamonds")
	group:insert(diamondsText)

	function group:getDiamonds()
		return localStorage.get("diamonds")
	end

	function group:refresh()
		diamondsText.text = self.getDiamonds()
	end

	return group
end


text:
ACCEPTED

#### According to
International Plant Names Index

#### Published in
null

#### Original name
Urtica dioica var. subinermis R.Uechtr.

### Remarks
null


text:
<?xml version="1.0" encoding="UTF-8"?>
<sem:triples uri="http://www.lds.org/vrl/church-events/old-testament/judges" xmlns:sem="http://marklogic.com/semantics">
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#prefLabel</sem:predicate>
    <sem:object datatype="xsd:string" xml:lang="eng">JUDGES</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#inScheme</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/concept-scheme/vrl</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.lds.org/core#entityType</sem:predicate>
    <sem:object datatype="sem:iri">http://www.schema.org/Event</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/israel-worships-false-gods</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/prophets-preach-to-israelites</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/ehud-slays-eglon</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/deborah-leads-israel</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/angel-appears-to-gideon</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/gideon-destroys-the-altar-of-baal</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/gideon-chooses-his-army</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/gideons-army-defeats-the-midianites</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/abimelech-slays-the-70-sons-of-gideon</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/jephthah-slays-the-ammonites</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/philistines-place-israel-in-bondage</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/birth-of-samson</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/samson-slays-a-lion</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/samsons-riddle</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/samson-slays-1000-philistines</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/delilah-betrays-samson</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/samson-destroys-the-temple-of-dagon</sem:object>
  </sem:triple>
  <sem:triple>
    <sem:subject>http://www.lds.org/vrl/church-events/old-testament/judges</sem:subject>
    <sem:predicate>http://www.w3.org/2004/02/skos/core#broader</sem:predicate>
    <sem:object datatype="sem:iri">http://www.lds.org/vrl/church-events/old-testament/judges/levite-concubine-slain</sem:object>
  </sem:triple>
</sem:triples>


text:
using PullRequestsViewer.Domain;
using System.Collections.Generic;

namespace PullRequestsViewer.GitHub.Extensions
{
    internal static class PullRequestExtension
    {
        internal static IReadOnlyList<PullRequest> ConvertToDomain(this IReadOnlyList<Octokit.PullRequest> pullRequests)
        {
            if(pullRequests == null)
                return null;

            var domainPullRequests = new PullRequest[pullRequests.Count];

            for(var i = 0;i < pullRequests.Count;i++)
            {
                domainPullRequests[i] = new PullRequest
                                        {
                                            Title = pullRequests[i].Title,
                                            Description = pullRequests[i].Body,
                                            HtmlUrl = pullRequests[i].HtmlUrl,
                                            AuthorName = pullRequests[i].User.Login,
                                            Number = pullRequests[i].Number,
                                            CreatedDate = pullRequests[i].CreatedAt.UtcDateTime,
                                            LastUpdateDate = pullRequests[i].UpdatedAt.UtcDateTime
                };
            }

            return domainPullRequests;
        }
    }
}


text:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace FreestyleOnline.Controls {

    public partial class SearchMusic {

        /// <summary>
        /// SelectionList control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Ext.Net.RadioGroup SelectionList;

        /// <summary>
        /// Radio1 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Ext.Net.Radio Radio1;

        /// <summary>
        /// Radio2 control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Ext.Net.Radio Radio2;

        /// <summary>
        /// SearchParametersText control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.HtmlControls.HtmlInputText SearchParametersText;

        /// <summary>
        /// OnSearchButton control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::Ext.Net.Button OnSearchButton;

        /// <summary>
        /// SearchMusicGrid control.
        /// </summary>
        /// <remarks>
        /// Auto-generated field.
        /// To modify move field declaration from designer file to code-behind file.
        /// </remarks>
        protected global::System.Web.UI.WebControls.GridView SearchMusicGrid;
    }
}


text:
Currently, we provide IDE support for [VS Code](https://code.visualstudio.com/).
The SOMns support can be installed via the
[VS Code marketplace](https://marketplace.visualstudio.com/items?itemName=MetaConcProject.SOMns).

The extension provides support for:

 - syntax highlighting
 - parse errors
 - code navigation
 - code completion
 - basic linting
 - CodeLens for running minitests
 - and debugging of SOMns programs

This support is based on the
[Language Server Protocol](https://github.com/Microsoft/language-server-protocol#readme)
and could be used in other IDEs as well, but we do not currently provide
extensions for them. It is however confirmed to work with NetBeans and Eclipse.

#### Screenshot of SOMns Syntax Highlighting

![Screenshot of SOMns syntax highlighting](https://som-st.github.io/images/vscode-somns-syntax-highlighting.png)

#### Screencast of Debugging a SOMns Program

![Screencast of SOMns debug session](https://som-st.github.io/images/vscode-somns-debugger.gif)


text:
<?php
/**
 * Created by PhpStorm.
 * User: yevgen
 * Date: 06.07.15
 * Time: 17:57
 */

class ResultCallbackChainTest extends \PHPUnit_Framework_TestCase
{
    public function test_it_should_throw_exception()
    {
        $chain = new \SleepingOwl\Apist\Selectors\ResultCallbackChain();
        $callback = new BuggyResultCallback();
        $parser = new DummyBlueprintParser();

        $chain->append($callback);

        $crawler = $this->getMockBuilder(\Symfony\Component\DomCrawler\Crawler::class)
            ->disableOriginalConstructor()
            ->getMock();

        $this->setExpectedException(\Exception::class);
        $chain->call($crawler, $parser);
    }
}


text:
CREATE OR REPLACE FUNCTION ti.getcontactbyid(_contactid integer)
 RETURNS TABLE(contactid integer, aliasid integer, contactname character varying, contactstatusid integer, familyname character varying, leadinginitials character varying, givennames character varying, suffix character varying, title character varying, phone character varying, fax character varying, email character varying, url character varying, address text, notes text)
 LANGUAGE sql
AS $function$
SELECT contactid, aliasid, contactname, contactstatusid, familyname, leadinginitials, givennames, suffix, title, phone, fax, email, url, address, notes
FROM ndb.contacts
WHERE contactid = _contactid;
$function$


text:
<!DOCTYPE html>

		<meta charset="utf-8" />
		<title>Epona - Multipurpose Template</title>
		<meta name="keywords" content="HTML5,CSS3,Template" />
		<meta name="description" content="" />
		<meta name="Author" content="Dorin Grigoras [www.stepofweb.com]" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />

		<meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1, user-scalable=0" />

		<link rel="shortcut icon" href="assets/images/demo/favicon.ico" />

		<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700,800&subset=latin,latin-ext,cyrillic,cyrillic-ext" rel="stylesheet" type="text/css" />

		<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/font-awesome.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/sky-forms.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/weather-icons.min.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/line-icons.css" rel="stylesheet" type="text/css" />
		<link href="assets/plugins/owl-carousel/owl.pack.css" rel="stylesheet" type="text/css" />
		<link href="assets/plugins/magnific-popup/magnific-popup.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/animate.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/flexslider.css" rel="stylesheet" type="text/css" />

		<link href="assets/css/revolution-slider.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/layerslider.css" rel="stylesheet" type="text/css" />

		<link href="assets/css/layout-blog.css" rel="stylesheet" type="text/css" />

		<link href="assets/css/essentials.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/layout.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/header-default.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/footer-default.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/color_scheme/red.css" rel="stylesheet" type="text/css" id="color_scheme" />

							mail@domain.com • 1800-555-1234

						<button class="btn btn-mobile" data-toggle="collapse" data-target=".nav-main-collapse">

						</button>

						<form class="search" method="get" action="page-search.html">
							<input type="text" class="form-control" name="s" value="" placeholder="Search">
							<button class="fa fa-search"></button>
						</form>

											HOME welcome

Home Samples #1

 Home Version 1

 Home Version 2

 Home Version 3

 Home Version 4

 Home Version 5

 Home Version 6

Home Samples #2

 Home Version 7

 Home Version 8

 Home Version 9

 Home Version 10

 Home Version 11

 Home Version 12

new Home Left Main Menu

Home Samples #3

 Home Shop

 Home Portfolio

 Home Blog

 Home Magazine

 Onepage Parallax

 Why Choose Epona?

										PAGES preview

Page Samples #1

 About Basic

 About Us

 About Me

 About Our Team

 Services

 Careers

 Gallery

 Article Page

 FAQ

new  Clients

Page Samples #2

 Timeline Centered

 Timeline Left

 Timeline Right

 Custom Header

 Invoice

 Login/Register

 Account Settings

 new Search Result

 new User Profile

Page Samples #3

 Pricing Standard

 Pricing Expanded

 Empty Page

 Page Full Width

 Page Left Sidebar

 Page Right Sidebar

 Side Navigation

Page Samples #4

 Maintenance

 Coming Soon

 Privacy Policy

 Terms Of Services

 404 Error

 Sitemap

 Email Template

										FEATURES components

												 Headers

Transparent Header

Translucent Header

Header Below Slider

Sticky Header

Header #1 (default)

Header #2

Header #3

Header #4

Header #5

												 Footers

Footer #1 (default)

Footer #2

Footer #3

Footer #4

Footer #5

												 Sliders

														Revolution Slider

Fixed Width

Full Width

Full Screen

Video Gallery

Captions

Thumbnails Nav - Small

Thumbnails Nav - Large

 Captions Editor

 Transitions Editor

														Layer Slider

Full Width

Fixed Width

Captions

Video Gallery

Carousel

2D & 3D Transitions

Thumbnails Nav

														Flex Slider

Fixed Width

Full Width

Carousel

Video Gallery

Thumbnails Nav

														OWL Carousel

Full Width

Fixed Width

Fixed Width + Progress

Carousel

Effect: Fade

Effect: Back Slide

Effect: Go Down

Effect: Fade Up

												 Shortcodes

Counters

Toggles

Forms

New Tables

Buttons

New HTML Editors

Tabs & Accordions

Callouts

Dividers

Lightbox

Icons & Boxes

Carousel

Progress Bars

Alerts

Video & Audio

Tooltips & Popovers

Modals

Thumbnails

Testimonials

												Icons

Font Awsome

Glyphicons Icons

Weather Icons

Linecons Icons

												Maps

Google Maps

Vectorial Maps

Animations

Grid System

Typography

												Infinite Menu

Menu Level 2

														Menu Level 2

Menu Level 3

																Menu Level 3

Menu Level 4

																		Menu Level 4

Menu Level 5

! INFINITE LEVELS !

										PORTFOLIO projects

2 Columns

3 Columns

4 Columns

Single Basic

Single Full Slider

										BLOG recent news

Blog Sidebar Left

Blog Sidebar Right

Blog Without Sidebar

Blog Single With Sidebar

Blog Single Without Sidebar

										SHOP our products

Shop Pages

 Shop Full Width

 Shop Product Full Width

 Shop Sidebar

 Shop Product Sidebar

 Shop Cart

 Shop Checkout

 Order History

 Order History Summary

 Invoice

Shop Components

 Featured Slider

 Featured Products

 Product Carousel

 Product Categories

 Login/Register

 Account Settings

Widgetized

Epona Megamenu can be 1-4 columns, full width, including widgetized images.

										CONTACT write us

Contact Version 1

Contact Version 2

Contact Version 3

Contact Version 4

Contact Version 5

Pages

Blog Single Sidebar

							Blog Single Sidebar

										29 JUN 2014

										 BY ADMIN
										 POSTED IN UNCATEGORIZED
										 WITH 3 COMMENTS
										 PERMALINK

Standard Blog Post With All Features Included

Aliquam fringilla, sapien eget scelerisque placerat, lorem libero cursus lorem, sed sodales lorem libero eu sapien. Nunc mattis feugiat justo vel faucibus. Nulla consequat feugiat malesuada. Ut justo nulla, facilisis vel molestie id, dictum ut arcu. Nunc ipsum nulla, eleifend non blandit quis, luctus quis orci. Cras blandit turpis mattis nulla ultrices interdum. Mauris pretium pretium dictum. Nunc commodo, felis sed dictum bibendum, risus justo iaculis dui, nec euismod orci sem eget neque. Donec in metus metus, vitae eleifend lorem. Ut vestibulum gravida venenatis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque suscipit tincidunt magna non mollis. Fusce tempus tincidunt nisi, in luctus elit pellentesque quis. Sed velit mi, ullamcorper ut tempor ut, mattis eu lacus. Morbi rhoncus aliquet tellus, id accumsan enim sollicitudin vitae.

Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Cras ultricies ligula sed magna dictum porta. Curabitur aliquet quam id dui posuere blandit. Sed porttitor lectus nibh. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec velit neque, auctor sit amet aliquam vel, ullamcorper sit amet ligula. Nulla porttitor accumsan tincidunt.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

											Source Title

Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus.Quisque velit nisi, pretium ut lacinia in, elementum id enim. Sed porttitor lectus nibh. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Donec rutrum congue leo eget malesuada. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Pellentesque in ipsum id orci porta dapibus. Nulla quis lorem ut libero malesuada feugiat. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem.

Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Pellentesque in ipsum id orci porta dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla porttitor accumsan tincidunt. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

 Tags:
										 Business
										 Design
										 Technology

3 Comments

												reply

John Doe

												June 29, 2014 - 11:23
												Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Pellentesque in ipsum id orci porta dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

												reply

Diana Doe

												June 29, 2014 - 11:23
												Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Pellentesque in ipsum id orci porta dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

												reply

Melissa Doe

												June 29, 2014 - 11:23
												Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Pellentesque in ipsum id orci porta dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Peter Doe

														June 29, 2014 - 11:23
														Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Pellentesque in ipsum id orci porta dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

										<form action="#" method="post" class="sky-form boxed">
											Leave a reply

											<fieldset>

														Name

															<input type="text">

														E-mail

															<input type="email">

														Website

															<input type="url">

													Comment

														<textarea rows="4"></textarea>

You may use these HTML tags and attributes: <a href="" title="">, <abbr title="">, <acronym title="">, <b>, <blockquote cite="">, <cite>, <code>, <del datetime="">, <em>, <i>, <q cite="">, <strike>, <strong>.

											</fieldset>

												<button type="submit" class="button">Add comment</button>

										</form>

								<form id="newsletterSubscribe" method="post" action="php/newsletter.php" class="input-group">
									<input type="text" class="form-control" name="s" value="" placeholder="Blog Search" />

										<button class="btn btn-primary"></button>

								</form>

												Popular

												Recent

 This is a Gallery Post 23 June 2013 / 12:43

 Blog Post With Text Only 23 June 2013 / 12:43

 This is an Audio Post 23 June 2013 / 12:43

 This is a Video Post 23 June 2013 / 12:43

 An awsome post 23 June 2013 / 12:43

 This is a Gallery Post 23 June 2013 / 12:43

 Blog Post With Text Only 23 June 2013 / 12:43

 This is an Audio Post 23 June 2013 / 12:43

 This is a Video Post 23 June 2013 / 12:43

 An awsome post 23 June 2013 / 12:43

CATEGORIES

 Development

 Marketing

 Photography

 Shopping

 Lifestyle

TAGS

								 Business
								 Design
								 Technology
								 Audio
								 Gallery
								 Shortcode
								 Video
								 Audio

								4th Street, Suite 88

								New York NY 10887

								Email: youremail@yourdomain.com

								Phone: +40 (0) 111 1234 567

								Fax: +40 (0) 111 1234 568

Recent Posts

									New CSS3 Transitions this Year
									June 29, 2014

									Inteligent Transitions In UX Design
									June 29, 2014

									Lorem Ipsum Dolor
									June 29, 2014

Recent Tweets

									 @John Doe Pilsum dolor lorem sit consectetur adipiscing orem sequat 8 mins ago

									 @John Doe Remonde sequat ipsum dolor lorem sit consectetur adipiscing  8 mins ago

									 @John Doe Imperdiet condimentum diam dolor lorem sit consectetur adipiscing 8 mins ago

About Us

								Incredibly beautiful responsive Bootstrap Template for Corporate and Creative Professionals.

Subscribe to our Newsletter

							<form id="newsletterSubscribe" method="post" action="php/newsletter.php" class="input-group">
								<input required type="email" class="form-control" name="newsletter_email" id="newsletter_email" value="" placeholder="E-mail Address">

									<button class="btn btn-primary">SUBMIT</button>

							</form>

						Epona theme by stepofweb • All Right Reserved © Your Company LLC.
						Privacy Policy •
						Terms of Service