text stringlengths 2 99.9k | meta dict |
|---|---|
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include <dsn/cpp/cli.h>
#include <algorithm>
#include <ostream>
#include <thrift/TToString.h>
namespace dsn {
command::~command() throw() {
}
void command::__set_cmd(const st... | {
"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 not use this... | {
"pile_set_name": "Github"
} |
S : "a" S "a" ;
: "a" S ;
: "b" S ;
: "a" ;
: "b" ;
: ;
| {
"pile_set_name": "Github"
} |
/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call i... | {
"pile_set_name": "Github"
} |
/*
* Copyright 2016 Google LLC. 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 app... | {
"pile_set_name": "Github"
} |
{% extends "base.html" %}
{% block title %}ADL LRS Reset Confirmation{% endblock title %}
{% block heading %}ADL LRS Reset Confirmation{% endblock heading %}
{% block extra_css %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/extra.css">
{% endblock extra_css %}
{% block content %}
<br>
<div class="content">
<di... | {
"pile_set_name": "Github"
} |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <PhotoPrintProduct/NSObject-Protocol.h>
@class KHLayout, KHLayoutThumbnailManager;
@protocol KHLayoutThumbnailManagerDelegate... | {
"pile_set_name": "Github"
} |
local a,b;
while a and b do
f()
end
while a do
if b then
f()
end
end
while a do
while b do
f()
end
end | {
"pile_set_name": "Github"
} |
import os
import time
import pytest
from stellar_sdk import (
TransactionBuilder,
Account,
Network,
Signer,
TimeBounds,
Asset,
Price,
Keypair,
IdMemo,
HashMemo,
ReturnHashMemo,
)
class TestTransactionBuilder:
def test_to_xdr_v0(self):
sequence = 1
sour... | {
"pile_set_name": "Github"
} |
[role="xpack"]
[testenv="basic"]
[[put-enrich-policy-api]]
=== Put enrich policy API
++++
<titleabbrev>Put enrich policy</titleabbrev>
++++
Creates an enrich policy.
////
[source,console]
----
PUT /users
{
"mappings": {
"properties": {
"email": { "type": "keyword" }
}
}
}
----
////
[source,console]... | {
"pile_set_name": "Github"
} |
#ifndef CNAMASDK_H
#define CNAMASDK_H
#ifdef _WIN32
#ifdef NAMA_BUILD_SHARED_LIB
#define FUNAMA_API __declspec(dllexport)
#else
#define FUNAMA_API
#endif
#else
#define FUNAMA_API __attribute__((visibility("default")))
#endif
#define FU_FORMAT_BGRA_BUFFER 0
#define FU_FORMAT_RGBA_TEXTURE 1
#define FU_FO... | {
"pile_set_name": "Github"
} |
/* crypto/lhash/lhash.h */
/* 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 non-... | {
"pile_set_name": "Github"
} |
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include <algorithm>
#include <cmath>
#include <sstream>
#include <string>
#include <vector>
#include "include/base/cef_bind.h"
#i... | {
"pile_set_name": "Github"
} |
//-----------------------------------------------------------------------------
// File: GrowArray.h
// Desc: Growable array class.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY ... | {
"pile_set_name": "Github"
} |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## 9.11 \u88c5\u9970\u5668\u4e3a\u88ab\u5305\u88c5\u51fd\u6570\u589e\u52a0\u53c2\u6570\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### \u95ee\u9898\n"
]
... | {
"pile_set_name": "Github"
} |
#!/usr/bin/env python3
import os
import os.path
import subprocess
import sys
__PARENT_DIR_PATH = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
__PARENT_DIR_NAME = os.path.basename(__PARENT_DIR_PATH)
def __log(msg):
sys.stderr.write(msg + "\n")
def __get_file_error(file_path):
if not os.path.... | {
"pile_set_name": "Github"
} |
disable_query_log;
#
# Check if the variable TEST_UDF_REGISTRATION is set
#
if (!$TEST_UDF_REGISTRATION) {
--skip component requires the environment variable \$TEST_UDF_REGISTRATION to be set (normally done by mtr), see the file plugin.defs
}
#
## Check if --plugin-dir was setup for component_test
#
if (`SELECT CO... | {
"pile_set_name": "Github"
} |
/*
* Copyright 2010-2020 Australian Signals Directorate
*
* 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... | {
"pile_set_name": "Github"
} |
module \$__GW1NR_RAM16S4 (CLK1, A1ADDR, A1DATA, A1EN, B1ADDR, B1DATA, B1EN);
parameter CFG_ABITS = 4;
parameter CFG_DBITS = 4;
parameter [63:0] INIT = 64'bx;
input CLK1;
input [CFG_ABITS-1:0] A1ADDR;
output [CFG_DBITS-1:0] A1DATA;
input A1EN;
input [CFG_ABITS-1:0] B1ADDR;
... | {
"pile_set_name": "Github"
} |
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and s... | {
"pile_set_name": "Github"
} |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | {
"pile_set_name": "Github"
} |
#include "fitz-internal.h"
#include "mupdf-internal.h"
enum
{
MAXN = FZ_MAX_COLORS,
MAXM = FZ_MAX_COLORS,
};
typedef struct psobj_s psobj;
enum
{
SAMPLE = 0,
EXPONENTIAL = 2,
STITCHING = 3,
POSTSCRIPT = 4
};
struct pdf_function_s
{
fz_storable storable;
unsigned int size;
int type; /* 0=sample 2=exponen... | {
"pile_set_name": "Github"
} |
<p>
<img src="https://github.com/GeostatsGuy/GeostatsPy/blob/master/TCG_color_logo.png" width="220" height="200" />
</p>
# PythonNumericalDemos
A collection of Python demos for spatial data analytics, geostatistics and machine learning methods.
I use these demonstrations for:
1. in-lecture walkthroughs
2. hand... | {
"pile_set_name": "Github"
} |
use Kitto.Job.DSL
job :random, every: :second do
broadcast! %{value: :rand.uniform * 100 |> Float.round}
end
| {
"pile_set_name": "Github"
} |
# Copyright 2012 Mozilla Foundation
#
# 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 in wr... | {
"pile_set_name": "Github"
} |
/*!
@file
Defines `boost::hana::curry`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_FUNCTIONAL_CURRY_HPP
#define BOOST_HANA_FUNCTIONAL_CURRY_HPP
#include <boost/hana/... | {
"pile_set_name": "Github"
} |
[Rule]
## 广告域名列表
DOMAIN-SUFFIX,10up.com,REJECT
DOMAIN-SUFFIX,111cn.net,REJECT
DOMAIN-SUFFIX,114la.com,REJECT
DOMAIN-SUFFIX,123.sogou.com,REJECT
DOMAIN-SUFFIX,37wan.cn,REJECT
DOMAIN-SUFFIX,51.la,REJECT
DOMAIN-SUFFIX,513hch.com,REJECT
DOMAIN-SUFFIX,51yes.com,REJECT
DOMAIN-SUFFIX,70e.com,REJECT
DOMAIN-SUFFIX,818mov.com,... | {
"pile_set_name": "Github"
} |
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="game.libretro.bsnes-mercury-accuracy"
PKG_VERSION="0.94.0.5-Leia"
PKG_SHA256="ea35dd9ee19bbbdd873f350936f9988474e7718e29aef4488067dbbdaa25168e"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://... | {
"pile_set_name": "Github"
} |
tedchoc@chromium.org
miguelg@chromium.org
peter@chromium.org
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpos... | {
"pile_set_name": "Github"
} |
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/*
* The list of phases mapped to their corresponding profiles. The object
* here must be in strict JSON format, as it will get parsed by the Python
* testrunner (no single quotes, extra comma's, etc).
*/
E... | {
"pile_set_name": "Github"
} |
{
"id": "4147f44f-1fbc-49d3-9b6c-cd69a89ecda3",
"modelName": "GMSound",
"mvc": "1.0",
"name": "sfx_keyMel6",
"audioGroupGuid": "93d5cf40-ad10-40e0-a3e4-474f9342b4a1",
"bitDepth": 1,
"bitRate": 128,
"kind": 0,
"preload": true,
"sampleRate": 44100,
"type": 0,
"volume": 1
} | {
"pile_set_name": "Github"
} |
[general]
[PresenceAbsenceData !PAN.db::gene_cluster_frequencies]
normalize = False
log = True
| {
"pile_set_name": "Github"
} |
package com.oath.cyclops.react.collectors.lazy;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.Builder;
import lombok.experimental.Wither;
@AllArgsConstructor
@Getter
@Wither
@Builder
public class MaxActive {
private final int maxActive;
private final int reduceTo;
pu... | {
"pile_set_name": "Github"
} |
import * as React from 'react'
import classNames from 'classnames'
import Chip, { ChipProps } from '@material-ui/core/Chip'
import type { Group } from '../../../database'
import DoneIcon from '@material-ui/icons/Done'
import { useResolveSpecialGroupName } from '../SelectPeopleAndGroups/resolveSpecialGroupName'
import {... | {
"pile_set_name": "Github"
} |
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "pic_local_empty_177x120_@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "pic_local_empty_177x120_@3x.png",
"scale" : "3x"
}
],
... | {
"pile_set_name": "Github"
} |
error while printing array
received a string
string
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13196" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<... | {
"pile_set_name": "Github"
} |
module QueryDiet
module ActiveRecordExt
def log(query, *)
QueryDiet::Logger.log(query) { super }
end
end
end
ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:prepend, QueryDiet::ActiveRecordExt)
| {
"pile_set_name": "Github"
} |
type StripePaymentIntent = { status?: string };
type TransactionsEndpointResponse = { message: { payment_intent_client_secret: string } };
type StripeConfiguration = { public_key: string };
type StripeObject = {
handleCardPayment: (
secret: string,
options: {}
) => Promise< { paymentIntent: StripePaymentIntent; e... | {
"pile_set_name": "Github"
} |
---
title: Supported Service Inputs
menu:
telegraf_012:
name: Service Inputs
identifier: services
weight: 30
---
Telegraf is entirely input driven. It gathers all metrics from the inputs specified in the configuration file.
## Usage Instructions
View usage instructions for each service input by runnin... | {
"pile_set_name": "Github"
} |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... | {
"pile_set_name": "Github"
} |
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "A load balancer instance running a local HAproxy",
"Parameters": {
"KeyName": {
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type": "String"
},
"Server1": {
"Description": "Ser... | {
"pile_set_name": "Github"
} |
trait HasArea {
fn area(&self) -> f64;
}
struct Circle {
r: f64,
}
struct Square {
side: f64,
}
struct Foo {
x: i32,
}
impl HasArea for Circle {
fn area(&self) -> f64 {
3.14 * self.r * self.r
}
}
impl HasArea for Square {
fn area(&self) -> f64 {
self.side * self.side
... | {
"pile_set_name": "Github"
} |
/**
******************************************************************************
* @file stm32f4xx_sai.c
* @author MCD Application Team
* @version V1.4.0
* @date 04-August-2014
* @brief This file provides firmware functions to manage the following
* functionalities of the Serial Aud... | {
"pile_set_name": "Github"
} |
"LiveStyle for WebKit extension installer"
import os
import re
import os.path
import plistlib
import platform
import zipfile
import sublime
import logging
try:
# in Linux, it throws exception
import io
except:
pass
WEBKIT_PATH = '/Applications/WebKit.app'
WEBKIT_RES_PATH = 'Contents/Frameworks/%s/WebInspectorU... | {
"pile_set_name": "Github"
} |
/*
This file is part of Darling.
Copyright (C) 2020 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling i... | {
"pile_set_name": "Github"
} |
<template>
<div class="card">
<div class="card-header" @click="selectNodule(nodule)">
<h1>Nodule {{ index + 1 }}</h1>
<span class="fa" :class="{
'fa-chevron-up' : isOpen,
'fa-chevron-down' : !isOpen
}"></span>
</div>
<div class="collapse" :class="{ show: selectedIndex == index }">
... | {
"pile_set_name": "Github"
} |
{
"compilerOptions": {
"module": "commonjs",
"outDir": "./dist",
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"strict": true,
"target": "es2015",
"lib": ["esnext"]
},
"include": ["src/**/*"],
... | {
"pile_set_name": "Github"
} |
.PHONY: all binary build cross default docs docs-build docs-shell shell test test-unit test-integration test-integration-cli test-docker-py validate
# env vars passed through directly to Docker's build scripts
# to allow things like `make DOCKER_CLIENTONLY=1 binary` easily
# `docs/sources/contributing/devenvironment.m... | {
"pile_set_name": "Github"
} |
%% This file is part of EGS.
%%
%% EGS is free software: you can redistribute it and/or modify
%% it under the terms of the GNU Affero General Public License as
%% published by the Free Software Foundation, either version 3 of the
%% License, or (at your option) any later version.
%%
%% EGS is distributed in the hope t... | {
"pile_set_name": "Github"
} |
package protocol_test
import (
"net/http"
"net/url"
"testing"
"github.com/stretchr/testify/assert"
"github.com/aws/aws-sdk-go/aws/client/metadata"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/awstesting"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/pr... | {
"pile_set_name": "Github"
} |
#include "StdAfx.h"
#include "CmSalCut.h"
CmSalCut::CmSalCut(CMat &img3f)
:_fGMM(5), _bGMM(5), _w(img3f.cols), _h(img3f.rows), _lambda(50)
{
CV_Assert(img3f.data != NULL && img3f.type() == CV_32FC3);
_imgBGR3f = img3f;
cvtColor(_imgBGR3f, _imgLab3f, CV_BGR2Lab);
_trimap1i = Mat::zeros(_h, _w, CV_32S);
_segVal1f... | {
"pile_set_name": "Github"
} |
{-# OPTIONS_JHC -fno-prelude -fffi -fm4 -funboxed-tuples #-}
module Prelude.Float(readDouble,doubleToDigits,doubleToRational) where
import Jhc.Basics
import Jhc.Class.Real
import Jhc.Float
import Jhc.List(length,notElem,take,elem)
import Jhc.Num
import Jhc.Numeric((^),(^^))
import Jhc.Order
import Jhc.Type.C
import ... | {
"pile_set_name": "Github"
} |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2010-2017 FBReader.ORG Limited <contact@fbreader.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ... | {
"pile_set_name": "Github"
} |
<?php
/*
* Copyright 2014 Google Inc.
*
* 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 t... | {
"pile_set_name": "Github"
} |
/* Define iscanonical macro. ldbl-96 version.
Copyright (C) 2016-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Sof... | {
"pile_set_name": "Github"
} |
package URI::file::FAT;
use strict;
use warnings;
use parent 'URI::file::Win32';
our $VERSION = '1.76';
sub fix_path
{
shift; # class
for (@_) {
# turn it into 8.3 names
my @p = map uc, split(/\./, $_, -1);
return if @p > 2; # more than 1 dot is not allowed
@p = ("") unless @p; # split bug? (return... | {
"pile_set_name": "Github"
} |
/*
Copyright (C) 2001, 2010 United States Government as represented by
the Administrator of the National Aeronautics and Space Administration.
All Rights Reserved.
*/
package gov.nasa.worldwind.servers.app;
import gov.nasa.worldwind.Restorable;
import gov.nasa.worldwind.avlist.*;
import java.net.Socket;
/**
* @aut... | {
"pile_set_name": "Github"
} |
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: {
'polyfills': './src/polyfills.ts',
'angular': './src/vendors/angular.ts',
'jupyterlab': './src/vendors/jupyterlab.ts',
'misc': './src/vendors/misc.... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBu... | {
"pile_set_name": "Github"
} |
class Object
NO_MATCHER_GIVEN = Object.new
def should(matcher = NO_MATCHER_GIVEN)
MSpec.expectation
state = MSpec.current.state
raise "should outside example" unless state
MSpec.actions :expectation, state
if NO_MATCHER_GIVEN.equal?(matcher)
SpecPositiveOperatorMatcher.new(self)
else... | {
"pile_set_name": "Github"
} |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | {
"pile_set_name": "Github"
} |
/*
* [The "BSD license"]
* Copyright (c) 2011 Terence Parr
* All rights reserved.
*
* Conversion to C#:
* Copyright (c) 2011 Sam Harwell, Tunnel Vision Laboratories, LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... | {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2015 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | {
"pile_set_name": "Github"
} |
// -*- C++ -*-
//
// Package: SiPixelPhase1Clusters
// Class: SiPixelPhase1Clusters
//
// Original Author: Marcel Schneider
#include "DQM/SiPixelPhase1Common/interface/SiPixelPhase1Base.h"
#include "DataFormats/SiPixelCluster/interface/SiPixelCluster.h"
#include "DataFormats/SiStripCluster/interface/SiStrip... | {
"pile_set_name": "Github"
} |
/*
* 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.
*/
grammar Smalltalk;
script : sequence ws EOF;
sequence : temps? ws statements? ws;
ws : (SEPARATOR | COMMENT)*;
temps : ws PIPE (ws IDE... | {
"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"
} |
# ############################################################
# Importing - Same For All Render Layer Tests
# ############################################################
import unittest
import os
import sys
from view_layer_common import *
# ############################################################
# Testing
# ... | {
"pile_set_name": "Github"
} |
/*
* Aic94xx SAS/SATA driver SAS definitions and hardware interface header file.
*
* Copyright (C) 2005 Adaptec, Inc. All rights reserved.
* Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
*
* This file is licensed under GPLv2.
*
* This file is part of the aic94xx driver.
*
* The aic94xx driver is... | {
"pile_set_name": "Github"
} |
--DROP FUNCTION IF EXISTS report.fresh_Get_Predecessor_Period (IN Source_Period_ID numeric);
DROP FUNCTION IF EXISTS report.fresh_statistics (
IN C_Period_ID numeric, IN issotrx character varying, IN C_BPartner_ID numeric, IN C_Activity_ID numeric,
IN M_Product_ID numeric, IN M_Product_Category_ID numeric, IN M_At... | {
"pile_set_name": "Github"
} |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | {
"pile_set_name": "Github"
} |
{
"name": "fetch-sync",
"version": "2.0.0",
"description": "Proxy fetch requests through the Background Sync API",
"main": "lib/client.js",
"jsnext:main": "src/client.js",
"author": "Sam Gluck <sdgluck@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/s... | {
"pile_set_name": "Github"
} |
# 4.8 学习一些常见的并发模型

本篇内容主要是了解下并发编程中的一些概念,及讲述一些常用的并发模型都是什么样的,从而理解 Golang 中的 协程在这些众多模型中是一种什么样的存在及地位。可能和本系列的初衷(零基础学Go)有所出入,因此你读不读本篇都不会对你学习Go有影响,尽管我个人觉得这是有必要了解的。
你可以自行选择,若你只想学习 Golang 有关的内容,完全可以跳过本篇。
## 0. 并发与并行
讲到并发,那不防先了解下什么是并发,与之相对的并行有什么区别?
这里我用两个例子来形象描述:
- **并发**:当你在跑... | {
"pile_set_name": "Github"
} |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('goog.ui.media.MediaTest');
goog.setTestOnly();
const ControlRenderer = goog.require('goog.ui.ControlRenderer');
const Media = goog.require('goog.ui.media.Media');
const MediaModel = goog.require('goog.ui.... | {
"pile_set_name": "Github"
} |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/... | {
"pile_set_name": "Github"
} |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | {
"pile_set_name": "Github"
} |
package sql
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | {
"pile_set_name": "Github"
} |
#version 400
in vec3 Position;
in vec3 Normal;
uniform vec4 LightPosition;
uniform vec3 LightIntensity;
uniform vec3 Kd; // Diffuse reflectivity
uniform vec3 Ka; // Ambient reflectivity
uniform vec3 Ks; // Specular reflectivity
uniform float Shininess; // Specular shininess factor... | {
"pile_set_name": "Github"
} |
---
title: Creating Frames Pages
keywords: vbawd10.chm5285976
f1_keywords:
- vbawd10.chm5285976
ms.prod: word
ms.assetid: 0245564e-b2df-83cd-1e32-e63079970dc1
ms.date: 06/08/2017
---
# Creating Frames Pages
In Word, you can use frames in your Web page design to make your information organized and easy to access. A f... | {
"pile_set_name": "Github"
} |
// Alerts
.alert-variant(@background; @border; @text-color) {
background-color: @background;
border-color: @border;
color: @text-color;
hr {
border-top-color: darken(@border, 5%);
}
.alert-link {
color: darken(@text-color, 10%);
}
}
| {
"pile_set_name": "Github"
} |
local stringFormat = string.format
local XUiGridStage = require("XUi/XUiFubenMainLineChapter/XUiGridStage")
XUiPanelPrequelChapter = XClass()
function XUiPanelPrequelChapter:Ctor(ui, rootUi)
self.GameObject = ui.gameObject
self.Transform = ui.transform
self.RootUi = rootUi
self:InitAutoScri... | {
"pile_set_name": "Github"
} |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2010 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a cop... | {
"pile_set_name": "Github"
} |
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
; CHECK: error: expected distinct uselistorder indexes in range [0, size)
@global = global i32 0
@alias1 = alias i32, i32* @global
@alias2 = alias i32, i32* @global
@alias3 = alias i32, i32* @global
uselistorder i32* @global, { 0, 3, 1 }
| {
"pile_set_name": "Github"
} |
window.jazzy = {'docset': false}
if (typeof window.dash != 'undefined') {
document.documentElement.className += ' dash'
window.jazzy.docset = true
}
if (navigator.userAgent.match(/xcode/i)) {
document.documentElement.className += ' xcode'
window.jazzy.docset = true
}
// On doc load, toggle the URL hash discuss... | {
"pile_set_name": "Github"
} |
package proxy
import (
"fmt"
"syscall"
"time"
google_protobuf "github.com/gogo/protobuf/types"
"github.com/hyperhq/runv/agent"
runvapi "github.com/hyperhq/runv/api"
kagenta "github.com/kata-containers/agent/protocols/grpc"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/health"
... | {
"pile_set_name": "Github"
} |
namespace ClassLib092
{
public class Class001
{
public static string Property => "ClassLib092" + " " + ClassLib027.Class001.Property + " " + ClassLib072.Class001.Property;
}
}
| {
"pile_set_name": "Github"
} |
PACKAGE = "pysandbox"
VERSION = "1.6"
LICENSE = "BSD (2-clause)"
URL = "http://github.com/haypo/pysandbox/"
| {
"pile_set_name": "Github"
} |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | {
"pile_set_name": "Github"
} |
<?php
/**
* @copyright Copyright (c) 2011 - 2015 Oleksandr Torosh (http://yonacms.com)
* @author Oleksandr Torosh <webtorua@gmail.com>
*/
namespace Application\Form\Element;
class Image extends \Phalcon\Forms\Element\File
{
} | {
"pile_set_name": "Github"
} |
diff -urNd gtk+-2.6.0/gdk/x11/gdkdrawable-x11.c gtk+-2.6.0/gdk/x11/gdkdrawable-x11.c
--- gtk+-2.6.0/gdk/x11/gdkdrawable-x11.c 2004-11-30 14:57:14 +00:00
+++ gtk+-2.6.0/gdk/x11/gdkdrawable-x11.c 2005-01-02 15:38:06 +00:00
@@ -576,12 +576,14 @@
GDK_GC_GET_XGC (gc), x, y, (XChar2b *) text, text_length / 2);
}
... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
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 Licens... | {
"pile_set_name": "Github"
} |
# Romanian translation for blueman.
# This file is distributed under the same license as the blueman package.
#
# Translators:
# Daniel <danny3@tutanota.com>, 2015-2016
# Daniel <danny3@tutanota.com>, 2017
# FIRST AUTHOR <EMAIL@ADDRESS>, 2007
# sorinn <nemes.sorin@gmail.com>, 2014
# Octi <octi@writeme.com>, 2014
# sidr... | {
"pile_set_name": "Github"
} |
/*
clean.c -- clean up misuse of presentation markup
(c) 1998-2008 (W3C) MIT, ERCIM, Keio University
See tidy.h for the copyright notice.
Filters from other formats such as Microsoft Word
often make excessive use of presentation markup such
as font tags, B, I, and the align attribute. By applying
a set ... | {
"pile_set_name": "Github"
} |
import {NgModuleRef} from '@angular/core';
import {Location} from '@angular/common';
import {Router, Routes, Route as AngularRoute} from '@angular/router';
import {Route} from './route';
import {ApplicationFallbackOptions} from '../static';
import {RouteExtractionOperation} from '../application/operation';
import {f... | {
"pile_set_name": "Github"
} |
--TEST--
IntlCalendar::get() basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "nl");
$intlcal = IntlCalendar::createInstance('UTC');
$intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 4... | {
"pile_set_name": "Github"
} |
* this is not an item list this is a code block because it has 4 leading spaces
* First level, first item
Code blocks not contained in list items must have at least 4 leading spaces. Code blocks contained in list items must have at least 8 leading spaces for the first level and additional 2 leading spaces per ... | {
"pile_set_name": "Github"
} |
output('a');
function x() {
return require('./b');
}
output('d');
x();
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
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
... | {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.