text
stringlengths
3
1.05M
<umb-block-list-property-editor model="model"></umb-block-list-property-editor>
set(CROSS_ROOTFS $ENV{ROOTFS_DIR}) set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_VERSION 1) set(CMAKE_SYSTEM_PROCESSOR armv7l) add_compile_options(-target armv7-linux-gnueabihf) add_compile_options(-mthumb) add_compile_options(-mfpu=vfpv3) add_compile_options(--sysroot=${CROSS_ROOTFS}) set(CROSS_LINK_FLAGS "${CROSS_...
import threading class ThreadCollector(object): def __init__(self): if threading is None: raise NotImplementedError( "threading module is not available, " "this panel cannot be used without it") self.collections = {} # a dictionary that maps threads to ...
// // GTLServiceDrive.m // // ---------------------------------------------------------------------------- // NOTE: This file is generated from Google APIs Discovery Service. // Service: // Drive API (drive/v2) // Description: // The API to interact with Drive. // Documentation: // https://developers.google.c...
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
YUI.add('editor-lists', function (Y, NAME) { /** * Handles list manipulation inside the Editor. Adds keyboard manipulation and execCommand support. * Adds overrides for the <a href="Plugin.ExecCommand.html#method_COMMANDS.insertorderedlist">insertorderedlist</a> * and <a href="Plugin.ExecCommand....
using System; using System.Data.Entity; using System.Linq; using System.Linq.Expressions; namespace Abp.EntityFramework.Extensions { /// <summary> /// Extension methods for <see cref="IQueryable"/> and <see cref="IQueryable{T}"/>. /// </summary> public static class QueryableExtensions { ///...
#ifndef VFS_OPS_H #define VFS_OPS_H #include <vfs/vfs.h> struct vfs_ops { // operations on files errval_t (*open)(void *st, const char *path, vfs_handle_t *handle); errval_t (*create)(void *st, const char *path, vfs_handle_t *handle); errval_t (*remove)(void *st, const char *path); // operation...
#ifndef _CCFontAtlasCache_h_ #define _CCFontAtlasCache_h_ #include <iostream> #include <unordered_map> #include "CCFontAtlas.h" #include "CCLabel.h" NS_CC_BEGIN class CC_DLL FontAtlasCache { public: static FontAtlas * getFontAtlasTTF(const TTFConfig & config); static FontAtlas * getFontAtlasFNT(const st...
package com.siyeh.ipp.forloop; import com.intellij.psi.JavaTokenType; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiForStatement; import com.intellij.psi.PsiJavaToken; import com.intellij.psi.tree.IElementType; import com.siyeh.ipp.base.PsiElementPredicate; import com.siyeh.ipp.psiutils.ErrorUtil; c...
(function($) { /** * Class: $.jqplot.PieRenderer * Plugin renderer to draw a pie chart. * x values, if present, will be used as slice labels. * y values give slice size. * * To use this renderer, you need to include the * pie renderer plugin, for example: * ...
/** * @module Ink.UI.Animate_1 * @author inkdev AT sapo.pt * @version 1 */ Ink.createModule('Ink.UI.Animate', 1, ['Ink.UI.Common_1', 'Ink.Dom.Event_1', 'Ink.Dom.Css_1'], function (Common, InkEvent, Css) { 'use strict'; var animationPrefix = (function (el) { return ('animationName' in el.style) ? '...
namespace agg { // See also: agg_trans_single_path.cpp // //-------------------------------------------------------trans_single_path class trans_single_path { enum status_e { initial, making_path, ready }; public: typedef vert...
<!-- 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 distributed under the License...
#include "tensorflow/c/tf_status_helper.h" #include "tensorflow/c/tf_status_internal.h" namespace tensorflow { void Set_TF_Status_from_Status(TF_Status* tf_status, const Status& status) { tensorflow::error::Code code = status.code(); const char* message(status.error_message().c_str()); switch (code) { c...
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php // put y...
package org.apache.commons.math3.distribution; import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math3.exception.util.LocalizedFormats; import org.apache.commons.math3.random.RandomGenerator; import org.apache.commons.math3.random.Well19937c; import org.apache.commons....
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" targetNamespace="Examples"> <process id="variableTemplatedMail" > <startEvent id="theStart" /> <sequenceFlow sourceRef="theStart" targetRef="sendMail" /> <serviceTask id="sendMail" acti...
namespace boost { namespace type_of { template<class T> struct get_unsigned { typedef T type; }; template<> struct get_unsigned<signed char> { typedef unsigned char type; }; template<> struct get_unsigned<char> { typedef unsigned char type; }; template<> ...
@interface NSImage (BWAdditions) // Draw a solid color over an image - taking into account alpha. Useful for coloring template images. - (NSImage *)bwTintedImageWithColor:(NSColor *)tint; // Rotate an image 90 degrees clockwise or counterclockwise - (NSImage *)bwRotateImage90DegreesClockwise:(BOOL)clockwise; @end
require "English" module Dotenv module Substitutions # Substitute shell commands in a value. # # SHA=$(git rev-parse HEAD) # module Command class << self INTERPOLATED_SHELL_COMMAND = / (?<backslash>\\)? # is it escaped with a backslash? \$ # ...
'use strict'; const Hapi = require('hapi'); const Inert = require('inert'); const Vision = require('vision'); const Blipp = require('blipp'); const Pack = require('../package'); const Routes = require('../lib/routes.js'); const server = new Hapi.Server(); server.connection({ host: (process.env.HOST || 'localhost...
!function(factory) { "function" == typeof define && define.amd ? define([ "jquery", "./jquery.inputmask" ], factory) : factory(jQuery); }(function($) { return $.extend($.inputmask.defaults.aliases, { Regex: { mask: "r", greedy: !1, repeat: "*", regex: nul...
package com.nd.android.u.square.business.task; import java.util.HashMap; import java.util.concurrent.Executor; import java.util.concurrent.Executors; import com.product.android.business.ApplicationVariable; import com.common.widget.GlobalToast; import com.common.android.utils.concurrent.NdTinyHttpAsyncTask; import c...
package com.pidanic.saral.exception; import com.pidanic.saral.scope.Scope; /** * Created by pavol.pidanic on 30/03/2017. */ public class FunctionNotFound extends RuntimeException { public FunctionNotFound(Scope scope, String functionName) { super("No procedure found for name " + functionName + " found i...
package org.apache.cassandra.db.compaction; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.ConcurrentModificationException; import java.util.HashSet; import java.util.List; import java.u...
@interface SCNavigationItem () @property (nonatomic, strong, readwrite) UILabel *titleLabel; @property (nonatomic, assign) UIViewController *_sc_viewController; @end @implementation SCNavigationItem - (instancetype)init { if (self = [super init]) { [[NSNotificationCenter defaultCenter] addObserver:self ...
// Code generated by client-gen. DO NOT EDIT. package fake import ( v1 "k8s.io/client-go/kubernetes/typed/discovery/v1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) type FakeDiscoveryV1 struct { *testing.Fake } func (c *FakeDiscoveryV1) EndpointSlices(namespace string) v1.EndpointSliceInt...
import json from functools import partial from mms.service_manager import ServiceManager from mms.request_handler.flask_handler import FlaskRequestHandler from mms.log import get_logger logger = get_logger(__name__) class ServingFrontend(object): '''ServingFrontend warps up all internal services including ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE273_Improper_Check_for_Dropped_Privileges__w32_RpcImpersonateClient_04.c Label Definition File: CWE273_Improper_Check_for_Dropped_Privileges__w32.label.xml Template File: point-flaw-04.tmpl.c */ /* * @description * CWE: 273 Improper Check for Dropped Privileges ...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("jquery")); else if(typeof define === 'function' && define.amd) define(["jquery"], factory); else if(typeof exports === 'object') exports["diva"] = factory(...
""" Make sure nodefaultlib setting is extracted properly. """ import TestGyp import sys if sys.platform == 'win32': test = TestGyp.TestGyp(formats=['msvs', 'ninja']) CHDIR = 'linker-flags' test.run_gyp('nodefaultlib.gyp', chdir=CHDIR) test.build('nodefaultlib.gyp', 'test_ok', chdir=CHDIR) test.build('nod...
/** * Folder node. * @extends {dox.Node} */ dox.Folder = dox.Node.extend ({ /** * Open/close. * @type {boolean} */ open : false, /** * Listing filesnames in this and descendant folders. * @type {Array<String>} */ filenames : null, /** * Contains files or folders. * @type {Array<dox.Node>} ...
<?xml version="1.0" encoding="UTF-8"?> <faceted-project> <installed facet="java" version="1.7"/> <installed facet="jpt.jpa" version="1.0"/> </faceted-project>
(function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery" ], factory ); } else { // Browser globals factory( jQuery ); } }(function( $ ) { /*! * jQuery UI Core 1.11.1 * http://jqueryui.com * * Copyright 2014 jQuery Foundation...
import unittest import coverage cov = coverage.coverage() cov.start() from flask import Flask from flask_socketio import SocketIO, rooms from flask_socketapi import SocketAPI from flask_socketapi.exc import InvalidURIError app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' socketio = SocketIO(app) socketapi...
package azure // Copyright 2017 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.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProjectsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { if (!Schema::hasTable('projects')) { Schema::creat...
package edu.ucsb.jpregel.system; import api.*; import java.io.IOException; import java.io.Serializable; /** * <p> * Job encapsulates the data structures & methods for a * particular kind of graph problem, as well as parameter values for a * particular instance of such a graph problem. * </p> * <p> * The numb...
"""This module contains the general information for PciEquipSlot ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class PciEquipSlotConsts: pass class PciEquipSlot(ManagedObject): """This is PciEquipSlot class.""" ...
<!-- BEGIN MUNGE: UNVERSIONED_WARNING --> <!-- BEGIN STRIP_FOR_RELEASE --> <img src="http://kubernetes.io/img/warning.png" alt="WARNING" width="25" height="25"> <img src="http://kubernetes.io/img/warning.png" alt="WARNING" width="25" height="25"> <img src="http://kubernetes.io/img/warning.png" alt="WARNING"...
function clientValidate() { var username = document.getElementById("username"), password = document.getElementById("password"); if (false == validateUserName(username.value)) { return false; } if (false == validatePassword(password.value)) { return false; } return true; }...
<?php namespace spec\Prophecy\Argument\Token; use PhpSpec\ObjectBehavior; class TypeTokenSpec extends ObjectBehavior { function let() { $this->beConstructedWith('integer'); } function it_implements_TokenInterface() { $this->shouldBeAnInstanceOf('Prophecy\Argument\Token\TokenInter...
@interface SSHolidayTW() { NSDictionary *_solarHolidayTW; } @property (readonly) NSDictionary *solarHolidayTW; @end @implementation SSHolidayTW - (NSDictionary *) solarHolidayTW { if (!_solarHolidayTW) _solarHolidayTW = @{@"0101":NSLocalizedString(@"开国纪念日",""), @"0214":NSLo...
package org.elasticsearch.action.admin.cluster.storedscripts; import org.elasticsearch.action.Action; import org.elasticsearch.client.ElasticsearchClient; public class DeleteStoredScriptAction extends Action<DeleteStoredScriptRequest, DeleteStoredScriptResponse, DeleteStoredScriptRequestBuilder> { publ...
title: Iskustvo date: 20/11/2020 --- #### Oživljena djevojčica u Indoneziji Dvojica studenata-misionara pozdravili su svojeg nadglednika, Sungbae Geea, s uzbuđenjem kad je stigao u njihovo selo u džungli na indonezijskom otoku Papua. “Pastore, imamo jako lijepo iskustvo!” rekao je Santos, 22-godišnji student-misi...
.class Lcom/android/internal/telephony/dataconnection/DcSwitchStateMachine$AttachedState; .super Lcom/android/internal/util/State; .source "DcSwitchStateMachine.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/android/internal/telephony/dataconnection/DcSwitchStateMachine; .e...
/* Menu There are three areas of styling for the Menu: 1. The menu There are three types of menus: i) Context Menu ii) Drop down Menu iii) Navigation Menu All three types of menus are affected by the .dijitMenu class in which you can set the background-color, padding and border .dijitMenu affects th...
using System; using System.Xml.Linq; using NUnit.Framework; using Orchard.Core.XmlRpc.Services; namespace Orchard.Tests.Modules.XmlRpc.Services { [TestFixture] public class XmlRpcReaderTests { private IXmlRpcReader _xmlRpcReader; [SetUp] public void Init() { _xmlRpcReader ...
<?php /** * This program 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 Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it wil...
package org.apache.camel.example.cxf.httptojms; import java.io.File; import org.apache.activemq.broker.BrokerService; import org.apache.activemq.store.memory.MemoryPersistenceAdapter; public final class JmsBroker { JMSEmbeddedBroker jmsBrokerThread; String jmsBrokerUrl = "vm://localhost"; String activeM...
<?php namespace Akeeba\MiniTest\Test; use Akeeba\Engine\Postproc\Connector\S3v4\Connector; use Akeeba\Engine\Postproc\Connector\S3v4\Exception\CannotDeleteFile; use Akeeba\Engine\Postproc\Connector\S3v4\Exception\CannotGetFile; use Akeeba\Engine\Postproc\Connector\S3v4\Input; class HeadObject extends AbstractTest...
class User < Ccls::User end
namespace skia { namespace { // Converts the argument to an 8-bit unsigned value by clamping to the range // 0-255. inline unsigned char ClampTo8(int a) { if (static_cast<unsigned>(a) < 256) return a; // Avoid the extra check in the common case. if (a < 0) return 0; return 255; } // Takes the value pr...
package mcon import ( "bufio" "fmt" "os" "strings" ) const ( NEW_LINE_BYTE = byte(10) ) // ReadLine from os.Stdio func ReadLine() (result string) { r := bufio.NewReader(os.Stdin) result, _ = r.ReadString(NEW_LINE_BYTE) if strings.HasSuffix(result, "\n") { result = strings.TrimSuffix(result, "\n") } retur...
"use strict"; var Shim = require("./shim"); var Set = require("./fast-set"); var GenericCollection = require("./generic-collection"); var GenericMap = require("./generic-map"); var PropertyChanges = require("./listen/property-changes"); var MapChanges = require("./listen/map-changes"); module.exports = FastMap; func...
<?xml version="1.0" encoding="UTF-8"?> <graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <graph edgedefault="directed"> </graph> </graphml>
package org.sakaiproject.util; import org.sakaiproject.javax.Order; /** * database methods. */ public interface DoubleStorageSql { public String getDeleteSql(String table, String idField); public String getDelete2Sql(String table, String idField1, String idField2); public String getDeleteLocksSql(); public...
package org.apache.flink.runtime.source.coordinator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.Callable; import java.util.concurrent.Executor; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.function.BiConsumer; ...
namespace Microsoft.Azure.Management.WebSites.Models { using Azure; using Management; using WebSites; using Rest; using Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; /// <summary> /// Certificate ord...
package org.apache.axis2.osgi.deployment.tracker; import org.apache.axis2.osgi.deployment.Registry; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; import org.osgi.framework.BundleEvent; import org.osgi.fra...
var events = require('events'), request = require('request'), WorkerPool = require('./worker-pool'), USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1'; function crawl(urls) { var emitter = new events.EventEmitter...
<!doctype html> <html ⚡ lang="en"> <head> <meta charset="utf-8"> <title>Nexxtv Player Example</title> <link rel="canonical" href="amps.html" > <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <link href='https://fonts.googleapis.com/css?family=Georgia|Open+Sans|Roboto' rel='...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis.CSharp.Symbols; using System.Diagnostics; namespace Microsoft.CodeAnalysis.CSharp { internal partial class Binder { ...
#include <string.h> #include "altera_avalon_timer.h" #include "alt_types.h" /* * Variables used to store the timestamp parameters. These are initialised * from alt_sys_init() using the ALTERA_AVALON_TIMER_INIT macro * defined in altera_avalon_timer.h. */ void* altera_avalon_timer_ts_base = (void*) 0; alt_u32 a...
<?php defined('C5_EXECUTE') or die("Access Denied."); class Concrete5_Helper_Array { /** * Fetches a value from an (multidimensional) array * @param array $array * @param string|int|array $keys Either one key or multiple keys * @param mixedvar $default the value that is returned if key is not found */ p...
///////////////////////////////////////////////////////////////////////////// // // // AliFemtoShareQualityQAPairCut - a pair cut which checks for some pair // // qualities that attempt to identify slit/doubly reconstructed tracks // // ...
describe('dc.scatterPlot', function() { var id, chart; var data, group, dimension; beforeEach(function () { data = crossfilter(loadDateFixture()); dimension = data.dimension(function(d) { return [+d.value, +d.nvalue]; }); group = dimension.group(); id = 'scatter-plot'; ...
define([], function () { var xhr, progIds; progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0']; xhr = function () { if (typeof XMLHttpRequest !== "undefined") { // rewrite the getXhr method to always return the native implementation xhr = function () { return new XMLHttpRequest(); ...
/**************************************************************************/ /*! @file cmd_i2ceeprom_write.c @author K. Townsend (microBuilder.eu) @brief Code to execute for cmd_i2ceeprom_write in the 'core/cmd' command-line interpretter. @section LICENSE Software License ...
""" L{Transport} handles the core SSH2 protocol. """ import os import socket import string import struct import sys import threading import time import weakref import paramiko from paramiko import util from paramiko.auth_handler import AuthHandler from paramiko.channel import Channel from paramiko.common import * fro...
namespace syncer { SyncManager::ChangeDelegate::~ChangeDelegate() {} SyncManager::ChangeObserver::~ChangeObserver() {} SyncManager::Observer::~Observer() {} SyncManager::InitArgs::InitArgs() : enable_local_sync_backend(false), extensions_activity(nullptr), change_delegate(nullptr), user_share(...
/* Currently supports only GLIBC-compatible NSS modules */ #include "auth-common.h" #include "userdb.h" #ifdef USERDB_NSS #include "module-dir.h" #include <pwd.h> #include <unistd.h> #include <dlfcn.h> #include <nss.h> #define USER_CACHE_KEY "%u" struct nss_userdb_module { struct userdb_module module; char *...
<!-- Copyright (c) 2011 Srikanth Raju, http://srikanthraju.in/scrobbleware --> <!-- Released under MIT license. See LICENSE file for more information --> <html> <head> <title>scrobbleware</title> <link rel="stylesheet" type="text/css" href="options.css" /> <script type="text/javascript" src="options.js"></s...
;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, function (Crypt...
[![Build Status](https://travis-ci.org/NicholasMerrill/avwxsummarizer.svg?branch=master)](https://travis-ci.org/NicholasMerrill/avwxsummarizer) The Summarizer gives you a quick picture of the important weather components for your flight today, checking the current METARs for basic warning indicators. **This library u...
package org.jbpm.workbench.ht.client.editors; import java.util.function.Predicate; import javax.enterprise.event.Event; import javax.inject.Inject; import org.jbpm.workbench.ht.model.events.AbstractTaskEvent; import org.jbpm.workbench.ht.model.events.TaskSelectionEvent; import org.uberfire.workbench.events.Notific...
<?php /** * Return the value of a specific field in a specific row * * @phpstub * * @param resource $result * @param int $row * @param mixed $field * * @return string Value of a specific field, on success (NULL if value if null). */ function cubrid_result($result, $row, $field = '0') { }
identifier: MIR:00000147 name: PMC International description: PMC International (PMCI) is a free full-text archive of biomedical and life sciences journal literature. PMCI is a collaborative effort between the U.S. National Institutes of Health and the National Library of Medicine, the publishers whose journal content ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_20) on Wed May 05 11:17:11 PDT 2010 --> <TITLE> Uses of Interface org.apache.pig.backend.executionengine.ExecScopedLogicalOperator (Pig 0.7.0 API) </...
const b = require('./b'); module.exports = b.x;
<?php /** * @package tests * @subpackage assertions */ # ============================================================================ # # ASSERTIONS # # ============================================================================ # /** * assert_true...
/* Database.js KC3改 Indexed Database Used to log player information for later use on Strategy Room Uses Dexie.js third-party plugin on the assets directory */ (function(){ "use strict"; var dbIndex = 0; window.KC3Database = { con:{}, init :function( defaultUser ){ this.con = new Dexie("...
package org.apache.vxquery.xmlquery.query; import javax.xml.namespace.QName; public class XMLQueryCompilerConstants { public static final QName DOT_VAR_NAME = new QName("$dot"); public static final QName POS_VAR_NAME = new QName("$position"); public static final QName LAST_VAR_NAME = new QName("$last"); ...
""" This package has the class that allows for you to access a neo4j database using the py2neo library. """ __author__ = "Manoel Horta Ribeiro"
Disable CSRF Protection on a form using the FormExtension ========================================================= The *FormExtension* provides a service for building form in your application with the Symfony2 Form component. By default, the *FormExtension* uses the CSRF Protection avoiding Cross-site request forgery...
require "rake" # inspired by http://robots.thoughtbot.com/test-rake-tasks-like-a-boss shared_context "rake" do let(:rake) { Rake::Application.new } let(:task_name) { rake.parse_task_string(self.class.description).first } let(:task_args) { rake.parse_task_string(self.class.description).last } let(:task_pat...
package org.apache.ignite.yardstick.cache; import java.util.Map; import java.util.Set; import java.util.TreeMap; import java.util.TreeSet; import org.apache.ignite.IgniteCache; import org.apache.ignite.yardstick.cache.model.SampleValue; /** * Ignite benchmark that performs batch put and get operations. */ public ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Bad Request - DocumentCloud</title> <link href="/stylesheets/common/reset.css" media="all" rel="stylesheet" type="text/css" /> <link href="/stylesheets/ui/ui.css" media="all...
/* * Send and receive streams for BaseX. They expect and emit Buffers * * andy bunce 2011-2014 * see http://loose-bits.com/2012/08/02/nodejs-read-write-streams-pipes.html */ /** * SendStream: write 0xFF before 00 or FF * @constructor SendStream * @return */ var SendStream = function() { this.readable = t...
package org.apache.logging.log4j.jmx.gui; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.event.ActionEvent; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import java.util.HashMap; import java.util.Map; import javax.management.Instance...
package cleanhttp import ( "net" "net/http" "time" ) // DefaultTransport returns a new http.Transport with the same default values // as http.DefaultTransport, but with idle connections and keepalives disabled. func DefaultTransport() *http.Transport { transport := DefaultPooledTransport() transport.DisableKeepA...
(function (window, document, $, undefined) { "use strict"; var H = $("html"), W = $(window), D = $(document), F = $.fancybox = function () { F.open.apply( this, arguments ); }, IE = navigator.userAgent.match(/msie/i), didUpdate = null, isTouch = document.createTouch !== undefined, isQuery = f...
package com.marshalchen.common.uimodule.slider.Transformers; import android.view.View; import com.nineoldandroids.view.ViewHelper; public class ZoomOutTransformer extends BaseTransformer { @Override protected void onTransform(View view, float position) { final float scale = 1f + Math.abs(position); ...
package remote // import "github.com/docker/docker/libcontainerd/remote" import ( "context" "encoding/json" "io" "os" "path/filepath" "reflect" "runtime" "strings" "sync" "syscall" "time" "github.com/containerd/containerd" apievents "github.com/containerd/containerd/api/events" "github.com/containerd/co...
@implementation LKValidator + (instancetype) validator { return [[self alloc] init]; } #pragma mark - #pragma mark Validation - (BOOL) validateInput:(NSString *)input error:(NSError **)error { if (error) { *error = nil; } return NO; } + (NSError *) errorWithReason:(NSString *)aReason c...
var Todos = require('../models/todoModel'); var bodyParser = require('body-parser'); module.exports = function(app){ app.use(bodyParser.json()); app.use(bodyParser.urlencoded({extended:true})); app.get('/api/todos/:uname', function(req, res){ Todos.find({username : req.params.uname}, function(err, todos){ i...
ag-grid-ng2 { display: inline-block; } .ag-root { font-size: 14px; cursor: default; /* set to relative, so absolute popups appear relative to this */ position: relative; /* disable user mouse selection */ -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -web...
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2016-2017 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/relativeLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/chat_background"> <TextView android:id="@+id/resultString" androi...