text
stringlengths
2
1.04M
meta
dict
import os import unittest import imath import IECore import Gaffer import GafferTest import GafferScene import GafferSceneTest class SubTreeTest( GafferSceneTest.SceneTestCase ) : def testPassThrough( self ) : a = GafferScene.SceneReader() a["fileName"].setValue( os.path.dirname( __file__ ) + "/alembicFiles/...
{ "content_hash": "c36108af9b3f88f446aa30fa30f49966", "timestamp": "", "source": "github", "line_count": 318, "max_line_length": 128, "avg_line_length": 29.547169811320753, "alnum_prop": 0.6330353341847594, "repo_name": "ImageEngine/gaffer", "id": "7cc4f8c5f13f6860deb0c678632443afc64818e1", "size": ...
<?xml version="1.0" encoding="utf-8"?><!-- ~ Copyright (C) 2014 barter.li ~ ~ 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 r...
{ "content_hash": "19b454d7c0baac6ecbad3c40099b804f", "timestamp": "", "source": "github", "line_count": 326, "max_line_length": 309, "avg_line_length": 56.24233128834356, "alnum_prop": 0.6995364057812926, "repo_name": "siddharth-shah/barterli_android", "id": "0927dd61a47c6a31c56cb598d36179ce9cb80ad2"...
class Micronaut < Formula desc "Modern JVM-based framework for building modular microservices" homepage "https://micronaut.io/" url "https://github.com/micronaut-projects/micronaut-starter/archive/v2.5.5.tar.gz" sha256 "d40fadba548df087c57919ac8ad685624ad39e3add2fad8e52d2af1912c68815" license "Apache-2.0" ...
{ "content_hash": "0c82ddcce6a22050797180cf824b79da", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 117, "avg_line_length": 36.270270270270274, "alnum_prop": 0.7354694485842027, "repo_name": "JCount/homebrew-core", "id": "84ea4f792431babf28ca1e4fbbcd93906378b805", "size":...
package org.apache.stratos.kubernetes.client.model; import org.apache.commons.lang3.ArrayUtils; import javax.xml.bind.annotation.XmlRootElement; import java.util.Arrays; @XmlRootElement public class ServiceList { private String kind; private String apiVersion; private Service[] items; public Strin...
{ "content_hash": "cd66df25d518a6290f70619e67a8fadd", "timestamp": "", "source": "github", "line_count": 46, "max_line_length": 73, "avg_line_length": 20.630434782608695, "alnum_prop": 0.6301369863013698, "repo_name": "agentmilindu/stratos", "id": "ecf396a8e3aaa2d59ce5e7de1eaa595b50a665f9", "size": ...
<?php /** * * Version 1.1.0 * * Author: Roberto Serra - obi.serra@gmail.com * * * This file handle the image-upload using beforeSave and afterSave behaviour * * Configuration: * * @imagesColumns: array * @paths: array/string; {ID} will be replaced by the ID of the actual model * @rename: array; {filename} will be r...
{ "content_hash": "5ffedbec10ecc60db3a34740cd14d70b", "timestamp": "", "source": "github", "line_count": 200, "max_line_length": 172, "avg_line_length": 37.4, "alnum_prop": 0.4788770053475936, "repo_name": "obiSerra/yii-helpers", "id": "7395d127340fdf88c1fbe585dc0fef049d3b506e", "size": "7480", "b...
//Copyright 2014 Spin Services Limited //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 w...
{ "content_hash": "9906f00a24e9f43ac114c334d702b839", "timestamp": "", "source": "github", "line_count": 281, "max_line_length": 98, "avg_line_length": 31.22064056939502, "alnum_prop": 0.5100877692921464, "repo_name": "jpendlebury/SS.Integration.Adapter", "id": "865c1351eca620ea43ed884fcd0457f9cf485fe...
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Controls; using F2F.ReactiveNavigation.ViewModel; using System.Collections.Concurrent; namespace F2F.ReactiveNavigation.WPF { public class ContentRegionAdapter : RegionAdapter<ContentControl> { private readonly ICre...
{ "content_hash": "b12b566f54d3baaededc5d746d2e20e9", "timestamp": "", "source": "github", "line_count": 65, "max_line_length": 109, "avg_line_length": 32.09230769230769, "alnum_prop": 0.6313518696069031, "repo_name": "F-2-F/F2F.ReactiveNavigation", "id": "38066778b29ea1d801be57e43efd56176831a38d", ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.aad.controller; import com.azure.aad.model.TodoItem; import com.microsoft.azure.spring.autoconfigure.aad.Constants; import com.microsoft.azure.spring.autoconfigure.aad.UserGroup; import com.microsoft.azur...
{ "content_hash": "4e56cf7c5c97bf63de9af66a6ac6490e", "timestamp": "", "source": "github", "line_count": 113, "max_line_length": 119, "avg_line_length": 40.8141592920354, "alnum_prop": 0.6509106678230703, "repo_name": "selvasingh/azure-sdk-for-java", "id": "4fa45a30bd26b01b5c67766532c6823b150c370b", ...
"""Database setup and migration commands.""" from nova import utils IMPL = utils.LazyPluggable( 'baremetal_db_backend', sqlalchemy='nova.virt.baremetal.db.sqlalchemy.migration') INIT_VERSION = 0 def db_sync(version=None): """Migrate the database to `version` or the most recent version.""" ...
{ "content_hash": "71f1eef4038a0520b445c13c645a2b32", "timestamp": "", "source": "github", "line_count": 20, "max_line_length": 71, "avg_line_length": 22.7, "alnum_prop": 0.6916299559471366, "repo_name": "houshengbo/nova_vmware_compute_driver", "id": "40631bf45c8218121b847352d19865a54773c20c", "size...
<?php /** * produce debug information * * $HeadURL: https://www.onthegosystems.com/misc_svn/common/trunk/debug/functions_debug_information.php $ * $LastChangedDate: 2014-09-26 12:15:05 +0000 (Fri, 26 Sep 2014) $ * $LastChangedRevision: 27495 $ * $LastChangedBy: marcin $ * */ class ICL_Debug_...
{ "content_hash": "b0c5a93054ec422dbca524d37566f54f", "timestamp": "", "source": "github", "line_count": 159, "max_line_length": 141, "avg_line_length": 27.9748427672956, "alnum_prop": 0.54181654676259, "repo_name": "doudou2012/tdshipu", "id": "fc157199909bb1e3345e072c7665bb1f2c54d6dc", "size": "444...
\documentclass[twoside]{book} % Packages required by doxygen \usepackage{fixltx2e} \usepackage{calc} \usepackage{doxygen} \usepackage[export]{adjustbox} % also loads graphicx \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage{makeidx} \usepackage{multicol} \usepackage{multirow} \PassOptionsToPackage{warn}{t...
{ "content_hash": "47ba9b3c98f184494f913da9fc8245f4", "timestamp": "", "source": "github", "line_count": 154, "max_line_length": 105, "avg_line_length": 23.162337662337663, "alnum_prop": 0.7328287075974208, "repo_name": "Akshaybj0221/ENPM808X_Midterm", "id": "611746a053db070165ed62430474057ccb53c827",...
class Gem::Commands::AutoCompileCommand < Gem::Command include Gem::UserInteraction def initialize super 'auto_compile', 'Enable gem compilation at install time' end def description # :nodoc: 'Toggle a setting that enables compiling gems at install time.' end def usage "#{progname}" end ...
{ "content_hash": "d50d80fbe1fc77f41fc87a4251593e5b", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 73, "avg_line_length": 27.51851851851852, "alnum_prop": 0.5248990578734859, "repo_name": "ferrous26/rubygems-compile", "id": "cd8a2df7076ef66daf31f1b6f2af5a12f933f013", "si...
namespace slave = mesos::internal::slave; using process::Future; using process::Owned; using std::string; using std::vector; using mesos::internal::master::Master; using mesos::internal::slave::DockerRuntimeIsolatorProcess; using mesos::internal::slave::DockerVolumeIsolatorProcess; using mesos::internal::slave::Fet...
{ "content_hash": "e71c555566d80b3d062a12fccc06d8a5", "timestamp": "", "source": "github", "line_count": 1077, "max_line_length": 79, "avg_line_length": 29.234911792014856, "alnum_prop": 0.697484596328527, "repo_name": "asamerh4/mesos", "id": "36fffe2ca7692ed11581e46a5035769db556a793", "size": "3294...
namespace mojo { namespace test { struct NestedStructWithTraitsImpl { public: NestedStructWithTraitsImpl(); explicit NestedStructWithTraitsImpl(int32_t in_value); bool operator==(const NestedStructWithTraitsImpl& other) const { return value == other.value; } int32_t value = 0; }; enum class EnumWithT...
{ "content_hash": "14cb9a8e42b509a3482cf6737f04b553", "timestamp": "", "source": "github", "line_count": 199, "max_line_length": 80, "avg_line_length": 29.65326633165829, "alnum_prop": 0.7205558379935604, "repo_name": "endlessm/chromium-browser", "id": "e8d96120a201e4a7d0b2e0fd88e32f751b145fec", "si...
import logging import math import gym from gym import spaces from gym.utils import seeding import numpy as np import sys import cv2 import math class ClassifyEnv(gym.Env): def __init__(self, trainSet, target, batch_size=1000, accuracy_mode=False): """ Data set is a tuple of [0] input data: [nSamples x ...
{ "content_hash": "68f659b33636b54e3d946c630c2a5c9f", "timestamp": "", "source": "github", "line_count": 220, "max_line_length": 79, "avg_line_length": 26.45, "alnum_prop": 0.6021653205018044, "repo_name": "google/brain-tokyo-workshop", "id": "742610c1e79b207175c68ba587616f42c9621553", "size": "5820...
package com.badlogic.gdx.graphics.g2d.freetype; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic....
{ "content_hash": "70cd88b704ed773777253f9519b5cbda", "timestamp": "", "source": "github", "line_count": 746, "max_line_length": 918, "avg_line_length": 40.64343163538874, "alnum_prop": 0.6942282321899736, "repo_name": "anserran/libgdx", "id": "cb7dd9542cfe48563bf87b98f4a5c57aa4c35c21", "size": "310...
#include "tensorflow/compiler/xla/service/elemental_ir_emitter.h" #include <algorithm> #include <memory> #include <string> #include <vector> // IWYU pragma: no_include "llvm/IR/Intrinsics.gen.inc" #include "external/llvm/include/llvm/IR/BasicBlock.h" #include "external/llvm/include/llvm/IR/Instructions.h" #include ...
{ "content_hash": "8ed76aebb18aafc648386ec4549a3047", "timestamp": "", "source": "github", "line_count": 1011, "max_line_length": 80, "avg_line_length": 45.31256181998022, "alnum_prop": 0.5846630721879025, "repo_name": "benoitsteiner/tensorflow", "id": "be4aadb6522b8d6ad9d6425df56c1746c3849f11", "si...
require 'spec_helper' describe PersonMock do it "can chain ActiveRecord query methods" do PersonMock.all.joins(:any).where(:any).where(:more).limit(10).order(:id).should be PersonMock end end
{ "content_hash": "c9fba1763107a0060fef5f89d63789fc", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 97, "avg_line_length": 25.25, "alnum_prop": 0.7376237623762376, "repo_name": "padwasabimasala/lou", "id": "3ed09f293015ff23015023b6c8dd6d3017e4caa2", "size": "202", "binar...
/* Network.js KC3改 Network Listener Must only be imported on devtools pages! Listens to network history and triggers callback if game events happen */ (function(){ "use strict"; window.KC3Network = { hasOverlay: false, isNextBlockerArmed: false, isNextBlockerNetworkFallback: false, isNextBlocke...
{ "content_hash": "2d17955e393ad6960cda7313b0d74eb1", "timestamp": "", "source": "github", "line_count": 514, "max_line_length": 138, "avg_line_length": 36.8715953307393, "alnum_prop": 0.6270578303081469, "repo_name": "KC3Kai/KC3Kai", "id": "53950c6df033dc35a5c9eab9018579128e93162c", "size": "18976"...
using System.Drawing; using FoxTrader.UI.ControlInternal; using OpenTK.Input; using static FoxTrader.Constants; namespace FoxTrader.UI.Control { /// <summary>Menu item</summary> internal class MenuItem : Button { private Label m_accelerator; private bool m_checked; private Menu m_me...
{ "content_hash": "20afdd3b1b0512f2f37b5eceee6fa977", "timestamp": "", "source": "github", "line_count": 262, "max_line_length": 104, "avg_line_length": 27.519083969465647, "alnum_prop": 0.44826629680998614, "repo_name": "FoxCouncil/FoxTrader", "id": "053f21d39389eb944ca61b0714796253045b5ee5", "size...
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "6670803ad28d38b38f9368cc8035cf3c", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "6be97d0ed170a555da3ecb4fe6d64677e9430c45", "size": "175...
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='oeis', version='0.1', description='OEIS utilities and sequence generation', long_description=readme(), classifiers=[ 'Programming Language :: Python :: 2.7.3', ]...
{ "content_hash": "1ba677ae98548f5a92851122c06fc0b5", "timestamp": "", "source": "github", "line_count": 28, "max_line_length": 59, "avg_line_length": 25.107142857142858, "alnum_prop": 0.5803698435277382, "repo_name": "GuySrinivasan/oeis", "id": "7c794f9e2339589a161df8c62ca1720302cab9e1", "size": "7...
var gridOptions = { columnDefs: [ { field: 'country', rowGroup: true, hide: true }, { field: 'athlete' }, { field: 'year' }, { field: 'gold', aggFunc: 'sum' }, { field: 'silver', aggFunc: 'sum' }, { field: 'bronze', aggFunc: 'sum' }, { field: 'total', aggFunc:...
{ "content_hash": "c3b6beacb07d8a436930858cb589b058", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 100, "avg_line_length": 29.305555555555557, "alnum_prop": 0.5526066350710901, "repo_name": "ceolter/ag-grid", "id": "99b2efb95b83d517d6da3a27ce99c28bbb1a4d37", "size": "105...
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('farmwork', '0008_auto_20170608_1217'), ] operations = [ migrations.CreateModel( name='Job', ...
{ "content_hash": "b1b09877be5325ef1f86517792be72e4", "timestamp": "", "source": "github", "line_count": 47, "max_line_length": 571, "avg_line_length": 42.765957446808514, "alnum_prop": 0.5308457711442786, "repo_name": "ianmilliken/rwf", "id": "88f1c0847242b2f8da02c2dba37226b135206a8e", "size": "208...
<RaiseFault name='RF-InvalidRequest'> <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> <FaultResponse> <Set> <Payload contentType='application/json'>{ "error" : { "code" : 400.14, "message" : "missing query parameter: txid" } } </Payload> <StatusCode>400</StatusCode> <Re...
{ "content_hash": "bc6e9c16d2d5d91617b12f20ba521112", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 61, "avg_line_length": 25.125, "alnum_prop": 0.6691542288557214, "repo_name": "DinoChiesa/devjam3-20170405", "id": "ec9c47e244c5c5f2322c5c89e1632feb0afe97e8", "size": "402"...
interface options { recurse?: boolean; duplicates?: boolean; filter?: any; mapKey?: any; mapValue?: any; } declare function requireDir(directory: string, options?: options): { [path: string]: any }; export = requireDir;
{ "content_hash": "5edece5d887e2c448e3d8f0d872436d6", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 91, "avg_line_length": 21.545454545454547, "alnum_prop": 0.6708860759493671, "repo_name": "AgentME/DefinitelyTyped", "id": "2792fe3914168c363d6be41b5bbe77f0dfa51558", "size...
title: Clojure Lists They Are Everything --- Lists are fundamental to Clojure. Clojure is a Lisp, and Lisps were originally used for list processing. Everything in a Lisp is a list! (def foo "bar") That piece of code is actually a list! So is anything between two round brackets in Clojure. Interesting, isn't it? ...
{ "content_hash": "ee1c6b845bbe1ff77b50ad2a1058b5b1", "timestamp": "", "source": "github", "line_count": 94, "max_line_length": 552, "avg_line_length": 54.87234042553192, "alnum_prop": 0.7089957347809228, "repo_name": "pahosler/freecodecamp", "id": "bf9dbe6ff569a3206d4b6dcd297b5d529597181f", "size":...
import * as sinon from 'sinon'; import {AccessClientAdapter} from '../amp-access-client'; import {AccessService} from '../amp-access'; import {AmpEvents} from '../../../../src/amp-events'; import {Observable} from '../../../../src/observable'; import {cidServiceForDocForTesting} from '../../../../src/service/cid-im...
{ "content_hash": "cde5550ab01cd001891ad7c238d97536", "timestamp": "", "source": "github", "line_count": 1717, "max_line_length": 80, "avg_line_length": 35.22655794991264, "alnum_prop": 0.6377223728589378, "repo_name": "yieldmo/amphtml", "id": "571da0d34f28d2f03312bd280d4e81b2fb16dda6", "size": "611...
@interface TYRecordEncoder : NSObject + (instancetype)recordEncoderPath:(NSString *)filePath videoWidth:(int)videoWidth videoHeight:(int)videoHeight audioChannel:(UInt32)channel audioRate:(Float64)rate; - (instancetype)initPath:(NSString *)filePath videoWidth:(int)videoWidth videoHeight:(int)videoHeight audioChannel:...
{ "content_hash": "a4be5c3eb39d4ac8480c8c4837ff35ee", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 164, "avg_line_length": 45.81818181818182, "alnum_prop": 0.8134920634920635, "repo_name": "Samueler/TYCamera", "id": "c17e1c2f66be62909cf9db53b25d17c7df77fe6a", "size": "71...
import os class DefaultConfig(object): INSTANCE_FOLDER_PATH = '/usr/lib/camus' # Get app root path, also can use flask.root_path. # ../../config.py PROJECT_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) DEBUG = False TESTING = False ADMINS = ['youremail@yourdomain.co...
{ "content_hash": "4028d251f5b13ef14809935910b053af", "timestamp": "", "source": "github", "line_count": 57, "max_line_length": 85, "avg_line_length": 29.210526315789473, "alnum_prop": 0.6732732732732732, "repo_name": "kindly/camus", "id": "af0e2bee43a0cb0c7bc245617a83d10913d099f3", "size": "1690", ...
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2013 Semtech Description: Generic driver for the GPS receiver UP501 License: Revised BSD ...
{ "content_hash": "5ecd26422053733acd2badf97caef13f", "timestamp": "", "source": "github", "line_count": 174, "max_line_length": 83, "avg_line_length": 24.137931034482758, "alnum_prop": 0.6561904761904762, "repo_name": "AlexanderWiniger/LoRaMac-node", "id": "8be48501dd83c9066c753bee81d702eea01d2d19", ...
<template name="databaseDumpRestore"> {{> pageHeading title=getPageHeading }} {{#if isConnected}} <div class="wrapper wrapper-content animated fadeInRight"> <div class="row"> <div class="col-lg-6"> <div class="ibox float-e-margins"> ...
{ "content_hash": "d0f3d9b1f18a33aedd3c4fc7b32821d1", "timestamp": "", "source": "github", "line_count": 414, "max_line_length": 120, "avg_line_length": 65.76086956521739, "alnum_prop": 0.3337373737373737, "repo_name": "rsercano/mongoclient", "id": "404cac9c98655d6d332e17d2bc22e7b56bfbcf35", "size":...
import { graphql } from "gatsby" import * as React from "react" import slugify from "slugify" import Layout from "../components/layout" import * as components from "../components/references" function renderReferencedComponent(ref) { const Component = components[ref.__typename] if (!Component) { throw new Err...
{ "content_hash": "07b21cae0bccc56f8cde94c904e3bb0e", "timestamp": "", "source": "github", "line_count": 241, "max_line_length": 79, "avg_line_length": 23.904564315352697, "alnum_prop": 0.44766533587918766, "repo_name": "gatsbyjs/gatsby", "id": "642722e2a92d6d2e6490d32185951d4ab44d2e6d", "size": "57...
// Copyright 2014 Sean Farrow // // 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...
{ "content_hash": "08854dc5385ab7b03de8295f855a3925", "timestamp": "", "source": "github", "line_count": 61, "max_line_length": 109, "avg_line_length": 30.114754098360656, "alnum_prop": 0.6287425149700598, "repo_name": "SeanFarrow/EventStoreRunner", "id": "de5857361324514b30c6e5e693869cd79bb7c2da", ...
@interface POIImageSlider : UIView @property (strong,nonatomic) NSArray *imageData; + (NSString*)nibName; -(void)setImageViewData:(NSArray *)imageData; - (void)startAutoPagingWithDuration:(NSTimeInterval)pagingInterval; @end
{ "content_hash": "e83f03f650f678248a0bc36b212ceb47", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 67, "avg_line_length": 28.375, "alnum_prop": 0.7973568281938326, "repo_name": "JingtingChen/POIImageSlider", "id": "ba18ab15f9e12a0d624420ae6d7224fc9151718d", "size": "332",...
layout: book number: 1 title: Introduction --- This is a very short book about **doobie**, which is a pure-functional JDBC layer for Scala. **doobie** provides low-level access to everything in `java.sql` (as of JDK 1.6, JDBC 4.0), allowing you to write any JDBC program in a pure functional style. However the focus o...
{ "content_hash": "0cd2f5252e361f1d9f8f2716fafe4262", "timestamp": "", "source": "github", "line_count": 122, "max_line_length": 566, "avg_line_length": 51.877049180327866, "alnum_prop": 0.7018486332753989, "repo_name": "tpolecat/tpolecat.github.io", "id": "f06db6890280d64e13dd09a820c8cfeebcce5b30", ...
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIE...
{ "content_hash": "ac7995f5510e0df7ad6f4f5eb757bf1f", "timestamp": "", "source": "github", "line_count": 466, "max_line_length": 399, "avg_line_length": 40.47854077253219, "alnum_prop": 0.5341144038594073, "repo_name": "cdnjs/cdnjs", "id": "90bbecc84af1ecaf38bde690e05290b5b4722bda", "size": "19002",...
"""Tests for tensorflow.ops.io_ops.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import os.path import time import contextlib import shutil import tempfile import tensorflow as tf import numpy as np import six from google.protobuf.any_pb2...
{ "content_hash": "7338f57963d079673f63b9dc759412d6", "timestamp": "", "source": "github", "line_count": 1217, "max_line_length": 80, "avg_line_length": 39.75842235004109, "alnum_prop": 0.6402265118009342, "repo_name": "ibab/tensorflow", "id": "88839d421e1a83b7f795075c1af213534f05f6f6", "size": "490...
var React = require('react'); var pagination = require('pagination'); module.exports = React.createClass({ propTypes: { currentPage : React.PropTypes.number, resultsPerPage: React.PropTypes.number, totalResults: React.PropTypes.number, pageLinks: React.PropTypes.number, onSelectPage: React.PropT...
{ "content_hash": "8210886dc7cf4fdd781b74c12068d709", "timestamp": "", "source": "github", "line_count": 92, "max_line_length": 75, "avg_line_length": 24.804347826086957, "alnum_prop": 0.5775635407537248, "repo_name": "waigo/admin", "id": "9f5a6a385fddb41b3cd4dddeee447edc28f6ec18", "size": "2282", ...
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <assert.h> #include <limits.h> #include <stdlib.h> #include <string.h> #include "libdwP.h" int dwarf_getsrc_file (Dwarf *dbg, const char *fname, int lineno, int column, Dwarf_Line ***srcsp, size_t *nsrcs) { if (dbg == NULL) return -1; bool is_...
{ "content_hash": "03867cd136a9ce5879b94a63964c8884", "timestamp": "", "source": "github", "line_count": 145, "max_line_length": 78, "avg_line_length": 24.689655172413794, "alnum_prop": 0.5614525139664804, "repo_name": "indashnet/InDashNet.Open.UN2000", "id": "2c4fc768d7027f3cce141b267652c1a5bf07af27"...
ACCEPTED #### According to NUB Generator [autonym] #### Published in null #### Original name null ### Remarks null
{ "content_hash": "de6ea115b1e0328c4af23cc731461f0a", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 23, "avg_line_length": 9.076923076923077, "alnum_prop": 0.6779661016949152, "repo_name": "mdoering/backbone", "id": "339471239fda353aeda14a7cdd8b3270428445f6", "size": "180...
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="/static/css/default.css" /> <link rel="stylesheet" href="/static/css/print.css" media="print" /> {% if state.command_url not in ("/auth/login/", "/auth/logout/") %} <link rel="stylesheet" href="/jsapi/as.css?ts=...
{ "content_hash": "3656d76ff3c31d7e9e6b1e557ea80e32", "timestamp": "", "source": "github", "line_count": 82, "max_line_length": 113, "avg_line_length": 41.91463414634146, "alnum_prop": 0.6080884492289788, "repo_name": "laborautonomo/Mailpile", "id": "49e7f9f7d73d1a09d25981a7fc2b25a437d59d39", "size"...
import os from build_swift.build_swift.constants import MULTIROOT_DATA_FILE_PATH from . import cmark from . import foundation from . import libcxx from . import libdispatch from . import libicu from . import llbuild from . import llvm from . import product from . import swift from . import swiftpm from . import xctes...
{ "content_hash": "8513a767127484219f7bb47ea7a81ff7", "timestamp": "", "source": "github", "line_count": 104, "max_line_length": 78, "avg_line_length": 28.990384615384617, "alnum_prop": 0.5887230514096186, "repo_name": "CodaFi/swift", "id": "00cdef0dd0c5c7007e9e6395b230cc285d963783", "size": "3523",...
from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/mission/quest_item/shared_attunement_grid.iff" result.attribute_template_id = -1 result.stfName("item_n","attunement_grid") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
{ "content_hash": "7a4f2a095273d9e7d4801410d7549074", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 82, "avg_line_length": 24.23076923076923, "alnum_prop": 0.7015873015873015, "repo_name": "anhstudios/swganh", "id": "ddf605b5d2e37eb365cbf7a0808f0e7b443f5323", "size": "460...
#include "su_tests/simple_tests.h" #include "su_saxparser.h" #include "su_flat_map.h" #ifdef HAS_EXPAT #include <sstream> #include <cctype> class MyParser : public su::saxparser { public: MyParser( std::istream &i_stream ) : su::saxparser( i_stream ){} virtual void startDocument() { ++_seenStartDoc; } vi...
{ "content_hash": "399eee5b099fe2ae15a73fbc3707220d", "timestamp": "", "source": "github", "line_count": 120, "max_line_length": 107, "avg_line_length": 26.658333333333335, "alnum_prop": 0.6567677399187246, "repo_name": "sandym/sutils", "id": "3f588c60ca50f577cec90d83559829615fe9252d", "size": "3655...
import buildtool.command COMMAND = 'test_command_example' CUSTOM_ARG_NAME = 'custom_test_arg' CUSTOM_ARG_DEFAULT_VALUE = 'Custom Default Value' class TestCommand(buildtool.command.CommandProcessor): @property def calls(self): return self.__calls def __init__(self, factory, options): super(TestCommand,...
{ "content_hash": "766e227184e84795193e766bba101df1", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 68, "avg_line_length": 29.5, "alnum_prop": 0.722457627118644, "repo_name": "skim1420/spinnaker", "id": "1cdba67ec569eb9c0a4646a9fe8e83c5d5042a89", "size": "1578", "binary...
/*! * Copyright (c) 2015 by Contributors * \file base.h * \brief configuration of MXNet as well as basic data structure. */ #ifndef MXNET_BASE_H_ #define MXNET_BASE_H_ #include "dmlc/base.h" #include <string> #include "dmlc/io.h" #include "dmlc/type_traits.h" #include "dmlc/parameter.h" #include "mshadow/tensor...
{ "content_hash": "925ec48845d9522401e2a7b63d83dbb1", "timestamp": "", "source": "github", "line_count": 551, "max_line_length": 99, "avg_line_length": 31.17059891107078, "alnum_prop": 0.6650363901018923, "repo_name": "sxjscience/mxnet", "id": "addd7665f5be287d526612b4e30c45e5ce3101c6", "size": "179...
package de.kaiserpfalzedv.commons.api.data.types; import java.io.Serializable; /** * @author klenkes {@literal <rlichti@kaiserpfalz-edv.de>} * @version 1.0.0 * @since 2017-08-19 */ public interface Email extends Serializable { String getAddress(); }
{ "content_hash": "fcb9801fac215857217495b6d2edb6de", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 58, "avg_line_length": 18.714285714285715, "alnum_prop": 0.7137404580152672, "repo_name": "klenkes74/kp-office", "id": "807a7778b3be9bb44a990619a08837279a82fede", "size": "...
/* * Created on Sep 28, 2005 * * TODO To change the template for this generated file go to Window - Preferences - Java - Code * Style - Code Templates */ package org.apache.geode.cache.query.data; import java.util.ArrayList; import java.util.List; public class Student { private static int counter = 0; stat...
{ "content_hash": "a78353e48a513acd2b519f30792997af", "timestamp": "", "source": "github", "line_count": 60, "max_line_length": 95, "avg_line_length": 20.5, "alnum_prop": 0.6186991869918699, "repo_name": "jdeppe-pivotal/geode", "id": "4cb5aba7224d993cfc9fe39675c78b6d457293d5", "size": "2019", "bin...
<readable><title>2709648336_15455e60b2</title><content> A brown dog in midair with a Frisbee in his mouth . A brown dog is catching a Frisbee in midair . A brown dog jumped into the air and caught a Frisbee . A large brown and black dog jumps in the air holding a white Frisbee in its mouth . The dog leaps to catch the ...
{ "content_hash": "7f0fd37c283c941b16f8b94b5136c549", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 83, "avg_line_length": 50.142857142857146, "alnum_prop": 0.7663817663817664, "repo_name": "kevint2u/audio-collector", "id": "27a0063a14bc700ad24c303cb1a5bb1de7a660d3", "size...
define([ 'knockout', './ComparativeCohortAnalysis/ComparativeCohortAnalysis' ], function ( ko, ComparativeCohortAnalysis ) { class EstimationAnalysisSettings { constructor(data = {}, estimationType, defaultCovariateSettings) { this.estimationType = (data.estimationType || estimation...
{ "content_hash": "b00ff9af614c08911b10fcec8c8a02c3", "timestamp": "", "source": "github", "line_count": 24, "max_line_length": 139, "avg_line_length": 39.541666666666664, "alnum_prop": 0.7007376185458377, "repo_name": "OHDSI/Atlas", "id": "e2dcd7142dc2642da563b62ec5cd983cd86c4b5a", "size": "949", ...
declare module JSX { interface Element {} interface IntrinsicElements { div: any; } } // The "React" module is the runtime API of React. declare module React { function createElement(...args: any[]): Element; function render(element: JSX.Element, node: HTMLElement): void; } // Fake a subcomponent, just t...
{ "content_hash": "186dfb2e3688c7ee27b8ac0fe336080f", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 70, "avg_line_length": 21.076923076923077, "alnum_prop": 0.6970802919708029, "repo_name": "PaulMrn/TFC", "id": "3c2762167f77503ec001948111c2ae171a4c1e1b", "size": "750", ...
import {isDefined, isTabVisible, isValue, parseDate} from "../../module/util"; export default { /** * Flow data to the chart.<br><br> * By this API, you can append new data points to the chart. * @function flow * @instance * @memberof Chart * @param {object} args The object can consist with following mem...
{ "content_hash": "70153ba21870cc3ff794226b323843ab", "timestamp": "", "source": "github", "line_count": 216, "max_line_length": 144, "avg_line_length": 28.912037037037038, "alnum_prop": 0.5703763010408327, "repo_name": "naver/billboard.js", "id": "02373389667b9cede2483f4bdbaed30711ef23c3", "size": ...
#ifndef ALIABSO_H #define ALIABSO_H /* $Id$ */ //////////////////////////////////////////////// // Manager class for detector: ABSO // //////////////////////////////////////////////// #include "AliModule.h" class AliABSO : public AliModule { public: AliABSO(); AliABSO(const char *name, ...
{ "content_hash": "d093780680eb7497c23441faf29a6d08", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 83, "avg_line_length": 30.18918918918919, "alnum_prop": 0.5666965085049239, "repo_name": "mkrzewic/AliRoot", "id": "6e19c2197283bbf6d3d6865c7e23404c17a77abe", "size": "1269...
import System.FilePath.Glob import Test.DocTest main :: IO () main = glob "src/**/*.hs" >>= doctest
{ "content_hash": "d3151d16d87c0a417ed5e6e5edf7c93a", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 37, "avg_line_length": 20.2, "alnum_prop": 0.6633663366336634, "repo_name": "angerman/data-bitcode-edsl", "id": "4e85e16e7814394abacc97af3a3dd3d2c0bc7432", "size": "101", ...
<?php namespace Google\Cloud\BigQuery; use Google\Cloud\BigQuery\Connection\ConnectionInterface; use Google\Cloud\Exception\NotFoundException; use Google\Cloud\Storage\StorageObject; /** * [BigQuery Tables](https://cloud.google.com/bigquery/docs/tables) are a * standard two-dimensional table with individual recor...
{ "content_hash": "e5f904848ae8f251de16b97b20f9be90", "timestamp": "", "source": "github", "line_count": 562, "max_line_length": 150, "avg_line_length": 31.259786476868328, "alnum_prop": 0.543943533697632, "repo_name": "IRWNetwork/Stakeholders", "id": "0d9b7502af0ac4c59a95b16348bae8f8d14c90a0", "siz...
<!-- Copyright Contributors to the Qiskit project. --> # Code of Conduct All members of this project agree to adhere to the Qiskit Code of Conduct listed at [https://github.com/Qiskit/qiskit/blob/master/CODE_OF_CONDUCT.md](https://github.com/Qiskit/qiskit/blob/master/CODE_OF_CONDUCT.md) ---- License: [CC BY 4.0](htt...
{ "content_hash": "b9f66738350d364afbbe3954a8384f06", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 214, "avg_line_length": 44.22222222222222, "alnum_prop": 0.7512562814070352, "repo_name": "QISKit/qiskit-sdk-py", "id": "f82b61c5f62641335b41cdda1e459c6a8e9a716c", "size": "...
package blue.lapis.pore.impl.event.vehicle; import static com.google.common.base.Preconditions.checkNotNull; import org.apache.commons.lang3.NotImplementedException; import org.bukkit.Location; import org.bukkit.entity.Vehicle; import org.bukkit.event.vehicle.VehicleMoveEvent; import org.spongepowered.api.event.enti...
{ "content_hash": "5d8ab06942ccbb905d6931d72e440dd6", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 64, "avg_line_length": 25.175, "alnum_prop": 0.7130089374379345, "repo_name": "skcoreimaj/Pore", "id": "fa67bf8d2104498396904224d1de39aae98fdac5", "size": "2183", "binary...
/** * @file minibatch_sgd_impl.hpp * @author Ryan Curtin * * Implementation of mini-batch SGD. */ #ifndef MLPACK_CORE_OPTIMIZERS_MINIBATCH_SGD_MINIBATCH_SGD_IMPL_HPP #define MLPACK_CORE_OPTIMIZERS_MINIBATCH_SGD_MINIBATCH_SGD_IMPL_HPP // In case it hasn't been included yet. #include "minibatch_sgd.hpp" namespace ...
{ "content_hash": "9f31f25205f4b357a1449a92c0375848", "timestamp": "", "source": "github", "line_count": 156, "max_line_length": 80, "avg_line_length": 30.993589743589745, "alnum_prop": 0.6413650465356774, "repo_name": "ajjl/mlpack", "id": "9a2adf2e01ffbac3026fd9d1e0d86df6a8ca7771", "size": "4835", ...
/* eslint-disable no-unused-vars, no-unused-expressions */ /* @flow */ import React from "react"; import { compose, withProps } from "recompose"; import type { HOC } from "recompose"; type EnhancedCompProps = { a: string, b: number }; const Comp = ({ hello, b }) => ( <div> {hello} {b} { // $FlowE...
{ "content_hash": "6a1414dd1513b351074328240f7890b9", "timestamp": "", "source": "github", "line_count": 58, "max_line_length": 65, "avg_line_length": 22.344827586206897, "alnum_prop": 0.5879629629629629, "repo_name": "splodingsocks/FlowTyped", "id": "8ade23063d179711b6a7b3b9cdb0812ca5f1673f", "size...
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in Opredelitel' trutovykh gribov Belorussii 97 (1964) #### Original name Polyporus hoehnelii Bres., 1912 ### Remarks null
{ "content_hash": "29b384e72eb428547d3271694efb3be1", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 50, "avg_line_length": 15.846153846153847, "alnum_prop": 0.7378640776699029, "repo_name": "mdoering/backbone", "id": "20b89b4b2faf616b99aa9f4f136849daeb8d9a40", "size": "27...
package org.jetbrains.idea.svn.dialogs; import com.intellij.openapi.actionSystem.ActionManager; import com.intellij.openapi.actionSystem.ActionPopupMenu; import com.intellij.openapi.actionSystem.DefaultActionGroup; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.text.StringUtil; import c...
{ "content_hash": "5260c4b26fa57b648645500aed6442b1", "timestamp": "", "source": "github", "line_count": 184, "max_line_length": 129, "avg_line_length": 31.559782608695652, "alnum_prop": 0.689512657137937, "repo_name": "salguarnieri/intellij-community", "id": "2be89412dc427dd6b4076a5354f26e13b4849bf8"...
<!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" ng-app="docsApp" lang="en" ng-controller="DocsController"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" ng-app="docsApp" lang="en" ng-controller="DocsController"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" ng...
{ "content_hash": "cb08c23961915957edf40ef247643f71", "timestamp": "", "source": "github", "line_count": 268, "max_line_length": 183, "avg_line_length": 53.15298507462686, "alnum_prop": 0.4537030537030537, "repo_name": "opendatasoft/ods-widgets", "id": "f9ab6b46de5d8b15b87a189d6e7f3ac2310b0923", "si...
<?php /** * Default Spanish lexicon topic * * @language es_MX * @package MODX * @subpackage lexicon */ $_lang['access'] = 'Acceso'; $_lang['access_denied'] = 'Acceso denegado.'; $_lang['action'] = 'Acción'; $_lang['action_err_nfs'] = 'No se encontró acción con ID:[[+id]].'; $_lang['actions'] = 'Accio...
{ "content_hash": "7231bf7a850dd377cc6116b3544c83c1", "timestamp": "", "source": "github", "line_count": 488, "max_line_length": 315, "avg_line_length": 49.61065573770492, "alnum_prop": 0.6475010326311441, "repo_name": "yenbekbay/clinic", "id": "3069c4155ba494e1466da92b1c08624202cfc8b2", "size": "24...
Hooks - Complete List ===================== * 'about_hook' * 'account_settings' * 'app_menu' * 'atom_author' * 'atom_entry' * 'atom_feed' * 'atom_feed_end' * 'authenticate' * 'avatar_lookup' * 'bb2diaspora' * 'bbcode' * 'channel_remove' * 'check_account_email' * 'check_account_invite' * 'check_account_password' * 'co...
{ "content_hash": "0d7f52d3f9dbea20d9b9397ca175c293", "timestamp": "", "source": "github", "line_count": 136, "max_line_length": 35, "avg_line_length": 18.941176470588236, "alnum_prop": 0.6393633540372671, "repo_name": "solstag/redmatrix", "id": "90edff62305cd02ef68306968a0a5744902f8cd0", "size": "2...
CREATE OR REPLACE FUNCTION ts2_page_title() RETURNS TRIGGER LANGUAGE plpgsql AS $mw$ BEGIN IF TG_OP = 'INSERT' THEN NEW.titlevector = to_tsvector(REPLACE(NEW.page_title,'/',' ')); ELSIF NEW.page_title != OLD.page_title THEN NEW.titlevector := to_tsvector(REPLACE(NEW.page_title,'/',' ')); END IF; RETURN NEW; END; $m...
{ "content_hash": "e8435bc9c54d37463b9180b9862cfcbb", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 66, "avg_line_length": 22.37037037037037, "alnum_prop": 0.7102649006622517, "repo_name": "stuartbman/mediawiki-vagrant", "id": "c24efef3df6580051eb7855ef737709b1bea084c", "...
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "301b87b263e055ef51e9f50367633efc", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.307692307692308, "alnum_prop": 0.6940298507462687, "repo_name": "mdoering/backbone", "id": "1431be25a8bac1e6bbd665dbc2e6f55d03c139f2", "size": "19...
package org.onosproject.kubevirtnode.api; import com.google.common.base.MoreObjects; import org.apache.commons.lang.StringUtils; import org.onlab.osgi.DefaultServiceDirectory; import org.onlab.packet.IpAddress; import org.onosproject.net.DeviceId; import org.onosproject.net.Port; import org.onosproject.net.PortNumber...
{ "content_hash": "4a4d4fec743541bb1f3c9768c72b9223", "timestamp": "", "source": "github", "line_count": 430, "max_line_length": 94, "avg_line_length": 30.6, "alnum_prop": 0.5797233622131023, "repo_name": "opennetworkinglab/onos", "id": "45c2e6c0e686a4e28e0e05108951020752263942", "size": "13775", ...
from __future__ import absolute_import from __future__ import with_statement import errno import os import resource import signal from mock import Mock, patch from celery import current_app from celery import platforms from celery.platforms import ( get_fdmax, shellsplit, ignore_EBADF, set_process_ti...
{ "content_hash": "ee0b18c4868471e02c116884d9069f31", "timestamp": "", "source": "github", "line_count": 658, "max_line_length": 76, "avg_line_length": 33.209726443769, "alnum_prop": 0.5417810726706938, "repo_name": "couchbaselabs/celery", "id": "de5494414af49fba2ed3642acfc5cfc9952f56f0", "size": "2...
#!/usr/bin/env node /** * Module dependencies. */ import app from "../app.js"; import dgb from "debug"; import http from "http"; const debug = dgb("drawphone:server"); /** * Get port from environment and store in Express. */ const port = normalizePort(process.env.PORT || "3000"); app.set("port", port); /** ...
{ "content_hash": "019868020ba4326e2b884eb5071d44ed", "timestamp": "", "source": "github", "line_count": 101, "max_line_length": 79, "avg_line_length": 19.217821782178216, "alnum_prop": 0.5862957238536837, "repo_name": "tannerkrewson/drawphone", "id": "c79ccd5f6ad30dd1e1e8d72325e85b4317e7854c", "siz...
package getch import ( "errors" "fmt" "strings" "unicode/utf16" "github.com/zetamatta/go-getch/consoleinput" ) const ( RIGHT_ALT_PRESSED = 1 LEFT_ALT_PRESSED = 2 RIGHT_CTRL_PRESSED = 4 LEFT_CTRL_PRESSED = 8 CTRL_PRESSED = RIGHT_CTRL_PRESSED | LEFT_CTRL_PRESSED ALT_PRESSED = RIGHT_ALT_PRES...
{ "content_hash": "af7e082367c09a177d94d2d163276fe8", "timestamp": "", "source": "github", "line_count": 262, "max_line_length": 88, "avg_line_length": 21.984732824427482, "alnum_prop": 0.6432291666666666, "repo_name": "zetamatta/go-getch", "id": "1ddfeac7ef56520553125a92185f948a6644c239", "size": "...
Google Cloud Datastore is a fully managed, schemaless, non-relational datastore accessible through Google APIs infrastructure. It provides a rich set of query capabilities, supports atomic transactions, and automatically scales up and down in response to load. The API is deliberately low-level to map to the underlying...
{ "content_hash": "926a7e30f9403e93869caa5a4d08da3f", "timestamp": "", "source": "github", "line_count": 118, "max_line_length": 160, "avg_line_length": 28.728813559322035, "alnum_prop": 0.7389380530973452, "repo_name": "webhost/google-cloud-datastore", "id": "831774062c8e8ff93454951e674eced8773bd7f1"...
/** * Manages all shortcut keys. */ 'use strict'; var $ = require('jquery'); var hotkeys = require('hotkeys'); var is = require('is_js'); /** The hotkey dispatcher */ var dispatcher; var $searchText; var $clearButton; function bindHotkeys() { dispatcher = new hotkeys.Dispatcher(); var hotkeyModifier = is....
{ "content_hash": "8d1fe793700204d0b0e76b8aea5ff6e3", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 53, "avg_line_length": 19.939393939393938, "alnum_prop": 0.6048632218844985, "repo_name": "joeattardi/tailstreamer", "id": "cc187c546056e7fb49b3adb6b56762ad1ca9508c", "size...
--- title: Xadow - GPS category: RePhone bzurl: https://www.seeedstudio.com/Xadow-GPS-p-1600.html oldwikiname: Xadow - GPS prodimagename: Xadow_gps.jpg surveyurl: https://www.research.net/r/xadow_gps sku: 113040001 --- ![](https://github.com/SeeedDocument/Xadow_GPS/raw/master/img/Xadow_gps.jpg) Xadow GPS is...
{ "content_hash": "b56a6709ea15e3b495274d24e6eb3cb4", "timestamp": "", "source": "github", "line_count": 98, "max_line_length": 481, "avg_line_length": 45.88775510204081, "alnum_prop": 0.7184789859906604, "repo_name": "SeeedDocument/Seeed-WiKi", "id": "05077674a21861944f7b1ef944afc1fd89f9bc22", "siz...
module.exports = function(grunt) { var relations = function(basepath){ var path = require("path"); var fs = require('fs'); var modulef = path.join(basepath, 'modules.json'); var modules = grunt.file.readJSON(modulef); var caches = []; for(var i in modules){ var module = modules[i]; ...
{ "content_hash": "ee06cdbfdeb21a174321c8f3dbe1aebf", "timestamp": "", "source": "github", "line_count": 87, "max_line_length": 86, "avg_line_length": 23.057471264367816, "alnum_prop": 0.5304087736789631, "repo_name": "zxf/g3", "id": "9ac2a8be7ab0780d789ed450b8e466e9f471a37b", "size": "2163", "bin...
// Template Source: BaseEntityRequest.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------...
{ "content_hash": "51d5a2a8d2c5b58b548a41f0b3f154fb", "timestamp": "", "source": "github", "line_count": 173, "max_line_length": 212, "avg_line_length": 38.138728323699425, "alnum_prop": 0.7140042437102152, "repo_name": "microsoftgraph/msgraph-sdk-java", "id": "d1fcc392678defe914a0ea0188f0e1bb30f0aae8...
/* ---------------------------------------------------------------------------- */ /* Atmel Microcontroller Software Support */ /* SAM Software Package License */ /* --------------------------------------------------------------------...
{ "content_hash": "f444fec461a8ed7d613958a376b2a4b7", "timestamp": "", "source": "github", "line_count": 71, "max_line_length": 112, "avg_line_length": 65.08450704225352, "alnum_prop": 0.5072495130924043, "repo_name": "AtmelUniversityFrance/SAMD21-XPRO", "id": "9b88dc674f750572ca5d443afcaee09ebceda82e...
import {Observable} from 'rxjs'; export class WebSocketService{ ws: WebSocket; socketIsOpen = 1; // WebSocket's open createObservableSocket(url:string): Observable<any>{ this.ws = new WebSocket(url); return new Observable( observer => { this.ws.onmessage = (event) => observer...
{ "content_hash": "7be1e55b270af3a57e0409e8e2f63e7c", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 59, "avg_line_length": 22.08108108108108, "alnum_prop": 0.5899632802937577, "repo_name": "Farata/angulartypescript", "id": "547fc8f948f29598b4efe13e18d073c22a8460c5", "size...
@extends('admin/app') @section('breadcrumb') {!! Breadcrumbs::render('menus', 'Menus') !!} @endsection @include('admin.partial._contentheader_title', [$model = new \App\Core\Models\Menu(), $message = "Amount of Menus"]) @section('contentheader_description') @include('admin.partial._content-head_btns', [$routeNa...
{ "content_hash": "dab7fc56a104feb5006dc2743fed56b9", "timestamp": "", "source": "github", "line_count": 107, "max_line_length": 124, "avg_line_length": 39.32710280373832, "alnum_prop": 0.4458174904942966, "repo_name": "storecamp/storecamp", "id": "fc23f28a891781b6fe45973b90b45bbd719b5cfa", "size": ...
require 'rails_helper' RSpec.describe PropertiesController, type: :controller do # let(:agency_id) { @agency_id = 1} # describe "GET #index" do # it "returns http success" do # get agency_properties_path(:agency_id) # expect(response).to have_http_status(:success) # end # end # # describ...
{ "content_hash": "1bd419e9d9352e068b916bda1d99a024", "timestamp": "", "source": "github", "line_count": 20, "max_line_length": 57, "avg_line_length": 23.4, "alnum_prop": 0.6260683760683761, "repo_name": "sumonsm/RealEstatePropertyListingApp", "id": "ef16c495d704e1ec2500a69b40644d0feef6b719", "size"...
layout: base --- <!-- 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...
{ "content_hash": "8f989ff09d93537def1d0f24dfc57875", "timestamp": "", "source": "github", "line_count": 77, "max_line_length": 204, "avg_line_length": 33.935064935064936, "alnum_prop": 0.6460007654037505, "repo_name": "shaoxuan-wang/flink", "id": "10c5993a208aa520ec2fe2948bca17555e63a5e5", "size": ...
use pongo::ui::{Drawable, Ui}; use sdl2::pixels::Color; use sdl2::rect::Rect; use super::Resettable; pub struct Paddle { pub color: Color, pub initial_x: f32, // The initial x location. Stored so that we can reset the paddle. pub initial_y: f32, // The initial y location. Stored so that ...
{ "content_hash": "2e66023821d3ccf82ba643ad7f14b718", "timestamp": "", "source": "github", "line_count": 69, "max_line_length": 98, "avg_line_length": 26.72463768115942, "alnum_prop": 0.5010845986984815, "repo_name": "wickus/pongo", "id": "b5cdd151d37e19da9f58599f28c436e518444c13", "size": "1844", ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-e...
{ "content_hash": "db8bd97c5a94161b232419f9648e6d29", "timestamp": "", "source": "github", "line_count": 470, "max_line_length": 999, "avg_line_length": 42.11063829787234, "alnum_prop": 0.6192400970088925, "repo_name": "statsmodels/statsmodels.github.io", "id": "9cee06f53c64346cd453c23e99f63e3bb07ffaa...
#ifndef SAMPLES_MOBILENETV1_H #define SAMPLES_MOBILENETV1_H #include <stdint.h> typedef struct { int best_idx; int best_out; } MobilenetV1Output; #endif
{ "content_hash": "4ca32261190ec44c69f33565cfc6bca2", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 29, "avg_line_length": 12.76923076923077, "alnum_prop": 0.7168674698795181, "repo_name": "AmbiML/iree-rv32-springbok", "id": "d51194698dde6503da5566dd1f53e9c1bf0d43bc", "si...
package org.elasticsearch.index.mapper; import com.google.common.collect.Sets; import org.apache.lucene.document.Field; import org.apache.lucene.index.IndexOptions; import org.apache.lucene.index.IndexableField; import org.apache.lucene.util.CloseableThreadLocal; import org.elasticsearch.Version; import org.elastic...
{ "content_hash": "f6413959bdedbb68e5e7dc0dd279b021", "timestamp": "", "source": "github", "line_count": 773, "max_line_length": 222, "avg_line_length": 49.94307891332471, "alnum_prop": 0.5914624669740455, "repo_name": "fekaputra/elasticsearch", "id": "403162cf7fc90116f5c8e2d4aaa8b98555fcfdd8", "siz...
One of the great features of the Go programming language is the commitment to compatibility as decribed on the document [Go 1 and the Future of Go Programs](https://golang.org/doc/go1compat). Most importantly, the policy states that programs written for Go 1.0 should continue to work without modification in Go 1.1, 1....
{ "content_hash": "132a0094f33b3739400bcb5f3bc509ee", "timestamp": "", "source": "github", "line_count": 122, "max_line_length": 81, "avg_line_length": 39.057377049180324, "alnum_prop": 0.7729275970619097, "repo_name": "jbuberel/gochecklist", "id": "efc16977ffb3e5b1ef9835e61c17f7225738e8a5", "size":...
package permission import ( "go/ast" goparser "go/parser" "go/token" "go/types" "reflect" "testing" ) // newInterfaceWithMethod creates a recursive interface permission func newInterfaceWithMethod() *InterfacePermission { iface := &InterfacePermission{ BasePermission: Mutable, Methods: []*FuncPermission{ ...
{ "content_hash": "b210135abd5ff05d3fb9b9c7cee5371e", "timestamp": "", "source": "github", "line_count": 151, "max_line_length": 105, "avg_line_length": 23.2317880794702, "alnum_prop": 0.6681870011402509, "repo_name": "julian-klode/lingolang", "id": "d5ef6c53af36fb1176bd2ceb144801a11143859f", "size"...
/***********************************************************************//** * @file EngineComponentCollection.java * @author Kurt E. Clothier * @date December 7, 2015 * * @breif Collection of all Engine Component sets * * @pre Compiler: Eclipse - Mars Release (4.5.0) * @pre Java: JRE 7 or greater * * @see ...
{ "content_hash": "ce6869878d637d3d776e4e9101db15cf", "timestamp": "", "source": "github", "line_count": 93, "max_line_length": 119, "avg_line_length": 36.333333333333336, "alnum_prop": 0.6972477064220184, "repo_name": "Kurt-E-Clothier/java-card-game-engine", "id": "341a2642f77f6f83ca71de7ca7e88981033...
'use strict'; angular.module('myApp.view2', []) .controller('View2Ctrl', [function() { }]);
{ "content_hash": "f89dc8f37bd573dbaf29857339cadd18", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 38, "avg_line_length": 11.875, "alnum_prop": 0.6210526315789474, "repo_name": "idpokute/NG_MME", "id": "87c264f6a0ba2d02e07971da7665a4d3b2e133fd", "size": "95", "binary": ...
package com.chrisomeara.pillar import com.datastax.driver.core.querybuilder.QueryBuilder import com.datastax.driver.core.{Metadata, Session} import org.scalatest.matchers.ShouldMatchers trait AcceptanceAssertions extends ShouldMatchers { val session: Session val keyspaceName: String protected def assertEmptyAp...
{ "content_hash": "548192c0ec14ef2437fa77ef5a8d74f1", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 112, "avg_line_length": 33.21052631578947, "alnum_prop": 0.7939778129952456, "repo_name": "smr-co-uk/pillar", "id": "e53674e1d332dcc5354553bd25963ac94151692b", "size": "631...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>izf: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="...
{ "content_hash": "ee45363e1e7e860361c9f6b490ac1853", "timestamp": "", "source": "github", "line_count": 181, "max_line_length": 157, "avg_line_length": 40.850828729281766, "alnum_prop": 0.5536921828509602, "repo_name": "coq-bench/coq-bench.github.io", "id": "100e8357f7097afb8b8fc434b3ea3e311a29413b",...
use strict; use warnings; use CondorTest; use CondorUtils; # use like this: x_renamebypattern.pl \*trigger\* my $pattern = $ARGV[0]; #open(LOG,">run_test_log"); my $start = localtime; print LOG "Started at $start\n"; open(TESTS,"ls $pattern | "); while(<TESTS>) { CondorUtils::fullchomp($_); my $now = localtime; ...
{ "content_hash": "3f164d8b794c53132da8d8529d0384ec", "timestamp": "", "source": "github", "line_count": 39, "max_line_length": 54, "avg_line_length": 22.871794871794872, "alnum_prop": 0.6345291479820628, "repo_name": "djw8605/htcondor", "id": "0aa39078e432a64b6353784b92bb84730bd2c52b", "size": "172...
<?php /** * @file * Class file to control the main Panels editor. */ class panels_renderer_editor extends panels_renderer_standard { /** * An array of AJAX commands to return. If populated it will automatically * be used by the AJAX router. */ var $commands = array(); var $admin = TRUE; /** *...
{ "content_hash": "6a23cd9e87ee3ca173a18980c3bd17de", "timestamp": "", "source": "github", "line_count": 2072, "max_line_length": 237, "avg_line_length": 31.936293436293436, "alnum_prop": 0.5738832134437526, "repo_name": "aramboyajyan/d7level3", "id": "c4214dd5067ea3f10e19031aef6cc1a37ac5fcbb", "siz...
/** * @module helpers/Task */ var grunt = require('grunt'); var surrogateSuffix = '_assets_versioning'; var postSuffix = '_post_assets_versioning'; /** * Create a task instance * @param {string} taskName * @param {Array} [taskFiles] * @constructor */ var Task = function (taskName, taskFiles) { grunt.log.writ...
{ "content_hash": "90f12a0df7e21ff45e9ef84e7cf8b391", "timestamp": "", "source": "github", "line_count": 114, "max_line_length": 104, "avg_line_length": 27.964912280701753, "alnum_prop": 0.7076537013801757, "repo_name": "cjbarth/grunt-assets-versioning", "id": "7186a635dff0ce8cd3eb6cac91ccaf4c38f811ff...
<?php abstract class Scalr_Messaging_Msg_DbMsr extends Scalr_Messaging_Msg { function __construct () { parent::__construct(); } function addDbMsrInfo(Scalr_Db_Msr_Info $msrInfo) { $this->dbType = $msrInfo->databaseType; $this->{$msrInfo->databaseType} = $msrInfo->getMessageProperties(); } }
{ "content_hash": "09270c3335bf8c8d434f19ddbcb6650d", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 70, "avg_line_length": 23.615384615384617, "alnum_prop": 0.6970684039087948, "repo_name": "wojons/scalr", "id": "44c84505403c4dcd5e259eb8fa7a9e433ea8f31f", "size": "307", ...
namespace doppia { using boost::shared_ptr; /// /// Loads images from a video stream stored as a set of images. /// Supports a preprocessor object for things like unbayering, rectification, etc ... /// /// Based on Andreas Ess code /// class VideoFromFiles : public AbstractVideoInput { public: static boost::pro...
{ "content_hash": "5959ddcc86d3e251ae96bfc07586733d", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 105, "avg_line_length": 31.55128205128205, "alnum_prop": 0.7082486793986185, "repo_name": "LevinJ/Pedestrian-detection-and-tracking", "id": "147c93b29d916935a8186a9eebec0562c...
class GURL; class Profile; namespace base { class MessageLoop; } namespace invalidation { class InvalidationService; } namespace syncer { class NetworkResources; class SyncManagerFactory; class UnrecoverableErrorHandler; } namespace sync_driver { class SyncPrefs; } namespace browser_sync { class ChangeProcessor; ...
{ "content_hash": "bf14f01f454e723b7de3395a26d3618b", "timestamp": "", "source": "github", "line_count": 349, "max_line_length": 80, "avg_line_length": 41.90830945558739, "alnum_prop": 0.7520853274989744, "repo_name": "Just-D/chromium-1", "id": "3f1501838457c4a3c0a0552715bd70d613796ed3", "size": "15...
<?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (c) WSO2 Inc. (http://www.wso2.org) 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:/...
{ "content_hash": "52f4a4391c0a54593ce355bdb87250e2", "timestamp": "", "source": "github", "line_count": 89, "max_line_length": 130, "avg_line_length": 45, "alnum_prop": 0.5508114856429464, "repo_name": "lankavitharana/carbon-storage-management", "id": "f508df6dd21d9f23bdb6f16da52d6b933cd04899", "si...
### Sum of Left Leaves Find the sum of all left leaves in a given binary tree. Example: ``` 3 / \ 9 20 / \ 15 7 ``` There are two left leaves in the binary tree, with values 9 and 15 respectively. Return 24. #### Solution ```java /** * Definition for a binary tree node. * public class TreeN...
{ "content_hash": "fdc6a1b95d5154383c06bd3e7a95ad48", "timestamp": "", "source": "github", "line_count": 52, "max_line_length": 91, "avg_line_length": 20.692307692307693, "alnum_prop": 0.49535315985130113, "repo_name": "kentsay/TIL", "id": "0351f9a7210f665a3852a78f34d19cd907474c8f", "size": "1076", ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193_char_cpy_81_goodG2B.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE193.label.xml Template File: sources-sink-81_goodG2B.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSo...
{ "content_hash": "211c23228ef22c164950d66459eb5dfb", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 101, "avg_line_length": 33.416666666666664, "alnum_prop": 0.6940980881130507, "repo_name": "JianpingZeng/xcc", "id": "08f1cbf55aacd78d960bdb35338e4b4367007173", "size": "12...