text stringlengths 3 1.05M |
|---|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace QuadUnitTest
{
//Your UnitTests are good, but they didn't catch the NaN mistake. That is because you don't have coverage for all of your logic.
//You have a logic in the Main that you didn't cover in the UnitTests. If you tested also that code, you... |
package org.apache.ignite.cache;
import org.apache.ignite.*;
import org.jetbrains.annotations.*;
/**
* Enumeration of all supported cache peek modes. Peek modes can be passed
* into {@link IgniteCache#localPeek(Object, CachePeekMode...)},
* {@link IgniteCache#localEntries(CachePeekMode...)},
* {@link IgniteCach... |
<?php
namespace Zend\Db\Sql\Predicate;
use Zend\Db\Sql\Exception;
use Zend\Db\Sql\Select;
class In implements PredicateInterface
{
protected $identifier;
protected $valueSet;
protected $selectSpecification = '%s IN %s';
protected $valueSpecSpecification = '%%s IN (%s)';
/**
* Constructor
... |
/* jshint unused:vars, undef:true, browser:true, jquery:true */
/* global _, CCM_TOOLS_PATH, CCM_DISPATCHER_FILENAME, ConcreteMenu, ConcreteMenuManager */
;(function(global, $) {
'use strict';
function ConcreteFileMenu($element, options) {
var my = this;
options = options || {};
options = $.extend({
... |
import * as three from 'three'
export class AxesTool {
scene: three.Scene
camera: three.PerspectiveCamera
depth: number = 300
colorScheme = {
center: 0xf3792d,
south: 0xf3792d,
east: 0xf3792d,
up: 0xf3792d
}
constructor() {
this.scene = new three.Scene()
... |
package com.android.globaltime;
import javax.microedition.khronos.opengles.GL10;
public class Sphere extends Shape {
public Sphere(boolean emitTextureCoordinates,
boolean emitNormals, boolean emitColors) {
super(GL10.GL_TRIANGLES, GL10.GL_UNSIGNED_SHORT,
emitTextureCoordinates, em... |
#include "CtrlrModulator/CtrlrModulator.h"
#include "CtrlrWindowManagers/CtrlrChildWindowContent.h"
class CtrlrModulatorTreeViewItem;
class CtrlrPanelModulatorListTree;
class CtrlrPanelModulatorListTree;
class CtrlrTreeViewItemListener
{
public:
virtual void itemChanged (ValueTree &itemTreeThatChanged)... |
//
// GTLBooksBookshelf.h
//
// ----------------------------------------------------------------------------
// NOTE: This file is generated from Google APIs Discovery Service.
// Service:
// Books API (books/v1)
// Description:
// Lets you search for books and manage your Google Books library.
// Documentation... |
class GUI
{
public:
static void showHint(const std::string& desc);
public:
static std::unordered_map<GLuint, GUITexture> textures;
};
|
package ru.spbstu.icc.kspt.kuznetsov.fpf4mir.core.facts.artifact.impl;
import ru.spbstu.icc.kspt.kuznetsov.fpf4mir.core.facts.activity.Activity;
import ru.spbstu.icc.kspt.kuznetsov.fpf4mir.core.facts.artifact.Artifact;
import ru.spbstu.icc.kspt.kuznetsov.fpf4mir.core.facts.artifact.ExecutableFileArtifact;
publi... |
/* crypto/asn1/a_bitstr.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and n... |
package compressionFilters;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* Very Simple test servlet to test compression filter
* @author Amy Roh
* @version $Revision: 1.1.1.1 $, $Date: 2002/08/27 13:16:54 $
*/
pub... |
"""
Parameter handling we need in gammacat.
TODO: merge this functionality into `gammapy.utils.modeling`.
"""
import numpy as np
import astropy.units as u
__all__ = [
'Parameter',
'Parameters',
]
class Parameter:
"""Parameter from input file.
TODO: use `gammapy.utils.modeling.Parameter` instead.
... |
package io.druid.segment.realtime.firehose;
/**
* Objects that can be registered with a {@link ServiceAnnouncingChatHandlerProvider} and provide http endpoints for indexing-related
* objects. This interface is empty because it only exists to signal intent. The actual http endpoints are provided
* through JAX-RS a... |
require 'puppetlabs_spec_helper/module_spec_helper'
require 'shared_examples'
require 'webmock/rspec'
require 'json'
fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
RSpec.configure do |c|
c.alias_it_should_behave_like_to :it_configures, 'configures'
c.alias_it_should_behave_like_to :it_... |
/**
* SeqInterval_strand_type0.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:34:40 IST)
*/
package gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene;
/**
* SeqInterval_strand_type0 b... |
<?php
namespace Drupal\Tests\system\Functional\Form;
use Drupal\Tests\BrowserTestBase;
/**
* Tests access control for form elements.
*
* @group Form
*/
class ElementsAccessTest extends BrowserTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = ['form_test'];
/**
... |
#include "fsl_lmem_cache.h"
/*******************************************************************************
* Definitions
******************************************************************************/
/* Component ID definition, used by tools. */
#ifndef FSL_COMPONENT_ID
#define FSL_COMPONENT_ID "platform.driver... |
@implementation UIView (ADKGetUIViewController)
- (UIViewController *)ADKParentViewController
{
id nextResponder = [self nextResponder];
if ([nextResponder isKindOfClass:[UIViewController class]]) {
return nextResponder;
}
else if ([nextResponder isKindOfClass:[UIView class]]) {
return ... |
import * as React from "react";
import { CarbonIconProps } from "../../";
declare const InventoryManagement24: React.ForwardRefExoticComponent<
CarbonIconProps & React.RefAttributes<SVGSVGElement>
>;
export default InventoryManagement24;
|
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/idangerous.swiper.css">
</head>
<body>
<style>
body {
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
... |
.fuelux {
/* Allow for input prepend/append in search forms */
/* White icons with optional class, or on hover/focus/active states of certain elements */
/* move down carets for tabs */
}
.fuelux .clearfix {
*zoom: 1;
}
.fuelux .clearfix:before,
.fuelux .clearfix:after {
display: table;
line-height: ... |
<link rel="import" href="app://bower_components/iron-input/iron-input.html">
<dom-module id="editor-unit-input">
<link rel="import" type="css" href="unit-input.css">
<template>
<div class="border flex-1 layout horizontal center" >
<input is="iron-input" id="input"
type="text"
readonly$="... |
package org.apache.commons.betwixt;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.*;
/** <p><code>Cust... |
package org.kaazing.gateway.service.http.proxy;
import static org.kaazing.test.util.ITUtil.createRuleChain;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;
import org.kaazing.gateway.server.test.GatewayRule;
import org.kaazing.gateway.server.test.config.GatewayConfiguration;
import org... |
#ifndef MONGOC_INDEX_H
#define MONGOC_INDEX_H
#if !defined(MONGOC_INSIDE) && !defined(MONGOC_COMPILATION)
#error "Only <mongoc.h> can be included directly."
#endif
#include <bson.h>
#include "mongoc-macros.h"
BSON_BEGIN_DECLS
typedef struct {
uint8_t twod_sphere_version;
uint8_t twod_bits_precision;
do... |
local skynet = require "skynet"
-- read group_local for id 10000
local id = 10000
local harbor_ctrl = {}
local multicast = {}
local command = {}
function command.MASTER(address, harbor)
harbor_ctrl[harbor] = address
end
local function create_group_in(harbor, id)
local local_ctrl = assert(harbor_ctrl[harbor])
loca... |
<?php
namespace ZendTest\Http\Header;
use Zend\Http\Header\KeepAlive;
class KeepAliveTest extends \PHPUnit_Framework_TestCase
{
public function testKeepAliveFromStringCreatesValidKeepAliveHeader()
{
$keepAliveHeader = KeepAlive::fromString('Keep-Alive: xxx');
$this->assertInstanceOf('Zend\H... |
package org.dcm4chex.archive.xdsi;
import java.util.ArrayList;
import java.util.List;
import javax.activation.DataHandler;
/**
* @author franz.willer@gwi-ag.com
* @version $Revision: 3249 $ $Date: 2007-04-06 22:39:17 +0800 (周五, 06 4月 2007) $
* @since Feb 15, 2006
*/
public abstract class XDSIDocument {
priv... |
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Runtime.Serialization;
namespace CefSharp.Internals
{
[DataContract]
public class JavascriptProperty
{
... |
(This readme will be changed soon, at the moment it's used as the index page for documentation: http://incendo.ws/projects/InfoStats2/)
InfoStats 2 is a far better implementation of the original InfoStats. It allows both HTML/JS and Objective-C developers to access various information, and to call system functions wit... |
/*
* In the C mterp stubs, "goto" is a function call followed immediately
* by a return.
*/
#define GOTO_TARGET_DECL(_target, ...) \
extern "C" void dvmMterp_##_target(Thread* self, ## __VA_ARGS__);
/* (void)xxx to quiet unused variable compiler warnings. */
#define GOTO_TA... |
class DashboardController {
constructor ($scope) {
'ngInject'
$scope.labels = ['January', 'February', 'March', 'April', 'May', 'June', 'July']
$scope.series = ['Series A', 'Series B']
$scope.data = [
[65, 59, 80, 81, 56, 55, 40],
[28, 48, 40, 19, 86, 27, 90]
]
$scope.onClick = fu... |
package accessanalyzer
|
module Main where
import System.Environment (getArgs)
foo :: Int -> Int
foo n = sum [ length [i..n] | i <- [1..n] ]
main = do { [arg] <- getArgs
; print (foo (read arg)) }
|
package lombok.eclipse;
import static lombok.eclipse.handlers.EclipseHandlerUtil.*;
import java.io.PrintStream;
import java.lang.reflect.Modifier;
import org.eclipse.jdt.internal.compiler.ast.ASTNode;
import org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration;
import org.eclipse.jdt.internal.compiler.as... |
<?php
namespace Symfony\Component\DependencyInjection\Tests\Compiler;
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* This class tests the integration of the different compiler passes
*/
class ... |
package spring.core.beans;
import spring.core.interfaces.Person;
public class Employee implements Person {
String name;
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
|
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Nimbus.DependencyResolution;
using Nimbus.Extensions;
using Nimbus.MessageContracts.Exceptions;
namespace Nimbus.Infrastructure.DependencyResolution
{
public class DependencyResolverScope : TrackingScope,... |
var
_ = require('underscore'),
Promise = require('bluebird'),
express = require('express'),
router = express.Router(),
Connector = require('../../../lib/ioc').create('connector'),
ValidationError = require('checkit').Error,
models = require('../../models/models'),
eventSourceTemplateDao = require('../../persis... |
require "thesslstore/version"
require "thesslstore/client"
module Thesslstore
CONFIG_PATH = File.expand_path("~/.thesslstore")
def self.config
@config ||= load_config
end
def self.load_config
File.exists?(Thesslstore::CONFIG_PATH) ? YAML.load_file(Thesslstore::CONFIG_PATH) : {}
end
end
|
package org.jetbrains.plugins.groovy.dsl;
import com.intellij.openapi.util.Condition;
import com.intellij.openapi.util.Key;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.Contract;
public class GdslUtil {
public static final Key<Groov... |
/* @flow */
"use strict";
var _interopRequireDefault = require("babel-runtime/helpers/interop-require-default")["default"];
var _interopRequireWildcard = require("babel-runtime/helpers/interop-require-wildcard")["default"];
exports.__esModule = true;
exports.is = is;
exports.pullFlag = pullFlag;
var _lodashArrayPu... |
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Message'
db.create_table('says_message', (
('id', self.gf('django.db.models.fields.AutoField')(primary_k... |
<?php
namespace Symfony\Component\Routing;
/**
* A Route describes a route and its parameters.
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Tobias Schultze <http://tobion.de>
*/
class Route implements \Serializable
{
/**
* @var string
*/
private $path = '/';
/**
* @va... |
CHANGELOG for 2.1.x
===================
This changelog references the relevant changes (bug and security fixes) done
in 2.1 minor versions.
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
To get the diff between two versions, go to https://github... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef FREICOIN_UTIL_H
#define FREICOIN_UTIL_H
#include "uint256.h"
#ifndef WIN3... |
/**
* A token representing the a reference to a static type.
*
* This token is unique for a filePath and name and can be used as a hash table key.
*/
export class StaticSymbol {
constructor(public filePath: string, public name: string, public members: string[]) {}
assertNoMembers() {
if (this.members.len... |
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('templates/page', 'header'); ?>
<?php get_template_part('templates/content', 'page'); ?>
<?php endwhile; ?>
|
package github
import (
"fmt"
"net/http"
"reflect"
"testing"
)
func TestSearchService_Repositories(t *testing.T) {
setup()
defer teardown()
mux.HandleFunc("/search/repositories", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "GET")
testFormValues(t, r, values{
"q": "blah",
... |
MathJax.Localization.addTranslation("oc","TeX",{version:"2.4.0",isLoaded:true,strings:{}});MathJax.Ajax.loadComplete("[MathJax]/localization/oc/TeX.js");
|
<?php
namespace Forge\Controller;
use Forge\LogReader\Controller as LogReader_Controller
class LogReaderAPI extends LogReader_Controller
{
// API response
protected $data;
public function before()
{
parent::before();
$this->data = array(
'errors' => array(),
);
}
// Create test message
public... |
package org.guvnor.structure.organizationalunit;
import org.jboss.errai.common.client.api.annotations.Portable;
@Portable
public class UpdatedOrganizationalUnitEvent extends OrganizationalUnitEventBase {
public UpdatedOrganizationalUnitEvent() {
}
public UpdatedOrganizationalUnitEvent(OrganizationalUn... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.jayktec.dialoga.dialogacore.entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.... |
declare module "mess" {
function shuffle<T>(array: T[]): T[];
export = shuffle;
}
|
local common = require('test_scripts/Capabilities/PersistingHMICapabilities/common')
--[[ Local Variables ]]
local appSessionId = 1
--[[ Scenario ]]
common.Title("Preconditions")
common.Step("Clean environment", common.preconditions)
common.Step("Update HMI capabilities", common.updateHMICapabilitiesFile)
common.Tit... |
//********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef TYPESFACTORYIMPL_HPP
#define TYPESFACTORYIMPL_HPP
// namespace macro header include
#include "ty... |
<div class="ui-course ui-classroom top-header ui-scroller" style="padding-bottom: 58px;">
<div class="course-head-body">
<div class="course-head">
<img class="full-image" img-src="{{ classRoom.largePicture }}" img-error="classroom" />
<p class="mask">
<a class="rating... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
Evil fake socket credentials thief
If `/tmp` is shared, it's possible to create a world-writable socket there (eg `/tmp/mysql.sock`). Assume this is a malicious daemon which does three things:
1. Identify sockets which may be tried by local apps (`/var/lib/mysql.sock`, `/var/run/postgresql/.s.PGSQL.5432`)
2. Create l... |
pimcore.registerNS("pimcore.object.tags.fieldcollections");
pimcore.object.tags.fieldcollections = Class.create(pimcore.object.tags.abstract, {
type: "fieldcollections",
dirty: false,
initialize: function (data, fieldConfig) {
this.dirty = false;
this.data = [];
this... |
<?php
namespace Symfony\Component\Validator\Tests\Fixtures;
use Symfony\Component\Validator\Constraint;
/** @Annotation */
class ConstraintWithValueAsDefault extends Constraint
{
public $property;
public $value;
public function getDefaultOption()
{
return 'value';
}
public functio... |
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2015, Abhishek Dabholkar
~ All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
~
~ 1. Redistributions of source code must retain the ... |
package com.coolweather.android.db;
import org.litepal.crud.DataSupport;
/**
* Created by Administrator on 2017/9/24.
*/
public class City extends DataSupport{
private int id;
private String cityName;
private int cityCode;
private int provinceId;
public int getId() {
return id;
}
... |
package com.android.tests.flavorlib.app;
import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.MediumTest;
import android.widget.TextView;
/**
* An example of an {@link ActivityInstrumentationTestCase2} of a specific activity {@link Focus2}.
* By virtue of extending {@l... |
package atomic
import (
"encoding/json"
"strconv"
"sync/atomic"
)
// Uint32 is an atomic wrapper around uint32.
type Uint32 struct {
_ nocmp // disallow non-atomic comparison
v uint32
}
// NewUint32 creates a new Uint32.
func NewUint32(i uint32) *Uint32 {
return &Uint32{v: i}
}
// Load atomically loads the w... |
(function () {
L.Control.FullScreen = L.Control.extend({
options: {
position: 'topleft',
title: 'Full Screen',
titleCancel: 'Exit Full Screen',
forceSeparateButton: false,
forcePseudoFullscreen: false,
fullscreenElement: false
},
onAdd: function (map) {
var className = 'leaflet-control-zoom-fullscre... |
int __futimesat(int, const char *, const struct timeval [2]);
int utimes(const char *path, const struct timeval times[2])
{
return __futimesat(AT_FDCWD, path, times);
}
|
/*! rangeslider.js - v1.2.2 | (c) 2015 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
(function(factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
}
else if (ty... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace umbraco.interfaces {
public interface IPackageAction {
bool Execute(string packageName, XmlNode xmlData);
string Alias();
bool Undo(string packageName, XmlNode xmlData);
XmlNode ... |
Based off the scene in zootopia
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<script src="script-tests/timeout-zero.js"></script>
</body>
</html>
|
(function() {
"use strict";
function $$utils$$objectOrFunction(x) {
return typeof x === 'function' || (typeof x === 'object' && x !== null);
}
function $$utils$$isFunction(x) {
return typeof x === 'function';
}
function $$utils$$isMaybeThenable(x) {
return typeof x === 'ob... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-master-2b98560
*/md-backdrop{background-color:'{{background-900-0.0}}'}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:'{{background-900-1.0}}'} |
using base::TimeDelta;
namespace base {
class TimeDelta;
}
namespace tracked_objects {
namespace {
// Flag to compile out almost all of the task tracking code.
const bool kTrackAllTaskObjects = true;
// TODO(jar): Evaluate the perf impact of enabling this. If the perf impact is
// negligible, enable by default.
//... |
var UniBox = function () {
//// common vars
// index of selected entry
var selectedEntryIndex = -1;
// the search box
var searchBox;
// the search box's parent
var searchBoxParent;
// the suggest box
var suggestBox;
// the URL where to get the search suggests
var suggest... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/tt_send_voice_btn_bg_normal" android:state_pressed="false"/>
<item android:drawable="@drawable/tt_send_voice_btn_btn_pressed" android:state_pressed="true"/>
</selector... |
@interface AWSMobileAnalyticsClientContext : AWSClientContext
@property (nonatomic, strong) NSString *clientId;
- (NSDictionary *)dictionaryRepresentation;
@end
|
'use strict';
// Karma configuration
// Generated on Sat Oct 05 2013 22:00:14 GMT+0700 (ICT)
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '../../',
// frameworks to use
frameworks: ['jasmine'],
... |
<html>
<head>
<style>
.editing {
border: 2px solid red;
padding: 12px;
font-size: 24px;
}
</style>
<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
<script>
function editingTest() {
for (i = 0; i < 159; i++) {
moveSelectionForwardByCharacterCommand();
... |
// +build !ignore_autogenerated
// Code generated by deepcopy-gen. DO NOT EDIT.
package v1alpha1
import (
runtime "k8s.io/apimachinery/pkg/runtime"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AttachDetachControllerConfiguration) D... |
namespace bp = boost::python;
struct ConstVectorIterator_less__CEGUI_scope_NamedDefinitionCollator_less__CEGUI_scope_String_comma__CEGUI_scope_PropertyDefinitionBase_ptr___greater___greater__wrapper : CEGUI::ConstVectorIterator< CEGUI::NamedDefinitionCollator< CEGUI::String, CEGUI::PropertyDefinitionBase* > >, bp::wra... |
class C {
public static p1;
static public p2;
private static p3;
static private p4;
}
//// [multipleClassPropertyModifiers.js]
var C = (function () {
function C() {
}
return C;
}());
|
package unix
import (
"syscall"
"unsafe"
)
var _ syscall.Errno
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(oldpath)
if err != nil {
return
}
var _... |
__TIB_DEFINITION_java_lang_Byte __TIB_java_lang_Byte = {
0, // classInitializationBegan
0, // classInitialized
-1, // initializerThreadId
__INIT_java_lang_Byte, // classInitializer
"java.lang.Byte", // className
"java.lang", // package
JAVA_NULL, // enclosingClassName
JAVA_NULL, // enclo... |
<?php defined('SYSPATH') or die('No direct script access.');
class Kohana_Database_PDO extends Database {
// PDO uses no quoting for identifiers
protected $_identifier = '';
protected function __construct($name, array $config)
{
parent::__construct($name, $config);
if (isset($this->_config['identifier']))
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Autocomplete - Remote JSONP datasource</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.7.2.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="..... |
package graphtest
import (
"bytes"
"fmt"
"io/ioutil"
"math/rand"
"os"
"path"
"sort"
"github.com/containers/storage/drivers"
"github.com/containers/storage/pkg/archive"
"github.com/containers/storage/pkg/stringid"
)
func randomContent(size int, seed int64) []byte {
s := rand.NewSource(seed)
content := mak... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const ImportContextDependency = require("./ImportContextDependency");
const ImportDependenciesBlock = require("./ImportDependenciesBlock");
const ContextDependencyHelpers = require("./ContextDepend... |
"""Helper module to get system related information."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from collections import namedtuple
import io
import multiprocessing
import os
import platform
import socket
impo... |
/**
* Type Length Value encoding/decoding, used by HAP as a wire format.
* https://en.wikipedia.org/wiki/Type-length-value
*/
module.exports = {
encode: encode,
decode: decode
}
function encode(type, data /*, type, data, type, data... */) {
var encodedTLVBuffer = Buffer(0);
// coerce data to... |
#ifndef _INTLTESTDATETIMEPATTERNGENERATORAPI
#define _INTLTESTDATETIMEPATTERNGENERATORAPI
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "intltest.h"
/**
* Test basic functionality of various API functions
**/
class IntlTestDateTimePatternGeneratorAPI : public IntlTest {
void runIndexedTest... |
import { SchedulerLike, SchedulerAction } from '../types';
import { Observable } from '../Observable';
import { AsyncSubject } from '../AsyncSubject';
import { Subscriber } from '../Subscriber';
import { map } from '../operators/map';
import { isArray } from '../util/isArray';
import { isScheduler } from '../util/isSch... |
/** Notice of modification as required by the LGPL
* This file was modified by Gemstone Systems Inc. on
* $Date$
**/
// $Id: MessageProtocolEXAMPLE.java,v 1.2 2004/03/30 06:47:21 belaban Exp $
package com.gemstone.org.jgroups.protocols;
import com.gemstone.org.jgroups.Event;
import com.gemstone.org.jgroups.M... |
require 'yaml'
require 'json'
Puppet::Parser::Functions::newfunction(:debug__dump_to_file, :doc => <<-EOS
debug output to file
EOS
) do |argv|
File.open(argv[0], 'w'){ |file| file.write argv[1].to_yaml() }
end
# vim: set ts=2 sw=2 et : |
#ifndef TENSORFLOW_COMPILER_TF2TENSORRT_UTILS_TRT_EXECUTION_CONTEXT_H_
#define TENSORFLOW_COMPILER_TF2TENSORRT_UTILS_TRT_EXECUTION_CONTEXT_H_
#if GOOGLE_CUDA && GOOGLE_TENSORRT
#include "third_party/tensorrt/NvInfer.h"
namespace tensorflow {
namespace tensorrt {
// A wrapper for the TensorRT execution context whic... |
<?php
require '../vendor/autoload.php';
use Weaver\CompositeWeaveInfo;
use Weaver\Weaver;
class Element1 {
function foo() {
return "Element 1";
}
}
class Element2 {
function foo() {
return "Element 2";
}
public function bar() {
return 'bar';
}
}
class Composit... |
require 'spec_helper'
describe "Public Project Access", feature: true do
include AccessMatchers
let(:project) { create(:project) }
let(:master) { create(:user) }
let(:guest) { create(:user) }
let(:reporter) { create(:user) }
before do
# public project
project.visibility_level = Gitlab::Visibili... |
#ifndef RTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
#define RTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
#include BOSS_WEBRTC_U_rtc_base__ignore_wundef_h //original-code:"rtc_base/ignore_wundef.h"
RTC_PUSH_IGNORING_WUNDEF()
#include "rtc_tools/event_log_visualizer/chart.pb.h"
RTC_POP_IGNORING_WUNDEF()
#include... |