text
stringlengths
3
1.05M
"""Alternative implementation of workdays. kept for testing purposes.""" from datetime import timedelta, datetime __revision__ = "$Revision$" def calculate_weekenddays_between(datetime1, datetime2): """ Returns the number of weekend days between the 2 dates passed as parameters. The result is re...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.6.0-rc1 */ angular.module('ngMaterial', ["ng","ngAnimate","ngAria","material.core","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.ch...
package pl.maciejwalkowiak.plist; import org.junit.Test; import pl.maciejwalkowiak.plist.handler.Handler; import pl.maciejwalkowiak.plist.strategy.UppercaseNamingStrategy; import pl.maciejwalkowiak.plist.plisttypes.PlistData; import java.math.BigDecimal; import java.util.*; import static org.fest.assertions.Assert...
package com.hannesdorfmann.mosby.sample.mail; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest(...
Object.prototype["10"] = "unreachable"; Object.prototype["7"] = "unreachable"; Object.prototype["-1"] = "unreachable"; Object.prototype["-0"] = "unreachable"; Object.prototype["4294967296"] = "unreachable"; var array = new Int32Array(10); function check() { for (var i = 0; i < 4; i++) { assertEquals(undefined, ...
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2000-2015 JetBrains s.r.o. ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0...
package org.apache.flink.metrics.statsd; import org.apache.flink.api.common.JobID; import org.apache.flink.configuration.ConfigConstants; import org.apache.flink.configuration.Configuration; import org.apache.flink.configuration.MetricOptions; import org.apache.flink.metrics.Counter; import org.apache.flink.metrics....
const wchar_t kSessionManagerKey[] = L"SYSTEM\\CurrentControlSet\\Control\\Session Manager"; const wchar_t kPendingFileRenameOps[] = L"PendingFileRenameOperations"; namespace { // Returns true if this directory name is 'safe' for deletion (doesn't contain // "..", doesn't specify a drive root) bool IsSafeDirector...
var contexts = {}; module.exports = contexts; var copyFromOriginal = function copyFromOriginal(original, destination, propertiesToCopy) { if (!original) { return; } for (var i = 0; i < propertiesToCopy.length; i++) { if (original.hasOwnProperty(propertiesToCopy[i])) { destination[propertie...
package e2e import ( "fmt" "strconv" "time" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/client/cache" client "k8s.io/kubernetes/pkg/client/unversioned" controllerframework "k8s.io/kubernetes/pkg/controller/framework" "k8s.io/kubernetes/pkg/labels" "k8s.io/kubernetes/pkg/master/ports" "k8s.io/kubern...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v4.0.3 * @link http://www.ag-grid.com/ * @license MIT */ var utils_1 = require('../utils'); var template = '<div class="ag-list-selection">' + '<div>' + '<div ag-repeat class="ag-list-item"...
var argscheck = require('cordova/argscheck'), exec = require('cordova/exec'), ContactError = require('./ContactError'), utils = require('cordova/utils'); /** * Converts primitives into Complex Object * Currently only used for Date fields */ function convertIn(contact) { var value = contact.birthday; ...
from __future__ import unicode_literals from .messages import (CheckMessage, Debug, Info, Warning, Error, Critical, DEBUG, INFO, WARNING, ERROR, CRITICAL) from .registry import register, run_checks, tag_exists, Tags # Import these to force registration of checks import django.core.checks.compatibility...
function bar(x) { "use strict"; return this + x; } function foo(f) { var a = bar.bind(42, 1); return f() ? 0 : a; } function t() { return true; } assertEquals(0, foo(t)); assertEquals(0, foo(t)); %OptimizeFunctionOnNextCall(foo); var a = foo(_ => false); assertEquals(43, a());
package ipv4 import ( "net" "syscall" ) // ReadFrom reads a payload of the received IPv4 datagram, from the // endpoint c, copying the payload into b. It returns the number of // bytes copied into b, the control message cm and the source address // src of the received datagram. func (c *payloadHandler) ReadFrom(b ...
#include "config.h" #include "core/rendering/GraphicsContextAnnotator.h" #include "core/inspector/InspectorNodeIds.h" #include "core/rendering/PaintInfo.h" #include "core/rendering/RenderObject.h" #include "platform/graphics/GraphicsContextAnnotation.h" #include "wtf/text/StringBuilder.h" namespace { const char An...
import invariant from 'shared/invariant'; /** * Accumulates items that must not be null or undefined into the first one. This * is used to conserve memory by avoiding array allocations, and thus sacrifices * API cleanness. Since `current` can be null before being passed in and not * null after this function, mak...
<?php /** * Includes a template. * * <pre> * {% include 'header.html' %} * Body * {% include 'footer.html' %} * </pre> */ class Twig_TokenParser_Include extends Twig_TokenParser { /** * Parses a token and returns a node. * * @param Twig_Token $token A Twig_Token instance * ...
"""Tests for state updating ops that may have benign race conditions.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from tensorflow.python.ops import array_ops from tensorflow.python.ops import math_ops from tensorflow.python.ops im...
<project> <modelVersion>4.0.0</modelVersion> <groupId>org.elasticsearch</groupId> <artifactId>dev-tools</artifactId> <version>3.0.0-SNAPSHOT</version> <name>Build Tools and Resources</name> <description>Tools to assist in building and developing in the Elasticsearch project</description> <parent> <g...
package org.apache.beam.sdk; import java.io.IOException; import org.apache.beam.sdk.annotations.Experimental; import org.apache.beam.sdk.annotations.Experimental.Kind; import org.apache.beam.sdk.metrics.MetricResults; import org.apache.beam.sdk.transforms.Aggregator; import org.joda.time.Duration; /** * Result of {...
package service_test import ( testapi "github.com/nttlabs/cli/cf/api/fakes" . "github.com/nttlabs/cli/cf/commands/service" "github.com/nttlabs/cli/cf/configuration/core_config" "github.com/nttlabs/cli/cf/models" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" testcmd "github.com/nttlabs/cli/testhelpers/c...
[<p align="center"><img height=256 alt="Foundation3" src="./logo.png"></p>](#Foundation3) # Foundation3 ![🐧 linux: ready](https://img.shields.io/badge/%F0%9F%90%A7%20linux-ready-red.svg) ![🐤 3.0: ready](https://img.shields.io/badge/🐤 3.0-ready-reallyed.svg) [![Build Status](https://travis-ci.org/crossroadlabs/Foun...
<entry> <act classCode="ACT" moodCode="EVN"> <!-- Conforms to C-CDA Problem Concern Act (V2) --> <templateId root="2.16.840.1.113883.10.20.22.4.3" extension="2014-06-09" /> <!-- Diagnosis Active Concern Act --> <templateId root="2.16.840.1.113883.10.20.24.3.121" extension="2014-12-01" /> <id root="{{newRan...
package apiserver import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil" "net" "net/http" "path" rt "runtime" "strconv" "strings" "time" "k8s.io/kubernetes/pkg/admission" "k8s.io/kubernetes/pkg/api" apierrors "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/latest" "k8s.io/kubernetes/...
>**_This documentation is for a preview version of the Azure DevOps Migration Tools._ If you are not using the preview version then please head over to the main [documentation](https://nkdagility.github.io/azure-devops-migration-tools).** [Overview](.././index.md) > [Reference](../index.md) > [Processors](./index.md) ...
@interface OLiBaseBoard () @end @implementation OLiBaseBoard - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. self.automaticallyAdjustsScrollViewInsets = NO; self.fd_prefersNavigationBarHidden = NO; } - (void)didReceiveMemoryWarning { [su...
<!-- Copyright David Abrahams 2006. Distributed under the Boost --> <!-- Software License, Version 1.0. (See accompanying --> <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) --> <html> <head> <meta http-equiv="refresh" content="0; URL=doc/index.html"> </head> <body> Automatically load...
Physijs.scripts.worker = '../physijs_worker.js'; Physijs.scripts.ammo = 'examples/js/ammo.js'; var initScene, render, ground_material, car_material, wheel_material, wheel_geometry, projector, renderer, render_stats, physics_stats, scene, ground_geometry, ground, light, camera, car: any = {}; initScene = f...
Apply this configuration on all nodes matching the specified label expression
require 'test/unit' ##require 'new_relic/agent/testable_agent' class TestSync include NewRelic::Agent::Synchronize end class AgentSynchronizeTests < Test::Unit::TestCase def test_sync t = TestSync.new worked = false t.synchronize_sync do worked = true end assert worked ...
/** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used to co...
<hr class="soften"> <footer> <p> By <a href="http://wurmlab.github.io">Wurm Lab</a>, <a href="http://sbcs.qmul.ac.uk">Queen Mary, University of London</a>. Funded by <a href="http://www.bbsrc.ac.uk/home/home.aspx">BBSRC</a> and <a href="http://www.qminnovation.co.uk/">QMI</a>. <br> Parts of Afra are ...
namespace { // The maximum length of an access points RLZ in wide chars. const DWORD kMaxRlzLength = 64; enum { ACCESS_VALUES_STALE, // Possibly new values available. ACCESS_VALUES_FRESH // The cached values are current. }; // Tracks if we have tried and succeeded sending the ping. This helps us // de...
package org.apache.ignite.internal.util; import java.io.Serializable; import java.util.AbstractMap; import java.util.AbstractSet; import java.util.BitSet; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.Set; import org.apache.ignite.internal.processors.cache.distributed.dht.topol...
ACCEPTED #### According to NUB Generator [autonym] #### Published in null #### Original name null ### Remarks null
// SignEntity.h // Declares the cSignEntity class representing a single sign in the world #pragma once #include "BlockEntity.h" // tolua_begin class cSignEntity : public cBlockEntity { typedef cBlockEntity super; public: // tolua_end BLOCKENTITY_PROTODEF(cSignEntity) /** Creates a new empty sig...
This document is a declaration of software quality for the `stereo_msgs` package, based on the guidelines in [REP-2004](https://www.ros.org/reps/rep-2004.html). # `stereo_msgs` Quality Declaration The package `stereo_msgs` claims to be in the **Quality Level 1** category as long as it is used with a **Quality Level 1...
<?php namespace Illuminate\Database; use Doctrine\DBAL\Types\Type; use Illuminate\Database\Connectors\ConnectionFactory; use Illuminate\Support\Arr; use Illuminate\Support\ConfigurationUrlParser; use Illuminate\Support\Str; use Illuminate\Support\Traits\Macroable; use InvalidArgumentException; use PDO; use RuntimeExc...
class WaitingItem : public QListBoxText { protected: virtual void paint(QPainter *painter) { if (!error.isEmpty()) { QPen oldpen = painter->pen(); painter->setPen(QObject::red); QListBoxText::paint(painter); painter->setPen(oldpen); } else { QListBoxText::paint(painter); } ...
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>hangout-filters</artifact...
// boost heap: heap merge algorithms // // Copyright (C) 2011 Tim Blechmann // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_HEAP_MERGE_HPP #define BOOST_HEAP_MERGE_HPP #include <algorithm> #in...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Jasmine Spec Runner</title> <!-- generate script tags for tests --> <!-- for each test, generate CSS/LESS link tags --> <!-- the tags to be generated --> <link id="original-less:test-less-legacy" title="test-...
package org.apache.gobblin.metrics.context; import lombok.Getter; import java.lang.ref.WeakReference; import org.apache.gobblin.metrics.InnerMetricContext; import org.apache.gobblin.metrics.MetricContext; import org.apache.gobblin.metrics.RootMetricContext; /** * {@link WeakReference} to a {@link MetricContext}...
from __future__ import absolute_import from datetime import datetime from django.utils import timezone from sentry.models import ProjectKey from sentry.testutils import AcceptanceTestCase class ProjectKeysTest(AcceptanceTestCase): def setUp(self): super(ProjectKeysTest, self).setUp() self.user =...
using System; using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; namespace Test.Cryptography { internal abstract partial class CertLoader { private static readonly X509KeyStorageFlags s_defaultKeyStorageFlags = GetBestKeyStorag...
require 'test_helper' describe Hbc::CLI::List do it 'lists the installed Casks in a pretty fashion' do casks = %w[local-caffeine local-transmission].map { |c| Hbc.load(c) } casks.each { |c| TestHelper.install_without_artifacts(c) } lambda { Hbc::CLI::List.run }.must_output <<-OUTPUT.gsub(/^ *...
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape> <gradient android:startColor="#ffffff" android:endColor="#cbcdd1" android:type="linear" android:angle="270" /> </shape> </item> </layer-list><!-- From: file:/Users/kc...
#ifndef _MSC_VER # include <sys/param.h> #endif #include <sys/types.h> #include <stdio.h> #ifndef _MSC_VER # include <stdint.h> # include <stdbool.h> #else # include "win32/stdbool.h" # include "win32/stdint.h" #endif #include <errno.h> #include <ruby.h> #include <ffi.h> #include "rbffi.h" #include "compat.h" #incl...
// FIXME should possibly show tooltip when dragging? goog.provide('ol.control.ZoomSlider'); goog.require('goog.asserts'); goog.require('goog.dom'); goog.require('goog.dom.TagName'); goog.require('goog.events'); goog.require('goog.events.Event'); goog.require('goog.events.EventType'); goog.require('goog.fx.Dragger'); ...
require "ftw/namespace" # A mixin that provides singleton-ness # # Usage: # # class Foo # extend FTW::Singleton # # ... # end # # foo = Foo.singleton module FTW::Singleton # This is invoked when you include this module. It raises an exception because you should be # using 'extend' not 'include'...
[![Build Status](https://travis-ci.org/gophercloud/gophercloud.svg?branch=master)](https://travis-ci.org/gophercloud/gophercloud) [![Coverage Status](https://coveralls.io/repos/github/gophercloud/gophercloud/badge.svg?branch=master)](https://coveralls.io/github/gophercloud/gophercloud?branch=master) Gophercloud is an ...
package org.apache.camel.spring.produce; import java.util.Map; import org.apache.camel.Consume; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; /** * @version */ @Service public class MyListenerService implements MyListener { private static final Logge...
using System.Web; using System.Web.Mvc; namespace Office365Api.MVCDemo { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
<!--[metadata]> +++ title = "Installation on Google Cloud Platform" description = "Installation instructions for Docker on the Google Cloud Platform." keywords = ["Docker, Docker documentation, installation, google, Google Compute Engine, Google Cloud Platform"] [menu.main] parent = "smn_cloud" +++ <![end-metadata]-->...
class AddColorToEventType < ActiveRecord::Migration def change add_column :event_types, :color, :string end end
package io.oilfox.backend.api.shared.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Created by ben on 26/01/16. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) publ...
layout: update published: true collection: updates category: chrome product: chrome type: news date: 2014-05-21 title: "A More Compatible, Smoother Touch" description: "You and your users want mobile web apps that react and scroll smoothly to the touch. Developing them should be easy but, unfortunately, how mobile w...
 #pragma once #include <aws/workmail/WorkMail_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namesp...
package mgo_test import ( "crypto/tls" "flag" "fmt" "io/ioutil" "net" "net/url" "os" "runtime" "sync" "time" . "gopkg.in/check.v1" "gopkg.in/mgo.v2" ) func (s *S) TestAuthLoginDatabase(c *C) { // Test both with a normal database and with an authenticated shard. for _, addr := range []string{"localhost:...
#include "tensorflow/compiler/xla/service/gpu/gpu_performance_model.h" #include <algorithm> #include <cstdint> #include <vector> #include "absl/time/time.h" namespace xla { namespace gpu { /*static*/ struct GpuPerformanceModel::RunTimes GpuPerformanceModel::EstimateRunTimes( const HloInstruction* producer, co...
require "spec_helper" describe "bundle gem" do before do @git_name = `git config --global user.name`.chomp `git config --global user.name "Bundler User"` @git_email = `git config --global user.email`.chomp `git config --global user.email user@example.com` end after do `git config --global us...
package org.sakaiproject.entitybroker.providers; import java.io.Serializable; import java.net.Inet4Address; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import...
#include <random> #include <cgo/random/random_agent.hpp> using namespace cgo::base; using namespace cgo::random; RandomAgent::RandomAgent(base::Marker marker) : Agent(marker) {} /* virtual */ RandomAgent::~RandomAgent() {} Move RandomAgent::makeMove(base::State& state, const boost::optional< base::Predecessor >...
<html> <head> <script src="../../http/tests/inspector/inspector-test.js"></script> <script src="../../http/tests/inspector/console-test.js"></script> <script> function test() { InspectorTest.evaluateInConsole("{a:1, b:2}", step2); function step2() { var consoleView = WebInspector.ConsoleView.instan...
@extends('connexion::templates.backend') @section('adminlte_css') <link rel="stylesheet" href="{{ asset('/vendor/adminlte/dist/css/skins/skin-' . config('adminlte.skin', 'blue') . '.min.css')}} "> <link rel="stylesheet" href="{{ asset('/vendor/bishopm/css/app.css')}} "> <meta id="token"...
<?xml version="1.0" encoding="UTF-8"?> <project name="phpunit" default="setup"> <target name="setup" depends="clean,composer"/> <target name="clean" description="Cleanup build artifacts"> <delete dir="${basedir}/bin"/> <delete dir="${basedir}/vendor"/> <delete file="${basedir}/composer....
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <script src="resources/SVGTestCase.js"></script> <script src="../../resources/js-test.js"></script> <script src="../../fast/repaint/resources/text-based-repaint.js"></script> </head> <body onload="runRepaintTest()"> <h1>SVG 1.1 dynamic update tests</h1> <p id...
(function( jQuery ) { var // Promise methods promiseMethods = "then done fail isResolved isRejected promise".split( " " ), // Static reference to slice sliceDeferred = [].slice; jQuery.extend({ // Create a simple deferred (one callbacks list) _Deferred: function() { var // callbacks list callbacks = [], ...
<resources> <string name="date_format">MM.dd. EEEE</string> <string name="today">Ma</string> <string name="tomorrow">Holnap</string> <string name="aqi_pure"/> <string name="aqi_good"/> <string name="aqi_moderate"/> <string name="aqi_pollution"/> <string name="aqi_unhealthy"/> <strin...
<!DOCTYPE html> <!-- Distributed under both the W3C Test Suite License [1] and the W3C 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the policies and contribution forms [3]. [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license [...
<?php namespace Symfony\Component\Validator\Tests; use Doctrine\Common\Annotations\AnnotationReader; use Symfony\Component\Validator\Validator; use Symfony\Component\Validator\ValidatorContext; use Symfony\Component\Validator\ValidatorFactory; use Symfony\Component\Validator\ConstraintValidatorFactory; use Symfony\...
from pytest import raises import numpy as np from timeseries.TimeSeries import * from timeseries.lazy import * @lazy def lazy_add(a,b): return a+b @lazy def lazy_mul(a,b): return a*b @lazy def lazy_mul_three(a,b, c): return a*b*c @lazy def check_length(a,b): return len(a)==len(b) def test_eval(): ...
package org.spongepowered.common.data.provider.block.state; import net.minecraft.world.level.block.WallSignBlock; import net.minecraft.world.level.block.state.BlockState; import org.spongepowered.api.data.Keys; import org.spongepowered.common.data.provider.DataProviderRegistrator; import org.spongepowered.common.util...
<?php namespace AppBundle\Service; /** * Class LdapService */ class LdapService { private $ldapConnection = null; private $config; /** * Initialise LdapService * * La connecion au LDAP n'est pas initialisée ici car ce service est instancié à chaque appel (à chaque connexion d'un utilisat...
<?xml version="1.0" encoding="utf-8"?> <project> <builders> <org.jvnet.hudson.plugins.exclusion.CriticalBlockEnd plugin="Exclusion"/> </builders> </project>
<?php /** * AllErrorTest class * * This test group will run error handling related tests. * * @package Cake.Test.Case */ class AllErrorTest extends PHPUnit_Framework_TestSuite { /** * suite method, defines tests for this suite. * * @return void */ public static function suite() { $suite = new Cake...
import pytest PCT_TOLERANCE = 1E-5 def test_norm_constraint(): import numpy as np import theano from lasagne.updates import norm_constraint from lasagne.utils import compute_norms max_norm = 0.01 param = theano.shared( np.random.randn(100, 200).astype(theano.config.floatX) ) ...
import _extends from "@babel/runtime/helpers/esm/extends"; export default function createMixins(breakpoints, spacing, mixins) { return _extends({ toolbar: { minHeight: 56, [`${breakpoints.up('xs')} and (orientation: landscape)`]: { minHeight: 48 }, [breakpoints.up('sm')]: { ...
bool ConvertKeyCodeToText( ui::KeyboardCode key_code, int modifiers, std::string* text, std::string* error_msg) { *text = std::string(); *error_msg = std::string("Not Implemented"); NOTIMPLEMENTED(); return false; } bool ConvertCharToKeyCode( base::char16 key, ui::KeyboardCode* key_code, int *n...
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { CanDeactivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { CrisisDetailComponent } from './crisis-center/crisis-detail.component'; @Injectable() ...
#if !__has_feature(objc_arc) #error "This source file must be compiled with ARC enabled!" #endif #import "SBJsonStreamParserState.h" #define SINGLETON \ + (id)sharedInstance { \ static id state = nil; \ if (!state) { \ @synchronized(self) { \ if (!state) state = [[self alloc] init]; \ ...
define(function (require) { var zrUtil = require('zrender/core/util'); var modelUtil = require('../../util/model'); return function (option) { createParallelIfNeeded(option); mergeAxisOptionFromParallel(option); }; /** * Create a parallel coordinate if not exists. * @inn...
namespace glm { /// @addtogroup gtx_raw_data /// @{ //! Type for byte numbers. //! From GLM_GTX_raw_data extension. typedef detail::uint8 byte; //! Type for word numbers. //! From GLM_GTX_raw_data extension. typedef detail::uint16 word; //! Type for dword numbers. //! From GLM_GTX_raw_data extension. ...
<?php namespace Symfony\Component\Validator\Tests\Constraints; use Symfony\Component\Validator\Constraints\Choice; use Symfony\Component\Validator\Constraints\ChoiceValidator; function choice_callback() { return array('foo', 'bar'); } class ChoiceValidatorTest extends AbstractConstraintValidatorTest { pro...
 using System; using System.IO; using System.Data; using System.Linq; using System.Text; using System.Drawing; using System.Threading; using System.Windows.Forms; using System.ComponentModel; using System.Threading.Tasks; using System.Collections.Generic; using OpenSource.WebRTC; using System.Net; namespace WebRTC_S...
// Original Code: Copyright (c) 2011-2014 The Bitcoin Core Developers // Modified Code: Copyright (c) 2014 Project Bitmark // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef CLIENTMODEL_H #define CLIENTMODEL_H #include...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:style> .bar { height: 100%; padding: 15px 0; } @external obrand_content; .obrand...
package com.slidingmenu.lib; import android.graphics.Canvas; import android.view.animation.Interpolator; import com.slidingmenu.lib.SlidingMenu.CanvasTransformer; public class CanvasTransformerBuilder { private CanvasTransformer mTrans; private static Interpolator lin = new Interpolator() { public float getInt...
t.deepEqual(require('events'), {}); t.deepEqual(require('bad id'), {}); t.deepEqual(require('beep'), {});
goog.provide('ketornah_client.components.result'); goog.require('cljs.core'); goog.require('rum.core'); ketornah_client.components.result.c_result = rum.core.build_defcs.call(null,(function (state,app_state){ return React.createElement("div",null,"Search Results"); }),new cljs.core.PersistentVector(null, 1, 5, cljs.cor...
package e2e import ( "fmt" federationapi "k8s.io/kubernetes/federation/apis/federation" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/test/e2e/framework" ) func createClusterObjectOrFail(f *framework.Framework, context *framework.E2EContext) { framework.Logf("Creating cluster object: %s (%s, secret: %s)", co...
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <!-- Your own application s...
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. // // You are hereby granted a non-exclusive, worldwide, royalty-free license to use, // copy, modify, and distribute this software in source code or binary form for use // in connection with the web services and APIs provided by Facebook. // // As with...
function vega_parse(spec, div) { vg.parse.spec(spec, function(chart) { chart({el:div}).update(); }); }
<?php /** * @see Zend_Tool_Framework_Loader_Abstract */ require_once 'Zend/Tool/Framework/Loader/Interface.php'; /** * @see Zend_Tool_Framework_Registry_EnabledInterface */ require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php'; /** * @see Zend_Loader */ require_once 'Zend/Loader.php'; require_once ...
Please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `src` subdirectory! ### Code style Regarding code style like indentation and whitespace, **follow the conventions you see used in the source already.** ## Modifying the code First, ensure that you have t...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class com.programmerdan.minecraft.civspy.DataManager (CivSpy 1....
package org.apache.tez.common.counters; import org.apache.hadoop.classification.InterfaceAudience.Private; // Counters used by Task classes @Private public enum TaskCounter { // TODO Eventually, rename counters to be non-MR specific and map them to MR equivalent. /** * Number of Input Groups seen by Shuffle...
ANT_HOME=$DBFLUTE_HOME/ant NATIVE_PROPERTIES_PATH=$1 sh $DBFLUTE_HOME/etc/cmd/_df-copy-properties.sh $NATIVE_PROPERTIES_PATH sh $DBFLUTE_HOME/etc/cmd/_df-copy-extlib.sh sh $DBFLUTE_HOME/ant/bin/ant -Ddfenv=$DBFLUTE_ENVIRONMENT_TYPE -f $DBFLUTE_HOME/build-torque.xml jdbc antReturnCode=$? sh $DBFLUTE_HOME/etc/cmd/_df...