text stringlengths 3 1.05M |
|---|
namespace translate {
namespace switches {
extern const char kDisableTranslate[];
extern const char kTranslateScriptURL[];
extern const char kTranslateSecurityOrigin[];
} // namespace switches
} // namespace translate
#endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATE_SWITCHES_H_
|
package com.intellij.execution.testframework.sm.runner.states;
import com.intellij.execution.process.ProcessOutputTypes;
import com.intellij.execution.testframework.CompositePrintable;
import com.intellij.execution.testframework.Printer;
import com.intellij.execution.testframework.sm.runner.ui.TestsPresentationUtil;
... |
#ifndef JPEGLIB_H
#define JPEGLIB_H
/*
* First we include the configuration files that record how this
* installation of the JPEG library is set up. jconfig.h can be
* generated automatically for many systems. jmorecfg.h contains
* manual configuration options that most people need not worry about.
*/
#ifnde... |
<!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_34) on Mon Jun 03 22:20:33 BST 2013 -->
<TITLE>
org.newdawn.slick.tiled (Slick - The 2D Library)
</TITLE>
<META NAME="date" CONTENT="2013-06-03">
<... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using KSP.UI.Screens;
namespace SupplyChain.UI
{
public class OneshotEditorWindow : SupplyBaseWindow
{
private static OneshotEditorWindow actualInstance = null;
public new static OneshotEdi... |
package org.apache.camel.commands;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import org.apache.camel.CamelContext;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;
import org.apache.camel.impl.ExplicitCamelContextName... |
<?php
namespace Symfony\Component\Config\Tests\Loader;
use Symfony\Component\Config\Loader\FileLoader;
use Symfony\Component\Config\Loader\LoaderResolver;
use Symfony\Component\Config\Exception\FileLoaderImportCircularReferenceException;
class FileLoaderTest extends \PHPUnit_Framework_TestCase
{
/**
* @co... |
@interface ViewController : UIViewController
@end
|
package servenv
import (
"flag"
"net"
"os"
"vitess.io/vitess/go/vt/log"
)
var (
// SocketFile has the flag used when calling
// RegisterDefaultSocketFileFlags.
SocketFile *string
)
// serveSocketFile listen to the named socket and serves RPCs on it.
func serveSocketFile() {
if SocketFile == nil || *Socket... |
<!DOCTYPE html>
<script>
var input = document.createElement('input')
input.type = 'date'
var event = document.createEvent('KeyboardEvent')
event.initKeyboardEvent('keydown', false, false, null, 'Down')
input.dispatchEvent(event)
input.type = 'color'
</script>
<p>Success if the browser didn't crash.</p>
|
#ifndef QRESOURCE_ITERATOR_P_H
#define QRESOURCE_ITERATOR_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include ... |
package org.springframework.transaction.interceptor;
import java.lang.reflect.Method;
import org.junit.Test;
import org.springframework.dao.OptimisticLockingFailureException;
import org.springframework.tests.sample.beans.ITestBean;
import org.springframework.tests.sample.beans.TestBean;
import org.springframework.... |
'use strict';
var gifRegexp = /^GIF8[79]a/;
function isGIF (buffer) {
var signature = buffer.toString('ascii', 0, 6);
return (gifRegexp.test(signature));
}
function calculate(buffer) {
return {
'width': buffer.readUInt16LE(6),
'height': buffer.readUInt16LE(8)
};
}
module.exports = {
'detect': isGIF... |
from django.db import migrations, models
class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
"Author",
[
("id", models.AutoField(primary_key=True)),
("name", models.CharField(max_length=255)),
("slug", mode... |
module RuboCop
module Cop
module Style
# This cop enforces the use of a single string formatting utility.
# Valid options include Kernel#format, Kernel#sprintf and String#%.
#
# The detection of String#% cannot be implemented in a reliable
# manner for all cases, so only two scenario... |
Phaser.Create = function () {};
|
package com.harmazing.openbridge.web.tablibs.ui;
import java.util.HashMap;
import java.util.Map;
import com.harmazing.framework.common.Page;
import com.harmazing.framework.util.StringUtil;
import com.harmazing.framework.web.tablibs.ComponentTag;
public class PaginationTag extends ComponentTag {
private St... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Hyak.Common;
using Microsoft.Azure;
using Microsoft.Azure.Management.Dns;
using Microsoft.Azure.Management.Dns.Models;
namespace Microsoft.Azure.Manage... |
// Copyright 2014 The Bazel Authors. All rights reserved.
//
// 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 appl... |
<?php
/** Zend_Controller_Router_Route_Abstract */
require_once 'Zend/Controller/Router/Route/Abstract.php';
/**
* Regex Route
*
* @package Zend_Controller
* @subpackage Router
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/lice... |
<?php
/**
* @group lambdas
* @group functional
*/
class Mustache_Test_FiveThree_Functional_HigherOrderSectionsTest extends PHPUnit_Framework_TestCase
{
private $mustache;
public function setUp()
{
$this->mustache = new Mustache_Engine();
}
public function testAnonymousFunctionSection... |
package org.apache.flink.mesos.runtime.clusterframework.store;
import org.apache.flink.runtime.clusterframework.types.ResourceProfile;
import org.apache.mesos.Protos;
import java.io.Serializable;
import java.text.DecimalFormat;
import java.util.List;
import java.util.Objects;
import scala.Option;
import static j... |
layout: post
title: Performance Tuning with AvaTax
description: Ways to improve the performance of your tax calculation software
date: 2017-04-19 12:00
author: Ted Spence
comments: true
categories: [avatax, howto]
product: blog
doctype: blog
disqus: 1
---
After more than a decade of offering the world-leading AvaTax s... |
package org.apache.hadoop.mapred;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import junit.framework.TestCase;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.*;
import org.apache.hadoop.util.StringUtils;
import org.apache.hadoop.util.ToolRunner;
import... |
package resource
import (
"fmt"
"time"
"google.golang.org/protobuf/types/known/anypb"
"google.golang.org/protobuf/types/known/durationpb"
"google.golang.org/protobuf/types/known/structpb"
alf "github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v3"
cluster "github.com/envoyproxy/go-control-plane/env... |
package client
const (
IMAGE_TYPE = "image"
)
type Image struct {
Resource
AccountId string `json:"accountId,omitempty" yaml:"account_id,omitempty"`
Created string `json:"created,omitempty" yaml:"created,omitempty"`
Data map[string]interface{} `json:"data,omitempty" yaml:"data,omitempty"`
Description string... |
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bar',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False,... |
require "test/unit"
require "testutil"
require "openid/kvpost"
require "openid/kvform"
require "openid/message"
module OpenID
class KVPostTestCase < Test::Unit::TestCase
include FetcherMixin
def mk_resp(status, resp_hash)
return MockResponse.new(status, Util.dict_to_kv(resp_hash))
end
def tes... |
"""Per job config for map jobs."""
from mapreduce import hooks
from mapreduce import input_readers
from mapreduce import output_writers
from mapreduce import parameters
from mapreduce import util
from mapreduce.api.map_job import input_reader
from mapreduce.api.map_job import mapper as mapper_module
# pylint: disable... |
package org.basex.core.cmd;
import static org.basex.core.Text.*;
import java.io.*;
import org.basex.core.*;
import org.basex.core.parse.Commands.Cmd;
import org.basex.core.users.*;
/**
* Evaluates the 'help' command and returns help on the database commands.
*
* @author BaseX Team 2005-20, BSD License
* @author... |
<?php
namespace Chromabits\Nucleus\Testing\Traits;
use Exception;
/**
* Trait ConstructorTesterTrait.
*
* @property array constructorTypes
*
* @author Eduardo Trujillo <ed@chromabits.com>
* @package Chromabits\Nucleus\Testing\Traits
*/
trait ConstructorTesterTrait
{
/**
* @return mixed
*/
... |
package nsqlookupd
import (
"log"
"net"
"github.com/bitly/nsq/util"
)
type NSQLookupd struct {
options *nsqlookupdOptions
tcpAddr *net.TCPAddr
httpAddr *net.TCPAddr
tcpListener net.Listener
httpListener net.Listener
waitGroup util.WaitGroupWrapper
DB *RegistrationDB
}
func NewN... |
<?php
namespace Symfony\Component\Console\Input;
use Symfony\Component\Console\Descriptor\TextDescriptor;
use Symfony\Component\Console\Descriptor\XmlDescriptor;
use Symfony\Component\Console\Output\BufferedOutput;
/**
* A InputDefinition represents a set of valid command line arguments and options.
*
* Usage:
... |
import { SharedModule } from '../../shared/shared.module';
import { RecipesRoutingModule } from './recipes-routing.module';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { RecipeItemComponent } from './recipe-list/recipe-item/recipe-item.component';
import ... |
module Fog
module Compute
class CloudSigma
class Real
def create_subscription(data)
create_request("subscriptions/", data)
end
end
class Mock
def create_subscription(data)
if data[:period] != '1 month' || data[:start_time] || data[:end_time]
... |
#ifndef ALICFVERTEXINGHFLCTOV0BACHELOR_H
#define ALICFVERTEXINGHFLCTOV0BACHELOR_H
/* $Id$ */
///-----------------------------------------------------------------------
/// \class AliCFVertexingHFLctoV0bachelor
/// Class for HF corrections as a function of many variables and steps
/// \brief For Lc->V0 bachelor
///... |
package org.jivesoftware.smackx.pubsub.util;
import org.jivesoftware.smack.packet.Stanza;
import org.jivesoftware.smackx.pubsub.ConfigureForm;
import org.jivesoftware.smackx.pubsub.FormNode;
import org.jivesoftware.smackx.pubsub.PubSubElementType;
import org.jivesoftware.smackx.xdata.Form;
/**
* Utility for extract... |
#pragma once
#ifndef ZORBA_SAX2_IMPL_HPP
#define ZORBA_SAX2_IMPL_HPP
#include <zorba/sax2.h>
#include <zorba/item.h>
#include "store/api/item.h"
namespace zorba{
class SAX2AttributesImpl: public SAX2_Attributes
{
typedef struct
{
zstring uri;
zstring localname;
zstring qname;
zstring ... |
div#js-weights div {
font-size: 20px;
font-weight: bold;
} |
<!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 (1.8.0_102) on Mon Jan 23 16:37:41 GMT 2017 -->
<title>Uses of Class me.gandhiinc.blindeye.MarketPlace</title>
<meta name="date" content="2017-01-23">... |
package net.floodlightcontroller.flowcache;
import java.util.Arrays;
import net.floodlightcontroller.devicemanager.IDevice;
import net.floodlightcontroller.devicemanager.SwitchPort;
/**
* The Class for FlowReconcileQuery for device move event.
*/
@Deprecated
public class FlowReconcileQueryDeviceMove extends Flow... |
package io.cloudslang.orchestrator.entities;
import io.cloudslang.score.facade.entities.Execution;
import io.cloudslang.engine.data.AbstractIdentifiable;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
/**
* Created with IntelliJ IDEA.
* User: kravtsov
* Date: 10/09/13
* Time: 09... |
;(function(root){
'use strict';
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
function toObject(val) {
if (val === null || val === undefined) {
throw new TypeError('Object.assign cannot be called with null or unde... |
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// DragonFly BSD system calls.
// This file is compiled as ordinary Go code,
// but it is also input to mksyscall,
// which parses the //sys lines and generates... |
Developing Drools and jBPM
==========================
**If you want to build or contribute to a droolsjbpm project, [read this document](https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/blob/master/README.md).**
**It will save you and us a lot of time by setting up your development environment correctly.**
... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.296
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----... |
<?php
/**
* PHPMailer language file: refer to English translation for definitive list
* Hungarian Version
*/
$PHPMAILER_LANG['authenticate'] = 'SMTP Hiba: Sikertelen autentikáció.';
$PHPMAILER_LANG['connect_host'] = 'SMTP Hiba: Nem tudtam csatlakozni az SMTP host-hoz.';
$PHPMAILER_LANG['data_not_accept... |
package JVM.classload.element;
/**
* Created by Defias on 2017/9/13.
*/
public class CalculatorBasic implements ICalculator {
public String calculate(String expression) {
return expression;
}
public String getVersion() {
return "1.0";
}
}
|
<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="resources/shadow-dom.js"></script>
<div id="targets">
<div>Non-shadow</div>
<div>
<template>Shadow</template>
</div>
<div>
<template>
... |
package com.ivanwooll.floatinglabelvalidator.lib;
import android.content.Context;
import android.content.res.TypedArray;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.view.View;
import android.widget.EditText;
import andro... |
:: 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.
:: Change HKCU to HKLM if you want to install globally.
:: %~dp0 is the directory containing this bat script and ends with a backslash.
REG ADD "HKCU\Soft... |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Web.Http.Description;
namespace Swashbuckle.Swagger
{
public static class ApiDescriptionExtensions
{
public static string FriendlyId(this ApiDescription apiDescription)
{
return String.Format("{0}_{1}",... |
using System;
using System.Linq;
using Rhino.ServiceBus.Exceptions;
using Rhino.ServiceBus.Internal;
using Rhino.ServiceBus.Sagas;
namespace Rhino.ServiceBus.Config
{
public class ConsumerInterceptor : IConsumerInterceptor
{
public void ItemCreated(Type createdType, bool isTransient)
{
... |
require 'contest'
require 'tilt'
class TiltCacheTest < Test::Unit::TestCase
setup { @cache = Tilt::Cache.new }
test "caching with single simple argument to #fetch" do
template = nil
result = @cache.fetch('hello') { template = Tilt::StringTemplate.new {''} }
assert_same template, result
result = @c... |
<?php
namespace Symfony\Component\CssSelector\Parser\Handler;
use Symfony\Component\CssSelector\Parser\Reader;
use Symfony\Component\CssSelector\Parser\Token;
use Symfony\Component\CssSelector\Parser\TokenStream;
/**
* CSS selector whitespace handler.
*
* This component is a port of the Python cssselect library... |
> Gracefully restore the CLI cursor on exit
Prevent the cursor you've hidden interactively to remain hidden if the process crashes.
## Install
```sh
$ npm install --save restore-cursor
```
## Usage
```js
var restoreCursor = require('restore-cursor');
restoreCursor();
```
## License
MIT © [Sindre Sorhus](http:... |
#import "FBIsStringRepresentingJSONDictionary.h"
#import "FBUtility.h"
#import <OCHamcrestIOS/HCDescription.h>
#import <OCHamcrestIOS/HCWrapInMatcher.h>
@implementation FBIsStringRepresentingJSONDictionary
+ (instancetype)isStringRepresentingJSONDictionary:(id<HCMatcher>)aValueMatcher
{
return [[self alloc] ini... |
class EEToProfInterfaceImpl;
class Object;
struct ScanContext;
#if defined (PROFILING_SUPPORTED_DATA) || defined(PROFILING_SUPPORTED)
#ifndef PROFILING_SUPPORTED_DATA
#define PROFILING_SUPPORTED_DATA 1
#endif // PROFILING_SUPPORTED_DATA
#include "corprof.h"
//--------------------------------------------------------... |
/**
* A component handler interface using the revealing module design pattern.
* More details on this design pattern here:
* https://github.com/jasonmayes/mdl-component-design-pattern
* @author Jason Mayes.
*/
/* exported componentHandler */
var componentHandler = (function() {
'use strict';
var registeredC... |
<?php
namespace yii\behaviors;
use yii\base\Behavior;
use yii\base\Event;
use yii\db\Expression;
use yii\db\ActiveRecord;
/**
* AutoTimestamp will automatically fill the attributes about creation time and updating time.
*
* AutoTimestamp fills the attributes when the associated AR model is being inserted or upda... |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Test for faked database access
*
* @package PhpMyAdmin-test
*/
/*
* Include to test.
*/
require_once 'libraries/database_interface.inc.php';
require_once 'libraries/charset_conversion.lib.php';
/**
* Tests basic functionality of dummy dbi driver
*
* @pac... |
<?php
declare(strict_types=1);
namespace Sylius\Component\Core\Promotion\Modifier;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\PromotionCouponInterface;
final class OrderPromotionsUsageModifier implements OrderPromotionsUsageModifierInterface
{
/**
* {@inheritdoc}
... |
package com.mogujie.tt.imservice.entity;
import com.mogujie.tt.protobuf.helper.EntityChangeEngine;
/**
* @author : yingmu on 15-1-6.
* @email : yingmu@mogujie.com.
*
* 未读session实体,并未保存在DB中
*/
public class UnreadEntity {
private String sessionKey;
private int peerId;
private int sessionType;
priva... |
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// 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 requ... |
package org.wso2.carbon.iot.android.sense.event.streams;
import android.content.Context;
import org.wso2.carbon.iot.android.sense.event.streams.location.LocationDataReader;
import org.wso2.carbon.iot.android.sense.event.streams.sensor.SensorDataReader;
import org.wso2.carbon.iot.android.sense.event.streams.speed.Spe... |
Database.From<TResult> Method (SqlBuilder)
=============================================
Creates and returns a new [SqlSet<TResult>][1] using the provided defining query.
**Namespace:** [DbExtensions][2]
**Assembly:** DbExtensions.dll
Syntax
------
```csharp
public SqlSet<TResult> From<TResult>(
SqlBui... |
YUI.add('widget-position-ext', function(Y) {
/**
* Provides extended/advanced XY positioning support for Widgets, through an extension.
*
* It builds on top of the widget-position module, to provide alignmentment and centering support.
* Future releases aim to add constrained and fixed positioning support.
*
* @... |
// See docs in ../ops/math_ops.cc
#define EIGEN_USE_THREADS
#include "tensorflow/core/kernels/compare_and_bitpack_op.h"
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/frame... |
<html>
<head>
<script>
function openIframe()
{
if (document.createElement && (iframe = document.createElement('iframe'))) {
document.body.appendChild(iframe);
return iframe;
}
}
function runTestOuterText() {
t1 = openIframe();
... |
//------------------------------------------------------------------------------
// <copyright file="VSPackage.cs" company="Company">
// Copyright (c) Company. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System;
using System.Componen... |
package fsutils // import "github.com/docker/docker/pkg/fsutils"
import (
"io/ioutil"
"os"
"os/exec"
"testing"
"golang.org/x/sys/unix"
)
func testSupportsDType(t *testing.T, expected bool, mkfsCommand string, mkfsArg ...string) {
// check whether mkfs is installed
if _, err := exec.LookPath(mkfsCommand); err ... |
layout: default
title: Using with Puppet
toc: false
---
[FactsRLFacter]: http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/FactsFacterYAML
[PluginSync]: http://docs.reductivelabs.com/guides/plugins_in_modules.html
[AgentPuppetd]: http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/AgentPuppe... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/license... |
import os
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.flatpages.models import FlatPage
from django.test import TestCase
from django.test.utils import override_settings
@override_settings(
LOGIN_URL='/accounts/login/',
MIDDLEWARE_CLASSES=(
'django.mi... |
import java.util.*;
interface A<T extends ArrayList<T>> {
A<<error descr="Type parameter '? extends List<Object>' is not within its bound; should extend 'java.util.ArrayList<? extends java.util.List<java.lang.Object>>'">? extends List<Object></error>> foo();
A<? extends List<T>> foo1();
} |
/*!
* Copyright (c) 2019 by Contributors
* \file np_broadcast_reduce_op_boolean.cc
* \brief CPU Implementation of broadcast and reduce functions based on boolean.
*/
#include "./np_broadcast_reduce_op.h"
namespace mxnet {
namespace op {
inline bool NumpyReduceAxesBoolType(const nnvm::NodeAttrs& attrs,
... |
"""Supports webkitpy logging."""
# FIXME: Move this file to webkitpy/python24 since logging needs to
# be configured prior to running version-checking code.
import logging
import os
import sys
import webkitpy
_log = logging.getLogger(__name__)
# We set these directory paths lazily in get_logger() below.
_s... |
cask :v1test => 'missing-version' do
url 'http://localhost/something.dmg'
homepage 'http://example.com'
end
|
<?php
namespace DoctrineORMModuleTest\Yuml;
use DoctrineORMModule\Yuml\MetadataGrapher;
use PHPUnit_Framework_TestCase;
/**
* Tests for the metadata to string converter
*
* @license MIT
* @link http://www.doctrine-project.org/
* @author Marco Pivetta <ocramius@gmail.com>
*/
class MetadataGrapherTest exten... |
use std::ffi::{CStr, NulError};
use std::error;
use std::fmt;
use std::str;
use libc::c_int;
use {raw, ErrorCode};
/// A structure to represent errors coming out of libgit2.
#[derive(Debug)]
pub struct Error {
klass: c_int,
message: String,
}
impl Error {
/// Returns the last error, or `None` if one is n... |
package com.siyeh.ig.bugs;
import com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil;
import com.intellij.psi.*;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.psi.util.PsiUtil;
import com.siyeh.InspectionGadgetsBundle;
import com.siyeh.ig.BaseInspect... |
require_relative '../../spec_helper'
require 'bigdecimal'
describe "BigDecimal#precs" do
before :each do
@infinity = BigDecimal("Infinity")
@infinity_neg = BigDecimal("-Infinity")
@nan = BigDecimal("NaN")
@zero = BigDecimal("0")
@zero_neg = BigDecimal("-0")
@arr = [BigDecimal("2E40001"), Big... |
package git_repo
import (
"fmt"
"io/ioutil"
"os"
"path"
"reflect"
"strings"
"testing"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/types"
"k8s.io/kubernetes/pkg/util/exec"
"k8s.io/kubernetes/pkg/volume"
"k8s.io/kubernetes/pkg/volume/empty_dir"
)
func newTestHost(t *testing.T) (string, volume.Volu... |
package com.alibaba.weex;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.net.Uri;... |
package project
import (
"golang.org/x/net/context"
"github.com/docker/libcompose/project/events"
"github.com/docker/libcompose/project/options"
)
// Build builds the specified services (like docker build).
func (p *Project) Build(ctx context.Context, buildOptions options.Build, services ...string) error {
retur... |
from django.views import generic
from django.conf import settings
from . import models
class InstancesIndex(generic.ListView):
template_name = 'instances/index.html'
queryset = models.Instance.objects.public().order_by('-users')
context_object_name = 'instances'
paginate_by = 25
|
Invoke-Expression "$env:GitVersion /output buildserver"
|
/**
* Serbian Latin Translation
* by Atila Hajnal (latin, utf8 encoding)
* sr
* 14 Sep 2007
*/
Ext.onReady(function() {
if (Ext.Date) {
Ext.Date.monthNames = ["Januar", "Februar", "Mart", "April", "Мај", "Jun", "Јul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar"];
Ext.D... |
#ifndef SOUNDCARD_H
#define SOUNDCARD_H
/*
* OSS interface version. With versions earlier than 3.6 this value is
* an integer with value less than 361. In versions 3.6 and later
* it's a six digit hexadecimal value. For example value
* of 0x030600 represents OSS version 3.6.0.
* Use ioctl(fd, OSS_GETVERSION, &i... |
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define('gridster-coords', ['jquery'], factory);
} else {
root.GridsterCoords = factory(root.$ || root.jQuery);
}
}(this, function($) {
/**
* Creates objects with coordinates (x1, y1, x2, y2, cx, cy, widt... |
package monitor
|
package com.splendidcode.angular.sample.login.Shiro;
import com.splendidcode.angular.sample.login.AuthInfo;
import com.splendidcode.angular.sample.login.AuthInfoFactory;
import com.splendidcode.angular.sample.login.hashing.Pbkdf2Options;
import com.splendidcode.angular.sample.login.hashing.Pbkdf2Utils;
import org.apac... |
var assert = require('assert');
var FS = require('fs');
var JSON5 = require('..');
var Path = require('path');
// Test JSON5.parse() by comparing its output for each case with either the
// native JSON.parse() or ES5 strict-mode eval(). See readme.txt for details.
// For eval(), remember to wrap the input in parenthes... |
// Copyright 2009, 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 conditions ... |
#include "config.h"
#include "JSStringRef.h"
#include "InitializeThreading.h"
#include "OpaqueJSString.h"
#include <wtf/unicode/UTF8.h>
using namespace JSC;
using namespace WTF::Unicode;
JSStringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars)
{
initializeThreading();
return OpaqueJSS... |
using System.Collections.Generic;
using Umbraco.Core.Models;
using Umbraco.Core.Models.Membership;
using Umbraco.Core.Persistence.Querying;
namespace Umbraco.Core.Services
{
/// <summary>
/// Defines part of the MemberService, which is specific to methods used by the membership provider.
/// </summary>
... |
var moment = require('moment'),
_ = require('lodash'),
ghostConfig = '';
// ## setConfig
// Simple utility function to allow
// passing of the ghostConfig
// object here to be used locally
// to ensure clean depedency graph
// (i.e. no circular dependencies).
function setConfig(confi... |
/** @module vobj/core */
import Item from './Item.class'
/**
* An ExpendedError is thown when someone tries to do something with
* an {@link Item} that has already expended.
*/
export default class ExpendedError extends Error {
/**
* Construct a new ExpendedError object.
* @param item the Item that has bee... |