text stringlengths 2 99.9k | meta dict |
|---|---|
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2010 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a cop... | {
"pile_set_name": "Github"
} |
var MapModule = require("./map_module");
var Themes = require("../public/themes");
var ThemesModule = function(emscriptenApi) {
var _emscriptenApi = emscriptenApi;
var _ready = false;
var _season = "Summer";
var _time = "Day";
var _weather = "Default";
var _shouldChangeTheme = false;
var... | {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | {
"pile_set_name": "Github"
} |
## Installing MockServer
### Prerequisites
- Kubernetes (i.e. [minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/) or [Docker for Desktop](https://www.docker.com/products/docker-desktop))
- [Helm](https://docs.helm.sh/using_helm/#quickstart-guide)
### Helm Install
To run MockServer in Kubernetes th... | {
"pile_set_name": "Github"
} |
>>> def compare(a, b):
... """Comparison that ignores the first letter"""
... return cmp(a[1:], b[1:])
>>> names = ['Adam', 'Donald', 'John']
>>> names.sort(cmp=compare)
>>> names
['Adam', 'John', 'Donald']
| {
"pile_set_name": "Github"
} |
{
"result": {
"queries": [
[
{
"index": 0,
"terms": {
"type": "ref",
"value": [
{
"type": "var",
"va... | {
"pile_set_name": "Github"
} |
steps:
- script: ../scripts/scan-build.sh
displayName: 'Scan build'
workingDirectory: build | {
"pile_set_name": "Github"
} |
var baseGetTag = require('./_baseGetTag'),
isObjectLike = require('./isObjectLike');
/** `Object#toString` result references. */
var argsTag = '[object Arguments]';
/**
* The base implementation of `_.isArguments`.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `va... | {
"pile_set_name": "Github"
} |
// SPDX-License-Identifier: GPL-2.0
#include <iostream>
#include <memory>
static void print_str(std::string s)
{
std::cout << s << std::endl;
}
int main()
{
std::string s("Hello World!");
print_str(std::move(s));
std::cout << "|" << s << "|" << std::endl;
return 0;
}
| {
"pile_set_name": "Github"
} |
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objects = {
/* Begin PBXBuildFile section */
182B79E31FECDBAF005E0E81 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 182B79E21FECDBAF005E0E81 /* AppDelegate.m */; };
182B79E61FECDBAF005E0E81 /* ViewController.m in Sources ... | {
"pile_set_name": "Github"
} |
import * as url from 'url';
import * as aws from 'aws-sdk';
async function signRequestForUpload({ fileName, fileType, prefix, bucket }) {
const randomStringForPrefix =
Math.random()
.toString(36)
.substring(2, 12) +
Math.random()
.toString(36)
.substring(2, 12);
const key = `${pref... | {
"pile_set_name": "Github"
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using NHibernate.Engine;
using Remotion.Linq;
namespace NHibernate.Linq
{
/// <summary>
/// Interface to access the entity name of a NhQueryable instance.
/// </summary>
interface IEntityNameProvider
{
string Entit... | {
"pile_set_name": "Github"
} |
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<ProfileDropdown /> when in initial state matches snapshot 1`] = `
<div
className="container"
onClick={[Function]}
onKeyPress={[Function]}
role="button"
tabIndex="0"
>
<span
className="id"
>
kschiffer
</span>
<Icon
icon="arrow_drop_down"... | {
"pile_set_name": "Github"
} |
namespace Knapcode.TorSharp
{
public class TorSharpPrivoxySettings
{
internal const int DefaultPort = 18118;
public TorSharpPrivoxySettings()
{
Port = DefaultPort;
}
/// <summary>
/// The port that Privoxy listens to. This is the port of the HTTP pr... | {
"pile_set_name": "Github"
} |
China's exports climbed again in October as slow demand at home encouraged companies to ship abroad and the government expanded credit to exporters, newspapers and a government economist said Wednesday.
The upturn was expected to continue through the first half of 1997, said Wang Jian, a researcher with the cabinet's S... | {
"pile_set_name": "Github"
} |
package dyn
import (
"fmt"
"os"
"testing"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
"github.com/nesv/go-dynect/dynect"
)
func TestAccDynRecord_Basic(t *testing.T) {
var record dynect.Record
zone := os.Getenv("DYN_ZONE")
resource.Test(t, resource.TestCase{
... | {
"pile_set_name": "Github"
} |
.header-fixed {
background-color:#292c2f;
box-shadow:0 1px 1px #ccc;
padding: 20px 40px;
height: 80px;
color: #ffffff;
box-sizing: border-box;
top:-100px;
-webkit-transition:top 0.3s;
transition:top 0.3s;
}
.header-fixed .header-limiter {
max-width: 1200px;
text-align: center;
margin: 0 auto;
}
/* The he... | {
"pile_set_name": "Github"
} |
CREATE TABLE dest1(key INT, value STRING) STORED AS TEXTFILE;
ADD FILE ../../data/scripts/input20_script.py;
EXPLAIN
FROM (
FROM src
MAP src.key, src.key
USING 'cat'
DISTRIBUTE BY key
SORT BY key, value
) tmap
INSERT OVERWRITE TABLE dest1
REDUCE tmap.key, tmap.value
USING 'python input20_script.py'
AS key,... | {
"pile_set_name": "Github"
} |
/*
* linux/include/asm-h8300/traps.h
*
* Copyright (C) 2003 Yoshinori Sato <ysato@users.sourceforge.jp>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for more details.
*/
#ifndef _H8300_TRAPS_H
#define _... | {
"pile_set_name": "Github"
} |
/*************************************************************************
*
* REALM CONFIDENTIAL
* __________________
*
* [2011] - [2012] Realm Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Realm Incorporated and its suppliers,
* if any. The int... | {
"pile_set_name": "Github"
} |
<?php
/**
* @package pkg_projectfork
* @subpackage com_pfmilestones
*
* @author Tobias Kuhn (eaxs)
* @copyright Copyright (C) 2006-2013 Tobias Kuhn. All rights reserved.
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL, see LICENSE.txt
*/
defined('_JEXEC') or die();
jimport('joomla... | {
"pile_set_name": "Github"
} |
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "userBottomUnFol@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
} | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.hfad.bitsandpizzas.... | {
"pile_set_name": "Github"
} |
<!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 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>com.cloudera.oryx.app.speed.als Class Hierarchy (Oryx 2.8.0 API)</title... | {
"pile_set_name": "Github"
} |
<html lang="us">
<head>
<meta charset="utf-8">
<title>AWS Elemental MediaLive and MediaPackage Viewer</title>
<link href="https://vjs.zencdn.net/6.2.7/video-js.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.2.1.js" integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE=" cr... | {
"pile_set_name": "Github"
} |
(function(buster, wire, debugPlugin) {
'use strict';
var assert, refute, fail;
assert = buster.assert;
refute = buster.refute;
fail = buster.fail;
var log;
buster.testCase('wire/debug', {
setUp: function() {
// Silence debug logging
log = console.log;
console.log = function() {};
},
tearDown: function() {... | {
"pile_set_name": "Github"
} |
// Copyright 2013-2020 Dirk Lemstra <https://github.com/dlemstra/Magick.NET/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
//
// https://www.imagemagick.org/script/license.php
//
// Unless requ... | {
"pile_set_name": "Github"
} |
import pytest
from pandas import NaT, Period, PeriodIndex, date_range, period_range
import pandas.util.testing as tm
class TestPeriodRange(object):
@pytest.mark.parametrize('freq', ['D', 'W', 'M', 'Q', 'A'])
def test_construction_from_string(self, freq):
# non-empty
expected = date_range(sta... | {
"pile_set_name": "Github"
} |
import * as merge from 'webpack-merge'
import * as VueSSRClientPlugin from 'vue-server-renderer/client-plugin'
import BaseConfiguration from './base'
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
import {
Configuration,
DefinePlugin,
HotModuleReplacementPlugin,
DllReferencePlugin
} from 'webpac... | {
"pile_set_name": "Github"
} |
/*
* rotate.c
*
* Module for handling image rotation.
*
* Copyright 2004-2005, Per Jonsson (per@pjd.nu)
*
* This software is distributed under the GNU Public license
* Version 2. See also the file 'COPYING'.
*
* Image rotation is a feature of Motion that can be used when the
* camera is... | {
"pile_set_name": "Github"
} |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'basic_types.dart';
/// Position a child box within a container box, either above or below a target
/// point.
///
//... | {
"pile_set_name": "Github"
} |
package code;
/*
* 179. Largest Number
* 题意:给一个由数字组成的数组,返回排列组合成的最大数
* 难度:Medium
* 分类:Sort
* 思路:两个数字,i+j 与 j+i 比较,排序。
* 学会实现Comparator接口
* Tips:要先转换成string再实现Comparator接口,直接比较字符串,比较数字会报错。。。
*/
import java.util.Arrays;
import java.util.Comparator;
public class lc179 {
public String largestNumber(int[] n... | {
"pile_set_name": "Github"
} |
import React from 'react';
import Item from './Item';
const Navigation = ({ items, location, prefix, expandAll }) => {
return (
<ul>
{items.map((item, index) => (
<Item key={index} prefix={prefix} item={item} currentPage={location} expandAll={expandAll} />
))}
</ul>
);
};
export defaul... | {
"pile_set_name": "Github"
} |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, pro... | {
"pile_set_name": "Github"
} |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-14.js
* @description Array.prototype.reduceRight applied to the Array-like object that 'length' property doesn't exist
*/
function testcase() {
var obj = { 0: 11, 1: 12 };
var acces... | {
"pile_set_name": "Github"
} |
/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import "TGContactsController.h"
@interface TGCreateEncryptedChatController : TGContactsCon... | {
"pile_set_name": "Github"
} |
--[[
Generated by Scrooge
version: ?
rev: ?
built at: ?
--]]
-- Import this file with:
-- require 'com.twitter.scrooge.test.gold.thriftlua.CollectionId'
-- Note: This file depends on libthrift!
local CollectionId = {
ttype = 'struct',
name = 'CollectionId',
fields = { }
}
CollectionId.fields[... | {
"pile_set_name": "Github"
} |
{ :orientation => :vertical }
| {
"pile_set_name": "Github"
} |
/*
* arch/arm/mach-spear6xx/include/mach/spear.h
*
* SPEAr6xx Machine family specific definition
*
* Copyright (C) 2009 ST Microelectronics
* Rajeev Kumar<rajeev-dlh.kumar@st.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without a... | {
"pile_set_name": "Github"
} |
/*
* /proc/sys support
*/
#include <linux/sysctl.h>
#include <linux/proc_fs.h>
#include <linux/security.h>
#include "internal.h"
static struct dentry_operations proc_sys_dentry_operations;
static const struct file_operations proc_sys_file_operations;
static struct inode_operations proc_sys_inode_operations;
static... | {
"pile_set_name": "Github"
} |
// Copyright 2013 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.
//go:generate go run makexml.go -output xml.go
// Package cldr provides a parser for LDML and related XML formats.
// This package is intended to be used by th... | {
"pile_set_name": "Github"
} |
package org.phoenix.node.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream... | {
"pile_set_name": "Github"
} |
/*
* Autopsy Forensic Browser
*
* Copyright 2011-2019 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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... | {
"pile_set_name": "Github"
} |
@region $ dnalsi_1a {
north: dnalsi_1b.l;
south: dnalsi_19.l;
east: dnalsi_2a.l;
west: dnalsi_0a.l;
region_orientation: FACE_WEST;
[
@ground { x:68; y:2; or:244; }
@wall { x:68; y:0; or:0; style:4; }
@flat { x:164; y:2; or:188;
8:0;
}
@rock { ... | {
"pile_set_name": "Github"
} |
/***************************************************************************************************
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*... | {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: 55fed82ccfc5c9742bd1d7f6acf3d101
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
| {
"pile_set_name": "Github"
} |
import Foundation
@IBDesignable class WhiteHighlightButton: UIButton {
@IBInspectable var highlightedImageTintColor: UIColor = .white
override func awakeFromNib() {
super.awakeFromNib()
setImage(imageView?.image?.colored(highlightedImageTintColor), for: .highlighted)
}
}
| {
"pile_set_name": "Github"
} |
## Getting Started
This is a sample Gear VR app demostrates how to use load 3D model and play animation.
Please double check the following before running the sample
* Copy your [Oculus signature file](https://developer.oculus.com/osig/) to `app/src/main/assets` folder.
* Have a Gear VR device or turn on the [Develop... | {
"pile_set_name": "Github"
} |
import 'package:flutter/material.dart';
import 'ActivityWidget.dart';
import 'package:flutter_curiosity_app/model/model.dart';
import 'BaseModuleWidget.dart';
import 'package:dio/dio.dart';
import 'package:flutter_curiosity_app/tool/CommonUtils.dart';
import 'package:flutter_curiosity_app/tool/WidgetUtils.dart';
import... | {
"pile_set_name": "Github"
} |
CURL=curl
CC = cc
CFLAGS = -O2 -std=c99 -pedantic -Wall
all: bench
LIBUTF8PROC = ../utf8proc.o
bench: bench.o util.o $(LIBUTF8PROC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ bench.o util.o $(LIBUTF8PROC)
DATAURL = https://raw.githubusercontent.com/duerst/eprun/master/benchmark
DATAFILES = Deutsch_.txt Japanese_.txt Korean... | {
"pile_set_name": "Github"
} |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2015, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... | {
"pile_set_name": "Github"
} |
{% spaceless %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-2888978344075481",
enable_page_level_ads: true
});
</script>
<meta charset="utf... | {
"pile_set_name": "Github"
} |
/**
* \file config.h
*/
#ifndef ATK_REVERBERATION_CONFIG_H
#define ATK_REVERBERATION_CONFIG_H
#ifdef _MSC_VER
#pragma warning( disable : 4275 4251 )
# ifdef ATK_SHARED
# ifdef BUILD_ATK_REVERBERATION
# define ATK_REVERBERATION_EXPORT __declspec( dllexport )
# else
# define ATK_REVERBERATION_EXPORT __declspec(... | {
"pile_set_name": "Github"
} |
<?php
/*
* This file is part of PHP-FFmpeg.
*
* (c) Alchemy <info@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FFMpeg\Filters\Audio;
use FFMpeg\Filters\Audio\AddMetadataFilter;
use FFMpeg\Media\Audio;
us... | {
"pile_set_name": "Github"
} |
gcr.io/google_containers/kube-apiserver-arm64:v1.12.10
| {
"pile_set_name": "Github"
} |
// Copyright 2020 Antrea Authors
//
// 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 applicable law or agreed to ... | {
"pile_set_name": "Github"
} |
<fieldset class="quota_settings">
<legend>{{#t "manual_quotas_title"}}Manually Settable Quotas{{/t}}</legend>
<div class="responsive-control-group">
<label class="control-label" for="manual_quotas_type">{{#t "select_type_label"}}Find course or group{{/t}}</label>
<div class="controls">
<div class="res... | {
"pile_set_name": "Github"
} |
package cn.tycoding;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
@SpringBootApplication
@EnableEurekaServer
public class SpringCloudEurekaApplication {
public sta... | {
"pile_set_name": "Github"
} |
import os
from opendm import log
from opendm import location
from pyproj import CRS
class GeoFile:
def __init__(self, geo_path):
self.geo_path = geo_path
self.entries = {}
self.srs = None
with open(self.geo_path, 'r') as f:
contents = f.read().strip()
lines = l... | {
"pile_set_name": "Github"
} |
using System;
namespace UnityEngine.PostProcessing
{
// Small wrapper on top of AnimationCurve to handle zero-key curves and keyframe looping
[Serializable]
public sealed class ColorGradingCurve
{
public AnimationCurve curve;
[SerializeField]
bool m_Loop;
[SerializeFi... | {
"pile_set_name": "Github"
} |
require 'perpetuity/config'
require 'perpetuity/postgres'
module Perpetuity
describe Configuration do
before(:all) { Perpetuity.register_standard_adapters }
let(:config) { Configuration.new }
it 'sets a data source' do
config.data_source :postgres,
'perpetuity',
... | {
"pile_set_name": "Github"
} |
//
// CheckBox.swift
// TodayMind
//
// Created by cyan on 2017/2/19.
// Copyright © 2017 cyan. All rights reserved.
//
import UIKit
import TMKit
import EventKit
/// CheckBox for switch complete states
class CheckBox: UIButton {
private var completed: Bool!
override init(frame: CGRect) {
super.init(... | {
"pile_set_name": "Github"
} |
// Preamble detection test: see below for comments and test commands.
//* A BCPL comment that includes '/*'
#include <blah>
#ifndef FOO
#else
#ifdef BAR
#elif WIBBLE
#endif
#pragma unknown
#endif
#ifdef WIBBLE
#include "honk"
#else
int foo();
#endif
// This test checks for detection of the preamble of a file, which
//... | {
"pile_set_name": "Github"
} |
// This is the entry file, which kicks off all rendering.
//
// We import h() here because that's the function our JSX elements transpile to.
// That is to say - this:
// <div a="b">foo</div>
// ... is converted to this:
// h('div', { a: 'b' }, 'foo')
import { h, render } from 'preact';
// this holds our ren... | {
"pile_set_name": "Github"
} |
{
"name": "scalable-frontend-with-redux-saga-jaysoo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "node_modules/.bin/webpack",
"start": "node_modules/.bin/webpack-dev-server",
"test": "node_modules/.bin/mocha --require babel-core/register --recursive src/**/__t... | {
"pile_set_name": "Github"
} |
# ACL for the default favicon.ico resource
# Server operators will be able to override it as they wish
# Public-readable
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
<#public>
a acl:Authorization;
acl:agentClass foaf:Agent; # everyone
acl:accessTo </favicon... | {
"pile_set_name": "Github"
} |
/*
The MIT License
Copyright (c) 2010-2020 Paul R. Holser, Jr.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, mod... | {
"pile_set_name": "Github"
} |
---
subcategory: "CosmosDB (DocumentDB)"
layout: "azurerm"
page_title: "Azure Resource Manager: azurerm_cosmosdb_sql_container"
description: |-
Manages a SQL Container within a Cosmos DB Account.
---
# azurerm_cosmosdb_sql_container
Manages a SQL Container within a Cosmos DB Account.
## Example Usage
```hcl
resou... | {
"pile_set_name": "Github"
} |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace GradesPrototype.Data
{
// Types of user
public enum Role { Teacher, Student };
// WPF Databinding requires prope... | {
"pile_set_name": "Github"
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program for testing factories defined across libraries
library test;
import "package:expe... | {
"pile_set_name": "Github"
} |
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>three.js webgl - viewer 3</title>
<meta charset="utf-8">
<style type="text/css">
body {
margin:0;
overflow: hidden;
background: #000;
line-height:1.25em
}
#file_dialog {
width:100%;
height:100%;
position:absolute;
top:0px;
le... | {
"pile_set_name": "Github"
} |
import java.util.ArrayList;
import java.util.List;
public class TestDefaultPackage {
static long [] test_;
private class TestInnerClass {
private int a, b;
private TestInnerClass(int a, int b)
{
this.a = a;
this.b = b;
}
public void Test(int d)
{
System.out.println("Test2: " + this.a + d +... | {
"pile_set_name": "Github"
} |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
#include "nsISupports.idl"
interf... | {
"pile_set_name": "Github"
} |
/**
* \file ecdsa.h
*
* \brief This file contains ECDSA definitions and functions.
*
* The Elliptic Curve Digital Signature Algorithm (ECDSA) is defined in
* <em>Standards for Efficient Cryptography Group (SECG):
* SEC1 Elliptic Curve Cryptography</em>.
* The use of ECDSA for TLS is defined in <em>RFC-4492: Ell... | {
"pile_set_name": "Github"
} |
The pylib is a development support library featuring these tools and APIs:
* py.path: uniform local and svn path objects
* py.apipkg: explicit API control and lazy-importing
* py.iniconfig: easy parsing of .ini files
* py.code: dynamic code generation and introspection
* py.path: uniform local and svn p... | {
"pile_set_name": "Github"
} |
#!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import importlib
from PyQt5.Qt import (
QIcon, Qt, QStringListModel, QListView, QSizePolicy, QHBoxLayout, QSize,
... | {
"pile_set_name": "Github"
} |
// RUN: %clang_cc1 -triple=i686-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
// PR2691
// CHECK: weak
void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));
void native_init_IRQ(void) {}
| {
"pile_set_name": "Github"
} |
/*
* 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 ... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<repositories>
<repository path="..\Composite.Workflows\packages.config" />
<repository path="..\Composite\packages.config" />
<repository path="..\Website\packages.config" />
</repositories> | {
"pile_set_name": "Github"
} |
[[ats_core_fc-op]]
[width="90%",cols="2,6a"]
|===
^|*Abstract Test {counter:ats-id}* |*/conf/core/fc-op*
^|Test Purpose |Validate that features can be identified and extracted from a Collection using query parameters.
^|Requirement |<<req_core_fc-op,/req/core/fc-op>>
^|Test Method |. For every feature collection identi... | {
"pile_set_name": "Github"
} |
.class Landroid/support/v4/view/bE;
.super Ljava/lang/Object;
# interfaces
.implements Ljava/util/Comparator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Comparator",
"<",
"Landroid/view/View;",
">;"
}
.end... | {
"pile_set_name": "Github"
} |
//========================================================================
//
// ErrorCodes.h
//
// Copyright 2002-2003 Glyph & Cog, LLC
//
//========================================================================
#ifndef ERRORCODES_H
#define ERRORCODES_H
#define errNone 0 // no error
#define errOpenFil... | {
"pile_set_name": "Github"
} |
module type S =
sig
type t
type position
val close : t -> unit
val read_byte : t -> int
val read_prefix : t -> Codec.prefix
val read_vint : t -> int
val read_bool : t -> bool
val read_rel_int : t -> int
val read_i8 : t -> int
val read_i32 : t -> Int32.t
val read_i64 : t -> Int64.t
val read_float... | {
"pile_set_name": "Github"
} |
"""
All of the Enums that are used throughout the chardet package.
:author: Dan Blanchard (dan.blanchard@gmail.com)
"""
class InputState(object):
"""
This enum represents the different states a universal detector can be in.
"""
PURE_ASCII = 0
ESC_ASCII = 1
HIGH_BYTE = 2
class LanguageFilter... | {
"pile_set_name": "Github"
} |
/*
* Copyright 2004 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | {
"pile_set_name": "Github"
} |
use specs::prelude::*;
use super::*;
use crate::particle_system::ParticleBuilder;
use crate::map::Map;
pub fn particle_to_tile(ecs: &mut World, tile_idx : i32, effect: &EffectSpawner) {
if let EffectType::Particle{ glyph, fg, bg, lifespan } = effect.effect_type {
let map = ecs.fetch::<Map>();
let m... | {
"pile_set_name": "Github"
} |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#pragma mark Blocks
typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown
#pragma mark Named Structures
struct CGPoint {
double x;
double y;... | {
"pile_set_name": "Github"
} |
/*
*
* Copyright 2015, 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 condi... | {
"pile_set_name": "Github"
} |
require('../modules/es6.object.to-string');
require('../modules/es6.string.iterator');
require('../modules/web.dom.iterable');
require('../modules/es6.map');
require('../modules/es7.map.to-json');
module.exports = require('../modules/_core').Map; | {
"pile_set_name": "Github"
} |
@charset "UTF-8";
/*
Animate.css - http://daneden.me/animate
Licensed under the ☺ license (http://licence.visualidiot.com/)
Copyright (c) 2012 Dan Eden
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft... | {
"pile_set_name": "Github"
} |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | {
"pile_set_name": "Github"
} |
/*
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at http://live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
#include "Local.h"
// -------- //
// REQUIRES //
// -------- //
#include "Live2DCubis... | {
"pile_set_name": "Github"
} |
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// *Preprocessed* version of the main "set.hpp" header
// -- DO NOT modify by hand!
namespace boost { namespace m... | {
"pile_set_name": "Github"
} |
" Menu Translations: German for UTF-8 encoding
source <sfile>:p:h/menu_de_de.latin1.vim
| {
"pile_set_name": "Github"
} |
package io.quarkus.it.spring.web;
import static org.hamcrest.Matchers.containsString;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
@QuarkusTest
public class SpringCacheControllerTest {
@Test
public void testCache() {
// first invoca... | {
"pile_set_name": "Github"
} |
package eventbusbridge;
import org.vertx.java.core.Handler;
import org.vertx.java.core.http.HttpServer;
import org.vertx.java.core.http.HttpServerRequest;
import org.vertx.java.core.json.JsonArray;
import org.vertx.java.core.json.JsonObject;
import org.vertx.java.core.logging.Logger;
import org.vertx.java.core.sockjs.... | {
"pile_set_name": "Github"
} |
class SetPrismLanguagesForTracks
include Mandate
def call
Track.all.each do |track|
prism_language = track.slug
unless Exercism::PrismLanguages.include?(prism_language)
if mapping = Exercism::PrismLanguageMappings[prism_language]
prism_language = mapping
else
p "... | {
"pile_set_name": "Github"
} |
/**
* @file
* Styling for contextual module's toolbar tab.
*/
/* Tab appearance. */
.toolbar .toolbar-bar .contextual-toolbar-tab.toolbar-tab {
float: right; /* LTR */
}
[dir="rtl"] .toolbar .toolbar-bar .contextual-toolbar-tab.toolbar-tab {
float: left;
}
.toolbar .toolbar-bar .contextual-toolbar-tab .toolbar-... | {
"pile_set_name": "Github"
} |
import sendRequest from './sendRequest';
const BASE_PATH = '/api/v1/admin';
export const getBookList = () =>
sendRequest(`${BASE_PATH}/books`, {
method: 'GET',
});
export const addBook = ({ name, price, githubRepo }) =>
sendRequest(`${BASE_PATH}/books/add`, {
body: JSON.stringify({ name, price, githubR... | {
"pile_set_name": "Github"
} |
/**
* 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... | {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.