text stringlengths 3 1.05M |
|---|
using namespace llvm;
// By default, we limit this to creating 16 PHIs (which is a little over half
// of the allocatable register set).
static cl::opt<unsigned> MaxVars("ppc-preinc-prep-max-vars",
cl::Hidden, cl::init(16),
cl::desc("Potential PHI threshold for PPC preinc loop prep")... |
This file has moved to: http://kubernetes.github.io/docs/user-guide/node-selection/
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
|
import Rolex from 'rolex';
export function startTripClock(onTripClockTick) {
Rolex.noConflict();
return Rolex(1000, true, onTripClockTick).start();
} |
require 'chef/config'
require 'chef/log'
require 'chef/resource/file'
require 'chef/mixin/checksum'
require 'chef/provider'
require 'etc'
require 'fileutils'
require 'chef/scan_access_control'
require 'chef/mixin/shell_out'
require 'chef/win32/registry'
class Chef
class Provider
class RegistryKey < Chef::Provid... |
// Generated by CoffeeScript 1.6.3
(function() {
"use strict";
var $, Age,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
$ = jQuery;
Age = (function() {
Age.settings = {
singular: 1,
interval: 1000,
suffixes: {
past: "ago",
fut... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-comp-2218',
templateUrl: './comp-2218.component.html',
styleUrls: ['./comp-2218.component.css']
})
export class Comp2218Component implements OnInit {
constructor() { }
ngOnInit() {
}
}
|
if(__reset_configurations)
return()
endif()
set(__reset_configurations YES)
if(CMAKE_CONFIGURATION_TYPES)
set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release;Debug")
set(CMAKE_CONFIGURATION_TYPES
"${CMAKE_CONFIGURATION_TYPES}"
CACHE
STRING
"Reset the configurations to what we need"
FORCE)
endif()
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
<channel>
<title>McKinley Health Center</title>
<link>http://illinois.edu/calendar/list/44</link>
<description>McKinley Health Center Calendar</description>
</channel>
</rss> |
module RuboCop
module Cop
module Style
# This cop checks for uses of `fail` and `raise`.
class SignalException < Cop
include ConfigurableEnforcedStyle
FAIL_MSG = 'Use `fail` instead of `raise` to signal exceptions.'.freeze
RAISE_MSG = 'Use `raise` instead of `fail` to ' \
... |
package com.subgraph.orchid.circuits;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.concurrent.TimeoutException;
import java.util.logging.Logger;
import com.subgraph.orchid.Circuit;
import com.subgraph.orchid.CircuitNode;
import com.s... |
SUBDIRS = SENSORS
all: recursive_all
recursive_all:
for d in $(SUBDIRS); do make -C $$d all; done
clean: recursive_clean
rm -rf *.pyc *~ __pycache__
recursive_clean:
for d in $(SUBDIRS); do make -C $$d clean; done
.PHONY: all recursive_all clean recursive_clean
|
<?php
namespace Zend\Console\Adapter;
use Zend\Console\Charset\CharsetInterface;
/**
* @category Zend
* @package Zend_Console
*/
interface AdapterInterface
{
const LINE_NONE = 1;
const LINE_SINGLE = 2;
const LINE_DOUBLE = 3;
const LINE_BLOCK = 4;
const FILL_NONE = 0;
const FILL_SHADE... |
package nu.xom;
import java.io.UnsupportedEncodingException;
/**
* These methods are not fully general.
* You would need to uncomment some lines to make this a
* public API. Certain preconditons for these methods to
* operate correctly are true in the context of XOM,
* but may well not be true in a more gen... |
package org.jkiss.dbeaver.model.edit;
import org.jkiss.dbeaver.DBException;
import org.jkiss.dbeaver.model.DBPObject;
import org.jkiss.dbeaver.model.exec.DBCSession;
/**
* DBEObjectManager
*/
public interface DBEObjectManager<OBJECT_TYPE extends DBPObject> {
void executePersistAction(
D... |
import React, { Component, PropTypes } from 'react';
// import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {bindActionCreators} from 'redux';
import { Link } from 'react-router';
import { reduxForm } from 'redux-form';
import { fetchAccountTransactions, fetchProfile } from './../actions/a... |
class GitTf < Formula
desc "Share changes between TFS and git"
homepage "https://archive.codeplex.com/?p=gittf"
url "https://download.microsoft.com/download/A/E/2/AE23B059-5727-445B-91CC-15B7A078A7F4/git-tf-2.0.3.20131219.zip"
sha256 "91fd12e7db19600cc908e59b82104dbfbb0dbfba6fd698804a8330d6103aae74"
bottle :... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-pcuic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... |
require File.expand_path(File.dirname(__FILE__) + "/lib/insert_routes.rb")
require 'digest/sha1'
class AuthenticatedGenerator < Rails::Generator::NamedBase
default_options :skip_migration => false,
:skip_routes => false,
:old_passwords => false,
:include_activ... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="action_settings">Iestatījumi</string>
<string name="yes">Jā</string>
<string name="no">Nē</string>
</resources> |
void clang_analyzer_warnIfReached();
void derefAfterMove(std::unique_ptr<int> P) {
std::unique_ptr<int> Q = std::move(P);
if (Q)
clang_analyzer_warnIfReached(); // expected-warning{{REACHABLE}}
*Q.get() = 1; // no-warning
if (P)
clang_analyzer_warnIfReached(); // no-warning
// TODO: Report a null der... |
class DaytimeServer
{
public:
DaytimeServer(muduo::net::EventLoop* loop,
const muduo::net::InetAddress& listenAddr);
void start();
private:
void onConnection(const muduo::net::TcpConnectionPtr& conn);
void onMessage(const muduo::net::TcpConnectionPtr& conn,
muduo::net::Buff... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Sergey Melyukov @smelukov
*/
"use strict";
const mimeTypes = require("mime-types");
const path = require("path");
const { RawSource } = require("webpack-sources");
const Generator = require("../Generator");
const RuntimeGlobals = require("../R... |
<!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 (1.8.0_31) on Thu Feb 16 21:33:27 CST 2017 -->
<title>LatinReceiverAsync</title>
<meta name="date" content="2017-02-16">
<link rel="stylesheet" type="... |
<?php
/** Zend_Search_Lucene_FSM */
require_once 'Zend/Search/Lucene/FSM.php';
/** Zend_Search_Lucene_Search_QueryParser */
require_once 'Zend/Search/Lucene/Search/QueryToken.php';
/**
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
* @copyright Copyright (c) 2005-2011 Zend Technologie... |
"""Fake classes for the packet fuzzer to use"""
class RyuEvent: # pylint: disable=too-few-public-methods
"""Fake ryuevent class"""
def __init__(self, msg):
self.msg = msg
class Message: # pylint: disable=too-few-public-methods
"""Fake message class"""
def __init__(self, *args, **kwargs):... |
namespace nacl_io {
class Mount;
class MountNode;
struct HandleAttr;
typedef sdk_util::ScopedRef<MountNode> ScopedMountNode;
// NOTE: The KernelProxy is the only class that should be setting errno. All
// other classes should return Error (as defined by nacl_io/error.h).
class MountNode : public sdk_util::RefObject ... |
import java.awt.*;
import java.beans.beancontext.BeanContextServicesSupport;
import java.beans.beancontext.BeanContextServicesSupport.<error descr="'java.beans.beancontext.BeanContextServicesSupport.BCSSChild' has protected access in 'java.beans.beancontext.BeanContextServicesSupport'">BCSSChild</error>;
class a exten... |
package com.creatubbles.api.core;
import java.lang.reflect.Type;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSer... |
package edu.msc.fts.controllers;
import java.util.UUID;
import edu.msc.fts.service.impl.NotificationService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.core.Authenti... |
namespace ash {
namespace internal {
void SetupLabelForTray(views::Label* label) {
// Making label_font static to avoid the time penalty of DeriveFont for
// all but the first call.
static const gfx::Font label_font(gfx::Font().DeriveFont(1, gfx::Font::BOLD));
label->SetFont(label_font);
label->SetAutoColorR... |
from flask import request, g, abort, render_template, redirect
from flask_babel import refresh
import requests
import json
import string
import random
from rrd import app
from rrd import config
from rrd.model.user import User
from rrd.view import utils as view_utils
from rrd.utils.logger import logging
log = logging.g... |
import eventlet
import sys
from oslo.config import cfg
from neutron.common import config
from neutron import service
from neutron.openstack.common import gettextutils
from neutron.openstack.common import log as logging
gettextutils.install('neutron', lazy=True)
LOG = logging.getLogger(__name__)
def main():
ev... |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define(["jquery"], function (a0) {
return (factory(a0));
});
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, ... |
"""Run methods for training a DQN agent on Atari.
Methods in this module are usually referenced by |train.py|.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import time
from third_party.dopamine import checkpointer
from third_party.dopamine import i... |
(function() {
var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments, repeat;
repeat = require('./helpers').repeat;
exports.OptionParser = OptionParser = (function() {
function OptionParser(rules, banner) {
this.banner = banner;
this.rules = buil... |
<html>
<head>
<script>
function createFile() {
webkitRequestFileSystem(TEMPORARY, 100, function(fs) {
fs.root.getFile("page.html", {create:true}, function(entry) {
entry.createWriter(function(writer) {
writer.onwrite = function() {
... |
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\Modal;
use yii\web\JsExpression;
use ptrnov\fullcalendar\FullcalendarScheduler;
use lukisongroup\widget\models\Pilotproject;
use yii\helpers\ArrayHelper;
/* $personalUser=Yii::$app->getUserOpt->Profile_user();
print_r($personalUser ); */
... |
<?php
/**
* Helper functions for displaying a list of items in an ajaxified HTML table.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
*/
/**
* Fetch an instance of a WP_List_Table class.
*
* @access private
* @since 3.1.0
*
* @global string $hook_suffix
*
* @param string $class The type ... |
// Copyright © Microsoft Open Technologies, Inc.
//
// All Rights Reserved
//
// 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
//
// THIS CO... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
.dragndrop #dragTarget {
background-image: url(/images/logo.png);
background-repeat: no-repeat;
background-size: contain;
height: 300px;
width: 300px;
background-color: #000000;
border: 1px solid #666666;
color: #ffffff;
padding: 10px;
position: absolute;
cursor: move;
}
|
using Signum.Entities;
using Signum.Entities.Basics;
using Signum.Entities.Dynamic;
using Signum.Entities.UserAssets;
using Signum.Utilities;
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Xml.Linq;
namespace Signum.Entities.Workflow
{
[Serializable, EntityKind(EntityKind.... |
var assert = require('assert');
var mongojs = require('../index');
var db = mongojs('test', ['test123']);
db.test123.drop(function() {
db.createCollection('test123', function(err) {
assert(!err);
db.createCollection('test123', function(err) {
assert(err);
db.close();
});
});
}); |
layout: docs_api
active: angularjs
title: "View State Service"
header_sub_title: "Navigation and history stack"
---
Available in:
<div class="label label-danger">Ionic-Angular 0.9.x</div>
Views and Navigation
===
{% include codepen.html id="HjnFx" %}
As a user navigates throughout your app, Ionic is able to keep tr... |
using System;
namespace System.DirectoryServices.Protocols
{
public abstract class DirectoryIdentifier
{
protected DirectoryIdentifier()
{
}
}
}
|
package org.keycloak.social.stackoverflow;
import org.keycloak.broker.oidc.mappers.AbstractJsonUserAttributeMapper;
/**
* User attribute mapper.
*
* @author Vlastimil Elias (velias at redhat dot com)
*/
public class StackoverflowUserAttributeMapper extends AbstractJsonUserAttributeMapper {
private static fina... |
package powermock.examples.tutorial.partialmocking.domain;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
public class ServiceProducer extends ProviderArtifact
{
private final Set<DataProducer> dataProducingArtifacts;
public ServiceProducer(int id, String name, DataProducer... d... |
namespace syncer {
// InvalidationStateTracker implementation that simply keeps track of
// the max versions and invalidation state in memory.
class FakeInvalidationStateTracker
: public InvalidationStateTracker,
public base::SupportsWeakPtr<FakeInvalidationStateTracker> {
public:
FakeInvalidationStateTra... |
// +build linux freebsd solaris
package zfs
import (
"fmt"
"os"
"os/exec"
"path"
"strconv"
"strings"
"sync"
"syscall"
"time"
"github.com/Sirupsen/logrus"
"github.com/containers/storage/drivers"
"github.com/containers/storage/pkg/idtools"
"github.com/containers/storage/pkg/mount"
"github.com/containers/... |
GroupTargetGenerator::GroupTargetGenerator(
Target* target,
Scope* scope,
const FunctionCallNode* function_call,
Err* err)
: TargetGenerator(target, scope, function_call, err) {
}
GroupTargetGenerator::~GroupTargetGenerator() {
}
void GroupTargetGenerator::DoRun() {
target_->set_output_type(Targ... |
<simon-configuration>
<filter-callback>
<rule type="must" pattern="org.javasimon.test.good.*"/>
<rule events="stop">
<condition>
<![CDATA[
split > 5000 and split < 10us
]]>
</condition>
</rule>
<callback class="org.javasimon.utils.LoggingCallback">
<set property="logger" value="org.jav... |
package net.dubboclub.tracing.client.support.rocketmq;
import net.dubboclub.tracing.api.TracingCollector;
import net.dubboclub.tracing.client.TracingCollectorFactory;
/**
* RocketMqTracingCollectorFactory
* Created by bieber.bibo on 16/8/11
*/
public class RocketMqTracingCollectorFactory implements TracingCollect... |
(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.ha... |
package pl.prv.rrrekin.pbi;
import java.awt.Dimension;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
import type { NodePath, Scope } from "@babel/traverse";
import optimiseCall from "@babel/helper-optimise-call-expression";
import * as t from "@babel/types";
// ✌️
const HARDCORE_THIS_REF = new WeakSet();
function isIllegalBareSuper(node, parent) {
if (!t.isSuper(node)) return false;
if (t.isMemberExpression(pare... |
\[ [Use it online](http://jshint.com/) • [About](http://jshint.com/about/) •
[Docs](http://jshint.com/docs/) • [FAQ](http://jshint.com/docs/faq) •
[Install](http://jshint.com/install/) • [Hack](http://jshint.com/hack/) •
[Blog](http://jshint.com/blog/) • [Twitter](https://twitter.com/jshint/) \]
[
end
let :string do
'<html><body><div><p>test</p><p>test</p></div></body></html>'
end
let :html do
Saper::Items::HTML.new(string)
end
let :non_matching_html do
Saper::... |
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
module Integrations #:nodoc:
class Notification
attr_accessor :params
attr_accessor :raw
# set this to an array in the subclass, to specify which IPs are allowed
# to send requests
class_attribute :production_ips... |
module.exports = glob
var fs = require("fs")
, minimatch = require("minimatch")
, Minimatch = minimatch.Minimatch
, inherits = require("inherits")
, EE = require("events").EventEmitter
, path = require("path")
, isDir = {}
, assert = require("assert").ok
function glob (pattern, options, cb) {
if (typeof options ===... |
from oslo.config import cfg
# Import extensions to pull in osapi_compute_extension CONF option used below.
from nova.openstack.common import log as logging
from nova.tests.integrated import integrated_helpers
CONF = cfg.CONF
LOG = logging.getLogger(__name__)
class ExtensionsTest(integrated_helpers._IntegratedTestBa... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- PictureSelectorActivity -->
<color name="rc_picsel_toolbar">#393A3E</color>
<color name="rc_picsel_toolbar_transparent">#F0393A3E</color>
<color name="rc_picsel_toolbar_send_normal">#45C018</color>
<color name="rc_picsel_toolbar_send_pressed">#3E7D2C</color>
... |
namespace SpecAid.Base
{
public static class ConstantStrings
{
public static string IgnoreCell ="[ignore]";
}
}
|
regenerate:
go install github.com/gogo/protobuf/protoc-min-version
go install github.com/gogo/protobuf/protoc-gen-gogoslick
protoc-min-version --version="3.0.0" --gogoslick_out=\
Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,\
:. \
--proto_path=../../../../../:../../protobuf/:. issue261.proto
|
import datetime
from django.utils import tree
from django.utils.copycompat import deepcopy
class ExpressionNode(tree.Node):
"""
Base class for all query expressions.
"""
# Arithmetic connectors
ADD = '+'
SUB = '-'
MUL = '*'
DIV = '/'
MOD = '%%' # This is a quoted % operator - it i... |
Labels are carefully picked to optimize for:
- Readability: maintainers must immediately know the state of a PR
- Filtering simplicity: different labels represent many different aspects of
the reviewing work, and can even be targeted at different maintainers groups.
A pull request should only be attributed label... |
class Test {
private BigDecimal getRevenue() {
<selection>final String query = createNamedQuery("revenues");
String revenues = "";
final String revenue;
revenue = "a";
</selection>
return revenue;
}
public BigDecimal getExpense() {
final String query = createNamedQuery("expenses");
... |
package com.navercorp.pinpoint.rpc.packet.stream;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
import com.navercorp.pinpoint.rpc.packet.PacketType;
/**
* @author koo.taejin
*/
public class StreamPingPacket extends BasicStreamPacket {
private final ... |
/**
* Determines whether two sequences are equal by comparing the elements pairwise using a specified equality comparer.
*
* @example
* var res = res = source.sequenceEqual([1,2,3]);
* var res = res = source.sequenceEqual([{ value: 42 }], function (x, y) { return x.value === y.value; });
* 3 ... |
using testing::Message;
using testing::Test;
using testing::TestPartResult;
using testing::TestPartResultArray;
namespace {
// Tests the TestPartResult class.
// The test fixture for testing TestPartResult.
class TestPartResultTest : public Test {
protected:
TestPartResultTest()
: r1_(TestPartResult::kSucce... |
require 'geocoder/lookups/base'
require 'geocoder/results/opencagedata'
module Geocoder::Lookup
class Opencagedata < Base
def name
"OpenCageData"
end
def query_url(query)
"#{protocol}://api.opencagedata.com/geocode/v1/json?key=#{configuration.api_key}&#{url_query_string(query)}"
end
... |
<?php
class Owebia_Shipping2_Model_Os2_Data_Billto extends Owebia_Shipping2_Model_Os2_Data_Address
{
protected function _loadObject()
{
$quote = Mage::getModel('checkout/cart')->getQuote();
$address = $quote->getBillingAddress();
return $address;
}
}
|
"""Tests for tensorflow.ops.data_flow_ops.PaddingFIFOQueue."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import random
import time
import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin
import tensorflow as tf
class Pad... |
"""Test single point logfiles in cclib."""
import datetime
import os
import unittest
import numpy
import packaging
from common import get_minimum_carbon_separation
from skip import skipForParser
from skip import skipForLogfile
__filedir__ = os.path.realpath(os.path.dirname(__file__))
class G... |
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:1.9.0.77
// SpecFlow Generator Version:1.9.0.0
// Runtime Version:4.0.30319.17929
//
// Changes to this... |
package org.elasticsearch.indices.flush;
import org.elasticsearch.cluster.ClusterService;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.routing.IndexShardRoutingTable;
import org.elasticsearch.cluster.routing.ShardRouting;
import org.elasticsearch.common.Strings;
import org.elasticse... |
#ifndef CHECKHEADER_SLIB_NETWORK_ASYNC
#define CHECKHEADER_SLIB_NETWORK_ASYNC
#include "definition.h"
#include "socket.h"
#include "../core/async.h"
namespace slib
{
class AsyncTcpSocket;
class AsyncTcpSocketInstance;
class SLIB_EXPORT AsyncTcpSocketParam
{
public:
// optional
Ref<Socket> socket;
So... |
var config = require('../')
var test = require('tape')
test('test basic properties of config', function (t) {
t.ok(isObject(config.ecmaFeatures))
t.ok(isObject(config.env))
t.ok(isObject(config.globals))
t.ok(isObject(config.rules))
t.end()
})
function isObject (obj) {
return typeof obj === 'object' && ob... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Publ. Field Mus. Nat. Hist. , Bot. Ser. 23:3. 1943
#### Original name
null
### Remarks
null |
<div *ngIf="!node.children">
<a href="{{node.url}}" [ngClass]="classes" title="{{node.tooltip}}"
class="vertical-menu-item">
{{node.title}}
</a>
</div>
<div *ngIf="node.children">
<a *ngIf="node.url != null" href="{{node.url}}" [ngClass]="classes" title="{{node.tooltip}}"
(click)="headerClicked()" cl... |
/**
* Copies the values of `source` to `array`.
*
* @private
* @param {Array} source The array to copy values from.
* @param {Array} [array=[]] The array to copy values to.
* @returns {Array} Returns `array`.
*/
function copyArray(source, array) {
var index = -1,
length = source.length;
array || (arra... |
package com.github.rjeschke.neetutils.iterables;
import java.util.Arrays;
import java.util.Iterator;
/**
*
* @author René Jeschke (rene_jeschke@yahoo.de)
*
* @param <A>
*/
public class ArrayIterator<A> extends AbstractXIterable<A>
{
private final A[] values;
@SafeVarargs
public ArrayIterator(final ... |
package vc.kotori.framework.base.entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Map;
import java.util.s... |
"""A setup module for the GRPC Google Cloud Vision API service.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import setuptools
from setuptools import setup, find_packages
install_requires = [
'googleapis-common-protos>=1.5.2, <2.0dev',
'oauth2client>=2.... |
package com.googlecode.dex2jar.ir.expr;
import com.googlecode.dex2jar.ir.expr.Value.VT;
public final class Exprs {
public static Value[] copy(Value[] v) {
if (v == null) {
return new Value[0];
}
Value vb[] = new Value[v.length];
for (int i = 0; i < v.length;... |
Addon = {
-- User-friendly readable information. Can change between releases.
name = "Example Addon",
description = "An example addon that adds some very basic things.",
icon = fromFile("addon.jpg"),
-- What the game and all other addons will know this project as.
-- This should not vary between releases.
id = ... |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Collections.Immutable
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols.Metadata.PE
Imports... |
import datetime
import uuid
import mock
from oslo_config import fixture as fixture_config
from oslotest import base
import requests
from ceilometer.dispatcher import http
from ceilometer.event.storage import models as event_models
from ceilometer.publisher import utils
class TestDispatcherHttp(base.BaseTestCase):
... |
package org.apache.lucene.util.packed;
/**
* Non-specialized {@link BulkOperation} for {@link PackedInts.Format#PACKED_SINGLE_BLOCK}.
*/
final class BulkOperationPackedSingleBlock extends BulkOperation {
private static final int BLOCK_COUNT = 1;
private final int bitsPerValue;
private final int valueCount;... |
@interface AlbumData : ViewData {
NSString *artistId;
NSString *artistTitle;
}
- initWithDictionary:(NSDictionary *)dict ;
- (void)fetchThumbnail ;
@property (nonatomic, retain) NSString *artistId;
@property (nonatomic, retain) NSString *artistTitle;
@end
|
/*!
* angular-datatables - v0.5.7
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
module.exports = 'datatables.colvis';
}
(function(window, document, $, angular) {
'use strict';
// See ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Levy Moreira</title>
<meta name="description" content="Levy's Blog">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" type="t... |
package namespace
import (
"fmt"
"net/http"
"net/http/httptest"
"path"
"strings"
"sync"
"testing"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/errors"
"k8s.io/kubernetes/pkg/api/unversioned"
clientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
"k8s.io/kubernetes/pkg/c... |
<!--[metadata]>
+++
title = "Set up for the tutorial"
description = "Getting Started tutorial for Docker Engine swarm mode"
keywords = ["tutorial, cluster management, swarm mode"]
[menu.main]
identifier="tutorial-setup"
parent="swarm-tutorial"
weight=11
+++
<![end-metadata]-->
# Getting started with swarm mode
This t... |
#ifndef GrVkResourceProvider_DEFINED
#define GrVkResourceProvider_DEFINED
#include "GrResourceHandle.h"
#include "GrVkDescriptorPool.h"
#include "GrVkDescriptorSetManager.h"
#include "GrVkPipelineStateBuilder.h"
#include "GrVkRenderPass.h"
#include "GrVkResource.h"
#include "GrVkSampler.h"
#include "GrVkSamplerYcbcr... |
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = function(context) {
return {
"CallExpression": function(node) {
if (node.callee... |
package org.kuali.rice.kew.rule;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
import org.kuali.rice.core.api.resourcel... |
namespace chromeos {
namespace {
typedef std::vector<dbus::ObjectPath> ObjectPathVector;
} // namespace
NfcAdapterChromeOS::NfcAdapterChromeOS()
: weak_ptr_factory_(this) {
DBusThreadManager::Get()->GetNfcAdapterClient()->AddObserver(this);
DBusThreadManager::Get()->GetNfcDeviceClient()->AddObserver(this);... |
package org.apache.drill.exec.impersonation.hive;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Maps;
import org.apache.drill.exec.ExecConstants;
import org.apache.drill.exec.dotdrill.DotDrillType;
import org.apache.drill.exec.store.dfs.WorkspaceConfig;
import org.apache.hadoop.fs.P... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="up" title="FatFs" href="../00index_e.html">
<link rel="alterna... |