text stringlengths 3 1.05M |
|---|
package org.apache.nifi.processors.kafka.pubsub;
import org.apache.kafka.clients.consumer.Consumer;
import org.apache.kafka.clients.consumer.ConsumerRebalanceListener;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.con... |
/** @file
@brief Header
@date 2014
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2014 Sensics, Inc.
//
// 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 a... |
// Tally Votes in JavaScript Pairing Challenge.
// I worked on this challenge with: Benjamin R Flores
// This challenge took me [4] hours.
// These are the votes cast by each student. Do not alter these objects here.
var votes = {
"Alex": { president: "Bob", vicePresident: "Devin", secretary: "Gail", treasurer: "K... |
GLboolean _glfwInitialized = GL_FALSE;
_GLFWlibrary _glfw;
// This is outside of _glfw so it can be initialized and usable before
// glfwInit is called, which lets that function report errors
//
static GLFWerrorfun _glfwErrorCallback = NULL;
// Returns a generic string representation of the specified error
//
static... |
/* Just enough of CodeMirror to run runMode under node.js */
window.CodeMirror = {};
function splitLines(string){ return string.split(/\r?\n|\r/); };
function StringStream(string) {
this.pos = this.start = 0;
this.string = string;
}
StringStream.prototype = {
eol: function() {return this.pos >= this.string.len... |
+function ($) { "use strict";
// DROPDOWN CLASS DEFINITION
// =========================
var backdrop = '.dropdown-backdrop'
var toggle = '[data-toggle=dropdown]'
var Dropdown = function (element) {
var $el = $(element).on('click.bs.dropdown', this.toggle)
}
Dropdown.prototype.toggle = function... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project
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/license... |
<?php
namespace Doctrine\Tests\ORM\Query;
use Doctrine\ORM\Query\Expr;
use Doctrine\ORM\Query;
require_once __DIR__ . '/../../TestInit.php';
/**
* Test case for the DQL Expr class used for generating DQL snippets through
* a programmatic interface
*
* @author Jonathan H. Wage <jonwage@gmail.com>
* @licen... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
package org.apache.drill.exec.expr.fn;
import com.google.common.base.Preconditions;
import org.apache.drill.common.types.TypeProtos.MajorType;
import org.apache.drill.common.types.Types;
public class WorkspaceReference {
private final Class<?> type;
private final String name;
private final boolean inject;
p... |
package org.apache.ignite.mxbean;
import org.apache.ignite.cluster.ClusterMetrics;
/**
* MBean for local node metrics.
*/
@MXBeanDescription("MBean that provides access to all local node metrics.")
public interface ClusterMetricsMXBean extends ClusterMetrics {
/** {@inheritDoc} */
@MXBeanDescription("Last... |
export * from './datepicker.component';
import {NgModule} from '@angular/core';
import {NgbdSharedModule} from '../../shared';
import {NgbdComponentsSharedModule} from '../shared';
import {NgbdDatepicker} from './datepicker.component';
import {DEMO_DIRECTIVES} from './demos';
@NgModule({
imports: [NgbdSharedModule,... |
package com.melon.basic.object;
import org.junit.Test;
import java.io.*;
public class SimpleSerial {
private static Object newInstance(Class<?> clazz) {
try {
return clazz.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
e.printStackTrace();
... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFilterList = (props) => (
<SvgIcon {...props}>
<path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>
</SvgIcon>
);
ContentFilterList = pure(ContentFilterList);
ContentFilterList.displayName = 'Con... |
import { defaultGenerator } from 'vs/base/common/idGenerator';
import { IFileQuery } from 'vs/workbench/services/search/common/search';
import { assign, equals } from 'vs/base/common/objects';
enum LoadingPhase {
Created = 1,
Loading = 2,
Loaded = 3,
Errored = 4,
Disposed = 5
}
export class FileQueryCacheState... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>nanoGALLERY</title>
<style>
* {font-family: sans-serif; color:#fff;}
a, h1, h2, h3, h4, h5 {text-align:center; color:#eee;}
body {background:#333;}
</style>
<!-- nanoGALL... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Diagnostics;
namespace Microsoft.CodeAnalysis
{
[DebuggerDisplay("{GetDebuggerDisplay(),nq}")]
public class WorkspaceDiagnostic
{
... |
cask 'github-desktop' do
version '222'
sha256 'b7d001b36a88f75f9c6102de8fbf683ab940caa2b654fd7a1a0f367be689fc02'
url "https://mac-installer.github.com/mac/GitHub%20Desktop%20#{version}.zip"
appcast 'https://central.github.com/mac/appcast.xml',
checkpoint: 'b6482e6fe6594a1a9aad10b645fc551c9e16d0cd8deb... |
package android.support.annotation;
import java.lang.annotation.Annotation;
public interface ColorRes
extends Annotation
{
}
|
package com.esri.core.geometry;
/**
* Simplifies the geometry or determines if the geometry is simple. Follows the OGC specification for the Simple Feature Access
* v. 1.2.1 (06-103r4).
* Uses tolerance to determine equal vertices or points of intersection.
*
*/
public abstract class OperatorSimplifyOGC extends... |
import {ng} from '../../../utils/process';
import {join} from 'path';
import {expectFileToExist} from '../../../utils/fs';
export default function() {
const directiveDir = join('src', 'app');
return ng('generate', 'directive', 'test-directive')
.then(() => expectFileToExist(join(directiveDir, 'test-directive.... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!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" xml:lang="en" lang="en">
<head>
<title>Class: Erubis::Main</title>
<meta http-equiv="Content-Ty... |
package org.apache.zookeeper.test;
import java.io.File;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.concurrent.Semaphore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.zookeeper.PortAssignment;
import org.apache.zookeeper.ZKT... |
/// <reference path="tsd.d.ts" />
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../ionic/ionic.d.ts" />
// For the full application demo please see following repo :
// https://github.com/ksachdeva/ngCordova-typescript-demo
namespace demo.deviceorientation {
'use strict';
export class De... |
package org.bouncycastle.cert;
import java.math.BigInteger;
import java.util.Date;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.x500.X500Name;
import org.bouncycastle.asn1.x509.ExtensionsGenerator;
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
import org.bouncycastle.asn1.x509.Time... |
@javax.xml.bind.annotation.XmlSchema(namespace = "urn:hl7-org:cdsoutput:r2", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.hl7.cdsoutput.r2;
|
class Nop < BaseCommand
def call(*args, env:, frames:)
result = true
super do |*a|
result = a[0] if a.length == 1
end
result
end
end
|
layout: post100
title: Object Metadata
categories: XAP100NET
parent: modeling-your-data.html
weight: 200
---
{% summary %}{% endsummary %}
In general, every object can be stored in the space - it does not have to inherit from a base class, implement an interface, or have any attributes decorating it. It doesn't ev... |
package org.zmlx.hg4idea.action.mq;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.jetbrains.annotations.NotNull;
import org.zmlx.hg4idea.repo.HgRepository;
import org.zmlx.hg4idea.ui.HgMqUnAppliedPatchesPanel;
import java.util.List;
public abstract class HgSingleActionFomMqPatches extends HgAct... |
#ifndef EditingCallbacks_h
#define EditingCallbacks_h
typedef struct _WebKitWebView WebKitWebView;
void connectEditingCallbacks(WebKitWebView*);
#endif
|
<!--
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
"... |
// Copyright (C) 2005, 2006 Douglas Gregor <doug.gregor -at- gmail.com>.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
/** @file communicator.hpp
*
* This header defines the ... |
var nargs = /\{([0-9a-zA-Z_]+)\}/g
module.exports = template
function template(string) {
var args
if (arguments.length === 2 && typeof arguments[1] === "object") {
args = arguments[1]
} else {
args = new Array(arguments.length - 1)
for (var i = 1; i < arguments.length; ++i) {
... |
<?php
namespace Oro\Bundle\CalendarBundle\Controller;
use Oro\Bundle\CalendarBundle\Provider\CalendarDateTimeConfigProvider;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkE... |
/*
// Create.js - On-site web editing interface
// (c) 2011-2012 Henri Bergius, IKS Consortium
// Create may be freely distributed under the MIT license.
// For all details and documentation:
// http://createjs.org/
*/
(function (jQuery, undefined) {
// Run JavaScript in strict mode
/*global jQ... |
#ifndef __gl3_h_
#define __gl3_h_ 1
#ifdef __cplusplus
extern "C" {
#endif
/*
** This header is generated from the Khronos OpenGL / OpenGL ES XML
** API Registry. The current version of the Registry, generator scripts
** used to make the header, and the header can be found at
** http://www.opengl.org/registry/
**
... |
package com.amazonaws.services.backup.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultNotifications" target="_top">AWS
* API Documentation</a>
*... |
"use strict";
var f = require('util').format
, Long = require('bson').Long
, setProperty = require('./utils').setProperty
, getProperty = require('./utils').getProperty
, getSingleProperty = require('./utils').getSingleProperty;
// Incrementing request id
var _requestId = 0;
// Wire command operation ids
var... |
$(document).ready(function() {
// Init Masonry
var $grid = $('.grid').masonry({
gutter: 10,
horizontalOrder: true,
itemSelector: '.grid-item',
});
// Layout Masonry after each image loads
$grid.imagesLoaded().progress( function() {
$grid.masonry('layout');
});
});
|
# Дополнительные параметры
<p class="description">В этом разделе описывается более сложное использование @material-ui/core/styles.</p>
## Темизация
Add a `ThemeProvider` to the top level of your app to pass a theme down the React component tree. Then, you can access the theme object in style functions.
> Этот приме... |
Some of my hacky Dockerfiles.
|
cask 'svgcleaner' do
version '0.9.2'
sha256 'e0cca96e72c0765247cf5a2244b66e711b8a92008db96e5829db0d9def97bd0f'
url "https://github.com/RazrFalcon/svgcleaner-gui/releases/download/v#{version}/svgcleaner_macos_#{version}.zip"
appcast 'https://github.com/RazrFalcon/svgcleaner-gui/releases.atom',
checkpo... |
package org.apache.isis.core.commons.encoding;
import java.io.IOException;
/**
* This interface indicates that an object can be encoded into into a byte array
* so it can be streamed.
*
* <p>
* By implementing this interface you are agreeing to provide a constructor with
* a single argument of type {@link Da... |
#include "config.h"
#include "webkitauthenticationdialog.h"
static void authenticationDialogResponseCallback(GtkWidget* authDialog, gint responseID, WebKitAuthenticationWidget* authWidget)
{
WebCore::AuthenticationChallenge challenge = webkitAuthenticationWidgetGetChallenge(authWidget);
if (responseID == GTK... |
from datadog_checks.base.utils.tagging import GENERIC_TAGS
def build_check(component, instance):
url = instance.get(component + "_metric_url")
if url is not None:
user_tags = instance.get('tags', [])
user_labels_mapper = instance.get('labels_mapper', {})
user_labels_mapper.update(label... |
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8"/>
<title>trad-chinese-formal, negative</title>
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
<link rel='help' href='http://www.w3.org/TR/css-counter-styles-3/#complex-cjk'>
<link rel="reviewer" title="Chris Lilley" href="mailto:chr... |
package com.vmware.vim25;
/**
* @author Steve Jin (http://www.doublecloud.org)
* @version 5.1
*/
@SuppressWarnings("all")
public class VsanHostIpConfig extends DynamicData {
public String upstreamIpAddress;
public String downstreamIpAddress;
public String getUpstreamIpAddress() {
return this... |
package mixins;
import java.util.stream.Stream;
public interface StatefulEscalate2 extends Stateful {
String text();
default String escalated() {
int n = getState(StatefulEscalate2.class, 0);
setState(StatefulEscalate2.class, n+1);
// generate n bangs, or empty strings for n=0
String bangs = Stream.genera... |
var events = require("events"),
util = require("../util");
function Packet(type, size) {
this.type = type;
this.size = +size;
}
exports.name = "javascript";
exports.debug_mode = false;
function ReplyParser(options) {
this.name = exports.name;
this.options = options || { };
this._buffer ... |
background: #ffffff;
}
|
import {
describeComponent,
it
} from 'ember-mocha';
describeComponent(
'gh-url-preview',
'Unit: Component: gh-url-preview',
{
unit: true
},
function () {
it('generates the correct preview URL with a prefix', function () {
let component = this.subject({
... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="GRADLE" />
<option name="... |
namespace Fixtures.AcceptanceTestsHttp
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest;
using Models;
public static partial class HttpSuccessExtensions
{
/// <summary>
... |
class Golo < Formula
desc "Lightweight dynamic language for the JVM"
homepage "https://golo-lang.org/"
url "https://bintray.com/artifact/download/golo-lang/downloads/golo-3.3.0.zip"
sha256 "a9ff036518aee4280102b2d5b79752d8378857fd9714e5b701999a6c93b89316"
head "https://github.com/eclipse/golo-lang.git"
bot... |
FROM armhf/ubuntu:yakkety
RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libseccomp-dev pkg-config vim-common libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lis... |
from __future__ import unicode_literals
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0003_submit'),
]
operations = [
migrations.AlterField(
model_name='problem',
name='desc',
... |
const magicNumber = 42;
function sayMagicNumber() {
console.log(magicNumber);
}
export { sayMagicNumber };
|
package io.quarkus.quartz.test;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import javax.enterprise.event.Observes;
import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.junit.jupiter.api.Test;
import org.junit.... |
package net.nyist.WangJW.MentalHealthForum.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import com.alibaba.fastjson.annotation.JSONField;
/**
* Topic entity. @author MyE... |
/**
* @module ol/control/FullScreen
*/
import Control from './Control.js';
import {CLASS_CONTROL, CLASS_UNSELECTABLE, CLASS_UNSUPPORTED} from '../css.js';
import {replaceNode} from '../dom.js';
import {listen} from '../events.js';
import EventType from '../events/EventType.js';
const events = ['fullscreenchange', 'w... |
package vanadis.objectmanagers;
/**
* The states that a managed object can be in.
*/
public enum ManagedState {
NEWBORN,
CONFIGURED,
RESOLVING_DEPENDENCIES,
DEPENDENCIES_RESOLVED,
SERVICES_EXPOSED,
ACTIVE,
DISPOSED,
FAILED;
public boolean before(ManagedState managedState... |
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**last_modified_date** | [**LastModifiedDateV30Rc1**](LastModifiedDateV30Rc1.md) | | [optional]
**affiliation_group** | [**list[AffiliationGroupV30Rc1QualificationSummaryV30Rc1]**](AffiliationGroupV30Rc1QualificationSummary... |
#if GOOGLE_CUDA
#define EIGEN_USE_GPU
#include "tensorflow/core/framework/numeric_types.h"
#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/kernels/scan_ops.h"
namespace tensorflow {
typedef Eigen::GpuDevice GPUDevice;
typedef Eigen::Index Index;
#define DEFINE(REDUCER, T) templat... |
#ifndef QSQLDRIVER_P_H
#define QSQLDRIVER_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the QtSQL module. This header file may change from version to version
// without notice, or even be removed.
//
// We mean it.
//
#include "private/qobj... |
package org.jbpm.process;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.drools.core.process.core.Work;
import org.drools.core.process.core.impl.WorkImpl;
import org.jbpm.process.in... |
/*
* ___
* /\_ \
* \//\ \ __ ___ __ __ ___ ___
* \ \ \ /'__`\ /' _ `\/\ \/\ \ / __`\ /' _ `\
* \_\ \_/\ \_\.\_/\ \/\ \ \ \_\ \/\ \_\ \/\ \/\ \
* /\____\ \__/.\_\ \_\ \_\/`____ \ \____/\ \_\ \_\
* \/____/\/__/\/_/\/_/\/_/`/___/> \/___/ \/_/\/_/
* ... |
from email.test.test_email_renamed import suite
from test import test_support
def test_main():
test_support.run_unittest(suite())
if __name__ == '__main__':
test_main()
|
/** @author Brian Cavalier */
/** @author John Hann */
(function(define) { 'use strict';
define(function() {
return function makePromise(environment) {
var tasks = environment.scheduler;
var emitRejection = initEmitRejection();
var objectCreate = Object.create ||
function(proto) {
function Child() {}... |
help()
{
echo "Usage: $(basename $0) [-b data_base | -p data_path] [-h] [-s]"
echo ""
echo "Options:"
echo " -b base directory for mount points of separate disks (default: /datadisks). Non-applicable with -s option"
echo " -p path for mount point of RAID0 drive (default: /datadri... |
// Copyright 2018 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... |
require 'spec_helper'
# a :request spec instead of :feature, doesn't need full-on Capybara
describe 'fieri routes', type: :request do
describe 'GET /status' do
it 'should return a 200' do
expect(ROLLOUT).to receive(:active?).with(:fieri).and_return(true)
get fieri.status_path
expect(response).t... |
typedef NS_ENUM(NSUInteger, FDButtonType) {
FDButtonTypeNormal,
FDButtonTypeRed
};
@interface UIButton (FDAdd)
+ (UIButton *)createButtonWithFrame:(CGRect)frame
buttonType:(FDButtonType)type
title:(NSString *)title
tag:(NS... |
'use strict';
var throttle = require('throttleit');
function requestProgress(request, options) {
var reporter;
var delayTimer;
var delayCompleted;
var totalSize;
var previousReceivedSize;
var receivedSize = 0;
var state = {};
options = options || {};
options.throttle = options.thr... |
gen_config
==========
Erlang configuration engine
Usage
-----
#### gen_config
* `load(Filename)`
Loads config
* `g(Key)`
Returns value of key or keypath with `{ok,Value}`
* `get_value(Key)`
Returns value of key or keypath with `Value`
|
// 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;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Channels;
... |
package com.thinkaurelius.titan.diskstorage.es;
import com.thinkaurelius.titan.CassandraStorageSetup;
import com.thinkaurelius.titan.StorageSetup;
import com.thinkaurelius.titan.diskstorage.configuration.ModifiableConfiguration;
import com.thinkaurelius.titan.diskstorage.configuration.WriteConfiguration;
import com.t... |
package org.spongepowered.api.data.manipulator.item;
import org.spongepowered.api.data.manipulator.MappedData;
import org.spongepowered.api.item.Enchantment;
/**
* Represents stored enchantments that can be used to apply the stored
* {@link Enchantment}s on to another item stack.
*
* <p>Common uses of {@link Sto... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2010 Mark Wyszomierski -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map_callout_checkins_main"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"... |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<page title="SimpleTest" file="index.php">
<page title="Prise en main rapide de SimpleTest pour PHP" file="simple_test.php">
</page>
<page title="Documentation : les tests unitaires en PHP" file="unit_test_documentation.php">
<page title="Les groupes de tests" ... |
page_title: Working with Docker Images
page_description: How to work with Docker images.
page_keywords: documentation, docs, the docker guide, docker guide, docker, docker platform, virtualization framework, docker.io, Docker images, Docker image, image management, Docker repos, Docker repositories, docker, docker tag,... |
package daemon
import "time"
// newStatsCollector returns a new statsCollector for collection stats
// for a registered container at the specified interval. The collector allows
// non-running containers to be added and will start processing stats when
// they are started.
func newStatsCollector(interval time.Duratio... |
/**
* Main file for the Skolmaten API wrapper
* @since 0.1.0
* @module schoolmeal
* @author Joel Ericsson <joel.eriksson@protonmail.com>
* @license MIT
*/
import * as moment from "moment-timezone"
import { HTTPThrottler } from "../httpthrottler/httpthrottler"
import { schoolmeal as schoolmealTypes } from "./typ... |
/**
* Provides information about operating system environment.
*
* Should not be manually instantiated unless for unit-testing.
* Access the global instance stored in {@link Ext.os} instead.
* @private
*/
Ext.env.OS = function(userAgent, platform, browserScope) {
// @define Ext.env.OS
// @define Ext.os
// @requir... |
import { Observable } from '../../Observable';
import { race as staticRace } from '../../observable/race';
Observable.race = staticRace;
//# sourceMappingURL=race.js.map |
<!--[metadata]>
+++
title = "High availability in Swarm"
description = "High availability in Swarm"
keywords = ["docker, swarm, clustering"]
[menu.main]
parent="workw_swarm"
weight=3
+++
<![end-metadata]-->
# High availability in Docker Swarm
In Docker Swarm, the **Swarm manager** is responsible for the entire clust... |
// *********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTIC... |
<root>
<item name='org.apache.velocity.app.event.EventCartridge boolean addEventHandler(org.apache.velocity.app.event.EventHandler)'>
<annotation name='org.jetbrains.annotations.Contract'>
<val val=""null->false""/>
</annotation>
</item>
<item name='org.apache.veloci... |
package org.elasticsearch.transport;
import com.google.common.collect.Maps;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.io.stream.Streamable;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;... |
This repository contains repository infrastructure tools for use in
`kubernetes` and `kubernetes-incubator` repositories. Examples:
- Boilerplate verification
- Gofmt verification
- Golang build infrastructure
---
## Using this repository
This repository can be used via some golang "vendoring" mechanism
(such as ... |
@interface FakeSimpleOAuth2AuthenticationManager : SimpleOAuth2AuthenticationManager
@property (strong, nonatomic) NSURL *authURL;
@property (strong, nonatomic) NSDictionary *tokenParametersDictionary;
@property (strong, nonatomic) id<TokenParameters> tokenParameters;
@property (copy, nonatomic) void (^success)(id aut... |
package org.apache.spark.network.netty
import org.apache.spark.network.BlockDataManager
import org.apache.spark.{SecurityManager, SparkConf, SparkFunSuite}
import org.mockito.Mockito.mock
import org.scalatest._
class NettyBlockTransferServiceSuite
extends SparkFunSuite
with BeforeAndAfterEach
with ShouldMatch... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:la... |
from rdkit import six
#-------------------------------------------------------------------------
# Color
#-------------------------------------------------------------------------
class Color:
"""This class is used to represent color. Components red, green, blue
are in the range 0 (dark) to 1 (full intens... |
package co.cask.cdap.data2.transaction.queue.leveldb;
import co.cask.cdap.api.dataset.table.Row;
import co.cask.cdap.api.dataset.table.Scanner;
import co.cask.cdap.common.queue.QueueName;
import co.cask.cdap.data2.dataset2.lib.table.leveldb.LevelDBTableCore;
import co.cask.cdap.data2.transaction.queue.QueueEntryRow;... |
package org.apache.flink.table.api.bridge.scala
import org.apache.flink.annotation.PublicEvolving
import org.apache.flink.api.common.typeinfo.TypeInformation
import org.apache.flink.api.scala._
import org.apache.flink.table.api.Table
import org.apache.flink.table.expressions.Expression
/**
* Holds methods to conve... |
#ifndef YR_YARA_H
#define YR_YARA_H
#include "yara/compiler.h"
#include "yara/error.h"
#include "yara/filemap.h"
#include "yara/hash.h"
#include "yara/libyara.h"
#include "yara/mem.h"
#include "yara/modules.h"
#include "yara/object.h"
#include "yara/scanner.h"
#include "yara/stream.h"
#include "yara/utils.h"
#endif... |
package com.google.gerrit.server.config;
import com.google.gerrit.reviewdb.AccountGroup;
import com.google.gerrit.reviewdb.ReviewDb;
import com.google.gwtorm.client.SchemaFactory;
import com.google.inject.Inject;
import org.eclipse.jgit.lib.Config;
import java.util.Collections;
import java.util.HashSet;
public clas... |
object Constants {
val IncludeFast = "--include-categories=test.Fast"
val IncludeSlow = "--include-categories=test.Slow"
val IncludeFastAndSlow = "--include-categories=test.Fast,test.Slow"
val ExcludeFast = "--exclude-categories=test.Fast"
val ExcludeSlow = "--exclude-categories=test.Slow"
val ExcludeFastAn... |
package filters
import (
"fmt"
"net/http"
"sync"
"time"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/apiserver/pkg/authentication/user"
"k8s.io/apiserver/pkg/endpoints/metrics"
apirequest "k8s.io/apiserver/pkg/endpoints/request"
"github.com/golang/glog"
)
const (
// C... |
while
-----
Evaluate a group of commands while a condition is true
::
while(condition)
COMMAND1(ARGS ...)
COMMAND2(ARGS ...)
...
endwhile(condition)
All commands between while and the matching :command:`endwhile` are recorded
without being invoked. Once the :command:`endwhile` is evaluated, the
rec... |