text
stringlengths
3
1.05M
<!doctype html> <title>WebSockets: send() with no args</title> <script src=../../../../../resources/testharness.js></script> <script src=../../../../../resources/testharnessreport.js></script> <script src=../../../constants.js></script> <div id=log></div> <script> test(function(t) { var ws = new WebSocket(SCHEME_AND_...
require 'rails_helper' # Specs in this file have access to a helper object that includes # the UnitsHelper. For example: # # describe UnitsHelper do # describe "string concat" do # it "concats two strings with spaces" do # expect(helper.concat_strings("this","that")).to eq("this that") # end # end # ...
module FbGraph module Connections module Conversations def conversations(options = {}) conversations = self.connection :conversations, options conversations.map! do |conversation| Thread.new conversation[:id], conversation.merge( :access_token => options[:access_token] ...
A RSS feed plugin for [Kirby CMS](http://getkirby.com) that generates RSS feeds for any set of pages. ## Installation Put the `feed` folder in `/site/plugins`. ## How to use it You can use this in a template for a dedicated feed page or in a template controller. ## Example usage ```php <?php echo page('blog')->c...
namespace net { class ConnectJobFactory; class TransportClientSocketPool; class TransportSocketParams; class SOCKSSocketParams : public base::RefCounted<SOCKSSocketParams> { public: SOCKSSocketParams(const scoped_refptr<TransportSocketParams>& proxy_server, bool socks_v5, const HostPortPair& ho...
//--------------------------------------------------------------------- // <copyright file="VisualBasicLanguageStrategy.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // </copyright> //-------------------------...
// @module: amd // @removeComments: false /** b's comment*/ export var b: number;
#include <memory> #include <vector> #include "tensorflow/compiler/xla/array2d.h" #include "tensorflow/compiler/xla/array4d.h" #include "tensorflow/compiler/xla/client/computation_builder.h" #include "tensorflow/compiler/xla/client/lib/arithmetic.h" #include "tensorflow/compiler/xla/client/local_client.h" #include "t...
package org.egothor.stemmer; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; import java.util.List; /** * The MultiTrie is a Trie of Tries. It stores words and their associated patch * commands. The MultiTrie handles patch com...
'use strict'; var nano = require('cssnano'), assign = require('object-assign'), PluginError = require('gulp-util').PluginError, Transform = require('stream').Transform, applySourceMap = require('vinyl-sourcemaps-apply'), PLUGIN_NAME = 'gulp-cssnano'; module.exports = function (opts)...
#ifndef __XN_LOG_ANDROID_WRITER_H__ #define __XN_LOG_ANDROID_WRITER_H__ //--------------------------------------------------------------------------- // Includes //--------------------------------------------------------------------------- #include <XnLogWriterBase.h> class XnLogAndroidWriter : public XnLogWriterBas...
.oo-ui-icon-article { background-image: /* @embed */ url(themes/mediawiki/images/icons/article-rtl.svg); } .oo-ui-icon-articleCheck { background-image: /* @embed */ url(themes/mediawiki/images/icons/articleCheck-rtl.svg); } .oo-ui-icon-articleSearch { background-image: /* @embed */ url(themes/mediawiki/images/icons...
@interface OverviewASTableNode () <ASTableDataSource, ASTableDelegate> @property (nonatomic, strong) ASTableNode *node; @end @implementation OverviewASTableNode #pragma mark - Lifecycle - (instancetype)init { self = [super init]; if (self == nil) { return self; } _node = [ASTableNode new]; _node...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace bc.multiverse.edu.Models.AccountViewModels { public class ForgotPasswordViewModel { [Required] [EmailAddress] public string Email { ge...
<?php require_once 'testDataFileIterator.php'; class CalculationTest extends PHPUnit_Framework_TestCase { public function setUp() { if (!defined('PHPEXCEL_ROOT')) { define('PHPEXCEL_ROOT', APPLICATION_PATH . '/'); } require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); ...
/* * SystemJS v0.16.9 */ (function($__global, $__globalName) { $__global.upgradeSystemLoader = function() { $__global.upgradeSystemLoader = undefined; // indexOf polyfill for IE var indexOf = Array.prototype.indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) if (this[i] === it...
#ifndef BT_SERIALIZER_H #define BT_SERIALIZER_H #include "btScalar.h" // has definitions like SIMD_FORCE_INLINE #include "btHashMap.h" #if !defined( __CELLOS_LV2__) && !defined(__MWERKS__) #include <memory.h> #endif #include <string.h> ///only the 32bit versions for now extern char sBulletDNAstr[]; extern int sB...
/* * The listener handles multicast subscriptions on given interfaces. * The proxy will provide subscription for all requested (*,G) and (S,G) groups. * */ #ifndef LISTENER_H_ #define LISTENER_H_ #include "ifgroup.h" #define LISTENER_CONF 0x1 #define LISTENER_PIM_PROXY 0x2 struct listener_iface { int so...
require 'amazon_pa/error/server_error' module AmazonPa class Error class BadGateway < AmazonPa::Error::ServerError HTTP_STATUS_CODE = 502 MESSAGE = "AmazonAws is down or being updated." end end end
<div class="aside-wrap"> <!-- if you want to use a custom scroll when aside fixed, use the slimScroll <div class="navi-wrap" ui-jq="slimScroll" ui-options="{height:'100%', size:'8px'}"> --> <div class="navi-wrap"> <!-- user --> <div class="clearfix hidden-xs text-center hide" id="aside-user"> <d...
namespace NWindows { namespace NTime { bool DosTimeToFileTime(UInt32 dosTime, FILETIME &fileTime); bool FileTimeToDosTime(const FILETIME &fileTime, UInt32 &dosTime); void UnixTimeToFileTime(UInt32 unixTime, FILETIME &fileTime); bool FileTimeToUnixTime(const FILETIME &fileTime, UInt32 &unixTime); bool GetSecondsSince16...
// Type definitions for Apache Cordova Contacts plugin. // Project: https://github.com/apache/cordova-plugin-contacts // Definitions by: Microsoft Open Technologies, Inc. <http://msopentech.com> // Definitions: https://github.com/borisyankov/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Lice...
/* * This file implements code to map the 32-bit xattr id stored in the inode * into the on disk location of the xattr data. */ #include <linux/fs.h> #include <linux/vfs.h> #include <linux/slab.h> #include "squashfs_fs.h" #include "squashfs_fs_sb.h" #include "squashfs.h" #include "xattr.h" /* * Map xattr id us...
<?php /** * Constraint that asserts that the string it is evaluated for ends with a given * suffix. * * @package PHPUnit * @subpackage Framework_Constraint * @author Sebastian Bergmann <sebastian@phpunit.de> * @author Bernhard Schussek <bschussek@2bepublished.at> * @copyright 2001-2014 Sebastian B...
using System; using System.IO; using System.Threading; using Grpc.Core.Internal; namespace Grpc.Core.Profiling { internal static class Profilers { static readonly NopProfiler DefaultProfiler = new NopProfiler(); static readonly ThreadLocal<IProfiler> profilers = new ThreadLocal<IProfiler>(); ...
package org.kuali.rice.core.api.criteria; import org.kuali.rice.core.api.util.jaxb.EnumStringAdapter; /** * Defines possible directives for how a query is requested to produce count values in it's results. * * @author Kuali Rice Team (rice.collab@kuali.org) * */ public enum CountFlag { /** * Indicates tha...
import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.append(os.path.abspath('.')) sys.path.insert(0, '..') #...
<?php namespace Symfony\Component\Form\Extension\Core\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator; use Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator; use Symfony\Component\Form\ChoiceList\LegacyChoiceListAdapter; use Symfon...
require 'formula' class Tivodecode < Formula homepage 'http://tivodecode.sourceforge.net/' url 'https://downloads.sourceforge.net/project/tivodecode/tivodecode/0.2pre4/tivodecode-0.2pre4.tar.gz' sha1 'efabe4aee461e6da90ddc52abe9ae025c4185032' version '0.2pre4' def install system "./configure", "--disabl...
package com.streamsets.pipeline.stage.destination.solr; public enum SolrInstanceType {SINGLE_NODE, SOLR_CLOUD}
package org.lwjgl.glfw; import org.lwjgl.system.*; import static org.lwjgl.system.dyncall.DynCallback.*; /** Instances of this interface may be passed to the {@link GLFW#glfwSetWindowSizeCallback SetWindowSizeCallback} method. */ @FunctionalInterface public interface GLFWWindowSizeCallbackI extends CallbackI.V { ...
package org.dcm4chex.wado.common; import java.io.IOException; import java.io.OutputStream; import javax.xml.transform.TransformerConfigurationException; import org.dcm4che.data.Dataset; import org.xml.sax.SAXException; /** * @author franz.willer * * TODO To change the template for this generated type comment g...
// // objc.c // // Created by Pixate on 8/1/12. // Copyright (c) 2012 Pixate, Inc. All rights reserved. // #include "objc.h" #include <string.h> #define __bridge void* callSuper0(id self, Class superClass, SEL _cmd) { struct objc_super super; super.receiver = (__bridge void *)self; super.class = superClass !...
// vi:ts=4:sw=4:et // Tests for BOOST_SPIRIT_CLASSIC_NS::while_p // [28-Dec-2002] //////////////////////////////////////////////////////////////////////////////// #define qDebug 0 #include <iostream> #include <cstring> #if qDebug #define BOOST_SPIRIT_DEBUG #endif #include "impl/string_length.hpp" #include <boost/spir...
namespace v8 { namespace internal { // The MutableBigInt class is an implementation detail designed to prevent // accidental mutation of a BigInt after its construction. Step-by-step // construction of a BigInt must happen in terms of MutableBigInt, the // final result is then passed through MutableBigInt::MakeImmutab...
namespace Microsoft.JScript { using System; [AttributeUsage(AttributeTargets.Method | AttributeTargets.Field)] public class NotRecommended : Attribute { // Internal state. private String message; // Constructor. public NotRecommended(String message) { this.message = message; } // Determine if this...
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>cachepolicy module &mdash; Nitro documentation</ti...
package org.apache.hadoop.tools; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Stack; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; imp...
package bq.activemq.queue.demo2; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.MessageConsumer; import javax.jms.MessageListener; import jav...
var five = require("../lib/johnny-five.js"), board, joystick, motor, led; board = new five.Board(); board.on("ready", function() { // Create a new `joystick` hardware instance. joystick = new five.Joystick({ // Joystick pins are an array of pins // Pin orders: // [ up, down, left, right ] // ...
<?php namespace Symfony\Component\Security\Core\Role; /** * RoleHierarchyInterface is the interface for a role hierarchy. * * @author Fabien Potencier <fabien@symfony.com> */ interface RoleHierarchyInterface { /** * Returns an array of all reachable roles. * * Reachable roles are the roles di...
package org.apache.ode.axis2.correlation; import org.apache.ode.axis2.Axis2TestBase; import org.apache.ode.axis2.DummyService; import org.apache.ode.axis2.ODEConfigDirAware; import org.testng.annotations.Test; import static org.testng.Assert.*; public class CorrelationJoinTest extends Axis2TestBase implements ODEC...
""" Represents an EC2 Elastic Block Store Snapshot """ from boto.ec2.ec2object import TaggedEC2Object from boto.ec2.zone import Zone class Snapshot(TaggedEC2Object): AttrName = 'createVolumePermission' def __init__(self, connection=None): super(Snapshot, self).__init__(connection) self.id = N...
class Macvim < Cask if MacOS.version == :mavericks url 'https://github.com/b4winckler/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mavericks.tbz' sha1 'dc983ae1e3ffae1c80f06eea9eacee49019a0c8a' else url 'https://github.com/eee19/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mountain...
/*! * Module dependencies. */ var EventEmitter = require('events').EventEmitter , setMaxListeners = EventEmitter.prototype.setMaxListeners , MongooseError = require('./error') , MixedSchema = require('./schema/mixed') , Schema = require('./schema') , ValidatorError = require('./schematype').ValidatorError ...
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator class. Some of these ...
""" This is a Py2.3 implementation of decimal floating point arithmetic based on the General Decimal Arithmetic Specification: www2.hursley.ibm.com/decimal/decarith.html and IEEE standard 854-1987: www.cs.berkeley.edu/~ejr/projects/754/private/drafts/854-1987/dir.html Decimal floating point has finite preci...
classdef RigidBodyHeightMapTerrain < RigidBodyTerrain & RigidBodyGeometry methods function obj = RigidBodyHeightMapTerrain(x,y,Z,terrain_to_world_transform,options) % @param terrain_to_world_transform a 4x4 transformation matrix. % default I if nargin<4, terrain_to_world_transform=eye(...
import {ApiRequestBuilder, ApiResult, ApiVersion, ObjectWithEtag} from "helpers/api_request_builder"; import JsonUtils from "helpers/json_utils"; import SparkRoutes from "helpers/spark_routes"; import {ConfigRepoJSON, ConfigReposJSON} from "models/config_repos/serialization"; import {ConfigRepo, ConfigRepos} from "mo...
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
YUI.add('yui-throttle', function (Y, NAME) { /** Throttles a call to a method based on the time between calls. This method is attached to the `Y` object and is <a href="../classes/YUI.html#method_throttle">documented there</a>. var fn = Y.throttle(function() { counter++; }); for (i; i< 35000; i...
import Head from './Meta' import Header from './Header' import Row from './Row' import Footer from './Footer' export default ({ children }) => ( <div> <Head /> <div className='page'> <div className='content'> <Header /> <Row className='container'> {children} ...
<!doctype html> <html lang="en"> <head> <title>Code coverage report for index.js</title> <meta charset="utf-8"> <link rel="stylesheet" href="../prettify.css"> <link rel="stylesheet" href="../base.css"> <style type='text/css'> div.coverage-summary .sorter { background-image: url(....
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.11.0-master-f04f094 */md-divider{display:block;border-top-width:1px;border-top-style:solid;margin:0}md-divider[md-inset]{margin-left:80px}
require 'csv' require_relative 'player' require_relative 'game_turn' require_relative 'treasure_trove' module StudioGame class Game attr_reader :title def initialize(title) @title = title @players = [] end def load_players(from_file) CSV.foreach(from_file) do |row| ...
CREATE TABLE CPF_USER_GROUP_PERMISSIONS ( USER_GROUP_PERMISSION_ID BIGINT NOT NULL, USER_GROUP_ID BIGINT NOT NULL, MODULE_NAME VARCHAR(255) NOT NULL, RESOURCE_CLASS VARCHAR(255) NOT NULL, RESOURCE_ID VARC...
package org.apache.hadoop.hdfs.security; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.IOException; import java.net.InetAddress; import java.net.NetworkInterface; import java.security.PrivilegedExceptionAction; import java.util.ArrayList; import java.util.Enumeration; import ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="zh"> <head> <!-- Generated by javadoc (1.8.0_25) on Sun Sep 04 19:53:26 CST 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ChsParaReg.DropSensor</title...
require File.dirname(__FILE__) + '/../test_helper' class CheckTest < Test::Unit::TestCase VALID_ABA = '111000025' INVALID_ABA = '999999999' MALFORMED_ABA = 'I like fish' ACCOUNT_NUMBER = '123456789012' def test_validation c = Check.new assert !c.valid? assert !c.errors.empty? end ...
<?php App::uses('ComponentCollection', 'Controller'); /** * Base class for an individual Component. Components provide reusable bits of * controller logic that can be composed into a controller. Components also * provide request life-cycle callbacks for injecting logic at specific points. * * ## Life cycle call...
/** * Statement.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfp.axis.v201411; /** * Captures the {@code WHERE}, {@code ORDER BY} and {@code LIMIT} * clauses of a * PQL query. Statements are t...
4.3.0 / 2014-06-06 ================== * Added `setFilters(array)` method to `Gherkin` class * Added `NarrativeFilter` for non-english `RoleFilter` lovers 4.2.1 / 2014-06-06 ================== * Fix parsing of features without line feed at the end 4.2.0 / 2014-05-27 ================== * Added `getKeyword()`...
(function ($) { "use strict"; $.fn.fileinputThemes.gly = { fileActionSettings: { removeIcon: '<i class="glyphicon glyphicon-trash"></i>', uploadIcon: '<i class="glyphicon glyphicon-upload"></i>', zoomIcon: '<i class="glyphicon glyphicon-zoom-in"></i>', d...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using LanguageServer.VsCode.Contracts; using Microsoft.Common.C...
require('coffee-script/register'); module.exports = require('./src/update-device-is-valid');
@interface ReactNativeOSXTests : XCTestCase @end @implementation ReactNativeOSXTests - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invoca...
$(document).ready(function() { $('#view-venue-on-map').dialog(dialogOptions, { open: showMap, height: 350, width: 310, close: null }) $('#view-map').on('click', function(event){ event.preventDefault(); $('#view-venue-on-map').dialog('open'); }) }) var showMap = function venueShowMap() { var map = new...
memtracker ========== This app will tracker all running apps' memory size. So that you will find which app is abusing the memory.
import { StandardDice } from '../../src/dice/index.js'; import { ComparisonModifier, TargetModifier } from '../../src/modifiers/index.js'; import ComparePoint from '../../src/ComparePoint.js'; import ResultGroup from '../../src/results/ResultGroup.js'; import RollResult from '../../src/results/RollResult.js'; import Ro...
<!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 (version 1.7.0_71) on Tue Feb 16 15:23:20 EST 2016 --> <meta http-equiv="Content-Type" content="text/html" charset="utf-8"> <title>Uses of Class...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Resizable - Constrain resize area</title> <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> <script src="../../jquery-1.9.1.js"></script> <script src="../../ui/jquery.ui.core.js"></script> <script src="../../ui/jquery...
module Awspec::Generator module Doc module Type class IamRole < Base def initialize super @type_name = 'IamRole' @type = Awspec::Type::IamRole.new('my-iam-role') @ret = @type.resource @matchers = [] @ignore_matchers = [] @describe...
RSpec.shared_examples :admin_content_node do let(:node_button) { node_name.to_s.humanize } let!(:subject_node) { FactoryGirl.create node_name, author: account } let!(:blocked_node) { FactoryGirl.create "blocked_#{node_name}", author: account } before do another_account = FactoryGirl.create :confirmed_acco...
/* * LOCATION: see http://www.boost.org for most recent version. * FILE object_cache.hpp * VERSION see <boost/version.hpp> * DESCRIPTION: Implements a generic object cache. */ #ifndef BOOST_REGEX_OBJECT_CACHE_HPP #define BOOST_REGEX_OBJECT_CACHE_HPP #include <map> #include <list> ...
package gobblin.metrics.hadoop; import java.util.SortedMap; import java.util.concurrent.TimeUnit; import org.apache.hadoop.mapred.Counters; import org.apache.hadoop.mapred.Reporter; import org.mockito.Mockito; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.an...
#ifndef _UTIL_H_ #define _UTIL_H_ /* non-public prototypes */ const char* twolame_mpeg_version_name (int version); int twolame_get_bitrate_index (int bitrate, TWOLAME_MPEG_version version); int twolame_get_samplerate_index (long sample_rate); int twolame_get_version_for_samplerate (long sample_rate); #endif /* _U...
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
using System; using System.Collections.Generic; using System.Linq; using System.Drawing; using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.CoreAnimation; using MonoMac.CoreGraphics; namespace CustomizeAnimation { public partial class BaseView : MonoMac.AppKit.NSView { NSImageView mover; bool isRight;...
angular.module('mm.addons.userprofilefield_menu', ['mm.core']) .config(function($mmUserProfileFieldsDelegateProvider) { $mmUserProfileFieldsDelegateProvider.registerHandler('mmaUserProfileFieldMenu', 'menu', '$mmaUserProfileFieldMenuHandler'); });
package genericapiserver import ( "net" ) const ( // TODO: This can be tightened up. It still matches objects named watch or proxy. defaultLongRunningRequestRE = "(/|^)((watch|proxy)(/|$)|(logs?|portforward|exec|attach)/?$)" ) // ServerRunOptions contains the options while running a generic api server. type Ser...
var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme")); function getColorPickerHTML(id, target_form_element) { var h = ""; h += '<a id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return fa...
cordova.define("org.apache.cordova.contacts.ContactError", function(require, exports, module) { /** * ContactError. * An error code assigned by an implementation when an error has occurred * @constructor */ var ContactError = function(err) { this.code = (typeof err != 'undefined' ? err : null); }; /** * E...
package org.knowm.xchange.coinbase.service; import java.io.IOException; import java.math.BigDecimal; import org.knowm.xchange.Exchange; import org.knowm.xchange.coinbase.CoinbaseAdapters; import org.knowm.xchange.coinbase.dto.account.CoinbaseAddress; import org.knowm.xchange.coinbase.dto.account.CoinbaseTransaction; ...
import Router from '@koa/router'; import { SQL } from 'sql-template-strings'; import { runInTransaction } from '../../database'; import { bodySchemaValidator } from '../../requestValidators'; import { authenticator } from '../../authenticator'; export function attachPutPictureHandler(router: Router) { router.put( ...
package timely.netty.websocket; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import timely.api.request.MetricRequest; import timely.store.DataStore; public class WSMetricPutHandler extends SimpleChannelInboundHandler<MetricRequest> { private final DataStore ...
import base64 import os import time import unittest import warnings from django.conf import settings from django.contrib.auth.models import AnonymousUser, User from django.http import HttpRequest from django.test import TestCase from django.test.testcases import skipIf from tastypie.authentication import Authentication...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chromecast.shell; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.support.v4.c...
/*! ======================================================= VERSION 10.0.2 ========================================================= */ "use strict"; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function...
import ExampleJavaLibrary import DefaultArgs class ExtendJavaLib(ExampleJavaLibrary): def kw_in_java_extender(self, arg): return arg*2 def javaSleep(self, secs): raise Exception('Overridden kw executed!') def using_method_from_java_parent(self): self.divByZero() class ExtendJa...
find_program(VTK_GHOSTSCRIPT_EXECUTABLE gs gswin32c gsos2) mark_as_advanced(VTK_GHOSTSCRIPT_EXECUTABLE)
function foo():number; function foo():string { return "" }
package util import ( "reflect" "testing" api "k8s.io/kubernetes/pkg/apis/core" securityapi "github.com/openshift/origin/pkg/security/apis/security" ) // TestVolumeSourceFSTypeDrift ensures that for every known type of volume source (by the fields on // a VolumeSource object that GetVolumeFSType is returning a ...
package v1 import ( authorizationapi "k8s.io/api/authorization/v1" ) // The SubjectAccessReviewExpansion interface allows manually adding extra methods to the AuthorizationInterface. type SubjectAccessReviewExpansion interface { Create(sar *authorizationapi.SubjectAccessReview) (result *authorizationapi.SubjectAc...
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ ...
package org.elasticsearch.common.lucene.search.function; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.search.Explanation; /** * */ @Deprecated public class BoostScoreFunction extends ScoreFunction { public static final String BOOST_WEIGHT_ERROR_MESSAGE = "'boost_factor' and 'wei...
package com.bakerframework.baker.activity; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.animation.Animation; import android.view.animation.AnimationSet; import ...
/// Copyright (c) 2012 Ecma International. All rights reserved. /** * @path ch10/10.4/10.4.3/10.4.3-1-65gs.js * @description Strict - checking 'this' from a global scope (strict function declaration called by non-strict new'ed Function constructor) * @onlyStrict */ function f() { "use strict"; return this===unde...
/*! * \file keyword_fwd.hpp * \author Andrey Semashev * \date 29.01.2012 * * The header contains attribute keyword forward declaration. */ #ifndef BOOST_LOG_EXPRESSIONS_KEYWORD_FWD_HPP_INCLUDED_ #define BOOST_LOG_EXPRESSIONS_KEYWORD_FWD_HPP_INCLUDED_ #include <boost/log/detail/config.hpp> #ifdef BOOST_HAS...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.acorn || (g.a...
/*global Backbone, microtemplate, ENTER_KEY, ESCAPE_KEY */ var app = app || {}; (function () { 'use strict'; // Todo Item View // -------------- // The DOM element for a todo item... app.TodoView = Backbone.View.extend({ //... is a list tag. tagName: 'li', // Cache the template function for a single ite...