text stringlengths 574 99.1k | meta dict |
|---|---|
#!/usr/bin/env python
import inspect
import os
import random
import sys
import matplotlib.cm as cmx
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import matplotlib.legend as lgd
import matplotlib.markers as mks
def get_log_parsing_script():
dirname = os.path.dirname(os.path.abspath(inspect.get... | {
"pile_set_name": "Github"
} |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Braintree\Test\Unit\Model\Paypal\Helper;
use Magento\Braintree\Gateway\Config\PayPal\Config;
use Magento\Braintree\Model\Paypal\Helper\QuoteUpdater;
use Magento\Braintree\... | {
"pile_set_name": "Github"
} |
# Copyright 2010 The Kyua Authors.
# 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 conditions and th... | {
"pile_set_name": "Github"
} |
<?php
namespace Bolt\Storage\Query;
use Bolt\Exception\QueryParseException;
use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
/**
* Handler class to convert the DSL for content query parameters
* into equivalent DBAL expressions.
*
* @author Ross Riley <riley.ross@gmail.com>
*/
class QueryParameterParser... | {
"pile_set_name": "Github"
} |
#include "llcp.h"
#include "PN532_debug.h"
// LLCP PDU Type Values
#define PDU_SYMM 0x00
#define PDU_PAX 0x01
#define PDU_CONNECT 0x04
#define PDU_DISC 0x05
#define PDU_CC 0x06
#define PDU_DM 0x07
#define PDU_I 0x0c
#define PDU_RR 0x0d
uint8_t LLCP::SYMM_PDU[2] = {0, 0};
inline uint8_... | {
"pile_set_name": "Github"
} |
/**
* ScandiPWA - Progressive Web App for Magento
*
* Copyright © Scandiweb, Inc. All rights reserved.
* See LICENSE for license details.
*
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
* @package scandipwa/base-theme
* @link https://github.com/scandipwa/base-theme
*/
/* eslint-disable func-names, ... | {
"pile_set_name": "Github"
} |
from pytest import mark
from cerberus import errors
from cerberus.tests import assert_fail, assert_success
@mark.parametrize(
("test_function", "document"),
[
(assert_success, {'this_field': {}}),
(assert_success, {'that_field': {}}),
(assert_success, {}),
(assert_fail, {'that... | {
"pile_set_name": "Github"
} |
#!/usr/bin/env python
import sys
if sys.version_info[0] >= 3:
import PySimpleGUI as sg
else:
import PySimpleGUI27 as sg
import os
import mido
import time
import sys
PLAYER_COMMAND_NONE = 0
PLAYER_COMMAND_EXIT = 1
PLAYER_COMMAND_PAUSE = 2
PLAYER_COMMAND_NEXT = 3
PLAYER_COMMAND_RESTART_SONG = 4
# --------------... | {
"pile_set_name": "Github"
} |
html {
background: #f0f0f0;
}
#page {
min-height: 100vh;
background: #fff;
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
}
#header {
display: grid;
grid-template-columns: auto auto;
align-items: center;
padding: 10px;
}
@media (min-width: 768px) {
#header {
padding: 20px;
}
}
@media (min-width: 992... | {
"pile_set_name": "Github"
} |
#include "stdafx.h"
static CSCPController* l_Pad[XUSER_MAX_COUNT];
static BOOL l_bPassThrough = false, l_bStarted = false, l_bUnloaded = false;
static DWORD l_nPads = 0, l_nAttached = 0, l_nBtPads = 0;
BOOL LoadApi(BOOL bEnable)
{
if (bEnable) l_nAttached++; else l_nAttached--;
if (bEnable && !l_bStarted && !l_bU... | {
"pile_set_name": "Github"
} |
;===============================================================================
; Copyright 2015-2020 Intel Corporation
;
; 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.apa... | {
"pile_set_name": "Github"
} |
/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#define NEW_SIMD_CODE
#ifdef KERNEL_STATIC
#include "inc_vendor.h"
#include "inc_types.h"
#include "inc_platform.cl"
#include "inc_common.cl"
#include "inc_rp_optimized.h"
#include "inc_rp_optimized.cl"
#include "inc_simd.cl"
#include "inc_hash_sha1.c... | {
"pile_set_name": "Github"
} |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
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)
This is an auto-generated file. Do n... | {
"pile_set_name": "Github"
} |
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <sys/stat.h>
#include <sys/types.h>
#ifdef WIN32
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <zcm/windows/WinPorting.h>
#include <windows.h>
#else
#include <inttypes.h>
#includ... | {
"pile_set_name": "Github"
} |
/*
* arch/ubicom32/kernel/traps.c
* Ubicom32 architecture trap handling support.
*
* (C) Copyright 2009, Ubicom, Inc.
*
* This file is part of the Ubicom32 Linux Kernel Port.
*
* The Ubicom32 Linux Kernel Port is free software: you can redistribute
* it and/or modify it under the terms of the GNU General Pub... | {
"pile_set_name": "Github"
} |
/*
*************************************
* <!-- Navigation -->
*************************************
*/
import {
templateUrl,
homeUrl,
ajaxUrl,
browser,
UixModuleInstance,
UixGUID,
UixMath,
UixCssProperty
} from '@uixkit/core/_global/js';
export const NAVIGATION = ( ( module, $, ... | {
"pile_set_name": "Github"
} |
from functools import reduce
import networkx as nx
import os
import six
import tempfile
from stolos.exceptions import _log_raise, _log_raise_if, DAGMisconfigured
from stolos import configuration_backend as cb
from stolos import get_NS
from . import node
from . import log
def _validate_dep_grp_metadata(dep_grp, ld, ... | {
"pile_set_name": "Github"
} |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\Dep... | {
"pile_set_name": "Github"
} |
Shader "KSP/Bumped"
{
Properties
{
_MainTex("_MainTex (RGB spec(A))", 2D) = "gray" {}
_BumpMap("_BumpMap", 2D) = "bump" {}
_Opacity("_Opacity", Range(0,1) ) = 1
_RimFalloff("_RimFalloff", Range(0.01,5) ) = 0.1
_RimColor("_RimColor", Color) = (0,0,0,0)
_TemperatureColor("_TemperatureColor", Color) = ... | {
"pile_set_name": "Github"
} |
from robonet.video_prediction.layers.dnaflow_rnn_cell import VPredCell
import numpy as np
from robonet.video_prediction.layers.dnaflow_rnn_cell import apply_flows, apply_cdna_kernels, apply_dna_kernels, apply_kernels, identity_kernel, RELU_SHIFT
import tensorflow as tf
from robonet.video_prediction import ops, flow_ops... | {
"pile_set_name": "Github"
} |
{
"additionalFeatures": "Front Facing 1.3MP Camera",
"android": {
"os": "Android 2.2",
"ui": "Dell Stage"
},
"availability": [
"T-Mobile"
],
"battery": {
"standbyTime": "",
"talkTime": "",
"type": "Lithium Ion (Li-Ion) (2780 mAH)"
},
... | {
"pile_set_name": "Github"
} |
package com.ttdevs.android.transformers;
import android.content.Context;
import android.graphics.Point;
import androidx.viewpager.widget.ViewPager;
import android.util.AttributeSet;
import android.view.View;
public class MultiViewPager extends ViewPager {
/**
* Maximum size.
*/
private int mMaxWidt... | {
"pile_set_name": "Github"
} |
{
"matches": "right-019-ref.xht",
"assert": "The 'right' property sets a positive nominal length value in inches.",
"help": [
"http://www.w3.org/TR/CSS21/visuren.html#propdef-right",
"http://www.w3.org/TR/CSS21/visuren.html#position-props"
],
"test_case": {
"tag": "body",
... | {
"pile_set_name": "Github"
} |
package com.fasterxml.jackson.databind.deser.std;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.math.BigDecimal;
import java.math.BigInteger;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.annotation.JacksonStdImpl;
import com.fasterxml.jac... | {
"pile_set_name": "Github"
} |
/*
* The code below is part of a code extracted from https://www.dropbox.com/sh/at3ymvlz8sfhefl/AADWlDpcdjlBc2P30TiWva-qa?dl=0
* The original Arduino sketch was written by Greg Stievenart with no claim to or any images or information
* provided in this code. Freely published May 26, 2016.
*
* I copied only the ... | {
"pile_set_name": "Github"
} |
package net.mamoe.mirai.qqandroid.network.protocol.data.jce
import kotlinx.serialization.Serializable
import net.mamoe.mirai.qqandroid.network.Packet
import net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
import net.mamoe.mirai.qqandroid.utils.io.JceStruct
import net.mamoe.mirai.qqandroid.utils.io.s... | {
"pile_set_name": "Github"
} |
#include "Scheduler.h"
#include <algorithm>
#include <errno.h>
#include <poll.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <unistd.h>
#include <AP_HAL/AP_HAL.h>
#include <AP_Vehicle/AP_Vehicle_Type.h>
#include "RCInput.h"
#include "RPIOUARTDriver.h"
#include "SPIUART... | {
"pile_set_name": "Github"
} |
package docs.directives
import spray.http.StatusCodes.OK
import spray.http.HttpHeaders.Host
class HostDirectivesExamplesSpec extends DirectivesSpec {
"extract-hostname" in {
val route =
hostName { hn =>
complete(s"Hostname: $hn")
}
Get() ~> Host("company.com", 9090) ~> route ~> check {... | {
"pile_set_name": "Github"
} |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kendra/model/ColumnConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
na... | {
"pile_set_name": "Github"
} |
package metro
import "encoding/binary"
func rotate_right(v uint64, k uint) uint64 {
return (v >> k) | (v << (64 - k))
}
func Hash128(buffer []byte, seed uint64) (uint64, uint64) {
const (
k0 = 0xC83A91E1
k1 = 0x8648DBDB
k2 = 0x7BDEC03B
k3 = 0x2F5870A5
)
ptr := buffer
var v [4]uint64
v[0] = (seed - ... | {
"pile_set_name": "Github"
} |
package com.ripple.core.coretypes.hash;
import com.ripple.core.coretypes.hash.prefixes.HashPrefix;
import com.ripple.core.coretypes.hash.prefixes.Prefix;
import com.ripple.core.fields.Field;
import com.ripple.core.fields.Hash256Field;
import com.ripple.core.fields.Type;
import com.ripple.core.serialized.BytesSink;
im... | {
"pile_set_name": "Github"
} |
"""Statistics analyzer for HotShot."""
import profile
import pstats
import hotshot.log
from hotshot.log import ENTER, EXIT
def load(filename):
return StatsLoader(filename).load()
class StatsLoader:
def __init__(self, logfn):
self._logfn = logfn
self._code = {}
self._stack = []
... | {
"pile_set_name": "Github"
} |
/* ========================================================================
* Bootstrap: collapse.js v3.3.7
* http://getbootstrap.com/javascript/#collapse
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/boo... | {
"pile_set_name": "Github"
} |
package com.simplecity.amp_library.model;
import android.content.Context;
import android.database.Cursor;
import android.provider.MediaStore;
import com.simplecity.amp_library.R;
import com.simplecity.amp_library.utils.playlists.FavoritesPlaylistManager;
import com.simplecity.amp_library.utils.playlists.PlaylistManage... | {
"pile_set_name": "Github"
} |
#!/usr/bin/perl -w
###########################################################################
# #
# SIGHAN #
# Copyright (c) 2003,2005 ... | {
"pile_set_name": "Github"
} |
// (C) Copyright Edward Diener 2011-2015
// Use, modification and distribution are subject to 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).
#if !defined(BOOST_VMD_DETAIL_EQUAL_13_HPP)
#define BOOST_VMD_DETAIL_EQUAL_13_HPP
#... | {
"pile_set_name": "Github"
} |
/** @file
Register names for PCH Serial IO Controllers
Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _PCH_REGS_SERIAL_IO_
#define _PCH_REGS_SERIAL_IO_
#define R_SERIAL_IO_CFG_BAR0_LOW 0x10
#defin... | {
"pile_set_name": "Github"
} |
package com.cundong.recyclerview.sample;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
imp... | {
"pile_set_name": "Github"
} |
package cli
import (
"flag"
"strconv"
"time"
)
// WARNING: This file is generated!
// BoolFlag is a flag with type bool
type BoolFlag struct {
Name string
Usage string
EnvVar string
FilePath string
Required bool
Hidden bool
Destination *bool
}
// String returns a readable repr... | {
"pile_set_name": "Github"
} |
var test = require('tape')
var spec = require('stream-spec')
var through = require('../')
/*
I'm using these two functions, and not streams and pipe
so there is less to break. if this test fails it must be
the implementation of _through_
*/
function write(array, stream) {
array = array.slice()
function nex... | {
"pile_set_name": "Github"
} |
/**
* This header is generated by class-dump-z 0.2a.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: /System/Library/Frameworks/UIKit.framework/UIKit
*/
#import <UIKit/UIView.h>
#import <UIKit/UIStatusBarServerClient.h>
#import <UIKit/UIEvent.h>
@class UIStatusBarBackgroundVie... | {
"pile_set_name": "Github"
} |
// Boost.Range library
//
// Copyright Neil Groves 2010. Use, modification and
// distribution is subject to 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)
//
// For more information, see http://www.boost.org/libs/range/
//
#ifn... | {
"pile_set_name": "Github"
} |
import requests
from os.path import expanduser
import os
class ProgressBar(object):
def __init__(self, title,
count=0.0,
run_status=None,
fin_status=None,
total=100.0,
unit='', sep='/',
chunk_size=1.0):
... | {
"pile_set_name": "Github"
} |
{
"types": {
"varint": "native",
"pstring": "native",
"u16": "native",
"u8": "native",
"i64": "native",
"buffer": "native",
"i32": "native",
"i8": "native",
"bool": "native",
"i16": "native",
"f32": "native",
"f64": "native",
"UUID": "native",
"option": "native"... | {
"pile_set_name": "Github"
} |
r""""DeepHOL large scale reporting in Apache Beam."""
from __future__ import absolute_import
from __future__ import division
# Import Type Annotations
from __future__ import print_function
import io
import os
import apache_beam as beam
from apache_beam.metrics import Metrics
import matplotlib.pyplot as plot
import ten... | {
"pile_set_name": "Github"
} |
/*
* File: CategoryBalancedBaggingLearnerTest.java
* Authors: Justin Basilico
* Company: Sandia National Laboratories
* Project: Cognitive Foundry Learning Core
*
* Copyright June 15, 2011, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, th... | {
"pile_set_name": "Github"
} |
# Xlib.xobject.cursor -- cursor object
#
# Copyright (C) 2000 Peter Liljenberg <petli@ctrl-c.liu.se>
#
# 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... | {
"pile_set_name": "Github"
} |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // A... | {
"pile_set_name": "Github"
} |
import React from "react";
import SignInView from "./views/SignIn";
import ForgotPasswordView from "./views/ForgotPassword";
import RequireNewPasswordView from "./views/RequireNewPassword";
import SetNewPasswordView from "./views/SetNewPassword";
import { Loading, ViewContainer } from "./components/Layout";
import {
... | {
"pile_set_name": "Github"
} |
(module
(func $type-if-operand-missing
(if
(then)
(else)
)
)
(func $type-if-operand-missing-in-block
(i32.const 0)
(loop
(if
(then)
(else)
)
)
)
(func $type-if-operand-missing-in-if
(i32.const 0)
(i32.const 0)
(if
(then
... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE why3session PUBLIC "-//Why3//proof session v5//EN"
"http://why3.lri.fr/why3session.dtd">
<why3session shape_version="6">
<prover id="0" name="CVC4" version="1.6-gnatprove" timelimit="20" steplimit="0" memlimit="1000"/>
<file format="gnat-json" proved="true">
<path name="... | {
"pile_set_name": "Github"
} |
-----BEGIN CERTIFICATE-----
MIIE0DCCA7igAwIBAgIJAMnis+YL+r3QMA0GCSqGSIb3DQEBCwUAMIGgMQswCQYD
VQQGEwJVSzEUMBIGA1UECBMLTG9uZG9uc2hpcmUxDzANBgNVBAcTBkxvbmRvbjEW
MBQGA1UEChMNV2ViIG9mIFRoaW5nczEWMBQGA1UECxMNV2ViIG9mIFRoaW5nczEW
MBQGA1UEAxMNV2ViIG9mIFRoaW5nczEiMCAGCSqGSIb3DQEJARYTYm9va0B3ZWJv
ZnRoaW5ncy5pbzAeFw0xNTA4MTUxNjQ3... | {
"pile_set_name": "Github"
} |
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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 agre... | {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2012 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 contribut... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0700"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForAnalyzing = "YES"
buildForTesting = "YES"
... | {
"pile_set_name": "Github"
} |
{
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "cdm:/foundations.1.1.cdm.json"
},
{
"corpusPath": "/core/operationsCommon/Common.1.0.cdm.json",
"moniker": "base_Common"
},
{
"corpusPath": "/core/operationsCommon/DataEntityView.1.0.cdm.json",
"m... | {
"pile_set_name": "Github"
} |
// for uGUI(from 4.6)
#if !(UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_4 || UNITY_4_5)
using System;
using UnityEngine.Events;
using UnityEngine.UI;
namespace UniRx
{
public static partial class UnityGraphicExtensions
{
public static IObservable<Unit> DirtyLayoutCallbackAs... | {
"pile_set_name": "Github"
} |
namespace Acerola.Domain.ValueObjects
{
using System.Text.RegularExpressions;
public sealed class SSN
{
public string _text { get; private set; }
const string RegExForValidation = @"^\d{6,8}[-|(\s)]{0,1}\d{4}$";
public SSN(string text)
{
if (string.IsNullOrWhit... | {
"pile_set_name": "Github"
} |
/*
* IDE ATAPI streaming tape driver.
*
* Copyright (C) 1995-1999 Gadi Oxman <gadio@netvision.net.il>
* Copyright (C) 2003-2005 Bartlomiej Zolnierkiewicz
*
* This driver was constructed as a student project in the software laboratory
* of the faculty of electrical engineering in the Technion - Israel's
* Inst... | {
"pile_set_name": "Github"
} |
#ifndef B43_LEDS_H_
#define B43_LEDS_H_
struct b43_wl;
struct b43_wldev;
#ifdef CONFIG_B43_LEDS
#include <linux/types.h>
#include <linux/leds.h>
#include <linux/workqueue.h>
#define B43_LED_MAX_NAME_LEN 31
struct b43_led {
struct b43_wl *wl;
/* The LED class device */
struct led_classdev led_dev;
/* The index... | {
"pile_set_name": "Github"
} |
using ShaderPlayground.Core.Util;
namespace ShaderPlayground.Core.Compilers.SpirvTools
{
internal sealed class SpirvAssemblerCompiler : IShaderCompiler
{
public string Name { get; } = CompilerNames.SpirvAssembler;
public string DisplayName { get; } = "spirv-as";
public string Url { get... | {
"pile_set_name": "Github"
} |
//
// U4DRenderShaderEntity.hpp
// UntoldEngine
//
// Created by Harold Serrano on 7/7/20.
// Copyright © 2020 Untold Engine Studios. All rights reserved.
//
#ifndef U4DRenderShaderEntity_hpp
#define U4DRenderShaderEntity_hpp
#include <stdio.h>
#include "U4DRenderManager.h"
#include "U4DMatrix4n.h"
#include "U4DV... | {
"pile_set_name": "Github"
} |
.timeline {
position: relative;
padding: 20px 0 20px;
list-style: none;
}
.timeline:before {
content: " ";
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 3px;
margin-left: -1.5px;
background-color: #eeeeee;
}
.timeline > li {
position: relative;
margin-bot... | {
"pile_set_name": "Github"
} |
// Copyright 2018 Esri.
//
// 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 writing,... | {
"pile_set_name": "Github"
} |
void glue(glue(test_, OP), b)(int64 op0, int64 op1)
{
int64 res, s1, s0, flags;
s0 = op0;
s1 = op1;
res = s0;
flags = 0;
asm ("pushq %4\n\t"
"popfq\n\t"
stringify(OP)"b %b2\n\t"
"pushfq\n\t"
"popq %1\n\t"
: "=a" (res), "=g" (flags)
... | {
"pile_set_name": "Github"
} |
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import unittest
import mock
from dashboard im... | {
"pile_set_name": "Github"
} |
/*
* cx18 System Control Block initialization
*
* Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl>
* Copyright (C) 2008 Andy Walls <awalls@md.metrocast.net>
*
* 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
... | {
"pile_set_name": "Github"
} |
//
// NSFileHandle+Additions.m
// gitty
//
// Created by brandon on 10/15/12.
//
//
#import "NSFileHandle+Additions.h"
@implementation NSFileHandle (Additions)
- (NSString *) readLine
{
NSData * newLineData = [@"\n" dataUsingEncoding:NSASCIIStringEncoding];
NSMutableData * currentData = [[[NSMutableData a... | {
"pile_set_name": "Github"
} |
// run-pass
#![allow(overflowing_literals)]
#![feature(test)]
extern crate test;
use test::black_box as b;
fn main() {
let x: i128 = -1;
assert_eq!(0, !x);
let y: i128 = -2;
assert_eq!(!1, y);
let z: i128 = 0xABCD_EF;
assert_eq!(z * z, 0x734C_C2F2_A521);
assert_eq!(z * z * z * z, 0x33EE_0... | {
"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"
} |
<?xml version="1.0"?>
<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cern.ch/cms/DDL ../../../../DetectorDescription/Schema/DDLSchema.xsd">
<ConstantsSection label="hgcal.xml" eval="true">
<Constant name="WaferSize" va... | {
"pile_set_name": "Github"
} |
/* jquery.Jcrop.css v0.9.12 - MIT License */
/*
The outer-most container in a typical Jcrop instance
If you are having difficulty with formatting related to styles
on a parent element, place any fixes here or in a like selector
You can also style this element if you want to add a border, etc
A better method ... | {
"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 ... | {
"pile_set_name": "Github"
} |
// OpenArchive.cpp
#include "StdAfx.h"
#include "Common/Wildcard.h"
#include "Windows/FileDir.h"
#include "Windows/PropVariant.h"
#include "../../Common/FileStreams.h"
#include "../../Common/StreamUtils.h"
#include "DefaultName.h"
#include "OpenArchive.h"
using namespace NWindows;
// Static-SFX (for Linux) can b... | {
"pile_set_name": "Github"
} |
/*
* Copyright 2011-2020 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | {
"pile_set_name": "Github"
} |
// RUN: %clang_cc1 -verify -fsyntax-only -triple x86_64-pc-linux-gnu %s -Wno-literal-conversion -Wfloat-conversion -DFLOAT_CONVERSION -DZERO -DBOOL -DCONSTANT_BOOL -DOVERFLOW
// RUN: %clang_cc1 -verify -fsyntax-only -triple x86_64-pc-linux-gnu %s -Wno-conversion -Wfloat-overflow-conversion -DOVERFLOW
// RUN: %clang_cc1... | {
"pile_set_name": "Github"
} |
$TestsPath = Split-Path $MyInvocation.MyCommand.Path
$RootFolder = (Get-Item $TestsPath).Parent
Push-Location -Path $RootFolder.FullName
Set-Location -Path $RootFolder.FullName
#Hack to load the [System.Drawing.Color] ahead of time
#read more here -> https://github.com/PowerShell/vscode-powershell/issues/219
#Micro... | {
"pile_set_name": "Github"
} |
import React from "react";
import PropTypes from "prop-types";
import { format } from "d3-format";
import { timeFormat } from "d3-time-format";
import { ChartCanvas, Chart } from "react-stockcharts";
import {
BarSeries,
AreaSeries,
CandlestickSeries,
LineSeries,
RSISeries,
} from "react-stockcharts/lib/series";... | {
"pile_set_name": "Github"
} |
{
"ecmul_0-3_9935_21000_128" : {
"_info" : {
"comment" : "Puts the point (0, 3) and the factor 115792089237316195423570985008687907853269984665640564039457584007913129639935 into the ECMUL precompile, truncating or expanding the input data to 128 bytes. Gives the execution 21000 bytes",
... | {
"pile_set_name": "Github"
} |
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
context('data types')
source('utilities.R')
# helper functions
data_frame <- function(...) {
data.frame(..., ... | {
"pile_set_name": "Github"
} |
/*
* PCM timer handling on ctxfi
*
* This source file is released under GPL v2 license (no other versions).
* See the COPYING file included in the main directory of this source
* distribution for the license terms and conditions.
*/
#include <linux/slab.h>
#include <linux/math64.h>
#include <linux/moduleparam.h>... | {
"pile_set_name": "Github"
} |
MODULE System; (* SJ *)
(* Note : this module is physically identical to SYSTEM, but you can only
use the identifiers declared here with System.?, whereas the compiler
routines like NEW can only be used with SYSTEM.? . Therefore both
modules must appear in the import list, though only one is linked later... | {
"pile_set_name": "Github"
} |
require("long-stack-traces");
var fs=require("fs")
_ = require("underscore");
window = null;
suite("tests suite", function () {
test("define suites", function (done) {
this.timeout(15000);
var jsdom = require("jsdom");
jsdom.env(
"some.html",
[],
function (errors, domWindow) {
function fakeWorkerPr... | {
"pile_set_name": "Github"
} |
require("long-stack-traces");
var fs=require("fs")
_ = require("underscore");
window = null;
suite("tests suite", function () {
test("define suites", function (done) {
this.timeout(15000);
var jsdom = require("jsdom");
jsdom.env(
"some.html",
[],
function (errors, domWindow) {
function fakeWorkerPr... | {
"pile_set_name": "Github"
} |
"""distutils.file_util
Utility functions for operating on single files.
"""
__revision__ = "$Id: file_util.py 86238 2010-11-06 04:06:18Z eric.araujo $"
import os
from distutils.errors import DistutilsFileError
from distutils import log
# for generating verbose output in 'copy_file()'
_copy_action = {None: 'copying'... | {
"pile_set_name": "Github"
} |
import {
Localized,
withLocalization,
WithLocalizationProps,
} from '@fluent/react';
import * as React from 'react';
import { useEffect, useRef, useState } from 'react';
import { DAILY_GOALS } from '../../../constants';
import { useAccount, useAPI } from '../../../hooks/store-hooks';
import { useTypedSelector } f... | {
"pile_set_name": "Github"
} |
package com.ctrip.framework.apollo.biz.entity;
import com.google.common.base.MoreObjects;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.PrePersist;
import javax.persistence.PreUpd... | {
"pile_set_name": "Github"
} |
# Copyright 2018/2019 The RLgraph authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2012 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 contribut... | {
"pile_set_name": "Github"
} |
{
"description": "Decimal128",
"bson_type": "0x13",
"test_key": "d",
"valid": [
{
"description": "[basx023] conform to rules and exponent will be in permitted range).",
"canonical_bson": "1800000013640001000000000000000000000000003EB000",
"canonical_extjson": "{\"d\"... | {
"pile_set_name": "Github"
} |
Ext.Loader.setConfig({enabled: true});
Ext.Loader.setPath('Ext.ux', '../ux/');
Ext.require([
'Ext.grid.*',
'Ext.data.*',
'Ext.util.*',
'Ext.grid.plugin.BufferedRenderer',
'Ext.ux.form.SearchField'
]);
Ext.onReady(function(){
Ext.define('ForumThread', {
extend: 'Ext.data.Model',
... | {
"pile_set_name": "Github"
} |
#!/usr/bin/env ruby
#
# Copyright 2010 Twitter, 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 o... | {
"pile_set_name": "Github"
} |
tstgtgen
gtgen out=xxxlab1 'tiecnvrt +
geotiff=("ModelTiePointTag=(2,3,0,350807.4,5317081.3,0.0)", +
"ModelTiePointTag=(202,103,0,351807.4,5316081.3,0.0)", +
"ModelTiePointTag=(2,103,0,350807.4,5316081.3,0.0)", +
"GTRasterTypeGeoKey=1(RasterPixelIsArea)")
Beginning VICAR task gtgen
... | {
"pile_set_name": "Github"
} |
import redis
import time
import click
import multiprocessing
import sys
def worker_func(args):
host, port, start_ts, tsrange, pipeline_size, key_index, key_format, check_only = args
redis_client = redis.Redis(host, port, decode_responses=True)
if check_only:
res = redis_client.execute_command('TS.... | {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2009-2020 Weasis Team and other contributors.
*
* This program and the accompanying materials are made available under the terms of the Eclipse
* Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.weasis.dicom.exp... | {
"pile_set_name": "Github"
} |
#pragma once
#include "AI/Monsters/ai_monster_squad.h"
#include "AI/Monsters/ai_monster_squad_manager.h"
#define TEMPLATE_SPECIALIZATION template <\
typename _Object\
>
#define CStateMonsterAttackRunAbstract CStateMonsterAttackRun<_Object>
TEMPLATE_SPECIALIZATION
void CStateMonsterAttackRunAbstract::initialize()
{... | {
"pile_set_name": "Github"
} |
libXfont provides the core of the legacy X11 font system, handling the
index files (fonts.dir, fonts.alias, fonts.scale), the various font file
formats, and rasterizing them. It is used by the X servers, the
X Font Server (xfs), and some font utilities (bdftopcf for instance),
but should not be used by normal X11 cli... | {
"pile_set_name": "Github"
} |
package com.bdc.ociney.view.textview;
import android.graphics.Paint;
import android.view.Gravity;
import android.widget.TextView;
/*!
*
* TextJustifyUtils.java
* @author Mathew Kurian
*
* From TextJustify-Android Library v1.0.2
* https://github.com/bluejamesbond/TextJustify-Android
*
* Please report any is... | {
"pile_set_name": "Github"
} |
/*
Copyright 2017 The Kubernetes 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 in writing, ... | {
"pile_set_name": "Github"
} |
// REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
// -flto causes a switch to llvm-bc object files.
// RUN: %clangxx -nocudainc -nocudalib -ccc-print-phases -c %s -flto 2> %t
// RUN: FileCheck -check-prefix=CHECK-COMPILE-ACTIONS < %t %s
//
// CHECK-COMPILE-ACTIONS: 2: co... | {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.