text stringlengths 3 1.05M |
|---|
var router = require('express').Router();
router.use('/api', require('./api'));
module.exports = router;
|
class GURL;
namespace net {
class URLRequest;
}
namespace xwalk {
class InterceptedRequestData;
// This class provides a means of calling Java methods on an instance that has
// a 1:1 relationship with a WebContents instance directly from the IO thread.
//
// Specifically this is used to associate URLRequests with ... |
<!DOCTYPE html>
<html lang="en" ng-app="example">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* th... |
#ifndef HIDOSXJOYSTICK_H
#define HIDOSXJOYSTICK_H
#include "hidjsdevice.h"
#include <IOKit/hid/IOHIDManager.h>
#include <IOKit/hid/IOHIDKeys.h>
#include <CoreFoundation/CoreFoundation.h>
typedef struct
{
IOHIDElementRef IOHIDRef;
int value;
} HIDInfo;
class HIDOSXJoystick: public HIDJsDevice
{
Q_OBJE... |
#ifndef _PORTING_H
#define _PORTING_H
#include "jffs2_config.h"
/* the following should be same with os_sys_stat.h */
#define JFFS2_S_IFMT 0x000003FF
#define JFFS2_S_IFDIR (1<<0)
#define JFFS2_S_IFREG (1<<3)
struct jffs2_fs_info
{
unsigned sector_size; /* a erasing block size*/
unsigned nr_blocks; /* number of ... |
using System.Collections.Generic;
using System.Linq;
namespace EasyNetQ.Interception
{
public class CompositeInterceptor : IProduceConsumeInterceptor
{
private readonly List<IProduceConsumeInterceptor> interceptors = new List<IProduceConsumeInterceptor>();
public RawMessage OnProduce(RawMessa... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking
{
/// <summary>
/// This script allows for dynamically changing the size of a GameObject when it is looked at.
/// This is for example useful ... |
<div class="page">
<div class="page-header">
<h1 class="page-title">Estimates</h1>
<ol class="breadcrumb">
<?php if($this->session->userdata('userdetails')){?>
<li class="breadcrumb-item"><a href="<?php echo site_url('user/dashboard'); ?>">Home</a></li>
<?php } else{ ?>
<li class="b... |
namespace boost { namespace geometry
{
// Tags defining strategies linked to coordinate systems
/// Tag used for casting spherical/geographic coordinate systems
struct spherical_tag {};
/// Tag indicating Cartesian coordinate system family (cartesian,epsg)
struct cartesian_tag {};
/// Tag indicating Spherical pola... |
package org.apache.hadoop.util;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadInfo;
import java.lang.management.ThreadMXBean;
import java.lang.reflect.Constructor;
import java.lang.reflect... |
package com.intellij.codeInsight.daemon.quickFix;
import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.intermediaryVariable.ReturnSeparatedFromComputationInspection;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.testFramework.IdeaTestUtil;
import org.jetbrains... |
package main
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
"github.com/docker/distribution/digest"
"github.com/docker/distribution/manifest/schema1"
"github.com/docker/distribution/manifest/schema2"
"github.com/docker/docker/pkg/integration/checker"
"github.com/docker/docker/pkg/st... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__short_rand_sub_31.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-31.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: Set dat... |
Persisting the Decorator Pattern
================================
.. sectionauthor:: Chris Woodford <chris.woodford@gmail.com>
This recipe will show you a simple example of how you can use
Doctrine 2 to persist an implementation of the
`Decorator Pattern <http://en.wikipedia.org/wiki/Decorator_pattern>`_
Component
... |
module.exports = function( grunt ) {
"use strict";
var
// files
coreFiles = [
"jquery.ui.core.js",
"jquery.ui.widget.js",
"jquery.ui.mouse.js",
"jquery.ui.draggable.js",
"jquery.ui.droppable.js",
"jquery.ui.resizable.js",
"jquery.ui.selectable.js",
"jquery.ui.sortable.js",
"jquery.ui.effect.js"
]... |
require 'spec_helper'
describe ClioClient::CustomFieldValue do
context "custom_field association" do
let(:attribute) { :custom_field }
let(:klass) { ClioClient::CustomField }
include_examples "association"
end
end
|
package btf
import (
"encoding/binary"
"fmt"
"io"
)
//go:generate stringer -linecomment -output=btf_types_string.go -type=FuncLinkage,VarLinkage
// btfKind describes a Type.
type btfKind uint8
// Equivalents of the BTF_KIND_* constants.
const (
kindUnknown btfKind = iota
kindInt
kindPointer
kindArray
kindSt... |
\begin{tikzpicture}[remember picture, overlay]
\draw[line width = 4pt] ($(current page.north west) + (0.5in,-0.5in)$) rectangle ($(current page.south east) + (-0.5in,0.5in)$);
\end{tikzpicture}
\topskip0pt
\vspace*{\fill}
\begin{center}
\large
DIVISION OF COMPUTER ENGINEERING\\
SCHOOL OF ENGINEERING\\
\hspace{1em... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*++
Module Name:
handleapi.cpp
Abstract:
Implementation of the handle management APIs
--*/
#include "pal/handleapi.hpp"
#include "pal/handlemg... |
from django.apps import AppConfig
class NotificationConfig(AppConfig):
name = 'notification'
|
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use st... |
<div ng-controller="CustomInputDemoCtrl as ctrl" layout="column" ng-cloak>
<md-content class="md-padding" layout="column">
<h2 class="md-title">Use an <code>input</code> element with no model to build an ordered set of chips.</h2>
<md-chips ng-model="ctrl.numberChips">
<input type="number" placeholder=... |
package org.apache.nifi.registry.flow;
public class FlowRegistryUtil {
public static final String FLOW_ENCODING_VERSION = "1.0";
private FlowRegistryUtil() {}
}
|
<?php
namespace yii\db\conditions;
use yii\base\InvalidArgumentException;
/**
* Class LikeCondition represents a `LIKE` condition.
*
* @author Dmytro Naumenko <d.naumenko.a@gmail.com>
* @since 2.0.14
*/
class LikeCondition extends SimpleCondition
{
/**
* @var array|false map of chars to their replacem... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (... |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.lang.groovydoc.psi.impl;
import com.intellij.lang.ASTNode;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullab... |
<?php
/**
* A MySQL store.
*
* @package OpenID
*/
/**
* Require the base class file.
*/
require_once "Auth/OpenID/SQLStore.php";
/**
* An SQL store that uses MySQL as its backend.
*
* @package OpenID
*/
class Auth_OpenID_MySQLStore extends Auth_OpenID_SQLStore {
/**
* @access private
*/
f... |
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Browser globals
... |
//// [commentOnImportStatement2.ts]
import foo = require('./foo');
//// [commentOnImportStatement2.js]
|
<?xml version="1.0" encoding="utf-8"?>
<pointer-icon xmlns:android="http://schemas.android.com/apk/res/android"
android:bitmap="@drawable/pointer_nodrop_large"
android:hotSpotX="10dp"
android:hotSpotY="10dp" />
|
/**
* angular-strap
* @version v2.0.0-rc.4 - 2014-03-07
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes (olivier@mg-crea.com)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.affix', ['mgcrea.ngStrap.helpers.dimensions']).prov... |
/// <reference path="../_definitions.ts" />
/**
* Phaser - Signal
*
* A Signal is used for object communication via a custom broadcaster instead of Events.
* Based on JS Signals by Miller Medeiros. Converted by TypeScript by Richard Davey.
* Released under the MIT license
* http://millermedeiros.github.com/js-signals/... |
require 'faster_csv'
class UsersController < ApplicationController
include AjaxScaffold::Controller
before_filter :admin_required, :except => [:profile,:save_profile,:list_supervised,:component_supervised,:component_update_supervised]
before_filter :supervisor_required, :only => [:list_supervised,:component_s... |
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {
"use strict";
var page = WinJS.UI.Pages.define("/html/scenario1-findId.html", {
ready: function (element, options) {
document.getElementById("textInput").value =
"Hello, how are you? I hope you ar... |
CKEDITOR.plugins.setLang("uicolor","cs",{title:"Výběr barvy rozhraní",preview:"Živý náhled",config:"Vložte tento řetězec do Vašeho souboru config.js",predefined:"Přednastavené sady barev"}); |
"""Tests for tensorflow.ops.image_ops."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import colorsys
import functools
import math
import os
import time
import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin
from tensorfl... |
package org.elasticsearch.cluster;
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
import org.elasticsearch.cluster.routing.ShardRouting;
import org.elasticsearch.common.collect.ImmutableOpenMap;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<!-- This file generated by Sakai App Builder -AZ -->
<beans>
<!-- Add our HBM files to the Sakai global session factory -->
<bean
id="org.sakaiproject.poll.hibernate.Add... |
import datetime
import pytz
from nose.tools import assert_equal
from pytides.observations import Observations
from ..utils import fixture_filename
class TestCsvObservations(object):
@classmethod
def setup_class(cls):
cls.csv_obs = Observations.from_csv(fixture_filename(
'example_observ... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Module: zrender/tool/computeBoundingBox</title>
<meta property="og:title" content=""/>
<meta property="og:type" content="website"/>
<meta property="og:image" content=""/>
<meta property="og:url" content=""/... |
// Copyright 2007 The Closure Library 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 requ... |
class Test {
Object method() {
return
null;<caret>
}
} |
require 'active_support/deprecation'
require 'active_support/proxy_object'
module ActiveSupport
class BasicObject < ProxyObject # :nodoc:
def self.inherited(*)
::ActiveSupport::Deprecation.warn 'ActiveSupport::BasicObject is deprecated! Use ActiveSupport::ProxyObject instead.'
super
end
end
end... |
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="common_margin">16dip</dimen>
</resources>
|
/* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */
#ifndef _XSHM_H_
#define _XSHM_H_
#include <X11/Xfuncproto.h>
#include <X11/extensions/shm.h>
#ifndef _XSHM_SERVER_
typedef unsigned long ShmSeg;
typedef struct {
int type; /* of event */
unsigned long serial; /* # of las... |
layout: location-list
color: lime
title: 'Cultivate LA in Los Angeles, Page 47'
page_number: 47
items_per_page: 20
list_offset: 920
first: /cultivate-la/
canonical_url: /cultivate-la/
next: /cultivate-la/page48/
previous: /cultivate-la/page46/
collection: cultivate-la
category: Cultivate LA
---
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SEAMEO SEAMOLEC</title>
{{ Html::style('assets/front/css/bootstrap.min.css') }}
{{ Html::style('ass... |
package org.optaplanner.core.config.constructionheuristic;
import java.util.List;
import java.util.function.Consumer;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlType;
import org.optaplanner.core.config.constructionheuristic.decider.f... |
.class public Landroid/net/NetworkUtils;
.super Ljava/lang/Object;
.source "NetworkUtils.java"
# static fields
.field public static final RESET_ALL_ADDRESSES:I = 0x3
.field public static final RESET_IPV4_ADDRESSES:I = 0x1
.field public static final RESET_IPV6_ADDRESSES:I = 0x2
.field private static final TAG:Ljava... |
<?php
namespace Symfony\Component\Templating\Helper;
/**
* SlotsHelper manages template slots.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @api
*/
class SlotsHelper extends Helper
{
protected $slots = array();
protected $openSlots = array();
/**
* Starts a new slot.
*
* T... |
package v1alpha1
import (
admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1"
"k8s.io/apimachinery/pkg/runtime"
)
func addDefaultingFuncs(scheme *runtime.Scheme) error {
return RegisterDefaults(scheme)
}
func SetDefaults_Initializer(obj *admissionregistrationv1alpha1.Initializer) {
if obj... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Unauthorized - Error 401</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<style>
h1,h3,h4{text-align: center;font-weig... |
package hudson.slaves;
import antlr.ANTLRException;
import hudson.Extension;
import static hudson.Util.fixNull;
import hudson.model.Computer;
import hudson.model.Descriptor;
import hudson.model.Queue;
import hudson.scheduler.CronTabList;
import hudson.util.FormValidation;
import org.kohsuke.stapler.DataBoundConstruct... |
var tap = require("tap")
var server = require("./lib/server.js")
var common = require("./lib/common.js")
var client = common.freshClient()
var cache = require("./fixtures/@npm/npm-registry-client/cache.json")
var REV = "/-rev/213-0a1049cf56172b7d9a1184742c6477b9"
var PACKAGE = "/@npm%2fnpm-registry-client"
var U... |
from test_utils import patch, call
from unittest import TestCase
from pybuilder.scaffolding import (PythonProjectScaffolding,
collect_project_information,
suggest,
suggest_plugins)
class PythonProjectScaffoldingT... |
<!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_151) on Tue Dec 12 12:37:17 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.s... |
package com.intellij.openapi.extensions;
import com.intellij.openapi.util.text.StringUtil;
import org.jdom.Element;
import org.jetbrains.annotations.NotNull;
/**
* @author Alexander Kireyev
*/
public class SortingException extends RuntimeException {
private final Element[] myConflictingElements;
SortingExcept... |
import { QueryList } from '@angular/core';
import { Subject } from 'rxjs/Subject';
/**
* This interface is for items that can be passed to a ListKeyManager.
*/
export interface ListKeyManagerOption {
disabled?: boolean;
getLabel?(): string;
}
/**
* This class manages keyboard events for selectable lists. If... |
(function($) {
var BootstrapValidator = function(form, options) {
this.$form = $(form);
this.options = $.extend({}, BootstrapValidator.DEFAULT_OPTIONS, options);
this.$invalidField = null; // First invalid field
this.$submitButton = null; // The submit button which is clicked ... |
var baseIteratee = require('./_baseIteratee'),
baseSortedUniqBy = require('./_baseSortedUniqBy');
/**
* This method is like `_.uniqBy` except that it's designed and optimized
* for sorted arrays.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The array to inspect.
* @param {Function} [i... |
var x = `abc${ 0 }def` instanceof String;
//// [templateStringInInstanceOf.js]
var x = "abc" + 0 + "def" instanceof String;
|
import numpy
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('sparsetools', parent_package, top_path)
config.add_extension('_min_spanning_tree',
sources=['_min_spanning_tree.c'],
... |
package profitbricks
import (
"fmt"
"time"
"strings"
"os"
)
func mkdcid(name string) string {
request := Datacenter{
Properties: DatacenterProperties{
Name: name,
Description: "description",
Location: "us/las",
},
}
dc := CreateDatacenter(request)
fmt.Println("==========================... |
<!--
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, Version 2.0
(the "License"); you may not... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=fn.SDL_SaveBMP_RW.html">
</head>
<body>
<p>Redirecting to <a href="fn.SDL_SaveBMP_RW.html">fn.SDL_SaveBMP_RW.html</a>...</p>
<script>location.replace("fn.SDL_SaveBMP_RW.html" + location.search + location.hash);</script>
</body... |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
/**
* Smarty wordwrap modifier plugin
*
* Type: modifier<br>
* Name: wordwrap<br>
* Purpose: wrap a string of text at a given length
*
* @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php wordw... |
<!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... |
<div class="participant-header">
<h1 class="participant-name">Name Name Name</h1>
<img src="http://placehold.it/1200x600" alt="" class="participant-image">
</div>
<div class="participant-body">
<div class="participant-intro">
<h3 class="participant-title">Art curator, critic and historian</h3>
<h5 class="partici... |
package com.alibaba.dubbo.rpc.cluster.merger;
import com.alibaba.dubbo.rpc.cluster.Merger;
/**
* @author <a href="mailto:gang.lvg@alibaba-inc.com">kimi</a>
*/
public class BooleanArrayMerger implements Merger<boolean[]> {
public boolean[] merge(boolean[]... items) {
int totalLen = 0;
for(bool... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Highlight Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset="utf-8">
<script src="../js/jquery.min.js" defer></script>
<scr... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Operator x % y uses [[Default Value]]
es5id: 11.5.3_A2.2_T1
description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
---*/
//CHECK#1
if ({valueOf: function(... |
<?php
declare(strict_types=1);
namespace Artisanry\Tests\Addressable;
use GrahamCampbell\TestBench\AbstractPackageTestCase;
abstract class AbstractTestCase extends AbstractPackageTestCase
{
/**
* Get the service provider class.
*
* @param \Illuminate\Interfaces\Foundation\Application $app
... |
(function () {
'use strict';
/**
* @ngdoc overview
* @ngname horizon.app.core.conf
*
* @description
* Provides features that support app configuration.
*/
angular
.module('horizon.app.core.conf', ['horizon.framework.conf'])
.config(permissionsDecorator);
permissionsDecorator.$injec... |
module Pact
module Test
class CaseInsensitiveResponseHeadersApp
def call env
[200, {'cOnTent-tYpe' => 'application/hippo'},[]]
end
end
end
end
Pact.service_provider "Provider" do
app { Pact::Test::CaseInsensitiveResponseHeadersApp.new }
end |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
// Copyright 2017 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
namespace Symfony\Component\HttpKernel\Profiler;
@trigger_error('The '.__NAMESPACE__.'\BaseMemcacheProfilerStorage class is deprecated since Symfony 2.8 and will be removed in 3.0. Use FileProfilerStorage instead.', E_USER_DEPRECATED);
/**
* Base Memcache storage for profiling information in a Memcache.
*
... |
BPM Plugin
==========
This ``bpm`` plugin lets you to get the tempo (beats per minute) of a song by
tapping out the beat on your keyboard.
Usage
-----
To use the ``bpm`` plugin, first enable it in your configuration (see
:ref:`using-plugins`).
Then, play a song you want to measure in your favorite media player and ... |
/**************************************************************************//**
* @file
* @brief efm32g_rmu Register and Bit Field definitions
* @author Energy Micro AS
* @version 3.0.0
******************************************************************************
* @section License
* <b>(C) Copyright 2012 Energ... |
<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">
<parent>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-alpn-parent</artifactId>
<version>9.2.5.... |
var _passCount = 0,
_failCount = 0;
function _pass() {
_passCount++;
}
function _fail(msg) {
print(msg);
_failCount++;
}
// compareArrays() used under MIT License -- based on http://code.google.com/p/jqcommons/
Array.prototype.compareArrays = function(arr, eps) {
if (this.length != arr.length)
re... |
package net.sourceforge.pmd.rules;
import net.sourceforge.pmd.AbstractRule;
import net.sourceforge.pmd.ast.ASTAssignmentOperator;
import net.sourceforge.pmd.ast.ASTExpression;
import net.sourceforge.pmd.ast.ASTIfStatement;
import net.sourceforge.pmd.ast.ASTWhileStatement;
import net.sourceforge.pmd.ast.Node;
public c... |
package org.intentor.yabai.states;
import org.intentor.yabai.valueobjects.AiParameters;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import lejos.nxt.LCD;
import org.intentor.yabai.core.State;
import org.intentor.yabai.core.data.FileManager;
import org.intentor.yabai.util.Menu;
impo... |
namespace anim
{
AnyRectInterpolation::AnyRectInterpolation(m2::AnyRectD const & startRect,
m2::AnyRectD const & endRect,
double rotationSpeed,
m2::AnyRectD & outRect)
: m_interva... |
layout: doc_page
---
Content for build.sbt
---------------------
```scala
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk" % "1.9.23" exclude("common-logging", "common-logging"),
"org.joda" % "joda-convert" % "1.7",
"joda-time" % "joda-time" % "2.7",
"io.druid" % "druid" % "0.7.3" excludeAll (
... |
<!-- Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. -->
<div class="ms-Table">
<div class="ms-Table-row">
<span class="ms-Table-rowCheck"></span>
<span class="ms-Table-cell">File name</span>
<span class="ms-Table-cell... |
package com.navercorp.pinpoint.profiler.context;
import com.navercorp.pinpoint.bootstrap.context.TraceId;
import com.navercorp.pinpoint.common.util.TransactionIdUtils;
import com.navercorp.pinpoint.thrift.dto.TIntStringValue;
import com.navercorp.pinpoint.thrift.dto.TSpan;
/**
* Span represent RPC
*
* @author ne... |
<?php
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\Backup;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\CopyBackupRequest;
use Google\Service\BigtableAdmin\GetIamPolicyRequest;
use Google\Service\BigtableAdmin\ListBackupsResponse;
use Goog... |
package org.zstack.sdk;
import java.util.HashMap;
import java.util.Map;
public class ChangeHostStateAction extends AbstractAction {
private static final HashMap<String, Parameter> parameterMap = new HashMap<>();
public static class Result {
public ErrorCode error;
public ChangeHostStateResul... |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/common', __FILE__)
describe "Dir.home" do
before :all do
DirSpecs.create_mock_dirs
end
after :all do
DirSpecs.delete_mock_dirs
end
it "returns the current user's home directory as a string if called wit... |
<!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_21) on Sat May 11 22:08:47 BST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Class com.h... |
(function($, window, document, undefined) {
'use strict';
var namespace = 'cbp',
eventNamespace = '.' + namespace;
// Utility
if (typeof Object.create !== 'function') {
Object.create = function(obj) {
function F() {}
F.prototype = obj;
return new ... |
DROP TABLE IF EXISTS `groups`;
#
# Table structure for table 'groups'
#
CREATE TABLE `groups` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
`description` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
#
# Dumping data for table 'groups'
#
... |
class GURL;
namespace net {
class HttpAuthFilter;
// The URL security manager controls the policies (allow, deny, prompt user)
// regarding URL actions (e.g., sending the default credentials to a server).
class NET_EXPORT URLSecurityManager {
public:
URLSecurityManager() {}
virtual ~URLSecurityManager() {}
/... |
<?php
namespace Symfony\Component\Intl\ResourceBundle\Util;
/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class RecursiveArrayAccess
{
public static function get($array, array $indices)
{
foreach ($indices as $index) {
if (!$array instanceof \ArrayAccess && !is_array($array)... |
<?php
namespace Assetic\Filter;
use Assetic\Asset\AssetInterface;
use Assetic\Exception\FilterException;
/**
* CSSEmbed filter
*
* @link https://github.com/nzakas/cssembed
* @author Maxime Thirouin <maxime.thirouin@gmail.com>
*/
class CssEmbedFilter extends BaseProcessFilter
{
private $jarPath;
privat... |
// Copyright 2010 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.
/*
Package html implements an HTML5-compliant tokenizer and parser.
Tokenization is done by creating a Tokenizer for an io.Reader r. It is the
caller's respons... |
package subpackage
import (
. "github.com/onsi/ginkgo"
)
var _ = Describe("Testing with Ginkgo", func() {
It("nested sub packages", func() {
GinkgoT().Fail(true)
})
})
|
I18n.config.enforce_available_locales = false
Rails.application.config.i18n.fallbacks = true
FatFreeCRM.application.config.after_initialize do
I18n.default_locale = Setting.locale
I18n.fallbacks[:en] = [:"en-US"]
end
|
require "spec_helper"
describe Mongoid::Extensions::Nil::Assimilation do
describe "#assimilate" do
before do
@name = Name.new(:first_name => "Durran")
@parent = Person.new(:title => "Mr.", :name => @name)
@options = Mongoid::Associations::Options.new(:name => :name)
end
it "removes t... |