text
stringlengths
3
1.05M
import {Parser} from "./state" import {getOptions} from "./options" import "./parseutil" import "./statement" import "./lval" import "./expression" import "./location" export {Parser, plugins} from "./state" export {defaultOptions} from "./options" export {Position, SourceLocation, getLineInfo} from "./locutil" export...
.. _fs_event: :c:type:`uv_fs_event_t` --- FS Event handle =========================================== FS Event handles allow the user to monitor a given path for changes, for example, if the file was renamed or there was a generic change in it. This handle uses the best backend for the job on each platform. Data t...
var fs = require('fs'); var glob = require('glob'); var async = require('async'); var _ = require('lodash'); var path = require('path'); var walkdir = require('walkdir'); var util = require('archiver-utils'); var inherits = require('util').inherits; var Transform = require('readable-stream').Transform; v...
(function() { /* ########## Begin module implementation ########## */ function initModule(forge) { // shortcut for ASN.1 API var asn1 = forge.asn1; // shortcut for PKCS#7 API var p7v = forge.pkcs7asn1 = forge.pkcs7asn1 || {}; forge.pkcs7 = forge.pkcs7 || {}; forge.pkcs7.asn1 = p7v; var contentInfoValidator = { na...
using System; using System.Collections.Generic; using System.Text; using Microsoft.CodeAnalysis; namespace Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.MethodXml { internal static class MetadataNameHelpers { private static void AppendNamespace(INamespaceSymbol namespaceSymbol, Strin...
namespace Sundew.Quantities.Representations.Expressions.Visitors; using System; using System.Text; /// <summary> /// Contains parameters for <see cref="NotationVisitor"/> /// </summary> public sealed class NotationParameters { /// <summary> /// Initializes a new instance of the <see cref="NotationParameters"/...
AMP HTML Validator takes input of HTML text and parses the text tag by tag, running the ruleset against every tag. Resultant from this process is validity of the input text and the errors generated while parsing. ## Table of Contents - [Background](#Background) - [Install](#Install) - [Usage](#Usage) - [Issues](#Issu...
<?php namespace Symfony\Component\HttpKernel\Tests\Profiler; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface; use Symfony\Component\HttpKernel\DataCollector\RequestDataC...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Navigation; using System.Windows.S...
YUI.add('recordset-indexer', function (Y, NAME) { /** * Provides the ability to store multiple custom hash tables referencing records in the recordset. * @module recordset * @submodule recordset-indexer */ /** * Plugin that provides the ability to store multiple custom hash tables referencing records in the rec...
/* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_cryp.h" /** @addtogroup STM32F4xx_StdPeriph_Driver * @{ */ /** @defgroup CRYP * @brief CRYP driver modules * @{ */ /* Private typedef -------------------------------------------------------...
namespace System.Reflection.Metadata { public readonly struct Blob { internal readonly byte[] Buffer; internal readonly int Start; public int Length { get; } internal Blob(byte[] buffer, int start, int length) { Buffer = buffer; Start = start; ...
package com.facebook.buck.rust; import com.facebook.buck.module.BuckModule; /** A modules that provides Rust build rules. */ @BuckModule(id = "com.facebook.buck.rust") public class RustModule {}
using System.Collections.Generic; using IEnumerable = System.Collections.IEnumerable; namespace System.Xml.Linq { /// <summary> /// Defines the LINQ to XML extension methods. /// </summary> public static class Extensions { /// <summary> /// Returns all of the <see cref="XAttribute"...
package org.apache.spark.sql.catalyst.plans.logical import org.apache.spark.SparkFunSuite import org.apache.spark.sql.catalyst.expressions.{Alias, Expression, Literal, NamedExpression} class AnalysisHelperSuite extends SparkFunSuite { private var invocationCount = 0 private val function: PartialFunction[Logic...
@extends('layouts.default') @section('title')Create Roadmap @endsection @section('content') <div class="row"> <div class="col-sm-12"> <div class="page-title-box"> <div class="btn-group pull-right"> <ol class="breadcrumb hide-phone p-0 m-0"> <li> ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="robots" content="index, follow, all" /> <title>Thelia\Module\AbstractPaymentModule | </title> <link rel="stylesheet" type="text/css" href="../../stylesheet.css"> </hea...
namespace Microsoft.Azure.Management.RecoveryServices.Models { /// <summary> /// Defines values for AuthType. /// </summary> public static class AuthType { public const string Invalid = "Invalid"; public const string ACS = "ACS"; public const string AAD = "AAD"; publ...
<?php /** Internally used classes */ require_once 'Zend/Pdf/Element/Name.php'; /** Zend_Pdf_Element */ require_once 'Zend/Pdf/Element.php'; /** * PDF file 'dictionary' element implementation * * @category Zend * @package Zend_Pdf * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://w...
"""Utility functions for copying and archiving files and directory trees. XXX The functions here don't copy the resource fork or other metadata on Mac. """ import os import sys import stat from os.path import abspath import fnmatch import collections import errno try: import zlib del zlib _ZLIB_SUPPORTE...
<?php session_start(); if (isset($_SESSION['userLoggedIn'])){ $logged_in=true; $userID = $_SESSION['userID']; }else { $logged_in=false; }?> <!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"> <head> ...
<?php namespace Translator\Fixture; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; /** * @ORM\Entity */ class Person { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(name="name", type="str...
import linecache import os.path import re import sys import traceback # @Reimport # IFDEF CYTHON # import dis # ENDIF from _pydev_bundle import pydev_log from _pydevd_bundle import pydevd_dont_trace from _pydevd_bundle import pydevd_vars from _pydevd_bundle.pydevd_breakpoints import get_exception_breakpoint from _py...
<?php final class PhamePostSubtitleTransaction extends PhamePostTransactionType { const TRANSACTIONTYPE = 'phame.post.subtitle'; public function generateOldValue($object) { return $object->getSubtitle(); } public function applyInternalEffects($object, $value) { $object->setSubtitle($value); } ...
 /*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false */ /*global window: false, jQuery: false */ (function ($) { var data_click = "unobtrusiveAjaxClick", data_validation = "unobtru...
package liquibase.change.core; import liquibase.change.*; import liquibase.database.Database; import liquibase.snapshot.SnapshotGeneratorFactory; import liquibase.statement.SqlStatement; import liquibase.statement.core.AlterSequenceStatement; import liquibase.structure.core.Sequence; import java.math.BigInteger; /**...
<!-- File: chapter13/directive-controllers/index.html --> <html> <head> <title>Stock Market App</title> <link rel="stylesheet" href="main.css"> </head> <body ng-app="stockMarketApp"> <div ng-controller="MainCtrl as mainCtrl"> <tabs> <tab title="First Tab"> This is the first tab. The app...
package io.netty.handler.codec.spdy; /** * The SPDY stream status code and its description. */ public class SpdyStreamStatus implements Comparable<SpdyStreamStatus> { /** * 1 Protocol Error */ public static final SpdyStreamStatus PROTOCOL_ERROR = new SpdyStreamStatus(1, "PROTOCOL_ERROR");...
package de.adesso.wickedcharts.highcharts.jackson; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializerProvider; import de.adesso.wickedcharts.highcharts.option...
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
package integration_test import ( "fmt" "regexp" "runtime" "strings" . "github.com/onsi/ginkgo" "github.com/onsi/ginkgo/types" . "github.com/onsi/gomega" "github.com/onsi/gomega/gbytes" "github.com/onsi/gomega/gexec" ) var _ = Describe("Running Specs", func() { var pathToTest string isWindows := (runtime...
' 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.Collections.Generic Imports System.Collections.Immutable Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Emit Namespace Microsof...
"""Tests for utilities working with user input.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.data.util import convert from tensorflow.python.framework import constant_op from tensorflow.python.framework import dtypes from tensor...
namespace base { class FilePath; } #if defined(OS_MACOSX) // We don't want to directly include // breakpad/src/client/mac/Framework/Breakpad.h here, so we repeat the // definition of BreakpadRef. // // On Mac, when compiling without breakpad support, a stub implementation is // compiled in. Not having any includes of ...
"use strict"; var value = require("../../object/valid-value") , contains = require("./contains") , byLength = require("./_compare-by-length") , filter = Array.prototype.filter , push = Array.prototype.push , slice = Array.prototype.slice; module.exports = function (/* …list*/) { var lists; if ...
YUI.add('node-base', function(Y) { /** * The Node Utility provides a DOM-like interface for interacting with DOM nodes. * @module node * @submodule node-base */ /** * The NodeList class provides a wrapper for manipulating DOM NodeLists. * NodeList properties can be accessed via the set/get methods. * Use Y...
package remote import ( "time" "golang.org/x/net/context" internalapi "k8s.io/kubernetes/pkg/kubelet/api" runtimeapi "k8s.io/kubernetes/pkg/kubelet/api/v1alpha1/runtime" "k8s.io/kubernetes/pkg/kubelet/dockershim" utilexec "k8s.io/kubernetes/pkg/util/exec" ) // DockerService is the interface implement CRI re...
<html> <head> <script> var count = 0; document.addEventListener("DOMNodeRemoved", function () { count++; if (count < 2) { var src = event.srcElement; document.designMode = "on"; src.parentNode.replaceChild(document.head, src); } }, false); window.onload = function () { var selec...
package main // Blocks of ``` need to have blank lines on both sides or they don't look // right in HTML. func updatePreformatted(filePath string, mlines mungeLines) (mungeLines, error) { var out mungeLines inpreformat := false for i, mline := range mlines { if !inpreformat && mline.preformatted { if i == 0 ...
import { ExpressionDescriptor } from "./expressionDescriptor"; export default ExpressionDescriptor; declare let toString: typeof ExpressionDescriptor.toString; export { toString };
#import <UIKit/UIKit.h> #import "RCTBridgeModule.h" #import "RCTConvert.h" #import "RCTComponent.h" #import "RCTDefines.h" #import "RCTEventDispatcher.h" #import "RCTLog.h" @class RCTBridge; @class RCTShadowView; @class RCTSparseArray; @class RCTUIManager; typedef void (^RCTViewManagerUIBlock)(RCTUIManager *uiMana...
<?php /** * @see Zend_Tool_Project_Context_Filesystem_File */ #require_once 'Zend/Tool/Project/Context/Filesystem/File.php'; /** * This class is the front most class for utilizing Zend_Tool_Project * * A profile is a hierarchical set of resources that keep track of * items within a specific project. * * @cat...
package org.apache.spark.launcher; import java.io.Closeable; import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.net.Socket; import java.security.SecureRandom; import java.util.ArrayList; import java.util.List; import java.util.Timer; ...
#!/usr/bin/php -q <?php if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); } $dispatcher = 'Cake' . DS . 'Console' . DS . 'ShellDispatcher.php'; $found = false; $paths = explode(PATH_SEPARATOR, ini_get('include_path')); foreach ($paths as $path) { if (file_exists($path . DS . $dispatcher)) { $found = $pat...
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
package com.socialize.test.unit.api; import com.socialize.api.SocializeSession; import com.socialize.api.action.activity.SocializeActivitySystem; import com.socialize.entity.SocializeAction; import com.socialize.listener.SocializeActionListener; import com.socialize.listener.activity.ActionListener; import com.social...
using Newtonsoft.Json; namespace Acklann.Plaid.Management { /// <summary> /// Represents a request for plaid's '/item/access_token/update_version' endpoint. If you have an access_token from the legacy version of Plaid’s API, you can use the '/item/access_token/update_version' endpoint to generate an access_token fo...
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2007, 2009, 2011 Chris Kenyon Copyright (C) 2009 StatPro Italia srl This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantL...
#ifndef GrStencil_DEFINED #define GrStencil_DEFINED #include "GrTypes.h" #include "SkRegion.h" /** * Gr uses the stencil buffer to implement complex clipping inside the * GrDrawTarget class. The GrDrawTarget makes a subset of the stencil buffer * bits available for other uses by external code (clients). Client...
// +build !providerless // Package mockvmssvmclient implements the mock client for VirtualMachineScaleSetVM. package mockvmssvmclient // import "k8s.io/legacy-cloud-providers/azure/clients/vmssvmclient/mockvmssvmclient"
#include "tensorflow/core/util/command_line_flags.h" #include "tensorflow/core/lib/core/stringpiece.h" #include "tensorflow/core/platform/logging.h" namespace tensorflow { namespace { bool ParseStringFlag(tensorflow::StringPiece arg, tensorflow::StringPiece flag, string* dst, bool* value_parsin...
<?php namespace Wrench\Socket; use Wrench\Protocol\Protocol; use Wrench\Socket\Socket; abstract class UriSocket extends Socket { protected $scheme; protected $host; protected $port; /** * URI Socket constructor * * @param string $uri WebSocket URI, e.g. ws://example.org:8000/chat...
// This software contains source code provided by NVIDIA Corporation. // simpleCubicTexture3D.cpp is derived from the simpleTexture3D.cu example, // from the CUDA SDK 2.0. // 3D cubic texture sample // // This sample loads a 3D volume from disk and displays slices through it // using 3D texture lookups. The interpo...
/*============================================================================*/ /* VFLib: https://github.com/vinniefalco/VFLib Copyright (C) 2008 by Vinnie Falco <vinnie.falco@gmail.com> This library contains portions of other open source products covered by separate licenses. Please see the corresponding so...
<?php /** * Struct for BBCode document paragraph abstract syntax tree nodes * * @package Document * @version //autogen// */ class ezcDocumentBBCodeParagraphNode extends ezcDocumentBBCodeBlockLevelNode { /** * Set state after var_export * * @param array $properties * @return void * @i...
gTestsubsuite = 'GC';
// encodings/impl/binary /** * Encodes a binary JavaScript string to bytes. * @param {string} src Source string * @param {number} srcOffset Source offset * @param {!ByteBuffer} dst Destination ByteBuffer * @param {number} dstOffset Destination offset * @param {number} count Number of char codes to encode...
![Travis Build Status](https://travis-ci.org/reecehudson/charge.svg) ![npm version badge](https://img.shields.io/npm/v/ch-arge.svg) Charge ====== ## Installation ```cmd > npm install ch-arge var charge = require("ch-arge"); ``` ## Example Usage <!-- make sure it's synced with example/all-features.js--> ```js var cha...
package io.crate.expression; import java.util.List; import io.crate.data.Input; import io.crate.data.Row; public class InputRow extends Row { private final List<? extends Input<?>> inputs; public InputRow(List<? extends Input<?>> inputs) { assert inputs != null : "inputs must not be null"; ...
<?php $this->breadcrumbs = array( UserModule::t('Users') => array('admin'), $model->username, ); $this->menu = array( array('label' => UserModule::t('Create User'), 'icon' => 'plus', 'url' => array('create')), array('label' => UserModule::t('Update User'), 'icon' => 'pencil', 'url' => array('update', ...
#include "dispatch_private.h" #include "entity.h" #include "router_private.h" #include "qpid/dispatch.h" #include "qpid/dispatch/log.h" static void qdi_router_configure_body(qdr_core_t *core, qd_composed_field_t *body, qd_r...
#import <Foundation/Foundation.h> @class SBJsonTokeniser; @class SBJsonStreamParser; @class SBJsonStreamParserState; typedef enum { SBJsonStreamParserComplete, SBJsonStreamParserWaitingForData, SBJsonStreamParserError, } SBJsonStreamParserStatus; /** Delegate for interacting directly with the stream parser ...
/* Includes ------------------------------------------------------------------*/ #include "usb_lib.h" #include "usb_conf.h" #include "usb_prop.h" #include "usb_desc.h" #include "usb_pwr.h" #include "hw_config.h" /* Private typedef -----------------------------------------------------------*/ /* Private define -----...
package com.marshalchen.common.uimodule.timessquare; import android.content.Context; import android.util.AttributeSet; import android.widget.TextView; import com.marshalchen.common.uimodule.widgets.R; public class CalendarCellView extends TextView { private static final int[] STATE_SELECTABLE = { R.attr.sta...
package virtualbox import ( "testing" "github.com/stretchr/testify/assert" ) const ( featuresWithVMX = "FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 VMX PBE SSE3 PCLMULQDQ DTES64 AVX1.0 RDRAND F16C" featuresNoVMX = "FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PS...
package com.intellij.codeInspection; import com.intellij.codeInspection.ex.GlobalInspectionContextBase; import com.intellij.psi.PsiFile; /** * User: anna * Date: 11/27/13 */ public class RedundantSuppressInspection extends RedundantSuppressInspectionBase { @Override protected GlobalInspectionContextBase creat...
package storage import ( "testing" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apiserver/pkg/registry/generic" genericregistrytest "k8s.io/apiserver/pkg/regist...
package org.apache.phoenix.util; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Test; import org.apache.phoenix.expression.LikeExpression; public class LikeExpressionTest { @Test public void testWildcardToLikeExpression() { String tableName...
package exam.hydromap.julienheroguelle.hydromap.Networking.Models.OWMModels; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Main { @SerializedName("temp") @Expose public Float temp; @SerializedName("pressure") @Expose public Float pr...
package net.decasdev.dokan; public interface FileSecurity { public final static int SECURITY_ANONYMOUS = 0x00000000; public final static int SECURITY_CONTEXT_TRACKING = 0x00040000; public final static int SECURITY_DELEGATION = 0x00030000; public final static int SECURITY_EFFECTIVE_ONLY = 0x00080000; pub...
/* @test @bug 4074388 @summary Check for correct implementation of RandomAccessFile.writeBytes and writeChars. */ import java.io.*; public class WriteBytesChars { public static void main(String args[]) throws Exception { String towrite; char[] buf = new char[80]; byte[] b = ...
lattice.modules.Associator_Radio = new Class({ Extends: lattice.modules.LatticeAssociator_Radio, /* Section: Getters & Setters */ getSaveFieldURL: function( itemObjectId ){ var url = lattice.util.getBaseURL() +"ajax/data/associator/savefield/" + itemObjectId; lattice.log( '\t\getSaveFieldURL', url ); re...
package com.intellij.webcore.packaging; import com.intellij.util.CatchingConsumer; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.IOException; import java.util.Collection; import java.util.Collections; import java.util.List; /** * @author yole */ public abstract...
import rospy import roslib import tf from geometry_msgs.msg import PoseWithCovarianceStamped, PoseStamped from std_msgs.msg import Float32 import os goal_x = -1000.0 goal_y = -1000.0 goal_angular_z = -1000.0 goal_angular_w = -10000.0 check = 0 final_goal_spot = PoseStamped(); def callback1(data): tolerance = 1.5 ...
public class Foo { void m() { try { Object obj = new Object()<caret> } catch (Exception e) { e.printStackTrace(); } } }
package com.google.gdata.data.appsforyourdomain.provisioning; import com.google.gdata.data.BaseFeed; import com.google.gdata.data.ExtensionProfile; import com.google.gdata.data.Kind; /** * * */ @Kind.Term(UserEntry.USER_KIND) public class UserFeed extends BaseFeed<UserFeed, UserEntry> { /** * Constructs...
"""Table management module.""" from __future__ import print_function __docformat__ = "restructuredtext en" from six.moves import range class Table(object): """Table defines a data table with column and row names. inv: len(self.data) <= len(self.row_names) forall(self.data, lambda x: len(x) <...
import cPickle import gzip import os import sys import time import numpy import theano import theano.tensor as T from theano.tensor.shared_randomstreams import RandomStreams from mlp.logistic_sgd import load_data from AutoEncoder import AutoEncoder from datetime import datetime from optparse import OptionParser im...
@implementation IDViewController @synthesize birthdayField; - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; // check for a previous installation NSString *savedBirthday = [IDUtils savedBirthday]; BOOL firstLaunch = [IDUtils isFirstLaunch]; if (savedBirthday != nil && firstLaunch) { [...
package persistentvolume import ( "fmt" "time" "github.com/golang/glog" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/client/cache" clientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset" "k8s.io/kubernetes/pkg/cloudprovider" "k8s.io/kubernetes/pkg/controller/framework" "k8s.io/...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_23) on Fri Oct 07 06:23:10 UTC 2011 --> <TITLE> Uses of Class org.apache.hadoop.contrib.utils.join.DataJoinReducerBase (Hadoop 0.20.205.0 API) </TITL...
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper.rb") describe Ohai::System, "timezone plugin" do before(:each) do @plugin = get_plugin("timezone") allow(Time).to receive_message_chain(:now, :getlocal, :zone) { "ZZZ" } end it "should get the local timezone" do @plugin.run ex...
package datafactory // 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 // //...
from __future__ import unicode_literals import json import sure # noqa import moto.server as server from moto import mock_redshift ''' Test the different server responses ''' @mock_redshift def test_describe_clusters(): backend = server.create_backend_app("redshift") test_client = backend.test_client() ...
/* (c) British Telecommunications plc, 2009, All Rights Reserved */ package com.bt.pi.api.handlers; import javax.annotation.Resource; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.ws.server.endpoint.annotation.Endpoint; import org.springframework.ws.se...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE cache PUBLIC "-//GemStone Systems, Inc.//GemFire Declarative Caching 6.6//EN" "http://www.gemstone.com/dtd/cache6_6.dtd"> <cache lock-lease="120" lock-timeout="60" search-timeout="300"> <vm-root-region name="root"> <region-attributes scope="distributed-no-ack"...
// scalastyle:off println package org.apache.spark.examples import java.util.Random import org.apache.spark.sql.SparkSession /** * Usage: GroupByTest [numMappers] [numKVPairs] [KeySize] [numReducers] */ object GroupByTest { def main(args: Array[String]): Unit = { val spark = SparkSession .builder ...
package org.sindice.siren.qparser.json.parser; import org.codehaus.jackson.JsonNode; import org.sindice.siren.qparser.json.ParseException; import org.sindice.siren.qparser.json.nodes.NodeQueryNode; /** * Parses a <code>node</code> property and returns a {@link NodeQueryNode}. */ public class NodePropertyParser ext...
#ifndef BT_SPU_COLLISION_TASK_PROCESS_H #define BT_SPU_COLLISION_TASK_PROCESS_H #include <assert.h> #include "bullet/LinearMath/btScalar.h" #include "PlatformDefinitions.h" #include "bullet/LinearMath/btAlignedObjectArray.h" #include "SpuNarrowPhaseCollisionTask/SpuGatheringCollisionTask.h" // for definitions proc...
#include "vulkanexamplebase.h" #include "VulkanglTFModel.h" #define ENABLE_VALIDATION false class VulkanExample : public VulkanExampleBase { public: PFN_vkCmdBeginRenderingKHR vkCmdBeginRenderingKHR; PFN_vkCmdEndRenderingKHR vkCmdEndRenderingKHR; VkPhysicalDeviceDynamicRenderingFeaturesKHR dynamicRenderingFeatu...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v9.1.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto...
package org.apache.cassandra.utils; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.nio.ByteBuffer; import java.security.SecureRandom; import java.util.Collection; import java.util.Collections; import java.util.Enumeration; import java.util.HashSet; import j...
package com.asha.vrlib.objects; import android.content.Context; /** * Created by hzqiujiadi on 16/4/24. * hzqiujiadi ashqalcn@gmail.com */ public class MDObject3DHelper { public interface LoadComplete{ void onComplete(MDAbsObject3D object3D); } public static void loadObj(final Context context...
package org.elasticsearch.percolator; import com.carrotsearch.hppc.FloatArrayList; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.search.*; import org.apache.lucene.util.BytesRef; import org.elasticsearch.common.logging.ESLogger; import org.elasticsearch.common.lucene.Lucene; import org.el...
package net.java.sip.communicator.plugin.skinmanager; import java.util.*; import net.java.sip.communicator.service.gui.*; import net.java.sip.communicator.util.*; import org.jitsi.service.configuration.*; import org.osgi.framework.*; /** * The <tt>BundleActivator</tt> of the SkinManager plugin. * * @author Yana...
<?php namespace ZfcUserTest\Validator; use ZfcUserTest\Validator\TestAsset\AbstractRecordExtension; class AbstractRecordTest extends \PHPUnit_Framework_TestCase { /** * @covers ZfcUser\Validator\AbstractRecord::__construct */ public function testConstruct() { $options = array('key'=>'va...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class GetText : MonoBehaviour { public Text msg; private string DefaultWarn = "Enter all fields"; // Use this for initialization void Start () { msg.text = DefaultWarn; } // Update is called once...
.oo-ui-icon-arrowNext { background-image: url('themes/wikimediaui/images/icons/arrowNext-ltr.png'); background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/arrowNext-ltr.svg'); } .oo-ui-icon-arrowPrevious { background-image: url('themes/wikimediaui/images/ic...
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('base', '0006_auto_20170123_0429'), ] operations = [ migrations.RemoveField( model_name='roster', ...