text
stringlengths
2
1.04M
meta
dict
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_NET_H #define BITCOIN_NET_H #include <deque> #include <boost/array...
{ "content_hash": "26ab2ea48451dc17d659fdb53f5d43d3", "timestamp": "", "source": "github", "line_count": 579, "max_line_length": 175, "avg_line_length": 28.07944732297064, "alnum_prop": 0.6067782015007996, "repo_name": "gbalme/Anacoinda", "id": "14e12aa102f255d0fee1467ec8c7b9339022513f", "size": "16...
var java = require("../"); var assert = require("assert"); var _ = require('lodash'); var when = require('when'); module.exports = { launch: function(test) { test.expect(7); var api = _.functions(java); test.ok(_.includes(api, 'isJvmCreated'), 'Expected `isJvmCreated` to be present, but it is NOT.'); ...
{ "content_hash": "e8bf80aca3c57e3884f242bd54d08512", "timestamp": "", "source": "github", "line_count": 113, "max_line_length": 110, "avg_line_length": 33.89380530973451, "alnum_prop": 0.6368146214099216, "repo_name": "lantanagroup/node-java", "id": "59e4c733b12f74092f21536005dccdfb2059fb13", "size...
"""Replay buffer that performs relabeling.""" import gin import numpy as np import tensorflow as tf from tf_agents.replay_buffers import tf_uniform_replay_buffer from tf_agents.utils import common @gin.configurable class RelabellingReplayBuffer(tf_uniform_replay_buffer.TFUniformReplayBuffer): """A replay buffer th...
{ "content_hash": "94d7166c28ba5335584f26ee557b5e2f", "timestamp": "", "source": "github", "line_count": 298, "max_line_length": 80, "avg_line_length": 44.84228187919463, "alnum_prop": 0.631519868293048, "repo_name": "google-research/google-research", "id": "54716e6008a390eb643f7a60244110c0f0e4131b", ...
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "c4f9dbe04e1d253de93d29ab8f4c464b", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.23076923076923, "alnum_prop": 0.6917293233082706, "repo_name": "mdoering/backbone", "id": "45c2bb5fae022c45b81b5395c509a81c7bc0d5dc", "size": "188...
- Now defaults to throwing an Error when a required module is not found, but this behavior can be changed by setting `options.allowUnresolvedModules` - `options.excludeNodeModules` can now be set to `true` or to an Array containing modules to be excluded from the project - `stats.unresolvedModules` contains informati...
{ "content_hash": "9f173b9b1374328a0e62b77673979157", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 77, "avg_line_length": 41.629629629629626, "alnum_prop": 0.7633451957295374, "repo_name": "bminer/node-module-concat", "id": "435e4385a14033f77985994ba283900f6eecd1f3", "si...
class GCHandleStore : public IGCHandleStore { public: virtual void Uproot(); virtual bool ContainsHandle(OBJECTHANDLE handle); virtual OBJECTHANDLE CreateHandleOfType(Object* object, HandleType type); virtual OBJECTHANDLE CreateHandleOfType(Object* object, HandleType type, int heapToAffinitizeTo); ...
{ "content_hash": "ffeed2001eb9ca3b823787e806d4cf70", "timestamp": "", "source": "github", "line_count": 63, "max_line_length": 123, "avg_line_length": 31.873015873015873, "alnum_prop": 0.7923306772908366, "repo_name": "poizan42/coreclr", "id": "48eb2ab17dfa05cfc646246a5a4fa481daf40861", "size": "23...
--- layout: post category: [algorithm] title: strStr tags: [string, for loop] --- For a given source string and a target string, you should output the first index(from 0) of target string in source string. If target does not exist in source, just return -1. O(n2) is acceptable. Can you implement an O(n) algorit...
{ "content_hash": "66d6bde35cc6b0519d300d9d87fec0bd", "timestamp": "", "source": "github", "line_count": 43, "max_line_length": 175, "avg_line_length": 30.186046511627907, "alnum_prop": 0.5993836671802774, "repo_name": "jianw851/jianw851.github.io", "id": "8cee94a6e8c982a9316ab37f7fd8446677da35b6", ...
using System; using Mono.Unix; using Gtk; using Hyena; using Hyena.Data; using Hyena.Widgets; using Banshee.Gui; using Banshee.Widgets; using Banshee.Gui.Dialogs; using Banshee.Playlist; using Banshee.Collection; using Banshee.Collection.Gui; using Banshee.ServiceStack; using Banshee.Configuration; using Banshee.Colle...
{ "content_hash": "af3ff5b4b61fca9a331b738113d98dcb", "timestamp": "", "source": "github", "line_count": 129, "max_line_length": 148, "avg_line_length": 32.17054263565891, "alnum_prop": 0.5908433734939759, "repo_name": "Dynalon/banshee-osx", "id": "261ae86a350d64b1f9be7742e7f42cb4a1b8368d", "size": ...
#define AVMB1_COMPAT #include "kcapi.h" #include <linux/module.h> #include <linux/mm.h> #include <linux/interrupt.h> #include <linux/ioport.h> #include <linux/proc_fs.h> #include <linux/sched.h> #include <linux/seq_file.h> #include <linux/skbuff.h> #include <linux/workqueue.h> #include <linux/capi.h> #include <linux...
{ "content_hash": "f4515e7fa379d607b9530661dbefecca", "timestamp": "", "source": "github", "line_count": 1306, "max_line_length": 100, "avg_line_length": 23.031393568147013, "alnum_prop": 0.6490907277502577, "repo_name": "AlbandeCrevoisier/ldd-athens", "id": "823f6985b2603198ff7b7ea7c8869db6032ba168",...
<h3>Image Crop <small>Simple Image Crop directive for AngularJS</small> </h3> <div class="container-fluid" ng-controller="ImageCropController as imgcrop"> <div class="row"> <div class="col-md-3"> <div class="panel"> <div class="panel-heading"> <a class="pull-right...
{ "content_hash": "91caaba333086faf7437c9e5b45373bf", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 176, "avg_line_length": 45.526315789473685, "alnum_prop": 0.5144508670520231, "repo_name": "gbhu/studynotes-projects", "id": "dd5fa64fd63d6dce85d8137bf57f03fc89fdb955", "si...
class Cacher # Example: # Cacher.fetch("user_#{user_id}_entry_#{id}_prior_entry", expires_in: 5.minutes) do # ... # end def self.fetch(key, opts = {}, &block) Rails.cache.fetch(key, opts) do Rails.logger.info "Cacher: Generating cache for key \"#{key}\"." yield end end def self.dele...
{ "content_hash": "6a6e523a0519c3e27478192f0766d78e", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 85, "avg_line_length": 27.764705882352942, "alnum_prop": 0.6419491525423728, "repo_name": "topherhunt/timesheet", "id": "88f523585dbc32c3ba42d5e21dbc68bae2224cc7", "size": ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>file-sync: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
{ "content_hash": "bf63d605a22dacd3a52676d6b835cb61", "timestamp": "", "source": "github", "line_count": 168, "max_line_length": 159, "avg_line_length": 42.023809523809526, "alnum_prop": 0.5481586402266289, "repo_name": "coq-bench/coq-bench.github.io", "id": "a472735b8cfb496e2b9425b1e76bc9786aca0b8b",...
herokuExpressTest =================
{ "content_hash": "aef747913bf1886160cfcef18849df5a", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 17, "avg_line_length": 18, "alnum_prop": 0.4722222222222222, "repo_name": "saitodisse/herokuExpressTest", "id": "65cc3df4de2c00bce492b142d895c1b8f7092589", "size": "36", "...
""" kinto Kinto is a minimalist JSON storage service with synchronisation and sharing abilities. It is meant to be easy to use and easy to self-host. **Limitations of this OpenAPI specification:** 1. Validation on OR clauses is not supported (e.g. provide `data` or `permissions` in patch operations). 2....
{ "content_hash": "67a23858cf93082e79a80373a4aba0f0", "timestamp": "", "source": "github", "line_count": 52, "max_line_length": 973, "avg_line_length": 61.23076923076923, "alnum_prop": 0.7283291457286433, "repo_name": "gabisurita/kinto-codegen-tutorial", "id": "a094f2ec051d01ba496489b2bddbc6472c2e6bcf...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Struct template basic_expr</title> <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../../index.html" title...
{ "content_hash": "746ec0de493123159fda2c06a16e6d49", "timestamp": "", "source": "github", "line_count": 158, "max_line_length": 615, "avg_line_length": 83.4367088607595, "alnum_prop": 0.658044451187135, "repo_name": "Ant-OS/android_packages_apps_OTAUpdates", "id": "6ca62814f3b5d968f8b4ff3f0fd69c0ab8f...
News for type-storage ============= This file lists the major changes between versions. For a more detailed list of every change, see the Git log. Latest ------ * tbd 3.0.0 ----- * Major: Upgrade to waf-tools 4 * Minor: Upgrade to gtest 4 2.2.0 ----- * Minor: Now ignoring ``const`` and ``volatile`` qualifiers on ty...
{ "content_hash": "960bfd92c2b6f4ea183799e8a743710a", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 121, "avg_line_length": 20.5, "alnum_prop": 0.6878048780487804, "repo_name": "steinwurf/type-storage", "id": "af8fdcf2c03466e924e54413168683b5944581f7", "size": "820", "b...
package br.gov.sp.fatec.security; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import java.io.IOException; import java.util.Date; import br.gov.sp.fatec.model.Usuario; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonProcessingExceptio...
{ "content_hash": "5ce5707e961c6e7dd778ef962594700d", "timestamp": "", "source": "github", "line_count": 43, "max_line_length": 113, "avg_line_length": 36.93023255813954, "alnum_prop": 0.6693954659949622, "repo_name": "sHilgert/webcars", "id": "569b9466ac2387e5371068261db8a9d6a6df376f", "size": "158...
declare enum RequestContext { "audio", "beacon", "cspreport", "download", "embed", "eventsource", "favicon", "fetch", "font", "form", "frame", "hyperlink", "iframe", "image", "imageset", "import", "internal", "location", "manifest", "object", "ping", "plugin", "prefetch", "script", "serviceworker", ...
{ "content_hash": "b8279df9854c60658776ce16728a9506", "timestamp": "", "source": "github", "line_count": 114, "max_line_length": 75, "avg_line_length": 28.42982456140351, "alnum_prop": 0.660290033940142, "repo_name": "trystanclarke/DefinitelyTyped", "id": "824c8a8ae012e9527b13d04f6b1288babb361513", ...
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- using System.Collections.Generic; using System.Threading.Tasks; namespace Microsoft.WindowsAzure...
{ "content_hash": "d38ec4e3203f1b9ed7088742bf91a976", "timestamp": "", "source": "github", "line_count": 42, "max_line_length": 130, "avg_line_length": 38.142857142857146, "alnum_prop": 0.5593008739076155, "repo_name": "apuyana/azure-mobile-services", "id": "4eb4023dee0179b7385405c554ba1c13b5e777a2", ...
* { -webkit-tap-highlight-color: rgba(0,0,0,0); } body { -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ back...
{ "content_hash": "74c25282339f0fcea03135bc1a91d5b5", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 87, "avg_line_length": 21.5, "alnum_prop": 0.6497093023255814, "repo_name": "48design/phonegap-test", "id": "1de1f2c0b0c1c7ff441886f28588f6f9e1f9b3f7", "size": "688", "bi...
// @flow import Icon from '@conveyal/woonerf/components/icon' import React, {Component} from 'react' import {Alert, Button, ButtonGroup, ButtonToolbar, OverlayTrigger, Tooltip} from 'react-bootstrap' import ll from '@conveyal/lonlat' import numeral from 'numeral' import lineDistance from 'turf-line-distance' import li...
{ "content_hash": "ef8472e5e2761a93a48230cd02318210", "timestamp": "", "source": "github", "line_count": 381, "max_line_length": 120, "avg_line_length": 37.8503937007874, "alnum_prop": 0.5911517925247902, "repo_name": "conveyal/datatools-manager", "id": "9f72213de2132f6fa730b9989fb0695f0abc66fd", "s...
import Koa from 'koa'; import staticFiles from 'koa-static'; import koaNodeResolve from 'koa-node-resolve'; import {URL} from 'url'; import * as path from 'path'; import {renderModule} from '../../lib/render-module.js'; import {Readable} from 'stream'; const {nodeResolve} = koaNodeResolve; const moduleUrl = new UR...
{ "content_hash": "dc1cb5ae52890a8996d951953c58b5cf", "timestamp": "", "source": "github", "line_count": 43, "max_line_length": 77, "avg_line_length": 25.627906976744185, "alnum_prop": 0.6733212341197822, "repo_name": "Polymer/lit-html", "id": "a2eebf284664f38fa2897c9ce6b0f19da26b3745", "size": "119...
import { Component, ChangeDetectionStrategy, Output, EventEmitter, ChangeDetectorRef, ViewChild, AfterViewInit, OnDestroy, } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Subscription } from 'rxjs'; import { AbstractOverlayContentDirective, InputComponent, OverlayIn...
{ "content_hash": "3e31165e5c93f2e4ce841cec36d3f321", "timestamp": "", "source": "github", "line_count": 141, "max_line_length": 96, "avg_line_length": 27.72340425531915, "alnum_prop": 0.6904579176259913, "repo_name": "google/web-prototyping-tool", "id": "5913e6d2cea9499b2bcb0295398c176fea02efaa", "...
@interface PKTCommentAPITests : XCTestCase @end @implementation PKTCommentAPITests - (void)testExample { NSURL *embedURL = [NSURL URLWithString:@"https://www.google.com"]; PKTRequest *request = [PKTCommentsAPI requestToAddCommentToObjectWithReferenceID:123 ...
{ "content_hash": "5d64e8d7a43f057d767f982e26a055f8", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 102, "avg_line_length": 48.18181818181818, "alnum_prop": 0.4839622641509434, "repo_name": "podio/podio-objc", "id": "3a265d9814d1f0fcced94a1c0f8dbf6878b6296b", "size": "127...
package arm import ( "fmt" "net/url" "strings" "github.com/hashicorp/packer/builder/azure/common/constants" "github.com/hashicorp/packer/packer" "github.com/mitchellh/multistep" ) type StepDeleteOSDisk struct { client *AzureClient delete func(string, string) error say func(message string) error func(e...
{ "content_hash": "16fe88c63638e8230821d9b4921bd4a8", "timestamp": "", "source": "github", "line_count": 71, "max_line_length": 106, "avg_line_length": 24.422535211267604, "alnum_prop": 0.7185697808535179, "repo_name": "deasmi/terraform-provider-libvirt", "id": "1dd28ec858563d2cfb231f1c20498dc36760a3b...
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb') class TesetEnUsLocale < Test::Unit::TestCase def setup FactoryHelper::Config.locale = nil end def teardown FactoryHelper::Config.locale = nil end def test_us_phone_methods_return_nil_for_nil_locale assert_nil FactoryHelper::Ph...
{ "content_hash": "eceb9a62bbc583290da4bac8ef700ad9", "timestamp": "", "source": "github", "line_count": 79, "max_line_length": 296, "avg_line_length": 39.35443037974684, "alnum_prop": 0.689289160501769, "repo_name": "razorcd/factory-helper", "id": "e6db79090e0b8524fe3b9792449773ff6c72d005", "size":...
<?php declare(strict_types=1); /* * This file is part of PHP CS Fixer. * * (c) Fabien Potencier <fabien@symfony.com> * Dariusz Rumiński <dariusz.ruminski@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Toke...
{ "content_hash": "2cbb3b26b7a7f253c3d11f7f6a0362ac", "timestamp": "", "source": "github", "line_count": 503, "max_line_length": 205, "avg_line_length": 30.435387673956264, "alnum_prop": 0.5338036449147561, "repo_name": "Slamdunk/PHP-CS-Fixer", "id": "a1b191217c8695f30b6827ea0c722e34e556974d", "size...
package org.switchyard.quickstarts.demos.orders; import org.switchyard.component.bean.Service; @Service(OrderService.class) public class OrderServiceBean implements OrderService { @Override public OrderAck submitOrder(Order order) { // Create an order ack OrderAck orderAck = new OrderAck().s...
{ "content_hash": "4114b997c9109330705eba02b2b89ca3", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 74, "avg_line_length": 26.41176470588235, "alnum_prop": 0.7216035634743875, "repo_name": "cunningt/switchyard", "id": "ea90f16f0933bc9c823fbc738c2f5cb44c732398", "size": "1...
FROM balenalib/raspberrypi3-alpine:edge-build # remove several traces of python RUN apk del 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: public key "Simon McVittie <smcv@pseudoran...
{ "content_hash": "7af58e925b9c5f04fe51887af7b089e5", "timestamp": "", "source": "github", "line_count": 93, "max_line_length": 716, "avg_line_length": 51.795698924731184, "alnum_prop": 0.7083246834129125, "repo_name": "resin-io-library/base-images", "id": "92a3da9c7adc2570324dafa1b963674b7138a5f6", ...
/*jslint nomen: true, unparam: true, regexp: true */ /*global define, window, document, URL, webkitURL, FileReader */ (function (factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // Register as an anonymous AMD module: define([ 'jquery', 'tmpl'...
{ "content_hash": "57c965a69503f8688ca6649f3717bfe9", "timestamp": "", "source": "github", "line_count": 627, "max_line_length": 87, "avg_line_length": 40.71451355661882, "alnum_prop": 0.4391648386085866, "repo_name": "jeremyf/sufia", "id": "991dee545e2d7a67ce55afe2f529cd2bfbbcf4c4", "size": "25775"...
![BCMagicTransition](https://github.com/boycechang/BCMagicTransition/blob/master/icon.png) BCMagicTransition [![Build Status](https://travis-ci.org/boycechang/BCMagicTransition.svg?branch=master)](https://travis-ci.org/boycechang/BCMagicTransition) ![Verison](https://cocoapod-badges.herokuapp.com/v/BCMagicTransition/...
{ "content_hash": "962a9704c92b6fd152a65e4429d3ab8c", "timestamp": "", "source": "github", "line_count": 69, "max_line_length": 405, "avg_line_length": 28.18840579710145, "alnum_prop": 0.7491002570694087, "repo_name": "boycechang/BCMagicTransition", "id": "ac701a72b557d99c87139c969ea4daf23754cff6", ...
package com.example.mengmeng.activity; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.TextView; public class Mine_SetActivity extends AppCompatActivity implements View.OnClickListener{ private TextView cou...
{ "content_hash": "826bfa96747b5b77730ea3b3cf2864ef", "timestamp": "", "source": "github", "line_count": 69, "max_line_length": 88, "avg_line_length": 34.34782608695652, "alnum_prop": 0.6122362869198312, "repo_name": "luxiansenv5/MengMeng", "id": "803c7d5582742bcee6aa21ca4afb27ad05041ea1", "size": "...
var express = require('express'); var app = express(); // Load Express Configuration require('./express-config')(app, express); // Root route app.get('/', function(req, res){ res.sendfile('index.html', {root: app.settings.views}); }); // Load routes require('./routes/user')(app); //user routes require('./routes/se...
{ "content_hash": "95e801078e42a2582450c65590b1d373", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 78, "avg_line_length": 27.782608695652176, "alnum_prop": 0.672926447574335, "repo_name": "Danziger/Code-School-Staying-Sharp-with-Angular.js-Note-Wrangler", "id": "363032279e...
package org.xins.common.service; import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; import java.net.URI; import java.net.URL; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.NoSuchElementException; import j...
{ "content_hash": "d3bb4a08eb559734679646d6fab72af2", "timestamp": "", "source": "github", "line_count": 559, "max_line_length": 174, "avg_line_length": 30.63148479427549, "alnum_prop": 0.6107574607253402, "repo_name": "znerd/xins", "id": "d78714b6e007e9b9b340b5d5101ea60fdc02e001", "size": "17326", ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>markov: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
{ "content_hash": "4e2b08a7cbb5e4142636df370201fadc", "timestamp": "", "source": "github", "line_count": 173, "max_line_length": 445, "avg_line_length": 43.27745664739884, "alnum_prop": 0.5583010551622812, "repo_name": "coq-bench/coq-bench.github.io", "id": "070bc48e3d8d5cdd173fba09a922900308b22e88", ...
'use strict'; // JSLint /*global ADTECH, $1CRI, $include */ $include('./src/scripts/common/header.js'); $include('./src/scripts/common/utils.js'); $include('./src/scripts/common/settings.js'); $include('./src/scripts/common/imageContainer.js'); $include('./src/scripts/common/closeButton.js'); $include('./src/scripts/sm...
{ "content_hash": "3fa98a067197cf5f20df482bd3f20d77", "timestamp": "", "source": "github", "line_count": 76, "max_line_length": 101, "avg_line_length": 37.473684210526315, "alnum_prop": 0.6899578651685393, "repo_name": "nodexchange/gulp-project-starter", "id": "3977093139467b8d210778f7c61b01a9a23f7695...
var app = angular.module('helloApp.controllers', []); app.controller('helloCtrl', ['$scope', '$http', function ($scope, $http) { $scope.$watch('name', function () { if ($scope.name) { $http.get('/hello/' + $scope.name) .success(function (...
{ "content_hash": "93979e1a592cc9d716b6e0d1e3c5f01b", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 65, "avg_line_length": 31.333333333333332, "alnum_prop": 0.40425531914893614, "repo_name": "Layoric/DiscourseSsoExample", "id": "e7d2a2179f2a9eb4e6f033cb3f149ed5c2f87ed1", ...
<!DOCTYPE html> <!-- Copyright 2016 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <link rel="import" href="/tracing/core/test_utils.html"> <link rel="import" href="/tracing/extras/cpu/cpu_usage_auditor.html"> <link rel="...
{ "content_hash": "8a8c438cdabd2ace23b978fdbd582585", "timestamp": "", "source": "github", "line_count": 215, "max_line_length": 80, "avg_line_length": 37.55813953488372, "alnum_prop": 0.666625386996904, "repo_name": "sahiljain/catapult", "id": "1e972ab77751df9c27e475ce8936868479933af4", "size": "80...
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "4ec2934695c4fe51523c268b162e639d", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "a8835c9e51e631fdcd0fc15752b0fd274206a92a", "size": "182...
<!-- Main Header --> <header class="main-header"> <!-- Logo --> <a href="{{ url('/home') }}" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels --> <span class="logo-mini">{!! $layout->logoSmall !!}</span> <!-- logo for regular state and mobile devices --> <span class="l...
{ "content_hash": "b8412343f5c2252cb149877226b06e82", "timestamp": "", "source": "github", "line_count": 91, "max_line_length": 140, "avg_line_length": 46.032967032967036, "alnum_prop": 0.36762950584865123, "repo_name": "sakhunzai/adminlte-laravel", "id": "e45c45dc57b8fa70aaf37271457510a19cf73537", ...
using NSubstitute; using StructureMap.Pipeline; using Xunit; namespace StructureMap.Testing.Pipeline { public class TransientLifecycleTester { private readonly ILifecycleContext theContext; private readonly TransientLifecycle theLifecycle; private readonly ITransientTracking ...
{ "content_hash": "369724b9a69f2befbb7fd18bdd5c34fd", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 75, "avg_line_length": 28.13888888888889, "alnum_prop": 0.6189536031589339, "repo_name": "DixonD-git/structuremap", "id": "16c13d805698490938e6164b46df5ec31ed88000", "size"...
<?php /** * Immediate flush block. To be used only as root * * @author Magento Core Team <core@magentocommerce.com> */ class Mage_Core_Block_Flush extends Mage_Core_Block_Abstract { protected function _toHtml() { if (!$this->_beforeToHtml()) { return ''; } ob_im...
{ "content_hash": "9ed6447ca9cf82264173afc583e38803", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 86, "avg_line_length": 21.1, "alnum_prop": 0.5150078988941548, "repo_name": "garasiya/magento1910", "id": "6358432eb28b9ab72b9ae2980515b629b6d20afe", "size": "1569", "bin...
require 'test_helper' module RailsApiDoc class ParameterTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end end
{ "content_hash": "cdcd83925809303f537f2af1ec557cdd", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 47, "avg_line_length": 17.333333333333332, "alnum_prop": 0.6794871794871795, "repo_name": "Harkamal/rails_api_doc", "id": "7144726afc456bea13ad747125e003a5a68b401d", "size":...
@implementation UIView(Tag) @dynamic tagString; @dynamic tagClasses; - (NSString *)tagString { NSObject * obj = objc_getAssociatedObject( self, KEY_TAGSTRING ); if ( obj && [obj isKindOfClass:[NSString class]] ) return (NSString *)obj; return nil; } - (void)setTagString:(NSString *)value { objc_setAssociated...
{ "content_hash": "899c9c50107413143c6fa3d112d9195d", "timestamp": "", "source": "github", "line_count": 140, "max_line_length": 92, "avg_line_length": 19.09285714285714, "alnum_prop": 0.6704077815188926, "repo_name": "haolloyin/iPhoneChartsDemo", "id": "98a8b3d7473172914df066809ac93b78015321aa", "s...
This project is a wrapper around Hadoop's s3a file system. By pulling a smaller dependency tree and shading all dependencies away, this keeps the appearance of Flink being Hadoop-free, from a dependency perspective. We also relocate the shaded Hadoop version to allow running in a different setup. For this to work, how...
{ "content_hash": "d7da2567cdb0d85f07a4e8ad6f92e670", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 221, "avg_line_length": 65.41666666666667, "alnum_prop": 0.7626326963906582, "repo_name": "zhangminglei/flink", "id": "f65ee61d189e8e27568b4d4fa1563530c026101b", "size": "2...
import json from dojo.models import Finding class SemgrepParser(object): def get_scan_types(self): return ["Semgrep JSON Report"] def get_label_for_scan_types(self, scan_type): return scan_type # no custom label for now def get_description_for_scan_types(self, scan_type): retu...
{ "content_hash": "b83c70f58ac964667b35ce8d662044f3", "timestamp": "", "source": "github", "line_count": 85, "max_line_length": 107, "avg_line_length": 32.411764705882355, "alnum_prop": 0.5078039927404718, "repo_name": "rackerlabs/django-DefectDojo", "id": "684000da70f2c4d83e245f32294aaf89f5b5ebe7", ...
#ifndef HALIDE_INTERNAL_REGION_COSTS_H #define HALIDE_INTERNAL_REGION_COSTS_H /** \file * * Defines RegionCosts - used by the auto scheduler to query the cost of * computing some function regions. */ #include <set> #include <limits> #include "AutoScheduleUtils.h" #include "Interval.h" #include "Scope.h" namespa...
{ "content_hash": "f2d80b953233372087c5308e21f6be1e", "timestamp": "", "source": "github", "line_count": 144, "max_line_length": 100, "avg_line_length": 44.5, "alnum_prop": 0.6413857677902621, "repo_name": "Trass3r/Halide", "id": "db1897e04fd70ae536a58599bb159046d0e1ef92", "size": "6408", "binary"...
package fs import ( "bytes" "fmt" "log" "os" "strings" "time" "github.com/hanwen/go-fuse/fuse" "github.com/hanwen/go-fuse/fuse/nodefs" "github.com/hanwen/go-mtpfs/mtp" ) const blockSize = 512 type DeviceFsOptions struct { // Assume removable volumes are VFAT and munge filenames // accordingly. Removable...
{ "content_hash": "14cd17740b0ad10d3857033538f3b016", "timestamp": "", "source": "github", "line_count": 545, "max_line_length": 134, "avg_line_length": 22.39816513761468, "alnum_prop": 0.6576554435979356, "repo_name": "wisavalite/go-mtpfs", "id": "56d33d3665e79fe77e0b7d50c6dcf020f71efe39", "size": ...
package com.github.dozermapper.spring.functional_tests.support; import com.github.dozermapper.core.DozerConverter; import com.github.dozermapper.spring.vo.Destination; import com.github.dozermapper.spring.vo.Source; public class InjectedCustomConverter extends DozerConverter<Source, Destination> { private Strin...
{ "content_hash": "c089793a86fe49db73b7ed2cd2aa38f4", "timestamp": "", "source": "github", "line_count": 35, "max_line_length": 82, "avg_line_length": 26.571428571428573, "alnum_prop": 0.7204301075268817, "repo_name": "garethahealy/dozer", "id": "95a2c2060755eaeb3164ee1dc1cf30c3ede25b15", "size": "1...
#ifndef QUICKSTEP_QUERY_OPTIMIZER_TESTS_TEST_DATABASE_LOADER_HPP_ #define QUICKSTEP_QUERY_OPTIMIZER_TESTS_TEST_DATABASE_LOADER_HPP_ #include <string> #include "catalog/CatalogDatabase.hpp" #include "query_execution/QueryExecutionTypedefs.hpp" #ifdef QUICKSTEP_DISTRIBUTED #include "storage/StorageBlockInfo.hpp" #en...
{ "content_hash": "b8aedd1781d25067d94d1a10c3ec0e33", "timestamp": "", "source": "github", "line_count": 187, "max_line_length": 90, "avg_line_length": 30.122994652406415, "alnum_prop": 0.6396236463696077, "repo_name": "cramja/incubator-quickstep", "id": "87c19c6f1227b7c90a49b014faab8999af4116ee", "...
/*------------------------------------------------------------------------- Copyright 2008 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software. ----------------------------------------------------------------------...
{ "content_hash": "fc4a6de59cc7c3d1692971d1524ed989", "timestamp": "", "source": "github", "line_count": 67, "max_line_length": 96, "avg_line_length": 32.08955223880597, "alnum_prop": 0.7223255813953489, "repo_name": "keithroe/vtkoptix", "id": "2f71e2e0e5d4791aaaa9ce4ec5285a29ad95e72e", "size": "274...
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html #ifndef __RELDATEFMT_H #define __RELDATEFMT_H #include "unicode/utypes.h" #if U_SHOW_CPLUSPLUS_API #include "unicode/uobject.h" #include "unicode/udisplaycontext.h" #include "unicode/ureldatefmt.h" #incl...
{ "content_hash": "cf0dd3af7904985222bc64a534021e1e", "timestamp": "", "source": "github", "line_count": 742, "max_line_length": 93, "avg_line_length": 30.163072776280323, "alnum_prop": 0.6410794870649211, "repo_name": "youtube/cobalt_sandbox", "id": "2a3742fd63c392f4eb81b5a9b42e15e8d40952ef", "size...
package nl.xillio.xill.components.operators; import nl.xillio.xill.TestUtils; import nl.xillio.xill.api.Debugger; import nl.xillio.xill.api.NullDebugger; import nl.xillio.xill.api.components.MetaExpression; import nl.xillio.xill.components.instructions.VariableDeclaration; import org.testng.annotations.Test; ...
{ "content_hash": "717e3afc08efaaaef0932bec0a7f25a0", "timestamp": "", "source": "github", "line_count": 106, "max_line_length": 129, "avg_line_length": 35.490566037735846, "alnum_prop": 0.5964912280701754, "repo_name": "XillioQA/xill-platform-3.4", "id": "bf048e09c541fef7cb72274133515e36fc24e261", ...
package dwarf import ( "fmt" "strconv" ) // Parse the type units stored in a DWARF4 .debug_types section. Each // type unit defines a single primary type and an 8-byte signature. // Other sections may then use formRefSig8 to refer to the type. // The typeUnit format is a single type with a signature. It holds // t...
{ "content_hash": "fc0566dd79456cfae4d22ccb91b0ed1e", "timestamp": "", "source": "github", "line_count": 156, "max_line_length": 97, "avg_line_length": 22.685897435897434, "alnum_prop": 0.6318168974286522, "repo_name": "christopher-henderson/Go", "id": "76b357ce28b3646ebd9bb5b7c7d8e6c70631f058", "si...
// Copyright (c) 2018, Smart Projects Holdings Ltd // All rights reserved. // See LICENSE file for license details. /** * Implementation of ugcs::vsm::Vehicle_request. */ #include <ugcs/vsm/vehicle_request.h> #include <vector> using namespace ugcs::vsm; Vehicle_request::Handle::Handle() { } Vehicle_request::Handl...
{ "content_hash": "89a540bb4b43dd2875f101ba21a07636", "timestamp": "", "source": "github", "line_count": 146, "max_line_length": 87, "avg_line_length": 23.404109589041095, "alnum_prop": 0.6540825285338016, "repo_name": "UgCS/vsm-cpp-sdk", "id": "0ccf726e9053c1bbeb71d5c8afb7998ef2de0fcb", "size": "34...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>T846078255358730240</title> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,600"> <link rel="stylesheet" href="/style.css"> <link...
{ "content_hash": "da5bd18435d81cec96bfbe0542f9d868", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 123, "avg_line_length": 34.26, "alnum_prop": 0.663164039696439, "repo_name": "curtclifton/curtclifton.github.io", "id": "7a9e294bd9cf2d707e89740a5c563b5746d7248d", "size": ...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /** * @copyright 2013 Couchbase, Inc. * * @author Filipe Manana <filipe@couchbase.com> * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obta...
{ "content_hash": "ad96f01dcf1e46e0f219d33553802da5", "timestamp": "", "source": "github", "line_count": 166, "max_line_length": 99, "avg_line_length": 33.22289156626506, "alnum_prop": 0.5956482320942883, "repo_name": "jimwwalker/couchstore", "id": "625f6bfc87e3e81f1bf01cb4bd3cffd4dd496efd", "size":...
package com.ning.http.util; import com.ning.http.client.ProxyServer; import com.ning.http.client.Request; import com.ning.http.client.RequestBuilder; import org.testng.Assert; import org.testng.annotations.Test; public class ProxyUtilsTest { @Test(groups = "fast") public void testBasics() { ProxyServ...
{ "content_hash": "13c101abcb8d4cf72b6848a259e56e97", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 87, "avg_line_length": 39.1578947368421, "alnum_prop": 0.665994623655914, "repo_name": "ggeorg/chillverse", "id": "1ccd206a802f3f53937c2fb089678430c460882f", "size": "2183"...
using System; using System.IO; namespace Sir.Mnist { public static class BinaryHelper { public static int ReadInt32WithCorrectEndianness(this BinaryReader br) { var bytes = br.ReadBytes(sizeof(int)); if (BitConverter.IsLittleEndian) Array.Reverse(bytes);...
{ "content_hash": "b4349dad5f0ebdec44c82a72b3987f36", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 78, "avg_line_length": 24.375, "alnum_prop": 0.6076923076923076, "repo_name": "kreeben/resin", "id": "ba0cc9f140e04096efdba991f9f2194b4f5bd9b1", "size": "392", "binary": ...
name "supermarket-cookbooks" license :project_license dependency "berkshelf" source path: "cookbooks/omnibus-supermarket" build do cookbooks_path = "#{install_dir}/embedded/cookbooks" env = with_standard_compiler_flags(with_embedded_path) command "berks vendor #{cookbooks_path}", env: env block do open...
{ "content_hash": "72fc99522476ef2fb9a2868995560f90", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 93, "avg_line_length": 27.5, "alnum_prop": 0.6459893048128342, "repo_name": "tas50/supermarket", "id": "139ff335f5edf4dbc564fb46761d3466f6dee5ee", "size": "1523", "binary...
A API de camadas do TensorFlow.js é modelada com base no Keras e nos esforçamos para fazer a [API de camadas](https://js.tensorflow.org/api/latest/) razoalmente semelhante ao Keras, dadas as diferenças entre JavaScript e Python. Isso facilita para usuários com experiência no desenvolvimento de modelos Keras no Python a...
{ "content_hash": "ebf1f4287d36fcd0bda3015b17e20f6a", "timestamp": "", "source": "github", "line_count": 247, "max_line_length": 692, "avg_line_length": 50.37651821862348, "alnum_prop": 0.7548018966487181, "repo_name": "tensorflow/docs-l10n", "id": "436b06aede146fc4d684de673cfbe19d2ecd13bf", "size":...
<nav class="navbar navbar-default"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target...
{ "content_hash": "44966796fd482dbbfd3ca9076ebb3cec", "timestamp": "", "source": "github", "line_count": 206, "max_line_length": 189, "avg_line_length": 58.96601941747573, "alnum_prop": 0.35761916522598175, "repo_name": "suman0359/get4xrebate", "id": "f98dcb5c3c666bd0d0073d8bc40f7c3543fda028", "size...
function slice(arr, offset){ return Array.prototype.slice.call(arr, offset || 0); } /** * Delays the call of a function within a given context. */ function timeout(fn, millis, context){ var args = slice(arguments, 3); return setTimeout(function() { fn.apply(context, args); }, mil...
{ "content_hash": "7c99e46a9bedaebcb07422b67ffb6c22", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 60, "avg_line_length": 19.105263157894736, "alnum_prop": 0.6170798898071626, "repo_name": "thomjoy/sydney-buses", "id": "6f1770e9c873006a25a5ae75e41c08df47c1fa5d", "size": ...
<?xml version="1.0" encoding="utf-8"?> <!--This file is part of GV Callback. GV Callback is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any la...
{ "content_hash": "bff7198bf1e84d1b900faa02d6e92b84", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 308, "avg_line_length": 63.23684210526316, "alnum_prop": 0.7361631294215564, "repo_name": "kpkammer/gvcallback", "id": "1543342b02fac1bdd572877457a5f014eb145408", "size": "...
doc pattern library ==============
{ "content_hash": "b3404b337f2f775dea9396768453d4fc", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 19, "avg_line_length": 17.5, "alnum_prop": 0.4857142857142857, "repo_name": "m-e-h/doc-styleguide", "id": "08ac00c698d372c623749d783cf7008350f532dc", "size": "35", "binary...
using namespace boost; using namespace std; DECLARE_bool(abort_on_config_error); DEFINE_int32(num_cores, 0, "(Advanced) If > 0, it sets the number of cores available to" " Impala. Setting it to 0 means Impala will use all available cores on the machine" " according to /proc/cpuinfo."); namespace impala { boo...
{ "content_hash": "2632176654837860327b70e3ca19b07f", "timestamp": "", "source": "github", "line_count": 146, "max_line_length": 89, "avg_line_length": 29.575342465753426, "alnum_prop": 0.612088930060213, "repo_name": "henryr/Impala", "id": "19fecb10cd4772e9ffa3ec475879a7ae68c26735", "size": "5146",...
using System; using System.Collections.Generic; using System.Windows.Forms; namespace RViewer { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Applicat...
{ "content_hash": "0c7ae6a214119718cf93f2c8624e1b8b", "timestamp": "", "source": "github", "line_count": 20, "max_line_length": 65, "avg_line_length": 21.6, "alnum_prop": 0.5787037037037037, "repo_name": "guojianbin/IRunner", "id": "0eff5e9674c5b6ddeefa9304eaab1dfab8b653e4", "size": "454", "binary...
/*! \file OneStepIntegratorTypes.hpp \brief enum of the available types for one-step time integrators. */ #ifndef OSITYPES_HPP #define OSITYPES_HPP #include "SiconosFwd.hpp" /** Namespace for user-defined types related to relations */ namespace OSI { /** List of possible OneStepIntegrator types*/ enum TYPES { /...
{ "content_hash": "0dd9923e9a1bea66117a1575044c3d2c", "timestamp": "", "source": "github", "line_count": 42, "max_line_length": 67, "avg_line_length": 15.142857142857142, "alnum_prop": 0.639937106918239, "repo_name": "siconos/siconos-deb", "id": "e9e1ee66ced9ec8d296eb3e7a74623233307472d", "size": "1...
var Event = require('mongoose').model('Event'); module.exports = { create: function(event, callback) { Event.create(event, callback); } };
{ "content_hash": "80b8d133deb0e1da7eeb6e5925be63e2", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 47, "avg_line_length": 22.142857142857142, "alnum_prop": 0.6258064516129033, "repo_name": "razsilev/TelerikAcademy_Homework", "id": "32a48c1c11e6ac94301649c5e7e61fe963ffc203",...
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; namespace Yasb.Common.Messaging.Configuration { public class SubscriptionServiceConfiguration { private int _port = 6379; private string _hostName; ...
{ "content_hash": "04e3d5ae4dc6db493aa48512b43ea959", "timestamp": "", "source": "github", "line_count": 28, "max_line_length": 132, "avg_line_length": 28.178571428571427, "alnum_prop": 0.596958174904943, "repo_name": "derfy/yasb", "id": "1dc7b73efb939a2062c3a018d64701c6fc61ef3b", "size": "791", "...
<!--- 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...
{ "content_hash": "e4888a9a072b8723827ffa8be59f9f96", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 66, "avg_line_length": 36.74193548387097, "alnum_prop": 0.675153643546971, "repo_name": "leezu/mxnet", "id": "38ae6def3c23b2c51e7e267095f7f61ae9ba6a73", "size": "1139", "...
<?xml version="1.0" encoding="UTF-8"?> <!-- You may freely edit this file. See commented blocks below for --> <!-- some examples of how to customize the build. --> <!-- (If you delete it and reopen the project it will be recreated.) --> <!-- By default, only the Clean and Build commands use this build script. --> <!-- ...
{ "content_hash": "a73af8a841f9e30b750d61934e22f41a", "timestamp": "", "source": "github", "line_count": 73, "max_line_length": 86, "avg_line_length": 48.273972602739725, "alnum_prop": 0.6523836549375709, "repo_name": "LukeMcNemee/java", "id": "10987f1a716db2ab26c3191bab463fb44087dff4", "size": "352...
<?php namespace Blixt\Tokenization; class Token { /** * @var string */ protected $text; /** * @var int */ protected $position; /** * @var string */ protected $prefix; /** * Token constructor. * * @param string $text * @param int $positio...
{ "content_hash": "382cf643b79195d7003fb73608fcd6d1", "timestamp": "", "source": "github", "line_count": 95, "max_line_length": 81, "avg_line_length": 16, "alnum_prop": 0.48157894736842105, "repo_name": "jrhenderson1988/blixt", "id": "8186c6bae796e3524eb8eac9fa84796979a4c840", "size": "1520", "bin...
package com.abdulradi.redikka.core import akka.actor.{ ActorSystem } import akka.io.{ IO, Tcp } import akka.util.ByteString import akka.contrib.pattern.{ShardRegion, ClusterSharding} import com.abdulradi.redikka.core.api.KeyCommand object Redikka { val ShardName = "RedikkaValueHolder" protected val idExtractor: ...
{ "content_hash": "2a0af0d269ce96492a4f00643b96b4bf", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 80, "avg_line_length": 30.11764705882353, "alnum_prop": 0.7255859375, "repo_name": "tabdulradi/redikka", "id": "12b441da49fa09a1441ec35658630ac46a8f8149", "size": "1024", ...
#include <algorithm> #include <dae.h> #include <dae/daeURI.h> #include <ctype.h> #include <dae/daeDocument.h> #include <dae/daeErrorHandler.h> #include <dae/daeUtils.h> #include <pcrecpp.h> using namespace std; using namespace cdom; void daeURI::initialize() { reset(); container = NULL; } daeURI::~daeURI() { } ...
{ "content_hash": "819070809f8b90cee5812ba345b8e289", "timestamp": "", "source": "github", "line_count": 830, "max_line_length": 117, "avg_line_length": 27.1144578313253, "alnum_prop": 0.6211952899355698, "repo_name": "veter-team/daeview", "id": "c9b6936764ec952f0a8585b1f702ddd18621df5c", "size": "2...
var interval; onmessage = function(e) { clearTimeout(interval); startTimer(e.data * 60); } function startTimer(duration) { var start = Date.now(), diff, minutes, seconds; function timer() { diff = duration - (((Date.now() - start) / 1000) | 0); minutes = (diff / 60) | 0; seconds = (diff % 60) | ...
{ "content_hash": "d10ecd104b4302a7025d35030f24818d", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 69, "avg_line_length": 22.933333333333334, "alnum_prop": 0.5813953488372093, "repo_name": "davidmogar/mela", "id": "8db3682a6719e3974f0ef214b58b5b0b7e912aa5", "size": "688"...
package org.apache.rya.joinselect.mr.utils; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.io.WritableComparable; public class CardinalityType implements WritableComparable<Cardi...
{ "content_hash": "c35d7406bdd2836c6527b2f5ae4ac1b6", "timestamp": "", "source": "github", "line_count": 132, "max_line_length": 92, "avg_line_length": 19.303030303030305, "alnum_prop": 0.6534536891679749, "repo_name": "amihalik/incubator-rya", "id": "e327f3832213beafb030fdd884c3a3e2ecb2d692", "size...
function CowTransportShip(){ TransportShip.call(this); this._cowzillaProb = g_config.enemies.cowTransport.cowzillaProbability; this._megaProb = g_config.enemies.cowTransport.megacowProbability; this._santaProb = g_config.enemies.cowTransport.santacowProbability; } CowTransportShip.inherits(TransportShip); CowT...
{ "content_hash": "e6b244716df7db49fb9c426ad6aa822e", "timestamp": "", "source": "github", "line_count": 39, "max_line_length": 145, "avg_line_length": 37.87179487179487, "alnum_prop": 0.6844955991875423, "repo_name": "superarts/JekyllMetro", "id": "f111aaf5243bb65ae4094eeeef66f0b862834e3a", "size":...
using namespace ::testing; // ƒeƒXƒg—pActor namespace TestActorMessage { struct GetThreadID { }; struct ExecFunc { ExecFunc( std::function<void(void)> _func ) : func( _func ){} std::function<void( void )> func; }; typedef boost::variant<GetThreadID, ExecFunc> Message; }; class TestActor : public ActorBas...
{ "content_hash": "6694c126690f478748aae1ca4d28bc96", "timestamp": "", "source": "github", "line_count": 158, "max_line_length": 82, "avg_line_length": 20.848101265822784, "alnum_prop": 0.6733454766241651, "repo_name": "toshimana/Actor", "id": "383979c0a0a29696bea408ddadfe69b838ae714d", "size": "346...
package com.warkiz.widget; import android.content.Context; import android.util.TypedValue; /** * created by zhuangguangquan on 2017/9/9 */ public class SizeUtils { public static int dp2px(Context context, float dpValue) { return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dpValue, con...
{ "content_hash": "a00f0ab456e74dd55721dd06f37ef575", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 129, "avg_line_length": 30.652173913043477, "alnum_prop": 0.7120567375886525, "repo_name": "warkiz/IndicatorSeekBar", "id": "6925889c1c338359e1527dcf00c4c34dcf3ac562", "siz...
* Continuously replicates data using DCP data change protocol between clusters <p> <img src="../../media/Xdcr.png" style="display: block; margin-left: auto; margin-right: auto"/> </p> * Version 1 uses the REST protocol for replication, important for ElasticSearch plug-in * Version 2 uses memcached REST protocol...
{ "content_hash": "5651343ac69dff2d2523728dd05e0224", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 87, "avg_line_length": 42.8, "alnum_prop": 0.764018691588785, "repo_name": "vkhazin/couchbase-courseware", "id": "e0cd24f862df7defb3a334efbf7eb965eb061226", "size": "470", ...
function status = IDAAdjReInit() %IDAAdjReInit re-initializes memory for ASA with CVODES. % % Usage: IDAAdjReInit % % Radu Serban <radu@llnl.gov> % LLNS Copyright Start % Copyright (c) 2014, Lawrence Livermore National Security % This work was performed under the auspices of the U.S. Department % of Energy by Lawre...
{ "content_hash": "4b45940b5d12322184e8dd03dbf59909", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 70, "avg_line_length": 31.38095238095238, "alnum_prop": 0.7541729893778453, "repo_name": "dflowers7/kroneckerbio", "id": "6ac09f9c545b0bae29096f38a977e513c940bfaa", "size":...
""" sentry.runner.commands.init ~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2015 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function import os import click @click.command() @click.argument('directory', required=Fal...
{ "content_hash": "1bde408776522c9b6863025b980f4cf5", "timestamp": "", "source": "github", "line_count": 49, "max_line_length": 106, "avg_line_length": 32.6530612244898, "alnum_prop": 0.67625, "repo_name": "nicholasserra/sentry", "id": "98ece4d40b797013ab8d6958e0514cdb9e0437b0", "size": "1600", "b...
module.exports = function(grunt){ require('allex-webalizer').grunt_web_component(grunt); };
{ "content_hash": "f76977d0498014e8aa06b2dc3909f912", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 56, "avg_line_length": 31.333333333333332, "alnum_prop": 0.7340425531914894, "repo_name": "allexjs/sdk", "id": "70cc27ff544ab1ba188d335894799222845aebac", "size": "94", "b...
mocha --check-leaks --reporter spec $(find test -name "*.js")
{ "content_hash": "e85ee3d2eec70b09ab4518688132f52b", "timestamp": "", "source": "github", "line_count": 1, "max_line_length": 61, "avg_line_length": 62, "alnum_prop": 0.6612903225806451, "repo_name": "joegoldbeck/move-modulate", "id": "b96bfc4a2fb8fc2870be4f8fc05da6c754b87edb", "size": "99", "bin...
package org.nutz.lang.util; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * 通过读取Class文件,获得方法形参名称列表 * @author wendal(wendal1985@gmail...
{ "content_hash": "f46352b07ac2c95c16ce1c256ea2878b", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 137, "avg_line_length": 34.1025641025641, "alnum_prop": 0.6, "repo_name": "nutzam/nutz", "id": "56868f8cafb6c9bcc467da908ba1a8d4a9d0ff8d", "size": "2828", "binary": false...
<title> Static HTML Boilerplate {{title}} </title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content=""> <meta property="og:title" content=""> <meta property="og:image" content="/build/im...
{ "content_hash": "93816424e03292f8b9dffb9982668690", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 68, "avg_line_length": 37.214285714285715, "alnum_prop": 0.6986564299424184, "repo_name": "PrototypeInteractive/static-html-boilerplate", "id": "9f15ce7c405aa9b3f2a95f1013ac7...
package com.DCSP.screen; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputMultiplexer; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.List; import com.badlogic....
{ "content_hash": "c5f8e588c9bae55279b9f0eceb130b2c", "timestamp": "", "source": "github", "line_count": 130, "max_line_length": 111, "avg_line_length": 28.984615384615385, "alnum_prop": 0.5514861995753716, "repo_name": "JacobAMason/DCSP", "id": "ac46bcd480c7064dd4d91a382e37e99f0f803813", "size": "4...
irods::error mock_archive_generate_full_path( irods::plugin_property_map& _prop_map, const std::string& _phy_path, std::string& _ret_string ) { irods::error result = SUCCESS(); irods::error ret; std::string vault_path; // TODO - getting vault path by property will ...
{ "content_hash": "1890230733462270a0a685c1289e806e", "timestamp": "", "source": "github", "line_count": 771, "max_line_length": 152, "avg_line_length": 39.93385214007782, "alnum_prop": 0.4817629672935139, "repo_name": "janiheikkinen/irods", "id": "ca56b66ca491440cf58ccdd775596c17a3fa7c69", "size": ...
package org.squiddev.plethora.integration.refinedstorage; import com.raoulvdberge.refinedstorage.RS; import com.raoulvdberge.refinedstorage.api.autocrafting.preview.ICraftingPreviewElement; import com.raoulvdberge.refinedstorage.apiimpl.autocrafting.preview.CraftingPreviewElementItemStack; import net.minecraft.init.It...
{ "content_hash": "01746e1063732afbce7ccd1d28197f95", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 100, "avg_line_length": 35.648648648648646, "alnum_prop": 0.796057619408643, "repo_name": "SquidDev-CC/plethora", "id": "98d13ac4f2f5a4d8f80bcfd7f33312ee57b07999", "size": ...
Program runs with Cipher Block Chaining (CBC) mode. To better understand how the encryption algorithm and cbc work: - `./info/cbc.pdf` - `./info/s-des.pdf` ### Usage: Clone the program and run it with cargo (Rust's package manager) Both parties: sending (encrypting), and receiving (decrypting), need t...
{ "content_hash": "aadaa880f8ef63671350f4c6a2fdc165", "timestamp": "", "source": "github", "line_count": 44, "max_line_length": 275, "avg_line_length": 36.22727272727273, "alnum_prop": 0.7283563362609786, "repo_name": "lborg019/rust-sdes", "id": "40c5bab7f3d411d55cfa30454f80d578931de2ea", "size": "1...
package com.example.tao.dl; import android.app.DatePickerDialog; import android.app.Dialog; import android.app.DialogFragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.DatePicker; import android.widget.EditText; import ...
{ "content_hash": "a83e318531f3c80795b7ec12f208b66f", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 94, "avg_line_length": 30.73170731707317, "alnum_prop": 0.7063492063492064, "repo_name": "taoalpha/DL", "id": "767698af7790b3f9c94c8887fb9670f9f546cc39", "size": "1260", ...
'use strict'; const chai = require('chai'), expect = chai.expect, Support = require(__dirname + '/../../support'), DataTypes = require(__dirname + '/../../../../lib/data-types'), dialect = Support.getTestDialect(), _ = require('lodash'), moment = require('moment'), Operators = require('../../../../lib/op...
{ "content_hash": "580f40fa024c85071266a0ebc59013c8", "timestamp": "", "source": "github", "line_count": 562, "max_line_length": 227, "avg_line_length": 47.86832740213523, "alnum_prop": 0.5254999628280426, "repo_name": "yonjah/sequelize", "id": "5b71bc0e6b139a7472f08fd5b02af86ddce62290", "size": "26...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_151) on Wed Dec 02 13:39:43 MST 2020 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Interface org.wildf...
{ "content_hash": "07f2dfefc8b1a217bfe38001a24beac0", "timestamp": "", "source": "github", "line_count": 181, "max_line_length": 636, "avg_line_length": 52.193370165745854, "alnum_prop": 0.6743939875092622, "repo_name": "wildfly-swarm/wildfly-swarm-javadocs", "id": "2b6c26b31ab183b46720a3692b79d1bc0de...
using System; using System.Collections.Generic; using System.Linq; using Microsoft.WindowsAzure.Common.Internals; namespace Microsoft.WindowsAzure.Management.Compute.Models { /// <summary> /// Parameters supplied to the Update Hosted Service operation. /// </summary> public partial class HostedServiceU...
{ "content_hash": "c6546d1ea56799d12d6fa64ccf6baa54", "timestamp": "", "source": "github", "line_count": 83, "max_line_length": 78, "avg_line_length": 38.06024096385542, "alnum_prop": 0.5998733776511554, "repo_name": "travismc1/azure-sdk-for-net", "id": "708faecc2ee3283935c59dfaa9ad40f4a87e5ec9", "s...
<?xml version="1.0"?> <project name="Djinni-test"> <target name="compile"> <mkdir dir="build"/> <mkdir dir="build/local"/> <!-- Veteran djinni users might not have cmake. Given them some advice. --> <property environment="env" /> <fail message="****${line.separator} Can't find...
{ "content_hash": "967859513efaa97f7152fde8ebcb547c", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 115, "avg_line_length": 39.08974358974359, "alnum_prop": 0.597244998360118, "repo_name": "jrogers/djinni", "id": "eea2ce5e458108b1af08eeec3475e8c6b656cbec", "size": "3049",...
class Api::V1::ProposalsController < ApplicationController def index render json: Proposal.where(law_id: params[:law_id]).map{|law| law.scoped_with(current_player)} end def create proposal = Proposal.create(proposal_params.merge({player_id: current_player.id})) Point.points_for_proposal(current_playe...
{ "content_hash": "a2ce2da3e8a975fe6fc0592f0afe3b05", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 99, "avg_line_length": 27.333333333333332, "alnum_prop": 0.7181571815718157, "repo_name": "plraphael/parlamento_virtual", "id": "0f2651bb3eed554a8e742ee0be901296836c9c7e", ...
package com.horn.common.cdi.sampleclass; /** * @author lesinsa on 23.03.14. */ public class A { }
{ "content_hash": "1e5b8aeb2750d99f96fc5bfaee8176ab", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 40, "avg_line_length": 14.428571428571429, "alnum_prop": 0.6633663366336634, "repo_name": "lesinsa/horn-soft-pub", "id": "e799e9f008093ddf808759be97ef44865ffe0843", "size": ...
{-+ This is a small utility to strip blank lines and comments from Haskell files. Haskell modules are read from files named on the command line. The result is output on stdout. Haskell files whose names end with ".lhs" are assumed to be in literate style. -} import System(getArgs) import Unlit(readHaskellFile) impo...
{ "content_hash": "faeb3f5a729bc9d83aac2692ab2fc350", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 78, "avg_line_length": 26.823529411764707, "alnum_prop": 0.7763157894736842, "repo_name": "mpickering/HaRe", "id": "8d48fe23dea4c54bdae428d68b18ea6fa9e218e9", "size": "456"...
require 'rdoc/context' ## # A TopLevel context is a representation of the contents of a single file class RDoc::TopLevel < RDoc::Context ## # This TopLevel's File::Stat struct attr_accessor :file_stat ## # Relative name of this file attr_accessor :relative_name ## # Absolute name of this file ...
{ "content_hash": "b04cb51a712ad68b898f267b1455f870", "timestamp": "", "source": "github", "line_count": 248, "max_line_length": 74, "avg_line_length": 17.600806451612904, "alnum_prop": 0.6290950744558992, "repo_name": "takano32/rubinius", "id": "306790fc159de0c029eac2b96c5dcfb73c1cebdd", "size": "4...