text stringlengths 3 1.05M |
|---|
package org.apache.jmeter.protocol.http.util;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLDecoder;
import java.nio.charset.Charset;
import java.nio.charset.IllegalCharsetNameException;
import java.nio.charset.StandardCharsets... |
package com.gdn.x.beirut.solr.services;
import static org.mockito.MockitoAnnotations.initMocks;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
<form [formGroup]="projectForm" (ngSubmit)="onSubmit()" class="ui-g">
<p-panel header="Add Project" class="ui-g-12">
<div class="ui-g">
<label for="projectId" class="ui-g-12 ui-md-2">Project Id*</label>
<p-inputMask mask="aaa-999" id="projectId" formControlName="projectId" placeho... |
import pdb
import csv
import os
import re
import argparse
def main():
args = parseArguments()
for path in args.paths:
filler = Filler(path)
if "matrix" not in filler.filename():
if "primary" not in filler.filename():
print("This script is only necessary on primary elections")
else:
filler.fill()
... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*=====================================================================
**
** Source: test3.c
**
** Purpose: Create environment variables that differ only in Ca... |
package gr.gsis.rgwspublic.rgwspublic;
import java.math.BigDecimal;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.Holder;
/**
* This class was genera... |
---
layout: default
comments: true
---
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
<p class="post-meta">
<time datetime="{{ page.date | date_to_xmlschema }}" ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paramcoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... |
package main
import (
"testing"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/internal/testutil"
"github.com/gotestyourself/gotestyourself/fs"
"github.com/sirupsen/logrus"
"github.com/spf13/pflag"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func defaultOp... |
require 'chef/encrypted_data_bag_item/encryptor'
class Chef::EncryptedDataBagItem
# Common code for checking if a data bag appears encrypted
module CheckEncrypted
# Tries to autodetect if the item's raw hash appears to be encrypted.
def encrypted?(raw_data)
data = raw_data.reject { |k, _| k == "id" ... |
ActiveRecord::Base.class_eval do
def self.type_of name
name = name.to_sym
associations = self.reflect_on_all_associations.map(&:name)
if name.match(/(.*)_id(s)?$/) and associations.include? "#{$1}#{$2}"
:association
elsif associations.include? name
:association
elsif self.attribute_nam... |
.jssocials-share-twitter .jssocials-share-link {
background: #00aced; }
.jssocials-share-twitter .jssocials-share-link:hover {
background: #0087ba; }
.jssocials-share-facebook .jssocials-share-link {
background: #3b5998; }
.jssocials-share-facebook .jssocials-share-link:hover {
background: #2d4373; }
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2002-2018 the original author or authors.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ https://www.apache.or... |
/**
* This class handles table cell selection by faking it using a css class that gets applied
* to cells when dragging the mouse from one cell to another.
*
* @class tinymce.tableplugin.CellSelection
* @private
*/
define("tinymce/tableplugin/CellSelection", [
"tinymce/tableplugin/TableGrid",
"tinymce/dom/Tre... |
<resources>
<string name="app_name">图形解锁</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">设置</string>
</resources>
|
class Node {
public:
int nid; // node number (0 = depot
double x; // x location
double y; // y location
int demand; // capacity demand
int tw_open; // earliest window time
int tw_close; // latest window time
int service; // service time
int pid; //... |
define([
'Core/RuntimeError'
], function(
RuntimeError) {
'use strict';
return function() {
throw new RuntimeError('BadGeometry.createGeometry');
};
});
|
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/preview_roo... |
"""
dbseeder
----------------------------------
The main entry point for the package. Handles command line
operations for seeding/updating packages.
"""
import arcpy
import argparse
import os
from models import Field, Schema, TableInfo
from programs import Sdwis, Wqp, Dogm, Udwr, Ugs
from services import ConsolePrompt... |
package com.badlogic.gdx.graphics.glutils;
import java.nio.ByteBuffer;
import java.nio.ShortBuffer;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.utils.BufferUtils;
import com.badlogic.gdx.utils.GdxRuntimeException;
/** <p>
* In IndexBufferObject wraps Op... |
class Opendata::Harvest::Exporter
include SS::Document
include SS::Reference::User
include SS::Reference::Site
include Cms::Reference::Node
include Cms::Addon::GroupPermission
include Opendata::Harvest::CkanApiExporter
include ActiveSupport::NumberHelper
set_permission_name "opendata_harvests", :edit
... |
package dockershim
import (
"testing"
"github.com/stretchr/testify/assert"
runtimeapi "k8s.io/kubernetes/pkg/kubelet/api/v1alpha1/runtime"
)
func TestSandboxNameRoundTrip(t *testing.T) {
config := makeSandboxConfig("foo", "bar", "iamuid", 3)
actualName := makeSandboxName(config)
assert.Equal(t, "k8s_POD_foo... |
' 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.Threading
Imports Microsoft.CodeAnalysis.Options
Imports Microsoft.CodeAnalysis.PooledObjects
Imports Microsoft.CodeAnalysis.Structure
Imports ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The String.prototype.concat.length property has the attribute ReadOnly
es5id: 15.5.4.6_A10
description: >
Checking if varying the String.prototype.concat.length property
... |
<!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_232) on Tue Sep 15 08:52:35 UTC 2020 -->
<title>RequestPostProcessor (Spring Framework 5.1.18.RELEASE API)</title>
<meta name="date" content="2... |
namespace Microsoft.Azure.Management.Security.Models
{
/// <summary>
/// Defines values for UserImpact.
/// </summary>
public static class UserImpact
{
public const string Low = "Low";
public const string Moderate = "Moderate";
public const string High = "High";
}
}
|
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="http_client" class="Sy... |
describe('setting load', function() {
describe('to current', function() {
var spy;
beforeEach(function(done) {
spy = sinon.spy(i18n.sync, '_fetchOne');
i18n.init(i18n.functions.extend(opts, {
load: 'current' }),
function(t) { done(); });
});
afterEach(function() {
... |
module.exports = Referral = require('typedef')
// THIS CODE WAS GENERATED BY AN AUTOMATED TOOL. Editing it is not recommended.
// For more information, see http://github.com/bvalosek/grunt-infusionsoft
// Generated on Wed Jan 08 2014 12:43:55 GMT-0600 (CST)
// This table holds affiliate referrals.
.class('Referral') ... |
package org.projectfloodlight.openflow.protocol.ver13;
import org.projectfloodlight.openflow.protocol.*;
import org.projectfloodlight.openflow.protocol.action.*;
import org.projectfloodlight.openflow.protocol.actionid.*;
import org.projectfloodlight.openflow.protocol.bsntlv.*;
import org.projectfloodlight.openflow.pro... |
package org.elasticsearch.index.query;
import org.apache.lucene.search.Query;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.lucene.search.Queries;
import org.elasticsearch.common.xcontent.XContentBuilder;
import java.io... |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Functions for displaying user preferences pages
*
* @package PhpMyAdmin
*/
/**
* Common initialization for user preferences modification pages
*
*/
function PMA_userprefs_pageinit()
{
$forms_all_keys = PMA_read_userprefs_fieldnames($GLOBALS['forms']);
... |
function registerPushwooshAndroid() {
var pushNotification = cordova.require("com.pushwoosh.plugins.pushwoosh.PushNotification");
//set push notifications handler
document.addEventListener('push-notification',
function(event)
{
var title = event.notification.title;
var userData = eve... |
package v1beta1
import (
serializer "k8s.io/apimachinery/pkg/runtime/serializer"
rest "k8s.io/client-go/rest"
v1beta1 "k8s.io/kubernetes/pkg/apis/storage/v1beta1"
"k8s.io/kubernetes/pkg/client/clientset_generated/clientset/scheme"
)
type StorageV1beta1Interface interface {
RESTClient() rest.Interface
StorageC... |
cask 'flymaster-designer' do
version :latest
sha256 :no_check
url 'http://downloads.flymaster.net/FmDesigner.dmg'
name 'Flymaster Designer'
name 'B2designer'
homepage 'http://www.flymaster-avionics.com'
license :gratis
# Renamed for clarity: app name is inconsistent with its branding.
# Original dis... |
#include "3d/CCMesh.h"
#include "3d/CCMeshSkin.h"
#include "3d/CCSkeleton3D.h"
#include "3d/CCMeshVertexIndexData.h"
#include "2d/CCLight.h"
#include "2d/CCScene.h"
#include "base/CCEventDispatcher.h"
#include "base/CCDirector.h"
#include "base/CCConfiguration.h"
#include "renderer/CCTextureCache.h"
#include "rendere... |
<!-- begin header.html -->
<!--
The OpenGL Extension Wrangler Library
Copyright (C) 2008-2015, Nigel Stewart <nigels[]users sourceforge net>
Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
Copyright (C) 2002, Lev Povalahev
All right... |
namespace nacl_io {
namespace {
struct FillDirInfo {
FillDirInfo(GetDentsHelper* getdents, size_t num_bytes)
: getdents(getdents), num_bytes(num_bytes), wrote_offset(false) {}
GetDentsHelper* getdents;
size_t num_bytes;
bool wrote_offset;
};
} // namespace
MountFuse::MountFuse() : fuse_ops_(NULL), f... |
require_relative '../../puppet_x/puppetlabs/property/region.rb'
require_relative '../../puppet_x/puppetlabs/property/tag.rb'
Puppet::Type.newtype(:rds_instance) do
@doc = 'Type representing an RDS instance.'
ensurable
newparam(:name, namevar: true) do
desc 'The name of the db instance (also known as the db... |
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.or... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Chapter 5. Statistical Distributions and Functions</title>
<link rel="stylesheet" href="math.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
<link rel="home" href="index.ht... |
package io.netty.handler.codec.http.multipart;
import io.netty.buffer.ByteBuf;
import io.netty.handler.codec.http.HttpConstants;
import io.netty.handler.codec.http.HttpContent;
import io.netty.handler.codec.http.HttpHeaders;
import io.netty.handler.codec.http.HttpRequest;
import io.netty.handler.codec.http.LastHttpCo... |
package volume
import (
"bytes"
"errors"
"fmt"
"io"
"io/ioutil"
"strconv"
"github.com/libopenstorage/openstorage/api"
"github.com/libopenstorage/openstorage/api/client"
"github.com/libopenstorage/openstorage/volume"
)
const (
graphPath = "/graph"
volumePath = "/osd-volumes"
snapPath = "/osd-snapshot"
... |
{% extends "site_base.html" %}
{% load i18n %}
{% load generic_flatblocks %}
{% load attachments_tags %}
{% block head_title %}{% trans "Prices" %}{% endblock %}
{% block tab_id %}id="prices_tab"{% endblock %}
{% block body %}
{% gblock "prices_content" for "gblocks.TitleAndText" %}
<h2>You can downloa... |
package org.hyperledger.block;
import org.hyperledger.common.*;
import org.hyperledger.merkletree.MerkleRoot;
import org.hyperledger.merkletree.MerkleTree;
import org.hyperledger.merkletree.MerkleTreeNode;
import org.hyperledger.transaction.Transaction;
import java.time.LocalTime;
import java.util.ArrayList;
import ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
namespace ESRI.ArcLogistics.App.Converters
{
/// <summary>
/// Class removes redundant nulls from input string
/// </summary>
class ZeroNumbersCleaner
{
/// <summary>
... |
using Microsoft.SharePoint.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Branding.AlternateCSSAndSiteLogoWeb
{
public partial class Default : System.Web.UI.Page
{
protected void Page_PreInit(... |
(function(angular) {
'use strict';
angular.module('ngViewExample', ['ngRoute', 'ngAnimate'])
.config(['$routeProvider', '$locationProvider',
function($routeProvider, $locationProvider) {
$routeProvider
.when('/Book/:bookId', {
templateUrl: 'book.html',
controller: 'BookCtrl',
... |
var selected_node = null;
function getSlideShow() {
var node, $node, selected_images = '', width, style, align, border_color, bg_color, thickness;
// 부모창이 있는지 체크
if(typeof(opener)=="undefined") return;
// 부모 위지윅 에디터에서 선택된 영역이 있으면 처리
node = opener.editorPrevNode;
$node = jQuery(node);
if($node.... |
package com.db4o.internal.query.processor;
import com.db4o.foundation.*;
import com.db4o.internal.*;
/**
* @exclude
*/
public class QEGreater extends QEAbstract {
boolean evaluate(QConObject constraint, QCandidate candidate, Object obj) {
if (obj == null) {
return false;
}
... |
package client;
import java.net.*;
import java.awt.event.*;
import java.io.*;
public class ClientConnect implements ActionListener, Runnable, MouseListener, WindowFocusListener {
private ClientGui gui;
private Socket socket;
private BufferedWriter writer;
private BufferedReader reader;
private int p... |
'use strict';
var isPlainObject = require('./is-plain-object')
, value = require('./valid-value')
, forEach = Array.prototype.forEach, slice = Array.prototype.slice
, keys = Object.keys
, extend;
extend = function (src) {
keys(Object(src)).forEach(function (key) {
if (isPlainObject(this[key]) && ... |
package com.google.javascript.jscomp.deps;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.CharMatcher;
import com.google.javascript.jscomp.ErrorManager;
import java.io.Reader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.... |
// Copyright (c) 2011 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.
#include "chrome/utility/importer/nss_decryptor_system_nss.h"
#include <pk11pub.h>
#include <pk11sdr.h>
#include "base/basictypes.h"
#include "base/... |
CKEDITOR.plugins.setLang( 'contextmenu', 'cs', {
options: 'Nastavení kontextové nabídky'
});
|
AliAnalysisTaskMuonAODCreation *AddTaskMuonAODCreation()
{
// Creates a filter task to copy muon tracks from the Standard AOD to the Muon AOD
// R. Arnaldi - 6/10/09
// Get the pointer to the existing analysis manager via the static access method.
//===============================================================... |
/**
* Author: Normen Hansen
*/
#include "com_jme3_bullet_collision_shapes_HeightfieldCollisionShape.h"
#include "jmeBulletUtil.h"
#include "BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_HeightfieldColli... |
package g
import (
"encoding/json"
"os"
"path/filepath"
"sync"
"github.com/Cepave/open-falcon-backend/modules/query/logger"
log "github.com/sirupsen/logrus"
"github.com/toolkits/file"
)
type HttpConfig struct {
Enabled bool `json:"enabled"`
Listen string `json:"listen"`
}
type ContactsConfig struct {
E... |
(function() {
window.S3Upload = (function() {
S3Upload.prototype.s3_object_name = 'default_name';
S3Upload.prototype.s3_sign_put_url = '/signS3put';
S3Upload.prototype.file_dom_selector = 'file_upload';
S3Upload.prototype.onFinishS3Put = function(public_url) {
return console.log('base.onFin... |
<?php
namespace ZendTest\Mail\Storage;
use Zend\Mime;
use Zend\Mime\Exception as MimeException;
use Zend\Mail\Exception as MailException;
use Zend\Mail\Storage;
use Zend\Mail\Storage\Exception;
use Zend\Mail\Storage\Message;
/**
* @group Zend_Mail
*/
class MessageTest extends \PHPUnit_Framework_TestCase
{
... |
// TODO:
// - make volume be event driven, remember setting (cookie, startup)
(function ($) {
var v = document.createElement('video');
var ua = navigator.userAgent;
// native fullscreen (Safari only, Chrome fails)
var hasNativeFullScreen = (typeof v.webkitEnterFullScreen !== 'undefined');
if (ua.match('Chro... |
<?php
trait hasBudgetType {
protected $budgetType; //class BudgetType
public function getBudgetType() {
return $this->budgetType;
}
protected function getBudgetTypeCode() { //for DB purposes
if ($this->budgetType != NULL) {
return $this->budgetType->getCode();
}
return NULL;
}
public function ... |
package org.apache.ignite.internal.processors.security;
import java.util.Collection;
import java.util.UUID;
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.cluster.ClusterNode;
import org.apache.ignite.internal.processors.GridProcessor;
import org.apache.ignite.plugin.security.Authenticatio... |
regenerate:
cp header.proto theproto3.proto
cat maps.proto >> theproto3.proto
cat footer.proto >> theproto3.proto
go install github.com/gogo/protobuf/protoc-gen-combo
protoc-gen-combo --version="3.0.0" --proto_path=../../../../../:../../protobuf/:. theproto3.proto
find combos -type d -not -name combos -exec cp pr... |
<?php
/** Bulgarian localization file for KCFinder
* author: Pavel Tzonkov <sunhater@sunhater.com>
*/
$lang = array(
'_lang' => "Bulgarian",
'_native' => "Български",
'_locale' => "bg_BG.UTF-8", // UNIX localization code
'_charset' => "utf-8", // Browser charset
// Date time formats. ... |
package com.google.common.collect.testing;
import com.google.common.collect.testing.features.CollectionSize;
import com.google.common.collect.testing.features.Feature;
import com.google.common.collect.testing.features.FeatureUtil;
import junit.framework.TestSuite;
import java.lang.reflect.Method;
import java.util.... |
package v1
import (
"fmt"
apps "k8s.io/api/apps/v1"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
)
// StatefulSetListerExpansion allows custom methods to be added to
// StatefulSetLister.
type StatefulSetListerExpansion interface {
GetPodStatefulSets(pod... |
package com.intellij.openapi.vcs.impl;
/**
* @author Konstantin Bulenkov
*/
public class VcsGlobalMessage {
public String message;
public String author;
public long when;
}
|
using System;
using System.Collections.Generic;
using Xunit;
namespace System.Linq.Tests
{
public class AppendPrependTests : EnumerableTests
{
[Fact]
public void SameResultsRepeatCallsIntQueryAppend()
{
var q1 = from x1 in new int?[] { 2, 3, null, 2, null, 4, 5 }
... |
<?php
namespace Illuminate\View;
use Exception;
use Throwable;
use ArrayAccess;
use BadMethodCallException;
use Illuminate\Support\Str;
use Illuminate\Support\MessageBag;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\View\Engines\EngineInterface;
use Illuminat... |
package mil.nga.geopackage.features.user;
import android.content.ContentValues;
import java.io.IOException;
import mil.nga.geopackage.GeoPackageException;
import mil.nga.geopackage.geom.GeoPackageGeometryData;
import mil.nga.geopackage.user.UserRow;
/**
* Feature Row containing the values from a single cursor row
... |
<?php
namespace Microd\Entity\Mdc;
use Doctrine\ORM\Mapping as ORM;
/**
* Tblsubtenantsalesrepleads
*
* @ORM\Table(name="tblSubTenantSalesRepLeads", indexes={@ORM\Index(name="SalesRepID", columns={"SalesRepID"})})
* @ORM\Entity
*/
class Tblsubtenantsalesrepleads
{
/**
* @var integer
*
* @ORM\... |
.PHONY: pred run
all: clean run pred
pred: pred/status.csv
run: save/root.ini
pred/status.csv: save/root.ini
rm -rf pred
mkdir -p pred
smurff --save-freq -1 --save-prefix pred --root save/root.ini --row-features feat_0_0.mtx --save-extension .csv
save/root.ini:
rm -rf save
mkdir -p save
smurff --ini macau.ini
... |
CKEDITOR.plugins.setLang("save","de-ch",{toolbar:"Speichern"}); |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/abc_search_url_text_pressed" android:state_pressed="true" />
<item android:color="@color/abc_search_url_text_selected" android:state_selected="true" />
<item android:color... |
require 'cgi'
##
# Outputs RDoc markup as HTML.
class RDoc::Markup::ToHtml < RDoc::Markup::Formatter
include RDoc::Text
# :section: Utilities
##
# Maps RDoc::Markup::Parser::LIST_TOKENS types to HTML tags
LIST_TYPE_TO_HTML = {
:BULLET => ['<ul>', '</ul>'],
:L... |
package com.google.inject.multibindings;
import static com.google.common.base.Predicates.equalTo;
import static com.google.common.primitives.Ints.MAX_POWER_OF_TWO;
import static com.google.common.collect.Iterables.filter;
import static com.google.common.collect.Iterables.getOnlyElement;
import static com.google.inje... |
class TextCache;
class Font;
// Used to display/edit a value between some min and max values.
class SliderComponent : public GuiComponent
{
public:
//Minimum value (far left of the slider), maximum value (far right of the slider), increment size (how much just pressing L/R moves by), unit to display (optional).
Slid... |
import { test } from 'qunit';
import config from '../../config/environment';
test('the correct config is used', function(assert) {
assert.equal(config.fileUsed, 'config/something-else.js');
});
|
<div id="directory" class="section">
<h1>How to get started with RequireJS</h1>
<ul class="index mono">
<li class="hbox">
<a href="#get">Get RequireJS</a><span class="spacer boxFlex"></span><span class="sect">§ 1</span>
</li>
<li class="hbox">
<a href="#add"... |
goog.provide('ol.events');
goog.provide('ol.events.EventType');
goog.provide('ol.events.KeyCode');
goog.require('ol.object');
/**
* @enum {string}
* @const
*/
ol.events.EventType = {
/**
* Generic change event.
* @event ol.events.Event#change
* @api
*/
CHANGE: 'change',
CLICK: 'click',
DBLCLI... |
#import <Foundation/Foundation.h>
#import "EC2IamInstanceProfileSpecification.h"
#import "EC2ResponseUnmarshaller.h"
#import "../AmazonValueUnmarshaller.h"
#import "../AmazonBoolValueUnmarshaller.h"
/**
* Iam Instance Profile Specification Unmarshaller
*/
@interface EC2IamInstanceProfileSpecificationUnmarshaller:... |
package org.apache.spark.sql.hive.client
import java.lang.{Boolean => JBoolean, Integer => JInteger, Long => JLong}
import java.lang.reflect.{InvocationTargetException, Method, Modifier}
import java.net.URI
import java.util.{ArrayList => JArrayList, List => JList, Locale, Map => JMap, Set => JSet}
import java.util.c... |
import chalk from 'chalk'
export default function formatWarn (message: string) {
// The \u2009 is the "thin space" unicode character
// It is used instead of ' ' because chalk (as of version 2.1.0)
// trims whitespace at the beginning
return `${chalk.bgYellow.black('\u2009WARN\u2009')} ${message}`
}
|
layout: default
title: "Journal"
teaser: "Check out all posts in journal. Click on a headline to read the teaser."
breadcrumb: true
header:
image_fullwidth: header_unsplash_8.jpg
permalink: "journal/"
---
<div id="blog-index" class="row">
<div class="small-12 columns t30">
<h1>{{ page.title }}</h1>
{% if page.t... |
&& !defined(__CYGWIN__) \
&& !defined(BOOST_ASIO_WINDOWS_RUNTIME)
#include <cstring>
#include <boost/asio/detail/noncopyable.hpp>
#include <boost/asio/detail/reactor_op_queue.hpp>
#include <boost/asio/detail/socket_types.hpp>
#include <boost/asio/detail/push_options.hpp>
namespace boost {
namespace asio {
namesp... |
[HTML5 Boilerplate homepage](http://html5boilerplate.com) | [Documentation
table of contents](TOC.md)
# The HTML
## The `no-js` class
Allows you to more easily explicitly add custom styles when JavaScript is
disabled (`no-js`) or enabled (`js`). More here: [Avoiding the
FOUC](http://paulirish.com/2009/avoiding-the-f... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.javascript;
/**
* A <code>java.lang.SecurityManager</code> subclass that provides access to
... |
<?php
namespace Symfony\Bridge\Doctrine\Tests\DataFixtures;
use Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader;
use Symfony\Bridge\Doctrine\Tests\Fixtures\ContainerAwareFixture;
class ContainerAwareLoaderTest extends \PHPUnit_Framework_TestCase
{
public function testShouldSetContainerOnContainerAwar... |
package kubernetes
import (
"context"
"encoding/json"
"fmt"
"reflect"
"time"
"github.com/sirupsen/logrus"
extsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
extsclientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apim... |
[GitLab Enterprise Edition](https://about.gitlab.com/) is an application to code, test, and deploy code together. It provides Git repository management with fine grained access controls, code reviews, issue tracking, activity feeds, wikis, and continuous integration.
## Introduction
This chart stands up a GitLab Ent... |
from deep_architect.contrib.misc.datasets.loaders import load_mnist
from deep_architect.contrib.misc.evaluators.tensorflow.classification import SimpleClassifierEvaluator
from deep_architect.contrib.misc.datasets.dataset import InMemoryDataset
import deep_architect.search_logging as sl
import deep_architect.visualizati... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
Source code for "Learning Web Development with Bootstrap 4 and Angular 2, Second Edition", Packt Publishing
====================================================
## Overview
This repository contains source code referenced in [Learning Web Development with Bootstrap 4 and Angular 2, Second Edition] (https://www.packtp... |
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace System.IO.Compression.Tests
{
public class ZLibDeflateStreamTests : DeflateStreamTests, IDisposable
{
public ZLibDeflateStreamTests() { Common.SetDeflaterMode("zlib"); }
... |
"use strict";
var eq = require("./eq")
, some = require("./some");
module.exports = function (obj, searchValue) {
var result;
return some(obj, function (value, name) {
if (eq(value, searchValue)) {
result = name;
return true;
}
return false;
})
? result
: null;
};
|
namespace MindPuzzle
{
partial class ViborTime
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <par... |
import lombok.*;
import lombok.experimental.*;
@Value
@Builder
class Test {
@NonFinal
@Builder.Default
int field = 123;
@NonFinal
int field2 = <warning descr="Variable 'field2' initializer '456' is redundant">456</warning>;
}
|
package queue
// Decide whether a pre-existing deadline for an item in a delay-queue should be
// updated if an attempt is made to offer/add a new deadline for said item. Whether
// the deadline changes or not has zero impact on the data blob associated with the
// entry in the queue.
type DeadlinePolicy int
const ... |