text
stringlengths
3
1.05M
"""Common resources used in the gRPC route guide example.""" import json import route_guide_pb2 def read_route_guide_database(): """Reads the route guide database. Returns: The full contents of the route guide database as a sequence of route_guide_pb2.Features. """ feature_list = [] with open("...
// Copyright (c) 2017 VMware, Inc. 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 // // Unless required by applic...
<?php namespace Fonte\Entity; use Estrutura\Service\AbstractEstruturaService; class FonteEntity extends AbstractEstruturaService{ protected $id; protected $id_fonte_questao; protected $nm_fonte_questao; protected $cs_ativo; }
CKEDITOR.plugins.setLang("sourcedialog","hi",{toolbar:"सोर्स",title:"सोर्स"});
.cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom { color: #762; } .cm-s-elegant span.cm-comment { color: #262; font-style: italic; line-height: 1em; } .cm-s-elegant span.cm-meta { color: #555; font-style: italic; line-height: 1em; } .cm-s-elegant span.cm-variable { color: black;...
@interface NSPopover (NSPopover_MWPopoverAddOn) - (NSInteger)showError:(NSString *)errorText continueOption:(BOOL)continueOption cancelButton:(NSString *)cancelButton; - (NSInteger)showError:(NSString *)errorText continueOption:(BOOL)continueOption okayButton:(NSString *)okButton; - (NSInteger)showError:(NSString *)er...
<?php abstract class AphrontListHTTPParameterType extends AphrontHTTPParameterType { protected function getParameterDefault() { return array(); } }
<?php namespace Concrete\Tests\Notification; use Concrete\Core\Workflow\Type; use Concrete\Core\Workflow\Workflow; use Concrete\TestHelpers\Database\ConcreteDatabaseTestCase; use Concrete\Tests\TestCase; use Concrete\Core\Notification\Alert\Filter\FilterListFactory; use Concrete\Core\Notification\Alert\Filter\FilterL...
:man_page: bson_threading Threading ========= Libbson's data structures are *NOT* thread-safe. You are responsible for accessing and mutating these structures from one thread at a time. Libbson requires POSIX threads (pthreads) on all UNIX-like platforms. On Windows, the native threading interface is used. Libbson u...
using System; using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; using Orchard.ContentManagement; using Orchard.Core.Scheduling.Models; using Orchard.Data; using Orchard.Logging; using Orchard.Tasks.Scheduling; using Orchard.Utility.Extensions; namespace Orchard.Core.Scheduling.Services...
#ifndef TEST_DEFS_HPP #define TEST_DEFS_HPP #ifdef TAP_ARRAY_SIZE #undef TAP_ARRAY_SIZE #endif // TAP_ARRAY_SIZE #define TAP_ARRAY_SIZE(A) (sizeof(A) ? sizeof(A) / sizeof(A[0]) : 0) #ifdef TAP_FILE_FUNC_LINE #undef TAP_FILE_FUNC_LINE #endif // TAP_FILE_FUNC_LINE #define TAP_FILE_FUNC_LINE std::string(__FILE__), std...
#include "xfs.h" #include "xfs_fs.h" #include "xfs_acl.h" #include "xfs_log.h" #include "xfs_trans.h" #include "xfs_sb.h" #include "xfs_ag.h" #include "xfs_alloc.h" #include "xfs_quota.h" #include "xfs_mount.h" #include "xfs_bmap_btree.h" #include "xfs_dinode.h" #include "xfs_inode.h" #include "xfs_bmap.h" #include "x...
package org.apache.skywalking.apm.collector.storage.h2.define.imp; import org.apache.skywalking.apm.collector.core.storage.TimePyramid; import org.apache.skywalking.apm.collector.core.util.Const; import org.apache.skywalking.apm.collector.storage.table.instance.InstanceMetricTable; /** * @author peng-yongsheng */...
.oo-ui-icon-indent { background-image: /* @embed */ url(themes/mediawiki/images/icons/indent-ltr.png); } .oo-ui-icon-listBullet { background-image: /* @embed */ url(themes/mediawiki/images/icons/listBullet-ltr.png); } .oo-ui-icon-listNumbered { background-image: /* @embed */ url(themes/mediawiki/images/icons/listNu...
(function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module unless amdModuleId is set define('videojs-contrib-ads', ["videojs"], function (a0) { return (factory(a0)); }); } else if (typeof exports === 'object') { // Node. Does not work...
import os.path as op import warnings from numpy.testing import assert_raises from mne import io, read_events, Epochs, read_cov from mne import pick_types from mne.utils import run_tests_if_main, requires_sklearn from mne.viz.utils import _fake_click from mne.preprocessing import ICA, create_ecg_epochs, create_eog_epo...
Puppet::Type.type(:file_line).provide(:ruby) do def exists? lines.find do |line| line.chomp == resource[:line].chomp end end def create if resource[:match] handle_create_with_match() else handle_create_without_match() end end def destroy local_lines = lines Fil...
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="success">All data has been downloaded successfully.</string> <string name="app_name">Downloader Test</string> <string name="download_again">Download again</string> <string name="download_activity_title">Downloading</string> <string na...
using System.Text; using Abp.Extensions; namespace Abp.WebApi.Controllers.Dynamic.Scripting.jQuery.Actions { internal class HttpDeleteActionScriptProxyGenerator : ActionScriptProxyGenerator { private const string AjaxParametersTemplate = @" url: abp.appPath + '{url}', type: '{ty...
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "file": "plugins/com.ionic.keyboard/www/keyboard.js", "id": "com.ionic.keyboard.keyboard", "clobbers": [ "cordova.plugins.Keyboard" ] }, { "file": "plugins/org....
''' Installation of Cygwin packages. A state module to manage cygwin packages. Packages can be installed or removed. .. code-block:: yaml dos2unix: cyg.installed ''' from __future__ import absolute_import import logging LOG = logging.getLogger(__name__) def __virtual__(): ''' Only load if cyg mo...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>QUnit Test Suite</title> <link rel="stylesheet" href="../design/video-js.css" type="text/css"> <!--[if IE]> <script src="https://getfirebug.com/firebug-lite.js" type="text/javascript" charset="utf-8"></script> <![endif]--> <!-- Video.js So...
call get_local_text npm_install npm install echo %npm_install% cd /D %~1 start /wait cmd /c "echo %npm_install% & npm install -g bower brunch nodemon sendwithus" cd /D %work_directory%
<?php /** * @see Zend_Tool_Project_Provider_Abstract */ #require_once 'Zend/Tool/Project/Provider/Abstract.php'; /** * @see Zend_Tool_Framework_Provider_Pretendable */ #require_once 'Zend/Tool/Framework/Provider/Pretendable.php'; /** * @see Zend_Tool_Project_Profile_Iterator_ContextFilter */ #require_once 'Ze...
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
namespace { bool IsFullScreenMode(content::WebContents* web_contents, Browser* browser) { DCHECK(web_contents); DCHECK(browser); // PWA uses the title bar as a substitute for LocationBarView. if (web_app::AppBrowserController::IsWebApp(browser)) return false; BrowserView* browser_view = BrowserView::Ge...
package mesosphere.marathon.state import scala.language.implicitConversions case class PathId(path: List[String], absolute: Boolean = true) extends Ordered[PathId] { def root: String = path.headOption.getOrElse("") def rootPath: PathId = PathId(path.headOption.map(_ :: Nil).getOrElse(Nil), absolute) def tail...
module Rack module Access module Capture module Watcher class BaseAdapter def request_capture(env) # this should be overridden by concrete adapters end def response_capture(env, http_status_code, header) # this should be overridden by concrete ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Phaser Source: src/physics/p2/RotationalSpring.js</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/default.css"> <link type="te...
Clazz.declarePackage ("J.render"); Clazz.load (["J.render.ShapeRenderer"], "J.render.HoverRenderer", ["JU.P3", "J.render.TextRenderer", "JU.Txt"], function () { c$ = Clazz.decorateAsClass (function () { this.tempXY = null; this.ptTemp = null; Clazz.instantialize (this, arguments); }, J.render, "HoverRenderer", J....
package org.apache.camel.processor; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import javax.xml.transform.TransformerException; import javax.xml.transform.stream.StreamSource; import org.apache.camel.ContextTestSupport; import org.apache.camel.Exchange; import org.a...
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="TEXT/HTML; CHARSET=utf8"> <head> <style> .testDiv { width: 308px; border: 1px solid black; white-space: nowrap; overflow: hidden; margin: 0 0 20px 0; text-align: right; text-overflow: ellipsis; } .rtl { direction: rtl; unicode-bidi: bidi-over...
-include $(TOPDIR)/Make.defs DELIM ?= $(strip /) ifeq ($(WINTOOL),y) INCDIROPT = -w endif DEPPATH = --dep-path . ASRCS = CSRCS = VPATH = . # Include support for various drivers. Each Make.defs file will add its # files to the source file list, add its DEPPATH info, and will add # the appropriate paths to the VPATH ...
package org.elasticsearch.action.update; import org.elasticsearch.action.ClientAction; import org.elasticsearch.client.Client; /** */ public class UpdateAction extends ClientAction<UpdateRequest, UpdateResponse, UpdateRequestBuilder> { public static final UpdateAction INSTANCE = new UpdateAction(); public...
local pl_string = require "pl.stringx" local utils = require "kong.tools.utils" local type = type local pairs = pairs local remove = table.remove local _M = {} -- Parses a form value, handling multipart/data values -- @param `v` The value object -- @return The parsed value local function parse_value(v) return type...
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("Gr...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="robots" content="index, follow, all" /> <title>Thelia\Model\Base\CategoryAssociatedContent | </title> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css"> ...
typedef struct NByteWriterVTable NByteWriterVTable; struct NByteWriterVTable { void (*write_byte)(NByteWriter*, uint8_t, NError*); void (*write_u16)(NByteWriter*, uint16_t, NError*); void (*write_i16)(NByteWriter*, int16_t, NError*); void (*write_u32)(NByteWriter*, uint32_t, NError*); void (*w...
// ++++++++++++++++++++++++++++++++++++++++++++++++ // NOTICE!! THIS JAVASCRIPT IS USED JUST FOR DOCS // YOU MAY NEED SOME CODE FOR YOUR PROJECT // NOT INCLUDE THIS FILES AS IS // ++++++++++++++++++++++++++++++++++++++++++++++++ (function($, window, document){ $(function() { // document.ready /////////////////...
/* ONOS GUI -- Topology Oblique View Module. Provides functionality to view the topology as two planes (packet & optical) from an oblique (side-on) perspective. */ (function () { 'use strict'; // injected refs var sus, flash; // api to topoForce var api; /* force() ...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (root, factory) { var freeExports = typeof exports == 'object' && exports && (typeof root == 'object' && root && root == root.global && (window = root), exports); /...
.class synthetic Lcom/android/server/input/PersistentDataStore$1; .super Ljava/lang/Object; .source "PersistentDataStore.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/android/server/input/PersistentDataStore; .end annotation .annotation system Ldalvik/annotation/InnerClas...
package org.drools.workbench.screens.dtablexls.backend.server.conversion.builders; import org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52; /** * Interface for additional responsibilities for Guided Decision Table builders */ public interface GuidedDecisionTableSourceBuilderDirect ...
var api = require('./api'), admin = require('./admin'), frontend = require('./frontend'); module.exports = { apiBaseUri: '/ghost/api/v0.1/', api: api, admin: admin, frontend: frontend };
namespace Seeder.Data { using System; using System.Collections.Generic; public partial class GPU { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] public GPU() { this.Computers = new HashSet...
<?php namespace PhpSpec\CodeGenerator\Generator; use PhpSpec\Locator\ResourceInterface; /** * Generates spec classes from resources and puts them into the appropriate * folder using the appropriate template. */ class SpecificationGenerator extends PromptingGenerator { /** * @param ResourceInterface $re...
require 'spec_helper' require 'qiniu/auth' require 'qiniu' require 'qiniu/misc' module Qiniu module Misc describe Misc do before :all do @bucket = 'rubysdk' end after :all do end context ".set_protected" do it "should works" do code, data = Qiniu::Misc.s...
<?php defined('BX_DOL') or die('hack attempt'); bx_import('BxDolStudioLanguagesUtilsQuery'); class BxDolStudioPolyglotQuery extends BxDolStudioLanguagesUtilsQuery { function __construct() { parent::__construct(); } function getKeyFullInfo($iId, $iPreviewLength = 10) { $sSql = $th...
<?php namespace Symfony\Component\DependencyInjection; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException; use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; /** * ContainerI...
namespace base { class SingleThreadTaskRunner; } // namespace base namespace media { class DesktopCapturer; } // namespace media namespace remoting { class CursorShapeInfo; namespace protocol { class CursorShapeInfo; class CursorShapeStub; class VideoStub; } // namespace protocol // Class responsible for schedu...
<?php namespace Symfony\Component\Serializer\Normalizer; use Symfony\Component\Serializer\Exception\CircularReferenceException; use Symfony\Component\Serializer\Exception\LogicException; use Symfony\Component\Serializer\Exception\RuntimeException; /** * Converts between objects and arrays by mapping properties. ...
require 'spec_helper' module Draper describe Factory do describe "#initialize" do it "accepts valid options" do valid_options = {with: Decorator, context: {foo: "bar"}} expect{Factory.new(valid_options)}.not_to raise_error end it "rejects invalid options" do expect{Fac...
package com.jbotelho.pyirc2.client; import android.app.Activity; import android.os.Handler; public class PushActivity extends android.app.Activity { private Handler mHandler = new Handler(); public void onResume() { super.onResume(); getAppContext().currentActivity = this; } public Push...
<?php namespace Elcodi\Plugin\StripeBundle\EventListener; use PaymentSuite\PaymentCoreBundle\Services\Interfaces\PaymentBridgeInterface; use Symfony\Component\Form\FormFactory; use Symfony\Component\Templating\EngineInterface; use Elcodi\Component\Payment\Entity\PaymentMethod; use Elcodi\Component\Payment\Event\Pa...
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Pricing\V1\Voice; use Twilio\Exceptions\TwilioException; use Twilio\InstanceResource; use Twilio\Values; use Twilio\Version; /** * @property string number * @property string cou...
var Script = require('./script'); var ECKey = require('./eckey'); var conv = require('./convert'); var util = require('./util'); var BigInteger = require('./jsbn/jsbn'); var Transaction = require('./transaction').Transaction; var TransactionIn = require('./transaction').TransactionIn; var TransactionOut = require('./...
<?php namespace Symfony\Component\Serializer\Tests; use Symfony\Component\Serializer\Serializer; use Symfony\Component\Serializer\Encoder\JsonEncoder; use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer; use Symfony\Component\Serializer\Normalizer\CustomNormalizer; use Symfony\Component\Serializer\Te...
#ifdef USE_TI_MEDIA #import "TiProxy.h" #import "AQRecorder.h" #import "TiFile.h" @interface TiMediaAudioRecorderProxy : TiProxy { @private AQRecorder *recorder; TiFile *file; NSNumber *compression; NSNumber *format; } #pragma mark Public APIs @property(nonatomic,readonly) BOOL recording; @property(nonatomic,r...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. /*============================================================ ** ** ** ** Purpose: Exception for cancelled IO requests. ** ** =========================================...
package com.balzathor.bleu; import android.graphics.Bitmap; import java.text.SimpleDateFormat; import java.util.Date; public class MessageBox { private String sender; private String message; private Bitmap image; private Date time; private boolean self; private boolean isImage; public ...
' 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.Runtime.CompilerServices Imports System.Threading Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasi...
layout: post title: "How to configure CSP Headers for Static Website Hosted in Azure Blob Storage" subtitle: "This post is about configuring CSP Header for Static Website Hosted in Azure Blob Storage." date: 2020-12-08 00:00:00 categories: [Azure,Security] tags: [Azure,Security] author: "Anuraj" image: /assets/images/2...
using content::BrowserThread; namespace extensions { // Helper function to parse greasesmonkey headers static bool GetDeclarationValue(const base::StringPiece& line, const base::StringPiece& prefix, std::string* value) { base::StringPiece::size_type in...
namespace System.Reflection { public static class AssemblyExtensions { public static Type[] GetExportedTypes(this Assembly assembly); public static Module[] GetModules(this Assembly assembly); public static Type[] GetTypes(this Assembly assembly); } public enum BindingFlags { DeclaredOnly = 2, ...
#include <memory> #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" #include "mlir/IR/Builders.h" // from @llvm-project #include "mlir/IR/BuiltinOps.h" // from @llvm-project #include "mlir/Pass/Pass.h" // from @llvm-project #include "mlir/Pass/PassRegistry.h" // from @llvm-project #include "mlir/...
layout: command title: Command lang: en --- # services google calendar event list List Google Calendar events # Security `watermint toolbox` stores credentials into the file system. That is located at below path: | OS | Path | |---------|---------...
package com.intellij.codeInspection.bytecodeAnalysis; import com.intellij.codeInspection.bytecodeAnalysis.asm.ASMUtils; import com.intellij.codeInspection.bytecodeAnalysis.asm.ControlFlowGraph; import com.intellij.util.SingletonSet; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; i...
i = 1 # there is no NEWLINE at the end of the code
using System; using System.IO; using System.ComponentModel; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using ChargeBee.Internal; using ChargeBee.Api; using ChargeBee.Models.Enums; namespace ChargeBee.Models { public class Coupon : Resource { #region M...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- Facebook sharing information tags --> <meta property="og:title" content...
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic); /*! * AdminLTE v2.1.2 * Author: Almsaeed Studio * Website: Almsaeed Studio <http://almsaeedstudio.com> * License: Open source - MIT * Please visit http://opensource.org/licenses/MIT ...
/* * 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...
class AboutSigninInternals; class Profile; // Singleton that owns all AboutSigninInternals and associates them with // Profiles. class AboutSigninInternalsFactory : public BrowserContextKeyedServiceFactory { public: // Returns the instance of AboutSigninInternals associated with this profile, // creating one if n...
import java.util.ArrayList; public class Test extends ArrayList<String> { void test() { new Runnable() { @Override public void run() { int sum = 0; for (String s : Test.this) { int length = s.length(); sum += length; } System.out.pri...
<!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.5.0_13) on Sun Jun 29 16:46:40 MSD 2008 --> <TITLE> EscherProperties (POI API Documentation) </TITLE> <META NAME="keywords" CONTENT="org.apache...
import gcm = require('node-gcm'); // Create a message // ... with default values var message = new gcm.Message(); // ... or some given values var message = new gcm.Message({ collapseKey: 'demo', delayWhileIdle: true, timeToLive: 3, data: { key1: 'message1', key2: 'message2' } }); ...
package com.lzy.imagepicker.ui; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.util.DisplayMetrics; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; impor...
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.custom.deserializer; import javax.xml.namespace.QName; import org.eclipse.emf.common.util.BasicEList; import org.eclipse.emf.common.util.EList; import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart; import org.wso2.developerstudio.eclipse.gmf...
// Set implementation -*- C++ -*- // Copyright (C) 2001-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundatio...
/* line 45, ../../../ext-theme-neutral/sass/src/layout/container/Accordion.scss */ .x5-accordion-hd .x5-tool-collapse-top, .x5-accordion-hd .x5-tool-collapse-bottom { background-position: 0 -255px; } /* line 50, ../../../ext-theme-neutral/sass/src/layout/container/Accordion.scss */ .x5-accordion-hd .x5-tool-expand-to...
package seedu.flexitrack.commons.util; import javafx.scene.Node; import javafx.scene.layout.AnchorPane; /** * Contains utility methods for JavaFX views */ public class FxViewUtil { public static void applyAnchorBoundaryParameters(Node node, double left, double right, double top, double bottom) { Anchor...
package org.apache.hadoop.net.unix; import java.io.Closeable; import org.apache.hadoop.classification.InterfaceAudience; import java.io.FileDescriptor; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.channels.ClosedChannelException; ...
.cm-s-solarized.CodeMirror { -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; } .highlight, .code-toggle.open { background-color: #fdf6e3; } .cm-s-solarized .cm-comment { color: #93a1a1; } .CodeMirror, .CodeMirror-scroll { height: auto; }
<?php namespace Zend\Db\TableGateway\Exception; use Zend\Db\Exception; interface ExceptionInterface extends Exception\ExceptionInterface { }
var login = require('../index.js'); var fs = require('fs'); var assert = require('assert'); var conf = JSON.parse(fs.readFileSync('test/test-config.json', 'utf8')); var credentials = { email: conf.user.email, password: conf.user.password, }; var userIDs = conf.userIDs; var options = { selfListen: true, liste...
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (C) 2012 The Android Open Source Project 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/licens...
package io.undertow.servlet.test.security.ssl; import java.io.IOException; import java.io.PrintWriter; import java.security.cert.X509Certificate; import javax.servlet.ServletException; import javax.servlet.annotation.HttpConstraint; import javax.servlet.annotation.ServletSecurity; import javax.servlet.http.HttpServl...
ActiveRecord::Schema.define(:version => 20100412062912) do create_table "projects", :force => true do |t| t.string "name" t.datetime "created_at" t.datetime "updated_at" end create_table "tasks", :force => true do |t| t.integer "project_id" t.string "name" t.datetime "completed_at" ...
namespace boost { namespace asio { namespace detail { template <typename Time_Traits> class deadline_timer_service { public: // The time type. typedef typename Time_Traits::time_type time_type; // The duration type. typedef typename Time_Traits::duration_type duration_type; // The implementation type of th...
package cn.xaut.shop.action; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.ServletActionContext; import cn.xaut.shop.pojo.MarginDetail; import cn.xaut.shop.pojo.Shop; import cn.xaut.shop.pojo.UserInfo; /* * ...
const DrawCard = require('../../drawcard.js'); class Confinement extends DrawCard { setupCardAbilities() { this.action({ title: 'Remove icons from character', target: { cardCondition: card => this.cardCondition(card) }, handler: context => { ...
import * as React from 'react' import { compose, createStore, Reducer, Store, StoreEnhancerStoreCreator } from 'redux' import { Provider } from 'react-redux' import { createDevTools, persistState } from 'redux-devtools' declare var reducer: Reducer<any> class DevToolsMonitor extends React.Component<any, any> { } con...
package com.ogaclejapan.arclayout.demo; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.content.Context; import android.content.Intent; import android.os.Build; import android.os.Bundle; i...
// Copyright 2012 Google Inc. 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 // // Unless required by applicable law or...
package org.keycloak.transaction; import org.keycloak.provider.Provider; import org.keycloak.provider.ProviderFactory; import org.keycloak.provider.Spi; /** * @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a> */ public class TransactionManagerLookupSpi implements Spi { @Override public bo...
from oslo_config import cfg from st2common import config as st2cfg from st2common.constants.system import VERSION_STRING from st2common.constants.auth import DEFAULT_MODE from st2common.constants.auth import DEFAULT_BACKEND from st2common.constants.auth import VALID_MODES from st2auth.backends import get_available_bac...
<?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="RecyclerView"><attr format="string" name="layoutManager"/><attr name="android:orientation"/><attr format="integer" name="spanCount"/><attr format="boolean" name="reverseLayout"/><attr format="boolean" name="stackFromEnd"/></declare-styleabl...
#include "Benchmark.h" #include "SkRandom.h" #include "SkRegion.h" #include "SkString.h" static bool union_proc(SkRegion& a, SkRegion& b) { SkRegion result; return result.op(a, b, SkRegion::kUnion_Op); } static bool sect_proc(SkRegion& a, SkRegion& b) { SkRegion result; return result.op(a, b, SkRegi...
import isEqual from 'lodash-es/isEqual'; import Item from './item'; export default class RadioItem extends Item { constructor() { super(); this._root .classed('radio', true) .styles({ 'cursor': 'pointer' }); this._check = this .icon('ion-ios-checkmark-empty') .seco...
using System.Reflection; using System.Diagnostics.Tracing; namespace System.Management.Automation.Internal { /// <summary> /// This wrapper is for encapsulating all the internal details of Asimov-compatible telemetry in Windows Threshold. /// </summary> internal static class TelemetryWrapper { ...