text stringlengths 3 1.05M |
|---|
package main
//import "github.com/opencontainers/specs"
//shoud use github path ,but the whole project is not supported
import "../../source/specs"
func TestMntPathEmpty() string {
ns := specs.Namespace{Type: "mount",
Path: ""}
ls := linuxSpec
ls.Process.Args = append(ls.Process.Args, "/bin/readlink", "/proc/s... |
package fr.sii.ogham.core.builder.resolution;
import fr.sii.ogham.core.builder.configuration.ConfigurationValueBuilder;
import fr.sii.ogham.core.builder.configuration.ConfigurationValueBuilderDelegate;
import fr.sii.ogham.core.builder.context.BuildContext;
import fr.sii.ogham.core.builder.env.EnvironmentBuilder;
impor... |
using System;
using DataStructures.Lists;
using DataStructures.Trees;
namespace DataStructures.Common
{
public static class Comparers
{
/// <summary>
/// Determines if a specific value is a number.
/// </summary>
/// <returns><c>true</c> if the value is a number; otherwise, <c>false</c>.</returns>
/// <p... |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2014.02.04... |
package linux
import (
"io/ioutil"
"reflect"
"strconv"
"strings"
)
type MemInfo struct {
MemTotal uint64 `json:"mem_total"`
MemFree uint64 `json:"mem_free"`
MemAvailable uint64 `json:"mem_available"`
Buffers uint64 `json:"buffers"`
Cached uint64 `json:"cached"`
S... |
# Climatempo API
*Read this in other languages: [Portuguese](README.md)
[Climatempo](http://www.climatempo.com.br) is a weather forecast service for brazilian cities.
They offer a REST API for developers and the goal of this library is to
make it simple to request forecasts using said API.
## How can ... |
#ifndef AVFORMAT_ID3V2_H
#define AVFORMAT_ID3V2_H
#include <stdint.h>
#include "avformat.h"
#include "internal.h"
#include "metadata.h"
#define ID3v2_HEADER_SIZE 10
/**
* Default magic bytes for ID3v2 header: "ID3"
*/
#define ID3v2_DEFAULT_MAGIC "ID3"
#define ID3v2_FLAG_DATALEN 0x0001
#define ID3v2_FLAG_UNS... |
<?php
namespace Sensio\Bundle\GeneratorBundle\Tests\Manipulator;
use Sensio\Bundle\GeneratorBundle\Manipulator\RoutingManipulator;
class RoutingManipulatorTest extends \PHPUnit_Framework_TestCase
{
/**
* @dataProvider getImportedResourceYamlKeys
*/
public function testGetImportedResourceYamlKey($... |
var FormNewPhysLocationController = function(physLocation, $scope, $controller, physLocationService) {
// extends the FormPhysLocationController to inherit common methods
angular.extend(this, $controller('FormPhysLocationController', { physLocation: physLocation, $scope: $scope }));
$scope.physLocationN... |
package org.jbpm.compiler.xml.processes;
import java.util.HashSet;
import org.drools.core.xml.BaseAbstractHandler;
import org.drools.core.xml.ExtensibleXmlParser;
import org.drools.core.xml.Handler;
import org.jbpm.workflow.core.node.CompositeNode;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
pu... |
module.exports = function (x) { return x - GGG }
|
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.Reflection;
using Pathfinding;
[CustomEditor(typeof(AstarPath))]
public class AstarPathEditor : Editor {
/** List of all graph editors available (e.g GridGraphEditor) */
static Dictionary<string, CustomGraphEditorAttribute> graphEdi... |
npm(3) -- node package manager
==============================
## SYNOPSIS
var npm = require("npm")
npm.load(configObject, function (er, npm) {
// use the npm object, now that it's loaded.
npm.config.set(key, val)
val = npm.config.get(key)
console.log("prefix = %s", npm.prefix)
... |
<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use common\helpers\DatabaseHelper;
/* @var $this yii\web\View */
/* @var $model common\models\index\Index */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="index-form">
<?php $form = ActiveForm::begin(
[
'id' => 'form-index-cre... |
"""The QCOW image path specification resolver helper implementation."""
# This is necessary to prevent a circular import.
import dfvfs.file_io.qcow_file_io
from dfvfs.lib import definitions
from dfvfs.resolver import resolver
from dfvfs.resolver import resolver_helper
class QcowResolverHelper(resolver_helper.Resolv... |
set -e
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $SCRIPTS_DIR/..
source $SCRIPTS_DIR/bootstrap/chipkit.sh
source $SCRIPTS_DIR/bootstrap/arduino.sh
|
/**
* @name Kitchen
* @constructor
* @fires Bakery#event:donutOrdered
*/
/**
* Fired when some cake is eaten.
* @name Kitchen#event:cakeEaten
* @function
* @param {Number} pieces The number of pieces eaten.
*/
/**
* Find out if cake was eaten.
* @name Kitchen#cakeEaten
* @function
* @param {Boolean} wasE... |
<?php
namespace Amadeus\Client\Struct\Fop;
/**
* LocalDateTime
*
* @package Amadeus\Client\Struct\Fop
* @author Dieter Devlieghere <dermikagh@gmail.com>
*/
class LocalDateTime
{
}
|
class BrowsingDataCookieHelper;
class BrowsingDataServerBoundCertHelper;
class CookieSettings;
class CookiesTreeModel;
class CookieTreeAppCacheNode;
class CookieTreeAppCachesNode;
class CookieTreeCookieNode;
class CookieTreeCookiesNode;
class CookieTreeDatabaseNode;
class CookieTreeDatabasesNode;
class CookieTreeFileSy... |
layout: page-fullwidth
title: "PEGASUS"
subheadline: ""
teaser: "PEGASUS 設備簡介"
header: no
categories:
- distributor
---
[http://www.pongee.com/index.php?_lang=T](http://www.pongee.com/index.php?_lang=T)
|
package ua.com.fielden.platform.entity;
import static java.lang.String.format;
import static java.util.Optional.empty;
import static java.util.Optional.of;
import static java.util.stream.Collectors.toCollection;
import static java.util.stream.Collectors.toList;
import static ua.com.fielden.platform.entity.annotation.I... |
<?php
/*
* Set error reporting to the level to which Zend Framework code must comply.
*/
error_reporting( E_ALL | E_STRICT );
if (class_exists('PHPUnit_Runner_Version', true)) {
$phpUnitVersion = PHPUnit_Runner_Version::id();
if ('@package_version@' !== $phpUnitVersion && version_compare($phpUnitVersion, ... |
namespace remoting {
// A scoper for a variable-length structure such as SID, SECURITY_DESCRIPTOR and
// similar. These structures typically consist of a header followed by variable-
// length data, so the size may not match sizeof(T). The class supports
// move-only semantics and typed buffer getters.
template <typen... |
sudo procer $PWD $PWD/../run/procer.pid
less error.log
|
// 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.idea.maven.importing;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.util.io.FileUtil;
import org.jetbrains.idea.maven.dom.MavenDomT... |
var common = require('../common'),
assert = require('assert'),
Stream = require('stream'),
repl = require('repl'),
terminalExit = 0,
regularExit = 0;
// create a dummy stream that does nothing
var stream = new Stream();
stream.write = stream.pause = stream.resume = function(){};
stream.readable = s... |
var vows = require('./'),
assert = require('assert');
vows.describe('basic-formulation').addBatch({
"An invocation with no query string": {
topic: function() {
request.get("http://localhost:8080/something", this.callback);
},
"does not fail": function(error, response, body)... |
<?php
namespace App\TranslationalResearchBundle\Util;
use App\TranslationalResearchBundle\Entity\Product;
//use Box\Spout\Reader\Common\Creator\ReaderEntityFactory;
use Doctrine\ORM\EntityManagerInterface;
//use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
//use PhpOffice\PhpSpreadsheet\Spreadsheet;
use Sym... |
import "selection";
d3_selectionPrototype.text = function(value) {
return arguments.length
? this.each(typeof value === "function"
? function() { var v = value.apply(this, arguments); this.textContent = v == null ? "" : v; } : value == null
? function() { this.textContent = ""; }
: function()... |
from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
class TestRegexExtract(object):
config = """
tasks:
test_1:
mock:
- {title: 'The.Event.New.York'}
regex_extract:
... |
var xml2js = require('xml2js');
var parser = new xml2js.Parser({
mergeAttrs: true
});
parser.parseString('<outline xmlUrl="http://www.futurity.org/feed/"/>', function (err, result) {
console.dir(result);
});
|
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
package parallel
import (
"context"
"fmt"
"testing"
fakeeventingclient "knative.dev/eventing/pkg/client/injection/client/fake"
fakedynamicclient "knative.dev/pkg/injection/clients/dynamicclient/fake"
"knative.dev/pkg/tracker"
"knative.dev/eventing/pkg/client/injection/reconciler/flows/v1/parallel"
corev1 ... |
#include "SkNetPipeController.h"
SkNetPipeController::SkNetPipeController(SkCanvas* target) : fReader(target) {
fBlock = NULL;
fBlockSize = fBytesWritten = 0;
fPlayback = true;
fStatus = SkGPipeReader::kDone_Status;
fTotalWritten = 0;
fAtomsWritten = 0;
}
SkNetPipeController::~SkNetPipeControl... |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid
android:color="@color/debug_purple" />
</shape> |
#include <aws/iotthingsgraph/model/SystemInstanceSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoTThingsGraph
{
namespace Model
{
SystemInstanceSummary::SystemInstanceSummary() :
m_idHasBe... |
addReply = {
moveForm : function(replyId, parentId, respondId, postId) {
var t = this, div, reply = t.I(replyId), respond = t.I(respondId), cancel = t.I('bbp-cancel-reply-to-link'), parent = t.I('bbp_reply_to'), post = t.I('bbp_topic_id');
if ( ! reply || ! respond || ! cancel || ! parent )
return;
t.respon... |
/*global exports, module, require, define, setTimeout*/
(function () {
'use strict';
var root, sNotDefined, oModules, oVars, _null_, bUnblockUI, _false_, sVersion, Hydra, bDebug, ErrorHandler, Module, Bus, oChannels, isNodeEnvironment, oObjProto;
/**
* Used to generate an unique key for instance ids t... |
.passwordbox-open {
background: url('images/passwordbox_open.png') no-repeat center center;
}
.passwordbox-close {
background: url('images/passwordbox_close.png') no-repeat center center;
}
|
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-ngList-directive-debug</title>
<script src="../../../angular.js"></script>
<script src="app.js"></script>
</head>
<body ng-app="listExample">
<form name="myForm" ng-controller="ExampleController">
List: <input... |
<?php
/**
* @category Zend
* @package Zend_Service
* @subpackage Simpy
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Simpy_Link
{
/**
* Private access type
... |
"""
Unit tests for the function "cube_manipulation.compare_attributes".
"""
import unittest
import iris
import numpy as np
from iris.tests import IrisTest
from improver.synthetic_data.set_up_test_cubes import set_up_variable_cube
from improver.utilities.cube_manipulation import compare_attributes
from improver.utili... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Linq;
using System.Linq.Expressions;
using Xunit;
namespace Tests.ExpressionCompiler.Ternary
{
public static unsafe class TernaryTests
... |
@protocol BeeUIFlowBoardDataSource
- (NSInteger)numberOfColumns;
- (NSInteger)numberOfViews;
- (UIView *)viewForIndex:(NSInteger)index scale:(CGFloat)scale;
- (CGSize)sizeForIndex:(NSInteger)index;
@end
#pragma mark -
@interface BeeUIFlowBoard : BeeUIBoard<UIScrollViewDelegate, BeeUIFlowBoardDataSource>
{
NSInteger ... |
import ctypes
from pyglet import com
lib = ctypes.oledll.dsound
DWORD = ctypes.c_uint32
LPDWORD = ctypes.POINTER(DWORD)
LONG = ctypes.c_long
LPLONG = ctypes.POINTER(LONG)
WORD = ctypes.c_uint16
HWND = DWORD
LPUNKNOWN = ctypes.c_void_p
D3DVALUE = ctypes.c_float
PD3DVALUE = ctypes.POINTER(D3DVALUE)
class D3DVECTOR(ct... |
"""
Replacement rules.
"""
from __future__ import print_function, division
class Transform(object):
"""
Immutable mapping that can be used as a generic transformation rule.
Parameters
----------
transform : callable
Computes the value corresponding to any key.
filter : callable, opti... |
<?php
namespace Zend\Session\Exception;
class BadMethodCallException extends \BadMethodCallException implements
ExceptionInterface
{}
|
**UEGO Custom Device** is a custom device that simulates a UEGO sensor output
### Source Public ###
This source is public because it may be of use. At this point it is not in its final stage, but it may be useful.
### LabVIEW Version ###
LV 2014
### Built Availability ###
No publicly built version is available.... |
package main
import (
"net/http"
"strings"
"github.com/docker/docker/integration-cli/checker"
"github.com/docker/docker/integration-cli/request"
"github.com/docker/docker/pkg/testutil"
"github.com/go-check/check"
)
func formatV123StartAPIURL(url string) string {
return "/v1.23" + url
}
func (s *DockerSuite) ... |
module Stupidedi
module Versions
module FunctionalGroups
module ThirtyTen
module SegmentDefs
s = Schema
e = ElementDefs
r = ElementReqs
W04 = s::SegmentDef.build(:W04, "Item Detail Total",
"To designate those line items that were shipped",
... |
from nanpy.serialmanager import serial_manager
from threading import Lock
mutex = Lock()
def _write(data, connection):
if connection:
connection.write('%s\0' % str(data))
else:
serial_manager.write('%s\0' % str(data))
def return_value(connection):
if connection:
return connectio... |
package org.wikipedia.savedpages;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.util.Log;
import android.widget.Toast;
import org.wikipedia.R;
import org.wikipedia.page.Section;
import java.util.List;
/**
* H... |
using System.Windows;
using System.Windows.Controls;
namespace derpirc.Helpers
{
public abstract class DataTemplateSelector : ContentControl
{
public DataTemplateSelector()
{
// Set the ContentControl to stretch, otherwise everything is centered
this.Horizonta... |
template <typename T> struct DefaultSingletonTraits;
namespace net {
// This class is responsible for managing the set of protocol factories and
// request interceptors that determine how an URLRequestJob gets created to
// handle an URLRequest.
//
// MULTI-THREADING NOTICE:
// URLRequest is designed to have all co... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Function template all_of_equal</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../index.h... |
package metrics
import (
"time"
"k8s.io/component-base/metrics"
"k8s.io/component-base/metrics/legacyregistry"
"k8s.io/utils/clock"
)
const (
namespace = "apiserver"
subsystem = "egress_dialer"
// ProtocolHTTPConnect means that the proxy protocol is http-connect.
ProtocolHTTPConnect = "http_connect"
// P... |
/**
* @fileoverview Definitions for node's child_process module. Depends on the events module.
* @see http://nodejs.org/api/child_process.html
* @see https://github.com/joyent/node/blob/master/lib/child_process.js
*/
var events = require('events');
var stream = require('stream');
/**
* @const
*/
var child_pro... |
// Copyright 2012 The Obvious Corporation.
/*
* This simply fetches the right version of phantom for the current platform.
*/
'use strict'
var requestProgress = require('request-progress')
var progress = require('progress')
var AdmZip = require('adm-zip')
var cp = require('child_process')
var fs = require('fs')
va... |
package org.apache.camel.processor;
import org.apache.camel.Exchange;
import org.apache.camel.processor.aggregate.AggregationStrategy;
public class BodyOutAggregatingStrategy implements AggregationStrategy {
public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
if (oldExchange != null)... |
using System;
using Audit.Core.ConfigurationApi;
using Audit.MySql.Providers;
using Audit.MySql.Configuration;
using Audit.NET.MySql;
using System.Collections.Generic;
namespace Audit.Core
{
public static class MySqlServerConfiguratorExtensions
{
/// <summary>
/// Store the events in a MySQL da... |
Raspberry Pi
================================================================================
Requirements:
Raspbian (other Linux distros may work as well).
================================================================================
Features
=====================================================================... |
@(account: Option[model.Account], members: List[model.GroupMember])(implicit context: app.Context)
@import context._
@import view.helpers._
@html.main(if(account.isEmpty) "New Group" else "Update Group"){
@admin.html.menu("users"){
<form method="POST" action="@if(account.isEmpty){@path/admin/users/_newgroup} else... |
const path = require('path');
const LIBRARY_NAME = 'mailjet';
const MAIN_DIR = path.join(__dirname, '../');
const OUTPUT_DIR = path.join(MAIN_DIR, './dist');
const EXCLUDED_DIRS = /(node_modules|test|examples)/;
const MODE = {
DEV: 'development',
PROD: 'production',
};
const TARGET_ENV = {
NODE: 'node',
WE... |
<div class="radio-group" ng-class="{'has-error': options.formField.$invalid}">
<label class="control-label">
{{options.label}}
{{options.required ? '*' : ''}}
</label>
<div class="radio"
ng-repeat="(key, option) in options.options">
<label>
<input type="radio"
formly-dynamic-name="opti... |
search_term=$1
expected_count=$2
matches=`curl -s "http://127.0.0.1:8983/solr/select/?q=${search_term}&version=2.2&start=0&rows=10&indent=on" | grep numFound | awk '{print $3}' | python -c "import re;import sys; print re.search(r'\d+', sys.stdin.read()).group(0)"`
if [[ "$matches" == "$expected_count" ]]; then
echo "... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>body</title>
<style type="text/css" media="screen">
body { margin: 1px; padding: 5px; position: re... |
<?php
namespace Tmdb\Tests\Factory;
use Tmdb\Model\Collection\Jobs;
class JobsFactoryTest extends TestCase
{
private $jobs;
public function setUp()
{
$factory = $this->getFactory();
$data = $this->loadByFile('jobs/list.json');
$this->jobs = $factory->createCollection($data);
... |
require 'set'
require 'pathname'
class Hbc::Artifact::UninstallBase < Hbc::Artifact::Base
# todo: 500 is also hardcoded in cask/pkg.rb, but much of
# that logic is probably in the wrong location
PATH_ARG_SLICE_SIZE = 500
# todo: There should be a way to specify a containing
# directory under w... |
function [lin_restr,nonlin_restr,tpl]=create_restrictions_and_markov_chains4(tpl)
% create_restrictions_and_markov_chains4 -- creates restrictions and
% markov chains for the SVAR model in which only the variance for the
% monetary policy equation are changing.
%
% ::
%
%
% [lin_restr,nonlin_restr,tpl]=create_restric... |
/*
* Interface Modifier
* @author Jeka
*/
package com.intellij.debugger.engine.evaluation.expression;
import com.intellij.debugger.engine.evaluation.EvaluateException;
import com.intellij.debugger.ui.tree.NodeDescriptor;
import com.intellij.openapi.project.Project;
import com.sun.jdi.ClassNotLoadedException;
impo... |
The major philosophies and design decisions behind Toolkit's CSS.
## Normalize Integration ##
Toolkit makes use of [normalize.css](http://necolas.github.io/normalize.css) as a means to standardize implementations across browsers.
The primary [CSS distribution file](../../setup/getting-started.md#distribution-files) ... |
require File.expand_path('../../../spec_helper', __FILE__)
ruby_version_is "1.8.7" do
describe "Bignum#even?" do
it "returns true if self is even and positive" do
(10000**10).even?.should be_true
end
it "returns true if self is even and negative" do
(-10000**10).even?.should be_true
end
... |
var test = require("tape")
var setTimeout = require("timers").setTimeout
var now = require("../index")
var seeded = require("../seed")
test("date", function (assert) {
var ts = now()
var ts2 = Date.now()
assert.equal(ts, ts2)
assert.end()
})
test("seeded", function (assert) {
var time = seeded(40... |
windowFunctions['Update Review'] = function (evt) {
var win = createWindow();
var offset = addBackButton(win);
var content = Ti.UI.createScrollView({
top: offset + u,
contentHeight: 'auto',
layout: 'vertical'
});
win.add(content);
var contentText = Ti.UI.createTextField(... |
#include "qtextformat.h"
#include "qtextformat_p.h"
#include <qvariant.h>
#include <qdatastream.h>
#include <qdebug.h>
#include <qmap.h>
#include <qhash.h>
QT_BEGIN_NAMESPACE
/*!
\class QTextLength
\reentrant
\brief The QTextLength class encapsulates the different types of length
used in a QTextDo... |
package org.apache.jackrabbit.oak.cache.impl;
import java.util.Map;
import java.util.Random;
import com.codahale.metrics.Counter;
import com.codahale.metrics.MetricRegistry;
import org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean;
import org.apache.jackrabbit.oak.cache.AbstractCacheStats;
import org.jetbrains.anno... |
/* 2.5.19 */
function parse_Cell(blob, length) {
var rw = blob.read_shift(2); // 0-indexed
var col = blob.read_shift(2);
var ixfe = blob.read_shift(2);
return {r:rw, c:col, ixfe:ixfe};
}
/* 2.5.134 */
function parse_frtHeader(blob) {
var rt = blob.read_shift(2);
var flags = blob.read_shift(2); // TODO: parse t... |
/**
* Swaggy Jenkins
* Jenkins API clients generated from Swagger / Open API specification
*
* The version of the OpenAPI document: 1.5.1-pre.0
* Contact: blah@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not ed... |
if [[ ! -f ".vagrantlocks/puppetmaster" ]]; then
echo "Configuring puppetmaster with alternate names"
#sed -i '14i\ \ \ \ dns_alt_names = puppet,puppet.idealphp.com' /etc/puppet/puppet.conf
rm -rf /etc/puppet
ln -s /vagrant/puppet /etc/puppet
puppet master
touch .vagrantlocks/puppetmaster
echo 'Started pup... |
package org.kuali.rice.ksb.api.bus;
import java.net.URL;
import javax.xml.namespace.QName;
import org.kuali.rice.core.api.config.ConfigurationException;
import org.kuali.rice.core.api.security.credentials.CredentialsType;
import org.kuali.rice.ksb.api.registry.ServiceRegistry;
/**
* Defines the common parameter... |
// FPDFEMB.H - Header file for FPDFEMB SDK
// Copyright (c) 2007-2008 Foxit Software Company, All Right Reserved.
// Date: 2008-04-07
// Embedded platforms have many different aspects from desktop platforms,
// among them, the followings are most important for PDF processing:
//
// 1. Embedded platforms have ... |
namespace arch_util {
// Architecture of the currently running binary. Depends on the combination of
// app binary archs and device's arch. e.g. for arm7/arm64 fat binary running
// on 64-bit processor the value will be "arm64", but for the same fat binary
// running on 32-bit processor the value will be "arm".
extern... |
package org.auraframework.http;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.Se... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var loaderFlag = "WEBPACK_CORE_LOADER_EXECUTION";
function ModuleBuildError(module, err) {
Error.call(this);
Error.captureStackTrace(this, ModuleBuildError);
this.name = "ModuleBuildError";
this.message = "Module bui... |
/*! UIkit 2.15.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function($, UI) {
"use strict";
var $tooltip, // tooltip container
tooltipdelay, checkdelay;
UI.component('tooltip', {
defaults: {
"offset": 5,
"pos": "top",
"animation"... |
import java.lang.annotation.Retention;
@Retention(<caret>)
@interface Annotation {
} |
/***************************************************************************//**
* @file em_system.h
* @brief System API
* @version 5.1.2
*******************************************************************************
* @section License
* <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b>
***... |
package jose
import (
"crypto/ecdsa"
"crypto/rsa"
"encoding/base64"
"errors"
"fmt"
)
// NonceSource represents a source of random nonces to go into JWS objects
type NonceSource interface {
Nonce() (string, error)
}
// Signer represents a signer which takes a payload and produces a signed JWS object.
type Sig... |
require 'puppet/resource_api'
require 'puppet_x/nexus3/config'
Puppet::ResourceApi.register_type(
name: 'nexus3_http_settings',
docs: <<-EOS,
@summary a nexus3_http_settings type
@example
nexus3_http_settings { 'global':
connection_user_agent => 'nexus_useragent',
connection_timeout => 90,
conne... |
<?php
namespace Symfony\Component\HttpKernel\Profiler;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface;
use Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface;
use Psr\Log\LoggerInterface;
... |
var wows = require('vows');
var DOMParser = require('xmldom').DOMParser;
wows.describe('errorHandle').addBatch({
'simple': function() {
var parser = new DOMParser();
var doc = parser.parseFromString('<html><body title="1<2"></body></html>', 'text/html');
console.log(doc+'');
}
}).run(); |
package org.apache.hadoop.hive.ql.udf.esri;
import com.esri.core.geometry.Point;
import com.esri.core.geometry.ogc.OGCGeometry;
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDFArgumentException;
import org.apache.hadoop.hive.serde2.io.DoubleWritable;
import org.apache.hadoo... |
/* global Symbol */
// Defining this global in .eslintrc.json would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
define( [
"./var/arr",
"./var/document",
"./var/getProto",
"./var/slice",
"./var/concat",
"./var/push",
"./var/indexOf",
".... |
```js
// Random planet from our Solar System
Faker.Space.planet() //=> "Venus"
// Random moon from our Solar System
Faker.Space.moon() //=> "Europa"
// Random galaxy
Faker.Space.galaxy() //=> "Andromeda"
// Random nebula name
Faker.Space.nebula() //=> "Triffid Nebula"
// Random star cluster
Faker.Space.starCluster(... |
/**
* Service implementations for v2 of the Gaffer REST API.
*/
package uk.gov.gchq.gaffer.rest.service.v2;
|
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
There's a backward compatible version equivalent in 'values/themes.xml'.
That needs to be updated if this one is updated.
-->
<style name="CustomActionBarTheme.Transparent">
<item name="android:windowActionBarOverlay">true</item>
... |
#include "config.h"
#include "StringRecursionChecker.h"
#include "Error.h"
#include "ExceptionHelpers.h"
namespace JSC {
EncodedJSValue StringRecursionChecker::throwStackOverflowError()
{
return throwVMError(m_exec, createStackOverflowError(m_exec));
}
EncodedJSValue StringRecursionChecker::emptyString()
{
... |
class Bar {
static class Inner {}
}
public class Foooo extends Bar.<caret>
|
var implementation = require('./implementation');
module.exports = Function.prototype.bind || implementation;
|
package ghcache
import (
"crypto/sha256"
"fmt"
"net/http"
"sync"
"github.com/sirupsen/logrus"
)
type roundTripperCreator func(partitionKey string) http.RoundTripper
// partitioningRoundTripper is a http.RoundTripper
var _ http.RoundTripper = &partitioningRoundTripper{}
func newPartitioningRoundTripper(rtc r... |