text stringlengths 3 1.05M |
|---|
namespace net {
namespace tools {
class SpdyUtils {
public:
static std::string SerializeRequestHeaders(
const BalsaHeaders& request_headers);
static std::string SerializeResponseHeaders(
const BalsaHeaders& response_headers);
static bool FillBalsaRequestHeaders(const SpdyHeaderBlock& header_block,... |
struct luxem_rawwrite_context_t;
typedef luxem_bool_t (*luxem_rawwrite_write_callback_t)(struct luxem_rawwrite_context_t *context, void *user_data, struct luxem_string_t const *string);
struct luxem_rawwrite_context_t *luxem_rawwrite_construct(void);
void luxem_rawwrite_destroy(struct luxem_rawwrite_context_t *contex... |
using namespace std;
void static BatchWriteCoins(CLevelDBBatch &batch, const uint256 &hash, const CCoins &coins) {
if (coins.IsPruned())
batch.Erase(make_pair('c', hash));
else
batch.Write(make_pair('c', hash), coins);
}
void static BatchWriteHashBestChain(CLevelDBBatch &batch, const uint256 &... |
**A Node.js Buffer list collector, reader and streamer thingy.**
[](https://nodei.co/npm/bl/)
[](https://nodei.co/npm/bl/)
**bl** is a storage object for collections of Node Buffers, exposing th... |
/**
* (c) 2010-2017 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import H from '../parts/Globals.js';
import '../parts/Utilities.js';
import '../parts/Options.js';
var each = H.each,
noop = H.noop,
pick = H.pick,
seriesType = H.seriesType,
seriesTypes = H.seriesTypes;
/*... |
process_option() {
case $1 in
'b')
scripts/basic.sh
break;;
'h')
scripts/homebrew.sh
break;;
'a')
scripts/applications.sh
break;;
'x')
scripts/extensions.sh
break;;
'd')
scripts/defaults.sh
break;;
's')
scripts/setup.sh
br... |
from __future__ import unicode_literals, division, absolute_import
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
import logging
from bs4 import BeautifulSoup
from flexget import plugin
from flexget.event import event
from flexget.utils import requests
log = logging.getLogger('nnm-c... |
function test_accelerometer() {
var watchID = null;
var options = { frequency: 3000 };
watchID = navigator.accelerometer.watchAcceleration(onSuccess, onError, options);
if (watchID) {
navigator.accelerometer.clearWatch(watchID);
watchID = null;
}
function onSuccess(... |
/*******************************************************************************
* File Name : usb0_host_dmacdrv.h
* $Rev: 1116 $
* $Date:: 2014-07-09 16:29:19 +0900#$
* Description : RZ/A1H R7S72100 USB Sample Program
*******************************************************************************/
#ifndef USB0_HO... |
package org.apache.camel.component.twitter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* consumes tweets
*/
public class SearchDirectTest extends CamelTwitterConsumerTestSupport {
@Override
protected String getUri() {
return "twitter://search?type=direct&keywords=java&";
... |
package org.apache.geronimo.daytrader.javaee6.web.prims.ejb3;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.WebServlet;
import javax.ejb.EJB;
import org.apache.geronimo.daytrader.javaee6.web.ejb3.TradeSLSBRemote;
import org.apache.geronimo.daytrader.... |
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>deps</id>
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>DocStrap tutorialBrush Teeth</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<link type="text/css" rel="... |
/**
* Construct a new dialog object
* @class
* @constructor
* @extends LilyObjectBase
*/
function $dialog()
{
var thisPtr=this;
this.outlet1 = new this.outletClass("outlet1",this,"result of dialog if any");
this.inlet1=new this.inletClass("inlet1",this,"\"alert\",\"confirm\",\"prompt\"");
this.inlet1["aler... |
function test()
{
waitForExplicitFinish();
//ignoreAllUncaughtExceptions();
let node, iframe;
gBrowser.selectedTab = gBrowser.addTab();
gBrowser.selectedBrowser.addEventListener("load", function onload() {
gBrowser.selectedBrowser.removeEventListener("load", onload, true);
waitForFocus(setupTest, ... |
namespace WebServer.Contracts
{
public interface IView
{
string View();
}
}
|
@font-face {
font-family: 'icomoon';
src:url('../fonts/menuicons/icomoon.eot');
src:url('../fonts/menuicons/icomoon.eot?#iefix') format('embedded-opentype'),
url('../fonts/menuicons/icomoon.woff') format('woff'),
url('../fonts/menuicons/icomoon.ttf') format('truetype'),
url('../fonts/menuicons/icomoon.svg#icom... |
import asyncio
import json
import aiohttp
import aiohttp_jinja2
import jinja2
from aiohttp import web
from aiohttp_debugtoolbar import middleware, setup as tbsetup, APP_KEY
from .base import BaseTest
class TestExceptionViews(BaseTest):
@asyncio.coroutine
def _setup_app(self, handler, **kw):
app = we... |
exports.name = 'dev';
exports.usage = '';
exports.desc = 'start dev mode';
/* istanbul ignore next */
exports.register = function (commander) {
commander
.option('-n, --nopreview ', "don't auto open preview")
.action(function (...args) {
cml.utils.checkProjectConfig();
/* eslint-disable */
... |
#ifndef _COMPILER_ABSTRACTION_H
#define _COMPILER_ABSTRACTION_H
/*lint ++flb "Enter library region" */
#if defined ( __CC_ARM )
#ifndef __ASM
#define __ASM __asm
#endif
#ifndef __INLINE
#define __INLINE __inline
#endif
#ifndef __WEAK
#define _... |
<!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_72) on Wed May 13 11:47:38 EDT 2015 -->
<title>VersionedValue (apache-cassandra API)</title>
<meta name="date" content="2015-05-13">
<l... |
package org.emdev.utils.textmarkup.line;
import android.graphics.Canvas;
public class LineFixedWhiteSpace extends AbstractLineElement {
public LineFixedWhiteSpace(final float width, final int height) {
super(width, height);
}
@Override
public float render(final Canvas c, final int y, final... |
const zlib = require('zlib'),
fs = require('fs'),
src = process.argv[2];
if(process.argv.length !== 3) {
console.error('命令行参数错误!');
process.exit(1);
}
if(!fs.existsSync(src)) {
console.error('%s not exist!', src);
process.exit(2);
}
const dst = src.slice(0, src.length - 3);
fs.createReadStrea... |
/**
* Bootstrap Table Afrikaans translation
* Author: Phillip Kruger <phillip.kruger@gmail.com>
*/
(function ($) {
'use strict';
$.fn.bootstrapTable.locales['af-ZA'] = {
formatLoadingMessage: function () {
return 'Besig om te laai, wag asseblief ...';
},
formatRecordsPerP... |
'use strict'
module.exports = function (req, res, next) {
res.yamlInline = 6
res.body = req.simple
//res.Status( parseInt(req.headers['status'], 10)).send(req.headers['statusText']);
next()
}
|
<?php
namespace Symfony\Component\DomCrawler\Field;
/**
* FileFormField represents a file form field (an HTML file input tag).
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @api
*/
class FileFormField extends FormField
{
/**
* Sets the PHP error code associated with the field.
*
* @... |
using UnityEngine;
using System.Collections;
public class LootScript : MonoBehaviour {
public GameObject[] lootList;
private bool _isShuttingDown = false;
void OnDestroy()
{
if(!_isShuttingDown && !Application.isLoadingLevel)//dont create loot if the game is closed or scene is changed
{
Instantiate(loot... |
module('Data adapters - Base');
var BaseData = require('select2/data/base');
var $ = require('jquery');
var Options = require('select2/options');
var options = new Options({});
test('current is required', function (assert) {
var data = new BaseData($('#qunit-fixture select'), options);
assert.throws(
functi... |
<?php
namespace GraphAware\Bolt\Tests\Integration;
use GraphAware\Bolt\Protocol\SessionInterface;
use GraphAware\Bolt\Tests\IntegrationTestCase;
/**
* Class HandshakeIntegrationTest
* @package GraphAware\Bolt\Tests\Integration
*
* @group integration
* @group handshake
*/
class HandshakeIntegrationTest extends ... |
exports.init = function(grunt) {
'use strict';
var chalk = require('chalk');
var fs = require('fs');
var path = require('path');
var flow = require('nue').flow;
var as = require('nue').as;
var istanbul = require('istanbul');
function flowEnd(err, done) {
if (err) {
grunt.fa... |
<?php
namespace Masterminds\HTML5\Parser;
use Masterminds\HTML5\Elements;
/**
* Create an HTML5 DOM tree from events.
*
* This attempts to create a DOM from events emitted by a parser. This
* attempts (but does not guarantee) to up-convert older HTML documents
* to HTML5. It does this by applying HTML5's rules, ... |
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 label-top">
<hbr-label
[projectId]="projectId"
[scope]="'p'"
[hasCreateLabelPermission]="hasCreateLabelPermission"
[hasUpdateLabelPermission]="hasUpdateLabelPermission"
[hasDeleteLabelPermission]="hasDeleteLabelPer... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>AdminLTE 2 | Dashboard</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.4 -->
<link h... |
using System;
using Microsoft.Extensions.Logging;
using Orleans.Configuration;
using Orleans.Providers.Streams.Common;
using Orleans.Runtime;
using Orleans.Serialization;
using Orleans.Streams;
using OrleansServiceBus.Providers.Streams.EventHub.StatisticMonitors;
namespace Orleans.ServiceBus.Providers
{
/// <summ... |
#ifndef GUETZLI_BUTTERAUGLI_COMPARATOR_H_
#define GUETZLI_BUTTERAUGLI_COMPARATOR_H_
#include <vector>
#include "butteraugli/butteraugli.h"
#include "guetzli/comparator.h"
#include "guetzli/jpeg_data.h"
#include "guetzli/output_image.h"
#include "guetzli/stats.h"
namespace guetzli {
constexpr int kButteraugliStep ... |
var INDENT = ' ';
/**
* a utility class to produce well-formed, indented XML
* @param {ContentWriter} contentWriter the content writer that this utility wraps
* @constructor
*/
function XMLWriter(contentWriter) {
this.cw = contentWriter;
this.stack = [];
}
function attrString(attrs) {
if (!attrs) {
... |
<?xml version="1.0" encoding="UTF-8"?>
<file xmlns="BibteXMLImporterEmpty.xml">
<entry></entry>
</file>
|
// CLASS HEADER
#include "gradient-visual.h"
// EXTERNAL INCLUDES
#include <dali/devel-api/rendering/renderer-devel.h>
#include <dali/devel-api/scripting/enum-helper.h>
#include <dali/devel-api/scripting/scripting.h>
#include <dali/integration-api/debug.h>
#include <dali/public-api/common/dali-vector.h>
#include <da... |
module ActiveAdmin
module ViewHelpers
# Require all ruby files in the view helpers dir
Dir[File.expand_path('../view_helpers', __FILE__) + "/*.rb"].each{|f| require f }
include ActiveAdminApplicationHelper
include AutoLinkHelper
include BreadcrumbHelper
include DisplayHelper
include Meth... |
.class synthetic Landroid/net/wifi/SupplicantState$2;
.super Ljava/lang/Object;
.source "SupplicantState.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/net/wifi/SupplicantState;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1008
... |
//===--- LookupVisibleDecls - Swift Name Lookup Routines ------------------===//
//
// 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... |
namespace jtl_foundation {
// A JTL (JSON Traversal Language) program is composed of one or more
// sentences. Each sentence consists of a sequence of operations. The input of
// the program is a hierarchical JSON data structure.
//
// The execution of each sentence starts at the root of an input dictionary. The
// op... |
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>CCActionCardinalSplineTo Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace GeekQuiz.ViewModels.Manage
{
public class FactorViewModel
{
public string Purpose { get; set; }
}
}
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ge... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
package org.elasticsearch.action.admin.indices.stats;
import org.elasticsearch.action.ShardOperationFailedException;
import org.elasticsearch.action.support.broadcast.BroadcastResponse;
import org.elasticsearch.cluster.routing.ShardRouting;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsea... |
YUI.add('dataschema-base', function(Y) {
/**
* The DataSchema utility provides a common configurable interface for widgets to
* apply a given schema to a variety of data.
*
* @module dataschema
*/
/**
* Provides the base DataSchema implementation, which can be extended to
* create DataSchemas for specific dat... |
<div>
<amp-social-share height='37' type='twitter' width='50'></amp-social-share>
<amp-social-share height='37' type='gplus' width='50'></amp-social-share>
<amp-social-share data-param-app_id='145634995501895' height='37' type='facebook' width='50'></amp-social-share>
<amp-social-share height='37' type=... |
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
# If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
# "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
require "dispatcher... |
If you want to write an option parser, and have it be good, there are
two ways to do it. The Right Way, and the Wrong Way.
The Wrong Way is to sit down and write an option parser. We've all done
that.
The Right Way is to write some complex configurable program with so many
options that you go half-insane just tryin... |
<!--
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
developers. However, you can modify these parameters to modify the behavior of the .NET Native
optimizer.
Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919
To f... |
<?php
class Kwf_Ext_Config extends Kwf_Config_Web
{
public function __construct($section, array $options = array())
{
$options['webPath'] = 'tests';
parent::__construct($section, $options);
}
}
|
HRESULT ListArchives(
CCodecs *codecs,
UStringVector &archivePaths, UStringVector &archivePathsFull,
const NWildcard::CCensorNode &wildcardCensor,
bool enableHeaders, bool techMode, bool &passwordEnabled, UString &password, UInt64 &errors);
#endif
|
/**
* A specialized version of `baseExtremum` for arrays whichs invokes `iteratee`
* with one argument: (value).
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {Function} comparator The function used to compare values.
* @... |
[](http://travis-ci.org/kpdecker/jsdiff)
A javascript text differencing implementation.
Based on the algorithm proposed in
["An O(ND) Difference Algorithm and its Variations" (Myers, 1986)](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927)... |
'use strict';
/**
* Module dependencies.
*/
var path = require('path');
var gutil = require('gulp-util');
var through = require('through2');
var session = require('session-cache')('verb');
var tutil = require('template-utils');
var forIn = require('for-in');
module.exports = function init() {
var verb = this;
... |
package com.mobage.air.extension;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
import com.adobe.fre.FREObject;
import com.mobage.android.Mobage;
public class Mobage_onPause implements FREFunction {
@Override
public FREObject call(FREContext context, FREObject[] args) {
Mobage.onPause(conte... |
package com.handmark.pulltorefresh.library.internal;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Matrix;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.view.ViewGroup;
import android.view.an... |
package com.thinkgem.jeesite.modules.sys.entity;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.validator.constraints.Length;
import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.persistence.DataEntity;... |
var mongoose = require('mongoose')
common = require('./common')
,Schema = mongoose.Schema;
var ImageUpload = module.exports = new Schema({
image:{type:Schema.Types.File, required:true},
date:{type:Date,'default':Date.now},
user:{type:Schema.ObjectId,ref:'User',query:common.FIND_USER_QUERY}
}, {s... |
package org.apache.camel.component.kubernetes.cloud;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import org.apache.camel.cloud.ServiceDefinition;
import org.apache.camel.component.kubernetes.KubernetesConfiguration;
i... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ClientPropertiesManager">
<properties class="javax.swing.AbstractButton">
<property name="hideActionText" class="java.lang.Boolean" />
</properties>
<properties class="javax.swing.JComponent">
<property name="html.di... |
package org.apache.hadoop.security;
import java.io.IOException;
/**
* A wrapper for ShellBasedUnixGroupsMapping that replaces functions
* that call external programs (to get users/groups) by static stubs
* for the purposes of testing
*
* Keep in sync with TestAccessControlList.java
*/
public class ShellBasedUn... |
typedef struct
{
// private data
STB_TEXTEDIT_POSITIONTYPE where;
short insert_length;
short delete_length;
short char_storage;
} StbUndoRecord;
typedef struct
{
// private data
StbUndoRecord undo_rec[STB_TEXTEDIT_UNDOSTATECOUNT];
STB_TEXTEDIT_CHA... |
import shutil
import logging
import traceback
from pylons import c
from allura.lib.decorators import task
from allura.lib.repository import RepositoryApp
from allura.lib import helpers as h
from allura.tasks.mail_tasks import sendmail
@task
def init(**kwargs):
from allura import model as M
c.app.repo.init()
... |
import {BrowserController, RequestBank} from '#testing/helpers/service';
// TODO(zhouyx, #11459): Unskip the test on Safari and Firefox.
const t = describes.sandboxed.configure().skipSafari().skipFirefox().skipEdge();
t.run('user-error', {}, function () {
describes.integration(
'user-error integration test',
... |
package com.amazonaws.services.config.model.transform;
import java.math.*;
import javax.annotation.Generated;
import com.amazonaws.services.config.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
import static com.... |
<!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_45) on Thu Nov 26 10:46:14 GMT 2015 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Class com.g... |
package org.elasticsearch.action.search.type;
import org.apache.lucene.search.ScoreDoc;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.search.ReduceSearchPhaseException;
import org.elasticsearch.action.search.SearchPhaseExecutionException;
import org.elasticsearch.action.search.Searc... |
Randomly shuffles a tensor along its first dimension.
The tensor is shuffled along dimension 0, such that each `value[j]` is mapped
to one and only one `output[i]`. For example, a mapping that might occur for a
3x2 tensor is:
```python
[[1, 2], [[5, 6],
[3, 4], ==> [1, 2],
[5, 6]] [3, 4]]
```
#####... |
/* Called from the child window after the test has run. */
function testRun(id, path, description, codeString, preconditionString, result, error) {
currentTest = {id : id};
currentTest.id = id;
currentTest.path = path;
currentTest.description = description;
currentTest.result = r... |
using System;
using System.Collections.Generic;
using DeviceHive.WebSockets.Core.Network;
using Newtonsoft.Json.Linq;
using log4net;
namespace DeviceHive.WebSockets.Core.ActionsFramework
{
public abstract class Router
{
private readonly IDictionary<string, Type> _controllersMapping = new Dictionary<st... |
module Spec
module Mocks
class ErrorGenerator
attr_writer :opts
def initialize(target, name)
@target = target
@name = name
end
def opts
@opts ||= {}
end
def raise_unexpected_message_error(sym, *args)
__raise "#{intro} received unex... |
#!/usr/bin/env bash
# Copyright 2017 The Kubernetes 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/licenses/LICENSE-2.0
#
# Unless required by applica... |
#import <Foundation/Foundation.h>
@interface V2Helper : NSObject
/**
* Time & date
*/
+ (NSArray *)localDateStringWithUTCString:(NSString *)dateString;
+ (NSArray *)localDateStringWithUTCString:(NSString *)dateString Separation:(NSString *)separation;
+ (NSTimeInterval)timeIntervalWithUTCString:(NSString *)date... |
const toCamelCase = require('lodash').camelCase;
module.exports = function applyParams(str, params, prefix) {
return str.replace(
/\$\{(\w+)\}/g,
(pattern, param) => {
const name = toCamelCase(prefix) + '_' + param;
return params[param]
? `getResources().getString(R.string.${name})`
... |
class GetIpRaising
class IpSpoofAttackError < StandardError; end
def to_s
raise IpSpoofAttackError, 'spoofing IP!'
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.
#nullable disable
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using Syst... |
package mapping
import (
"reflect"
"strings"
)
func lookupPropertyPath(data interface{}, path string) interface{} {
pathParts := decodePath(path)
current := data
for _, part := range pathParts {
current = lookupPropertyPathPart(current, part)
if current == nil {
break
}
}
return current
}
func look... |
import java.util.*;
public class Test {
Map<Boolean, String> f;
void foo(boolean b) {
f.put(b, null);
}
} |
"""The match_hostname() function from Python 3.5, essential when using SSL."""
# Note: This file is under the PSF license as the code comes from the python
# stdlib. http://docs.python.org/3/license.html
# It is modified to remove commonName support.
import ipaddress
import re
from typing import Any, Match, Optiona... |
<!--[metadata]>
+++
title = "Apply custom metadata"
description = "Learn how to work with custom metadata in Docker, using labels."
keywords = ["Usage, user guide, labels, metadata, docker, documentation, examples, annotating"]
[menu.main]
parent = "mn_use_docker"
+++
<![end-metadata]-->
# Apply custom metadata
You ... |
<?php
/*
*
*/
namespace RDF\JobDefinitionFormatBundle\Model\JDF\Process\PrePress;
use Doctrine\OXM\Mapping as OXM;
/**
* RDF\JobDefinitionFormatBundle\Model\JDF\Process\PrePress\FormatConversion
*
* @OXM\XmlEntity(xml="FormatConversion")
*/
class FormatConversion
{
} |
namespace EmployeesAndPartners.Web
{
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using App_Start;
using Infrastructure.Mapping;
public class MvcApplication : HttpApplication
{
protected void Application_Start()
{
... |
/**
* <!-- Package description. -->
* Future related classes.
*/
package org.apache.ignite.internal.util.future; |
<?php
namespace Illuminate\Support;
use Illuminate\Filesystem\Filesystem;
use Symfony\Component\Process\PhpExecutableFinder;
use Symfony\Component\Process\Process;
class Composer
{
/**
* The filesystem instance.
*
* @var \Illuminate\Filesystem\Filesystem
*/
protected $files;
/**
... |
import unittest
from test import test_support
from java.util import Map
from java.util.concurrent import ConcurrentMap
import UserDict, random, string
import gc, weakref
class DictTest(unittest.TestCase):
_class = None
def _make_dict(self, pydict):
return pydict if not self._class else self._class(... |
package com.drew.lang;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* @author Drew Noakes http://drewnoakes.com
*/
public class RationalTest
{
@Test
public void testCreateRational() throws Exception
{
Ration... |
package org.apache.hadoop.fs.s3a.s3guard;
import java.io.IOException;
import java.net.URI;
import java.util.Collection;
import java.util.concurrent.Callable;
import com.amazonaws.services.dynamodbv2.document.Item;
import com.amazonaws.services.dynamodbv2.document.KeyAttribute;
import com.amazonaws.services.dynamodb... |
require 'rake-tasks/crazy_fun/mappings/common'
class ExportMappings
def add_all(fun)
fun.add_mapping("export_file", Export::CheckPreconditions.new)
fun.add_mapping("export_file", Export::CreateTask.new)
fun.add_mapping("export_file", Export::AddDependencies.new)
end
end
module Export
class CheckPre... |
namespace syncer {
class SyncManager;
// Helper class to allow dependency injection of the SyncManager.
class SYNC_EXPORT SyncManagerFactory {
public:
SyncManagerFactory();
virtual ~SyncManagerFactory();
virtual scoped_ptr<SyncManager> CreateSyncManager(std::string name);
private:
DISALLOW_COPY_AND_ASSIGN... |
var Sneeze = require('./sneeze.js'),
ErrorGenerator = require('./errorGenerator.js');
var Demo = (function(){
Sneeze.listen();
ErrorGenerator();
});
Demo();
|
#ifndef __MAXHEAP__
#define __MAXHEAP__
#include <new>
#include "utilexp.h"
// Undefine possible new and delete macros, so they won't break our operators declarations. For instance, a debug
// macro for new could look like this: "#define new _debug_new(__FILE__, __LINE__)". In the MaxHeapOperators class,
// we wou... |
namespace boost{
namespace container {
namespace test{
//
template<int Dummy = 0>
class default_init_allocator_base
{
protected:
static unsigned char s_pattern;
static bool s_ascending;
public:
static void reset_pattern(unsigned char value)
{ s_pattern = value; }
static void set_asce... |
package org.evm.biz.dict.service;
import java.util.List;
import org.evm.biz.dict.enity.PoliceStationVO;
/**
*
* @author jerry.xu 2018年7月10日
*
*/
public interface PoliceStationService {
final String MS_FIND_POLICE_STATION_SQL = "MS_FIND_POLICE_STATION_SQL";
/**
*
* @param whereCause
* @return
* @date... |
import { BrowserModule, HammerModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { CarouselExampleComponent } from './carouse... |
require 'test_helper'
class FirstDataModuleTest < Test::Unit::TestCase
include ActionViewHelperTestHelper
include ActiveMerchant::Billing::Integrations
def test_notification_method
assert_instance_of FirstData::Notification, FirstData.notification('name=cody')
end
def test_address2
payment_service_... |
package org.wso2.carbon.iot.android.sense.data.publisher.mqtt.transport;
import android.content.Context;
import android.util.Log;
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
import org.eclipse.paho.client.mqttv3.MqttCallback;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.clien... |
#include "CCPhysicsSprite.h"
#if (CC_ENABLE_CHIPMUNK_INTEGRATION || CC_ENABLE_BOX2D_INTEGRATION)
#if (CC_ENABLE_CHIPMUNK_INTEGRATION && CC_ENABLE_BOX2D_INTEGRATION)
#error "Either Chipmunk or Box2d should be enabled, but not both at the same time"
#endif
#if CC_ENABLE_CHIPMUNK_INTEGRATION
#include "chipmunk.h"
#el... |