text
stringlengths
3
1.05M
package org.apache.struts2.interceptor.debugging; import java.io.PrintWriter; import java.io.Writer; import java.util.Stack; public class PrettyPrintWriter { private final PrintWriter writer; private final Stack<String> elementStack = new Stack<String>(); private final char[] lineIndenter; ...
it("should set correct options on js files", function() { require("./loader!./index.js").should.be.eql({ minimize: true, jsfile: true }); }); it("should set correct options on other files", function() { require("./loader!./txt.txt").should.be.eql({ minimize: true }); });
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MCDynamite.API { public abstract class Plugin { public abstract string name { get; set; } public abstract string version { get; set; } public abstract string author { get; set; } pub...
import java.util.*; import java.util.stream.Collectors; import java.util.stream.Stream; public class Test { public String[] testToArray(String[] args) { return Arrays.stream(args).distinct().sorted().toArray(String[]::new); } }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <!-- put your value object in the class name, the table name is optional but you should specify it to avoi...
package org.apache.spark.sql.connector.read; import org.apache.spark.annotation.Evolving; import org.apache.spark.sql.connector.expressions.SortOrder; /** * A mix in interface for {@link Scan}. Data sources can implement this interface to * report the order of data in each partition to Spark. * Global order is p...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <title>org.myrobotlab.service</title> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- ...
package "sudo" do action :upgrade end template "/etc/sudoers" do source "sudoers.erb" mode 0440 owner "root" group "root" variables( :sudoers_groups => node[:authorization][:sudo][:groups], :sudoers_users => node[:authorization][:sudo][:users], :sudoers_default => node[:authorization][:sudo...
<?xml version="1.0" encoding="UTF-8"?> <testsuite name="TestSuite" time="17.485" tests="3" errors="0" skipped="0" failures="0"> <properties> <property name="java.runtime.name" value="OpenJDK Runtime Environment"/> <property name="sun.boot.library.path" value="/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64"/>...
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <atom:link href="{% if request.blog_user.profile.get_primary_blog_domain and request.blog_user.profile.blog_domain != '' %}http://{{ request.blog_user.profile.blog_domain }}/?rss{% else %}https://{{ request.blog_user.username }}.snipt.ne...
"use strict"; $.require([ /*'hyperion!/lib/watcher/data/model/config.js', 'hyperion!/lib/watcher/data/model/container.js',*/ 'hyperion!/lib/watcher/data/mongo.js', 'hyperion!/lib/watcher/data/file.js' ], function( /*config, container,*/ mongo, file ) { var obj = funct...
var BusBoy = require('busboy'), fs = require('fs-extra'), path = require('path'), os = require('os'), crypto = require('crypto'); // ### ghostBusboy // Process multipart file streams function ghostBusBoy(req, res, next) { var busboy, stream, tmpDir; // busboy is ...
SET @sName = 'bx_forum'; -- TABLES: entries DROP TABLE IF EXISTS `bx_forum_discussions`, `bx_forum_categories`, `bx_forum_files`, `bx_forum_photos_resized`, `bx_forum_subscribers`, `bx_forum_cmts`, `bx_forum_views_track`, `bx_forum_votes`, `bx_forum_votes_track`, `bx_forum_meta_keywords`, `bx_forum_meta_mentions`, `b...
.oo-ui-icon-arrowNext { background-image: url("themes/apex/images/icons/arrow-ltr.png"); background-image: -webkit-linear-gradient(transparent, transparent), /* @embed */ url("themes/apex/images/icons/arrow-ltr.svg"); background-image: linear-gradient(transparent, transparent), /* @embed */ url("themes/apex...
<?php namespace Worker\Events { class GlobalEvent { private static $_event = NULL; public static function init() { if (empty(self::$_event)) { self::$_event = new Libevent(); } } public static function getEvent() { ...
//================================================================================================= //================================================================================================= #ifndef _BLAZE_MATH_PROXY_SPARSEMATRIXPROXY_H_ #define _BLAZE_MATH_PROXY_SPARSEMATRIXPROXY_H_ //********************...
package utils import ( "crypto/rand" "encoding/hex" "io" "io/ioutil" "path/filepath" "strconv" "syscall" ) const ( exitSignalOffset = 128 ) // GenerateRandomName returns a new name joined with a prefix. This size // specified is used to truncate the randomly generated value func GenerateRandomName(prefix st...
var drag = require('../index') , el = document.getElementById('xxx') drag(el) .on('data', function(x) { console.log(x) })
package afero import ( "os" "time" ) // OsFs is a Fs implementation that uses functions provided by the os package. // // For details in any method, check the documentation of the os package // (http://golang.org/pkg/os/). type OsFs struct{} func NewOsFs() Fs { return &OsFs{} } func (OsFs) Name() string { return...
/** * core-js 2.0.0-alpha * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The req...
/*! * Start Bootstrap - Simple Sidebar HTML Template (http://startbootstrap.com) * Code licensed under the Apache License v2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0. */ /*********Custom Style*********/ @font-face{ font-family: 'Ailerons'; src: url('../fonts/Ailerons.ttf') format('t...
/*********************************************************************/ /* Copyright 2009, 2010 The University of Texas at Austin. */ /* All rights reserved. */ /* */ /* Redistribution and use in sou...
package cpu // Initialized reports whether the CPU features were initialized. // // For some GOOS/GOARCH combinations initialization of the CPU features depends // on reading an operating specific file, e.g. /proc/self/auxv on linux/arm // Initialized will report false if reading the file fails. var Initialized bool ...
package testing import ( "testing" "github.com/gophercloud/gophercloud/openstack/identity/v3/groups" "github.com/gophercloud/gophercloud/openstack/identity/v3/projects" "github.com/gophercloud/gophercloud/openstack/identity/v3/users" "github.com/gophercloud/gophercloud/pagination" th "github.com/gophercloud/gop...
cur_frm.cscript.refresh = function(doc, cdt, cdn) { cur_frm.toggle_enable('dt', doc.__islocal); cur_frm.cscript.dt(doc, cdt, cdn); cur_frm.toggle_reqd('label', !doc.fieldname); } cur_frm.cscript.has_special_chars = function(t) { var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?"; for (var i = 0; i < t.length; i++) ...
{% extends "v9/layoutv9.html" %} {% set title = "Water abstraction licence" %} {% block page_title %} {{title}} - GOV.UK {% endblock %} {% block content %} <main id="content" role="main"> <div class="phase-banner-alpha"> <p> <strong class="phase-tag">BETA</strong> <span>This is an BETA prototype, ...
// parseUri 1.2.2 // (c) Steven Levithan <stevenlevithan.com> // MIT License function parseUri (str) { var o = parseUri.options, m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), uri = {}, i = 14; while (i--) uri[o.key[i]] = m[i] || ""; uri[o.q.name] = {}; uri[o.key[12]].replace(o....
ScalaEquals provides easy to use macros for generating correct `equals`/`hashCode`/`canEqual` implementations, never look up an `equals`/`hashCode` recipe again! The methods generated from ScalaEquals are taken directly from [Programming in Scala][pis] and strictly obey the [contract][] of `equals` and `hashCode`, and ...
(function () { angular.module('cloudSampleApp').directive('cloudAppHeader', function () { return { restrict: 'E', templateUrl: 'components/header.tpl.html', scope: false, bindToController: false } }) })();
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>paradoxes: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
package org.kuali.rice.krad.lookup; import org.apache.commons.lang.BooleanUtils; import org.apache.commons.lang.StringUtils; import org.kuali.rice.core.api.CoreApiServiceLocator; import org.kuali.rice.core.api.config.property.ConfigurationService; import org.kuali.rice.core.api.encryption.EncryptionService; i...
// ----------------------------------------------------------------------- // <copyright file="TreeNode.cs" company="OSharp开源团队"> // Copyright (c) 2015 OSharp. All rights reserved. // </copyright> // <last-editor>最后修改人</last-editor> // <last-date>2015-01-09 17:55</last-date> // -------------------------------...
<?xml version="1.0" encoding="UTF-8"?> <!-- 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, Ver...
from inception.image.scene.vanishingpoint import * if __name__ == '__main__': x=ZhangVanishingPointEstimator("../../../../test/images/vanishing.jpg") x.estimate() print x.get_projective_vanishing_points()
<script> 'use strict'; (function () { var commentContainer = document.querySelector('#giscus-comments'); if (!commentContainer) { return; } var script = document.createElement('script'); script.setAttribute('src', 'https://giscus.app/client.js'); script.setAttribute('data-repo', '{{...
<?php /** * This class is used to implement the MVC (Model/View/Controller) pattern. * * Views are used to render the output of a controller into a form suitable for * interaction, typically a user interface element. Multiple views can exist * for a single controller for different purposes. * * @category PHPFr...
package org.apache.drill.exec.oauth; import org.apache.commons.lang3.StringUtils; import org.apache.drill.common.AutoCloseables; import org.apache.drill.exec.server.DrillbitContext; /** * Class for managing oauth tokens. Storage plugins will have to manage obtaining the plugins, but * these classes handle the sto...
package com.facebook.react.modules.dialog; import javax.annotation.Nullable; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.content.Context; import android.os.Bundle; /** * A fragment used to display the dialog. ...
CKEDITOR.plugins.setLang("selectall","is",{toolbar:"Velja allt"});
// // EZLayoutSize+Shorthand.h // EZLayoutExample // // Created by Jeff Hurray on 6/22/15. // Copyright (c) 2015 Jeff Hurray. All rights reserved. // #import "EZLayoutSize.h" typedef EZLayoutSize EZSize; @interface EZLayoutSize (Shorthand) /* h -> Height w -> Width scale -> scaleFactor P -> Percentage ...
class JSONSchemaValidatorCPPTest : public JSONSchemaValidatorTestBase { public: JSONSchemaValidatorCPPTest() : JSONSchemaValidatorTestBase(JSONSchemaValidatorTestBase::CPP) { } protected: virtual void ExpectValid(const std::string& test_source, Value* instance, DictionaryValue*...
/* * Enable a subset of openssl compatible functions. We don't aim to be 100% * compatible - just to be able to do basic ports etc. * * Only really tested on mini_httpd, so I'm not too sure how extensive this * port is. */ #include "nixio.h" #include "config.h" #define WITH_AXTLS 1 #define WITHOUT_OPENSS...
An illustration of the application of Deep Graph Infomax (DGI) to large-scale graph datasets (such as Reddit)---by way of _subsampling_, as is done by approaches such as GraphSAGE. Besides the usual colourful and decorative elements, here I have expressed node shifts using _polar coordinates_, to provide a faithful "ra...
/* * BREADCRUMBS */ .breadcrumb-custom { display: inline-block; padding: 0px; margin-bottom: 0px; } .breadcrumb-custom li { padding: 0px; } .breadcrumb-custom li > a, .breadcrumb-custom li > span { display: inline-block; padding: 9px 30px 9px 30px; position: relative; background: #ec...
var normalize = require("./normalize"); var absoluteWinRegExp = /^[A-Z]:([\\\/]|$)/i; var absoluteNixRegExp = /^\//i; module.exports = function join(path, request) { if(request == "") return normalize(path); if(absoluteWinRegExp.test(request)) return normalize(request.replace(/\//g, "\\")); if(absoluteNixRegExp.te...
function toSet(source, type) { return new AnonymousObservable(function (observer) { var s = new type(); return source.subscribe( s.add.bind(s), observer.onError.bind(observer), function () { observer.onNext(s); observer.onCompleted(); }); ...
var should = require('should'); var mocha = require('mocha'); var uuid = require('node-uuid'); var testutil = require('../../util/util'); var MockedTestUtils = require('../../framework/mocked-test-utils'); var azure = testutil.libRequire('azure'); var azureSql = require('azure-asm-sql'); var SERVER_ADMIN_USERNAME =...
<!-- 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 ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "alert.h" #include "checkpoints.h" #include "db.h" #include "txdb.h" #inc...
using System; using System.IO; using System.Net.Sockets; using IEC60870.Enum; using IEC60870.IE; using IEC60870.IE.Base; using IEC60870.Object; using IEC60870.Utils; namespace IEC60870.Connections { public class Connection { private static readonly byte[] TestfrActBuffer = {0x68, 0x04, 0x43, 0x00, 0x0...
L.BingLayer = L.TileLayer.extend({ options: { subdomains: [0, 1, 2, 3], type: 'Aerial', attribution: 'Bing', culture: '' }, initialize: function(key, options) { L.Util.setOptions(this, options); this._key = key; this._url = null; this.meta = {}; this.loadMetadata(); }, tile2quad: function(x, y...
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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.apa...
extern "C" { #endif // Marks memory region [addr, addr+size) as unaddressable. // This memory must be previously allocated by the user program. Accessing // addresses in this region from instrumented code is forbidden until // this region is unpoisoned. This function is not guaranteed to poison // the whole r...
package org.menacheri.jetclient.event; import java.util.List; import org.menacheri.jetclient.app.Session; /** * Event Dispatchers are used by {@link Session} to dispatch the incoming event * on its {@link Session#onEvent(Event)} method to the correct * {@link EventHandler}. This interface has methods for adding r...
package gopacket import ( "errors" ) // DecodeFeedback is used by DecodingLayer layers to provide decoding metadata. type DecodeFeedback interface { // SetTruncated should be called if during decoding you notice that a packet // is shorter than internal layer variables (HeaderLength, or the like) say it // should...
package org.codehaus.groovy.ast.decompiled; import org.codehaus.groovy.ast.*; import org.codehaus.groovy.classgen.Verifier; import java.lang.reflect.Modifier; import java.util.List; /** * A {@link ClassNode} kind representing the classes coming from *.class files decompiled using ASM. * * @see AsmDecompiler * @...
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.pvy.colortester" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <application ...
package remotecommand import ( "fmt" "net/http" "time" "k8s.io/kubernetes/pkg/httplog" "k8s.io/kubernetes/pkg/util/runtime" "k8s.io/kubernetes/pkg/util/wsstream" ) const ( stdinChannel = iota stdoutChannel stderrChannel errorChannel resizeChannel ) // createChannels returns the standard channel types f...
<?php // Do not delete these lines if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); /* Get the number of comments */ $comment_count = get_comments_number($post->ID); /* This variable is for alter...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__char_rand_multiply_84_bad.cpp Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-84_bad.tmpl.cpp */ /* * @description * CWE: 190 Integer Overflow * BadSource: rand Set data to result of rand() * GoodSo...
namespace extensions { // NativeHandlers are intended to be used with a ModuleSystem. The ModuleSystem // will assume ownership of the NativeHandler, and as a ModuleSystem is tied to // a single v8::Context, this implies that NativeHandlers will also be tied to // a single v8::Context. // TODO(koz): Rename this to Nat...
**For additional reference, please review the [source](https://github.com/Codeception/Codeception/tree/master/src/Codeception/Module/Facebook.php)** Provides testing for projects integrated with Facebook API. Relies on Facebook's tool Test User API. ## Status * Maintainer: **tiger-seo** * Stability: **beta** ...
<?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...
mitel-syslog ============ mitel controller log to syslog server daemon ##Install Prerequisits: * Node.js To download software and install dependencies, please run the following commands (changing the ip addresses to match your systems): git clone https://github.com/psd401/mitel-syslog cd mitel-syslog ...
#ifndef HEADER_CURL_DOTDOT_H #define HEADER_CURL_DOTDOT_H char *Curl_dedotdotify(const char *input); #endif
!function($){"use strict";void 0!==patternfly&&($.pfBreakpoints=patternfly.pfBreakpoints)}(jQuery);
package org.gearvrf.controls.interpolators; import org.gearvrf.animation.GVRInterpolator; public class ExpoOut implements GVRInterpolator { private static ExpoOut sInstance = null; /** Get the (lazy-created) singleton */ public static synchronized ExpoOut getInstance() { if (sInstance == null)...
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Example - example-example6</title> <script src="../../../angular.min.js"></script> <script src="script.js"></script> </head> <body ng-app="drag"> <span draggable>Drag ME</span> </body> </html>
<?php class Fieldtype_markitup extends Fieldtype { public function render() { $vars = array( 'field_id' => $this->field_id, 'field_name' => $this->fieldname, 'tabindex' => $this->tabindex, 'field_data' => $this->field_data, 'field_config' => $this->field_config, ...
var core = module.exports = {version: '1.2.1'}; if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
package gophercloud import "errors" var ( // ErrServiceNotFound is returned when no service in a service catalog matches // the provided EndpointOpts. This is generally returned by provider service // factory methods like "NewComputeV2()" and can mean that a service is not // enabled for your account. ErrService...
/** * @license Highcharts JS v4.1.1 (2015-02-17) * Exporting module * * (c) 2010-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, HighchartsAdapter, document, window, Math, setTimeout */ (function (Highcharts) { // encapsulate // create shortcuts var Chart...
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("6....
package techreborn.tiles.storage; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import reborncore.api.power.EnumPowerTier; import reborncore.common.registration.RebornRegistry; import reborncore.common.registration.impl.ConfigRegistry; ...
 CKEDITOR.plugins.setLang("devtools","ru",{title:"Информация об элементе",dialogName:"Имя окна диалога",tabName:"Имя вкладки",elementId:"ID элемента",elementType:"Тип элемента"});
package cpumanager import ( "fmt" "math" "sync" "time" "github.com/golang/glog" cadvisorapi "github.com/google/cadvisor/info/v1" "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/util/wait" runtimeapi "k8s.io/kubernetes/pkg/kubelet/apis/cri/runtime/v1alpha2" "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state...
require "spec_helper" describe Mongoid::Matchable::Nin do describe "#matches?" do context 'when the attribute is not nil' do let(:matcher) do described_class.new("first") end context "when the values do not contain the attribute" do it "returns true" do expect(matcher.m...
.class final Lo/Gt; .super Lo/JM; .source "" # interfaces .implements Lo/Kr; # annotations .annotation system Ldalvik/annotation/Signature; value = { "<E:Ljava/lang/Object;>Lo/JM<TE;>;Lo/Kr<TE;>;" } .end annotation .annotation build Lo/Ai; ˋ = true .end annotation # direct methods .method cons...
package io.quarkus.maven.it; import static org.assertj.core.api.Assertions.assertThat; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Collections; import ja...
<?php /** * Extension to PHPUnit_Framework_AssertionFailedError to mark the special * case of an incomplete test. * * @package PHPUnit * @subpackage Framework * @author Sebastian Bergmann <sebastian@phpunit.de> * @copyright 2001-2014 Sebastian Bergmann <sebastian@phpunit.de> * @license http://www.o...
package org.elasticsearch.transport; import org.elasticsearch.Version; import org.elasticsearch.common.bytes.BytesReference; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import java.io.IOException; /** * A specialized, bytes only request, that can ...
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
<?php namespace Pinq\Iterators\Common; use Pinq\Parsing\Reflection; /** * Utility methods for allow internal functions to have excessive arguments. * * @author Elliot Levin <elliotlevin@hotmail.com> */ final class Functions { private function __construct() { } /** * Returns a wrapper funct...
function Controller() { function inviteUser() { var url = "http://192.168.0.21/teamsync/inviteuser.php?user_id=" + userID + "&group_id=" + groupID; var client = Ti.Network.createHTTPClient({ onload: function() { Ti.API.info("Received text: " + this.responseText); ...
module CamaleonCms::ThemeHelper def theme_init() @_front_breadcrumb = [] end # return theme full asset path # theme_name: theme name, if nil, then will use current theme # asset: asset file name, if asset is present return full path to this asset # sample: <script src="<%= theme_asset_path("js/admin.js...
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("04....
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.idea; import com.intellij.accessibility.AccessibilityUtils; import com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory; import com.intellij.diagnostic.Activity; import com....
package key import ( "errors" "log" "time" "github.com/jonboulle/clockwork" "github.com/coreos/pkg/timeutil" ) func NewKeySetSyncer(r ReadableKeySetRepo, w WritableKeySetRepo) *KeySetSyncer { return &KeySetSyncer{ readable: r, writable: w, clock: clockwork.NewRealClock(), } } type KeySetSyncer stru...
package org.jetbrains.plugins.scala package findUsages package parameters import com.intellij.psi._ import com.intellij.psi.search.searches.ReferencesSearch import com.intellij.psi.search.{PsiSearchHelper, TextOccurenceProcessor, UsageSearchContext} import com.intellij.util.{Processor, QueryExecutor} import org.jetbra...
<!-- Blend a background image and a background color specifying background-position in percentage, such as 50% 50% --> <!DOCTYPE HTML> <html> <head> <style> div { background: url('resources/white_square.svg'), #777777; background-position: 10% 10%; width: 200px; height: 200px; margin: 10px; background-blend-mod...
<!DOCTYPE html > <html> <head> <title></title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link href="../lib/ref-index.css" media="screen" type="text/css...
0.1.3 / 2013-10-10 ================== * pkg: update type-detect version * index,test: conditional require in test bootstrap 0.1.2 / 2013-09-18 ================== * bug: [fix] misnamed variable from code migration (reference error) 0.1.1 / 2013-09-18 ================== * bug: [fix] last key of deep object ig...
package org.apache.lucene.util; /** * Helper methods to ease implementing {@link Object#toString()}. */ public final class ToStringUtils { private ToStringUtils() {} // no instance /** * for printing boost only if not 1.0 */ public static String boost(float boost) { if (boost != 1.0f) { ret...
package data import ( "crypto/sha256" "crypto/sha512" "crypto/subtle" "encoding/hex" "fmt" "hash" "io" "io/ioutil" "strings" "time" "github.com/Sirupsen/logrus" "github.com/docker/go/canonical/json" "github.com/docker/notary" ) // SigAlgorithm for types of signatures type SigAlgorithm string func (k Si...
namespace mozart { ///////////////// // ThreadQueue // ///////////////// void ThreadQueue::gCollect(GC gc) { for (auto iterator = c.begin(); iterator != c.end(); iterator++) { Runnable*& thread = *iterator; gc->copyThread(thread, thread); } } //////////////// // ThreadPool // //////////////// Runnable* ...
Release history ############### 0.2.2 (2012-12-20) ================== * Fixed the error handling for printing results with special characters 0.2.1 (2012-12-18) ================== * When an exception is raised in the duckduckgo module, report the error and then return None. This allows ddg.py to continue to the ...
import {registerPlugin} from './../../plugins'; export {HandsontablePersistentState}; //registerPlugin('persistentState', HandsontablePersistentState); function Storage(prefix) { var savedKeys; var saveSavedKeys = function () { window.localStorage[prefix + '__' + 'persistentStateKeys'] = JSON.stringify(sa...
from django.test import TestCase from django.core.urlresolvers import reverse from userena.utils import get_gravatar from userena import settings as userena_settings import re class DecoratorTests(TestCase): """ Test the decorators """ def test_secure_required(self): """ Test that the ``secu...
package com.google.devtools.build.lib.actions; import static com.google.common.truth.Truth.assertThat; import static com.google.devtools.build.lib.actions.util.ActionsTestUtil.NULL_ACTION_OWNER; import static com.google.devtools.build.lib.testutil.MoreAsserts.assertSameContents; import static org.junit.Assert.assertS...
namespace faint{ setting_id new_setting_id(){ static int max_id = 1003; return max_id++; } Settings::Settings(){ } // Implement all Set-variants #define DEFINE_SETTER(SettingType)\ template<>\ void Settings::Set(const SettingType& s,\ const SettingType::ValueType& v)\ {\ m_##SettingType##Map[ s ] = v;\ } //...