text
stringlengths
3
1.05M
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ObjectSerializer { class ByteArraySerializer : ISerializer { public void Serialize(System.IO.Stream stream, object item) { if (item == null) { ZigZag.Serialize (...
package org.apache.hadoop.mapred; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.mapreduce.MRJobConfig; import org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager; import org.apache.hadoop.mapreduce.v2.api.records.JobId; import org.apache.hadoop.mapred...
/* global React */ /* global ReactQuill */ 'use strict'; var Editor = React.createClass({ getInitialState: function() { return { theme: 'snow', enabled: true, readOnly: false, value: '<h1>It works!</h1>', events: [] }; }, formatRange: function(range) { return range ? [range.start, range.en...
#pragma once #include <thrust/detail/config.h> #include <thrust/detail/type_traits.h> // based on Boost's BOOST_STATIC_ASSERT // see www.boost.org for details. // // Helper macro THRUST_JOIN (based on BOOST_JOIN): // The following piece of macro magic joins the two // arguments together, even when one of the argum...
'use strict'; require('./lib/app');
<div class="form-group"> <label class="control-label" for="events-<?=$field?>"><?=$model->getAttributeLabel($field);?></label> <input type="text" id="events-<?=$field?>" class="form-control" value="<?= (empty($value)!=null ? $model->$field : $value)?>" readonly maxlength="255"> <div class="help-block"></di...
<SetLoadBalancerPoliciesOfListenerResult xmlns="http://elasticloadbalancing.amazonaws.com/doc/2012-06-01/"> <Instances> </Instances> </SetLoadBalancerPoliciesOfListenerResult>
using System; using System.Reactive.Threading.Tasks; using Octokit.Reactive.Internal; using System.Collections.Generic; namespace Octokit.Reactive { /// <summary> /// Client for accessing contents of files within a repository as base64 encoded content. /// </summary> public class ObservableRepositoryC...
<!-- JBoss, Home of Professional Open Source Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual contributors by the @authors tag. See the copyright.txt in the distribution for a full listing of individual contributors. Licensed under the Apache License, Version 2.0 (the "License");...
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2017 the original author or authors. ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licen...
"""Public Python API of TensorFlow Debugger (tfdbg).""" from __future__ import absolute_import from __future__ import division from __future__ import print_function # pylint: disable=unused-imports from tensorflow.python.debug.debug_data import DebugDumpDir from tensorflow.python.debug.debug_data import DebugTensorDa...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/watcher/v1/watch.proto /* Package watcher is a generated protocol buffer package. It is generated from these files: google/watcher/v1/watch.proto It has these top-level messages: Request ChangeBatch Change */ package watcher import proto "github...
ifndef PDIR GEN_LIBS = mqtt.a endif ############################################################# # Configuration i.e. compile options etc. # Target specific stuff (defines etc.) goes in here! # Generally values applying to a tree are captured in the # makefile at its root level - these are then overridden # for a...
Comments = new Mongo.Collection('comments'); Meteor.methods({ commentInsert: function(commentAttributes) { check(this.userId, String); check(commentAttributes, { postId: String, body: String }); var user = Meteor.user(); var post = Posts.findOne(commentAttributes.postId); if...
"""Test using named arguments for RPCs.""" from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, assert_raises_rpc_error, ) class NamedArgumentTest(BitcoinTestFramework): """ Test named arguments on RPC calls. """ def __init__(self): ...
@class NSImage; namespace content { class WebContents; } namespace mac { // Returns an autoreleased favicon for a given WebContents. If |contents| // is NULL or there's no favicon for the NavigationEntry, this will return the // default image. NSImage* FaviconForWebContents(content::WebContents* contents); } // na...
id: accessibility title: Accessibility layout: docs category: Guides permalink: docs/accessibility.html next: nativemodulesios --- Accessibility on iOS encompasses many topics, but for many, accessibility is synonymous with VoiceOver, a technology available since iOS 3.0. It acts as a screen reader, allowing people wi...
 #include <aws/medialive/model/FollowModeScheduleActionStartSettings.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace MediaLive { namespace Model { FollowModeScheduleActionStartSettings::FollowModeSchedule...
""" ============================= Recursive feature elimination ============================= A recursive feature elimination example showing the relevance of pixels in a digit classification task. .. note:: See also :ref:`example_feature_selection_plot_rfe_with_cross_validation.py` """ print(__doc__) from skl...
import argparse import codecs # for codecs.open(..., 'utf-8') import glob import json # for json.load() import os # for os.path() import subprocess # for subprocess.check_call() from common import InputError from common import read_json_file # Store parsed command-line arguments in global variab...
/*! * FullCalendar v2.1.0 * Docs & License: http://arshaw.com/fullcalendar/ * (c) 2013 Adam Shaw */ (function(factory) { if (typeof define === 'function' && define.amd) { define([ 'jquery', 'moment' ], factory); } else { factory(jQuery, moment); } })(function($, moment) { ;; var defaults = { lang: 'en'...
#pragma once #include <aws/dynamodb/DynamoDB_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/core/utils/memory/stl/AWSString.h> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespa...
package org.apache.hadoop.yarn.util; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.net.URISyntaxException; import java.security.PrivilegedExceptionAction; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concu...
class AddApiKeyToUsers < ActiveRecord::Migration def self.up add_column "users", "api_key", :string, :limit => 40 end def self.down remove_column "users", "api_key" end end
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*** *wcscat_s.c - contains wcscat_s() * * *Purpose: * wcscat_s() appends one wchar_t string onto another. * * ...
<?php namespace Oro\Bundle\ActivityBundle\Migration\Extension; use Doctrine\DBAL\Schema\Schema; use Oro\Bundle\ActivityBundle\EntityConfig\ActivityScope; use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtension; use Oro\Bundle\EntityExtendBundle\Migration\Extension\ExtendExtensionAwareInterface; use Oro...
<!DOCTYPE html> <html> <!-- Copyright 2007 The Closure Library Authors. All Rights Reserved. Use of this source code is governed by the Apache License, Version 2.0. See the COPYING file for details. --> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Closure Unit Tests - Iframe/XHR Execution Contex...
@class BeeUIScrollView; @class BeeUIPullLoader; @class BeeUIFootLoader; @class BeeUIScrollItem; typedef void (^BeeUIScrollViewBlock)( void ); typedef void (^BeeUIScrollViewBlockN)( id first, ... ); typedef void (^BeeUIScrollViewBlockI)( BeeUIScrollItem * item ); #pragma mark - typedef enum { BeeUIScrollLayoutRuleVe...
<?php /** * PHP SFW (Simple Framework) * Realizado por Brandon Sanchez * Licencia: Licencia MIT, Es libre de usar este código como desee * Para saber mas de esta licencia puede dirigirse a * https://opensource.org/licenses/MIT * v0.1 2013 * v0.2 2016 */ namespace PHPSFW\Configuraciones; c...
/*! \file btGImpactMassUtil.h \author Francisco Leon Najera */ /* This source file is part of GIMPACT Library. For the latest info, see http://gimpact.sourceforge.net/ Copyright (c) 2007 Francisco Leon Najera. C.C. 80087371. email: projectileman@yahoo.com This software is provided 'as-is', without any express or im...
import * as React from 'react'; import { BlockProperties, ValueJSON, Value, Node, Mark, Leaf } from 'slate'; export interface Rule { deserialize?: (el: Element, next: (elements: Element[] | NodeList | Array<Node & ChildNode>) => any) => any; serialize?: (obj: any, children: string) => React.ReactNode; } expor...
using RunTests using Base.Test import MetaTools.@commutative @testmodule CommutativeTests begin using MetaTools module MetaTestModule1 function baz() end function boo() end end function commutative_method() @commutative function foo(s::String, i::Integer) return "$s -> $i" end ...
[![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] Higher level content negotiation based on [negotiator](https://www.npmj...
<nav class="nav__side"> <ul class="bare-list sidebar-list"> <li><a href="#getting-started" class="is-active">Getting Started<i class="lg-right-open-mini arrow"></i></a></li> <li><a href="#property-options">Property Options<i class="lg-right-open-mini arrow"></i></a></li> <li><a href="#variables">Variables...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="generator" content="HTML Tidy for Mac OS, see www.w3.org" /> <title>td_id</title> <!-- Modified: Changed doctype to xhtml 1....
Neutron Database Layer ====================== Testing database and models sync -------------------------------- .. automodule:: neutron.tests.unit.db.test_migration .. autoclass:: _TestModelsMigrations :members:
 /* * null * * [FhirComposite("ConditionEvidenceComponent")] * [Serializable] */ #import "FHIRElement.h" #import "FHIRCondition.h" @class FHIRCodeableConcept; @class FHIRResource; @interface FHIRConditionEvidenceComponent : FHIRElement /* * Manifestation/symptom */ @property (nonatomic,...
"use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = function(context) { /** * Checks if a variable is contained in the list of given scope variabl...
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="IdProvider" IDEtalkID="8ECB33E6650BEF08573E9648E69014D3" /> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" /> </project>
version 1.3.0 ============= **Date:** 14-Jan-2015 - (enh #12): Upgrade bootstrap switch plugin to latest release and fixes kartik-v/yii2-widgets#219. version 1.2.0 ============= **Date:** 08-Dec-2014 - (bug #5): Fix checked state for checkboxes in `\kartik\base\InputWidget`. - (bug #6): Add indeterminate value suppo...
import time from tests.unit import unittest from boto.dynamodb.layer2 import Layer2 from boto.dynamodb.table import Table from boto.dynamodb.schema import Schema class TestDynamoDBTable(unittest.TestCase): dynamodb = True def setUp(self): self.dynamodb = Layer2() self.schema = Schema.create(...
var createWrap = require('./_createWrap'), flatRest = require('./_flatRest'); /** Used to compose bitmasks for function metadata. */ var WRAP_REARG_FLAG = 256; /** * Creates a function that invokes `func` with arguments arranged according * to the specified `indexes` where the argument value at the first index ...
const common = require('../common'); const f = common.mustCall( () => {}, 2); f();
import sys import cv2 import os #For Getting directory paths import time # To know FPS processed import argparse # To pass args in terminal` import numpy as np # Sci Library for python import tensorflow as tf # Tensorflow import socket # To pass value of movement to Rasp from gi.repository import Gst from paths import...
(function() { var Pin, PinCollection, Rufinol; var __extends = function(child, parent) { var ctor = function(){}; ctor.prototype = parent.prototype; child.prototype = new ctor(); child.prototype.constructor = child; if (typeof parent.extended === "function") parent.extended(child); child.__s...
package org.apache.ibatis.submitted.language; import org.apache.ibatis.executor.parameter.ParameterHandler; import org.apache.ibatis.mapping.BoundSql; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.mapping.SqlSource; import org.apache.ibatis.parsing.XNode; import org.apache.ibatis.scriptin...
/** @module ember @submodule ember-views */ // BEGIN IMPORTS import Ember from 'ember-runtime'; import jQuery from 'ember-views/system/jquery'; import { isSimpleClick, getViewClientRects, getViewBoundingClientRect } from 'ember-views/system/utils'; import 'ember-views/system/ext'; // for the side effect of exte...
package org.apache.camel.management; import org.apache.camel.api.management.ManagedAttribute; import org.apache.camel.api.management.ManagedOperation; import org.apache.camel.api.management.ManagedResource; @ManagedResource(description = "My Managed Bean within Camel") public class MyManagedBean { private int ca...
<?php namespace Kunstmaan\FormBundle\Entity\PageParts; use ArrayObject; use Symfony\Component\Form\FormBuilderInterface; use Kunstmaan\FormBundle\Form\SingleLineTextPagePartAdminType; use Doctrine\ORM\Mapping as ORM; use Kunstmaan\FormBundle\Form\CheckboxPagePartAdminType; use Kunstmaan\FormBundle\Form\BooleanFormSu...
<?php namespace Symfony\Component\Routing\Matcher\Dumper; /** * Dumps a set of Apache mod_rewrite rules. * * @author Fabien Potencier <fabien@symfony.com> * @author Kris Wallsmith <kris@symfony.com> */ class ApacheMatcherDumper extends MatcherDumper { /** * Dumps a set of Apache mod_rewrite rules. ...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.3053 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated...
/** * Module dependencies. */ var EventEmitter = require('events').EventEmitter , path = require('path') , tty = require('tty') , basename = path.basename; /** * Expose the root command. */ exports = module.exports = new Command; /** * Expose `Command`. */ exports.Command = Command; /** * Expose `...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
package trustmanager import ( "crypto/x509" "errors" "os" "path" "github.com/Sirupsen/logrus" ) // X509FileStore implements X509Store that persists on disk type X509FileStore struct { validate Validator fileMap map[CertID]string fingerprintMap map[CertID]*x509.Certificate nameMap map[str...
package org.apache.camel.spring.issues.contextscan; import org.apache.camel.spring.SpringRouteBuilder; import org.springframework.stereotype.Component; /** * @version */ @Component public class MyRoute extends SpringRouteBuilder { @Override public void configure() throws Exception { from("direct:...
package licenseclassifier import ( "github.com/google/licenseclassifier/licenses" ) const ( // LicenseArchive is the name of the archive containing preprocessed // license texts. LicenseArchive = "licenses.db" // ForbiddenLicenseArchive is the name of the archive containing preprocessed // forbidden license tex...
package org.elasticsearch.cluster.routing; /** * */ public class IllegalShardRoutingStateException extends RoutingException { private final ShardRouting shard; public IllegalShardRoutingStateException(ShardRouting shard, String message) { this(shard, message, null); } public IllegalShard...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Methods for Big Data</title> <meta name="description" content="Analytics for Big and Complex Data Group"> <meta name="author" content="Xi (Rossi) LUO"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="ap...
from umbraco.presentation.nodeFactory import Node from umbraco import library #set the node id you would like to fetch pages from here #you can also set it as a macro property with the alias 'nodeId' instead result = "<ul>" for childNode in currentPage.Children: result += "<li><a href='" + library.Nice...
namespace base { class Value; } namespace cc { enum WhichTree { // Note: these must be 0 and 1 because we index with them in various places, // e.g. in Tile::priority_. ACTIVE_TREE = 0, PENDING_TREE = 1, NUM_TREES = 2 // Be sure to update WhichTreeAsValue when adding new fields. }; scoped_ptr<base::Value>...
/** * Requires placing object keys on new line * * Types: `Boolean` or `Object` * * Values: * - `true` * - `Object`: * - `'allExcept'` array of exceptions: * - `'sameLine'` ignores the rule if all the keys and values are on the same line * * #### Example * * ```js * "requireObjectKeysOnNewLine...
"use strict"; var Declaration = require("./declaration"); var tokenize = require("./tokenize"); var Comment = require("./comment"); var AtRule = require("./at-rule"); var Root = require("./root"); var Rule = require("./rule"); // CSS parser var Parser = (function () { var Parser = function Parser(input) { this....
<?php /** * Created by PhpStorm. * User: Anton * Date: 22.08.2017 * Time: 17:40 */ namespace Service\DataBaseBundle\Controller; use Service\DataBaseBundle\Entity\Category; use Service\DataBaseBundle\Entity\Products; use Symfony\Component\HttpFoundation\Request; use Application\Sonata\UserBundle\Entity\User; use ...
namespace h = Halide; namespace p = boost::python; void translate_error(h::Error const& e) { // Use the Python 'C' API to set up an exception object PyErr_SetString(PyExc_RuntimeError, (std::string("Halide Error: ") + e.what()).c_str()); return; } void translate_runtime_error(h::Runt...
"""Tests for tensorflow.python.framework.ops.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import gc import os import threading import weakref from tensorflow.core.framework import attr_value_pb2 from tensorflow.core.protobuf import config_pb2 from t...
package com.orientechnologies.orient.core.sql.executor; import com.orientechnologies.common.util.OPair; import com.orientechnologies.orient.core.command.OBasicCommandContext; import com.orientechnologies.orient.core.command.OCommandContext; import com.orientechnologies.orient.core.db.ODatabase; import com.orientechnol...
package org.springframework.boot.autoconfigure.template; import java.io.IOException; import org.springframework.core.io.Resource; import org.springframework.core.io.ResourceLoader; import org.springframework.core.io.support.ResourcePatternResolver; import org.springframework.util.Assert; /** * Contains a location...
<?php class Google_Service_Genomics_Binding extends Google_Collection { protected $collection_key = 'members'; public $members; public $role; public function setMembers($members) { $this->members = $members; } public function getMembers() { return $this->members; } public function setRole...
<!DOCTYPE html> <html lang="en"> <head> <style> div { width: 800px; height: 400px; padding: 50px; border: 50px solid transparent; background-image: url(resources/circle.png); background-si...
/* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32L4xx_LL_UTILS_H #define STM32L4xx_LL_UTILS_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32l4xx.h" /** @addtogroup STM32L4xx_LL_Driv...
package build import ( "fmt" "io" "reflect" "sort" "strings" "golang.org/x/text/internal/colltab" ) // This file contains code for detecting contractions and generating // the necessary tables. // Any Unicode Collation Algorithm (UCA) table entry that has more than // one rune one the left-hand side is called ...
module Catasta::JavaScript class AndExpression < Struct.new(:left, :right) def render(ctx) [left.render(ctx), "&&", right.render(ctx)].join(" ") end end end
require 'test_helper' class QuickpayTest < Test::Unit::TestCase def test_error_without_login_option assert_raise ArgumentError do QuickpayGateway.new end end def test_v4to7 gateway = QuickpayGateway.new(:login => 50000000, :password => 'secret') assert_instance_of QuickpayV4to7Gatew...
'use strict'; goog.provide('Blockly.Msg.el'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "Πρόσθεσε Το Σχόλιο"; Blockly.Msg.CHANGE_VALUE_TITLE = "Άλλαξε την τιμή:"; Blockly.Msg.CLEAN_UP = "Clean up Blocks"; // untranslated Blockly.Msg.COLLAPSE_ALL = "Σύμπτυξτε Όλα Τα Μπλοκ"; Blockly.Msg.COLLAPSE_BLOCK = ...
YUI.add('graphics-svg', function (Y, NAME) { var IMPLEMENTATION = "svg", SHAPE = "shape", SPLITPATHPATTERN = /[a-z][^a-z]*/ig, SPLITARGSPATTERN = /[\-]?[0-9]*[0-9|\.][0-9]*/g, Y_LANG = Y.Lang, AttributeLite = Y.AttributeLite, SVGGraphic, SVGShape, SVGCircle, SVGRect, SVGPath, SVGEllipse, S...
package service import ( "net" "reflect" "time" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/master/ports" "github.com/golang/glog" ) const ( SCHEDULER_SERVICE_NAME = "k8sm-scheduler" ) func (m *SchedulerServer) newServiceWriter(stop <-chan struct{}) func() { ret...
using System.Runtime.Caching; namespace Data.Contracts { public interface ICaching { /// <summary> /// Adds the specified key. /// </summary> /// <param name="key">The key.</param> /// <param name="dataObject">The data object.</param> /// <param name="section">Th...
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-118.js * @description Object.defineProperty - 'configurable' property in 'Attributes' is a RegExp object (8.10.5 step 4.b) */ function testcase() { var obj = {}; var attr = { ...
(function(global) { var define = global.define; var require = global.require; var Ember = global.Ember; if (typeof Ember === 'undefined' && typeof require !== 'undefined') { Ember = require('ember'); } Ember.libraries.register('Ember Simple Auth', '0.6.5'); define("simple-auth/authenticators/base", [...
<!-- Copyright (c) 2014 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer....
package test.ammonite.ops /** * Created by haoyi on 2/17/16. */ object Unix { def apply() = java.nio.file.Paths.get("").toAbsolutePath.getRoot.toString == "/" } /** * Dummy class just used to test classloader relative/absolute resource logic */ class Testing
package org.drools.template.parser; import org.kie.api.runtime.KieSession; import java.util.Map; /** * A cell in a decision table containing a long value */ public class BooleanCell implements Cell { Row row; Boolean value; Column column; private int index; public BooleanCell() { } ...
import functools from pip._vendor.requests.adapters import HTTPAdapter from .controller import CacheController from .cache import DictCache from .filewrapper import CallbackFileWrapper class CacheControlAdapter(HTTPAdapter): invalidating_methods = set(['PUT', 'DELETE']) def __init__(self, cache=None, ...
'use strict'; module.exports = function(grunt) { grunt.loadNpmTasks('grunt-simple-mocha'); grunt.initConfig({ simplemocha: { backend: { src: 'test/*.js' } } }); // grunt default task grunt.registerTask('default', ['simplemocha']); }
class Import::BitbucketController < Import::BaseController before_action :verify_bitbucket_import_enabled before_action :bitbucket_auth, except: :callback rescue_from OAuth::Error, with: :bitbucket_unauthorized rescue_from Gitlab::BitbucketImport::Client::Unauthorized, with: :bitbucket_unauthorized def call...
package com.mcleodmoores.examples.simulated.loader.securities; import static org.testng.Assert.assertEquals; import java.util.Arrays; import java.util.Collection; import java.util.HashSet; import java.util.List; import org.testng.annotations.Test; import com.opengamma.master.security.ManageableSecurity; import com....
<?php namespace JMS\Serializer\Tests\Fixtures; use JMS\Serializer\Annotation\SerializedName; use JMS\Serializer\Annotation\Type; use JMS\Serializer\Annotation\XmlRoot; use JMS\Serializer\Annotation\XmlNamespace; use JMS\Serializer\Annotation\XmlElement; /** * @XmlRoot("publisher") * @XmlNamespace(uri="http://exa...
function git_get_branch() { git symbolic-ref --short HEAD } # Show the commit message of the ref specified in argument function git_commit_msg() { git show -s --pretty=format:%B "$@" } # Extract the release candidate number from the git notes function get_release_candidate() { git notes --ref=release-candidate ...
package org.activiti.examples.mgmt; import static org.assertj.core.api.Assertions.assertThat; import java.util.Map; import org.activiti.engine.ManagementService; import org.activiti.engine.impl.test.PluggableActivitiTestCase; import org.activiti.engine.management.TableMetaData; /** * Test case for the various ope...
package node import ( "bytes" "testing" "time" kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" ) func TestEncodeTokenSecretData(t *testing.T) { var tests = []struct { token *kubeadmapi.TokenDiscovery t time.Duration }{ {token: &kubeadmapi.TokenDiscovery{ID: "foo", Secret: "bar"}}, ...
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!...
<strings> <string name="title_name" value="Notas" /> </strings>
<!doctype HTML> <html> <head> <title>moving &lt;source&gt; element test</title> <script src=video-test.js></script> <script src=media-file.js></script> <script> var testInfo = { current : -1, tests : [ ...
package com.jme3.scene.plugins.blender.constraints.definitions; import java.util.Set; import com.jme3.animation.Bone; import com.jme3.math.Transform; import com.jme3.scene.plugins.blender.BlenderContext; import com.jme3.scene.plugins.blender.BlenderContext.LoadedDataType; import com.jme3.scene.plugins.blender...
Ruby on Rails 2.3 Release Notes =============================== Rails 2.3 delivers a variety of new and improved features, including pervasive Rack integration, refreshed support for Rails Engines, nested transactions for Active Record, dynamic and default scopes, unified rendering, more efficient routing, application...
package org.inferred.freebuilder.processor; import java.util.Iterator; import java.util.List; import javax.tools.JavaFileObject; import org.inferred.freebuilder.FreeBuilder; import org.inferred.freebuilder.processor.util.testing.BehaviorTester; import org.inferred.freebuilder.processor.util.testing.SourceBuilder; i...
package server import ( "bytes" "errors" "fmt" "net/http" rt "runtime" "sort" "strings" "github.com/emicklei/go-restful" "github.com/golang/glog" apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apiserver/pkg/endpoints/ha...
package com.google.inject; import static com.google.inject.Asserts.*; import static com.google.inject.name.Names.named; import com.google.common.base.Objects; import com.google.common.collect.Lists; import com.google.inject.name.Named; import com.google.inject.spi.Element; import com.google.inject.spi.Elements; imp...
package org.elasticsearch.search.query; import org.apache.lucene.analysis.MockTokenizer; import org.apache.lucene.analysis.pattern.PatternReplaceCharFilter; import org.apache.lucene.index.IndexReader; import org.apache.lucene.search.MultiTermQuery; import org.apache.lucene.search.join.ScoreMode; import org.apache.lu...
/**! * AngularJS file upload/drop directive and service with progress and abort * FileAPI Flash shim for old browsers not supporting FormData * @author Danial <danial.farid@gmail.com> * @version 6.1.1 */ (function () { /** @namespace FileAPI.noContentTimeout */ function patchXHR(fnName, newFn) { window...