text
stringlengths
2
99k
meta
dict
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2015 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright noti...
{ "pile_set_name": "Github" }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.Xml; namespace System.ServiceModel.Security { public abstract class TrustVersion { ...
{ "pile_set_name": "Github" }
package as3hx.parsers; import as3hx.As3; import as3hx.Tokenizer; import as3hx.Parser; class StructureParser { public static function parse(tokenizer:Tokenizer, types:Types, cfg:Config, kwd:String) : Expr { var parseExpr = ExprParser.parse.bind(tokenizer, types, cfg); var parseExprList = ExprParse...
{ "pile_set_name": "Github" }
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" FLA_Error FLA_Trmm_rlh( ...
{ "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" }
<TS language="sah" version="2.0"> <context> <name>AddressBookPage</name> </context> <context> <name>AddressTableModel</name> </context> <context> <name>AskPassphraseDialog</name> </context> <context> <name>BitcoinGUI</name> </context> <context> <name>ClientModel</name> </context>...
{ "pile_set_name": "Github" }
String s = "a, b c ,,d "; // Despite the bad formatting, String[] p = splitTokens(s, ", "); // the data is parsed correctly println(p[0]); // Prints "a" println(p[1]); // Prints "b" println(p[2]); // Prints "c" println(p[3]); // Prints "d"
{ "pile_set_name": "Github" }
import 'package:sqflite_crud/models/todo.dart'; import 'package:sqflite_crud/repository/database_creator.dart'; class RepositoryServiceTodo { static Future<List<Todo>> getAllTodos() async { final sql = '''SELECT * FROM ${DatabaseCreator.todoTable} WHERE ${DatabaseCreator.isDeleted} = 0'''; final data = a...
{ "pile_set_name": "Github" }
# Copyright (c) 2010-2012 OpenStack 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 agree...
{ "pile_set_name": "Github" }
/* apps/apps.h */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercia...
{ "pile_set_name": "Github" }
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_phishstats # Purpose: Spiderfoot plugin to search PhishStats API # to determine if an IP is malicious # # Author: Krishnasis Mandal <krishnasis@hotmail.com> # # Created: ...
{ "pile_set_name": "Github" }
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2014 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this file are su...
{ "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" }
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. // https://github.com/golang/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met...
{ "pile_set_name": "Github" }
package types // bank module event types const ( EventTypeTransfer = "transfer" AttributeKeyRecipient = "recipient" AttributeKeySender = "sender" AttributeValueCategory = ModuleName )
{ "pile_set_name": "Github" }
/* * Copyright 2012-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" }
var assert = require('assert'); var Traverse = require('traverse'); exports.mutate = function () { var obj = { a : 1, b : 2, c : [ 3, 4 ] }; var res = Traverse(obj).forEach(function (x) { if (typeof x === 'number' && x % 2 === 0) { this.update(x * 10); } }); assert.deepEqual...
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <!-- Automatically generated file. Do not edit. --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Линия по 2 точкам</title> <link rel="stylesheet" type="text/css" href="../../../../../style.css" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /></...
{ "pile_set_name": "Github" }
/** * Copyright (c) 2010-2020 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * 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....
{ "pile_set_name": "Github" }
# # Copyright 2020 Centreon (http://www.centreon.com/) # # Centreon is a full-fledged industry-strength solution that meets # the needs in IT infrastructure and application monitoring for # service performance. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com...
{ "pile_set_name": "Github" }
kernel: # image: "linuxkit/kernel:4.9.x" image: "rancher/os-kernel:4.9.26-rancher" # cmdline: "debug ignore_loglevel log_buf_len=10M print_fatal_signals=1 LOGLEVEL=8 earlyprintk sched_debug initcall_debug option.debug=Y break=y console=ttyS0 console=tty0 console=tty1 page_poison=1 printk.devkmsg=on rancher.debug=tr...
{ "pile_set_name": "Github" }
#!/usr/bin/elfsh load /bin/ls modload modremap findrel remap 0x11223344 save /tmp/ls.remapped exec /tmp/ls.remapped quit
{ "pile_set_name": "Github" }
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this fi...
{ "pile_set_name": "Github" }
const exprParser = require('../../../util/exprParser'); exports = module.exports = function() { this.register('template-parse-ast-attr-:style', function parseBindStyle({ item, expr }) { let exprObj = exprParser.str2obj(expr); item.bindStyle = Object.keys(exprObj).map(name => { // eslint-disable-next-li...
{ "pile_set_name": "Github" }
<?php /* * This file is part of CacheTool. * * (c) Samuel Gordalina <samuel.gordalina@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace CacheTool\Adapter\Http; class FileGetContents extends AbstractHttp { ...
{ "pile_set_name": "Github" }
{ "system": { }, "modules": { "Core": { "SiteName": "Afterlogic WebMail Lite PHP", "ProductName": "Afterlogic WebMail Lite PHP" }, "CoreWebclient": { "HeaderModulesOrder": ["mail", "contacts"], "DefaultAnonymScreenHash": "login", "DefaultUserScreenHash": "mail", "ThemeList": ["Def...
{ "pile_set_name": "Github" }
#pragma once namespace slade { class ParseTreeNode; namespace game { struct ArgValue { string name; int value; }; struct Arg { enum Type { Number = 0, YesNo, NoYes, Angle, Choice, Flags, Speed, }; typedef std::map<string, Arg> SpecialMap; string name; string ...
{ "pile_set_name": "Github" }
#include "bindings.h" #pragma once #if defined(ON_PYTHON_COMPILE) typedef pybind11::object BND_UUID; #else typedef std::string BND_UUID; #endif BND_UUID ON_UUID_to_Binding(const ON_UUID& id); ON_UUID Binding_to_ON_UUID(const BND_UUID& id);
{ "pile_set_name": "Github" }
<?xml version="1.0"?> <!-- Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ --> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <style xmlns="http://www.w3.org/1999/xhtml"><![CDATA[ window { padding: 8px; } image { ...
{ "pile_set_name": "Github" }
/** * Markdown styles copied from Github */ .markdown-body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; line-height: 1.5; word-wrap: break-word } .markdown-body::before { display: tabl...
{ "pile_set_name": "Github" }
/*===-- llvm-c/Analysis.h - Analysis Library C Interface --------*- C++ -*-===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
{ "pile_set_name": "Github" }
// cgo -godefs types_openbsd.go | go run mkpost.go // Code generated by the command above; see README.md. DO NOT EDIT. // +build 386,openbsd package unix const ( SizeofPtr = 0x4 SizeofShort = 0x2 SizeofInt = 0x4 SizeofLong = 0x4 SizeofLongLong = 0x8 ) type ( _C_short int16 _C_int i...
{ "pile_set_name": "Github" }
/* Copyright (C) 2005 Analog Devices */ /** @file vq_bfin.h @author Jean-Marc Valin @brief Blackfin-optimized vq routine */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of sou...
{ "pile_set_name": "Github" }
<?php include(erLhcoreClassDesign::designtpl('lhchatbox/getstatus/options_variable_page.tpl.php')); ?> var lhc_ChatboxPage = { JSON : { parse: window.JSON && (window.JSON.parse || window.JSON.decode) || String.prototype.evalJSON && function(str){return String(str).evalJSON();} || $.parseJSON || $.evalJSON...
{ "pile_set_name": "Github" }
package org.hotswap.agent.plugin.mojarra; public class MojarraConstants { private MojarraConstants() { // prevent instantiation.. } public static final String MANAGED_BEAN_ANNOTATION = "javax.faces.bean.ManagedBean"; public static final String BEAN_MANAGER_CLASS = "com.sun.faces.mgbean....
{ "pile_set_name": "Github" }
<?php namespace Tests\Behat\Gherkin\Keywords; use Behat\Gherkin\Keywords\ArrayKeywords; use Behat\Gherkin\Keywords\KeywordsDumper; use PHPUnit\Framework\TestCase; class KeywordsDumperTest extends TestCase { private $keywords; protected function setUp() { $this->keywords = new ArrayKeywords(array...
{ "pile_set_name": "Github" }
/* * Copyright (C) 2014 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" }
# .NET Metadata Dumper This samples uses the [.NET Metadata Reader][MDReader] to dump the contents of the [ECMA-335] metadata contained in a .NET assembly (or module). [MDReader]: http://www.nuget.org/packages/Microsoft.Bcl.Metadata [ECMA-335]: http://www.ecma-international.org/publications/standards/Ecma-335.htm
{ "pile_set_name": "Github" }
/* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2017 Eric Lafortune @ GuardSquare * * 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 F...
{ "pile_set_name": "Github" }
import firebase from 'firebase/app' import 'firebase/auth' const config = { apiKey: 'AIzaSyADubq8Pf-_nC6cM52PGZJLAJ_yT4UkWto', authDomain: 'reactzzaria-12649.firebaseapp.com', databaseURL: 'https://reactzzaria-12649.firebaseio.com', projectId: 'reactzzaria-12649', storageBucket: 'reactzzaria-12649.appspot.co...
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="angular_before.js"></script> <script src="../../js/execute.js"></script> <script src="../../js/jstat.min.js"></scri...
{ "pile_set_name": "Github" }
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * * Generic Bluetooth HCI UART driver * * Copyright (C) 2015-2018 Intel Corporation */ #include <asm/unaligned.h> struct h4_recv_pkt { u8 type; /* Packet type */ u8 hlen; /* Header length */ u8 loff; /* Data length offset in header */ u8 lsize; /* Dat...
{ "pile_set_name": "Github" }
# mach: bpf # as: --EB # ld: --EB # sim: -E big # output: pass\nexit 0 (0x0)\n ;;; endbe.s ;;; Tests for BPF endianness-conversion instructions in simulator ;;; running in BIG ENDIAN ;;; ;;; Both 'be' and 'le' ISAs have both endbe and endle instructions. .include "testutils.inc" .text .global main .ty...
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <project basedir="." default="test" name="Voxforge Tests"> <description> This file is used to run the voxforge performance tests. NOTE: Before running the tests, you must have already built the sphinx-4 sources by typing "ant" in the top level sphinx4 directory....
{ "pile_set_name": "Github" }
<Type Name="DefaultSignalHandlerAttribute" FullName="GLib.DefaultSignalHandlerAttribute"> <TypeSignature Language="C#" Maintainer="auto" Value="public sealed class DefaultSignalHandlerAttribute : Attribute" /> <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit DefaultSignalHandler...
{ "pile_set_name": "Github" }
# -*- coding: utf-8 -*- from __future__ import absolute_import import copy from ..engine import Layer from ..engine import InputSpec from ..engine.topology import _object_list_uid from ..utils.generic_utils import has_arg from .. import backend as K class Wrapper(Layer): """Abstract wrapper base class. Wrap...
{ "pile_set_name": "Github" }
<!-- @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http:/...
{ "pile_set_name": "Github" }
/* * SonarQube PHP Plugin * Copyright (C) 2010-2020 SonarSource SA * mailto:info AT sonarsource DOT com * * This program 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 3 of the...
{ "pile_set_name": "Github" }
// RUN: %empty-directory(%t) // RUN: not %target-swift-frontend -c %s -index-store-path %t struct X : Z { func b(_ : Y) {} } protocol Z { associatedtype a typealias Y = a.c }
{ "pile_set_name": "Github" }
/* time.h -- An implementation of the standard Unix <sys/time.h> file. Written by Geoffrey Noer <noer@cygnus.com> Public domain; no rights reserved. */ #ifndef _SYS_TIME_H_ #define _SYS_TIME_H_ #include <_ansi.h> #include <sys/types.h> #ifdef __cplusplus extern "C" { #endif #ifndef _WINSOCK_H struct timeval {...
{ "pile_set_name": "Github" }
--- {% for pv in pv_list %} apiVersion: v1 kind: PersistentVolume metadata: name: {{ pv }} spec: capacity: storage: {{pv_size}} accessModes: - ReadWriteOnce nfs: path: {{ nfs_export_path }}/{{pv}} server: {{hostvars[nfs_host]['ec2_private_dns_name']}} persistentVolumeReclaimPolicy: {{persistentV...
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
{ "pile_set_name": "Github" }
/******************************************************************************* * Copyright (c) 2010, 2013 SAP AG and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is avail...
{ "pile_set_name": "Github" }
version https://git-lfs.github.com/spec/v1 oid sha256:17bda811cef1a12565143038c253f0599947b3a13799795e9406821a4ac5273f size 10663
{ "pile_set_name": "Github" }
{{! BEGIN-SNIPPET opacity-demo-snippet.hbs }} <div class="controls"> <label>Show Message<input type="checkbox" checked={{fadeMessage}} onchange={{action (mut fadeMessage) (not fadeMessage)}}></label> </div> <div class="scenario-transitions clearfix"> <AnimatedContainer> {{#animated-if fadeMessage use=transitio...
{ "pile_set_name": "Github" }
// Copyright 2015 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. package google import ( "crypto/rsa" "fmt" "time" "golang.org/x/oauth2" "golang.org/x/oauth2/internal" "golang.org/x/oauth2/jws" ) // JWTAccessTokenSou...
{ "pile_set_name": "Github" }
<!DOCTYPE html> <meta charset="utf-8"> <title>Selector: pseudo-classes (:read-write, :read-only) input type change</title> <link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com"> <link rel="help" href="https://html.spec.whatwg.org/multipage/#pseudo-classes"> <script src="/resources/testharness.js"></sc...
{ "pile_set_name": "Github" }
/* * Swap block device support for MTDs * Turns an MTD device into a swap device with block wear leveling * * Copyright © 2007,2011 Nokia Corporation. All rights reserved. * * Authors: Jarkko Lavinen <jarkko.lavinen@nokia.com> * * Based on Richard Purdie's earlier implementation in 2007. Background * support a...
{ "pile_set_name": "Github" }
''' serializers for APP ''' import os import copy import uuid from six import text_type from saml2 import BINDING_HTTP_POST, BINDING_HTTP_REDIRECT from saml2.config import SPConfig from saml2.metadata import entity_descriptor from saml2.entity_category.edugain import COC from saml2.saml import NAME_FORMAT_URI from saml...
{ "pile_set_name": "Github" }
// @flow weak import webpack from 'webpack' import baseConfig from './baseConfig' export default { ...baseConfig, module: { rules: [ ...baseConfig.module.rules.map(rule => { if (rule.use === 'babel-loader') { return { ...rule, options: { presets: [...
{ "pile_set_name": "Github" }
<VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="db_sql_shell" ProjectGUID="{A5DB89F0-06E5-11DF-8A39-0800200C9A66}"> <Platforms> <Platform Name="Win32"/> <Platform Name="x64"/> </Platforms> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory="..\..\build_windows\$(Plat...
{ "pile_set_name": "Github" }
#include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> //#include <stdint.h> #include <sys/ioctl.h> #include <sys/mman.h> #include "ionutils.h" #include "ipcsocket.h" void write_buffer(void *buffer, unsigned long len) { int i; unsigned char *ptr = (unsigned char *)buffer; ...
{ "pile_set_name": "Github" }
Welcome and Introduction to HTCondor ==================================== :index:`user manual<single: user manual; HTCondor>` :index:`user manual` HTCondor is developed by the Center for High Throughput Computing at the University of Wisconsin-Madison (UW-Madison), and was first installed as a production system in th...
{ "pile_set_name": "Github" }
/**************************************************************************************** Copyright (C) 2015 Autodesk, Inc. All rights reserved. Use of this software is subject to the terms of the Autodesk license agreement provided at the time of installation or download, or which otherwise accompanies...
{ "pile_set_name": "Github" }
Imports System.Text.RegularExpressions Imports System.Text Imports StaxRip.UI <Serializable()> Public MustInherit Class AudioProfile Inherits Profile Property Language As New Language Property Delay As Integer Property Depth As Integer = 24 Property StreamName As String = "" Property Gain As...
{ "pile_set_name": "Github" }
reftype: Web Page publication_journal: None title: None publication_year: None conference: None key: PAM authors: [] source_url: http://en.wikipedia.org/wiki/Pluggable_Authentication_Modules id: 5019
{ "pile_set_name": "Github" }
<?php /** * This file is part of PHP Mess Detector. * * Copyright (c) Manuel Pichler <mapi@phpmd.org>. * All rights reserved. * * Licensed under BSD License * For full copyright and license information, please see the LICENSE file. * Redistributions of files must retain the above copyright notice. * * @author...
{ "pile_set_name": "Github" }
require 'abstract_unit' class TestMissingSourceFile < Test::Unit::TestCase def test_with_require assert_raise(MissingSourceFile) { require 'no_this_file_don\'t_exist' } end def test_with_load assert_raise(MissingSourceFile) { load 'nor_does_this_one' } end def test_path begin load 'nor/this/one.r...
{ "pile_set_name": "Github" }
/* * This file is part of FFmpeg. * * FFmpeg 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. * * FFmpeg is distributed...
{ "pile_set_name": "Github" }
using System; using System.Runtime.Serialization; namespace KRPC.Client { /// <summary> /// Thrown when a error occurs connecting to a server. /// </summary> [Serializable] public class ConnectionException : Exception { /// <summary> /// Construct an RPCException with no message...
{ "pile_set_name": "Github" }
package cn.edu.jxnu.awesome_campus.ui.education; import java.util.ArrayList; import cn.edu.jxnu.awesome_campus.event.EventModel; import cn.edu.jxnu.awesome_campus.ui.base.TopNavigationFragment; /** * Created by MummyDing on 16-2-1. * GitHub: https://github.com/MummyDing * Blog: http://blog.csdn.net/mummyding */ ...
{ "pile_set_name": "Github" }
/* * Globalize Culture zu * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file need to b...
{ "pile_set_name": "Github" }
# mashumaro (マシュマロ) > **mashumaro** is a fast and well tested serialization framework on top of dataclasses. [![Build Status](https://travis-ci.org/Fatal1ty/mashumaro.svg?branch=master)](https://travis-ci.org/Fatal1ty/mashumaro) [![Coverage Status](https://coveralls.io/repos/github/Fatal1ty/mashumaro/badge.svg?branch...
{ "pile_set_name": "Github" }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *---------------------------------------------------------------...
{ "pile_set_name": "Github" }
// main resolvers exports.Query = { me(rootQuery, args, context) { return context.models.User.me() } } // type resolvers exports.User = { fullName(user) { return `${user.firstName} ${user.lastName}` } }
{ "pile_set_name": "Github" }
#-- encoding: UTF-8 #-- copyright # ChiliProject is a project management system. # # Copyright (C) 2010-2013 the ChiliProject Team # # 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 versio...
{ "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 us...
{ "pile_set_name": "Github" }
# -*- coding: utf-8 -*- import torch from itertools import accumulate from onmt.constants import SubwordMarker def make_batch_align_matrix(index_tensor, size=None, normalize=False): """ Convert a sparse index_tensor into a batch of alignment matrix, with row normalize to the sum of 1 if set normalize. ...
{ "pile_set_name": "Github" }
# Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies ...
{ "pile_set_name": "Github" }
(function() { // Stateline puts default collections of Landline maps together for you // Requires jQuery and Raphael var MapCanvas = Landline.Stateline = function(container, locality) { this.paper = {}; this.events = {}; this.attrs = {}; this.lookup = {}; this.locality = localit...
{ "pile_set_name": "Github" }
# from http://www.johnvinyard.com/blog/?p=268 import numpy as np from numpy.lib.stride_tricks import as_strided as ast def norm_shape(shape): ''' Normalize numpy array shapes so they're always expressed as a tuple, even for one-dimensional shapes. Parameters shape - an int, or a tuple of ints...
{ "pile_set_name": "Github" }
// // Reaktion - An audio reactive animation toolkit for Unity. // // Copyright (C) 2013, 2014 Keijiro Takahashi // // 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, in...
{ "pile_set_name": "Github" }
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2005,2006,2007 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is ...
{ "pile_set_name": "Github" }
/********** 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 3 of the License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This librar...
{ "pile_set_name": "Github" }
package ONVIF::Device::Types::AppearanceExtension; use strict; use warnings; __PACKAGE__->_set_element_form_qualified(1); sub get_xmlns { 'http://www.onvif.org/ver10/schema' }; our $XML_ATTRIBUTE_CLASS; undef $XML_ATTRIBUTE_CLASS; sub __get_attr_class { return $XML_ATTRIBUTE_CLASS; } use Class::Std::Fast::Sto...
{ "pile_set_name": "Github" }
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\/ M anipulation | -------------...
{ "pile_set_name": "Github" }
#include "WavTapDevice.hpp" #include "WavTapEngine.hpp" #include <IOKit/audio/IOAudioControl.h> #include <IOKit/audio/IOAudioLevelControl.h> #include <IOKit/audio/IOAudioToggleControl.h> #include <IOKit/audio/IOAudioDefines.h> #include <IOKit/IOLib.h> #define super IOAudioDevice OSDefineMetaClassAndStructors(WavTapDe...
{ "pile_set_name": "Github" }
#!/usr/bin/env sh cd "$(dirname "$0")" . "./.common.sh" cd ../.. PATH="$PWD/sandbox/composer/bin:$PATH" if ! chkcmd 'peridot'; then echo ' error: "peridot" command not found.' echo ' Execute "./support/tools/init" first.' exit 1 fi coverage_index="$PWD/sandbox/code-coverage-report/index.html...
{ "pile_set_name": "Github" }
#!/usr/bin/python """ (C) Copyright 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.apache.org/licenses/LICENSE-2.0 Unless required by applicable...
{ "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" }
gcr.io/ml-pipeline/ml-pipeline-dataproc-predict:be19cbc2591a48d2ef5ca715c34ecae8223cf454
{ "pile_set_name": "Github" }
#!/bin/bash # /etc/initcpio/install/sd-plymouth — mkinitcpio/systemd hook for plymouth build() { add_dir /dev/pts add_dir /usr/share/plymouth/themes add_dir /run/plymouth DATADIR="/usr/share/plymouth" PLYMOUTH_LOGO_FILE="${DATADIR}/arch-logo.png" PLYMOUTH_THEME_NAME="$(/usr/bin/plymouth-set-default-theme)" PLY...
{ "pile_set_name": "Github" }
[ { "type": "api-change", "category": "EC2", "description": "As part of this release we are introducing EC2 On-Demand Capacity Reservations. With On-Demand Capacity Reservations, customers can reserve the exact EC2 capacity they need, and can keep it only for as long as they need it." } ...
{ "pile_set_name": "Github" }
/* * Copyright (C) 2012 Indragie Karunaratne <i@indragie.com> * 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...
{ "pile_set_name": "Github" }
<ScrollView sdkExampleTitle sdkToggleNavButton> <StackLayout> <GridLayout rows="auto, auto, auto, auto"> <Label class="h3 p-15" row="0" text="Normalized Paths" textWrap="true"></Label> <Label class="p-l-15 p-r-15 p-b-15" row="1" [text]="'File in documents folder: ' + documents" textW...
{ "pile_set_name": "Github" }
## Unordered Asterisks tight: * asterisk 1 * asterisk 2 * asterisk 3 Asterisks loose: * asterisk 1 * asterisk 2 * asterisk 3 * * * Pluses tight: + Plus 1 + Plus 2 + Plus 3 Pluses loose: + Plus 1 + Plus 2 + Plus 3 * * * Minuses tight: - Minus 1 - Minus 2 - Minus 3 Minuses loose: - Minus 1 - Minus ...
{ "pile_set_name": "Github" }
package com.deliveredtechnologies.rulebook.model; import com.deliveredtechnologies.rulebook.NameValueReferableMap; import com.deliveredtechnologies.rulebook.NameValueReferableTypeConvertibleMap; import com.deliveredtechnologies.rulebook.Result; import com.deliveredtechnologies.rulebook.RuleState; import com.deliveredt...
{ "pile_set_name": "Github" }
using System; public struct Struct { public int I; public override string ToString () { return I.ToString(); } } public static class Program { public static void Main (string[] args) { var a = new Struct[10]; for (var i = 0; i < a.Length; i++) a[i] = new Struct {...
{ "pile_set_name": "Github" }
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
{ "pile_set_name": "Github" }
// (C) Copyright John Maddock 2001. // 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) // See http://www.boost.org/libs/config for most recent version. // MACRO: BO...
{ "pile_set_name": "Github" }