text
stringlengths
3
1.05M
<?php namespace kcfinder; chdir(".."); chdir(".."); require "core/autoload.php"; $theme = basename(dirname(__FILE__)); $min = new minifier("css"); $min->minify("cache/theme_$theme.css");
from __future__ import unicode_literals from django.db import utils from django.db.backends.base.features import BaseDatabaseFeatures from django.utils import six from django.utils.functional import cached_property from .base import Database try: import pytz except ImportError: pytz = None class DatabaseFe...
/* Slider ----------------------------------*/ .ui-slider { position: relative; text-align: left; } .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } .ui-slider-range { position: absolute; z-index: 1; font-size: 1%; display: block; border: 0; } .ui-slider-horizontal { ...
import {EventEmitter, SimpleChanges, Output, OnInit, OnChanges, OnDestroy} from '@angular/core'; import { OptionBuilder } from '../services/option-builder'; import { NguiMap } from '../services/ngui-map'; import { NguiMapComponent } from '../components/ngui-map.component'; export abstract class BaseMapDirective implem...
/* @page jquery.model.events Events @parent jQuery.Model Models produce events that you can listen to. This is useful when there are multiple representations of the same instance on the page. If one representation is updated, the other representation should be updated. Events also provide a more traditional MVC ...
<?xml version='1.0'?> <!-- 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")...
( function ( OO ) { 'use strict'; /** * Toolbars are complex interface components that permit users to easily access a variety * of {@link OO.ui.Tool tools} (e.g., formatting commands) and actions, which are additional commands that are * part of the toolbar, but not configured as tools. * * Individual tools ar...
using NLog; using System; using System.Collections.Generic; using System.Data.Entity.Migrations; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace LoLUniverse { public class MvcApplication : System.Web.HttpApplicati...
<!-- ~ Licensed to Apereo under one or more contributor license ~ agreements. See the NOTICE file distributed with this work ~ for additional information regarding copyright ownership. ~ Apereo licenses this file to you under the Apache License, ~ Version 2.0 (the "License"); you may not use this file ~ exc...
Export Django monitoring metrics for Prometheus.io [![PyPI version](https://badge.fury.io/py/django-prometheus.svg)](http://badge.fury.io/py/django-prometheus) [![Build Status](https://travis-ci.org/korfuri/django-prometheus.svg?branch=master)](https://travis-ci.org/korfuri/django-prometheus) ## Usage ### Requiremen...
import asyncore import socket import smtpd class AsyncoreSocketUDP(asyncore.dispatcher): def __init__(self, host='127.0.0.1', port=8125): asyncore.dispatcher.__init__(self) self.create_socket(socket.AF_INET, socket.SOCK_DGRAM) print(f'Listening on udp {host}:{port}') self.bind((ho...
import { startsWith } from "lodash"; export = startsWith;
package org.apache.activemq.artemis.tests.integration.jms.divert; import org.apache.activemq.artemis.api.core.TransportConfiguration; import org.apache.activemq.artemis.api.core.client.ActiveMQClient; import org.apache.activemq.artemis.api.jms.JMSFactoryType; import org.apache.activemq.artemis.core.config.Configurati...
package org.pantsbuild.testproject.deployexcludes; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableSortedSet; import java.util.Set; public class DeployExcludesMain { public static void main(String[] args) { Set values = ImmutableSortedSet.of("Hello", "World"); System.out.prin...
using System.Collections.Generic; using System.Collections.ObjectModel; using System.Net.Http.Headers; using System.Web.Http.Description; using Spark.Areas.HelpPage.ModelDescriptions; namespace Spark.Areas.HelpPage.Models { /// <summary> /// The model that represents an API displayed on the help page. /// ...
Highcharts JS is a JavaScript charting library based on SVG, with fallbacks to VML and canvas for old browsers. _For NPM users, please note that this module replaces the previous [Highcharts Server](https://www.npmjs.com/package/highcharts-server) module._ * Official website: [www.highcharts.com](http://www.highchar...
/* Description: The DBScriptManager class is responsible for loading the storage scripts found in dbscripts folder.It first reads the contents of the storage folder and builds a map of the scripts based on the type of db (e.g.h2 ). The index used for a script is the directory name it is located along with the name....
namespace { void* NopIntercept(void* ptr, size_t size, const std::type_info& type) { return ptr; } base::type_profiler::InterceptFunction* g_new_intercept = NopIntercept; base::type_profiler::InterceptFunction* g_delete_intercept = NopIntercept; } void* __op_new_intercept__(void* ptr, s...
package com.mpp.cms.config; import com.mpp.cms.aop.logging.LoggingAspect; import io.github.jhipster.config.JHipsterConstants; import org.springframework.context.annotation.*; import org.springframework.core.env.Environment; @Configuration @EnableAspectJAutoProxy public class LoggingAspectConfiguration { @Bean ...
namespace content { class ShellContentClient : public ContentClient { public: ~ShellContentClient() final; std::string GetUserAgent() const override; base::string16 GetLocalizedString(int message_id) const override; base::StringPiece GetDataResource( int resource_id, ui::ScaleFactor scale_fact...
package org.elasticsearch.action.admin.cluster.repositories.delete; import org.elasticsearch.action.support.master.AcknowledgedResponse; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import java.io.IOException; /** * Unregister repository response ...
#include <iostream> #include <folly/Conv.h> #include <folly/experimental/ProgramOptions.h> #include <glog/logging.h> DEFINE_bool(flag_bool_true, true, "Bool with true default value"); DEFINE_bool(flag_bool_false, false, "Bool with false default value"); DEFINE_int32(flag_int, 42, "Integer flag"); DEFINE_string(flag_...
#ifndef _RICHEDIT_H #define _RICHEDIT_H #if __GNUC__ >= 3 #pragma GCC system_header #endif #ifdef __cplusplus extern "C" { #endif #pragma pack(push,4) #ifdef UNICODE #define RICHEDIT_CLASS L"RichEdit20W" #else #define RICHEDIT_CLASS "RichEdit20A" #endif #define RICHEDIT_CLASS10A "RICHEDIT" #define CF_RTF TEXT("Ri...
div{background:gray}div{background:blue}div{background:red}
using System.Runtime.InteropServices; namespace Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim.Interop { [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("09bddb73-784a-4791-a962-2699bf0706f6")] internal interface ICSEncProjectServices { // members n...
<!DOCTYPE html> <html> <head> <title>FormatBlock crash test case</title> </head> <!-- This is a minified version of the clusterfuzz test case at https://code.google.com/p/chromium/issues/detail?id=345005 --> <body style="display: table-row;"> <script> function run() { document.designMode = 'on'; document.execCo...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>elpi: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
<!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"> </head> <body> <!-- Address split by <br> --!> blah 9606 North MoPac Expressway <br> <span id="test1">Suite</span> 400<br> Austin, TX <br> 78759<br>blah <!-- Address split by scripts and comments -...
""" :module: watchdog.observers :synopsis: Observer that picks a native implementation if available. :author: yesudeep@google.com (Yesudeep Mangalapilly) Classes ======= .. autoclass:: Observer :members: :show-inheritance: :inherited-members: Observer thread that schedules watching directories and dispat...
/*! * \file iter_prefetcher.h * \brief define a prefetcher using threaditer to keep k batch fetched */ #ifndef MXNET_IO_ITER_PREFETCHER_H_ #define MXNET_IO_ITER_PREFETCHER_H_ #include <mxnet/io.h> #include <mxnet/base.h> #include <mxnet/ndarray.h> #include <dmlc/logging.h> #include <dmlc/threadediter.h> #include ...
package namespace import ( "context" "github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" pb "github.com/coreos/etcd/etcdserver/etcdserverpb" ) type kvPrefix struct { clientv3.KV pfx string } // NewKV wraps a KV instance so that all requests // are prefixed with a given str...
class UserSessionsController < ApplicationController #before_filter :require_no_user, :only => [:new, :create] before_filter :require_user, :only => [ :destroy, :switch ] skip_before_filter :verify_authenticity_token, :only => [:create] def new if params[:return_to] session[:return_to] = params[...
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:9332") else: access = Ser...
 #include <aws/medialive/model/CaptionSelectorSettings.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace MediaLive { namespace Model { CaptionSelectorSettings::CaptionSelectorSettings() : m_ancillarySo...
var common = require("../common-tap.js") var test = require("tap").test var npm = require("../../") var path = require("path") var fs = require("fs") var rimraf = require("rimraf") var mkdirp = require("mkdirp") var pkg = path.join(__dirname, "install-save-exact") var mr = require("npm-registry-mock") test("setup", fu...
<html> <head> <script> if (window.testRunner) { testRunner.dumpAsText(); testRunner.waitUntilDone(); } function test() { var form = document.getElementById("testForm"); form.submit(); } </script> </head> <body onload="test()"> <form id="testForm" action="resources/replacestate-current.php" method="POST...
package org.fcrepo.kernel.impl.observer; import org.fcrepo.kernel.api.identifiers.FedoraId; import org.fcrepo.kernel.api.observer.Event; import org.fcrepo.kernel.api.observer.EventType; import org.fcrepo.kernel.api.operations.ResourceOperation; import org.fcrepo.kernel.impl.util.UserUtil; import java.net.URI; impor...
package com.netflix.hystrix; public interface InspectableBuilder { public TestCommandBuilder getBuilder(); public enum CommandKeyForUnitTest implements HystrixCommandKey { KEY_ONE, KEY_TWO } public enum CommandGroupForUnitTest implements HystrixCommandGroupKey { OWNER_ONE, OWNER_TWO ...
begin require 'syslog_protocol' rescue LoadError raise 'Gem syslog_protocol is required for remote logging using the Syslog protol. Please add the gem "syslog_protocol" to your Gemfile.' end module SemanticLogger module Formatters class Syslog < Default attr_accessor :level_map, :options, :facility ...
<?php namespace Symfony\Component\Form; /** * Reverses a transformer * * When the transform() method is called, the reversed transformer's * reverseTransform() method is called and vice versa. * * @author Bernhard Schussek <bernhard.schussek@symfony.com> */ class ReversedTransformer implements DataTransforme...
SRC = buabs.c buacos.c buadd1.c bualphp.c buand.c buappend.c buarg.c buargq.c \ buarray.c buarrayd.c buarrayp.c buascii.c buasembl.c buasin.c buassoc.c \ buatan.c buatom.c buattach.c bubaktra.c buboole.c buboundp.c bucadar.c \ bucar.c bucaseq.c bucdr.c buchix.c buclmemu.c bucmdlna.c bucompil.c \ buconcat.c bucond.c buc...
<?php /** * Require the PEAR DB module because we'll need it for the SQL-based * stores implemented here. We silence any errors from the inclusion * because it might not be present, and a user of the SQL stores may * supply an Auth_OpenID_DatabaseConnection instance that implements * its own storage. */ globa...
package v1 import ( "k8s.io/apimachinery/pkg/runtime" ) func addDefaultingFuncs(scheme *runtime.Scheme) error { return RegisterDefaults(scheme) } func SetDefaults_Job(obj *Job) { // For a non-parallel job, you can leave both `.spec.completions` and // `.spec.parallelism` unset. When both are unset, both are d...
int sigpending(sigset_t *set) { return syscall(SYS_rt_sigpending, set, _NSIG/8); }
require 'test_helper' module ActsAsAuthenticTest class SessionMaintenanceTest < ActiveSupport::TestCase def test_maintain_sessions_config assert User.maintain_sessions User.maintain_sessions = false assert !User.maintain_sessions User.maintain_sessions true assert User.maintain_sess...
package parsa_plm.com.jointelementinspector.helpers; import android.content.Context; import android.util.Log; import android.widget.Toast; import java.io.File; import java.io.IOException; import java.util.List; import parsa_plm.com.jointelementinspector.models.ExpandableListHeader; import parsa_plm.com.jointelementi...
#include <signal.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/time.h> #include <Application.h> #include <SoundPlayer.h> extern "C" { #include "avformat.h" } #ifdef HAVE_BSOUNDRECORDER #include <SoundRecorder.h> using namespace BPrivate::Media::Experimental; #endif...
/* $Id$ */ package org.apache.fop.svg; import java.awt.geom.AffineTransform; import org.apache.batik.anim.dom.SVGOMDocument; import org.apache.batik.bridge.BridgeContext; import org.apache.batik.bridge.DocumentLoader; import org.apache.batik.bridge.SVGTextElementBridge; import org.apache.batik.bridge.TextPainter; ...
from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('osf', '0132_merge_20180914_2001'), ('osf', '0129_merge_20180831_1412'), ] operations = [ ]
package daemon // import "github.com/docker/docker/daemon" import ( "testing" "github.com/docker/docker/api/types" "github.com/docker/docker/dockerversion" "github.com/stretchr/testify/assert" ) func TestParseInitVersion(t *testing.T) { tests := []struct { version string result types.Commit invalid bool ...
#ifndef __ATTACHMENTPOSITIONINGSUBTABLES_H #define __ATTACHMENTPOSITIONINGSUBTABLES_H /** * \file * \internal */ #include "LETypes.h" #include "OpenTypeTables.h" #include "GlyphPositioningTables.h" #include "ValueRecords.h" #include "GlyphIterator.h" U_NAMESPACE_BEGIN struct AttachmentPositioningSubtable : Gly...
namespace extensions { class WebViewGuest; // This class keeps track of <webview> renderer state for use on the IO thread. // All methods should be called on the IO thread. class WebViewRendererState { public: struct WebViewInfo { int embedder_process_id; int instance_id; std::string partition_id; ...
package com.adobe.epubcheck.ctc; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.Locale; import java.util.regex.Matcher; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import c...
0.1.7 / 2015-07-28 ================== * Fixed regression with escaped round brackets and matching groups. 0.1.6 / 2015-06-19 ================== * Replace `index` feature by outputting all parameters, unnamed and named. 0.1.5 / 2015-05-08 ================== * Add an index property for position in match result...
- [COOK-2258]: apt: LWRP results in error under why-run mode in apt 1.9.0 cookbook ## v1.10.0: ### Improvement - [COOK-2885]: Improvements for apt cache server search ### Bug - [COOK-2441]: Apt recipe broken in new chef version - [COOK-2660]: Create Debian 6.0 "squeeze" specific template for apt-cacher-ng ## v1...
var union = require('union'); var ecstatic = require('../'); union.createServer({ before: [ ecstatic(__dirname + '/public') ] }).listen(8080); console.log('Listening on :8080');
package org.jasig.cas.services.web.view; import org.jasig.cas.authentication.Authentication; import org.jasig.cas.authentication.RememberMeCredential; import org.jasig.cas.authentication.principal.Principal; import org.jasig.cas.authentication.principal.Service; import org.jasig.cas.validation.Assertion; import org.j...
<?php namespace Zend\File\Transfer\Exception; use Zend\File\Exception; class InvalidArgumentException extends Exception\InvalidArgumentException implements ExceptionInterface {}
module.exports = require('./gently');
package org.zstack.network.service.virtualrouter.lifecycle; import org.springframework.beans.factory.annotation.Autowire; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Configurable; import org.zstack.appliancevm.ApplianceVmConstant; import org....
title: Notes anchor: notes --- ### Browser support Browser support for the canvas element is available in all modern & major mobile browsers <a href="http://caniuse.com/canvas" target="_blank">(caniuse.com/canvas)</a>. For IE8 & below, I would recommend using the polyfill ExplorerCanvas - available at <a href="https:...
package client import ( "errors" "fmt" "io" "net/http" "os" "runtime" "github.com/docker/docker/api" "github.com/docker/docker/cli" "github.com/docker/docker/cliconfig" "github.com/docker/docker/cliconfig/credentials" "github.com/docker/docker/dockerversion" "github.com/docker/docker/opts" "github.com/do...
require "uri" # Public: Methods that generate a URL for a resource such as a Post or a Page. # # Examples # # URL.new({ # :template => /:categories/:title.html", # :placeholders => {:categories => "ruby", :title => "something"} # }).to_s # module Jekyll class URL # options - One of :permalink or :tem...
package com.google.cloud.dialogflow.v2beta1.samples; // [START dialogflow_v2beta1_generated_conversationsclient_batchcreatemessages_async] import com.google.api.core.ApiFuture; import com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRequest; import com.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRespons...
/** * Inquirer.js * A collection of common interactive command line user interfaces. */ var inquirer = module.exports; /** * Client interfaces */ inquirer.prompts = {}; inquirer.Separator = require('./objects/separator'); inquirer.ui = { BottomBar: require('./ui/bottom-bar'), Prompt: require('./ui/prompt'...
#ifndef SKY_ENGINE_CORE_CSS_MEDIAQUERYEXP_H_ #define SKY_ENGINE_CORE_CSS_MEDIAQUERYEXP_H_ #include "gen/sky/core/CSSValueKeywords.h" #include "gen/sky/core/MediaFeatureNames.h" #include "sky/engine/core/css/CSSPrimitiveValue.h" #include "sky/engine/core/css/CSSValue.h" #include "sky/engine/wtf/PassOwnPtr.h" #include...
package com.mysol.app.schedulinginvestors; import java.util.HashSet; import java.util.List; import java.util.Set; public class SchedulingInvestors { /** * Esse método recebe duas listas de valores inteiros positivos de mesmo tamanho. O tamanho das listas representa * a quantidade de investidores que há...
<?php defined('SYSPATH') OR die('No direct script access.'); class HTTP_Exception_402 extends Kohana_HTTP_Exception_402 {}
namespace GafferImage { class GAFFERIMAGE_API Erode : public RankFilter { public : Erode( const std::string &name=defaultName<Erode>() ); ~Erode() override; GAFFER_NODE_DECLARE_TYPE( GafferImage::Erode, ErodeTypeId, RankFilter ); }; IE_CORE_DECLAREPTR( Erode ); } // namespace GafferImage #endif // GAFFER...
package com.intellij.util.containers; import com.intellij.openapi.util.Condition; import com.intellij.testFramework.PlatformTestUtil; import com.intellij.util.ArrayUtil; import com.intellij.util.ThrowableRunnable; import gnu.trove.TIntArrayList; import junit.framework.TestCase; import java.util.*; import java.util....
var React = require("react"); var common = require("./common.js"); var utils = require("../utils.js"); var _ = require("lodash"); var VirtualScrollMixin = require("./virtualscroll.js"); var flowtable_columns = require("./flowtable-columns.js"); var FlowRow = React.createClass({ render: function () { var f...
#include "minunit.h" #include "dir.h" #include "register.h" #include <string.h> #include <fcntl.h> char *test_Dir_find_file() { bstring ctype = NULL; FileRecord *file = Dir_find_file(bfromcstr("tests/sample.json"), ctype = bfromcstr("text/plain")); mu_assert(file != NULL, "Failed to find the ...
<?php namespace PhpParser\Builder; use PhpParser\BuilderAbstract; use PhpParser\Node; use PhpParser\Node\Stmt; /** * @method $this as(string $alias) Sets alias for used name. */ class Use_ extends BuilderAbstract { protected $name; protected $type; protected $alias = null; /** * Creates a nam...
<?xml version="1.0" encoding="utf-8"?> <openerp> <data> <report id="report_product_label" model="product.product" name="product.product.label" string="Products Labels" xml="product/report/product_label.xml" xsl="product/report/product_label.xsl"/> <report id="action_report_pricelist" ...
(function(angular) { 'use strict'; angular.module('crisis-center', ['dialog']) .service('crisisService', CrisisService) .component('crisisCenter', { template: '<h2>Crisis Center</h2><ng-outlet></ng-outlet>', $routeConfig: [ {path:'/', name: 'CrisisList', component: 'crisisList', useAsDefault: ...
// // Copyright (c) Microsoft. 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 app...
package com.alibaba.dubbo.remoting.transport.codec; import java.io.IOException; import com.alibaba.dubbo.common.io.UnsafeByteArrayInputStream; import com.alibaba.dubbo.common.io.UnsafeByteArrayOutputStream; import com.alibaba.dubbo.common.utils.Assert; import com.alibaba.dubbo.remoting.Channel; import com.alibaba.d...
import java.util.Random; public class SatHanoi01 { static int counter; /* * This function returns the optimal amount of steps, * needed to solve the problem for n-disks */ static int hanoi(int n) { if (n == 1) { return 1; } return 2 * (hanoi(n - 1)) + 1; } /* * This applies the known algorithm...
require 'testing_env' require 'requirements/mpi_dependency' class MPIDependencyTests < Homebrew::TestCase def test_initialize_untangles_tags_and_wrapper_symbols wrappers = [:cc, :cxx, :f77] tags = [:optional, 'some-other-tag'] dep = MPIDependency.new(*wrappers + tags) assert_equal wrappers, dep.lang_...
'use strict'; var sinon = require('sinon'); var main = require('../package.json').main; var schedule = require('../' + main); var es6; try { eval('(function* () {})()'); es6 = require('./es6/job-test')(schedule); } catch (e) {} var clock; module.exports = { setUp: function(cb) { clock = sinon.useFakeTimer...
def main(): ''' ansible repoquery module ''' module = AnsibleModule( argument_spec=dict( state=dict(default='list', type='str', choices=['list']), name=dict(default=None, required=True, type='str'), query_type=dict(default='repos', required=False, type='str', ...
Date: 2020-03-03 # API - Product Option Value In power from version: 1.8.0 (?) Related PRs: #11136, #11144, #11157 ## Description ### Problem to solve Cover with API all `ProductOption`s related functionality provided by the Admin panel. ### Context During the development of a new Sylius API (based on API Plat...
package org.apache.wicket; import org.apache.wicket.markup.html.WebPage; /** * Dummy Page with Page parameter */ public class MyPage3 extends WebPage { private static final long serialVersionUID = 1L; /** * Construct. * * @param page */ public MyPage3(final Page page) { } }
package org.eclipse.bpel.model.impl; import org.eclipse.bpel.model.BPELPackage; import org.eclipse.bpel.model.Branches; import org.eclipse.bpel.model.util.BPELConstants; import org.eclipse.bpel.model.util.BPELUtils; import org.eclipse.bpel.model.util.ReconciliationHelper; import org.eclipse.emf.common.notify.Notifica...
/* 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...
module Thin class CallbackRackHandler def self.run(app, options) options[:signals] = false server = ::Thin::Server.new(options[:Host] || '0.0.0.0', options[:Port] || 8080, app, options) yield se...
package jp.ameba.mongo; import java.util.Arrays; import jp.ameba.mongo.protocol.Consistency; import jp.ameba.mongo.protocol.Delete; import jp.ameba.mongo.protocol.FindAndModify; import jp.ameba.mongo.protocol.Insert; import jp.ameba.mongo.protocol.Query; import jp.ameba.mongo.protocol.Response; import jp.ameba.mongo....
<?php /** Zend_Amf_Constants */ require_once 'Zend/Amf/Constants.php'; /** Zend_Amf_Parse_Serializer */ require_once 'Zend/Amf/Parse/Serializer.php'; /** Zend_Amf_Parse_TypeLoader */ require_once 'Zend/Amf/Parse/TypeLoader.php'; /** * Detect PHP object type and convert it to a corresponding AMF3 object type * ...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
// Copyright 2013 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; /** * This class provides an interface to the native class for writing * important data files without risking data loss. */...
var pagex = function(path, negate, callback){ // Allow it to have different signatures if (!callback) { callback = negate; negate = false; } // The actual function var fn = function(){ // Url without leading slash var url = window.location.pathname.replace(/^\//, ''); ...
'use strict'; describe('filter cards service', function () { var FilterCards, $timeout; beforeEach(module('app.filters')); beforeEach(inject(function (_FilterCards_, _$timeout_) { FilterCards = _FilterCards_; $timeout = _$timeout_; FilterCards.stats = {type: {total: [['human', 1]]...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.psi.codeStyle.modifier; import com.intellij.application.options.CodeStyle; import com.intellij.openapi.fileTypes.FileType; import com.intellij.openapi.util.M...
promise_test(async () => { const start = performance.now(); const profiler = new Profiler({ sampleInterval: 10, maxBufferSize: Number.MAX_SAFE_INTEGER, }); ProfileUtils.forceSample(); const trace = await profiler.stop(); const end = performance.now(); assert_greater_than(trace.samples.length, 0...
from __future__ import unicode_literals from datetime import datetime, timedelta from django.template.defaultfilters import timesince_filter from django.test import SimpleTestCase from django.test.utils import requires_tz_support from .timezone_utils import TimezoneTestCase from ..utils import setup class Timesinc...
namespace phi { template <typename T, typename Context> void FillGradKernel(const Context& dev_ctx, const DenseTensor& out_grad, const Scalar& value, DenseTensor* in_grad); } // namespace phi
namespace signin { scoped_ptr<KeyedService> BuildTestSigninClient( content::BrowserContext* context) { return make_scoped_ptr( new TestSigninClient(static_cast<Profile*>(context)->GetPrefs())); } } // namespace signin
""" 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 not use this ...
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ /* ==================================================================== * Copyright (c) 2006 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ar...
package org.drools.core.event; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.kie.api.event.rule.RuleRuntimeEventListener; import org.kie.internal.KnowledgeBase; import org.kie.internal.KnowledgeBaseFactory; import org.kie.api.event.rule.ObjectInser...