text
stringlengths
3
1.05M
using Nest.Resolvers.Converters; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Nest { public class CancelClusterRerouteCommand : IClusterRerouteCommand { [JsonIgnore] public string Name { get { return "cancel"; } } [JsonProperty("index"...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.CodeAnalysis.Structure { internal static class BlockTypes { // Basic types. public const string Nonstructural = n...
EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} --build . --config Debug) EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} --build . --config RelWithDebInfo) EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_CONFIG_NAME=Debug -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} -P cmake_insta...
#include "SDL_pspvideo.h" /* Functions to be exported */
.oo-ui-icon-alignCentre { background-image: /* @embed */ url(themes/apex/images/icons/align-center.svg); } .oo-ui-icon-alignLeft { background-image: /* @embed */ url(themes/apex/images/icons/align-float-left.svg); } .oo-ui-icon-alignRight { background-image: /* @embed */ url(themes/apex/images/icons/align-float-rig...
package com.extendedsharedpreferences; import android.content.Context; import android.content.SharedPreferences; import com.extendedsharedpreferences.converter.Converter; import java.io.IOException; import java.lang.reflect.Type; import java.util.Map; import java.util.Set; class ExtendedSharedPreferencesImpl implem...
#import "CCActionGrid.h" /** CCShakyTiles3D action */ @interface CCShakyTiles3D : CCTiledGrid3DAction { int randrange; BOOL shakeZ; } /** creates the action with a range, whether or not to shake Z vertices, a grid size, and duration */ +(id)actionWithRange:(int)range shakeZ:(BOOL)shakeZ grid:(ccGridSize)gridSize...
<div class="cal-week-box"> <div class="cal-offset1 cal-column"></div> <div class="cal-offset2 cal-column"></div> <div class="cal-offset3 cal-column"></div> <div class="cal-offset4 cal-column"></div> <div class="cal-offset5 cal-column"></div> <div class="cal-offset6 cal-column"></div> <div class="cal-row-fluid ca...
package com.webfirmframework.wffweb.server.page; import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets; import java.util.ArrayDeque; import java.util.Collection; import java.util.Deque; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.Map; import java.util.NoS...
This module works in conjunction with the [Rocket.Chat+ Module for Drupal](https://www.drupal.org/project/rocket_chat) Version 7.x-1.1 or later. A full set of instructions for how to connect the 2 are present in the drupal module's documentation. Basically to connect the 2 you first setup the oAuth server connection...
int Factorial(int n) { int result = 1; for (int i = 1; i <= n; i++) { result *= i; } return result; } // Returns true if and only if n is a prime number. bool IsPrime(int n) { // Trivial case 1: small numbers if (n <= 1) return false; // Trivial case 2: even numbers if (n % 2 == 0) return n == 2;...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Symbols; namespace Microsoft...
// Copyright 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. package org.chromium.base; import android.os.Handler; import android.os.Looper; import android.os.Process; import java.util.concurrent.Callable; import ...
Shindo.tests('Fog::Rackspace::Queues | messages_tests', ['rackspace']) do service = Fog::Rackspace::Queues.new queue_name = 'fog' + Time.now.to_i.to_s client_id = service.client_id message_id = nil service.create_queue(queue_name) begin tests('success') do tests("#list_message(#{client_id}, #{q...
package twitter4j; /** * @author Yusuke Yamamoto - yusuke at mac.com * @since Twitter4J 2.2.4 */ public class FavoritesResourcesTest extends TwitterTestBase { public FavoritesResourcesTest(String name) { super(name); } protected void tearDown() throws Exception { super.tearDown(); ...
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ItemProperties.cs" company="Exit Games GmbH"> // Copyright (c) Exit Games GmbH. All rights reserved. // </copyright> // <summary> // The client receives this event after exec...
package com.intellij.remoteServer.configuration; import com.intellij.remoteServer.ServerType; import org.jetbrains.annotations.NotNull; /** * @author nik */ public interface RemoteServer<C extends ServerConfiguration> { @NotNull String getName(); @NotNull ServerType<C> getType(); @NotNull C getConfigu...
package main import ( "flag" "fmt" "go-board-money/parsebank" "go-board-money/pick" ) var todir string // функция парсинга аргументов программы func parse_args() bool { flag.StringVar(&todir, "todir", "", "Конечная папка для выгрузки результируюих файлов.") flag.Parse() if todir == "" { todir = "" } retur...
import { expect } from "chai"; import { decode as decodeJwt, sign as signJwt, JwtHeader } from "jsonwebtoken"; import { FirebaseJwtPayload, CUSTOM_TOKEN_AUDIENCE } from "../../../emulator/auth/operations"; import { PROVIDER_CUSTOM } from "../../../emulator/auth/state"; import { describeAuthEmulator, PROJECT_ID } from "...
Kth Largest Element #region Brute Force Sort and find // O(N lgN) time + O(1) space public int FindKthLargest(int[] nums, int k) { int N = nums.Length; Array.Sort(nums); return nums[N - k]; } #end #region Using MaxHeap // ...
package com.github.grantwest.sparkj.SparkCloudJsonObjects; public abstract class TokenBase implements IToken { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !(o instanceof IToken)) return false; IToken that = (IToken) o; if (getClient...
var f = function(n) { n.prototype = {}; // Make this count as a type construction function f(n()); // Push an IsCallee constraint from the body }; f(f); // Create a self-referential type var x = [x]; // Force analysis x[0]; //: [?] function goop(n) { n.prototype = {}; return function(f){f(1);}; }; goop(1)(go...
import pytest from ..validators import ValidationError from decimal import Decimal import datetime as dt from strictdict import fields as f def test_string(): ff = f.String() with pytest.raises(ValidationError): ff._validate(123) result = ff._validate('text') assert result == 'text' def test...
from south.db import db from south.v2 import SchemaMigration class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'FacebookAccessToken' db.create_table('facebook_facebookaccesstoken', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True))...
export PY2_ROOT=$IROOT/py2 export PY2=$PY2_ROOT/bin/python export PY2_PIP=$PY2_ROOT/bin/pip export PY2_GUNICORN=$PY2_ROOT/bin/gunicorn export PY3_ROOT=$IROOT/py3 export PY3=$PY3_ROOT/bin/python3 export PY3_PIP=$PY3_ROOT/bin/pip3 export PY3_GUNICORN=$PY3_ROOT/bin/gunicorn mkdir -p $IROOT/.pip_cache export PIP_DOWNLOAD...
<?php /** * API2 roles controller * * @category Mage * @package Mage_Api2 * @author Magento Core Team <core@magentocommerce.com> */ class Mage_Api2_Adminhtml_Api2_RoleController extends Mage_Adminhtml_Controller_Action { /** * Show grid */ public function indexAction() { $...
#ifndef _STDC_PREDEF_H #define _STDC_PREDEF_H 1 /* This header is separate from features.h so that the compiler can include it implicitly at the start of every compilation. It must not itself include <features.h> or any other header that includes <features.h> because the implicit include comes before any f...
<?php namespace Fxp\Composer\AssetPlugin\Util; use Composer\Composer; use Composer\IO\IOInterface; use Composer\Repository\RepositoryManager; use Composer\Package\PackageInterface; use Fxp\Composer\AssetPlugin\Assets; use Fxp\Composer\AssetPlugin\Installer\AssetInstaller; use Fxp\Composer\AssetPlugin\Installer\Bowe...
/*! \file LowerInvoke.cpp \brief This file lowers the following bytecodes: INVOKE_XXX */ #include "libdex/DexOpcodes.h" #include "libdex/DexFile.h" #include "mterp/Mterp.h" #include "Lower.h" #include "NcgAot.h" #include "enc_wrapper.h" char* streamMisPred = NULL; /* according to callee, decide the ArgsDoneTyp...
require "rspec" require "rspec/its" require "fauxhai" RSpec.configure do |config| # Basic configuraiton config.run_all_when_everything_filtered = true config.filter_run(:focus) config.add_formatter("documentation") # Run specs in random order to surface order dependencies. If you find an # order dependenc...
exports.encrypt = function (self, block) { return self._cipher.encryptBlock(block) } exports.decrypt = function (self, block) { return self._cipher.decryptBlock(block) }
// FileURL.java - Construct a file: scheme URL package mf.org.apache.xml.resolver.helpers; import java.net.URL; import java.net.MalformedURLException; /** * Static method for dealing with file: URLs. * * <p>This class defines a static method that can be used to construct * an appropriate file: URL...
<!-- ******************************************************************************** WARNING: DO NOT EDIT "tomcat/README.md" IT IS AUTO-GENERATED (from the other files in "tomcat/" combined with a set of templates) ******************************************************************************** --> ...
package org.hswebframework.web.controller; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import org.hswebframework.web.authorization.Permission; import org.hswebframework.web.authorization.annotation.Authorize; import org.hswebframe...
'use strict'; describe('Controller: MainCtrl', function() { // load the controller's module beforeEach(module('yapp')); var MainCtrl; var scope; // Initialize the controller and a mock scope beforeEach(inject(function($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $controller('M...
class Chronoagent < Cask version 'latest' sha256 :no_check url 'http://downloads.econtechnologies.com/CA_Mac_Download.dmg' homepage 'http://www.econtechnologies.com' install 'Install.pkg' uninstall :pkgutil => 'com.econtechnologies.pkg.ChronoAgent' end
/*! * \file graph_executor.h * \brief Executor to execute the computation graph. */ #ifndef MXNET_EXECUTOR_GRAPH_EXECUTOR_H_ #define MXNET_EXECUTOR_GRAPH_EXECUTOR_H_ #include <mxnet/base.h> #include <mxnet/ndarray.h> #include <mxnet/operator.h> #include <mxnet/executor.h> #include <nnvm/graph.h> #include <nnvm/op...
A special form of VMMaker to suit Windows machines. Copies files around a little.
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may no...
// 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.IO; namespace Microsoft.CodeAnalysis.SymbolSearch { /// <summary> /// Used...
package org.elasticsearch.bootstrap; import com.sun.jna.Native; import com.sun.jna.Structure; import org.apache.lucene.util.Constants; import org.elasticsearch.common.logging.ESLogger; import org.elasticsearch.common.logging.Loggers; import java.util.Arrays; import java.util.List; /** * java mapping to some libc...
#pragma once #include "gport.h" #include "buildver.h" //! \brief This class adds extends GPort interface. /*! Two methods are added : \li setColorCorrectedState : when set to TRUE, the color picker will be affected by color correction, when set to FALSE, the color picker will not be affected by color co...
package org.jboss.as.quickstarts.gwthelloworld.client.local; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootPanel; /** * When the script is loaded in the web browser, the generated GWT code creates an instance of this class, then calls its * {@link #onModuleLoad()} method. F...
Article 2252 ---- Celui qui ne peut exercer par lui-même ses droits ne peut renoncer seul à la prescription acquise.
define("dojo/request/notify", ['../Evented', '../_base/lang', './util'], function(Evented, lang, util){ // module: // dojo/request/notify // summary: // Global notification API for dojo/request. Notifications will // only be emitted if this module is required. // // | require('dojo/request', 'dojo/request/no...
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AT...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
<html> <head> <title> Bosses cash in on U.S. war drive </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include "../../legacy-includes/Script.htmlf" ?> </head> <body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0"> <table...
package leafnodes import ( "encoding/json" "github.com/onsi/ginkgo/internal/failer" "github.com/onsi/ginkgo/types" "io/ioutil" "net/http" "time" ) type synchronizedAfterSuiteNode struct { runnerA *runner runnerB *runner outcome types.SpecState failure types.SpecFailure runTime time.Duration } func NewSyn...
START_ATF_NAMESPACE struct _RPC_SECURITY_QOS { unsigned int Version; unsigned int Capabilities; unsigned int IdentityTracking; unsigned int ImpersonationType; }; END_ATF_NAMESPACE
package org.tensorflow.op; import java.util.HashMap; import java.util.Map; import java.util.regex.Pattern; /** * A class to manage scoped (hierarchical) names for operators. * * <p>{@code NameScope} manages hierarchical names where each component in the hierarchy is * separated by a forward slash {@code '/'}. F...
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
package com.google.common.geometry; /** * This class represents a point on the unit sphere as a pair of * latitude-longitude coordinates. Like the rest of the "geometry" package, the * intent is to represent spherical geometry as a mathematical abstraction, so * functions that are specifically related to the Eart...
#ifndef TENSORFLOW_COMPILER_XLA_SERVICE_CPU_DISASSEMBLER_H_ #define TENSORFLOW_COMPILER_XLA_SERVICE_CPU_DISASSEMBLER_H_ #include <memory> #include <string> #include "llvm/MC/MCContext.h" #include "llvm/MC/MCDisassembler/MCDisassembler.h" #include "llvm/MC/MCInstPrinter.h" #include "llvm/MC/MCInstrAnalysis.h" #inclu...
YUI.add('editor-tab', function (Y, NAME) { /** * Handles tab and shift-tab indent/outdent support. * @class Plugin.EditorTab * @constructor * @extends Base * @module editor * @submodule editor-tab */ var EditorTab = function() { EditorTab.superclass.constructor.appl...
We performed our measurements using automated, customizable, portable and reproducible [Collective Knowledge](http://cknowledge.org) workflows. Our workflows automatically install dependencies (models, datasets, etc.), preprocess input data in the correct way, and so on. ## CK repositories As CK is always evolving, i...
<!doctype html> <html> <script> // If the page doesn't have a script in it, inject doesn't seem to work. WAT </script> <head> </head> <body> </body> </html>
package org.juniversal.translator.csharp; import org.eclipse.jdt.core.dom.*; import org.jetbrains.annotations.Nullable; import org.juniversal.translator.core.ASTNodeWriter; import org.juniversal.translator.core.AccessLevel; import org.juniversal.translator.core.JUniversalException; import java.util.ArrayList; impor...
var isArguments = require('./isArguments'), isArray = require('./isArray'), isFunction = require('./isFunction'), isLength = require('../internal/isLength'), isObjectLike = require('../internal/isObjectLike'), isString = require('./isString'), keys = require('../object/keys'); /** * Checks if ...
package org.apache.camel.component.urlrewrite.http; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.urlrewrite.BaseUrlRewriteTest; import org.apache.camel.component.urlrewrite.HttpUrlRewrite; import org.apache.camel.impl.JndiRegistry; import org.junit.Test; /** * */ public class Htt...
import {AbsoluteFsPath, ReadonlyFileSystem} from '@angular/compiler-cli/private/localize'; import {DiagnosticHandlingStrategy, Diagnostics} from '../../diagnostics'; import {TranslationBundle} from '../translator'; import {ParseAnalysis, TranslationParser} from './translation_parsers/translation_parser'; /** * Use ...
var _curry1 = require('./internal/_curry1'); /** * Makes a comparator function out of a function that reports whether the first * element is less than the second. * * @func * @memberOf R * @since v0.1.0 * @category Function * @sig (a, b -> Boolean) -> (a, b -> Number) * @param {Function} pred A predicate fun...
package gov.nih.nci.caintegrator.domain.application; import java.util.HashMap; import java.util.Locale; import java.util.Map; /** * Possible entity type values for <code>AbstractAnnotationCriterion.entityType</code>. */ public enum EntityTypeEnum { /** * Subject type. */ SUBJECT("subject"), ...
/* jshint browser: true */ (function () { // The properties that we copy into a mirrored div. // Note that some browsers, such as Firefox, // do not concatenate properties, i.e. padding-top, bottom etc. -> padding, // so we have to do every single property specifically. var properties = [ 'direction', // RTL suppo...
package grpc import ( "context" "fmt" "net" "time" "google.golang.org/grpc/backoff" "google.golang.org/grpc/balancer" "google.golang.org/grpc/credentials" "google.golang.org/grpc/internal" internalbackoff "google.golang.org/grpc/internal/backoff" "google.golang.org/grpc/internal/envconfig" "google.golang...
/***************************************************************************/ /* */ /* type1cid.c */ /* */ /* ...
from oslo_log import log as logging import oslo_messaging as messaging from oslo_utils import strutils import six import webob from cinder.api import extensions from cinder.api.openstack import wsgi from cinder.api import xmlutil from cinder import exception from cinder.i18n import _ from cinder import utils from cind...
// 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 "chrome/browser/chromeos/login/existing_user_controller.h" #include <vector> #include "base/bind.h" #include "base/bind_helpers.h" #include...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>info.cukes</groupId> <artifac...
// // FastttCapturedImage+Process.h // FastttCamera // // Created by Laura Skelton on 3/2/15. // // #import "FastttCapturedImage.h" /** * Private category used by FastttCamera for processing FastttCapturedImages. */ @interface FastttCapturedImage (Process) /** * Processes the captured image by cropping and r...
class Ship : public Model { public: Ship(QOpenGLWidget *_glWidget, std::shared_ptr<OffModel> _offModel, const GLuint &_shaderProgram, float _scale, const QVector3D &_initialPosition); ~Ship(); void MoveLeft(); void MoveRight(); void MoveUp(); }; #endif // SHIP_H
#ifdef AWS_MULTI_FRAMEWORK #import <AWSRuntime/AmazonServiceRequestConfig.h> #else #import "../AmazonServiceRequestConfig.h" #endif /** * Create Key Pair Request */ @interface EC2CreateKeyPairRequest:AmazonServiceRequestConfig { BOOL dryRun; BOOL dryRunIsSet; NSString *keyName; } /** *...
/* * $Id: IdentityConstraintHandler.cpp 803869 2009-08-13 12:56:21Z amassari $ */ // --------------------------------------------------------------------------- // Includes // --------------------------------------------------------------------------- #include "IdentityConstraintHandler.hpp" #include <xercesc/va...
/** * Created by hanwencheng on 2/19/16. */ import DB from '../../lib/db-interface.js'; import {logger} from '../../lib/logger' export default function cityList(req, params) { logger.trace('in city list we receive params are', params) return new Promise((resolve, reject)=>{ DB.getCityList(function(result){...
<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>statsmodels.sandbox.distributions.transformed.Trans...
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
package android.webkit; import android.text.TextUtils; import java.util.regex.Pattern; import libcore.net.MimeUtils; /** * Two-way map that maps MIME-types to file extensions and vice versa. * * <p>See also {@link java.net.URLConnection#guessContentTypeFromName} * and {@link java.net.URLConnection#guessContentT...
// Copyright 2014 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. 'use strict'; /** * @type {Object} * @const */ var TESTING_A_DIRECTORY = Object.freeze({ isDirectory: true, name: 'a', size: 0, modificationTi...
Structs contains various utilities to work with Go (Golang) structs. It was initially used by me to convert a struct into a `map[string]interface{}`. With time I've added other utilities for structs. It's basically a high level package based on primitives from the reflect package. Feel free to add new functions or imp...
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (C) 2014 ZXing 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required b...
/* Webfont: Lato-BlackItalic */@font-face { font-family: 'LatoBlack'; src: url('Lato-BlackItalic.eot'); /* IE9 Compat Modes */ src: url('Lato-BlackItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('Lato-BlackItalic.woff') format('woff'), /* Modern Browsers */ url('Lato-Bla...
"use strict"; var jsdom = require("../.."); exports["html form should implement the reset() method"] = function (t) { var doc = jsdom.jsdom(); var form = doc.createElement("form"); var text = doc.createElement("input"); text.type = "text"; var checkbox = doc.createElement("input"); checkbox.type = "checkb...
using System.Collections.Generic; using OpenMetaverse; namespace Aurora.ScriptEngine.AuroraDotNetEngine.MiniModule { /// <summary> /// This implements the methods neccesary to operate on the inventory of an object /// </summary> public interface IObjectInventory : IDictionary<UUID, IInven...
@interface MOBProjectionEPSG6160 : MOBProjection @end
/////////////////////////////////////////////////////////////////////////////// // Name: wx/osx/config_xcode.h // Purpose: configurations for xcode builds // Author: Stefan Csomor // Modified by: // Created: 29.04.04 // Copyright: (c) wxWidgets team // Licence: wxWindows licence //////////////...
namespace cc { namespace { class RasterBufferImpl : public RasterBuffer { public: RasterBufferImpl(ResourceProvider* resource_provider, const Resource* resource, SkMultiPictureDraw* multi_picture_draw) : resource_provider_(resource_provider), resource_(resource), ...
/** * Combine all reducers in this file and export the combined reducers. * If we were to do this in store.js, reducers wouldn't be hot reloadable. */ import { combineReducers } from 'redux-immutable'; import { fromJS } from 'immutable'; import { LOCATION_CHANGE } from 'react-router-redux'; import languageProviderR...
#region License #endregion namespace System.Threading.Async { /// <summary> /// SimpleAsyncResult /// </summary> internal sealed class SimpleAsyncResult : IAsyncResult { private readonly object _asyncState; private bool _completedSynchronously; private volatile b...
<?php declare(strict_types=1); namespace Sylius\Behat\Context\Ui; use Behat\Behat\Context\Context; use Sylius\Behat\Page\Admin\Channel\CreatePageInterface; use Sylius\Behat\Page\Shop\HomePageInterface; use Sylius\Behat\Service\Setter\ChannelContextSetterInterface; use Sylius\Behat\Service\SharedStorageInterface; u...
Enters edit mode for the specified record and field. <div class="definition"> editField(recid, column, [value], [event]) </div> <div class="arguments"> <table> <tr> <td>recid</td> <td><b>string</b>, id of the record</td> </tr> <tr> <td>column</td> <td><b>integer</b>...
<?php namespace Symfony\Component\HttpFoundation; /** * ParameterBag is a container for key/value pairs. * * @author Fabien Potencier <fabien@symfony.com> */ class ParameterBag implements \IteratorAggregate, \Countable { /** * Parameter storage. * * @var array */ protected $parameter...
package org.zstack.header.volume; /** * Created by frank on 11/12/2015. */ public interface VolumeDeletionPolicyManager { enum VolumeDeletionPolicy { Direct, Delay, Never, DBOnly } VolumeDeletionPolicy getDeletionPolicy(String volumeUuid); }
<?php namespace {{ namespace }}\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; {% if 'annotation' == format -%} use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; {% endif %} class DefaultController extends Controller { ...
require "spec_helper" describe Tabloid::Report do context "producing output" do class CsvReport DATA=[ [1, 2], [3, 4] ] include Tabloid::Report parameter :param1, "TestParameter" element :col1, 'Col1' element :col2, 'Col2' cache_key{'report'...
package org.knowm.xchange.bl3p.service; import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.knowm.xchange.Exchange; import org.knowm.xchange.bl3p.Bl3pUtils; import org.knowm.xchange.bl3p.dto.Bl3pTrade; import org.knowm.xchange.bl...
<?php /* RECEIVE VALUE */ $validateValue=$_REQUEST['fieldValue']; $validateId=$_REQUEST['fieldId']; $validateError= "This username is already taken"; $validateSuccess= "This username is available"; /* RETURN VALUE */ $arrayToJs = array(); $arrayToJs[0] = $validateId; if($validateValue =="dunca...
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Orchard.Localization.Services { internal static class PersianDateTimeFormatInfo { internal static DateTimeFormatInfo Build(DateTimeFormatInfo original) ...
package org.springframework.boot.orm.jpa.hibernate; import org.hibernate.boot.Metadata; import org.hibernate.boot.MetadataSources; import org.hibernate.boot.registry.BootstrapServiceRegistry; import org.hibernate.boot.registry.StandardServiceRegistry; import org.hibernate.boot.registry.StandardServiceRegistryBuilder...
package com.google.android.gms.samples.vision.face.multitracker; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import com.google.android.gms.vision.MultiProcessor; import com.google.android.gms.vision.Tracker; import com.google.android.gms.vision.face.Face; import com....
/* * mmconfig.c - Low-level direct PCI config space access via MMCONFIG * * This is an 64bit optimized version that always keeps the full mmconfig * space mapped. This allows lockless config space operation. */ #include <linux/pci.h> #include <linux/init.h> #include <linux/acpi.h> #include <linux/bitmap.h> #inclu...