text stringlengths 3 1.05M |
|---|
#include <aws/elasticmapreduce/model/ClusterState.h>
#include <aws/core/utils/HashingUtils.h>
using namespace Aws::Utils;
static const int STARTING_HASH = HashingUtils::HashString("STARTING");
static const int BOOTSTRAPPING_HASH = HashingUtils::HashString("BOOTSTRAPPING");
static const int RUNNING_HASH = HashingUtil... |
(function() {
(function($) {
return $.bigfoot = function(options) {
var addBreakpoint, baseFontSize, bigfoot, buttonHover, calculatePixelDimension, cleanFootnoteLinks, clickButton, createPopover, defaults, deleteEmptyOrHR, escapeKeypress, footnoteInit, getSetting, makeDefaultCallbacks, popoverStates, positi... |
/*!
* inferno-test-utils v1.0.0-beta33
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Inferno = global... |
package GCParser.Operation;
import YaoGC.State;
import java.math.BigInteger;
import GCParser.*;
public class SetOperation extends OpDirections {
public final static String NAME = "set";
public SetOperation(){
super(NAME);
}
public State execute(State[] inputs) throws Exception {
reusedWires(inputs[0]);... |
<?php
namespace Latte\Macros;
use Latte,
Latte\MacroNode;
/**
* Base IMacro implementation. Allows add multiple macros.
*
* @author David Grudl
*/
class MacroSet extends Latte\Object implements Latte\IMacro
{
/** @var Latte\Compiler */
private $compiler;
/** @var array */
private $macros;
public ... |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.Rest.Generator.Utilities
{
public interface IScopeProvider
{
string GetUniqueName(string variableN... |
import { getProp, getLiteralPropValue } from 'jsx-ast-utils';
/**
* Returns the implicit role for a menu tag.
*/
export default function getImplicitRoleForMenu(attributes) {
const type = getProp(attributes, 'type');
if (type) {
const value = getLiteralPropValue(type);
return (value && value.toUpperCase... |
/* */
require("../modules/web.timers");
require("../modules/web.immediate");
require("../modules/web.dom.iterable");
module.exports = require("../modules/$.core");
|
#include <memory_resource>
#else
#include <experimental/memory_resource>
namespace std {
namespace pmr = ::std::experimental::pmr;
} //namespace std
#endif
namespace luacpp::pmr {
class PolymorphicAllocator {
protected:
std::pmr::memory_resource* _mr;
public:
PolymorphicAllocator() noexcept: Polymorphi... |
<!--
Copyright 2014 Google 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
Unless required by applicable law o... |
Solvers optimize the layer with a given objective. This might happen
by updating the weights of the layer, which is the usual practice for
Neural Networks but is not limited to this kind of learning.
A solver can have different learning (solving) policies. With Neural Networks, it
is common to use a Stochastic Gradien... |
<?php
interface iExampleTwo {
public function setWage( $wage );
public function getWage();
}
?> |
import os
import sys
#Replace version strings
if len(sys.argv)>1:
oldVersion = sys.argv[1]
newVersion = sys.argv[2]
query = raw_input("Replace %s with %s?: " % (oldVersion, newVersion))
if query == "y":
#First, scan through and make sure the replacement is possible
for filename in ("set... |
Template.post_author.helpers({
displayName: function () {
var user = Meteor.users.findOne(this.userId);
if (user) {
return Users.getDisplayName(user);
} else {
return this.author;
}
}
}); |
describe("module:ngRoute.directive:ngView", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("./examples/example-ngView-directive/index-jquery.html");
});
it('should load and compile correct template', function() {
element(by.linkText('Moby: Ch1')).click();
... |
<!DOCTYPE html>
<html>
<head>
<title>Science Visualization</title>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta charset="utf-8">
<meta name="viewport" content="w... |
// 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.
using System.ServiceModel.Channels;
namespace WcfService
{
internal class CustomTextMessageEncoderFactory : Me... |
{% load i18n admin_urls %}
<div class="submit-row">
{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" name="_save" />{% endif %}
{% if show_delete_link %}
{% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
<p class="deletelink-box"><a href="{% add_pres... |
const functions = require("firebase-functions");
const admin = require("firebase-admin");
admin.initializeApp();
const db = admin.firestore();
exports.timedLeaderboardCleanup = functions.firestore
.document("leaderboard/{leaderboardEntry}")
.onCreate(async (_, __) => {
functions.logger.info(
"Document c... |
import 'vtk.js/Sources/Common/DataModel/ImageData';
import vtkDataArray from 'vtk.js/Sources/Common/Core/DataArray';
import pako from 'pako';
import vtk from 'vtk.js/Sources/vtk';
import Monologue from 'monologue.js';
import DataManager from 'paraviewweb/src/IO/Core/DataManager';
let dataManager = new DataManager();... |
<ns1:ServiceSecurityMetadata xsi:type="ns1:ServiceSecurityMetadata" xmlns:ns1="gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata.security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns1:defaultCommunicationMechanism anonymousPermitted="false" xsi:type="ns1:CommunicationMechanism">
<ns1:GSITransport pro... |
package org.apache.sling.ide.eclipse.ui.wizards.np;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import org.apache.maven.archetype.catalog.Archetype;
impo... |
package com.iluwatar.lazy.loading;
/**
*
* Lazy loading idiom defers object creation until needed.
* <p>
* This example shows different implementations of the pattern
* with increasing sophistication.
* <p>
* Additional information and lazy loading flavours are described in
* http://martinfowler.com/eaaCatalo... |
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.helpers;
/**
* @generated
*/
public class SequenceInputConnectorEditHelper extends EsbBaseEditHelper {
}
|
<?php
/**
* Listens for changes within the Transport system.
*
* @package Swift
* @subpackage Events
*
* @author Chris Corbyn
*/
interface Swift_Events_TransportChangeListener extends Swift_Events_EventListener
{
/**
* Invoked just before a Transport is started.
*
* @param Swift_Events_Trans... |
// Copyright 2008 The Closure Library Authors. 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
//
// Unless requ... |
package com.gs.collections.impl.map.fixed;
import java.util.Map;
import com.gs.collections.api.block.function.Function;
import com.gs.collections.api.block.function.Function0;
import com.gs.collections.api.block.function.Function2;
import com.gs.collections.api.block.predicate.Predicate2;
import com.gs.collections.... |
/*
* 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... |
MAKEFLAGS=-r
# The source directory tree.
srcdir := ..
abs_srcdir := $(abspath $(srcdir))
# The name of the builddir.
builddir_name ?= .
# The V=1 flag on command line makes us verbosely print command lines.
ifdef V
quiet=
else
quiet=quiet_
endif
# Specify BUILDTYPE=Release on the command line for a release bui... |
package org.apache.hadoop.hdfs.protocol;
import org.apache.hadoop.conf.Configuration;
/************************************
* Some handy constants
*
************************************/
public interface FSConstants {
public static int MIN_BLOCKS_FOR_WRITE = 5;
// Chunk the block Invalidate message
public ... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
// Copyright (c) 2012 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.
// require: array_data_model.js
// require: list_selection_model.js
// require: list_selection_controller.js
// require: list_item.js
/**
* @fileove... |
class AddDefaultCreatedAt < ActiveRecord::Migration
def up
execute <<-SQL
ALTER TABLE public.contributions ALTER created_at SET DEFAULT current_timestamp;
ALTER TABLE public.projects ALTER created_at SET DEFAULT current_timestamp;
ALTER TABLE public.payments ALTER created_at SET DEFAULT current_tim... |
#ifndef LCB_VIEWS_API_H
#define LCB_VIEWS_API_H
#include <libcouchbase/couchbase.h>
#include <libcouchbase/api3.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @ingroup lcb-public-api
* @defgroup lcb-view-api Views (Map-Reduce)
* @brief Higher level API which splits view results into rows
*/
/**
* @addtogroup... |
The HTML `<meta>` element is used to provide meta information about your HTML
document, typically keywords, document character set, caching pragmas, etc. Meta
tags may be either of the `http-equiv` or `name` types, must contain a `content`
attribute, and can also have either of the `lang` or `scheme` modifier
attribute... |
<?php
namespace Symfony\Component\Notifier\Bridge\MicrosoftTeams\Action;
/**
* An Action which can be used inside an ActionCard.
*
* @author Oskar Stark <oskarstark@googlemail.com>
*/
interface ActionCardCompatibleActionInterface extends ActionInterface
{
}
|
package com.intellij.openapi.externalSystem;
import com.intellij.openapi.fileChooser.FileChooserDescriptor;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
/**
* @author Denis Zhdanov
* @since 5/15/13 12:37 PM
*/
public interface ExternalSystemUiAware {
... |
// Copyright 2015 The Bazel Authors. 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
//
// Unless required by appl... |
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<string name="leave_this_page">"Abandona aquesta pàgina"</string>
<string name="stay_on_this_page">"Roman en aquesta pàgina"</string>
<string name="reload_this_page">"Torna a carregar aquesta pàgina"</string>
<... |
package com.google.security.zynamics.reil.translators.arm;
import static org.junit.Assert.assertEquals;
import com.google.common.collect.Lists;
import com.google.security.zynamics.reil.OperandSize;
import com.google.security.zynamics.reil.ReilInstruction;
import com.google.security.zynamics.reil.TestHelpers;
import ... |
<?php
use Mockery as m;
class QueueWorkerTest extends PHPUnit_Framework_TestCase
{
public function tearDown()
{
m::close();
}
public function testJobIsPoppedOffQueueAndProcessed()
{
$worker = $this->getMock('Illuminate\Queue\Worker', ['process'], [$manager = m::mock('Illuminate\Qu... |
'use strict';
var _ = require('underscore');
var base64VLQ = require('./base64-vlq');
var UglifyJS = require('uglify-js');
var ModuleTransport = require('../lib/ModuleTransport');
module.exports = Package;
function Package(sourceMapUrl) {
this._finalized = false;
this._modules = [];
this._assets = [];
this.... |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding = "10dp">
<solid android:color="#f2b179"/>
<corners
android:bottomRightRadius="5dp"
android:bottomLeftRadius="5dp"
android:topLeftRadius... |
function eventsServiceFactory ($http) {
const eventsUrl = `/api/events`
return {
all () {
return $http.get(eventsUrl, { cache: true })
.then(response => response.data.map(e => {
e.start = new Date(e.start)
e.end = new Date(e.end)
return e
}))
},
get (... |
<?php
namespace Symfony\Component\Console;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\ConsoleOutput;
/**
* A Shell wraps an Application to add shell capabilities to it.
*
* This class only works with a PHP compiled with readli... |
package org.andengine.engine.handler.collision;
import java.util.ArrayList;
import org.andengine.engine.handler.IUpdateHandler;
import org.andengine.entity.shape.IShape;
import org.andengine.util.adt.list.ListUtils;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 12... |
#ifndef INTEL_EXTENSIONS_H
#define INTEL_EXTENSIONS_H
extern void
intelInitExtensions(struct gl_context *ctx);
extern void
intelInitExtensionsES1(struct gl_context *ctx);
extern void
intelInitExtensionsES2(struct gl_context *ctx);
#endif
|
module.exports = {
'append' : require('./array/append'),
'collect' : require('./array/collect'),
'combine' : require('./array/combine'),
'compact' : require('./array/compact'),
'contains' : require('./array/contains'),
'difference' : require('./array/difference'),
'every' : require('./array/... |
/*!
* node-sass: scripts/build.js
*/
var eol = require('os').EOL,
pkg = require('../package.json'),
fs = require('fs'),
mkdir = require('mkdirp'),
path = require('path'),
spawn = require('cross-spawn');
require('../lib/extensions');
/**
* After build
*
* @param {Object} options
* @api priva... |
import {expect} from 'chai';
import {spec} from 'modules/adkernelAdnBidAdapter';
import * as utils from 'src/utils';
describe('AdkernelAdn adapter', () => {
const bid1_pub1 = {
bidder: 'adkernelAdn',
transactionId: 'transact0',
bidderRequestId: 'req0',
bidId: 'bidid_1',
params: {
... |
function convertToId(search)
{
var result = '';
for (i=0;i<search.length;i++)
{
var c = search.charAt(i);
var cn = c.charCodeAt(0);
if (c.match(/[a-z0-9\u0080-\uFFFF]/))
{
result+=c;
}
else if (cn<16)
{
result+="_0"+cn.toString(16);
}
else
{
result+="_"+c... |
/**!
* AngularJS file upload/drop directive and service with progress and abort
* FileAPI Flash shim for old browsers not supporting FormData
* @author Danial <danial.farid@gmail.com>
* @version 3.0.7
*/
(function() {
var hasFlash = function() {
try {
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFl... |
<?php
namespace Rhubarb\Leaf\Controls\Html5Upload\Examples\SingleUploadWithPersistence;
use Rhubarb\Crown\Events\Event;
use Rhubarb\Leaf\Leaves\LeafModel;
class SingleHtml5FileUploadWithPersistenceExampleModel extends LeafModel
{
public $example = "";
public $simulateError = false;
public $initialValue... |
/* Test applying an update by staging an update and launching an application */
/**
* The MAR file used for this test should not contain a version 2 update
* manifest file (e.g. updatev2.manifest).
*/
const TEST_ID = "0200";
// Backup the updater.ini and use a custom one to prevent the updater from
// launching... |
by [Ben Edmunds](http://benedmunds.com)
Redux Auth 2 had a lot of potential. It's lightweight, simple, and clean,
but had a ton of bugs and was missing some key features. So we refactored
the code and added new features.
This version drops any backwards compatibility and makes things even more
awesome then you coul... |
package pbft
import (
"bytes"
"fmt"
"reflect"
"sync"
"time"
"github.com/golang/protobuf/proto"
"github.com/hyperledger/fabric/consensus"
"github.com/hyperledger/fabric/protos"
)
type LedgerDirectory interface {
GetLedgerByPeerID(peerID *protos.PeerID) (consensus.ReadOnlyLedger, bool)
}
type HashLedgerDi... |
package dca
import (
"net/url"
"os"
"strings"
"google.golang.org/api/internal"
"google.golang.org/api/transport/cert"
)
const (
mTLSModeAlways = "always"
mTLSModeNever = "never"
mTLSModeAuto = "auto"
)
// GetClientCertificateSourceAndEndpoint is a convenience function that invokes
// getClientCertificate... |
package io.selendroid.standalone.io;
import io.selendroid.standalone.exceptions.ShellCommandException;
import java.util.Map;
import java.util.logging.Logger;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecuteResultHandler;
import org.apache.commons.exec.DefaultExecutor;
import... |
using System;
namespace Microsoft.PythonTools.Debugger {
class BreakpointHitEventArgs : EventArgs {
private readonly PythonBreakpoint _breakpoint;
private readonly PythonThread _thread;
public BreakpointHitEventArgs(PythonBreakpoint breakpoint, PythonThread thread) {
... |
<?php
/**
* Represents a macro node.
*
* @package twig
* @author Fabien Potencier <fabien@symfony.com>
*/
class Twig_Node_Macro extends Twig_Node
{
public function __construct($name, Twig_NodeInterface $body, Twig_NodeInterface $arguments, $lineno, $tag = null)
{
parent::__construct(array... |
package sql
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import cockroach_roachpb1 "github.com/cockroachdb/cockroach/roachpb"
import cockroach_sql_driver "github.com/cockroachdb/cockroach/sql/driver"
// skipping weak import gogoproto "github.com/cockroachdb/gogoproto"
import io "... |
@echo off
pushd %~dp0
"%VS120COMNTOOLS%..\IDE\mstest" /test:Microsoft.Protocols.TestSuites.MS_MEETS.S02_Meeting.MSMEETS_S02_TC10_RemoveMeetingWithoutOptionalParameters /testcontainer:..\..\MS-MEETS\TestSuite\bin\Debug\MS-MEETS_TestSuite.dll /runconfig:..\..\MS-MEETS\MS-MEETS.testsettings /unique
pause |
<?php
App::uses('AppShell', 'Console/Command');
/**
* Base class for Bake Tasks.
*
* @package Cake.Console.Command.Task
*/
class BakeTask extends AppShell {
/**
* Name of plugin
*
* @var string
*/
public $plugin = null;
/**
* The db connection being used for baking
*
* @var string
*/
public $co... |
<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... |
import shutil
import tempfile
import unittest
from pkgsetcomp import pkgsetcomp
class Test_pkgsetcomp(unittest.TestCase):
def setUp(self):
self.output_dir = tempfile.mkdtemp(prefix='compare_paths_')
def tearDown(self):
shutil.rmtree(self.output_dir)
def test_00_pkgsetcomp(self):
... |
<!DOCTYPE html><!-- DO NOT EDIT. This file auto-generated by generate_closure_unit_tests.js --><!--
Copyright 2017 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
--><html><head><meta charset="UTF-8">
<script s... |
package lifecycle
import "k8s.io/kubernetes/pkg/api"
// PodAdmitAttributes is the context for a pod admission decision.
// The member fields of this struct should never be mutated.
type PodAdmitAttributes struct {
// the pod to evaluate for admission
Pod *api.Pod
// all pods bound to the kubelet excluding the po... |
using IntelliTect.Coalesce.Utilities;
using Microsoft.CodeAnalysis;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
namespace IntelliTect.Coalesce.TypeDefinition
{
public interface IAttributeProvider
{
object? GetAttributeValue<TAttribute>(string value... |
.charsheet thead{
background-color: #7cc;
font-weight:bolder;
}
.charsheet label {
display: inline;
width: 100%;
text-align: right;
}
.charsheet table input[type=text], .charsheet table input[type=date]{
width:100%;
}
.charsheet thead td{
border-left:1px solid black;
border-right:1px ... |
export as namespace acorn
export = acorn
declare namespace acorn {
function parse(input: string, options?: Options): Node
function parseExpressionAt(input: string, pos?: number, options?: Options): Node
function tokenizer(input: string, options?: Options): {
getToken(): Token
[Symbol.iterator](): Itera... |
( function () {
const _taskCache = new WeakMap();
class Rhino3dmLoader extends THREE.Loader {
constructor( manager ) {
super( manager );
this.libraryPath = '';
this.libraryPending = null;
this.libraryBinary = null;
this.libraryConfig = {};
this.url = '';
this.workerLimit = 4;
this.workerP... |
package io.vavr.collection;
import java.lang.annotation.*;
@Retention(RetentionPolicy.CLASS)
@Target({ ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD })
@Documented
@interface GwtIncompatible {
String value() default "";
}
|
/**
* Sort and paginate tabular data
* @module Ink.UI.Table_1
* @version 1
*/
Ink.createModule('Ink.UI.Table', '1', ['Ink.Util.Url_1','Ink.UI.Pagination_1','Ink.Net.Ajax_1','Ink.UI.Common_1','Ink.Dom.Event_1','Ink.Dom.Css_1','Ink.Dom.Element_1','Ink.Dom.Selector_1','Ink.Util.Array_1','Ink.Util.String_1', 'Ink.Util.... |
function WatchMissingNodeModulesPlugin (nodeModulesPath) {
this.nodeModulesPath = nodeModulesPath;
}
WatchMissingNodeModulesPlugin.prototype.apply = function (compiler) {
compiler.plugin('emit', (compilation, callback) => {
var missingDeps = compilation.missingDependencies;
var nodeModulesPath ... |
/**
* @license AngularJS v1.5.0-rc.2
* (c) 2010-2016 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Any commits to this file should be reviewed with security in mind. *
* ... |
/**
* \file opt_constant_propagation.cpp
*
* Tracks assignments of constants to channels of variables, and
* usage of those constant channels with direct usage of the constants.
*
* This can lead to constant folding and algebraic optimizations in
* those later expressions, while causing no increase in instruct... |
<?xml version="1.0" encoding="utf-8" ?>
<phpunit backupGlobals="true"
backupStaticAttributes="false"
bootstrap="/path/to/bootstrap.php"
cacheTokens="false"
columns="80"
colors="false"
stderr="false"
convertErrorsToExceptions="true"
convertNoticesT... |
using namespace llvm;
INITIALIZE_PASS_BEGIN(MachineBranchProbabilityInfo, "machine-branch-prob",
"Machine Branch Probability Analysis", false, true)
INITIALIZE_PASS_END(MachineBranchProbabilityInfo, "machine-branch-prob",
"Machine Branch Probability Analysis", false, true)
ch... |
<?php
namespace Guzzle\Http\Curl;
use Guzzle\Common\AbstractHasDispatcher;
use Guzzle\Common\Event;
use Guzzle\Http\Exception\MultiTransferException;
use Guzzle\Http\Exception\CurlException;
use Guzzle\Http\Message\RequestInterface;
/**
* Send {@see RequestInterface} objects in parallel using curl_multi
*/
class C... |
module Monitoring
# Base class for the counter.
class BaseCounter
def increment(*)
end
end
# Prometheus implementation of counters.
class PrometheusCounter < BaseCounter
def initialize(prometheus_counter)
@counter = prometheus_counter
end
def increment(by: 1, labels: {})
@cou... |
package java_cup.runtime;
import java.util.Stack;
/** This class implements a temporary or "virtual" parse stack that
* replaces the top portion of the actual parse stack (the part that
* has been changed by some set of operations) while maintaining its
* original contents. This data structure is used when ... |
package android.app;
import android.content.Intent;
import android.content.pm.IPackageInstallObserver2;
import android.os.Bundle;
/** {@hide} */
public class PackageInstallObserver {
private final IPackageInstallObserver2.Stub mBinder = new IPackageInstallObserver2.Stub() {
@Override
public void... |
<?php
namespace Symfony\Component\PropertyAccess\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\PropertyAccess\StringUtil;
/**
* @group legacy
*/
class StringUtilTest extends TestCase
{
public function singularifyProvider()
{
// This is only a stub to make sure the BC layer works
... |
// ResolutionManager.cs
// Introduced: 2015-04-14
//////////////////////////////////////////////////////////////////////////
////License: The MIT License (MIT)
////Copyright (c) 2010 David Amador (http://www.david-amador.com)
////
////Permission is hereby granted, free of charge, to any person obtaining a copy of th... |
"""Console Proxy Service."""
import socket
from oslo.config import cfg
from nova.compute import rpcapi as compute_rpcapi
from nova import exception
from nova import manager
from nova.openstack.common.gettextutils import _
from nova.openstack.common import importutils
from nova.openstack.common import log as logging
... |
package backend.support;
import backend.debug.Dwarf;
import backend.type.FunctionType;
import backend.type.PointerType;
import backend.type.StructType;
import backend.type.Type;
import backend.value.*;
import backend.value.GlobalValue.LinkageType;
import backend.value.GlobalValue.VisibilityTypes;
import backend.valu... |
layout: post
title: Monitoring a docker environment using TICK stack
subtitle: Get live metrics of your running containers and docker hosts in a rancher environment
category: dev
tags: [howto, docker]
author: Markus Wehrle
author_email: markus.wehrle@haufe-lexware.com
header-img: "images/new/Exportiert_51.jpg"
---
## ... |
/*global describe, it, before, after */
/*jshint expr:true*/
var testUtils = require('../../../utils'),
should = require('should'),
supertest = require('supertest'),
ghost = require('../../../../../core'),
request;
describe('Tag API', function () {
var accesstoken = '';
... |
/
//***************************************************************************
#ifndef __CIFXComponentManager_H__
#define __CIFXComponentManager_H__
//***************************************************************************
// Includes
//***************************************************************************
... |
<%include file="theme-footer.html"/>
|
#import "NSObject.h"
#import "NSCoding-Protocol.h"
@class NSDictionary, NSMapTable, NSMutableArray, XDDiagramController;
@interface XDDiagramStorage : NSObject <NSCoding>
{
XDDiagramController *_diagramController;
NSMutableArray *_graphicsLayers;
NSMutableArray *_graphics;
NSMapTable *_objectValueT... |
"""
parse neurolex ontology
1. convert csv file to tab-delimited text using excel
2. fix excel file using:
cat allen_brain_atlas_human_ontology.txt | tr '\r' '\n' > allen_brain_atlas_human_ontology_fixed.txt
"""
import simplejson
ontologyfile='allen_brain_atlas_human_ontology_fixed.txt'
treefile='allen_human_brain... |
Install base server, with SSH server only. Give machine a *.local name.
```bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y build-essential module-assistant avahi-daemon
sudo m-a prepare
```
Mount the Guest Additions cdrom.
```bash
sudo mount /dev/cdrom /mnt
cd /mnt
sudo ./VBoxLinuxAdditions.run... |
declare module 'vscode' {
// https://github.com/microsoft/vscode/issues/106744
export namespace notebooks {
/**
* Create a document that is the concatenation of all notebook cells. By default all code-cells are included
* but a selector can be provided to narrow to down the set of cells.
*
* @param... |
package io.mycat.sqlexecute;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
public class StandBatchInsertTest {
public static void testJDBCBatchInsert(Connection theCon)
throws SQLException {
theCon.setAutoCommit(false);
Statement stmt = theCon.createStatement();
int b... |
package com.google.template.soy.passes;
import com.google.template.soy.base.SourceLocation;
import com.google.template.soy.error.ErrorReporter;
import com.google.template.soy.error.SoyErrorKind;
import com.google.template.soy.exprparse.SoyParsingContext;
import com.google.template.soy.exprtree.ExprRootNode;
import c... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
<title>TableTools example - Row selection - row selector on specific cells</title>
<link rel="styleshe... |
Imports Tibia
Public Class frmHotkey
Private Sub btnGetHotkeys_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetHotkeys.Click
For i As Integer = 0 To Addresses.Hotkey.MaxHotkeys - 1
Dim h As New Objects.Hotkey(client, i)
If h.ObjectId > 0 Or h... |
@interface ViewController : UIViewController
@property (nonatomic, strong) IBOutlet UIView *bounceView;
@property (nonatomic, strong) IBOutlet UIButton *bounceButton;
- (IBAction)ease:(id)sender;
- (IBAction)bounce:(id)sender;
- (IBAction)jump:(id)sender;
@end
|
#ifndef SocketStreamErrorBase_h
#define SocketStreamErrorBase_h
#include "PlatformString.h"
namespace WebCore {
class SocketStreamError;
class SocketStreamErrorBase {
public:
// Makes a deep copy. Useful for when you need to use a SocketStreamError on another thread.
SocketStreamError... |