text stringlengths 2 99k | meta dict |
|---|---|
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | {
"pile_set_name": "Github"
} |
function ts = shrink(t,f)
% im_shr = shrink(im0, f)
%
% It shrinks (spatially) an image into a factor f
% in each dimension. It does it by cropping the
% Fourier transform of the image.
% JPM, 5/1/95.
% Revised so it can work also with exponents of 3 factors: JPM 5/2003
[my,mx] = size(t);
T = fftshif... | {
"pile_set_name": "Github"
} |
DROP PROCEDURE IF EXISTS add_migration;
delimiter ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20171212192732');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20171212192732');
-- Add your query below.
-- "Anengineer" (wrong quest text)
-- ... | {
"pile_set_name": "Github"
} |
#ifndef BOOST_SHARED_PTR_HPP_INCLUDED
#define BOOST_SHARED_PTR_HPP_INCLUDED
//
// shared_ptr.hpp
//
// (C) Copyright Greg Colvin and Beman Dawes 1998, 1999.
// Copyright (c) 2001-2008 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
... | {
"pile_set_name": "Github"
} |
#!/bin/bash
#
# This test is for basic NAT functionality: snat, dnat, redirect, masquerade.
#
# Kselftest framework requirement - SKIP code is 4.
ksft_skip=4
ret=0
test_inet_nat=true
sfx=$(mktemp -u "XXXXXXXX")
ns0="ns0-$sfx"
ns1="ns1-$sfx"
ns2="ns2-$sfx"
cleanup()
{
for i in 0 1 2; do ip netns del ns$i-"$sfx";done... | {
"pile_set_name": "Github"
} |
#ifndef CLASS_NCINE_TEXTURELOADERKTX
#define CLASS_NCINE_TEXTURELOADERKTX
#include <cstdint> // for header
#include "ITextureLoader.h"
namespace ncine {
/// KTX texture loader
class TextureLoaderKtx : public ITextureLoader
{
public:
explicit TextureLoaderKtx(const char *filename);
explicit TextureLoaderKtx(nctl:... | {
"pile_set_name": "Github"
} |
# git clean
> Remove untracked files from the working tree.
> More information: <https://git-scm.com/docs/git-clean>.
- Delete files that are not tracked by git:
`git clean`
- Interactively delete files that are not tracked by git:
`git clean -i`
- Show what files would be deleted without actually deleting them:
... | {
"pile_set_name": "Github"
} |
//
// ViewController+Streamer.swift
// TimePitchStreamer
//
// Created by Syed Haris Ali on 6/5/18.
// Copyright © 2018 Ausome Apps LLC. All rights reserved.
//
import Foundation
import AudioStreamer
import os.log
import UIKit
extension ViewController: StreamingDelegate {
func streamer(_ streamer: Stream... | {
"pile_set_name": "Github"
} |
package stacktrace
import (
"path/filepath"
"runtime"
"strings"
)
// NewFrame returns a new stack frame for the provided information
func NewFrame(pc uintptr, file string, line int) Frame {
fn := runtime.FuncForPC(pc)
if fn == nil {
return Frame{}
}
pack, name := parseFunctionName(fn.Name())
return Frame{
... | {
"pile_set_name": "Github"
} |
========================================================================
控制台应用程序:DllToShellCode 项目概述
========================================================================
应用程序向导已为您创建了此 DllToShellCode 应用程序。
本文件概要介绍组成 DllToShellCode 应用程序的每个文件的内容。
DllToShellCode.vcxproj
这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文... | {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Source: extern/util.js | Blend4Web API Reference</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/... | {
"pile_set_name": "Github"
} |
// Copyright (c) 2001-2011 Hartmut Kaiser
//
// 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)
#if !defined(BOOST_SPIRIT_LEXER_MAR_22_2007_1008PM)
#define BOOST_SPIRIT_LEXER_MAR_22_2007_1008PM
#if defined(_MSC_... | {
"pile_set_name": "Github"
} |
// Copyright 2020 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.
#ifndef CONTENT_BROWSER_CONVERSIONS_CONVERSION_REPORTER_IMPL_H_
#define CONTENT_BROWSER_CONVERSIONS_CONVERSION_REPORTER_IMPL_H_
#include <stdint.h>
#incl... | {
"pile_set_name": "Github"
} |
/* Copyright 2014 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... | {
"pile_set_name": "Github"
} |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.addDefault = addDefault;
exports.addNamed = addNamed;
exports.addNamespace = addNamespace;
exports.addSideEffect = addSideEffect;
Object.defineProperty(exports, "ImportInjector", {
enumerable: true,
get: function () {
return... | {
"pile_set_name": "Github"
} |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#pragma once
#include "cmConfigure.h" // IWYU pragma: keep
#include <string>
#include "cmLinkLineComputer.h"
class cmGlobalNinjaGenerator;
class cmOutputConverter;
cla... | {
"pile_set_name": "Github"
} |
using System;
using Urho;
namespace Urho.Actions
{
public class EaseInOut : EaseRateAction
{
#region Constructors
public EaseInOut (FiniteTimeAction action, float rate) : base (action, rate)
{
}
#endregion Constructors
protected internal override ActionState StartAction(Node target)
{
return new... | {
"pile_set_name": "Github"
} |
undefined
1
1
13
[object Object]
undefined
1
1
13
[object Object]
| {
"pile_set_name": "Github"
} |
David Robillard <d@drobilla.net>
| {
"pile_set_name": "Github"
} |
require "./sys/types"
lib LibC
VEOF = 4
VEOL = 11
VERASE = 2
VINTR = 0
VKILL = 3
VMIN = 6
VQUIT = 1
VSTART = 8
VSTOP = 9
VSUSP = 10
BRKINT = 0o000002
ICRNL = 0o000400
IGNBRK ... | {
"pile_set_name": "Github"
} |
include(FeatureSummary)
if(BUILD_TESTING)
# for the actual gtest:
# at least in debian, they are the package only installs their source code,
# so if one wants to use them, he needs to compile them in-tree
include(GoogleTest)
add_dependencies(dependencies gtest gmock_main)
endif()
if(BUILD_BENCHMARKING)
... | {
"pile_set_name": "Github"
} |
<?php
/**
* PHPUnit
*
* Copyright (c) 2001-2013, Sebastian Bergmann <sebastian@phpunit.de>.
* 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 ... | {
"pile_set_name": "Github"
} |
#import "CSStreamHandle.h"
#include <bzlib.h>
#define CSBzip2Handle XADBzip2Handle
extern NSString *CSBzip2Exception;
@interface CSBzip2Handle:CSStreamHandle
{
CSHandle *parent;
off_t startoffs;
bz_stream bzs;
BOOL inited,checksumcorrect;
uint8_t inbuffer[16*1024];
}
+(CSBzip2Handle *)bzip2HandleWithHandle:(... | {
"pile_set_name": "Github"
} |
#include "JavascriptInvocation.h"
#include "WebPage.h"
#include "InvocationResult.h"
#include <QApplication>
#include <QEvent>
#include <QContextMenuEvent>
QMap<QString, Qt::KeyboardModifiers> JavascriptInvocation::m_modifiersMap(JavascriptInvocation::makeModifiersMap());
JavascriptInvocation::JavascriptInvocation(co... | {
"pile_set_name": "Github"
} |
#pragma once
#include <agz/editor/resource/pool/name_resource_pool_ui.h>
#include <agz/editor/resource/resource.h>
AGZ_EDITOR_BEGIN
class Editor;
template<typename TracerObject>
class NameResourcePool : public QObject, public ResourcePool<TracerObject>
{
public:
NameResourcePool(
ObjectContext &obj_ctx... | {
"pile_set_name": "Github"
} |
/*
* Realtek RTL28xxU DVB USB driver
*
* Copyright (C) 2009 Antti Palosaari <crope@iki.fi>
* Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
*
* 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 Softw... | {
"pile_set_name": "Github"
} |
FactoryBot.define do
factory :user_host_access_group do
user { nil }
host_access_group { nil }
end
end
| {
"pile_set_name": "Github"
} |
import java.util.*;
class MinStack {
Stack<Integer> data = new Stack<Integer>();
Stack<Integer> minData = new Stack<Integer>();
public MinStack() {}
public void push(int x) {
data.push(x);
if (minData.isEmpty() || x <= getMin()) {
minData.push(x);
}
}
public... | {
"pile_set_name": "Github"
} |
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using System.Collections.Generic;
using UnityEditor.ShortcutManagement;
using UnityEngine;
namespace UnityEditor
{
[PriorityContext, ReserveModif... | {
"pile_set_name": "Github"
} |
function ternary(cond,then_,else_) if cond then return then_() else return else_() end end
function ternary_value(cond,then_,else_) if cond then return then_ else return else_ end end
function eps() return 1e-18; end
function pi() return 3.1415926535897932384; end
function random() ... | {
"pile_set_name": "Github"
} |
--TEST--
Closures can be generators
--FILE--
<?php
$genFactory = function() {
yield 1;
yield 2;
yield 3;
};
foreach ($genFactory() as $value) {
var_dump($value);
}
?>
--EXPECT--
int(1)
int(2)
int(3)
| {
"pile_set_name": "Github"
} |
import operator_benchmark as op_bench
import torch
"""Microbenchmarks for element-wise Add operator. Supports both Caffe2/PyTorch."""
add_short_configs = op_bench.config_list(
attr_names=['M', 'N', 'K'],
attrs=[
[8, 16, 32],
[16, 16, 64],
[64, 64, 128],
],
cross_product_config... | {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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"
} |
{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf400
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww25140\viewh18960\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
\f0\fs26 \cf0 Scala is licensed... | {
"pile_set_name": "Github"
} |
package com.tinyspeck.engine.spritesheet {
public class AnimationSequenceCommand {
public var A:Array;
public var loop:Boolean;
public var loops_from:uint;
public var name:String = '';
public function AnimationSequenceCommand(A:Array=null, loop:Boolean=false, loops_from:uint=0) {
this.A = A;
th... | {
"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"
} |
# Class cis::el7::9_2_15
#
# CIS Security Benchmark for RHEL7
#
class cis::el7::9_2_15 {
include cis::linuxcontrols::c0099
}
| {
"pile_set_name": "Github"
} |
dnl AC_NEED_BYTEORDER_H ( HEADER-TO-GENERATE )
dnl Copyright 2001-2002 by Dan Fandrich <dan@coneharvesters.com>
dnl This file may be copied and used freely without restrictions. No warranty
dnl is expressed or implied.
dnl
dnl Create a header file that guarantees that byte swapping macros of the
dnl ntohl variety as w... | {
"pile_set_name": "Github"
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <atomic>
#include <string>
#include "core/session/onnxruntime_c_api.h"
#include "core/common/logging/isink.h"
#include "core/platform/ort_mutex.h"
#include "core/common/status.h"
#include "core/framewo... | {
"pile_set_name": "Github"
} |
// ***************************************************************************
// *
// * Copyright (C) 2013 International Business Machines
// * Corporation and others. All Rights Reserved.
// * Tool: org.unicode.cldr.icu.NewLdml2IcuConverter
// * Source File: <path>/common/main/zh_Hans.xml
// *
// *******************... | {
"pile_set_name": "Github"
} |
/**
* @file CosaServo.ino
* @version 1.0
*
* @section License
* Copyright (C) 2013-2015, Mikael Patel
*
* This 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 Software Foundation; either
* version 2.1 of t... | {
"pile_set_name": "Github"
} |
/*
* This file is part of Bisq.
*
* bisq 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.
*
* bisq is distributed in the ... | {
"pile_set_name": "Github"
} |
/*
* Reader.cpp
* zxing
*
* Created by Christian Brunschen on 13/05/2008.
* Copyright 2008 ZXing 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
*
... | {
"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.
// Make sure that go test runs Example_Y before Example_B, preserving source order.
package p
import "fmt"
func Example_Y() {
n++
fmt.Println(n)
// Output... | {
"pile_set_name": "Github"
} |
import io
import os
import select
import socket
import time
import utils
utils.new_ns()
port = 1
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
s.bind(('127.0.0.1', port))
s.listen(16)
tcpdump = utils.tcpdump_start(port)
c = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
c.connect(('127.0.0.1', po... | {
"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.
//
#import "MMSearchBarDisplayController.h"
#import "FavFilterViewControllerDelegate.h"
#import "FavForwardLogicDelegate.h"
#import "FavSearchControllerDelegate.h"
#import "FavTypeIte... | {
"pile_set_name": "Github"
} |
# Changlog
## Version 2.1.7 - May 8, 2015
* Check type of G_vmlCanvasManager. #138
## Version 2.1.6 - Dec 15, 2014
* Added option for track width
## Version 2.1.5 - Feb 28, 2014
* Fixed build error for minified vanilla version
## Version 2.1.4 - Feb 1, 2014
* Various updates and pull requests
## Version 2.1.3 - De... | {
"pile_set_name": "Github"
} |
.class public final Lcom/google/android/gms/internal/av;
.super Ljava/lang/Object;
# interfaces
.implements Landroid/os/Parcelable$Creator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroid/os/Parcelable$Creator",
"<",
"Lcom/g... | {
"pile_set_name": "Github"
} |
/*
Copyright 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, softw... | {
"pile_set_name": "Github"
} |
package org.hswebframework.web.bean;
@FunctionalInterface
public interface Converter {
<T> T convert(Object source, Class<T> targetClass,Class[] genericType);
} | {
"pile_set_name": "Github"
} |
/* ============================================================
*
* This file is a part of digiKam project
* https://www.digikam.org
*
* Date : 2017-07-04
* Description : Autodetect Netscape Messenger binary program
*
* Copyright (C) 2017-2019 by Gilles Caulier <caulier dot gilles at gmail dot com>
*
*... | {
"pile_set_name": "Github"
} |
/* ------------------------------------------------------------------------------
*
* # C3.js - lines and areas
*
* Demo setup of line, step and area charts
*
* Version: 1.0
* Latest update: August 1, 2015
*
* ---------------------------------------------------------------------------- */
$(function () {
... | {
"pile_set_name": "Github"
} |
/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
**... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019 The Android Open Source Project
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/LIC... | {
"pile_set_name": "Github"
} |
/**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... | {
"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 (version 1.7.0_51) on Tue Mar 25 15:16:45 CET 2014 -->
<title>amten.ml.examples</title>
<meta name="date" content="2014-03-25">
<link rel="stylesheet"... | {
"pile_set_name": "Github"
} |
#ifndef MAXMINDDB_CONFIG_H
#define MAXMINDDB_CONFIG_H
#ifndef MMDB_UINT128_USING_MODE
/* Define as 1 if we we use unsigned int __atribute__ ((__mode__(TI))) for uint128 values */
#define MMDB_UINT128_USING_MODE 0
#endif
#ifndef MMDB_UINT128_IS_BYTE_ARRAY
/* Define as 1 if we don't have an unsigned __int128 type */
#d... | {
"pile_set_name": "Github"
} |
#!/usr/bin/env bash
# This script shows how to build the Docker image and push it to ECR to be ready for use
# by SageMaker.
# The argument to this script is the image name. This will be used as the image on the local
# machine and combined with the account and region to form the repository name for ECR.
DIR="$( cd ... | {
"pile_set_name": "Github"
} |
var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat');
require('../env.js');
suite.addBatch({
'linearalgebra': {
'topic': function() {
return jStat;
},
'exp function works': function(jStat) {
var A = jStat([[-1, 0], [1, 2]]);
assert.deepEqual(A.... | {
"pile_set_name": "Github"
} |
s(:block,
s(:send,
s(:lvar, :foo), :fun,
s(:begin,
s(:int, "1"))), nil, nil)
| {
"pile_set_name": "Github"
} |
/* -------------------------------------------------------------------------
*
* pg_range.cpp
* routines to support manipulation of the pg_range relation
*
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDEN... | {
"pile_set_name": "Github"
} |
import io
import unittest
class TestFileBasedBuffer(unittest.TestCase):
def _makeOne(self, file=None, from_buffer=None):
from waitress.buffers import FileBasedBuffer
buf = FileBasedBuffer(file, from_buffer=from_buffer)
self.buffers_to_close.append(buf)
return buf
def setUp(se... | {
"pile_set_name": "Github"
} |
// Copyright (C) 2020 Joel Rosdahl and other contributors
//
// See doc/AUTHORS.adoc for a complete list of contributors.
//
// 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 3 o... | {
"pile_set_name": "Github"
} |
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_App_iOS : NSObject
@end
@implementation PodsDummy_Pods_App_iOS
@end
| {
"pile_set_name": "Github"
} |
<?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 6/3/14
* Time: 12:07 AM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Sql\QueryBuilder\Syntax;
use NilPortugues\Sql\QueryBuild... | {
"pile_set_name": "Github"
} |
@import '~scss/variables';
@import '~scss/mixins';
.annotations {
& > li {
padding: 12px 32px;
border-radius: 60px;
background-color: $bg-color;
border: solid 1px $border-color;
font-family: $font-family-id;
& + li {
margin-top: 8px;
}
}
}
| {
"pile_set_name": "Github"
} |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const Hook = require("./Hook");
const HookCodeFactory = require("./HookCodeFactory");
class SyncHookCodeFactory extends HookCodeFactory {
content({ onError, onDone, rethrowIfPossible }) {
return this.c... | {
"pile_set_name": "Github"
} |
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go
// Code generated by the command above; see README.md. DO NOT EDIT.
// +build arm64,linux
package unix
const (
SizeofPtr = 0x8
SizeofLong = 0x8
)
type (
_C_long int64
)
type Timespec struct {
Sec int64
Nse... | {
"pile_set_name": "Github"
} |
/*
This file is part of Darling.
Copyright (C) 2019 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"
} |
extends layout
block content
.home-hero
h1= title
p Welcome to the CP&L outage reporting tool. From here you can view all reported outages via the dashboard screen, or report a new outage. Our technicians will address outages as soon as possible.
.text-center
a(href='/dashboard').btn.btn-lg.... | {
"pile_set_name": "Github"
} |
'use strict';
require('./setup');
var Peaks = require('../../src/main');
var Point = require('../../src/point');
describe('Point', function() {
describe('update', function() {
var p;
beforeEach(function(done) {
var options = {
containers: {
overview: document.getElementById('overvi... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<path
android:fillColor="#ff000000"
android:pathData="M5,15H3v4c0,1.1 0.9,2 2,2... | {
"pile_set_name": "Github"
} |
package com.alipay.api.response;
import java.util.List;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
import com.alipay.api.domain.StandardCategoryInfo;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: koubei.item.category.children.batchquery ... | {
"pile_set_name": "Github"
} |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | {
"pile_set_name": "Github"
} |
/*
* Generic libav* helpers
*
* This file is part of MPlayer.
*
* MPlayer 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 version.
*
*... | {
"pile_set_name": "Github"
} |
# Copyright (C) 2015 The Android Open Source Project
#
# 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 ... | {
"pile_set_name": "Github"
} |
/*
* Copyright 2012 Advanced Micro Devices, Inc.
*
* 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, modify, m... | {
"pile_set_name": "Github"
} |
.redactor-clips-list {
list-style: none;
margin: 0;
padding: 0;
}
.redactor-clips-list li {
display: inline-block;
margin-right: 4px;
margin-bottom: 4px;
}
.redactor-clips-list span {
white-space: nowrap;
background: rgba(0,125,255, .75);
color: #fff;
display: inline-block;
p... | {
"pile_set_name": "Github"
} |
/*
* Copyright 2002 Michael Günnewig
*
* This 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 Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library... | {
"pile_set_name": "Github"
} |
<?php
/*
* This file is part of SwiftMailer.
* (c) 2004-2009 Chris Corbyn
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Standard factory for creating CharacterReaders.
*
* @author Chris Corbyn
*/
class Swift_Charac... | {
"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\Contracts\Cache;
use Psr\Cache\CacheItemPoolInterface;
use Psr\... | {
"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"
} |
import * as fs from 'fs-extra';
import * as os from 'os';
import * as path from 'path';
import { Cache } from '../src/Cache';
describe('Cache', () => {
let cacheDir: string;
let cache: Cache;
const dummyUrl = 'dummy://';
const sanitizedDummyUrl = 'dummy';
beforeEach(async () => {
cacheDir = await fs.m... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="ISO-8859-1"?>
<decorators>
<decorator name="authorizedViewDecorator" page="/WEB-INF/views/layout/layout.jsp">
<pattern>/*</pattern>
</decorator>
<!-- <decorator name="guestViewDecorator" page="/WEB-INF/views/layout/guestLayout.jsp">
<pattern>/login.htm</pattern>
<patter... | {
"pile_set_name": "Github"
} |
module Sum where
import Prelude hiding (sum)
fold c n [] = n
fold c n ((h : t)) = c h (fold c n t)
main = sum [1 .. 4] where sum = fold (+) 0
| {
"pile_set_name": "Github"
} |
# 1 "qpmouse.c"
static __inline__ void atomic_sub(int i, volatile atomic_t *v)
{
__asm__ __volatile__(
"" "subl %1,%0"
:"=m" ((*(volatile struct { int a[100]; } *) v ) )
:"ir" (i), "m" ((*(volatile struct { int a[100]; } *) v ) ));
}
union task_union {
struct task_struct task;
unsigned long stack[2048];... | {
"pile_set_name": "Github"
} |
{ "extends": "dtslint/dt.json" }
| {
"pile_set_name": "Github"
} |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace Fonlow.DocComment
{
/// <summary>
/// Helper functions of accessing doc comments of a method
/// </summary>
public class DocCommentHelper
{
public static string GetSummary(docMember m)
{
if (m == null ||... | {
"pile_set_name": "Github"
} |
#
# Note: Due to MELPA distributing directly from github source version
# needs to be embedded in files as is without preprocessing.
#
# Version string is present in:
# - Makefile
# - haskell-mode.el
# - haskell-mode.texi
#
# We should have a script that changes it everywhere it is needed and
# syncs it with current gi... | {
"pile_set_name": "Github"
} |
#ifndef GIT_COMPAT_UTIL_H
#define GIT_COMPAT_UTIL_H
#ifndef FLEX_ARRAY
/*
* See if our compiler is known to support flexible array members.
*/
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
# define FLEX_ARRAY /* empty */
#elif defined(__GNUC__)
# if (__GNUC__ >= 3)
# define FLEX_ARRAY /* empty */
#... | {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: 080a5732fc1b26945be5524e7f65ec9a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2018 Sam Sun <github-contact@samczsun.com>
*
* 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 ap... | {
"pile_set_name": "Github"
} |
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Before Submitting an Issue**
* If you are having issues loading a world, please attach it to the current version world thread (see pinned issues).
* If you get an unhandled exception or crash, please _**check your ... | {
"pile_set_name": "Github"
} |
/* global
angular, lazyLoadResolver, BASE_PATH
*/
angular.module('starter').config(function ($stateProvider) {
$stateProvider
.state('facebook-list', {
url: BASE_PATH + '/social/mobile_facebook_list/index/value_id/:value_id',
controller: 'FacebookListController',
tem... | {
"pile_set_name": "Github"
} |
import { Menu, Message, SplitButton } from '@alifd/next';
import React, { useState } from 'react';
import styles from './index.module.scss';
const descriptor = {
'darwin-x64-prod': {
download: 'For MacOS',
env: 'macOS 10.9 及以上',
},
'win-x64-prod': {
download: 'For Windows X64',
env: '6... | {
"pile_set_name": "Github"
} |
{
"settings": {
"actions": [
{
"action": "iced-coffee-script",
"enabled": 1,
"version": "*-stable"
}
]
},
"2x-settings": {
"legacyCompilationEnabled": true
},
"sources": {
"test.coffee.md": true
},
"outputs": {
"test.js": [
"alert(42)",
... | {
"pile_set_name": "Github"
} |
package io.spring2go.piggymetrics.statistics.controller;
import io.spring2go.piggymetrics.statistics.domain.Account;
import io.spring2go.piggymetrics.statistics.domain.timeseries.DataPoint;
import io.spring2go.piggymetrics.statistics.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowi... | {
"pile_set_name": "Github"
} |
//! Computing stack layout.
use crate::ir::stackslot::{StackOffset, StackSize, StackSlotKind};
use crate::ir::{StackLayoutInfo, StackSlots};
use crate::result::{CodegenError, CodegenResult};
use core::cmp::{max, min};
/// Compute the stack frame layout.
///
/// Determine the total size of this stack frame and assign ... | {
"pile_set_name": "Github"
} |
import React from 'react';
import * as CSS from 'csstype';
import cx from 'clsx';
import { createStyles, makeStyles } from '@material-ui/core/styles';
import { Theme } from '@material-ui/core';
import {
At,
Gap,
Provider,
useGapLookup,
BreakpointProvider,
useBreakpointLookup,
} from './core';
import Item, {... | {
"pile_set_name": "Github"
} |
// Copyright 2018 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.
// +build !gccgo,!purego
#include "go_asm.h"
#include "textflag.h"
// This is an implementation of the ChaCha20 encryption algorithm as
// specified in RFC 75... | {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.