text stringlengths 3 1.05M |
|---|
package com.github.vedenin.rus.collections.multiset;
import org.apache.commons.collections4.Bag;
import org.apache.commons.collections4.bag.HashBag;
import org.apache.commons.collections4.bag.SynchronizedBag;
import java.util.Arrays;
// Attention: version with english comments in "eng" package
public class ApacheSy... |
struct BrowserPluginHostMsg_ResizeGuest_Params;
struct ViewHostMsg_DateTimeDialogValue_Params;
struct ViewMsg_PostMessage_Params;
namespace content {
class BrowserPluginEmbedder;
class BrowserPluginGuest;
class BrowserPluginGuestManager;
class ColorChooser;
class DateTimeChooserAndroid;
class DownloadItem;
class Inter... |
'use strict';
var fs = require( 'fs' );
var path = require( 'path' );
var COMMONJS_BANNER = '// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.\n';
module.exports = function generateCommonJSModule( grunt, srcFiles, destFilepath )
{
var destDir = pat... |
<?xml version="1.0"?>
<doc>
<assembly>
<name>
ConsoleApplication1
</name>
</assembly>
<members>
</members>
</doc> |
package repo
import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/routers/api/v1/convert"
api "code.gitea.io/sdk/gitea"
)
// GetBranch get a branch of a repository
func GetBranch(ctx *context.APIContext) {
// swagger:operation GET /repos/{owner}/{repo}/branches/{branc... |
Object.defineProperty(exports,"__esModule",{value:true});var _this=this;
var _graphqlRelay=require('graphql-relay');
var _graphql=require('graphql');
var _ToDoType=require('../type/ToDoType');var _ToDoType2=_interopRequireDefault(_ToDoType);
var _ViewerType=require('../../../../units/urb-base-server/graphql/type/View... |
/**
* Autogenerated by Thrift Compiler (0.7.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package org.wso2.carbon.identity.entitlement.thrift;
import java.util.Collections;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
public class... |
class AddDefaultValueToEvents < ActiveRecord::Migration
def change
change_column :events, :tickets_quantity, :integer, :default => 0
end
end
|
<#
.DESCRIPTION
This file create a sql data warehouse and load data
.NOTES
AUTHOR: UD
LASTEDIT: Apr 30, 2016
#>
workflow CreateTable
{
<# param (
[Parameter(Mandatory=$true)]
[string]
$Tdid,
[Parameter(Mandatory=$true)]
[string]
$accountName,
[Paramete... |
package org.elasticsearch.action.admin.cluster.tasks;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.support.ActionFilters;
import org.elasticsearch.action.support.master.TransportMasterNodeReadAction;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.bl... |
var Backbone = require('backbone'),
chatMessage = require('../models/chatMessageMd');
module.exports = Backbone.Collection.extend({
model: chatMessage,
initialize: function(options) {
}
}); |
// 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.Threading.Tasks;
using Microsoft.CodeAnalysis.Test.Utilities;
using Roslyn.Test.Uti... |
const schema = require('protocol-buffers-schema')
const compile = require('./compile')
const compileToJS = require('./compile-to-js')
const flatten = function (values) {
if (!values) return null
const result = {}
Object.keys(values).forEach(function (k) {
result[k] = values[k].value
})
return result
}
f... |
require 'test_helper'
class CommentControllerTest < ActionController::TestCase
test "should get new" do
get :new
assert_response :success
end
test "should get create" do
get :create
assert_response :success
end
test "should get edit" do
get :edit
assert_response :success
end
te... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* CodeIgniter Session Database Driver
*
* @package CodeIgniter
* @subpackage Libraries
* @category Sessions
* @author Andrey Andreev
* @link http://codeigniter.com/user_guide/libraries/sessions.html
*/
class CI_Session_database_driver e... |
/*!
* Qoopido.js library v3.3.0, 2014-5-24
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/
!function(t){window.qoopido.register("polyfill/string/ucfirst",t)}(function(){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var t=this;return... |
package sample.data.redis;
import org.junit.Rule;
import org.junit.Test;
import org.springframework.boot.test.OutputCapture;
import org.springframework.data.redis.RedisConnectionFailureException;
import static org.junit.Assert.assertTrue;
/**
* Tests for {@link SampleRedisApplication}.
*
* @author Dave Syer
*/... |
namespace extensions {
ExtensionPrefsHelper::ExtensionPrefsHelper(ExtensionPrefs* prefs,
ExtensionPrefValueMap* value_map)
: prefs_(prefs), value_map_(value_map) {}
ExtensionPrefsHelper::~ExtensionPrefsHelper() = default;
void ExtensionPrefsHelper::SetExtensionControlle... |
(This feature was released in v1.1.0)
JSON Pointer is a standardized ([RFC6901]) way to select a value inside a JSON Document (DOM). This can be analogous to XPath for XML document. However, JSON Pointer is much simpler, and a single JSON Pointer only pointed to a single value.
Using RapidJSON's implementation of JSO... |
'use strict';
var createRouter = require('./createRouter');
/**
* A high-level convenience method that creates, configures, and
* runs a router in one shot. The method signature is:
*
* Router.run(routes[, location ], callback);
*
* Using `window.location.hash` to manage the URL, you could do:
*
* Router.... |
package simulation.input;
import com.team1389.hardware.inputs.software.DigitalIn;
import net.java.games.input.Component.Identifier.Key;
import net.java.games.input.Controller;
import net.java.games.input.Keyboard;
public class KeyboardHardware {
public Keyboard keyboard;
public KeyboardHardware() {
... |
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="tf-graph-minimap.html">
<!--
A module that takes a render hierarchy as input and produces an SVG DOM using
dagre and d3.
-->
<dom-module id="tf-graph-scene">
<template>
<style>
:host {
display: flex;
width: 100%;
font-size: 20px;
}
... |
<!doctype html>
<title>document.write entity</title>
<script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
<script>
var t = test(function() {
document.write("<body><span>∉abc");
assert_equals(document.body.childNodes[0].textContent, "\u2209abc");
});
</script... |
void TestSuite::TestChildren(void){
UnitTest::SetPrefix("TestChildren.cpp - Children");
#ifdef JSON_LIBRARY
#define assertChild(node, index, func, value)\
if (JSONNODE * blabla = json_at(node, index)){\
assertEquals(func(blabla), value);\
} else {\
FAIL("no child");\
}
JSONNODE * te... |
package librato
import (
"fmt"
"log"
"math"
"regexp"
"time"
"github.com/rcrowley/go-metrics"
)
// a regexp for extracting the unit from time.Duration.String
var unitRegexp = regexp.MustCompile("[^\\d]+$")
// a helper that turns a time.Duration into librato display attributes for timer metrics
func translateTi... |
requirejs.config({
paths: {
'highlight-julia': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/languages/julia.min',
'headroom': 'https://cdnjs.cloudflare.com/ajax/libs/headroom/0.10.3/headroom.min',
'jqueryui': 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min',
'kate... |
/* example plugin */
#include <plugin.h>
#include <GL/gl.h>
#include <stdio.h>
char *sp_name = "Template plugin";
char *sp_calls[] = {
"create_object", // "standard" messages don't start with an underscore
"destroy_object",
"_change_clear_color", // "custom" messages do start with an underscore
"_reset_clea... |
#ifndef MUTEX_H
#define MUTEX_H
#include <stdint.h>
#include "cmsis_os.h"
namespace rtos {
/** The Mutex class is used to synchronise the execution of threads.
This is for example used to protect access to a shared resource.
*/
class Mutex {
public:
/** Create and Initialize a Mutex object */
Mutex();
... |
// Disable warnings about XML documentation
#pragma warning disable 1591
using System;
using ptrdiff_t = System.Int32;
using lua_Integer = System.Int32;
using LUA_INTFRM_T = System.Int64;
using UNSIGNED_LUA_INTFRM_T = System.UInt64;
namespace MoonSharp.Interpreter.Interop.LuaStateInterop
{
/// <summary>
///... |
/**
* @module ol/source/Zoomify
*/
import {DEFAULT_TILE_SIZE} from '../tilegrid/common.js';
import ImageTile from '../ImageTile.js';
import TileState from '../TileState.js';
import {expandUrl, createFromTileUrlFunctions} from '../tileurlfunction.js';
import {assert} from '../asserts.js';
import {createCanvasContext2... |
<?php
$fallback = false;
$messages = array(
'HTMLPurifier' => 'HTML Purifier',
// for unit testing purposes
'LanguageFactoryTest: Pizza' => 'Pizza',
'LanguageTest: List' => '$1',
'LanguageTest: Hash' => '$1.Keys; $1.Values',
'Item separator' => ', ',
'Item separator last' => ' and ', // non-Harvard s... |
This file contains the unit tests for the physical.Data object.
Copyright (c) 2020 Thomas Jenni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation t... |
/*
* This file is generated by jOOQ.
*/
package generated.classic.reactive.guice.tables.daos;
import generated.classic.reactive.guice.tables.Somethingwithoutjson;
import generated.classic.reactive.guice.tables.records.SomethingwithoutjsonRecord;
import io.github.jklingsporn.vertx.jooq.shared.reactive.AbstractReact... |
module GoodData
module Model
class TabBuilder
def initialize(title)
@title = title
@stuff = []
end
def add_report(options = {})
@stuff << { :type => :report }.merge(options)
end
def to_hash
{
:title => @title,
:items => @stuff
... |
#include <assert.h>
#include <stdlib.h>
#include "hashtable.h"
#include "list.h"
#include "pair.h"
#ifdef HAVE_CONFIG_H
# include "STAMP_config.h"
#endif
#if defined(HASHTABLE_RESIZABLE) && (defined(HTM) || defined(STM))
# warning "hash table resizing currently disabled for TM"
#endif
/* =======================... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Slider Tooltip Extension - jQuery Mobile Demos</title>
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile-1.3.1.min.css">
<link rel="stylesheet" href="../../_assets/css/... |
namespace media {
// Basic data source that treats the URL as a file path, and uses the file
// system to read data for a media pipeline.
class MEDIA_EXPORT FileDataSource : public DataSource {
public:
FileDataSource();
explicit FileDataSource(base::File file);
~FileDataSource() override;
bool Initialize(con... |
class AutocompleteProvider;
class SuggestionAnswer;
class TemplateURL;
class TemplateURLService;
namespace base {
class Time;
} // namespace base
const char kACMatchPropertyInputText[] = "input text";
const char kACMatchPropertyContentsPrefix[] = "match contents prefix";
const char kACMatchPropertyContentsStartIndex... |
class DateValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
value = record.read_attribute_before_type_cast(attribute)
return if value.blank? || value.is_a?(Date)
default_message = "#{value} #{I18n.t('errors.messages.invalid_date')}"
unless date_valid?(value)
re... |
using xwalk::Runtime;
using xwalk::RuntimeDownloadManagerDelegate;
using content::DownloadItem;
using content::DownloadManager;
using content::DownloadManagerImpl;
using content::DownloadTestObserver;
using content::DownloadTestObserverTerminal;
using content::BrowserContext;
namespace {
static DownloadManagerImpl* D... |
package configs
type FreezerState string
const (
Undefined FreezerState = ""
Frozen FreezerState = "FROZEN"
Thawed FreezerState = "THAWED"
)
type Cgroup struct {
Name string `json:"name"`
// name of parent cgroup or slice
Parent string `json:"parent"`
// If this is true allow access to any kind of dev... |
package trafficmanager
// Copyright (c) Microsoft and contributors. 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
//... |
<resources>
<string name="app_name">Villagers Come Alive MCPE</string>
<string name="title">Villagers Come Alive</string>
<string name="appDbName">Villagers_Come_Alive</string>
<string name="appodeal_id">bb25069eb6dccd6799d3b89b463c794941553a9f5de1d4c8</string>
</resources>
|
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { URLSearchParams } from '@angular/http';
import { Title } from '@angular/platform-browser';
import { TcLanguageService } fro... |
package org.guvnor.asset.management.backend.social;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.inject.Inject;
import org.guvnor.asset.management.backend.social.i18n.Constants;
import org.guvnor.asset.management.social.AssetManagementEventTypes;
import org.guvnor.asset.man... |
<?php
namespace Doctrine\DBAL\Driver\IBMDB2;
use Doctrine\DBAL\Driver,
Doctrine\DBAL\Connection;
/**
* IBM DB2 Driver
*
* @since 2.0
* @author Benjamin Eberlei <kontakt@beberlei.de>
*/
class DB2Driver implements Driver
{
/**
* Attempts to create a connection with the database.
*
* @param... |
angular.module("EmmetBlue")
.controller('pharmacyStoreManageStoresController', function($scope, utils){
var actions = function (data, type, full, meta){
var editButtonAction = "manageStore('edit', "+data.StoreID+")";
var deleteButtonAction = "manageStore('delete', "+data.StoreID+")";
var inventoryButtonAction =... |
namespace Apache.Ignite.ExamplesDll.Messaging
{
using System;
using System.Threading;
using Apache.Ignite.Core.Messaging;
/// <summary>
/// Local message listener which signals countdown event on each received message.
/// </summary>
public class LocalListener : IMessageListener<int>
... |
package com.microsoft.azure.management.eventhubs.v2015_08_01.implementation;
import com.microsoft.azure.management.eventhubs.v2015_08_01.Operation;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.eventhubs.v2015_08_01.OperationDisplay;
class OperationImpl exten... |
<?php
/**
* CStringValidator validates that the attribute value is of certain length.
*
* Note, this validator should only be used with string-typed attributes.
*
* In addition to the {@link message} property for setting a custom error message,
* CStringValidator has a couple custom error messages you can set t... |
<?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"
android:orientation="vertical" >
<ListView
android:id="@+id/lst_notes"
android:layout_width="match_par... |
package com.twitter.sbt
import sbt._
import Keys._
import java.io.{File, FileWriter}
import java.text.SimpleDateFormat
import java.util.{Date, Properties}
/**
* Add various build-environment properties to a build.properties file in the built jar.
*/
object BuildProperties extends Plugin {
// most of this stuff is... |
package http
import (
"fmt"
"net/http"
"os"
)
type DeleteIndexHandler struct {
basePath string
IndexNameLookup varLookupFunc
}
func NewDeleteIndexHandler(basePath string) *DeleteIndexHandler {
return &DeleteIndexHandler{
basePath: basePath,
}
}
func (h *DeleteIndexHandler) ServeHTTP(w http.ResponseW... |
#ifndef QTEST_WIDGETS_H
#define QTEST_WIDGETS_H
// enable WIDGETS features
#ifndef QT_WIDGETS_LIB
#define QT_WIDGETS_LIB
#endif
#if 0
#pragma qt_class(QtTestWidgets)
#endif
#include <QtTest/qtest_gui.h>
#if 0
// inform syncqt
#pragma qt_no_master_include
#endif
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
#endif
|
var getQuery = require('./getQuery');
/**
* Checks if query string contains parameter.
*/
function contains(url, paramName) {
var regex = new RegExp('(\\?|&)'+ paramName +'=', 'g'); //matches `?param=` or `¶m=`
return regex.test(getQuery(url));
}
module.exports = contains... |
using content::BrowserThread;
#if defined(OS_CHROMEOS)
// TODO(rkc): Remove all the code that gather sync data and move it to a
// log data source once crbug.com/138582 is fixed.
namespace {
void AddSyncLogs(chromeos::system::LogDictionaryType* logs) {
Profile* profile = ProfileManager::GetDefaultProfile();
if (!... |
import numpy as np
import PIL.Image as Image
from dataset.reader import normalize as norm
def saveNormalizedImage(image, path) :
'''Save the image to a file. This performs a naive normalization of the
array and outputs a grey scale image. The input is assumed to be float
data.
image: 2D tens... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2010 Vincent Lejeune
//
// This Source Code Form is subject to the terms of the... |
package com.google.inject.internal.util;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.base.Preconditions;
import com.google.common.collect.Maps;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassVisitor;
impo... |
require 'sinatra'
require 'json'
require 'sinatra/json'
require 'sinatra/reloader' if development?
require 'rest-client'
require_relative 'env.rb'
set :server, "thin"
set :robot, Config::ROBOT
class Message
attr_reader :content, :type
PARSED_CONTENT = 1
def initialize(message)
@content = JSON.parse(message... |
package com.jetbrains.commandInterface.commandLine.psi;
import com.intellij.extapi.psi.PsiFileBase;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.util.Key;
import com.intellij.psi.FileViewProvider;
import com.intellij.psi.util.PsiTreeUtil;
import com.jetbrains.commandInterface.command.Co... |
<TS language="uk" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Клікніть правою кнопкою для редагування адреси або мітки</translation>
</message>
<message>
<source>Create a new address</source>
... |
import java.util.Arrays;
class Test {
String[] arr;
Object[] get(int newLength) {
return Arrays.asList(arr).subList(0, newLength).toAr<caret>ray();
}
} |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*****************************************************************************/
#ifndef _TARGET_H_
#define _TARGET_H_
// Inform includers that we're in a context... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<Button android:id="@+id/pick"
android:layout_width="match_parent"
android:layout... |
package com.github.invictum.utils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.comparator.LastModifiedFileComparator;
import org.apache.commons.io.filefilter.FileFilterUtils;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
import java.util.Collections;
public cl... |
<!DOCTYPE html>
<script>
onload = function() {
var elm = document.getElementById('elm');
document.body.offsetTop; // trigger layout
elm.style.display = 'block';
}
</script>
<p>Test insertion of a float as the first child of a spanner.</p>
<p>You should see the word "PASS" below.</p>
<div... |
<?php
namespace Composer\Test\Package;
use Composer\Package\BasePackage;
use PHPUnit\Framework\TestCase;
class BasePackageTest extends TestCase
{
public function testSetSameRepository()
{
$package = $this->getMockForAbstractClass('Composer\Package\BasePackage', array('foo'));
$repository = ... |
var path = require('path');
var findIndex = require('lodash.findindex');
var flattenGlob = function(arr){
var out = [];
var flat = true;
for(var i = 0; i < arr.length; i++) {
if (typeof arr[i] !== 'string') {
flat = false;
break;
}
out.push(arr[i]);
}
if (flat) out.pop(); // last one ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"
#... |
// Code generated by lister-gen. DO NOT EDIT.
package v1beta1
import (
v1beta1 "k8s.io/api/batch/v1beta1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
)
// CronJobLister helps list CronJobs.
type CronJobLister interface {
// List lists all CronJobs in th... |
package resa.evaluation.topology.tomVLD;
import backtype.storm.Config;
import backtype.storm.StormSubmitter;
import backtype.storm.generated.AlreadyAliveException;
import backtype.storm.generated.InvalidTopologyException;
import backtype.storm.generated.StormTopology;
import backtype.storm.topology.TopologyBuilder;
im... |
package com.hellokoding.springboot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
@SpringBootApplication... |
package framework
import (
v1 "k8s.io/api/core/v1"
storagev1 "k8s.io/api/storage/v1"
e2evolume "k8s.io/kubernetes/test/e2e/framework/volume"
)
const (
// MinFileSize represents minimum file size (1 MiB) for testing
MinFileSize = 1 * e2evolume.MiB
// FileSizeSmall represents small file size (1 MiB) for testin... |
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="robot" content="index,follow">
<title>Module fsm - Finite State Machine - Forth Foundation Library</title>
</head>
<body>
<h2>fsm - Finite State Machine</h2>
<h3>Module Description</h3>
<p>The fsm module implements a Finite State ... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
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... |
namespace Google.Cloud.ServiceDirectory.V1.Snippets
{
// [START servicedirectory_v1_generated_RegistrationService_CreateEndpoint_sync_flattened]
using Google.Cloud.ServiceDirectory.V1;
public sealed partial class GeneratedRegistrationServiceClientSnippets
{
/// <summary>Snippet for CreateEndpoi... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$lang['db_invalid_connection_str'] = 'Unable to determine the database settings based on the connection string you submitted.';
$lang['db_unable_to_connect'] = 'Unable to connect to your database server using the provided settings.';
$lang['db_unab... |
package etcd
import (
"k8s.io/apimachinery/pkg/runtime"
genericapirequest "k8s.io/apiserver/pkg/endpoints/request"
"k8s.io/apiserver/pkg/registry/generic"
genericregistry "k8s.io/apiserver/pkg/registry/generic/registry"
"k8s.io/apiserver/pkg/registry/rest"
"k8s.io/kube-aggregator/pkg/apis/apiregistration"
"k8... |
# -*- coding: utf-8 -*-
"""
werkzeug.utils
~~~~~~~~~~~~~~
This module implements various utilities for WSGI applications. Most of
them are used by the request and response wrappers but especially for
middleware development it makes sense to use them without the wrappers.
:copyright: (c) 2014 ... |
package main
import (
"fmt"
"net"
"regexp"
"sort"
"strings"
"github.com/docker/docker/pkg/integration/checker"
"github.com/go-check/check"
)
func (s *DockerSuite) TestPortList(c *check.C) {
testRequires(c, DaemonIsLinux)
// one port
out, _ := dockerCmd(c, "run", "-d", "-p", "9876:80", "busybox", "top")
fi... |
/*
* HCS API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: 2.1
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package hcsschema
// Silo job information
type SiloProperties struct {
Enabled b... |
<?php
class ModelJournal2Module extends Model {
public function getModule($module_id) {
$query = $this->db->query('SELECT * FROM ' . DB_PREFIX . 'journal2_modules WHERE module_id = ' . (int)$module_id);
if (isset($query->row['module_data'])) {
$query->row['module_data'] = json_decode($q... |
order: 6
title:
zh-CN: 自定义样式
en-US: Customized style
---
## zh-CN
使用 style 和 className 来定义样式。
## en-US
The style and className are available to customize Notification.
```tsx
import { Button, notification } from 'antd';
import React from 'react';
const openNotification = () => {
notification.open({
mess... |
<?php
/**
* Deprecated pluggable functions from past WordPress versions. You shouldn't use these
* functions and look for the alternatives instead. The functions will be removed in a
* later version.
*
* Deprecated warnings are also thrown if one of these functions is being defined by a plugin.
*
* @package Word... |
Ti=Waiver
sec=Any provision of {this_instrument} may be amended, waived or modified only upon the written consent of {the_Company} and {the_Investor}.
=[Z/ol/0]
|
public class Foo {
void m(Object o) {
boolean foo = o instanceof String;<caret>
}
} |
function unexpectedErrorCallback(e) {
self.postMessage({type: 'ERROR', error: {
name: e.target.error.name,
message: e.target.error.message
}});
}
function unexpectedAbortCallback(e) {
self.postMessage({type: 'ABORT', error: {
name: e.target.error.name,
message: e.target.error.message
}});
}
fu... |
#import <Foundation/Foundation.h>
#import "PFEncoder.h"
@class PFDecoder;
@class PFObject;
///--------------------------------------
#pragma mark - PFFieldOperation
///--------------------------------------
/**
A PFFieldOperation represents a modification to a value in a PFObject.
For example, setting, deleting... |
package org.wso2.carbon.identity.scim.provider.resources;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.identity.jaxrs.designator.PATCH;
import org.wso2.carbon.identity.scim.provider.impl.IdentitySCIMManager;
import org.wso2.carbon.identity.scim.provider.... |
using MathNet.Numerics.LinearAlgebra;
using MathNet.Numerics.LinearAlgebra.Single;
using NUnit.Framework;
namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
{
[TestFixture, Category("LA")]
public class ReturnTypeTests
{
readonly Vector<float> _vectorDense = Vector<float>.Build.Dense(3)... |
package org.simmetrics.simplifiers;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Encodes a string into a NYSIIS value. NYSIIS is an encoding used to relate
* similar names, but can also be used as a general purpose scheme to find word
* with similar phonemes.
* <p>
* This class is thre... |
require 'openssl'
require_relative 'helpers_functions'
class Otp
class << self
# OTP functions
def hotp(key, counter, digits, digester='sha1')
digester = OpenSSL::Digest.new(digester)
hmac = OpenSSL::HMAC.digest(digester, to_binary(key), to_binary(counter, 8))
code = dynamic_trunc(hmac) % ... |
"use strict";
module.exports = function (Promise, apiRejection, tryConvertToPromise,
createContext, INTERNAL, debug) {
var util = require("./util");
var TypeError = require("./errors").TypeError;
var inherits = require("./util").inherits;
var errorObj = util.errorObj;
var tryCatch = util.tryCatc... |
package org.elasticsearch.xpack.core.common.time;
import org.elasticsearch.ElasticsearchParseException;
import org.elasticsearch.common.ParseField;
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.index.mapper.DateFieldMapper;
import ja... |
layout: default
---
{% assign minutes = content | number_of_words | divided_by: 180 %}
{% if minutes == 0 %}
{% assign minutes = 1 %}
{% endif %}
<div class="post-header mb2">
<h1>{{ page.title }}</h1>
<span class="post-meta">{{ page.date | date: "%b %-d, %Y" }}</span><br>
{% if page.update_date %}
<span cl... |
.. Distributed under 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)
+++++++++++++++++
Iterator Traits
+++++++++++++++++
:Author: David Abrahams
:Contact: dave@boost-consulting.com
:organization: `Boost Consulting`_
:date: $Date: ... |
<?php
function mfh_listAttachments($attachments = '', $reply = 0, $is_staff)
{
global $hesk_settings, $hesklang, $trackingID, $can_edit, $can_delete;
$email = '';
if (!$is_staff) {
$email = $hesk_settings['e_query'];
}
/* Attachments disabled or not available */
if (!$hesk_settings['at... |
package org.jenkinsci.remoting.engine;
import java.io.IOException;
import java.net.Socket;
import java.util.List;
import javax.annotation.Nonnull;
/**
* Represents the connection state of a {@link JnlpProtocol3Handler} connection.
*
* @since FIXME
*/
@Deprecated
public class Jnlp3ConnectionState extends LegacyJn... |
namespace sync_file_system {
namespace drive_backend {
UninstallAppTask::UninstallAppTask(SyncEngineContext* sync_context,
const std::string& app_id,
UninstallFlag uninstall_flag)
: sync_context_(sync_context),
app_id_(app_id),
unins... |