text stringlengths 2 99.9k | meta dict |
|---|---|
# -*- encoding: utf-8 -*-
#
# Author:: Michael Heap (<m@michaelheap.com>)
#
# Copyright (C) 2015 Michael Heap
#
# 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/lice... | {
"pile_set_name": "Github"
} |
# -*- encoding: utf-8 -*-
from emokit.tasks import EmotivWriterTask
from emokit.util import values_header, writer_task_to_line
# timestamp + 2 * 14 eeg + 3 gyro = 32
LINE_LENGTH = 32
def _create_EmotivWriterTask():
data = {}
item = {"value": 1, "quality": 1}
header = set([head.split(" ")[0] fo... | {
"pile_set_name": "Github"
} |
/*
//
// Copyright (c) 2012 The ANGLE 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.
//
This file contains the Yacc grammar for GLSL ES preprocessor expression.
IF YOU MODIFY THIS FILE YOU ALSO NEED TO RUN generate_parser.s... | {
"pile_set_name": "Github"
} |
<?php
namespace Test\Hal\Metric\System\UnitTesting;
use Hal\Application\Config\Config;
use Hal\Metric\Metrics;
use Hal\Metric\System\UnitTesting\UnitTesting;
/**
* @group unit
*/
class UnitTestingTest extends \PHPUnit\Framework\TestCase
{
public function testICanParseJunitXmlFile()
{
$config = new ... | {
"pile_set_name": "Github"
} |
// This file contains incorrect key data in a variety of formats.
// "key" -- either a dictionary for JWK, or hex encoded bytes for PKCS8/SPKI.
// "key_format" -- one of: "jwk", "pkcs8", "spki"
// "error" -- The expected rejection reason when importing the key.
[
// -----------------------------------------------... | {
"pile_set_name": "Github"
} |
package com.enonic.xp.media;
import java.util.Arrays;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
// Image orientation values from EXIF metadata
// See http://www.impulseadventure.com/photo/exif-orientation.html
public enum ImageOrientation
{
TopLeft( 1 ), // 0th ... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="shapeRed">#F44336</color>
<color name="trailRed">#B71C1C</color>
<color name="backgroundRed">#FFCD... | {
"pile_set_name": "Github"
} |
/***********************************************************************
*
* Copyright (C) 2013 Graeme Gott <graeme@gottcode.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 v... | {
"pile_set_name": "Github"
} |
/*
* This source code is public domain.
*
* Authors: Olivier Lapicque <olivierl@jps.net>
*/
//////////////////////////////////////////////
// DSIK Internal Format (DSM) module loader //
//////////////////////////////////////////////
#include "stdafx.h"
#include "sndfile.h"
#pragma pack(1)
#define DSMID_RIFF 0x464... | {
"pile_set_name": "Github"
} |
AWSTemplateFormatVersion: "2010-09-09"
Description: "Sets up a managed policy for Mig to build and deploy to s3."
Parameters:
S3BucketMigBuilds:
Type: "String"
Description: "The S3 bucket that your build job will be writing out to. (arn:aws:s3:::mig-agent-releases)"
Resources:
PutBuildstoS3:
Type: AWS::... | {
"pile_set_name": "Github"
} |
---
uti: com.xamarin.workbook
id: 0c6ae18e-d9c8-4791-b48d-65b7e3856fdd
platforms:
- Console
packages:
- id: Newtonsoft.Json
version: 9.0.1
---
# Regression test for NSUrlSessionHandler support in Console workbooks on Mac
```csharp
#r "System.Net.Http"
#r "Newtonsoft.Json"
```
```csharp
using System.Net.Http;
using... | {
"pile_set_name": "Github"
} |
#!../manage/exec-in-virtualenv.sh
# -*- coding: UTF-8 -*-
# File: authorfetch.py
# Date: 五 6月 13 18:06:08 2014 +0000
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
from collections import defaultdict
from lib.mailutil import sendmail
from ukdbconn import get_mongo
def get_paper_list(name):
db = get_mongo('paper')
... | {
"pile_set_name": "Github"
} |
! { dg-do run }
!TODO: Move these testcases to gfortran testsuite
! once compilation with pthreads is supported there
! PR55818 Reading a REAL from a file which doesn't end in a new line fails
! Test case from PR reporter.
implicit none
integer :: stat
!integer :: var ! << works
real :: var ! << fails
character(len=... | {
"pile_set_name": "Github"
} |
#!/bin/bash
# Install cairo
# see http://www.linuxfromscratch.org/blfs/view/svn/x/cairo.html
CAIRO_VERSION=1.17.2+f93fc72c03e
CAIRO_VERSION_PKGCONFIG=1.17.3
CAIRO_TAR="cairo-${CAIRO_VERSION}.tar.xz"
#CAIRO_SITE="https://www.cairographics.org/releases"
CAIRO_SITE="http://anduin.linuxfromscratch.org/BLFS/cairo/"
if down... | {
"pile_set_name": "Github"
} |
import { IApiVersion } from '@syndesis/models';
import * as React from 'react';
import { IFetchState } from './Fetch';
import { SyndesisFetch } from './SyndesisFetch';
export interface IWithApiVersionProps {
children(props: IFetchState<IApiVersion>): any;
}
export class WithApiVersion extends React.Component<IWithA... | {
"pile_set_name": "Github"
} |
128
4
0 4 8 12 16 20 24 28 32 36 40 45 49 53 57 61 65 69 73 77 81 85 89 93 97 101 105 109 113 117 121 125 130 134 138 142 146 150 154 158 162 166 170 174 178 182 186 190 194 198 202 206 210 215 219 223 227 231 235 239 243 247 251 255 255 251 247 243 239 235 231 227 223 219 215 210 206 202 198 194 190 186 182 178 174 17... | {
"pile_set_name": "Github"
} |
# AUTOGENERATED FILE
FROM balenalib/nanopi-neo-air-ubuntu:bionic-build
# remove several traces of debian python
RUN apt-get purge -y python.*
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# key 63C7CC90: ... | {
"pile_set_name": "Github"
} |
<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require __DIR__.'/shared.php';
$client = new Predis\Client($single_server);
/... | {
"pile_set_name": "Github"
} |
-module(app2_server).
-behaviour(gen_server).
%% API
-export([start_link/0]).
%% gen_server callbacks
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3]).
start_link() ->
gen_server:start_link({local, ginny}, ?MODULE, [], []).
init([]) ->
{ok, []}.
handle_call(_Req... | {
"pile_set_name": "Github"
} |
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{% if page.summary %}{{ page.summary | strip_html | strip_newlines | truncate: 160 }}{% endif %}">
<meta name="keywords" content="{{page.tag... | {
"pile_set_name": "Github"
} |
package com.stripe.model;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import com.stripe.BaseStripeTest;
import com.stripe.net.ApiResource;
import org.junit.jupiter.api.Test;
public class SourceMandateNotificationTest extends BaseStripeTes... | {
"pile_set_name": "Github"
} |
#pragma once
namespace cq {
namespace event {
enum Operation {
IGNORE = 0,
BLOCK = 1,
};
enum Type {
MESSAGE,
NOTICE,
REQUEST,
};
} // namespace event
namespace message {
enum Type {
PRIVATE,
... | {
"pile_set_name": "Github"
} |
typedef unsigned long size_t;
void foo()
{
const int x = 0;
_Static_assert(1,"Not a standard compliant compiler");
_Static_assert(sizeof(size_t) >= 8, "size_t must be at least 64-bits");
// This might be a machine architecture dependent tests.
_Static_assert(sizeof(void *) == sizeof(void(*)... | {
"pile_set_name": "Github"
} |
OpenMSX is free alternative music for OpenTTD game engine.
WWW: https://github.com/OpenTTD/OpenMSX
| {
"pile_set_name": "Github"
} |
/**
* Checks if `value` is greater than `other`.
*
* @static
* @memberOf _
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if `value` is greater than `other`, else `false`.
* @example
*
* _.gt(3, 1);
* // => true
*... | {
"pile_set_name": "Github"
} |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 25 2017 03:49:04).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "NSObject-Protocol.h"
#import "NSSharingServicePickerDelegate-Protocol.h"
#import "TMarkTornDown-Protocol.h"
@class NSMenuItem... | {
"pile_set_name": "Github"
} |
created: 20150221140726000
modified: 20150221141342000
tags: [[currentTiddler Variable]] [[Variable Examples]]
title: currentTiddler Variable (Examples)
type: text/vnd.tiddlywiki
The following two examples have the same meaning:
<$macrocall $name=".example" n="1" eg="""<$view field=title/>"""/>
<$macrocall $name=".ex... | {
"pile_set_name": "Github"
} |
<?php
/*
* Copyright 2016 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"
} |
//
// LGRecipeReposViewController.m
// AutoPkgr
//
// Created by Eldon Ahrold on 5/20/15.
// Copyright 2015 Eldon Ahrold
//
// 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"
} |
(*** hide ***)
// This block of code is omitted in the generated HTML documentation. Use
// it to define helpers that you do not want to show in the documentation.
#I "../../bin"
#r "C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/.NETFramework/v4.6.1/Facades/System.Runtime.dll"
(**
A Brief Int... | {
"pile_set_name": "Github"
} |
/**
* Used by `trimmedLeftIndex` and `trimmedRightIndex` to determine if a
* character code is whitespace.
*
* @private
* @param {number} charCode The character code to inspect.
* @returns {boolean} Returns `true` if `charCode` is whitespace, else `false`.
*/
function isSpace(charCode) {
return ((charCode <= 1... | {
"pile_set_name": "Github"
} |
package prom
import (
"context"
"net/http"
"net/url"
"github.com/kubecost/cost-model/pkg/log"
"github.com/kubecost/cost-model/pkg/util"
prometheus "github.com/prometheus/client_golang/api"
)
// Creates a new prometheus client which limits the total number of concurrent outbound requests
// allowed at a given m... | {
"pile_set_name": "Github"
} |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>wonder.frameworks</groupId>
<artifactId>misc</artifactId>
<version>7.2-SNAPSHOT</version>
</... | {
"pile_set_name": "Github"
} |
# Pure CSS Gaze
An ongoing series in which I create art using only CSS and HTML.
Inspired by Italian renaissance.
Rules I have for myself:
1. All elements must be typed out by hand
2. Only Atom text editor and Chrome Developer Tools allowed.
3. ~~SVG use is limited, and all shapes can only use hand-plotted coordin... | {
"pile_set_name": "Github"
} |
{
"name": "ISPConfig",
"author": "Andrew Horton",
"version": "0.3",
"description": "ISPConfig is a free, opensource hosting control panel",
"website": "http://www.ispconfig.org/",
"matches": [
{
"regexp": "(?i-mx:powered by <a HREF=\"http:\\/\\/www.ispconfig.org\">ISPConfig<\... | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "AB56AEDC-32DD-487C-8A33-2B18248C68CA"
type = "1"
version = "2.0">
</Bucket>
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!--
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... | {
"pile_set_name": "Github"
} |
import { ResourceBase } from '../resource';
import { Value } from '../dataTypes';
export interface ClientVpnAuthorizationRuleProperties {
ClientVpnEndpointId: Value<string>;
Description?: Value<string>;
AccessGroupId?: Value<string>;
TargetNetworkCidr: Value<string>;
AuthorizeAllGroups?: Value<boole... | {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2016 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <glib.h>
/* little endian */
typedef struct __attribute__((packed)) {
guint8 pkt_len;
guint8 type; /* FuEbitdoPktType */
guint8 subtype; /* FuEbitdoPktCmd */
guint16 cmd_len;
g... | {
"pile_set_name": "Github"
} |
ifneq ($(DESTDIR),"")
IDESTDIR=$(DESTDIR)/
endif
all:
@true
install:
mkdir -p $(IDESTDIR)$(IDATADIR)/hashkill/rule
cp -f * $(IDESTDIR)$(IDATADIR)/hashkill/rule
rm $(IDESTDIR)$(IDATADIR)/hashkill/rule/Makefile
clean:
distclean:
maintainer-clean: | {
"pile_set_name": "Github"
} |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | {
"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"
} |
// Copyright (c) 2018-present, NebulaChat Studio (https://nebula.chat).
// 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/LI... | {
"pile_set_name": "Github"
} |
#!/usr/bin/env node
const parseChangelog = require('changelog-parser');
async function extractChangelog(file, version) {
const changelog = await parseChangelog(file);
for (const entry of changelog.versions) {
if (entry.version === version) {
return entry.body;
}
}
return undefined;
}
async func... | {
"pile_set_name": "Github"
} |
basePath: /api
definitions:
Animal:
discriminator: type
properties:
id:
type: integer
type:
type: string
required:
- id
- type
Cat:
allOf:
- properties:
likesMilk:
type: boolean
required:
- likesMilk
- $ref: ... | {
"pile_set_name": "Github"
} |
import { AuthService } from '@abp/ng.core';
import { Component } from '@angular/core';
import { OAuthService } from 'angular-oauth2-oidc';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
})
export class HomeComponent {
get hasLoggedIn(): boolean {
return this.oAuthService.hasValidAcc... | {
"pile_set_name": "Github"
} |
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
pass
| {
"pile_set_name": "Github"
} |
#include "core_reloc_types.h"
void f(struct core_reloc_arrays___err_bad_zero_sz_arr x) {}
| {
"pile_set_name": "Github"
} |
## smembers ##
**Interface:** `/hustdb/smembers`
**Method:** `GET`
**Parameter:**
* **tb** (Required)
* **offset** (Required)
* **size** (Required)
* **start** (Optional, default: 0, >0 && <= 1024)
* **end** (Optional, default: 1024, >0 && <= 1024)
* **noval** (Optional, default: true)
* **async** (... | {
"pile_set_name": "Github"
} |
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("GraphX.Controls")]
[assembly: ComVisible(false)] | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>creator</key>
<string>org.robofab.ufoLib</string>
<key>formatVersion</key>
<integer>2</integer>
</dict>
</plist>
| {
"pile_set_name": "Github"
} |
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <cctype>
#include <gdk/gdkkeysyms.h>
#include "objbrowse.h"
#include "shapegroup.h"
#include "shapefile.h"
#include "studio.h"
#include "exceptions.h"
#include "ignore_unused_variable_warning.h"
using EStudio::Add_menu_item;
using EStudio::Create_arrow_butto... | {
"pile_set_name": "Github"
} |
// re2c $INPUT -o $OUTPUT -e
/*!re2c
[^\n] {return 0;}
*/
| {
"pile_set_name": "Github"
} |
<template>
<div class="form-config-container">
<el-form label-position="top">
<el-form-item label="页面标题">
<el-input v-model.trim="pageData.title"></el-input>
</el-form-item>
<el-form-item label="页面背景色">
<el-color-picker :predefine="predefineColors" v-model="pageData.style.backgro... | {
"pile_set_name": "Github"
} |
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "addphoto_icon_h@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
} | {
"pile_set_name": "Github"
} |
#Code automatically generated with fuzzylite 6.0.
library(ggplot2);
engine.name = "mam22"
engine.fll = "Engine: mam22
InputVariable: angle
enabled: true
range: -5.000 5.000
lock-range: false
term: small Bell -5.000 5.000 8.000
term: big Bell 5.000 5.000 8.000
InputVariable: velocity
enabled: true
range:... | {
"pile_set_name": "Github"
} |
from __future__ import print_function
from __future__ import unicode_literals
import os
import re
import json
class emoji():
# TODO check the possiblility if the encoding is not utf-8
encoding = 'utf-8'
def __init__(self):
self.dingbats = {} # 雜錦符號
self.dingbats_keynames = ["雜錦", "十字架", ... | {
"pile_set_name": "Github"
} |
import nltk
nltk.tag.hmm.demo_pos()
| {
"pile_set_name": "Github"
} |
#pragma once
namespace fast_io
{
template<typename T>
struct basic_io_scatter_t
{
T const* base;
std::size_t len;
inline operator basic_io_scatter_t<void>() const noexcept requires(!std::same_as<T,void>)
{
return {base,len*sizeof(T)};
}
};
//should be binary compatible with POSIX's iovec
using io_scatter_t =... | {
"pile_set_name": "Github"
} |
// (C) Copyright Tobias Schwinger
//
// Use modification and distribution are subject to the boost Software License,
// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
//------------------------------------------------------------------------------
// no include guards, this file is guarded externally
// t... | {
"pile_set_name": "Github"
} |
// ImGui GLFW binding with OpenGL3 + shaders
// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.)
// (GL3W is a helper library to access OpenGL functions since there is no standard header to access modern OpenGL functions easily. Alternatives ... | {
"pile_set_name": "Github"
} |
var arrayEach = require('./_arrayEach'),
arrayIncludes = require('./_arrayIncludes');
/** Used to compose bitmasks for function metadata. */
var WRAP_BIND_FLAG = 1,
WRAP_BIND_KEY_FLAG = 2,
WRAP_CURRY_FLAG = 8,
WRAP_CURRY_RIGHT_FLAG = 16,
WRAP_PARTIAL_FLAG = 32,
WRAP_PARTIAL_RIGHT_FLAG = 64,
... | {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | {
"pile_set_name": "Github"
} |
<?php
declare(strict_types=1);
namespace Ublaboo\DataGrid\Utils;
use DateTimeImmutable;
use Ublaboo\DataGrid\Exception\DataGridDateTimeHelperException;
final class DateTimeHelper
{
/**
* Try to convert string into \DateTime object
*
* @param mixed $value
* @param array|string[] $formats
* @throws D... | {
"pile_set_name": "Github"
} |
"""add dtls_fingerprint to ps_endpoints
Revision ID: b83645976fdd
Revises: f3d1c5d38b56
Create Date: 2017-08-03 09:01:49.558111
"""
# revision identifiers, used by Alembic.
revision = 'b83645976fdd'
down_revision = 'f3d1c5d38b56'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects.postgresql imp... | {
"pile_set_name": "Github"
} |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>MulticastSocket (Java SE 12 & JDK 12 )</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="java.net.MulticastSocket class">
<meta name="keywords" content="setTTL()">
<... | {
"pile_set_name": "Github"
} |
/*
* ftp://ftp.funet.fi/pub/crypt/hash/sha/sha1.c
*
* SHA-1 in C
* By Steve Reid <steve@edmweb.com>
* 100% Public Domain
*
* Test Vectors (from FIPS PUB 180-1)
* "abc"
* A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D
* "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
* 84983E44 1C3BD26E BAAE4AA1 F9... | {
"pile_set_name": "Github"
} |
# ---
# jupyter:
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %%
c = '''
title: "Quick test"
output:
ioslides_presentation:
widescreen: true
smaller: true
editor_options:
chunk_output_type console
'''
# %%
import yaml
print(yaml.dump(yaml.load(c)))
# ... | {
"pile_set_name": "Github"
} |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# MULTI-LAYER PERCEPTRON ON MNIST"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
... | {
"pile_set_name": "Github"
} |
// Copyright (c) 2012 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.
#include "base/mac/scoped_mach_port.h"
#include "base/mac/mach_logging.h"
namespace base {
namespace mac {
namespace internal {
// static
void Send... | {
"pile_set_name": "Github"
} |
(set-logic QF_BV)
(declare-fun s () (_ BitVec 8))
(declare-fun t () (_ BitVec 8))
(assert (not (= (bvashr s t) (ite (= ((_ extract 7 7) s) (_ bv0 1)) (bvlshr s t) (bvnot (bvlshr (bvnot s) t))))))
(check-sat)
(exit)
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2012-2013, Batu Alp Ceylan
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, as published by the Free Software Foundation.
*
* This program is distributed ... | {
"pile_set_name": "Github"
} |
#!/bin/bash
#
# Copyright (C) 2011,2014 Colin Walters <walters@verbum.org>
#
# SPDX-License-Identifier: LGPL-2.0+
#
# 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 of t... | {
"pile_set_name": "Github"
} |
{
"name": "ol-popup",
"version": "4.0.0",
"description": "Popup overlay for OpenLayers",
"main": "dist/ol-popup.js",
"repository": {
"type": "git",
"url": "https://github.com/walkermatt/ol-popup.git"
},
"author": "Matt Walker (http://longwayaround.org.uk)",
"contributors": [
"Avi Kelman <pat... | {
"pile_set_name": "Github"
} |
#!/usr/bin/python
from gi.repository import Gtk, TimezoneMap
def on_timezone_changed(tz_map, timezone):
print(timezone)
def on_destroy(window):
Gtk.main_quit()
if __name__ == "__main__":
window = Gtk.Window()
tz_map = TimezoneMap.TimezoneMap()
window.connect("destroy", on_destroy)
tz_map.connect('location-ch... | {
"pile_set_name": "Github"
} |
/*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
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, m... | {
"pile_set_name": "Github"
} |
config BR2_PACKAGE_DOCKER
bool "docker"
depends on BR2_PACKAGE_XORG7
depends on BR2_USE_WCHAR # glib2
depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
depends on BR2_USE_MMU # glib2
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_XLIB_LIBX11
help
a system tray dock for X
http://icculus.org/openbox/2/docker
c... | {
"pile_set_name": "Github"
} |
-smyIdxType=int(16)
-smyIdxType=real(32)
-smyIdxType=uint(8)
| {
"pile_set_name": "Github"
} |
// Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
/*
Name: distancetrasform.cpp
Author: Oleksandr Shevchenko
Description: class for distancetrasform representation
*/
#include "distancetransform.h"
//----------------------------------------------------------------------------
// Constructor
... | {
"pile_set_name": "Github"
} |
/** @internal
** @file binsum.c
** @author Andrea Vedaldi
** @brief vl_binsum.c - MEX definition
**/
/*
Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*... | {
"pile_set_name": "Github"
} |
true
| {
"pile_set_name": "Github"
} |
{{apos}}{{control}}
| {
"pile_set_name": "Github"
} |
// Copyright 2018 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 MOJO_PUBLIC_CPP_PLATFORM_NAMED_PLATFORM_CHANNEL_H_
#define MOJO_PUBLIC_CPP_PLATFORM_NAMED_PLATFORM_CHANNEL_H_
#include "base/command_line.h"
#inc... | {
"pile_set_name": "Github"
} |
# Protocol Buffers for Go with Gadgets
#
# Copyright (c) 2013, The GoGo Authors. All rights reserved.
# http://github.com/gogo/protobuf
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of sour... | {
"pile_set_name": "Github"
} |
#!/bin/bash
# this script provides a quick way to validate whether a change causes a performance gain versus regression
RunCurrent () {
./azcopy_current cp 'src' 'dst' --recursive --log-level=WARNING --check-length=false
}
RunNew () {
./azcopy_new cp 'src' 'dst' --recursive --log-level=WARNING --check-length=fal... | {
"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"
} |
/**
* User: shipengqi (pooky.shipengqi@gmail.com)
* Date: 2018/5/6
* Time: 15:46
*
*/
function Watcher(vm, exp, cb) {
this.cb = cb;
this.vm = vm;
this.exp = exp;
this.value = this.get(); // 将自己添加到订阅器的操作
}
Watcher.prototype = {
update: function() {
// 收到属性值变化的通知
this.run();
},
run: function... | {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: 83b7a2189cad9724c8a7407676332c8f
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 0
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap... | {
"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"
} |
/*
* Copyright 2018 John Grosh (jagrosh).
*
* 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... | {
"pile_set_name": "Github"
} |
#- XLsuite, an integrated CMS, CRM and ERP for medium businesses
#- Copyright 2005-2009 iXLd Media Inc. See LICENSE for details.
module XlSuite
module ContactRoutesExtensions
def offices
find(:all, :conditions => ["name LIKE ?", "%office%"])
end
def faxes
find(:all, :conditions => ["name LI... | {
"pile_set_name": "Github"
} |
// Copyright 2014-2019 Ulrich Kunitz. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package lzma
import (
"errors"
"io"
)
// rangeEncoder implements range encoding of single bits. The low value can
// overflow therefore we need uint64. ... | {
"pile_set_name": "Github"
} |
/*****************************************************************************
Copyright (c) 2014, Intel Corp.
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 cod... | {
"pile_set_name": "Github"
} |
###
# Copyright (c) 2004, Jeremiah Fincher
# 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 conditi... | {
"pile_set_name": "Github"
} |
import sys
import copy
from rlpyt.utils.launching.affinity import encode_affinity, quick_affinity_code
from rlpyt.utils.launching.exp_launcher import run_experiments
from rlpyt.utils.launching.variant import make_variants, VariantLevel
args = sys.argv[1:]
assert len(args) == 2
my_computer = int(args[0])
num_computer... | {
"pile_set_name": "Github"
} |
# EE First
[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]
Get the first event in a set of event emitters an... | {
"pile_set_name": "Github"
} |
Introduction
============
With chopsticks you can simply import functions and hand them to the remote
host to be executed.
First stand up an SSH Tunnel::
from chopsticks.tunnel import Tunnel
tun = Tunnel('troy.example.com')
Then you can pass a function, to be called on the remote host::
import time
... | {
"pile_set_name": "Github"
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "pch.h"
#include "common.h"
#include "TabView.h"
#include "TabViewItem.h"
#include "TabViewAutomationPeer.h"
#include "DoubleUtil.h"
#include "Runt... | {
"pile_set_name": "Github"
} |
from spacy.lang.de import German
nlp = German()
doc = nlp("David Bowie hat das Label PER")
# Schlage den Hash für das String-Label "PER" nach
person_hash = nlp.vocab.strings["PER"]
print(person_hash)
# Schlage person_hash nach, um den String zu erhalten
person_string = nlp.vocab.strings[person_hash]
print(person_str... | {
"pile_set_name": "Github"
} |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace System.Data.Entity.Core.Mapping.Update.Internal
{
using System.Collections.Generic;
using System.Data.Entity.Core.Common;
using System.Data.Entity.Core.Common.Comma... | {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.