text stringlengths 3 1.05M |
|---|
using System;
using System.Linq;
using EasyLauncher.Configuration.Services.Ini;
using NUnit.Framework;
namespace Tests
{
[TestFixture]
public class IniConfigurationLoaderTest
{
private IniConfigurationParser parser;
[SetUp]
public void SetUp()
{
parser = new In... |
set :application, "antitowapp"
set :repository, "[REPO_ADDRESS]"
set :domain, "[YOUR_IP]"
default_run_options[:pty] = true
ssh_options[:paranoid] = false
set :user, "smsbox"
set :runner, "smsbox"
set :use_sudo, false
set :scm, :g... |
package com.zulip.android.networking.response.events;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class StarWrapper extends EventsBranch {
@SerializedName("messages")
private List<Integer> messageContent;
@SerializedName("flag")
private String flag;
@Seriali... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="t... |
"use strict";
var shareReplay_1 = require('../operators/shareReplay');
/**
* @method shareReplay
* @owner Observable
*/
function shareReplay(bufferSize, windowTime, scheduler) {
return shareReplay_1.shareReplay(bufferSize, windowTime, scheduler)(this);
}
exports.shareReplay = shareReplay;
;
//# sourceMappingURL=... |
namespace Moonfish.Guerilla.Tags
{
using Moonfish.Tags;
using Moonfish.Model;
using System.IO;
using System.Collections.Generic;
using System.Linq;
[TagClassAttribute("ctrl")]
public partial class DeviceControlBlock : DeviceBlock, IWriteQueueable
{
public TypeEnum Type;
... |
package com.baoyz.swipemenulistview.demo;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.ResolveInfo;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.ne... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Security.Cryptography.X509Certificates;
using Microsoft.SqlServer.TDS.EndPoint.SSPI;
n... |
package ops
import "github.com/urfave/cli"
//FlagDatabaseUser database user flag
var FlagDatabaseUser = cli.StringFlag{
Name: "user, u",
Value: "",
Usage: "database user",
}
//FlagDatabasePassword database password flag
var FlagDatabasePassword = cli.StringFlag{
Name: "password, p",
Value: "",
Usage: "databa... |
var createObject = require('./createObject');
/**
* Inherit prototype from another Object.
* - inspired by Nicholas Zackas <http://nczonline.net> Solution
* @param {object} child Child object
* @param {object} parent Parent Object
*/
function inheritPrototype(child, parent){
var ... |
using RabbitMQ.Client.Framing;
// ReSharper disable InconsistentNaming
using System;
using System.Text;
using System.Threading;
using EasyNetQ.Tests.Mocking;
using NUnit.Framework;
using EasyNetQ.NonGeneric;
namespace EasyNetQ.Tests.NonGeneric
{
[TestFixture]
public class NonGenericExtensionsTests
{
... |
from __future__ import generator_stop
|
<resources>
<string name="app_name">MAGPIE Client</string>
<string name="app_publisher">MAGPIE Publisher</string>
<string name="app_subscriber">MAGPIE Subscriber</string>
<string name="title_activity_alerts">AlertsActivity</string>
<string name="contacts">Contacts</string>
<string name="close_m... |
<html>
<head>
<script src="../resources/cross-frame-access.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setCanOpenWindows();
testRunner.waitUntilDone();
}
function loaded() {
var url = "data:text/html,... |
import { NgModule } from '@angular/core';
import { BaseRequestOptions, Http } from '@angular/http';
import { MockBackend } from '@angular/http/testing';
import { AppModule } from './app.module';
import { AppComponent } from './app.component';
import { App1Component } from './app1.component';
// import { DataMockServic... |
package bootstrap;
import com.ltsllc.miranda.miranda.Miranda;
import com.ltsllc.miranda.test.TestCase;
import com.ltsllc.miranda.user.BootstrapUsersFile;
import org.junit.Test;
/**
* Created by clarkhobbie on 6/16/17.
*/
public class TestCreateUser extends TestCase {
@Test
public void testBootstrap () throw... |
class Foo[T](v: T) {}
object Test {
new Foo[Boolean](Boolean.FALSE)
}
|
namespace AutoMapper
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AutoMapperMappingException : Exception
{
private readonly string _message;
//
// For guidelines regarding the creation of new exception ... |
var _ = require('lodash'),
Promise = require('bluebird'),
IndexMapGenerator = require('./index-generator'),
PagesMapGenerator = require('./page-generator'),
PostsMapGenerator = require('./post-generator'),
UsersMapGenerator = require('./user-generator'),
TagsMapGenerator = require('./tag-generat... |
package com.ftfl.icare.fragment;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;
import android.os.Bundle;
import android.support.v4.app.Fragment;... |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors.
#
# 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 ... |
using System;
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
public class DiscordController : MonoBehaviour
{
// https://github.com/discordapp/discord-rpc/blob/master/examples/button-clicker/Assets/DiscordController.cs
priv... |
/**
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/
#ifndef CONF_BUSART_IF_H_INCLUDED
#define CONF_BUSART_IF_H_INCLUDED
/** Timers Configuration */
#define ID_TC_USART ID_TC4
#define TC_USART TC1
#define TC_USART_CHN 1
#define T... |
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//
// Purpose: Simple two bone ik solver.
//
//=============================================================================
using UnityEngine;
public class SteamVR_IK : MonoBehaviour
{
public Transform target;
public Transf... |
var LazyWrapper = require('./LazyWrapper');
/**
* Reverses the direction of lazy iteration.
*
* @private
* @name reverse
* @memberOf LazyWrapper
* @returns {Object} Returns the new reversed `LazyWrapper` object.
*/
function lazyReverse() {
if (this.__filtered__) {
var result = new LazyWrapper(this);
r... |
// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
var Builder = {
NODEMAP: {
AREA: 'map',
CAPTION: 'ta... |
<!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_26) on Sat Jun 21 06:31:10 UTC 2014 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class org.apache.hadoop.i... |
'use strict';
/* https://github.com/angular/protractor/blob/master/docs/toc.md */
describe('my app', function() {
it('should add a todo', function() {
browser.get('https://angularjs.org');
element(by.model('todoList.todoText')).sendKeys('write first protractor test');
element(by.css('[value="add"]')).c... |
namespace syncer {
ModelTypeSyncProxy::ModelTypeSyncProxy() {
}
ModelTypeSyncProxy::~ModelTypeSyncProxy() {
}
} // namespace syncer
|
@interface XHDemoWeChatMessageTableViewController : XHMessageTableViewController
- (void)loadDemoDataSource;
@end
|
package im.actor.model.viewmodel;
import com.google.j2objc.annotations.ObjectiveCName;
import im.actor.model.files.FileSystemReference;
/**
* File State View Model callback. All methods are called in Main Thread.
*/
public interface FileVMCallback {
/**
* On file not downloaded
*/
@ObjectiveCNa... |
<template class="collection-header">
<require from="./collection-header.css"></require>
<slot></slot>
</template>
|
/**
* @license videogular v1.2.4 http://videogular.com
* Two Fucking Developers http://twofuckingdevelopers.com
* License: MIT
*/
"use strict";
angular.module("com.2fdevs.videogular", ["ngSanitize"])
.run(
["$templateCache", function ($templateCache) {
$templateCache.put("vg-templates/vg-media-video... |
module DataShift
class Mandatory
include DataShift::Logging
attr_reader :mandatory_columns, :missing_columns
def initialize(columns)
@mandatory_columns = [*columns]
logger.info("Mandatory columns set to #{@mandatory_columns.inspect}") unless @mandatory_columns.empty?
@comparable_m... |
package com.thoughtworks.xstream.mapper;
import com.thoughtworks.xstream.core.util.Primitives;
/**
* Mapper that detects arrays and changes the name so it can identified as an array
* (for example Foo[] gets serialized as foo-array). Supports multi-dimensional arrays.
*
* @author Joe Walnes
*/
public class Arr... |
<?xml version="1.0"?>
<project name="JavaSpace service" default="outrigger" basedir=".">
<import file="../../../bin/common-run.xml" />
<target name="outrigger">
<java jar="${common.lib}/start.jar" fork="yes" spawn="yes">
<arg value="../configs/start-generic.config" />
<sysproperty key="java.security.policy... |
<?php
/**
* Inheritance Runtime Methods processBlock, endChild, init
*
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
*
**/
class Smarty_Internal_Runtime_Inheritance
{
/**
* State machine
* - 0 idle next extends will create a new inheritance tree
* - 1 processing c... |
'use strict';
var gutil = require('gulp-util');
var exec = require('child_process').exec;
var escape = require('any-shell-escape');
module.exports = function (remote, opt, cb) {
if (!cb && typeof opt === 'function') {
// optional options
cb = opt;
opt = {};
}
if (!cb || typeof cb !== 'function') cb ... |
from unittest import TestCase
import simplejson as json
class TestDefault(TestCase):
def test_default(self):
self.assertEquals(
json.dumps(type, default=repr),
json.dumps(repr(type)))
|
namespace rocksdb {
namespace {
OptionsSanityCheckLevel SanityCheckLevelHelper(
const std::unordered_map<std::string, OptionsSanityCheckLevel>& smap,
const std::string& name) {
auto iter = smap.find(name);
return iter != smap.end() ? iter->second : kSanityLevelExactMatch;
}
}
OptionsSanityCheckLevel DBOpt... |
Int_t AddRsnDaughterCutsKStar(AliPID::EParticleType type1,AliPID::EParticleType type2,TString opt,AliRsnInputHandler *rsnIH=0,AliAnalysisTaskSE *task=0)
{
if (!rsnIH) return 0;
Bool_t valid;
Int_t isRsnMini = AliRsnTrainManager::GetGlobalInt("IsRsnMini",valid);
// === USER HAS TO SET CORRECT NUMBER OF CU... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.OData;
using System.Web.OData.Builder;
using Microsoft.OData.Client;
using Microsoft.OData.Edm;
using Nuwa;
using WebStack.QA.Test.OData.Common;
using Xunit;
... |
namespace chromeos {
// static
bool FileSystemBackend::CanHandleURL(const storage::FileSystemURL& url) {
if (!url.is_valid())
return false;
return url.type() == storage::kFileSystemTypeNativeLocal ||
url.type() == storage::kFileSystemTypeRestrictedNativeLocal ||
url.type() == storage::kFileSy... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidLayouts">
<shared>
<config />
</shared>
</component>
<component name="AndroidLogFilters">
<option name="TOOL_WINDOW_CONFIGURED_FILTER" value="Show only selected application" />
</component>
<component name="... |
define(function(require, exports, module) {
var EventHandler = require('./EventHandler');
/**
* A collection of methods for setting options which can be extended
* onto other classes.
*
*
* **** WARNING ****
* You can only pass through objects that will compile into valid JS... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>com.google.zxing.client.j2se (ZXing 3.3.0 API)</title>
<link rel="style... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="Asciidoctor 0.1.4">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Operations</title>
<style>
/* Asciidoctor default stylesheet | MIT License | http:... |
package dht
import (
"io"
"io/ioutil"
"math/rand"
"testing"
"time"
ds "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore"
dssync "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore/sync"
ggio "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf... |
/* eslint key-spacing:0 */
import { argv } from 'yargs'
export default (config) => {
const HMR_ENABLED = !!argv.hot
const overrides = {
compiler_enable_hmr : HMR_ENABLED
}
// We use an explicit public path when the assets are served by webpack
// to fix this issue:
// http://stackoverflow.com/question... |
+++
Title = "Dominica DeGrandis"
Twitter = ""
image = "dominica-degrandis.jpg"
type = "speaker"
linktitle = "dominica-degrandis"
+++
Dominica DeGrandis: Author of Making Work Visible. Director, Digital Transformation @Tasktop. Huge fan of using visual cues to inspire change and provoke necessary conversations. She he... |
package sun.java2d;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java... |
/*# sourceMappingURL=variables.css.map */
|
namespace petuum {
// A ProcessStorage type whose size is upper bounded by its capacity.
// During insertion, the actual size of the process storage may exceed
// capacity temoprarily, up to capacity + N, where N is the number
// of threads that are concurrently invoking insert.
// LRU-based eviction is performed to ... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
R CMD REMOVE --library=$PREFIX/lib/R/library/ huex10stprobeset.db
|
package org.apache.hadoop.hbase.zookeeper;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.Properties;
import org.apache.commons.logging.Log;
impo... |
namespace content {
namespace {
bool ParseHslColorString(const std::string& color_string, SkColor* result) {
// http://www.w3.org/wiki/CSS/Properties/color/HSL#The_format_of_the_HSL_Value
// The CSS3 specification defines the format of a HSL color as
// hsl(<number>, <percent>, <percent>)
// and with alpha, th... |
/* crypto/cryptlib.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-com... |
package org.apache.camel.component.jt400;
import org.apache.camel.Endpoint;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertio... |
var a1 = 10;
var c1 = (function () {
function c1() {
}
return c1;
}());
var instance1 = new c1();
function f1() {
return instance1;
}
//# sourceMappingURL=/tests/cases/projects/outputdir_multifolder/mapFiles/outputdir_multifolder/test.js.map |
import { Component, OnInit } from '@angular/core';
import { Hero } from './hero';
import { HeroService } from './hero.service';
@Component({
selector: 'my-heroes',
template: `
<h1>{{title}}</h1>
<h2>My Heroes</h2>
<ul class="heroes">
<li *ngFor="let hero of heroes"
[class.selected]="he... |
<?php
/**
* Created by PhpStorm.
* User: Crocell
* Date: 25/04/14
* Time: 13:44
*/
/**
* Interface ElementManagerInterface
* @interface
* @author Alban Truc
*/
interface ElementManagerInterface
{
/**
* Retrouver un Element selon des critères donnés
* @author Alban Truc
* @param array|Elemen... |
using System;
using UnityEngine;
namespace UnityStandardAssets.CrossPlatformInput.PlatformSpecific
{
public class MobileInput : VirtualInput
{
private void AddButton(string name)
{
// we have not registered this button yet so add it, happens in the constructor
... |
package daemon
import (
"sync"
"github.com/docker/docker/container"
)
// linkIndex stores link relationships between containers, including their specified alias
// The alias is the name the parent uses to reference the child
type linkIndex struct {
// idx maps a parent->alias->child relationship
idx map[*contain... |
package iso20022
// Details of the transaction to capture.
type CardPaymentTransactionDetails30 struct {
// Currency associated with the transaction.
Currency *CurrencyCode `xml:"Ccy,omitempty"`
// Total amount of the transaction.
TotalAmount *ImpliedCurrencyAndAmount `xml:"TtlAmt"`
// Qualifies the amount ass... |
{- 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 conditions and the following disclaimer.
* Redistr... |
**Breaking changes are now tracked as part of [Release Notes](https://github.com/facebook/react-native/releases)**.
## 0.16
- Touch events on Android now have coordinates consistent with iOS: [0c2ee5](https://github.com/facebook/react-native/commit/0c2ee5d480e696f8621252c936a8773e8de9f8b6)
- YellowBox enabled by defa... |
package org.onosproject.mapping;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.onosproject.mapping.addresses.MappingAddress;
import org.onosproject.mapping.instructions.MappingInstruc... |
#include "lapacke_utils.h"
lapack_int LAPACKE_zgesvd( int matrix_order, char jobu, char jobvt,
lapack_int m, lapack_int n, lapack_complex_double* a,
lapack_int lda, double* s, lapack_complex_double* u,
lapack_int ldu, lapack_complex_dou... |
layout: page
title: "About"
description: ""
---
{% include JB/setup %}
Well, there needs to be something here, so here goes...
*Genomics Life* started as a middle of the afternoon idea over a hangouts chat between `jkrillbu` (Mike) and `nturaga`(Nitesh). We are computational biologists who want to blog about science... |
/* MD5.H - header file for MD5C.C
* $FreeBSD$
*/
/*-
Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referenci... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TableComponent } from './table.component';
describe('TableComponent', () => {
let component: TableComponent;
let fixture: ComponentFixture<TableComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
decl... |
package com.java.utils;
import java.util.HashMap;
import java.util.Map;
import com.ibm.icu.text.Normalizer;
import com.java.IConverter;
import com.java.exception.ConverterException;
import com.java.regex.RegexValidation;
/**
* String Utils
*
* Class with set of methods that perform common functions for handling ... |
/*!
* # Semantic UI 2.2.4 - Flag
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Flag
*******************************/
i.flag:not(.icon) {
display: inline-block;
width: 16px;
heigh... |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Collections.Immutable
Imports System.Runtime.CompilerServices
Namespace Microsoft.CodeAnalysis.VisualB... |
function log(message) {
var client = new XMLHttpRequest();
client.open("POST", "/log");
client.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
client.send(message);
}
log("Book being read!"); |
'use strict';
angular.module('com.module.posts')
.controller('PostsCtrl', function($scope, $state, $stateParams, CoreService,
FormHelper, gettextCatalog, Post, PostsService) {
$scope.delete = function(id) {
PostsService.deletePost(id, function() {
$state.reload();
});
};
this.for... |
/*
* SystemJS v0.19.29
*/
(function() {
function bootstrap() {// from https://gist.github.com/Yaffle/1088850
(function(global) {
function URLPolyfill(url, baseURL) {
if (typeof url != 'string')
throw new TypeError('URL must be a string');
var m = String(url).replace(/^\s+|\s+$/g, "").match(/^([^:\/?#]+:)?(?:\... |
#ifndef BOOST_WINAPI_CRYPT_HPP_INCLUDED_
#define BOOST_WINAPI_CRYPT_HPP_INCLUDED_
#include <boost/winapi/basic_types.hpp>
#if defined( BOOST_USE_WINDOWS_H )
// This header is not always included as part of windows.h
#include <wincrypt.h>
#endif
#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
#if !defined( BOOST_U... |
"use strict";
var Long = require('bson').Long
, Logger = require('./connection/logger')
, MongoError = require('./error')
, f = require('util').format;
/**
* This is a cursor results callback
*
* @callback resultCallback
* @param {error} error An error object. Set to null if no error present
* @param {obje... |
"""Presubmit for blimp/tools."""
def CommonChecks(input_api, output_api):
"""Presubmit checks run on both upload and commit.
This is currently limited to pylint.
"""
checks = []
checks.extend(input_api.canned_checks.GetPylint(
input_api, output_api, pylintrc='pylintrc'))
return input_api.RunTests(c... |
package com.siyeh.igtest.style.redundant_implements;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
class RedundantImplementsInspection extends ArrayList implements <warning descr="Redundant interface declaration 'List'">List</warning>, <warning descr="Redundant interface declaration ... |
using UnityEngine;
namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityParticleSystem
{
[TaskCategory("Basic/ParticleSystem")]
[TaskDescription("Pause the Particle System.")]
public class Pause : Action
{
[Tooltip("The GameObject that the task operates on. If null the task GameObject is used.")... |
// Copyright 2014 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.
#include <stdio.h>
#include "base/i18n/icu_util.h"
#include "dart/runtime/include/dart_api.h"
#include "mojo/dart/embedder/builtin.h"
#include "mojo/dart... |
YUI.add('dom-attrs', function(Y) {
var documentElement = Y.config.doc.documentElement,
Y_DOM = Y.DOM,
TAG_NAME = 'tagName',
OWNER_DOCUMENT = 'ownerDocument',
EMPTY_STRING = '',
addFeature = Y.Features.add,
testFeature = Y.Features.test;
Y.mix(Y_DOM, {
/**
* Returns the text content of... |
package cloudhsmiface_test
import (
"testing"
"github.com/awslabs/aws-sdk-go/service/cloudhsm"
"github.com/awslabs/aws-sdk-go/service/cloudhsm/cloudhsmiface"
"github.com/stretchr/testify/assert"
)
func TestInterface(t *testing.T) {
assert.Implements(t, (*cloudhsmiface.CloudHSMAPI)(nil), cloudhsm.New(nil))
} |
function [] = ColourFrontiersExperimentArch()
%% initialisation
% cleaning the workspace
clearvars;
close all;
clc;
% getting the start time
StartTime = tic;
% creating the colour frontiers
FrontierTable = ColourFrontiers();
% invoque the list of nameable colours from the literature
[~, PolarFocals... |
typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown
#pragma mark Named Structures
struct CGSize {
double _field1;
double _field2;
};
#pragma mark Typedef'd Structures
typedef struct {
double _field1;
double _field2;
} CDStruct_c3b9c2ee;
#pragma mark -
//
// File: /A... |
package tls
import (
"crypto/tls"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"sync/atomic"
"testing"
"time"
"k8s.io/apimachinery/pkg/util/wait"
genericapiserver "k8s.io/apiserver/pkg/server"
client "k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/kubernetes/cmd/kube-apiserver/app"
"k8s.io/k... |
:game_die: Sudoku resolver
[](https://travis-ci.org/moul/sudoku)
[](https://godoc.org/github.com/moul/sudoku)
[ {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
factory(require('jquery'));
} else {
// Browser globals
factory(window.jQuery || window.Zepto);
} ... |
package com.intellij.history.core;
import com.intellij.openapi.util.Clock;
import com.intellij.openapi.util.Pair;
import com.intellij.util.io.PagePool;
import com.intellij.util.io.storage.AbstractRecordsTable;
import com.intellij.util.io.storage.AbstractStorage;
import java.io.File;
import java.io.IOException;
publ... |
(function(window, undefined) {
'use strict';
/**
* @main
* @module hammer
*
* @class Hammer
* @static
*/
/**
* Hammer, use this to create instances
* ````
* var hammertime = new Hammer(myElement);
* ````
*
* @method Hammer
* @param {HTMLElement} element
* @param {Object} [options={}]
* @return {Ham... |
import re
import subprocess
from search_with_filtering import search
def test_search_with_filtering_pass():
output = str(subprocess.check_output("python search_with_filtering.py", shell=True))
assert re.match(".*search request.*", output)
assert re.match(".*search response.*", output)
# check the re... |
package com.datastax.spark.connector.writer
import org.junit.Assert._
import org.junit.Test
class PropertyExtractorTest {
class TestClass(val field1: String, val field2: Int)
@Test
def testSimpleExtraction() {
val testObject = new TestClass("a", 1)
val propertyExtractor = new PropertyExtractor(classOf... |
module.exports = require("github:jspm/nodelibs-constants@0.1.0/index"); |
/** \file zes-order.h
\brief ASN.1 Module ESFormat-ItemOrder
Generated automatically by YAZ ASN.1 Compiler 0.4
*/
#ifndef zes_order_H
#define zes_order_H
#include <yaz/odr.h>
#include <yaz/z-core.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct Z_IORequest Z_IORequest;
YAZ_EXPORT int z_IORequest(ODR... |
package com.inmobi.messaging.consumer.databus;
import java.io.IOException;
import java.util.Set;
import java.util.TreeSet;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoo... |
<?php
namespace Sylius\Bundle\ArchetypeBundle\Form\Type;
use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
use Symfony\Component\Form\FormBuilderInterface;
/**
* Product archetype form type.
*
* @author Adam Elsodaney <adam.elso@gmail.com>
* @author Paweł Jędrzejewski <pawel@sylius.org>
*/
clas... |
#ifndef _FSL_CACHE_H_
#define _FSL_CACHE_H_
#include "fsl_common.h"
/*!
* @addtogroup cache
* @{
*/
/*******************************************************************************
* Definitions
******************************************************************************/
/*! @name Driver version */
/*@{*/
... |