text
stringlengths
3
1.05M
cask "time-lapse-assembler" do version "1.5.3" sha256 :no_check url "http://www.dayofthenewdan.com/TimeLapseAssembler.dmg" name "Time Lapse Assembler" desc "Tool to create movies from a sequence of images" homepage "http://www.dayofthenewdan.com/projects/time-lapse-assembler-1/" app "Time Lapse Assemble...
package redis import ( "errors" "fmt" "strconv" ) // ErrNil indicates that a reply value is nil. var ErrNil = errors.New("redigo: nil returned") // Int is a helper that converts a command reply to an integer. If err is not // equal to nil, then Int returns 0, err. Otherwise, Int converts the // reply to an int as...
"use strict"; var vows = require('vows') , fs = require('fs') , path = require('path') , sandbox = require('sandboxed-module') , log4js = require('../lib/log4js') , assert = require('assert') , EOL = require('os').EOL || '\n'; log4js.clearAppenders(); function remove(filename) { try { fs.unlinkSync(filename); ...
(function($, window) { var $window = $(window); $.fn.lazyload = function(options) { var elements = this; var $container; var settings = { threshold : 0, failure_limit : 0, event : "scroll", effect : "show", ...
Ping servers listed in a file to check which one is more fast on Mac OS. Usage: ``` ./pingtest ./ips.txt ``` Sample txt file: ``` v1.example.com v2.example.com v3.example.com ```
// 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 System; using System.Collections; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; namespace Roslyn.Utilities ...
 #pragma once #include <aws/kinesisanalyticsv2/KinesisAnalyticsV2_EXPORTS.h> #include <aws/kinesisanalyticsv2/model/InputLambdaProcessor.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace KinesisAnalyticsV2 ...
module RubyToBlock module Block class MotionTurnIfReachWall < CharacterMethodCall blocknize '^\s*' + CHAR_RE + 'turn_if_reach_wall\s*$', statement: true end end end
<?php namespace WellCommerce\Bundle\AppBundle\Form\Front; use WellCommerce\Bundle\CoreBundle\Form\AbstractFormBuilder; use WellCommerce\Component\Form\Elements\FormInterface; /** * Class ClientContactDetailsFormBuilder * * @author Adam Piotrowski <adam@wellcommerce.org> */ class ClientContactDetailsFormBuilder ...
#include <memory> #include <string> #include <vector> #include "absl/container/flat_hash_map.h" #include "absl/types/variant.h" #include "pybind11/pybind11.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/profiler/convert/xplane_to_tools_data.h" #include "tensorflow/core/profiler/rpc/profiler_s...
// Copyright 2009 the Sputnik authors. All rights reserved. /** * The Date.prototype.toUTCString property "length" has { ReadOnly, DontDelete, DontEnum } attributes * * @path ch15/15.9/15.9.5/15.9.5.42/S15.9.5.42_A3_T1.js * @description Checking ReadOnly attribute */ x = Date.prototype.toUTCString.length; Date.p...
// Copyright (c) 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condi...
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in in Ferrer, Sivichai & Shearer, Mycologia 99(3): 458 (2007) #### Original name Megalohypha aqua-dulces A. Ferrer & Shearer, 2007 ### Remarks null
DROP INDEX [idx_address];
<Type Name="CCMouseEventType" FullName="CocosSharp.CCMouseEventType"> <TypeSignature Language="C#" Value="public enum CCMouseEventType" /> <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed CCMouseEventType extends System.Enum" /> <AssemblyInfo> <AssemblyName>CocosSharp</AssemblyName> </A...
package org.jetbrains.plugins.groovy.refactoring.extract.closure; import com.intellij.psi.PsiReference; import com.intellij.usageView.UsageInfo; import org.jetbrains.annotations.NotNull; /** * @author Max Medvedev */ public class OtherLanguageUsageInfo extends UsageInfo { public OtherLanguageUsageInfo(@NotNull P...
import { transform } from '@babel/core'; import { default as elideAngularMetadata } from './elide-angular-metadata'; // eslint-disable-next-line import/no-extraneous-dependencies const prettier = require('prettier'); function testCase({ input, expected }: { input: string; expected: string }): void { const result ...
package org.apache.hadoop.hdfs.server.namenode.ha; import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_EDITS_DIR_KEY; import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_SHARED_EDITS_DIR_KEY; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import java.io.IOEx...
<!doctype html> <html ⚡> <head> <meta charset="utf-8"> <title>amp-twitter</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=Questrial' rel='stylesheet' type='text/css'> <scr...
from bamboo_boy.materials import Clump import random import factory from readthedocs.comments.models import DocumentComment, DocumentNode, NodeSnapshot from readthedocs.rtd_tests.factories.general_factories import UserFactory from readthedocs.rtd_tests.factories.projects_factories import ProjectFactory class Snapsh...
package org.apache.hadoop.fs; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.text.SimpleDateFormat; ...
const std::set<browser_sync::SyncedWindowDelegate*> browser_sync::SyncedWindowDelegate::GetSyncedWindowDelegates() { std::set<browser_sync::SyncedWindowDelegate*> synced_window_delegates; for (chrome::BrowserIterator it; !it.done(); it.Next()) synced_window_delegates.insert(it->synced_window_delegate()); ...
package continuous_querier_test import ( "testing" "time" "github.com/BurntSushi/toml" "github.com/influxdb/influxdb/services/continuous_querier" ) func TestConfig_Parse(t *testing.T) { // Parse configuration. var c continuous_querier.Config if _, err := toml.Decode(` recompute-previous-n = 1 recompute-no-old...
select 32767 * next_hi into @id from hibernate_unique_key; select uniqueid into @gdist from solver_parameter_group where name='Distance'; select max(ord) into @odist from solver_parameter_def where solver_param_group_id=@gdist; select uniqueid into @ggen from solver_parameter_group where name='General'; select max(or...
var runWithCover = require('./common/run-with-cover'), util = require('util'), Command = require('./index'); function TestCommand() { Command.call(this); } TestCommand.TYPE = 'test'; util.inherits(TestCommand, Command); Command.mix(TestCommand, { synopsis: function () { return "cover a node...
using Microsoft.Azure; using Microsoft.WindowsAzure.Commands.Compute.Automation.Models; using Microsoft.WindowsAzure.Management.Compute; using Microsoft.WindowsAzure.Management.Compute.Models; using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; namespace Microsoft.Win...
<?php /** * This model manages Shop Payment agteways and integrates OmniPay * * @package Nails * @subpackage module-shop * @category Model * @author Nails Dev Team * @link */ use Nails\Factory; use Nails\Environment; use Omnipay\Common; use Omnipay\Common\CreditCard; use Omnipay\Omnipay; class S...
<?php /** * BuddyPress Core Login Widget. * * @package BuddyPress * @subpackage Core * @since 1.9.0 */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; /** * BuddyPress Login Widget. * * @since 1.9.0 */ class BP_Core_Login_Widget extends WP_Widget { /** * Constructor method. * * @since 1....
''' tunepk urlresolver plugin Copyright (C) 2013 icharania 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 3 of the License, or (at your option) any later version. This program is dis...
set -e set -v CGO_ENABLED=0 go test -purego true CGO_ENABLED=0 go test -purego true -tags purego CGO_ENABLED=1 go test -purego false CGO_ENABLED=1 go test -purego true -tags purego
/** * */ package org.apache.pig.data; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.util.Iterator; import org.apache.pig.PigException; import org.apache.pig.backend.executionengine.ExecException; /** * A simple performant implementation of the DataBag * interface...
using System; namespace UniRx { public interface IReactiveCommand<T> : IObservable<T> { IReadOnlyReactiveProperty<bool> CanExecute { get; } bool Execute(T parameter); } public interface IAsyncReactiveCommand<T> { IReadOnlyReactiveProperty<bool> CanExecute { get; } ...
<div [formGroup]="form"> <label class="col-sm-2 control-label">{{field.label}}</label> <div class="col-sm-10"> <div [ngSwitch]="field.controlType"> <input *ngSwitchCase="'textbox'" class="form-control" value="{{field.value}}" [formControlName]="field.key" [type]="field.type" ...
.class Landroid/inputmethodservice/InputMethodService$1; .super Landroid/content/BroadcastReceiver; .source "InputMethodService.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroid/inputmethodservice/InputMethodService; .end annotation .annotation system Ldalvik/annotation/I...
namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct shift_left_impl : if_c< ( BOOST_MPL_AUX_NESTED_VALUE_WKND(int, Tag1) > BOOST_MPL_AUX_NESTED_VALUE_WKND(int, Tag2) ) , aux::cast2nd_impl< shift_left_impl< Tag1,Tag1 >,Tag1, T...
(function(global) { // Stores the Y position where the touch started var startY = 0; // Store enabled status var enabled = false; var supportsPassiveOption = false; try { var opts = Object.defineProperty({}, 'passive', { get: function() { supportsPassiveOption = true; } }); window.addEventListe...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
module Gitlab module Satellite class FileAction < Action attr_accessor :file_path, :ref def initialize(user, project, ref, file_path) super user, project @file_path = file_path @ref = ref end def safe_path?(path) File.absolute_path(path) == path end ...
<?php namespace PHPExiftool\Driver\Tag\PDF; use JMS\Serializer\Annotation\ExclusionPolicy; use PHPExiftool\Driver\AbstractTag; /** * @ExclusionPolicy("all") */ class Encryption extends AbstractTag { protected $Id = 'Filter'; protected $Name = 'Encryption'; protected $FullName = 'PDF::Encrypt'; ...
using FluentAssertions; using Xunit; namespace CodeCracker.Test.CSharp { public class ChangeCultureTests { [Fact] public static void ChangesCulture() { using (new ChangeCulture("en-US")) 2.5.ToString().Should().Be("2.5"); using (new ChangeCulture...
<?php /** * Handles Quoted Printable (QP) Transfer Encoding in Swift Mailer using the PHP core function. * * @package Swift * @subpackage Mime * @author Lars Strojny */ class Swift_Mime_ContentEncoder_NativeQpContentEncoder implements Swift_Mime_ContentEncoder { /** * Notify this observer that ...
package org.kie.workbench.common.dmn.client.editors.expressions.types; import java.util.function.Supplier; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.Instance; import javax.enterprise.inject.Produces; import javax.inject.Inject; import org.kie.workbench.common.dmn.api.qualifi...
<?php namespace Doctrine\ORM\Query\AST; /** * IndexBy ::= "INDEX" "BY" SimpleStateFieldPathExpression * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision: 3938 $ * @author Guilherme Blanco <guilhermeblanco@hotmail.com> ...
/** * @author miibond * Generate a texture that represents the luminosity of the current scene, adapted over time * to simulate the optic nerve responding to the amount of light it is receiving. * Based on a GDC2007 presentation by Wolfgang Engel titled "Post-Processing Pipeline" * * Full-screen tone-mapping shad...
package org.apache.activemq; import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.DeliveryMode; import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.MessageConsumer; import javax.jms.MessageProducer; import javax.jms.Queue; import javax.jms.QueueBrowser; import ja...
package v1 import ( "github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd/api" "github.com/GoogleCloudPlatform/kubernetes/pkg/runtime" ) // Codec encodes internal objects to the v1 scheme var Codec = runtime.CodecFor(api.Scheme, "v1") func init() { api.Scheme.AddKnownTypes("v1", &Config{}, ) } fun...
using namespace std; class Solution { public: string fractionToDecimal(int numerator, int denominator) { assert(denominator != 0); if (numerator % denominator == 0) return to_string(numerator/denominator); } }; int main() { return 0; }
from __future__ import absolute_import, division, print_function import collections import itertools import re from ._structures import Infinity __all__ = [ "parse", "Version", "LegacyVersion", "InvalidVersion", "VERSION_PATTERN" ] _Version = collections.namedtuple( "_Version", ["epoch", "release", "d...
import {expect} from 'src/external/chai.js'; import FileIndex from "src/client/fileindex.js" import Paths from "src/client/paths.js" describe('FileIndex', () => { var sut = new FileIndex("fileindex_test") describe('normalizePath', () => { it('relative path with dir', async function() { expect(Pat...
package client const ( VOLUME_SNAPSHOT_INPUT_TYPE = "volumeSnapshotInput" ) type VolumeSnapshotInput struct { Resource Name string `json:"name,omitempty" yaml:"name,omitempty"` } type VolumeSnapshotInputCollection struct { Collection Data []VolumeSnapshotInput `json:"data,omitempty"` } type VolumeSnapshotInpu...
package edu.purdue.cs.woof; import android.support.v4.app.Fragment; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.*; pu...
module.exports = { host: function(inStream) { }, unhost: function() { }, getHostTarget: function() { }, setTitle: function(inTitle) { }, getTitle: function() { }, setGame: function(inName) { }, getGame: function() { }, getViewers: function() { }, ...
package com.gs.collections.impl.block.factory; import com.gs.collections.api.block.function.Function; import com.gs.collections.api.block.function.Function2; /** * Contains factory methods for creating {@link Function2} instances. */ public final class Functions2 { private Functions2() { throw new...
package latitude import ( "bytes" "code.google.com/p/google-api-go-client/googleapi" "encoding/json" "errors" "fmt" "io" "net/http" "net/url" "strconv" "strings" ) // Always reference these packages, just in case the auto-generated code // below doesn't. var _ = bytes.NewBuffer var _ = strconv.Itoa var _ = ...
<?php /* * 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. */ /** * Description of Config * * @author chris */ class Config { //configure your own values here public static $S...
package packp import ( "fmt" ) type stateFn func() stateFn const ( // common hashSize = 40 // advrefs head = "HEAD" noHead = "capabilities^{}" ) var ( // common sp = []byte(" ") eol = []byte("\n") eq = []byte{'='} // advertised-refs null = []byte("\x00") peeled = []byte("^{}") noHeadMa...
unless ENV['CI'] require 'simplecov' SimpleCov.start do add_filter 'spec' add_filter '.bundle' end end require 'venice' require 'rspec' require 'rspec/its' RSpec.configure do |config| config.mock_with :rspec do |mocks| mocks.yield_receiver_to_any_instance_implementation_blocks = false end end
ActiveRecord::Schema.define(version: 20170803200112) do create_table "short_urls", force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=latin1" do |t| t.string "original_url" t.string "short_url" t.integer "clicks", default: 0 t.datetime "created_at", null: false t.datetime "updated_at", null...
namespace WebKit { class WebApplicationCacheHost; class WebApplicationCacheHostClient; class WebFrame; } namespace content { class SharedWorkerDevToolsAgent; class WebSharedWorkerStub; // This class receives IPCs from the renderer and calls the WebCore::Worker // implementation (after the data types have been conver...
import { DefaultIfEmptySignature } from '../../operator/defaultIfEmpty'; declare module '../../Observable' { interface Observable<T> { defaultIfEmpty: DefaultIfEmptySignature<T>; } }
/* Error: Undefined variable: "$turquoise". on line 1 of /Users/mikeekert/Prime/MikeEkert/public/styles/sass/bulma/utilities/derived-variables.sass 1: $primary: $turquoise !default 2: 3: $info: $cyan !default 4: $success: $green !default 5: $warning: $yellow !default 6: $danger: $red !default Backtrace: /Use...
%pylab --no-import-all inline # <codecell> import numpy as np import matplotlib.pyplot as plt from pandas import DataFrame, Series, Index import pandas as pd from itertools import islice # <codecell> import census import us import settings # <markdowncell> # The census documentation has example URLs but needs y...
package org.apache.flink.test.util; import org.apache.flink.api.common.time.Time; import org.apache.flink.configuration.AkkaOptions; import org.apache.flink.configuration.Configuration; import org.apache.flink.runtime.minicluster.MiniCluster; import org.apache.flink.runtime.minicluster.RpcServiceSharing; /** * Mir...
<?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...
namespace realm { namespace app { util::Optional<AppError> AppUtils::check_for_errors(const Response& response) { bool http_status_code_is_fatal = response.http_status_code >= 300 || (response.http_status_code < 200 && response.http_status_code != 0); auto find_case_insensitive_header = [&response](co...
package BinTreeLevelTrav_102; import BinaryTree.TreeNode; import java.util.*; /** * Given a binary tree, return the level order traversal of its nodes' values. * (ie, from left to right, level by level). * * For example: * Given binary tree [3,9,20,null,null,15,7], * * return its level order traversal as: * ...
var _ = require('lodash'); module.exports = function contentProcessor(templateFinder) { return { $runAfter: ['paths-computed'], $runBefore: ['rendering-docs'], $process: function(docs) { var contentDocs = _(docs) .filter(function(doc) { return doc.docType === 'content'; }) ...
package org.jetbrains.plugins.textmate.plist; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.*; public class PListValue { private final Object myValue; private final PlistValueType myType; PListValue(Object value, PlistValueType type) { myValue = valu...
require 'test_helper' class FeaturesTest < MiniTest::Spec module Title def title; "Is It A Lie"; end end module Length def length; "2:31"; end end definition = lambda { feature Title feature Length # exec_context: :decorator, so the readers are called on the Decorator instance (which ge...
/* Syntax highlighting with language autodetection. http://softwaremaniacs.org/soft/highlight/ */ var hljs = new function() { /* Utility functions */ function escape(value) { return value.replace(/&/gm, '&amp;').replace(/</gm, '&lt;'); } function langRe(language, value, global) { return RegExp( ...
use {Handler, Evented, Poll, NotifyError, Token}; use event::{IoEvent, EventSet, PollOpt}; use notify::Notify; use timer::{Timer, Timeout, TimerResult}; use std::{io, fmt, thread, usize}; /// Configure EventLoop runtime details #[derive(Clone, Debug)] pub struct EventLoopConfig { io_poll_timeout_ms: usize, //...
/** * @description Tiny/Weird helper to attach the information if the request is HTTPS or HTTP. * * It's used in services/url/utils (search for ".secure"). * * We forward the resource into handlebars and if you use the URL helper, we want to know if the original request * was https or not to generate the correct ...
/* * JBox2D - A Java Port of Erin Catto's Box2D * * JBox2D homepage: http://jbox2d.sourceforge.net/ * Box2D homepage: http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of ...
IIS Cookbook CHANGELOG ====================== This file is used to list changes made in each version of the IIS cookbook. v2.1.0 (2014-03-25) ------------------- [COOK-4426] - feature order correction for proper installation [COOK-4428] - Add IIS FTP Feature Installation v2.0.4 (2014-03-18) ------------------- - ...
#include <nokogiri.h> VALUE mNokogiri ; VALUE mNokogiriXml ; VALUE mNokogiriHtml ; VALUE mNokogiriXslt ; VALUE mNokogiriXmlSax ; VALUE mNokogiriHtmlSax ; #ifdef USE_INCLUDED_VASPRINTF /* * I srsly hate windows. it doesn't have vasprintf. * Thank you Geoffroy Couprie for this implementation of vasprintf! */ int va...
package reference import ( "testing" ) func TestParse(t *testing.T) { testCases := []struct { ref string expectedName string expectedTag string expectedError bool }{ { ref: "", expectedName: "", expectedTag: "", expectedError: true, }, { ref: "reposi...
<?xml version="1.0" encoding='utf-8' standalone='no'?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- blaze-out/gcc-4.X.Y-crosstool-v18-hybrid-grtev4-k8-opt/genfiles/java/com/google/android/gmscore/integ/client/common/res/values-cs/strings.xml --> <eat-comment/> <string name="common_google_play_se...
<?php /** * Represents a template function as a node. * * Use Twig_SimpleFunction instead. * * @package twig * @author Fabien Potencier <fabien@symfony.com> * @deprecated since 1.12 (to be removed in 2.0) */ class Twig_Function_Node extends Twig_Function { protected $class; public function __...
using content::BrowserThread; namespace drive { namespace file_system { namespace { // Looks up ResourceEntry for source entry and the destination directory. FileError UpdateLocalState(internal::ResourceMetadata* metadata, const base::FilePath& src_path, const bas...
#include "build_environment.h" #ifndef GECKO_19_COMPATIBILITY #ifndef BUILD_ON_UNIX #define MOZ_NO_MOZALLOC #include <mozilla-config.h> #endif #include <xpcom-config.h> #undef HAVE_CPP_CHAR16_T #else // Gecko 1.9 #ifdef BUILD_ON_UNIX #include <xpcom-config.h> #endif #endif #include "errorcodes.h" #include "interac...
package com.navercorp.pinpoint.common.trace; /** * @author Jongho Moon * */ public enum ServiceTypeProperty { TERMINAL, QUEUE, RECORD_STATISTICS, INCLUDE_DESTINATION_ID }
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.droo...
#ifndef MBEDTLS_SHA256_H #define MBEDTLS_SHA256_H #if !defined(MBEDTLS_CONFIG_FILE) #include "config.h" #else #include MBEDTLS_CONFIG_FILE #endif #include <stddef.h> #include <stdint.h> #if !defined(MBEDTLS_SHA256_ALT) // Regular implementation // #ifdef __cplusplus extern "C" { #endif /** * \brief SHA-...
/**! * AngularJS file upload directives and services. Supoorts: file upload/drop/paste, resume, cancel/abort, * progress, resize, thumbnail, preview, validation and CORS * FileAPI Flash shim for old browsers not supporting FormData * @author Danial <danial.farid@gmail.com> * @version 12.0.4 */ (function () { ...
package strategy import "k8s.io/kubectl/pkg/apply" // Options controls how a merge will be executed type Options struct { // FailOnConflict when true will fail patch creation if the recorded and remote // have 2 fields set for the same value that cannot be merged. // e.g. primitive values, list values with repla...
package org.apache.cassandra.stress.settings; import java.io.Serializable; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import com.google.common.util.concurrent.Uninterruptibles; import org.apache.cassandra.stress.operations.OpDistributionFactory; impo...
import os import mock from nova.compute import arch from nova import exception from nova import test class ArchTest(test.NoDBTestCase): @mock.patch.object(os, "uname") def test_host(self, mock_uname): os.uname.return_value = ( 'Linux', 'localhost.localdomain', '3...
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="../../../external/closure-library/closure/goog/base.js"></script> <script type="text/javascript" src="../../../compiled/deps.js"></script> <script type="text/javascript">goog.require('owg.OpenWebGlobe');</script> </head> <body style="padding:0px...
require 'spec_helper' describe Katuv::Core do describe 'api' do it { should respond_to :parse! } it { should respond_to :define } end describe '#parse!' do let(:definition) { double('definition of a dsl') } before do definition.stub(:ast).and_return([]) end subject(:defin...
package org.apache.ignite.cache.hibernate; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.Callable; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; im...
DIV.gj-grid-wrapper { margin: auto; position: relative; clear:both; z-index: 1; } TABLE.gj-grid { margin: auto; border-collapse: collapse; width: 100%; table-layout: fixed; } TABLE.gj-grid THEAD TH [data-role="selectAll"] { margin: auto; } TABLE.gj-grid THEAD TH [data-role="ti...
<?php namespace frontend\modules\tweet\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use common\models\Post; /** * PostSearch represents the model behind the search form about `common\Models\Post`. */ class TweetSearch extends Tweet { /** * @inheritdoc */ public function r...
#ifndef MAVLINK_TYPES_H_ #define MAVLINK_TYPES_H_ #include "inttypes.h" enum MAV_CLASS { MAV_CLASS_GENERIC = 0, ///< Generic autopilot, full support for everything MAV_CLASS_PIXHAWK = 1, ///< PIXHAWK autopilot, http://pixhawk.ethz.ch MAV_CLASS_SLUGS = 2, ///< SLUGS autopilot, http:/...
package restlib.server; import java.lang.reflect.InvocationTargetException; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import restlib.impl.BeanUtils; import restlib.net.Path; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableL...
'use strict'; var path = require('path'); var browserSync = require('browser-sync'); var gulp = require('gulp'); var loadLmnTask = require('lmn-gulp-tasks'); var buildPath = './public/'; gulp.task('js', ['js-quality'], loadLmnTask('browserify', { src: './src/js/app/main.jsx', dest: path.join(buildPath, 'js/bundl...
* postcss-discard-empty will now report the rules that were removed (thanks to @duncanbeevers). # 2.0.1 * Now compiled with babel 6. # 2.0.0 * Upgraded to PostCSS 5. # 1.1.2 * Increased performance by iterating the AST in a single pass (thanks to @andyjansson). # 1.1.1 * Tweaks for compatibility with the pl...
package org.apache.camel.maven; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugins.an...
/* tslint:disable:no-unused-variable */ import { TestBed, async, inject } from '@angular/core/testing'; import { ProductsService } from './products.service'; describe('ProductsService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ProductsService] }); }); it('should ......
<!-- ~ Copyright 2015 Hieu Rocker ~ ~ 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 ag...
''' Created on Jan 19, 2011 @author: al ''' from lxml import etree from lxml import builder from lxml import objectify from collections import defaultdict, deque, MutableSet import os import inspect __E = objectify.ElementMaker(annotate=False) def ensure_dir(d): if not os.path.exists(d): os.make...