text
stringlengths
3
1.05M
using System.Collections.ObjectModel; using System.Linq; namespace Weather { public static class ISO3166 { /// <summary> /// Obtain ISO3166-1 Country based on its alpha3 code. /// </summary> /// <param name="alpha3"></param> /// <returns></returns> public static...
from InsightToolkit import * from sys import argv reader = itkImageFileReaderF2_New() writer = itkImageFileWriterUS2_New() outputCast = itkRescaleIntensityImageFilterF2US2_New() filter = itkSmoothingRecursiveGaussianImageFilterF2F2_New() filter.SetInput( reader.GetOutput() ) outputCast.SetInput( filter.G...
package com.google.security.zynamics.binnavi.disassembly.Modules; import com.google.common.collect.ImmutableBiMap; import com.google.common.collect.ImmutableList; import com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException; import com.google.security.zynamics.binnavi.Database.Interfaces.S...
thunk-disque ========== A thunk/promise-based disque client, support all disque features. [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![js-standard-style][js-standard-image]][js-standard-url] ## Features - Auto meet nodes to cluster - Auto connect available nodes on demand - Aut...
/* eslint-disable camelcase */ /** * 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, Vers...
@interface BIDAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
"use strict"; var $ = require("jquery"), Calendar = require("../calendar"), DateBoxStrategy = require("./ui.date_box.strategy"), dateUtils = require("../../core/utils/date"), commonUtils = require("../../core/utils/common"), messageLocalization = require("../../localization/message"); var C...
package v1beta1 const ( // Healthy means that the device is healthy Healthy = "Healthy" // Unhealthy means that the device is unhealthy Unhealthy = "Unhealthy" // Version means current version of the API supported by kubelet Version = "v1beta1" // DevicePluginPath is the folder the Device Plugin is expecting...
/* Project: angular-gantt v1.2.6 - Gantt chart component for AngularJS Authors: Marco Schweighauser, Rémi Alvergnat License: MIT Homepage: http://www.angular-gantt.com Github: https://github.com/angular-gantt/angular-gantt.git */ (function(){ 'use strict'; angular.module('gantt', ['gantt.templates', 'angularMom...
package com.mvp4g.example.client.widgets; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.CssResource; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.CheckBox; import com.google.gwt.user.client.ui.Compos...
package com.lchtime.safetyexpress.adapter; import android.support.v4.util.SparseArrayCompat; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; i...
package org.jetbrains.plugins.scala package lang package psi package api import com.intellij.psi.PsiElement import com.intellij.psi.search.GlobalSearchScope import org.jetbrains.plugins.scala.lang.psi.api.toplevel.typedef.ScTypeDefinition trait ScPackageLike extends PsiElement { def findPackageObject(scope: GlobalS...
class CreatePosts < ActiveRecord::Migration def change create_table :posts do |t| t.string :title, null: false t.string :slug, null: false t.text :content t.text :stylesheet t.datetime :published_at t.timestamps null: false end add_index :posts, :title, unique: true ...
/* Project: angular-gantt v1.0.0-rc6 - Gantt chart component for AngularJS Authors: Marco Schweighauser, Rémi Alvergnat License: MIT Homepage: http://www.angular-gantt.com Github: https://github.com/angular-gantt/angular-gantt.git */ (function(){ 'use strict'; angular.module('gantt.bounds', ['gantt', 'gantt.bou...
Tests ===== You can test this bundle with this command .. code-block:: bash $ php vendor/phpunit/phpunit/phpunit.php
package org.apache.druid.client.cache; import com.fasterxml.jackson.annotation.JsonProperty; import org.apache.druid.java.util.common.HumanReadableBytes; import java.util.concurrent.Executor; public class CaffeineCacheConfig { @JsonProperty private long expireAfter = -1; @JsonProperty private HumanReadabl...
/** * @fileoverview Rule to flag when initializing octal literal * @author Ilya Volodin */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = function(co...
package org.apache.hadoop.hdfs.web.resources; /** Owner parameter. */ public class OwnerParam extends StringParam { /** Parameter name. */ public static final String NAME = "owner"; /** Default parameter value. */ public static final String DEFAULT = ""; private static final Domain DOMAIN = new Domain(NAME...
using System.Collections.Generic; using Umbraco.Core.Persistence.DatabaseAnnotations; namespace Umbraco.Core.Persistence.DatabaseModelDefinitions { public class IndexDefinition { public IndexDefinition() { Columns = new List<IndexColumnDefinition>(); } p...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * PDO ODBC Forge Class * * @category Database * @author EllisLab Dev Team * @link https://codeigniter.com/database/ */ class CI_DB_pdo_odbc_forge extends CI_DB_pdo_forge { /** * UNSIGNED support * * @var bool|array */ protect...
package node import ( "encoding/json" "fmt" "net" "strconv" "sync" "time" networkapi "github.com/openshift/origin/pkg/network/apis/network" "github.com/openshift/origin/pkg/network/common" "github.com/openshift/origin/pkg/network/node/cniserver" "github.com/openshift/origin/pkg/util/netutils" "github.com/...
@class WalletManager; @interface ScanVC : UIViewController < ZBarReaderViewDelegate > { __weak NSOperationQueue *_weakMainQueue; BOOL _didScanCode; } @property ( weak, nonatomic ) IBOutlet ZBarReaderView *weakReaderView; @property ( weak, nonatomic) WalletManager* walletManager; @property ( strong, non...
package io.apiman.gateway.engine.components.jdbc; import io.apiman.gateway.engine.async.IAsyncResultHandler; /** * The JDBC Client * * @author Marc Savy {@literal <msavy@redhat.com>} */ @FunctionalInterface public interface IJdbcClient { /** * Connect to JDBC * * @param handler the async resu...
' 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 Microsoft.CodeAnalysis.CodeGeneration Imports Microsoft.CodeAnalysis.CodeGeneration.CodeGenerationHelpers Imports Microsoft.CodeAnalysis.VisualBasic.S...
""" Support for ISY994 lights. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/light.isy994/ """ import logging from typing import Callable from homeassistant.components.light import ( Light, SUPPORT_BRIGHTNESS) import homeassistant.components.isy994...
\begin{titlepage} % basic font size of the titlepage \large \AddToShipoutPicture*{ \AtPageUpperLeft{ \hspace{\paperwidth} \raisebox{-25mm}{ \makebox[-15mm][r]{ \includegraphics[width=42mm]{title/FHV_Logo} } } } } \begin{center} ~ \vfill\vfill\vfill \myauthor \vfill {\LARGE\bfseries\mytitle} \vf...
package org.apache.hadoop.hdfs.server.datanode; import java.io.FileDescriptor; import java.io.IOException; import java.util.Arrays; import java.util.Map; import java.util.TreeMap; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.conf.Configuration; import ...
<?php return [ /* |-------------------------------------------------------------------------- | PDO Fetch Style |-------------------------------------------------------------------------- | | By default, database results will be returned as instances of the PHP | stdClass object; however, ...
package cz.metacentrum.perun.webgui.tabs.resourcestabs; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.resources.client.ImageResource; import com.google.gwt.user.client.ui.*; import com.go...
require 'spec_helper' describe 'forum permissions' do let!(:forum) { FactoryGirl.create(:forum) } let!(:topic) { FactoryGirl.create(:topic, :forum => forum) } it "can't see forums it can't access" do User.any_instance.stub(:can_read_forem_forums?).and_return(false) visit forums_path page.should_not ...
package metrics import "runtime" func numCgoCall() int64 { return runtime.NumCgoCall() }
"""Tests for os-extra_specs API.""" from nova.tests.functional.api import client as api_client from nova.tests.functional import integrated_helpers class FlavorExtraSpecsTest(integrated_helpers._IntegratedTestBase): api_major_version = 'v2' def setUp(self): super(FlavorExtraSpecsTest, self).setUp() ...
package com.github.jmodel.mapper.impl.builders; import com.fasterxml.jackson.databind.JsonNode; import com.github.jmodel.api.Model; import com.github.jmodel.mapper.api.Builder; public class JsonNodeBuilder implements Builder<JsonNode> { public JsonNode process(Model targetModel) { return JsonBuilderHelpe...
@interface LessonTwoView : UIView <UITableViewDataSource> @property (strong, nonatomic) IBOutlet UITableView *resultsTable; - (IBAction)sendRequest:(id)sender; @end
package org.apache.metron.solr.dao; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.IsCollectionContaining.hasItems; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import static org.mockito.Matchers.any; import static org.mockito.Matchers.a...
package org.apache.camel.component.krati.springboot; import org.apache.camel.CamelContext; import org.apache.camel.component.krati.KratiComponent; import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.boot.autoconfigure.condition.ConditionMessage; import org.springframework.boot...
package com.intellij.codeInsight.generation.ui; import com.intellij.codeInsight.CodeInsightBundle; import com.intellij.codeInsight.CodeInsightSettings; import com.intellij.codeInsight.NullableNotNullManager; import com.intellij.codeInsight.generation.EqualsHashCodeTemplatesManager; import com.intellij.codeInsight.gen...
using System; using System.Collections.Generic; using System.Text; using Axiom.MathLib; namespace Multiverse.Tools.WorldEditor { public interface IObjectDrag : IObjectPosition { new DisplayObject Display { get; } string ObjectType { get; } IWorldContainer Parent { get; } bo...
package gcexportdata_test import ( "fmt" "go/ast" "go/parser" "go/token" "go/types" "log" "os" "path/filepath" "golang.org/x/tools/go/gcexportdata" ) // ExampleRead uses gcexportdata.Read to load type information for the // "fmt" package from the fmt.a file produced by the gc compiler. func ExampleRead() { ...
This spider crawls haofl.net using scrapy. It extends CrawlSpider but use Spider style. CrawlSpider style such as Rule, LinkExtractor will be used soon. Data crawled will be saved in MySQL. You can give me a star if it helps you. Cite it when you use it to write any blog or post. # Copyright @ychen
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.reveal = { name : 'reveal', version : '5.3.2', locked : false, settings : { animation: 'fadeAndPop', animation_speed: 250, close_on_background_click: true, close_on_esc: true, dismiss_modal_...
// 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. #include "ash/system/chromeos/managed/tray_locally_managed_user.h" #include "ash/system/chromeos/label_tray_view.h" #include "ash/system/tray/system_...
function true() { }
<!doctype html public "restroom"> <title>Query Params Example</title> <link href="../global.css" rel="stylesheet"/> <body> <h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Query Params</h1> <div id="example"/> <script src="/__build__/shared.js"></script> <script src="/__build__/query-params.j...
/********************** Velocity UI Pack **********************/ /* VelocityJS.org UI Pack (4.1.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License. Portions copyright Daniel Eden, Christian Pucci. */ (function() { /************* Setup *************/ var Container = (...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int64_t_fscanf_multiply_07.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-07.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: fscanf Read data from the console using fscanf()...
package com.github.springclips.configurations; import com.github.springclips.filters.Logging; import org.apache.catalina.filters.SetCharacterEncodingFilter; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.filter.CharacterEn...
/* usage: p = new Player({ useWorker: <bool>, workerFile: <defaults to "Decoder.js"> // give path to Decoder.js webgl: true | false | "auto" // defaults to "auto" }); // canvas property represents the canvas node // put it somewhere in the dom p.canvas; p.webgl; // contains the used rendering mode. if you pa...
package org.keycloak.adapters; import org.jboss.logging.Logger; import org.keycloak.KeycloakPrincipal; import org.keycloak.representations.AccessToken; import java.util.Collections; import java.util.Set; import java.util.UUID; /** * @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a> */ public class A...
class CreateLanguages < ActiveRecord::Migration[4.2] # ISO 639 is the set of international standards that lists short codes for language names. # Note this doesn't include macrolanguages (dialects) # Information on macrolanguages http://en.wikipedia.org/wiki/ISO_639_macrolanguage def change create_table :...
"use strict"; exports.debugMode = false; exports.createServer = function(options, port, host) { var DAV = require("./DAV/server"); DAV.debugMode = exports.debugMode; return DAV.createServer(options, port, host); }; /** * Create a jsDAV Server object that will not fire up listening to HTTP requests, * ...
var searchData= [ ['debugmessagedispatchhandler',['DebugMessageDispatchHandler',['../classv8_1_1_debug.html#a91cd8aa9743e3478bc63fe73abcd557c',1,'v8::Debug']]] ];
<ParameterList name="Stratimikos"> <Parameter name="Linear Solver Type" type="string" value="AztecOO"/> <ParameterList name="Linear Solver Types"> <ParameterList name="AztecOO"> <ParameterList name="Forward Solve"> <Parameter name="Tolerance" type="double" value="1e-8"/> <ParameterList name="AztecOO S...
package fake import ( v1alpha1 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) type FakeRbacV1alpha1 struct { *testing.Fake } func (c *FakeRbacV1alpha1) ClusterRoles() v1alpha1.ClusterRoleInterface { return &FakeClusterRoles{c} } func (c *Fa...
package org.apache.camel.component.as2.api.entity; import org.bouncycastle.cms.CMSCompressedDataGenerator; import org.bouncycastle.cms.jcajce.ZlibCompressor; import org.bouncycastle.cms.jcajce.ZlibExpanderProvider; import org.bouncycastle.operator.OutputCompressor; import org.junit.After; import org.junit.Before; imp...
// 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; using System.Collections.Immutable; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection.Metadata; using Micro...
package com.di.crm.sfa.controller; public interface QuoteController { }
package org.keycloak.representations.idm; import java.io.Serializable; import java.util.HashMap; import java.util.Map; /** * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a> * @version $Revision: 1 $ */ public class AuthenticatorConfigRepresentation implements Serializable { private String alias; ...
package org.apache.camel.component.netty.http; import java.util.ArrayList; import java.util.List; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; import org.junit.Test; public class NettyHttpProducerTwoParametersWithSameKeyTest extends BaseNettyTest...
export default TileArcGISRest; export type Options = { /** * Attributions. */ attributions?: string | string[] | ((arg0: import("../PluggableMap.js").FrameState) => string | string[]); /** * Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport. */ ...
package org.jetbrains.plugins.groovy.annotator; import com.intellij.codeHighlighting.TextEditorHighlightingPass; import com.intellij.codeHighlighting.TextEditorHighlightingPassFactory; import com.intellij.codeHighlighting.TextEditorHighlightingPassFactoryRegistrar; import com.intellij.codeHighlighting.TextEditorHighli...
import asyncio import io import socket import unittest import ssl import os.path import aiohttp from aiohttp import hdrs, log, web from aiohttp.errors import FingerprintMismatch class TestClientFunctional2(unittest.TestCase): def setUp(self): self.handler = None self.loop = asyncio.new_event_loo...
#!/usr/bin/env bash # # # DRILL_CHECKUM_ALOGRITHMS="sha1 md5" DRILL_SIGNATURE_EXTENSION=asc DRILL_ARTIFACT_EXTENSION=tar.gz DRILL_ARTIFACTS=*.${DRILL_ARTIFACT_EXTENSION} DRILL_ARTIFACT_DIR=. ERROR='\e[0;31m' SUCCESS='\e[0;32m' DEBUG='\e[1;30m' INFO='\e[0;33m' RESET='\e[0m' # # Helper methods # error_exit() { echo -e...
<?php /** * @see Zend_Gdata_Extension */ require_once 'Zend/Gdata/Extension.php'; /** * Topic of the resource * * @category Zend * @package Zend_Gdata * @subpackage DublinCore * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://fr...
import math X_COORD = 0 Y_COORD = 1 Z_COORD = 2 class Point: """A point with K coordinates. While the point can have the desired number of dimensions, the first three are usually called X_COORD, Y_COORD and Z_COORD and they are at position 0, 1 and 2 of the coordinate list. """ def __init__(sel...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/2.5/template-install.dtd"> <extension version="3.1" type="template" client="administrator"> <name>isis</name> <version>1.0</version> <creationDate>3/30/2012</creationDate> <author>Ky...
namespace boost { namespace geometry { #ifndef DOXYGEN_NO_DISPATCH namespace dispatch { template <typename Geometry, typename Tag = typename tag<Geometry>::type> struct is_simple : not_implemented<Geometry> {}; } // namespace dispatch #endif // DOXYGEN_NO_DISPATCH }} // namespace boost::geometry #endif // B...
export * from './cp-calculator';
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../includes/main.css" type="text/css"> <l...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>log4php - Project License</title> <style type="text/css" media="all"> @import url("./css/maven-base.css"); @import url("./css/mav...
package time import ( "errors" "runtime" "syscall" "unsafe" ) // TODO(rsc): Fall back to copy of zoneinfo files. // BUG(brainman,rsc): On Windows, the operating system does not provide complete // time zone information. // The implementation assumes that this year's rules for daylight savings // time apply to al...
<?xml version="1.0" encoding="utf-8" ?> <!--Copyright 2014-2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev> Copyright 2018 Gabbasov Dinar <https://it-projects.info/team/GabbasovDinar> Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr> Copyright 2018 Ildar Nasyro...
/// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyrigh...
//----------------------------------------------------------------------- // <copyright file="EventFilterFactory.cs" company="Akka.NET Project"> // Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com> // Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net> // </copyrig...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <winpr/crt.h> #include <winpr/stream.h> #include <winpr/cmdline.h> #include <freerdp/client/tsmf.h> #include "tsmf_types.h" #include "tsmf_constants.h" #include "tsmf_ifman.h" #include "tsmf_media.h" #include "tsmf_main.h" void tsmf_playback_ack(IWTSVirtua...
require 'test_helper' class RemoteBalancedTest < Test::Unit::TestCase def setup @gateway = BalancedGateway.new(fixtures(:balanced)) @amount = 100 @credit_card = credit_card('4111111111111111') @invalid_card = credit_card('4222222222222220') @declined_card = credit_card('4444444444444448') ...
package com.google.template.soy.bidifunctions; import com.google.common.collect.ImmutableSet; import com.google.template.soy.data.Dir; import com.google.template.soy.data.SanitizedContent; import com.google.template.soy.data.SanitizedContent.ContentKind; import com.google.template.soy.data.SoyValue; import com.googl...
#ifndef __GLSLESProgramPipeline_H__ #define __GLSLESProgramPipeline_H__ #include "OgreGLES2Prerequisites.h" #include "OgreGLSLESProgramCommon.h" namespace Ogre { /** Specialisation of HighLevelGpuProgram to provide support for OpenGL Shader Language (GLSL ES) for OpenGL ES 2.0. @remarks GLSL ES h...
#include <algorithm> #include <string> #include <unordered_map> #include <vector> #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" #include "tensorflow/core/framework/kernel_def_builder.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/...
#pragma once #ifdef URHO3D_IS_BUILDING #include "Urho3D.h" #else #include <Urho3D/Urho3D.h> #endif namespace Urho3D { /// Generate tangents to indexed geometry. URHO3D_API void GenerateTangents (void* vertexData, unsigned vertexSize, const void* indexData, unsigned indexSize, unsigned indexStart, ...
package uk.gov.hmrc.helptosavefrontend.models.eligibility import play.api.libs.json.{Format, Json} sealed trait EligibilityCheckResultType { val value: EligibilityCheckResponse } object EligibilityCheckResultType { case class Eligible(value: EligibilityCheckResponse) extends EligibilityCheckResultType case...
package com.amazonaws.services.greengrass.model.transform; import javax.annotation.Generated; import com.amazonaws.SdkClientException; import com.amazonaws.services.greengrass.model.*; import com.amazonaws.protocol.*; import com.amazonaws.annotation.SdkInternalApi; /** * CoreMarshaller */ @Generated("com.amazona...
using System; namespace Common.Logging.Factory { /// <summary> /// Indicates that the marked method builds string by format pattern and (optional) arguments. /// Parameter, which contains format string, should be given in constructor. The format string /// should be in <see cref="string.Format(IFormat...
package igx.client; // CText.java // A class that holds a string and an associated colour import java.awt.*; public class CText { public String text; public Color color; public int width; public CText(String text, Color color) { this.text = text; this.color = color; ...
from bokeh.layouts import gridplot from bokeh.models import ColumnDataSource, CDSView, GroupFilter from bokeh.plotting import figure, show from bokeh.sampledata.iris import flowers source = ColumnDataSource(flowers) view1 = CDSView(source=source, filters=[GroupFilter(column_name='species', group='versicolor')]) plot_...
import { Subject } from './Subject'; import { Subscriber } from './Subscriber'; import { Subscription } from './Subscription'; /** * @class BehaviorSubject<T> */ export declare class BehaviorSubject<T> extends Subject<T> { private _value; constructor(_value: T); readonly value: T; protected _subscribe...
/** * @author ejrbuss * @date 2017 */ #ifndef RDP_FILESTREAM_HEADER #define RDP_FILESTREAM_HEADER // Exported functions extern int rdp_filestream_size(); extern void rdp_filestream_open(const char* file, const char* flag); extern int rdp_filestream_read(char* buffer, const int buffer_size, const int sequence_number...
using System.Reflection; using System.Runtime.CompilerServices; [assembly: AssemblyTitle("Grpc.Examples.MathClient")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("Google Inc. All rights reserved....
<p><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="bc.css"> <!-- <script src="run_prettify.js" type="text/javascript"></script> <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js" type="text/javascript"></script> --...
package com.mattunderscore.trees.walkers; import com.mattunderscore.trees.traversal.Walker; import com.mattunderscore.trees.tree.OpenNode; import com.mattunderscore.trees.tree.Tree; /** * Driver for traversing trees. Implementations provide a specific traversal order. * @author Matt Champion on 13/08/2015 */ pub...
/* ============================================================= * flatui-radio.js v0.0.3 * ============================================================ */ !function ($) { /* RADIO PUBLIC CLASS DEFINITION * ============================== */ var Radio = function (element, options) { this.init(element, opti...
package apps import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/kubernetes/pkg/api" ) // +genclient=true // StatefulSet represents a set of pods with consistent identities. // Identities are defined as: // - Network: A single stable DNS and hostname. // - Storage: As many VolumeClaims as requested....
package thrift import ( "context" ) const ( UNKNOWN_APPLICATION_EXCEPTION = 0 UNKNOWN_METHOD = 1 INVALID_MESSAGE_TYPE_EXCEPTION = 2 WRONG_METHOD_NAME = 3 BAD_SEQUENCE_ID = 4 MISSING_RESULT = 5 INTERNAL_ERROR = 6 PROTOCOL_ERROR ...
<? Yii::setPathOfAlias('AvatarModule' , dirname(__FILE__)); class AvatarModule extends CWebModule { public $defaultController = 'avatar'; // override this with your custom layout, if available public $layout = 'application.modules.user.views.layouts.yum'; public $avatarPath = 'images'; // Set avatarMaxWidth to...
<?xml version="1.0"?> <project name="peas" default="compile"> <property name="java.classname" value="forplay.sample.peas.java.PeasJava"/> <property name="html.classname" value="forplay.sample.peas.Peas"/> <property name="html.index" value="Peas.html"/> <import file="../../build-common.xml"/> </project>
package com.intellij.xml.util; import com.intellij.codeInspection.LocalQuickFix; import com.intellij.codeInspection.ProblemHighlightType; import com.intellij.codeInspection.ProblemsHolder; import com.intellij.codeInspection.XmlQuickFixFactory; import com.intellij.codeInsight.daemon.impl.analysis.RemoveAttributeIntent...
package com.hujiang.restvolley.demo; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + ...
import os import unittest from test import test_support # Skip this test if _tkinter wasn't built. test_support.import_module('_tkinter') this_dir = os.path.dirname(os.path.abspath(__file__)) lib_tk_test = os.path.abspath(os.path.join(this_dir, os.path.pardir, 'lib-tk', 'test')) with test_support.DirsOnSysPath(l...
var gulp = require('gulp'); var rename = require('gulp-rename'); var sourcemaps = require('gulp-sourcemaps'); var uglify = require('gulp-uglify'); var sass = require('gulp-sass'); var minifyCss = require('gulp-clean-css'); gulp.task('sass', function() { gulp.src('./jquery.fullpage.scss') .pipe(sass({ ...
#include <cassert> /** * When building the debug binary, we need to undo the command-line * definition of DEBUG not to clash with DRAMSim2 print macros that * are included for no obvious reason. */ #ifdef DEBUG #undef DEBUG #endif #include <fstream> #include "DRAMSim2/MultiChannelMemorySystem.h" #include "base...