text stringlengths 3 1.05M |
|---|
namespace content {
// Mock implementation of a location provider for testing.
class MockLocationProvider : public LocationProviderBase {
public:
// Will update |*self_ref| to point to |this| on construction, and to NULL
// on destruction.
explicit MockLocationProvider(MockLocationProvider** self_ref);
virtua... |
<!DOCTYPE HTML>
<script src="../resources/text-based-repaint.js"></script>
<style>
body {
margin: 0;
}
#container {
position: relative;
top: 40px;
width: 200px;
height: 400px;
}
#test {
position: relative;
background-color: green;
width... |
"""config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... |
using Eigen::Map;
using Eigen::MatrixBase;
using Eigen::VectorXd;
using drake::systems::plants::inverseKinBackend;
template <typename DerivedA, typename DerivedB, typename DerivedC>
DRAKEIK_EXPORT void inverseKin(
RigidBodyTree *model,
const MatrixBase<DerivedA>& q_seed,
const MatrixBase<DerivedB>& q_nom,... |
import at from './at.js';
import countBy from './countBy.js';
import each from './each.js';
import eachRight from './eachRight.js';
import every from './every.js';
import filter from './filter.js';
import find from './find.js';
import findLast from './findLast.js';
import flatMap from './flatMap.js';
import flatMapDeep... |
<!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 (version 1.7.0_45) on Tue Jan 19 11:15:46 GMT 2016 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>com.github.rvesse.a... |
package org.motechproject.commcare.domain;
import java.util.List;
import java.util.Map;
/**
* Represents a single CommCareHQ case. A case can be literally anything that one would want to track and monitor over
* time. It's a part of the MOTECH model.
*/
public class CaseInfo {
private String caseId;
priva... |
etcdctl
========
`etcdctl` is a command line client for [etcd][etcd].
Make sure to set environment variable `ETCDCTL_API=3`. For etcdctl v2, please check [READMEv2][READMEv2].
Global flags (e.g., `dial-timeout`, `--cacert`, `--cert`, `--key`) can be set with environment variables:
```
ETCDCTL_DIAL_TIMEOUT=3s
ETCDCTL... |
<!--
Copyright (c) 2012 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.
-->
<html>
<head>
<style>
body {
font-family: monospace;
word-wrap: break-word;
}
#container {
white-space: pre;
}
.request {
border-top: 1px so... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Documentation SimpleTest : tester des formulaires HTML</title>
<link rel="stylesheet" type="text/css" href="docs.css" title="Styles">
</head>
<body>
<div class="menu_back"><div class="menu">
<a href="index.html">SimpleTest</a>
... |
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using WampSharp.Core.Listener;
using WampSharp.Core.Message;
using WampSharp.Core.Serialization;
using WampSharp.Core.Utilities;
using WampSharp.V2.Binding;
using WampSharp.V2.Core.Contracts;
namespace WampSharp.V2.... |
#ifndef ewk_security_origin_private_h
#define ewk_security_origin_private_h
// forward declarations
namespace WebCore {
class SecurityOrigin;
}
Ewk_Security_Origin* ewk_security_origin_new(WebCore::SecurityOrigin* origin);
#endif // ewk_security_origin_private_h
|
require "google/cloud/channel/v1"
##
# Example demonstrating basic usage of
# Google::Cloud::Channel::V1::CloudChannelService::Client#update_customer
#
def update_customer
# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
... |
Clear-Host
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Confirm:$false -Force
## Local Variables for this script
$MachineName = "SP-APP3" # this is the machine being configured
## DSC ps1 File to execute
$dscFileName = 'C:\_DSC\SharePoint_DSC_PowerShell_Setup_Scripts\DSC\SP-App3\SP-App3-DSC.ps1'
$... |
namespace double_conversion {
// This "Do It Yourself Floating Point" class implements a floating-point number
// with a uint64 significand and an int exponent. Normalized DiyFp numbers will
// have the most significant bit of the significand set.
// Multiplication and Subtraction do not normalize their results.
// Di... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.React = {}));
}(this, (function (exports) { 'use strict';
var ReactVersion = '18.... |
package rbd
import (
"fmt"
"os"
"testing"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake"
"k8s.io/kubernetes/pkg/types"
"k8s.io/kubernetes/pkg/util/mount"
utiltesting "k8s.io/kubernetes/pkg/util/testing"
"k8s.io/kubernetes/pkg/volume"
volumetest "k8s.i... |
<?php
namespace UnitTests\DI\Definition;
use DI\Definition\DefinitionManager;
use DI\Definition\ValueDefinition;
/**
* Test class for DefinitionManager
*
* @covers \DI\Definition\DefinitionManager
*/
class DefinitionManagerTest extends \PHPUnit_Framework_TestCase
{
/**
* @test
* @covers \DI\Defini... |
/*===========================================================================*\
* Fast Fourier Transform (Cooley-Tukey Method)
*
* (c) Vail Systems. Joshua Jung and Ben Bryan. 2015
*
* This code is not designed to be highly optimized but as an educational
* tool to understand the Fast Fourier Transform.
\*======... |
require File.dirname(__FILE__) + '/test_helper'
require 'mofo/rel_tag'
context "An array of reltag arrays created from the corkd review webpage" do
setup do
$tags ||= RelTag.find(:all => fixture(:corkd))
end
specify "should consist of 23 tags" do
$tags.size.should.equal 23
end
specify "should inclu... |
(function() {
'use strict';
function OBSSource(width, height, x, y, name, rendered) {
this.width = width || 0;
this.height = height || 0;
this.x = x || 0;
this.y = y || 0;
this.name = name || '';
this.rendered = rendered || false;
}
if (typeof module !==... |
/*! SWFMini - a SWFObject 2.2 cut down version for webshims
*
* based on SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfmini = function() {
var wasRemoved = function(){webshims.error('This method was removed f... |
package uk.ac.kent.dover.fastGraph;
import java.util.Arrays;
import Jama.EigenvalueDecomposition;
import Jama.Matrix;
/**
* This class holds all the methods associated with adjacency matrices
*
* @author Rob Baker
*
*/
public class AdjacencyMatrix {
FastGraph g; //the FastGraph
/**
* Constructor.
* R... |
using System;
using System.Linq.Expressions;
using Xunit;
namespace System.Linq.Tests
{
public class AnyTests : EnumerableBasedTests
{
[Fact]
public void NoPredicateNullElements()
{
int?[] source = { null, null, null, null };
Assert.True(source.AsQueryable().Any... |
LocalDataContainer::LocalDataContainer(
BrowsingDataCookieHelper* cookie_helper,
BrowsingDataDatabaseHelper* database_helper,
BrowsingDataLocalStorageHelper* local_storage_helper,
BrowsingDataLocalStorageHelper* session_storage_helper,
BrowsingDataAppCacheHelper* appcache_helper,
BrowsingDataInd... |
namespace QFramework
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class UIPanelTesterInfo
{
/// <summary>
/// 页面的名字
/// </summary>
public string PanelName;
/// <summary>
///... |
// Ideally, we would rely on platform support for parsing a cookie, since
// this would save us from any potential inconsistency. However, exposing
// platform cookie parsing logic would require quite a bit of additional
// plumbing, and at least some platforms lack support for parsing Cookie,
// which is in a format... |
package hudson.plugins.polarionalm;
import java.io.IOException;
import java.net.MalformedURLException;
import java.rmi.RemoteException;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.rpc.ServiceException;
import net.sf.json.JSONObject;
import org.kohsuke.s... |
package com.intellij.codeInspection.ex;
import com.intellij.codeInspection.GlobalInspectionContext;
import com.intellij.codeInspection.lang.InspectionExtensionsFactory;
import com.intellij.codeInspection.reference.RefElement;
import com.intellij.lang.injection.InjectedLanguageManager;
import com.intellij.openapi.exte... |
package com.buschmais.xo.spi.datastore;
import static java.util.Arrays.asList;
import java.util.HashSet;
import com.buschmais.xo.api.CompositeObject;
import com.buschmais.xo.api.CompositeType;
import com.buschmais.xo.spi.metadata.CompositeTypeBuilder;
import com.buschmais.xo.spi.metadata.type.DatastoreTypeMetadata;
... |
"""
A stupid L3 switch
For each switch:
1) Keep a table that maps IP addresses to MAC addresses and switch ports.
Stock this table using information from ARP and IP packets.
2) When you see an ARP query, try to answer it using information in the table
from step 1. If the info in the table is old, just flood the... |
define('model/core', [], function () {
'use strict';
return window.$;
});
define('model/debug', [
'require',
'exports',
'module'
], function (require, module, exports) {
'use strict';
var globalLevel = 0;
var userLevel = 0;
var debugCache = {};
var version = '0.0.1', Debug = func... |
function parseDirectoryListingHTML( htmlPage )
{
if ( htmlPage.indexOf("<title>Directory listing for ") != -1 )
return parsePythonSimpleHTTPServerDirectoryListingHTML( htmlPage );
else
return parseNginxDirectoryListingHTML( htmlPage );
}
function parsePythonSimpleHTTPServerDirectoryListingHTML(... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Footer Rows in DataGrid - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="../demo.c... |
package com.google.javascript.jscomp;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
impo... |
/****************************************************************************
* kernel/semaphore/sem_setprotocol.c
*
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are per... |
package e2e
import (
"flag"
"fmt"
"os"
"path"
"strings"
"testing"
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd"
"github.com/GoogleCloudPlatform/kubernetes/pkg/cloudprovider"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
... |
require 'vk-ruby'
require 'vk-ruby/irb'
require 'pry'
require 'rspec'
require 'uri'
require 'yaml'
require 'webmock/rspec'
Dir['./spec/support/**/*.rb'].each { |f| require f }
VK.configure do |default|
default.timeout = 5
default.open_timeout = 5
default.middlewares = proc do |faraday|
faraday.request :mul... |
/**
* (C) 2013-2014 Stephan Rauh http://www.beyondjava.net
*
* 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.
*
... |
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class MerchantWareVersionFourGateway < Gateway
self.live_url = 'https://ps1.merchantware.net/Merchantware/ws/RetailTransaction/v4/Credit.asmx'
self.test_url = 'https://ps1.merchantware.net/Merchantware/ws/RetailTransaction/v4/Credit.asmx'
s... |
skiboot-5.1.0-beta1
===================
skiboot-5.1.0-beta1 was released on July 21st, 2015.
skiboot-5.1.0-beta1 is the first beta release of skiboot 5.1, which will
become a new stable release, replacing skiboot-5.0 (released April 14th 2015)
Skiboot 5.1-beta1 contains all fixes from skiboot-5.0 stable branch up to... |
package org.basex.http.restxq;
import static org.basex.http.restxq.RestXqText.*;
import org.basex.http.*;
import org.basex.query.*;
/**
* <p>This servlet receives and processes REST requests.
* The evaluated code is defined in XQuery modules, which are located in the web server's
* root directory (specified by th... |
package org.radeox.macro.table;
/**
* A function interface for functions in table cells like =SUM(A1:A3)
*
* @author stephan
* @version $Id$
*/
public interface Function
{
public String getName();
public void execute(Table table, int posx, int posy, int startX,
int startY, int endX, int endY);
}
|
<?php
class Statistics_ConfigForm extends AppForm
{
/** create form */
public function createConfigForm()
{
$form = new Zend_Form;
$form->setAction($this->webroot.'/statistics/config/index')
->setMethod('post');
$piwik = new Zend_Form_Element_Text('piwikurl');
$piwikid = new ... |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent" android:layout_height="match_parent">
<FrameLayout
android:id="@+id/details"
android:layout_width="match_parent"
android:layout_height="match_pa... |
<?php
namespace DebugKit\View\Helper;
use Cake\Core\Configure;
use Cake\Error\Debugger;
use Cake\Filesystem\File;
use Cake\Log\Log;
use Cake\View\Helper;
/**
* TidyHelper class
*
* Passes html through tidy on the command line, and reports markup errors
*
* @uses AppHelper
* @since v 1.0 (22-Ju... |
package plugins
// BasePath returns the path to which all paths returned by the plugin are relative to.
// For Windows v1 plugins, this returns an empty string, since the plugin is already aware
// of the absolute path of the mount.
func (p *Plugin) BasePath() string {
return ""
}
|
from __future__ import unicode_literals
import datetime
from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
from django.test import TestCase, override_settings
from django.test.client import RequestFactory
from django.views.generic.base import View
from django.views.generic.detail import Singl... |
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
internal "k8s.io/client-go/applyconfigurations/internal"
v1 "... |
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 6.00.0338 */
/* Compiler settings for ddstream.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext
... |
package com.handmark.pulltorefresh.library.internal;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.d... |
//! \file fbxskin.h
#ifndef _FBXSDK_SCENE_GEOMETRY_SKIN_H_
#define _FBXSDK_SCENE_GEOMETRY_SKIN_H_
#include <fbxsdk/fbxsdk_def.h>
#include <fbxsdk/scene/geometry/fbxdeformer.h>
#include <fbxsdk/fbxsdk_nsbegin.h>
class FbxCluster;
class FbxGeometry;
/** Skin deformer class.
*
* A skin deformer... |
/**
* @class Ext.data.HttpProxy
* @extends Ext.data.DataProxy
* An implementation of {@link Ext.data.DataProxy} that reads a data object from a {@link Ext.data.Connection Connection} object
* configured to reference a certain URL.<br>
* <p>
* <b>Note that this class cannot be used to retrieve data from ... |
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
<!-- Copyright © 1991-2013 Unicode, Inc.
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
For terms of use, see http://www.unicode.org/copyright.html
-->
<ldml>
<identity>
... |
class ChorusObjectRole < ActiveRecord::Base
attr_accessible :user_id, :chorus_object_id, :role_id
validates_uniqueness_of :user_id, :scope => [:chorus_object_id, :role_id]
validates :role_id, :presence => true
validates :chorus_object_id, :presence => true
validates :user_id, :presence => true
belongs_to ... |
import { NgZone } from '@angular/core';
import { Tracker } from 'meteor/tracker';
import { Meteor } from 'meteor/meteor';
export interface LoginCredentials {
email: string;
password: string;
}
export declare class LoginButtons {
private zone;
autorunComputation: Tracker.Computation;
currentUser: Met... |
package org.apache.hadoop.hbase.rest.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.ha... |
namespace {
const int kNoneValue = std::numeric_limits<int>::min();
}
namespace chromeos {
FirstRunActor::StepPosition::StepPosition()
: top_(kNoneValue),
right_(kNoneValue),
bottom_(kNoneValue),
left_(kNoneValue) {
}
FirstRunActor::StepPosition& FirstRunActor::StepPosition::SetTop(int top) {
... |
window.onload = function () { // wait for load in a dumb way because B-0
var cw = '\n\n'
function showError(msg, err) {
$('<div id="bsCustomizerAlert" class="bs-customizer-alert">\
<div class="container">\
<a href="#bsCustomizerAlert" data-dismiss="alert" class="close pull-right">×</a>\... |
package org.jrebirth.af.component.ui.workbench;
public enum LayoutType {
BASIC, LEFT_COLUMN, RIGHT_COLUMN
}
|
/**
* Gets URI that identifies the test.
* @return uri identifier of test
*/
function getTargetURI() {
return "http://www.w3.org/2001/DOM-Test-Suite/level2/html/table52";
}
var docsLoaded = -1000000;
var builder = null;
//
// This function is called by the testing framework before
// ... |
@interface WYTagView : UIView
@property (nonatomic, strong) UIFont *font;
@property (nonatomic, strong) UIColor *textColor;
@property (nonatomic, strong) UIColor *borderColor;
@property (nonatomic) CGFloat lineSpacing;
@property (nonatomic) CGFloat itemSpacing;
@property (nonatomic) CGFloat itemCornerRadius;
@prope... |
#pragma once
#include <libtest/signal.h>
/**
Framework is the structure which is passed to the test implementation to be filled.
This must be implemented in order for the test framework to load the tests. We call
get_world() in order to fill this structure.
*/
#include <vector>
namespace { class Collection;... |
<?php
namespace Opl\Cache\Exception;
use OutOfRangeException;
class KeyNotFoundException extends OutOfRangeException
{
} // end KeyNotFoundException; |
var path = require('path');
var assert = require('assert');
var fs = require('fs-extra');
var curDir = fs.realpathSync('.');
describe('document-start/end',function(){
var server, child, results;
before(function(done) {
this.timeout(0);
server = createTCPServer(13013);
child = spawnChildProcess(path.j... |
#import "ZXExpandedProductParsedResult.h"
NSString * const ZX_KILOGRAM = @"KG";
NSString * const ZX_POUND = @"LB";
@implementation ZXExpandedProductParsedResult
- (id)init {
return [self initWithRawText:@"" productID:@"" sscc:@"" lotNumber:@"" productionDate:@"" packagingDate:@""
bestBeforeDate:@... |
package glusterfs
import (
"fmt"
"os"
"testing"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/fake"
"k8s.io/kubernetes/pkg/types"
"k8s.io/kubernetes/pkg/util/exec"
"k8s.io/kubernetes/pkg/util/mount"
utiltesting "k8s.io/kubernetes/pkg/util/testing"
"k8s.io/... |
/* eslint-disable */
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* From React 16.3.0
*
*/
import dangerousStyleValue from './dangerousStyleValue';
/**
* Sets the value fo... |
"""
module that include utility function to help crawl site
"""
import os
import re
import requests
def standardize_county_name(county_name):
"""
standardize county name to full name
"""
if county_name in ["東京都23区内", "東京都下"]:
return "東京都"
elif county_name == "東京":
return county_nam... |
#include <tinyara/config.h>
#include <sys/types.h>
#include <stdbool.h>
#include <string.h>
#include <poll.h>
#include <errno.h>
#include <tinyara/fs/fs.h>
#include <semaphore.h>
#include "dev.h"
#include "hip.h"
#include "log_clients.h"
#include "mlme.h"
#include "fw_test.h"
#include "debug_scsc.h"
#include "udi.h... |
/* Pager plugin css */
div.date-views-pager {
margin-left: auto;
margin-right: auto;
}
div.date-views-pager li {
float: left;
text-align: left;
width: 20%;
}
div.date-views-pager div.current-page {
font-weight: bold;
text-align: center;
}
div.date-views-pager div.next-month,
div.date-views-pager div.next... |
#ifndef __STORPROP_H__
#define __STORPROP_H__
#include <setupapi.h>
#define REDBOOK_DIGITAL_AUDIO_EXTRACTION_INFO_VERSION 1
typedef struct _REDBOOK_DIGITAL_AUDIO_EXTRACTION_INFO {
ULONG Version;
ULONG Accurate;
ULONG Supported;
ULONG AccurateMask0;
} REDBOOK_DIGITAL_AUDIO_EXTRACTION_INFO,*PREDBOOK_DIGITAL_A... |
/**
* Automatically generated file. DO NOT MODIFY
*/
package com.example.socialapp.test;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.example.socialapp.test";
public static final String BUILD_TYPE = "debug";
... |
namespace webdriver {
RefreshCommandHandler::RefreshCommandHandler(void) {
}
RefreshCommandHandler::~RefreshCommandHandler(void) {
}
void RefreshCommandHandler::ExecuteInternal(
const IECommandExecutor& executor,
const ParametersMap& command_parameters,
Response* response) {
BrowserHa... |
// Type definitions for joi v4.6.0
// Project: https://github.com/spumko/joi
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Laurence Dougal Myers <https://github.com/laurence-myers>, Christopher Glantschnig <https://github.com/cglantschnig>
// Definitions: https://github.com/borisyankov/Definitely... |
<ion-view title="Login" hide-back-button="true">
<ion-content has-header="true" has-tabs="true" padding="true">
<form ng-submit="Login(user)">
<div class="list">
<label class="item item-input">
<input type="text" placeholder="Username / Mobile no." ng-model="user.username">
</label... |
import sys
import gzip
import os
import numpy as np
import util
class TestSNP:
def __init__(self, name, geno_hap1, geno_hap2, AS_target_ref, AS_target_alt,
hetps, totals, counts):
self.name = name
self.geno_hap1 = geno_hap1
self.geno_hap2 = geno_hap2
self.AS_targe... |
/** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// 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 L... |
package org.kurento.test.lifecycle;
import static org.kurento.test.services.TestService.TestServiceScope.TEST;
import static org.kurento.test.services.TestService.TestServiceScope.TESTCLASS;
import static org.kurento.test.services.TestService.TestServiceScope.TESTSUITE;
import java.util.ArrayList;
import java.util.... |
These settings apply only when `--nodejs` is specified on the command line.
Please also specify `--node-sdks-folder=<path to root folder of your azure-sdk-for-node clone>`.
``` yaml $(nodejs)
nodejs:
azure-arm: true
package-name: azure-arm-storageimportexport
output-folder: $(node-sdks-folder)/lib/services/stora... |
require "abstract_unit"
class MiddlewareStackTest < ActiveSupport::TestCase
class FooMiddleware; end
class BarMiddleware; end
class BazMiddleware; end
class HiyaMiddleware; end
class BlockMiddleware
attr_reader :block
def initialize(&block)
@block = block
end
end
def setup
@stack =... |
package org.apache.phoenix.end2end;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import... |
class Projects::UploadsController < Projects::ApplicationController
skip_before_action :authenticate_user!, :reject_blocked!, :project,
:repository, if: -> { action_name == 'show' && image? }
def create
link_to_file = ::Projects::UploadService.new(project, params[:file]).
execute
respond_to do |... |
package com.opengamma.sesame.graph;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.opengamma.sesame.OutputName;
import com.opengamma.se... |
class ExpansionHandler {
public:
ExpansionHandler(int mineralcount = 9);
void init(int mineralcount = 9);
void expand(int mineralcount = 7);
int getMineralRate(int workercount, char race) const;
int getRaceMineralRate(char race) const;
int getGasRate() const;
private:
int numBases, numMineralPatch;
};... |
<?php
// Require the base class.
require_once __DIR__ . "/../BaseExample.php";
/**
* Gets all URL channels in an ad client.
*
* To get ad clients, run getAllAdClients.py.
* Tags: urlchannels.list
*
* @author Silvano Luciani <silvano.luciani@gmail.com>
*/
class GetAllUrlChannels extends BaseExample {
public ... |
package registry
import (
"fmt"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apiserver/pkg/authentication/user"
"github.com/openshift/origin/pkg/auth/api"
oauthclient "github.com/openshift/origin/pkg/oauth/generated/internalclientset/typed/oauth/internalversion"
"... |
<?php
namespace Zend\Barcode\Object\Exception;
/**
* Exception for Zend\Barcode component.
*/
class ExtensionNotLoadedException extends RuntimeException
{
}
|
// Type definitions for Firebase API 2.0.2
// Project: https://www.firebase.com/docs/javascript/firebase
// Definitions by: Vincent Botone <https://github.com/vbortone/>, Shin1 Kashimura <https://github.com/in-async/>, Sebastien Dubois <https://github.com/dsebastien/>
// Definitions: https://github.com/borisyankov/Defi... |
package com.vaadin.tests;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
public class TestIFrames extends CustomComponent {
VerticalLayout main = new VerticalLayout();
public TestIFrames() {
setC... |
- [The Basics](#the-basics)
- [Wildcards](#wildcards)
- [The 404 Event](#the-404-event)
- [Filters](#filters)
- [Pattern Filters](#pattern-filters)
- [Global Filters](#global-filters)
- [Route Groups](#route-groups)
- [Named Routes](#named-routes)
- [HTTPS Routes](#https-routes)
- [Bundle Routes](#bundle-routes)
- [Con... |
/* Translators (2009 onwards):
* - DCLXVI
*/
/**
* @requires OpenLayers/Lang.js
*/
/**
* Namespace: OpenLayers.Lang["bg"]
* Dictionary for Български. Keys for entries are used in calls to
* <OpenLayers.Lang.translate>. Entry bodies are normal strings or
* strings formatted for use with <OpenLayers.... |
<TS language="et_EE" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>Loo uus aadress</translation>
</message>
<message>
<source>&New</source>
<translation>&Uus</translation>
</message>
<mes... |
package com.opengamma.analytics.financial.model.finitedifference;
import org.testng.annotations.Test;
import com.opengamma.util.test.TestGroup;
/**
* @deprecated This class tests deprecated functionality
*/
@Deprecated
@Test(groups = TestGroup.UNIT)
public class OperatorSplittingTest {
private static final Hes... |
function assertContains(string, substring, error) {
chrome.test.assertTrue(string.indexOf(substring) != -1, error);
}
chrome.test.runTests([
function testOpenDatabase() {
chrome.test.assertTrue(!window.openDatabase);
chrome.test.succeed();
},
function testOpenDatabaseSync() {
chrome.test.assertTru... |
@interface SingleEntityRelatedToMappedEntityWithNestedMappedAttributes ()
// Private interface goes here.
@end
@implementation SingleEntityRelatedToMappedEntityWithNestedMappedAttributes
// Custom logic goes here.
@end
|
using System;
using Foundation.ObjectHydrator.Interfaces;
namespace Foundation.ObjectHydrator.Generators
{
public class IntegerGenerator:IGenerator<int>
{
Random random;
public int MinimumValue { get; set; }
public int MaximumValue { get; set; }
public IntegerGenerator()
... |
// Basic template description.
exports.description = 'Create a commonjs module, including Nodeunit unit tests.';
// Template-specific notes to be displayed before question prompts.
exports.notes = '';
// Any existing file or directory matching this wildcard will cause a warning.
exports.warnOn = '*';
// The actual... |
#pragma once
#include <aws/states/SFN_EXPORTS.h>
#include <aws/states/SFNRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SFN
{
namespace Model
{
/**
*/
class AWS_SFN_API DescribeExecutionRequest : public SFNRequest
{
public:
DescribeExecutionR... |
namespace net {
namespace {
TEST(HttpRequestHeaders, HasHeader) {
HttpRequestHeaders headers;
headers.SetHeader("Foo", "bar");
EXPECT_TRUE(headers.HasHeader("foo"));
EXPECT_TRUE(headers.HasHeader("Foo"));
EXPECT_FALSE(headers.HasHeader("Fo"));
const HttpRequestHeaders& headers_ref = headers;
EXPECT_TRU... |