text stringlengths 2 1.04M | meta dict |
|---|---|
import React from 'react';
import PropTypes from 'prop-types';
import {stack as d3Stack, stackOffsetWiggle} from 'd3-shape';
import {range, transpose} from 'd3-array';
import {FlexibleWidthXYPlot, AreaSeries} from 'index';
import './streamgraph-example.scss';
const NUMBER_OF_LAYERS = 20;
const SAMPLES_PER_LAYER = 20... | {
"content_hash": "df91a31df627251cc8077b2aba3f36b1",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 109,
"avg_line_length": 31.285714285714285,
"alnum_prop": 0.6135325861353259,
"repo_name": "Apercu/react-vis",
"id": "48bf4f9bc59288ef5421441ce7c9eeeacae92cde",
"size": "35... |
/*
* eXist Open Source Native XML Database
* Copyright (C) 2001-06 Wolfgang M. Meier
* wolfgang@exist-db.org
* http://exist.sourceforge.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published b... | {
"content_hash": "442ce45861e63d449bccf5af92f3bab1",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 143,
"avg_line_length": 40.88495575221239,
"alnum_prop": 0.6134199134199134,
"repo_name": "NCIP/cadsr-cgmdr-nci-uk",
"id": "4b77777600fa0918a9176fbac6730fbb3bbed882",
"siz... |
#ifndef SOUND_FIREWIRE_AMDTP_H_INCLUDED
#define SOUND_FIREWIRE_AMDTP_H_INCLUDED
#include <linux/err.h>
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <sound/asound.h>
#include "packets-buffer.h"
/**
* enum cip_out_flags - describes details of the streaming protocol
* @CIP_NONBLOCKING: In non-blockin... | {
"content_hash": "ab96248016d2a965e1ffe56db377cb1a",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 79,
"avg_line_length": 29.328767123287673,
"alnum_prop": 0.7307333021952359,
"repo_name": "lokeshjindal15/pd-gem5",
"id": "2746ecd291af057bf778379cecd7530e353d5fc2",
"size... |
from bet_sizing import BetTiers
import handscore
import constants as C
class Fear(object):
"""Mix-in object for managing fear in the Brain"""
def update_fear(self, bet):
if not self.data.table_cards:
# TODO: should include re-raises eventually
preflop_fear = OpponentPreflopFear... | {
"content_hash": "d5fea9edfcb7e31c9145662e1cd227dc",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 76,
"avg_line_length": 32.20289855072464,
"alnum_prop": 0.5868586858685868,
"repo_name": "gnmerritt/poker",
"id": "b8ca345833b0ed6f533d1fa516b256e297866777",
"size": "2222"... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "c27943437424dc14efe4d3eedcde7bc9",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "5e32d22d08c8040f27d0b85fba1025ca6df46931",
"size": "175... |
<?php
/**
* This class defines the structure of the 'instmembership' table.
*
*
*
* This map class is used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER BY clause to know whether it needs to apply SQL to make th... | {
"content_hash": "f99a9adc1ea6a7b2920c3680e60c7560",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 94,
"avg_line_length": 31.12280701754386,
"alnum_prop": 0.6285231116121759,
"repo_name": "royrusso/fishbase",
"id": "946706d56b08068ab5f9f19a7dff194ceff7e349",
"size": "177... |
<p class="lead">
<strong>Terranet/Options</strong>
</p> | {
"content_hash": "f5b7b2e9c314fe65a8faa3ca6388c060",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 37,
"avg_line_length": 19.666666666666668,
"alnum_prop": 0.6440677966101694,
"repo_name": "adminarchitect/options",
"id": "6a99380476c3b319681007d344de039fd35c6e0d",
"size":... |
package mtrbac.CloudSvcPEP;
import com.sun.xacml.PDP;
import com.sun.xacml.ctx.RequestCtx;
import com.sun.xacml.ctx.ResponseCtx;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStrea... | {
"content_hash": "5f3f4f95d0ac2abc1b723aae2d07b6d2",
"timestamp": "",
"source": "github",
"line_count": 337,
"max_line_length": 101,
"avg_line_length": 34.54302670623145,
"alnum_prop": 0.5682501503307276,
"repo_name": "townbull/mtaaas",
"id": "c12efbd118dee2100e61e0c881b49e1bee7b16d9",
"size": "134... |
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta id="viewport" name="viewport" content="width=500" />
<!--RSS FEEDS-->
<link rel="alternate" href="http://deebuls.github.io/feeds/all.atom.xml" type="application/atom+xml" title="Simpl... | {
"content_hash": "06ea9347be8d9da47301c8258b3426ea",
"timestamp": "",
"source": "github",
"line_count": 1353,
"max_line_length": 756,
"avg_line_length": 37.39393939393939,
"alnum_prop": 0.6556706328813693,
"repo_name": "deebuls/deebuls.github.io",
"id": "5f39109ec9d1e238d585d9e7feda9e7f08cfd0d7",
"... |
int
main(){
#pragma omp parallel num_threads(4)
{
printf("Hello world from thread %d!\n", omp_get_thread_num());
}
return 0;
}
| {
"content_hash": "16f4cbd496eb659f0005a3178b3fdf68",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 66,
"avg_line_length": 15.777777777777779,
"alnum_prop": 0.5985915492957746,
"repo_name": "yeephycho/codePieces",
"id": "38122b0f80f72da601bb01154a09157f5c0166d4",
"size": "... |
<?php
include 'header.php';
?>
<div class="container ">
<div class="innerpage">
<div class="cart">
<div class="client-prod">
<div class="col-md-12 col-sm-12 col-xs-12 col-xxs-12 text-center"> <div class="pinktext cart-heading">Thank You for shopping at PretMode.com.</div>
<p class="mb20">We will send yo... | {
"content_hash": "cc48886ed181de846dd095ee612a0c0b",
"timestamp": "",
"source": "github",
"line_count": 97,
"max_line_length": 227,
"avg_line_length": 47.43298969072165,
"alnum_prop": 0.4857639643555749,
"repo_name": "ParthXe/Myntra",
"id": "244c315bf33e8f5c96a1865812ffa4b1f4fb6cd0",
"size": "4601"... |
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
namespace FancyScrollView.Example05
{
class Example05 : MonoBehaviour
{
[SerializeField] ScrollView scrollView = default;
[SerializeField] Button prevCellButton = default;
[SerializeField] Button nextCellButton = default;
... | {
"content_hash": "d5dc33a27986b15d3892be9ad0753670",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 74,
"avg_line_length": 28.63888888888889,
"alnum_prop": 0.6217264791464597,
"repo_name": "setchi/FancyScrollView",
"id": "fa94b30795085df2d52c7f034538d9001d6c7fc0",
"size":... |
template <typename T>
class Heap {
public:
using CompareFunction = std::function<bool(const T &a, const T &b)>;
// Construct a max-heap with a custom comparator
// @param cmp The comparator to use (default: std::less)
// Returns "true" when `a` is `less` than `b`
Heap(const CompareFunction &cmp =... | {
"content_hash": "d7e0b2621fbbd4950f2fb83bb8d70cdd",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 84,
"avg_line_length": 27.175,
"alnum_prop": 0.5837166513339467,
"repo_name": "jpanikulam/experiments",
"id": "4ada2a39724dbb9459ecf4df6c17d4f988ac18f5",
"size": "2325",
... |
package org.bouncycastle.cert;
import java.io.IOException;
import java.io.OutputStream;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
import java.util.Set;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Encod... | {
"content_hash": "4ec4492f5249111f5be2a92123a5e2b9",
"timestamp": "",
"source": "github",
"line_count": 328,
"max_line_length": 155,
"avg_line_length": 28.195121951219512,
"alnum_prop": 0.6552768166089965,
"repo_name": "bcgit/bc-java",
"id": "00fcf65bdb12010459d5ca4677145f9a0d247890",
"size": "9248... |
import colorama
import refactoring # Note: refactoring.py need to be in the current working directory
colorama.init()
paths = ["C:/Users/petst55/Work/Inviwo/Inviwo-dev", "C:/Users/petst55/Work/Inviwo/Inviwo-research"]
excludespatterns = ["*/ext/*", "*moc_*", "*cmake*", "*/proteindocking/*",
"*/pro... | {
"content_hash": "0a4645c0ed4283dccf60333caa34ca50",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 112,
"avg_line_length": 55.21818181818182,
"alnum_prop": 0.7543628580836351,
"repo_name": "inviwo/inviwo",
"id": "aa9134cfe1017ac8602b81daaad2773e61954895",
"size": "3037",... |
package samples
import (
"context"
"github.com/google/gapid/gapis/atom"
"github.com/google/gapid/gapis/gfxapi/gles"
)
// DrawTexturedSquare returns the atom list needed to create a context then
// draw a textured square.
func DrawTexturedSquare(ctx context.Context) (atoms *atom.List, draw atom.ID, swap atom.ID) {... | {
"content_hash": "5eebc15d214e6294e5090abee46e4d64",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 124,
"avg_line_length": 30.864864864864863,
"alnum_prop": 0.6894337419731466,
"repo_name": "ianthehat/gapid",
"id": "e18a25bd35fec682289a967978e0d4235f3d200f",
"size": "40... |
package ip
import (
"bytes"
"encoding/binary"
"fmt"
"math/big"
"net"
"sort"
)
const (
ipv4BitLen = 8 * net.IPv4len
ipv6BitLen = 8 * net.IPv6len
)
// CountIPsInCIDR takes a RFC4632/RFC4291-formatted IPv4/IPv6 CIDR and
// determines how many IP addresses reside within that CIDR.
// Returns 0 if the input CIDR ... | {
"content_hash": "08db3fdf2e84b4a8d94c6f5f13c70ed2",
"timestamp": "",
"source": "github",
"line_count": 730,
"max_line_length": 123,
"avg_line_length": 31.221917808219178,
"alnum_prop": 0.6944980694980695,
"repo_name": "scanf/cilium",
"id": "ccd7a4f0efc5dbe585aa7135bcad31f593140cf4",
"size": "23387... |
package net.minidev.ovh.api.dedicatedcloud.host;
/**
* All states a Dedicated Cloud Host can be in
*/
public enum OvhStateEnum {
adding("adding"),
delivered("delivered"),
error("error"),
removing("removing"),
unknown("unknown");
final String value;
OvhStateEnum(String s) {
this.value = s;
}
public Stri... | {
"content_hash": "4d3d6ea6eaf1666c500fa269a7c61d92",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 48,
"avg_line_length": 16.454545454545453,
"alnum_prop": 0.6850828729281768,
"repo_name": "UrielCh/ovh-java-sdk",
"id": "635a49b14ad3e1672644d04fdffbb737a983e92c",
"size": ... |
@interface ShufflingView ()
@property(nonatomic, assign) int startIndex;
@property(nonatomic, assign) int endIndex;
@property(nonatomic, strong) UIView *view;
@property(nonatomic, strong) UIImageView *imageView;
@property(nonatomic, strong) UIImageView *imageViewOne;
@property(nonatomic, assign) CGRect selfrect;
... | {
"content_hash": "39756bbf87606bd0833e0a2e9230d1b4",
"timestamp": "",
"source": "github",
"line_count": 206,
"max_line_length": 89,
"avg_line_length": 27.07766990291262,
"alnum_prop": 0.6281821441376838,
"repo_name": "xixisplit/net",
"id": "4199da625a095f0383c01bef38e265ad71b2eabd",
"size": "5848",... |
import subprocess
import sys
from uqbar.graphs import Grapher
import supriya
class Player:
### INITIALIZER ###
def __init__(self, renderable, **kwargs):
self.renderable = renderable
self.render_kwargs = kwargs
### SPECIAL METHODS ###
def __call__(self):
output_path = self... | {
"content_hash": "4ce0c28983265e49a338e4d40b8464a8",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 84,
"avg_line_length": 23.56896551724138,
"alnum_prop": 0.6166788588149232,
"repo_name": "Pulgama/supriya",
"id": "1336cfc902b5d2c1e27884dd7d9120311595712f",
"size": "1367"... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "2dacda5134587db484add1e43571bd43",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "9931ce7e142f98182a88b09d550f19de5199fb8c",
"size": "210... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodeCamp.Models
{
public class Track
{
public string Color { get; set; }
public string Description { get; set; }
public string Name { get; set; }
public int TrackId { get;... | {
"content_hash": "397a148ab44d0a21d88797fcdf0ae391",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 43,
"avg_line_length": 19.647058823529413,
"alnum_prop": 0.688622754491018,
"repo_name": "jamesmontemagno/code-camp-app",
"id": "c9de6246d54d323cbfd60f2eff8f4cd2c242b7e3",
... |
package negroni
import (
"fmt"
"log"
"net/http"
"os"
"runtime"
"runtime/debug"
)
// Recovery is a Negroni middleware that recovers from any panics and writes a 500 if there was one.
type Recovery struct {
Logger *log.Logger
PrintStack bool
ErrorHandlerFunc func(interface{})
StackAll ... | {
"content_hash": "241def67c5b21f403d0ad1ac07488f02",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 100,
"avg_line_length": 22.307692307692307,
"alnum_prop": 0.6193103448275862,
"repo_name": "akanto/traefik",
"id": "1fb19981d3bc3e3decb8f8d9a3feb90972f50d52",
"size": "1450... |
namespace Lucene
{
/// This attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter
/// to another one.
class LPPAPI FlagsAttribute : public Attribute
{
public:
FlagsAttribute();
virtual ~FlagsAttribute();
LUCENE_CLASS(FlagsA... | {
"content_hash": "fee069cd30cd399c24a57ab7542a64d2",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 109,
"avg_line_length": 31.52777777777778,
"alnum_prop": 0.6158590308370044,
"repo_name": "ustramooner/LucenePlusPlus",
"id": "be7478e32fab5233fd93b22f4b148c3bab78883d",
"s... |
'use strict';
/**
* @private
* @description Module dependencies.
*/
var http = require('http');
var querystring = require('querystring');
var escapeJSON = require('escape-json-node');
var trim = require('deep-trim-node');
/**
* @private
* @constant {String}
* @description Module version.
*/
var VERSION = r... | {
"content_hash": "2b52915ff8cb47a53ad44d6f5e288c8d",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 112,
"avg_line_length": 29.573426573426573,
"alnum_prop": 0.6100733033814141,
"repo_name": "AnatoliyGatt/forismatic-node",
"id": "49161cf08aa20ba466b4eb7ab308cb38010fb262",
... |
var cordova = require('../src/cordova/cordova'),
console = require('console'),
path = require('path'),
shell = require('shelljs'),
fs = require('fs'),
Q = require('q'),
util = require('../src/cordova/util'),
hooker = require('../src/cordova/hooker'),
tempDir,
http = require('http'),... | {
"content_hash": "f5c5e2a7cc102461cf8a90ebdf283022",
"timestamp": "",
"source": "github",
"line_count": 203,
"max_line_length": 104,
"avg_line_length": 39.073891625615765,
"alnum_prop": 0.4466717095310136,
"repo_name": "blackberry-webworks/cordova-lib",
"id": "e74c99d147890c84d1d9e4eee8ea2112ac70b203... |
from django import forms
from django.forms.utils import ErrorList
from crits.campaigns.campaign import Campaign
from crits.core.forms import add_bucketlist_to_form, add_ticket_to_form
from crits.core.handlers import get_item_names, get_source_names
from crits.core.user_tools import get_user_organization
from crits.cor... | {
"content_hash": "f3293e7955a49782476c8c9434e9065b",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 102,
"avg_line_length": 46.2972972972973,
"alnum_prop": 0.6088733216579101,
"repo_name": "ckane/crits",
"id": "80ec35547cff3fb96acd3c279a4a254801ec8a3a",
"size": "3426",
... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
De nuttige planten van Nederlandsch Indië, Edn 2, I 1: 78 (1927)
#### Original name
Pleurotus anas Overeem
### Remarks
null | {
"content_hash": "27d222bf0303a4a7fae9a60a49446059",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 64,
"avg_line_length": 14.384615384615385,
"alnum_prop": 0.7165775401069518,
"repo_name": "mdoering/backbone",
"id": "3fab53063d82e34887fd8fffe10c4a617e06f1fe",
"size": "23... |
#include <srs_app_http_api.hpp>
#ifdef SRS_AUTO_HTTP_API
#include <sstream>
#include <stdlib.h>
#include <signal.h>
using namespace std;
#include <srs_kernel_log.hpp>
#include <srs_kernel_error.hpp>
#include <srs_app_st.hpp>
#include <srs_core_autofree.hpp>
#include <srs_protocol_json.hpp>
#include <srs_kernel_uti... | {
"content_hash": "2f3317cf73efb320970212d1fc4b44f8",
"timestamp": "",
"source": "github",
"line_count": 1436,
"max_line_length": 146,
"avg_line_length": 37.34818941504178,
"alnum_prop": 0.5742094272076372,
"repo_name": "myself659/simple-rtmp-server",
"id": "40fecd9290d918e2d6d571892c7dd64b8bb932c5",
... |
import numpy as np
import os
import dill
import tempfile
import tensorflow as tf
import zipfile
import baselines.common.tf_util as U
from baselines import logger
from baselines.common.schedules import LinearSchedule
from baselines import deepq
from baselines.deepq.replay_buffer import ReplayBuffer, PrioritizedReplayB... | {
"content_hash": "b105ed8717cd7bb36f56a9a2a592eece",
"timestamp": "",
"source": "github",
"line_count": 397,
"max_line_length": 119,
"avg_line_length": 34.31486146095718,
"alnum_prop": 0.6489025912060485,
"repo_name": "pangzhenjia/pysc2-source",
"id": "b06a36aa5f62969965d3afa697655daf218151b5",
"si... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Class User
*/
class User extends MY_Controller {
public function __construct() {
parent::__construct();
$this->load->language('user');
$this->load->model('group_model');
}
public function index() {
... | {
"content_hash": "45b10698d1d8c1c2dfad17633f0666fe",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 206,
"avg_line_length": 41.24539877300614,
"alnum_prop": 0.522832069016808,
"repo_name": "iris-xie/supperWalle",
"id": "c54da4bd35a3f922a8c5608df8e10ac644c5ecab",
"size": ... |
#include <config.h>
#include "compat.h"
#include "timer.h"
double
timer_get_time( void )
{
return compat_timer_get_time();
}
void
timer_sleep( int ms )
{
compat_timer_sleep( ms );
}
| {
"content_hash": "8f901b0824daa81b339453542c3b7488",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 33,
"avg_line_length": 10.105263157894736,
"alnum_prop": 0.6458333333333334,
"repo_name": "FinnAngelo/Tomfoolery",
"id": "65ae2913daac027ddcf5f0d273ef256e92fe25ae",
"size":... |
name: Primary Brand
---<a href="#" class="primary-brand--anchor"></a> | {
"content_hash": "26cd927a4d8e195c6963ba4234165494",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 49,
"avg_line_length": 34.5,
"alnum_prop": 0.6521739130434783,
"repo_name": "martinmcloughlin/novatapestry",
"id": "96d3f9673a5f7246c7f455d31953d917b41ea305",
"size": "74",
... |
package org.openprovenance.prov.notation;
import java.util.List;
public interface TreeConstructor {
/* Component 1 */
public Object convertEntity(Object id, Object attrs);
public Object convertActivity(Object id,Object startTime,Object endTime, Object aAttrs);
public Object convertStart(String start)... | {
"content_hash": "02e8cdf79f3bce98361aaa3950186284",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 125,
"avg_line_length": 50.6986301369863,
"alnum_prop": 0.7584436638746285,
"repo_name": "weishi423/ProvToolboxWithNeo4j",
"id": "d7051262835a93a38c2e17d7afd82aa56dca1106",
... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>2. Installation — The Vortex OpenSplice LabVI... | {
"content_hash": "a21c2c414105ca886c58ca402be4774f",
"timestamp": "",
"source": "github",
"line_count": 229,
"max_line_length": 239,
"avg_line_length": 44.06113537117904,
"alnum_prop": 0.6578790882061447,
"repo_name": "osrf/opensplice",
"id": "c7e5d958baa4c75f82c5d5838be476c4f053da15",
"size": "101... |
function getDomainProtocol($url){
$protoArr = array("https","http");
foreach($protoArr as $proto){
$gUrl = sprintf("%s://%s",$proto,$url);
if($curl = curl_init()) {
curl_setopt($curl, CURLOPT_URL, $gUrl);
curl_setopt($curl, CURLOPT_TIMEOUT, 15);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl... | {
"content_hash": "a16bf3e0466715b43f80265e45555c84",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 53,
"avg_line_length": 31.363636363636363,
"alnum_prop": 0.6289855072463768,
"repo_name": "ReaGed/functions",
"id": "42f75547f64a0311b1880e075b5749d853ef7210",
"size": "753... |
@implementation BDVRClientUIManager
#pragma mark - init & dealloc
- (id)init
{
self = [super init];
if (self)
{
//
}
return self;
}
+ (BDVRClientUIManager *)sharedInstance
{
static BDVRClientUIManager *_sharedInstance = nil;
if (_sharedInstance == nil)
_sharedInstance = [[BDVRClientUIManager a... | {
"content_hash": "7b04432eb3c9c68e6015ef1101b81b7a",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 87,
"avg_line_length": 17.70967741935484,
"alnum_prop": 0.7049180327868853,
"repo_name": "ascode/jif-BaiduASR",
"id": "12f2bb5b343536cb2cf817dcd569e88792a32dc0",
"size": "1... |
from unittest import mock
import pytest
import stripe
from model_mommy import mommy
from rest_framework.reverse import reverse
from restframework_stripe import models
from restframework_stripe.test import get_mock_resource
@mock.patch("stripe.Customer.retrieve")
@mock.patch("stripe.ListObject.create")
@pytest.mark... | {
"content_hash": "22ff6043dd254df7b7ba9bbf9059aa33",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 88,
"avg_line_length": 32.44565217391305,
"alnum_prop": 0.678391959798995,
"repo_name": "andrewyoung1991/django-restframework-stripe",
"id": "851a29286438440c6cd9d1078814707e... |
<section class="u-section-separator">
<h2 class="hidden">Introduction</h2>
<p>Paracetamol is a common painkiller used to treat aches and pain. It can also be used to reduce fever (a temperature above 38C).</p>
<p>It's also available combined with other painkillers and anti-sickness medicines. It is an ingredient ... | {
"content_hash": "e129b48a6855994c9e26521029c9490f",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 151,
"avg_line_length": 83.14285714285714,
"alnum_prop": 0.7422680412371134,
"repo_name": "NHSChoices/medicines-alpha",
"id": "d208d0fb32ffeecbb3b4c24d31411d130beacba6",
"si... |
//>>built
define("dojox/grid/DataGrid", [
"../main",
"dojo/_base/array",
"dojo/_base/lang",
"dojo/_base/json",
"dojo/_base/sniff",
"dojo/_base/declare",
"./_Grid",
"./DataSelection",
"dojo/_base/html"
], function(dojox, array, lang, json, has, declare, _Grid, DataSelection, html){
/*=====
declare("dojox.grid.... | {
"content_hash": "2e0153c043e516fa31f2bd8d96cd6615",
"timestamp": "",
"source": "github",
"line_count": 660,
"max_line_length": 152,
"avg_line_length": 25.43030303030303,
"alnum_prop": 0.6416229742612012,
"repo_name": "Appudo/Appudo.github.io",
"id": "63d20bb3f999da182371dadab0e5f2ce6139c30c",
"siz... |
package cloudfront
import (
"net/http"
"time"
"github.com/kuxuxun/aws-sdk-go/aws"
"github.com/kuxuxun/aws-sdk-go/gen/endpoints"
)
import (
"bytes"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"net/url"
"strconv"
"strings"
)
// CloudFront is a client for Amazon CloudFront.
type CloudFront struct {
client *aws.... | {
"content_hash": "cd55961d279b547ec6c3f3d8ff30dc63",
"timestamp": "",
"source": "github",
"line_count": 2310,
"max_line_length": 180,
"avg_line_length": 26.523809523809526,
"alnum_prop": 0.7020891137587727,
"repo_name": "kuxuxun/aws-sdk-go",
"id": "28b55a5aeb0d701fcbe8d5d630aab2251588f5d1",
"size":... |
FROM golang:1.5.2
MAINTAINER wencan <i@wencan.org>
RUN apt-get update \
&& apt-get install -y --no-install-recommends autoconf automake libtool unzip \
&& rm -rf /var/lib/apt/lists/*
ENV PROTOBUF_VERSION 3.0.0-beta-1
RUN curl -L https://github.com/google/protobuf/archive/v$PROTOBUF_VERSION.tar.gz -o protobuf... | {
"content_hash": "28397c2b13ebf4e611c8ee54af854c9a",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 119,
"avg_line_length": 29.75,
"alnum_prop": 0.6554621848739496,
"repo_name": "wencan/docker-library",
"id": "ec4be7a41fa1adb3d9fe5d53e758c7369f064f36",
"size": "714",
"b... |
<?php
namespace Concerto\PanelBundle\Repository;
/**
* TestNodeRepository
*/
class TestNodeRepository extends AEntityRepository
{
}
| {
"content_hash": "ddd346b27b7b176534899d6c650666c0",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 50,
"avg_line_length": 12.454545454545455,
"alnum_prop": 0.7737226277372263,
"repo_name": "campsych/concerto-platform",
"id": "a4a7650d7b0c5303666b0b797562726c5c08c9d2",
"s... |
package me.scylla.fframework.utils.http;
import java.util.HashMap;
import java.util.Map;
import me.scylla.fframework.model.entity.Module;
/**
* @author Ray Liu
*
*/
public class SessionHelper {
public static final String KEY_MODULE = "_app";
public static final String KEY_PRIVILEGE = "_privilege";
public stat... | {
"content_hash": "45cbb3d08df5bd8f618d54fe560915a0",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 108,
"avg_line_length": 24.65,
"alnum_prop": 0.7004732927653821,
"repo_name": "scyllor/fframework",
"id": "5c67e454ca4e7e31aa2f1e9a63485a4ca14faf79",
"size": "1479",
"bin... |
package org.jamesframework.examples.clique;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
/**
* Reads a graph from a text file. Each line contains two vert... | {
"content_hash": "2074a4c6d814d132cf13562d69e35014",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 81,
"avg_line_length": 29.35135135135135,
"alnum_prop": 0.6500920810313076,
"repo_name": "hdbeukel/james-examples",
"id": "53473c434ab18485d8666e75c17022f00c0407f0",
"size"... |
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.streamdataio.android.github.CommitsActivity">
</menu>
| {
"content_hash": "108bb2f46a4789164c8556b14b9eb942",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 68,
"avg_line_length": 42.333333333333336,
"alnum_prop": 0.7244094488188977,
"repo_name": "streamdataio/github-android",
"id": "be5fb6fc78c5c4a89eb7e3930d7475c3f719f931",
"s... |
@implementation SLPlayerView
+ (Class)layerClass {
return [AVPlayerLayer class];
}
- (AVPlayer *)mPlayer {
return [(AVPlayerLayer *)[self layer] player];
}
- (void)setMPlayer:(AVPlayer *)mPlayer {
[(AVPlayerLayer *)[self layer] setPlayer:mPlayer];
}
- (void)dealloc {
self.mPlayer = nil;
}
@end
@in... | {
"content_hash": "487b7e942a7d3957254277ba0d822ff4",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 125,
"avg_line_length": 24.126984126984127,
"alnum_prop": 0.6730263157894737,
"repo_name": "boilWater/FeiYuePlayer",
"id": "37864e68d1bf094a4ea6c3305b30d2094e0f3c8d",
"size... |
<md-toolbar>
<br>
<div class="md-toolbar-tools">
<md-button class="button-small" ng-click="tbc.toggleSidenav('left')" aria-label="Menu">
<ng-md-icon icon="menu"></ng-md-icon>
</md-button>
<span class="md-heading">
Dashboard
</span>
... | {
"content_hash": "76d87d39bae8f04126e69093f4ea2956",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 112,
"avg_line_length": 39.64,
"alnum_prop": 0.5186680121089808,
"repo_name": "jouke/ionic-ngmaterial-startapp",
"id": "ad5e4af127d2a7c4ae2c0988e91c7ba324973aa2",
"size": "... |
var fs = require("fs");
var zlib = require('zlib');
// Decompress the file input.txt.gz to input.txt
fs.createReadStream('input.txt.gz')
.pipe(zlib.createGunzip())
.pipe(fs.createWriteStream('input.txt'));
console.log("File Decompressed."); | {
"content_hash": "8b2a38755a75dbb98d2f5328200d7aee",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 48,
"avg_line_length": 27.77777777777778,
"alnum_prop": 0.696,
"repo_name": "acelaya/angular-course-webstorm",
"id": "596b53ddfc153ee57048dfbc530a025d0ee065cf",
"size": "250... |
<?php
namespace ProjectAgeAnalyzer\Log;
use Psr\Log\LoggerInterface;
class LoggerSpy implements LoggerInterface
{
/** @var array */
private $logMessages = [];
/**
* System is unusable.
*
* @param string $message
* @param array $context
*
* @return void
*/
public fu... | {
"content_hash": "20c563cb77bee3b16fb7af39da76b79f",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 79,
"avg_line_length": 22.783783783783782,
"alnum_prop": 0.5444839857651246,
"repo_name": "cbergau/project_age_analyzer",
"id": "6a3afa9aeb9732c65fc1c8dc87cec5c9b2c515e8",
... |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/*jslint node: true, nomen: true, stupid: true */
'use strict';
// Variables
const fs = require('fs'),
path = require('path'),
_ = require('lodash');
// Export module
_.forEach(fs.readdirSync(__dirname), function (filename) {
if ('index.js... | {
"content_hash": "0a92a23c935a614f155e87f5340922ad",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 63,
"avg_line_length": 18.114285714285714,
"alnum_prop": 0.6088328075709779,
"repo_name": "eq-inc/eq-web",
"id": "c2007ec42630dbfd94a9c19c3ea95e0e5aa72fd1",
"size": "634",
... |
package frontend
import (
"context"
"golang.org/x/pkgsite/internal"
"golang.org/x/pkgsite/internal/log"
"golang.org/x/pkgsite/internal/middleware"
)
// GetLatestInfo returns various pieces of information about the latest
// versions of a unit and module:
// - The linkable form of the minor version of the unit.... | {
"content_hash": "6d4604fb318cd035e35e3926dbf75462",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 137,
"avg_line_length": 36.54545454545455,
"alnum_prop": 0.7504145936981758,
"repo_name": "golang/pkgsite",
"id": "e3e4b73028fc11ef791979635dceb7a41344cabd",
"size": "1366"... |
[jvm]
Content
abstract fun [outerType](outer-type.md)(value: [Type](https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html)?): [S](index.md)
More info
See [TypeDeclaration.outerType](../outer-type.md)
| {
"content_hash": "1d780df316d910ab37bb9f54af0116f1",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 143,
"avg_line_length": 19.416666666666668,
"alnum_prop": 0.6824034334763949,
"repo_name": "JonathanxD/CodeAPI",
"id": "cb66c964acc0c3f076dd07a5041fe7898d46b7c2",
"size": "... |
<?php
namespace Diskerror\Utilities;
class Registry extends Stack
{
/**#@+
* @access protected
*/
/**
* Singleton instance of this class.
* @var Diskerror\Utilities\Registry
* @static
*/
private static $_instance;
/**
* Create static instance if it doesn't exist.
*/
final private static functi... | {
"content_hash": "05361ee35c45f207642e5d87cf579925",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 62,
"avg_line_length": 17.61038961038961,
"alnum_prop": 0.6364306784660767,
"repo_name": "diskerror/Utilities",
"id": "5809a2128b3520726c605f0ac5eed2cc2efaf8ff",
"size": "1... |
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.o... | {
"content_hash": "65828366668e31ee521bdcd1652ed843",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 131,
"avg_line_length": 45.94117647058823,
"alnum_prop": 0.6965428937259923,
"repo_name": "hungcuongbsm/spdv",
"id": "caa1c49b952780c3ac258a80c013a7297591e164",
"size": "78... |
package com.vincent.filepicker.activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.View;
import android.widget.LinearLayout;
impor... | {
"content_hash": "23d860fcb1dff4a14243e6220d50afce",
"timestamp": "",
"source": "github",
"line_count": 256,
"max_line_length": 158,
"avg_line_length": 39.4609375,
"alnum_prop": 0.590972084735696,
"repo_name": "fishwjy/MultiType-FilePicker",
"id": "04ad15d1bdbc21966b64ca2346067d079b16ab28",
"size":... |
@interface SSZipArchive : NSObject {
}
+ (BOOL)unzipFileAtPath:(NSString *)path toDestination:(NSString *)destination;
+ (BOOL)unzipFileAtPath:(NSString *)path toDestination:(NSString *)destination overwrite:(BOOL)overwrite password:(NSString *)password error:(NSError **)error;
@end
| {
"content_hash": "0bc25db38402239c0c30489906bc3e41",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 159,
"avg_line_length": 35.875,
"alnum_prop": 0.7700348432055749,
"repo_name": "wallclimber21/ssziparchive",
"id": "9e0e5d566c52355e7f6ea2c7823f1e085e2864a5",
"size": "498",... |
RingClock::RingClock(
unsigned long leds[][3],
unsigned int ledCount,
unsigned int displayedHours,
PatternCreator patternCreators[],
unsigned int patternCount
) :
leds{leds},
ledCount{ledCount},
displayedHours{displayedHours},
ledsPerHour{ledCount/displayedHours},
patternCreators{patternCreators},
... | {
"content_hash": "f71e494bfc1c95646c50cace4e093d5e",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 133,
"avg_line_length": 31.866666666666667,
"alnum_prop": 0.6868898186889819,
"repo_name": "ubald/neopixels-ring-clock",
"id": "69e5b58031b3a83bf0e5b78c9625820614a57e2d",
"... |
<script src="socket.js"></script>
<script>
alert('hi');
window.ss = 'dsf';
console.log(window.io);
var socket = io('http://localhost:1415');
socket.on('news', function (data) {
console.log(data);
alert(data);
socket.emit('my other event', { my: 'datasss' });
});
</script>
| {
"content_hash": "f5894b4c35344c61043cc2c890893a0f",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 53,
"avg_line_length": 17,
"alnum_prop": 0.5784313725490197,
"repo_name": "mohanaravind/ninjatools",
"id": "f4a857cf9acd70018622e2d5406d410ef4ccabc9",
"size": "306",
"bin... |
class FuzzedDataProvider;
namespace net {
class IOBuffer;
// A SourceStream implementation used in tests. This allows tests to specify
// what data to return for each Read() call.
class FuzzedSourceStream : public SourceStream {
public:
// |data_provider| is used to determine behavior of the FuzzedSourceStream.
... | {
"content_hash": "60da3742ab92308cfaac1ab1f8a9b348",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 77,
"avg_line_length": 29.863636363636363,
"alnum_prop": 0.7115677321156774,
"repo_name": "ric2b/Vivaldi-browser",
"id": "5e575200116dc753a07c0dd122b38cad01153a8c",
"size":... |
namespace bp = boost::python;
struct LightSource_wrapper : osg::LightSource, bp::wrapper< osg::LightSource > {
LightSource_wrapper( )
: osg::LightSource( )
, bp::wrapper< osg::LightSource >(){
// null constructor
}
virtual void accept( ::osg::NodeVisitor & nv ) {
if( bp::ov... | {
"content_hash": "6386cb2daaf4b67f9791cf48f908d077",
"timestamp": "",
"source": "github",
"line_count": 855,
"max_line_length": 632,
"avg_line_length": 40.771929824561404,
"alnum_prop": 0.5454962707974756,
"repo_name": "JaneliaSciComp/osgpyplusplus",
"id": "5ba804e1e7ad9330822f8373475abf8a7df01dcc",
... |
set -e
__NDK_Version=r21
usage()
{
echo "Creates a toolchain and sysroot used for cross-compiling for Android."
echo.
echo "Usage: $0 [BuildArch] [ApiLevel]"
echo.
echo "BuildArch is the target architecture of Android. Currently only arm64 is supported."
echo "ApiLevel is the target Android API... | {
"content_hash": "757b94b35591bb2a9d099a22f36a4ecb",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 277,
"avg_line_length": 39.07692307692308,
"alnum_prop": 0.6625984251968504,
"repo_name": "StephenBonikowsky/wcf",
"id": "e7f12edb565a9b26cbf84653c7e7a8d29dc5cd7b",
"size"... |
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#pragma once
#include <vector>
#include <map>
#include <sstream>
#include <string>
#include "ifcpp/model/GlobalDefines.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingObject.h"
namespace IFC4X3
{
// TYPE IfcWorkPlanTypeEnum = E... | {
"content_hash": "efcb7b3b698fb6654bbacf0b8acaea6a",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 174,
"avg_line_length": 32.27777777777778,
"alnum_prop": 0.7573149741824441,
"repo_name": "ifcquery/ifcplusplus",
"id": "53d71e3ccd38e071b79d922a713ade1a926146ca",
"size": ... |
// -*- C++ -*-
// Copyright (C) 2007-2016 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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... | {
"content_hash": "255353a08bb95bf6328d3e2b85d90de0",
"timestamp": "",
"source": "github",
"line_count": 495,
"max_line_length": 78,
"avg_line_length": 34.01010101010101,
"alnum_prop": 0.555034155034155,
"repo_name": "ATM-HSW/mbed_target",
"id": "16ef1efe8889d8f84c2b9ae561f7cd30a717bca0",
"size": "1... |
#ifndef _IPHLPAPI_H
#define _IPHLPAPI_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#include <iprtrmib.h>
#include <ipexport.h>
#include <iptypes.h>
#ifdef __cplusplus
extern "C" {
#endif
DWORD WINAPI AddIPAddress(IPAddr,IPMask,DWORD,PULONG,PULONG);
DWORD WINAPI CreateIpForwardEntry(PMIB_IPFORWARDROW);
DWORD WIN... | {
"content_hash": "07d232b694621fafb149499004378a63",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 85,
"avg_line_length": 41,
"alnum_prop": 0.8268292682926829,
"repo_name": "andersonsilvade/python_C",
"id": "214c53ef718e4b11e5b5b8fbca59b2f9e2063144",
"size": "2460",
"b... |
import traceback
import json
import requests
from .models import (
Log,
RequestLog,
EventLog,
)
class NoRequestException(Exception):
pass
class NoExceptionException(Exception):
pass
class ObjectLogger(object):
def log_request(self, log=None, request=None, request_body=None):
# --... | {
"content_hash": "ca297587f4b5e5ddebcd4104d7e33dd0",
"timestamp": "",
"source": "github",
"line_count": 324,
"max_line_length": 104,
"avg_line_length": 29.246913580246915,
"alnum_prop": 0.575981426762347,
"repo_name": "eshandas/simple_django_logger",
"id": "3ee66ffd486118036f315c4d5cd3a3e2898da99f",
... |
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
namespace Microsoft.CodeAnalysis.WorkspaceServices
{
internal interface IWorkspac... | {
"content_hash": "6e5a0551864c2aba43850f2e6ad65470",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 184,
"avg_line_length": 43.1764705882353,
"alnum_prop": 0.7506811989100818,
"repo_name": "binsys/roslyn_java",
"id": "2206cc843683b10487061b6177667b93d70a75b0",
"size": "73... |
/**
* @requires OpenLayers/Renderer/Elements.js
*/
/**
* Class: OpenLayers.Renderer.VML
* Render vector features in browsers with VML capability. Construct a new
* VML renderer with the <OpenLayers.Renderer.VML> constructor.
*
* Note that for all calculations in this class, we use toFixed() to round a
* f... | {
"content_hash": "493f2443d835eca0a399104b19d6d019",
"timestamp": "",
"source": "github",
"line_count": 977,
"max_line_length": 113,
"avg_line_length": 33.07369498464688,
"alnum_prop": 0.5265682542629901,
"repo_name": "mgiraldo/nypl-warper",
"id": "10d305e540ee818e12fcd48705f5a9a8f49e5b23",
"size":... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="t... | {
"content_hash": "6373aeb65f1fd8596d9a0e22ff2afce5",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 108,
"avg_line_length": 35.55,
"alnum_prop": 0.6507266760431317,
"repo_name": "crysfel/fundamentos-extjs",
"id": "21406d027e3988cc2725faa2dad98c5f51e16942",
"size": "4266"... |
terbilang
===============
[](https://www.npmjs.org/package/terbilang)
JavaScript library to convert a number to its word representation in Bahasa Indonesia language
## Install
Download [manually](https://github.com/aredo/terbilang/releases) or with a package-manager... | {
"content_hash": "a1a3424485720713b8815ed1c2b33e11",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 94,
"avg_line_length": 20.344827586206897,
"alnum_prop": 0.7084745762711865,
"repo_name": "aredo/terbilang",
"id": "b0715a8ca5890ed5fb9e47e5432af2326425e204",
"size": "590"... |
<?php declare(strict_types=1);
namespace PHPUnit\Event\Test;
use PHPUnit\Event\Subscriber;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
interface FailedSubscriber extends Subscriber
{
public function notify(Failed $event): void;
}
| {
"content_hash": "e4c38c72223ac6b61ca1430968edd786",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 104,
"avg_line_length": 23.53846153846154,
"alnum_prop": 0.7679738562091504,
"repo_name": "sebastianbergmann/phpunit",
"id": "8da6a85f16d02a477c4fd8e2fef0ac5346baf93b",
"si... |
;; This code can go into the .emacs file
;; This works with python-mode.el version 1.0
(defun py-insert-super ()
(interactive)
(let (methodname classname)
(save-excursion
(or (py-go-up-tree-to-keyword "def")
(error "Enclosing def not found"))
(or (looking-at "[ \t]*def[ \t]+\\([a-zA-Z0-9_... | {
"content_hash": "6764f4a4b935fab59e95fa01a0abe60c",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 64,
"avg_line_length": 35.84615384615385,
"alnum_prop": 0.601931330472103,
"repo_name": "ActiveState/code",
"id": "31cebbca7589dca49bd9eb5b280f146b2f579db2",
"size": "932",... |
<?php
namespace Vanessa\SongBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Form\FormBuilderInterface;
use Doctrine\ORM\EntityRepository;
/**
* Vanessa\SongBundle\Form\SongShowType
*
... | {
"content_hash": "b80c7df1894e3792c51128beb805913f",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 85,
"avg_line_length": 28.86813186813187,
"alnum_prop": 0.5131328511610201,
"repo_name": "sonnybrilliant/zeus-mobigospel",
"id": "1bb722a4998a786cb1e4518c0390a55a177b8b9e",
... |
ngapp.service('hotkeyFactory', function() {
let factory = this,
ctrlDown = false;
// PUBLIC HOTKEYS
this.baseHotkeys = {
i: [{
modifiers: ['ctrlKey', 'shiftKey'],
callback: 'toggleDevTools'
}],
s: [{
modifiers: ['ctrlKey', 'shiftKey'],
... | {
"content_hash": "31a384117a2c2dac74e1c08f85c390ce",
"timestamp": "",
"source": "github",
"line_count": 307,
"max_line_length": 77,
"avg_line_length": 26.547231270358306,
"alnum_prop": 0.4710429447852761,
"repo_name": "matortheeternal/zedit",
"id": "20bcb3f7e73041818ee7855b6763830963e34ba5",
"size"... |
package kerio.connect.admin.settings;
public class Version {
long ApiVersion;
ProductVersion productVersion;
public Version() {
}
public long getApiVersion() {
return ApiVersion;
}
public void setApiVersion(long apiVersion) {
ApiVersion = apiVersion;
}
public ProductVersion getPro... | {
"content_hash": "9288a54fd419aaf2eefad86dd33eeeb1",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 64,
"avg_line_length": 18.55,
"alnum_prop": 0.5956873315363881,
"repo_name": "pascalrobert/kerio-admin",
"id": "51e47e2c83898a923cf9c452974ab55b62b7ca08",
"size": "2226",
... |
<!doctype html>
<title>Stick Figure Examples</title>
<h1>Stick Figure Examples</h1>
<ol>
<li value="0">
<a href="sticks0.html">Draw on a canvas</a> – see also <a href="lines-and-triangles.html">Lines and triangles</a>
<li><a href="sticks1.html">Draw a stick figure (or three)</a>
<li><a href="sticks2.html"... | {
"content_hash": "9387f71c14e2cbc8f9ab38dd263c0a74",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 119,
"avg_line_length": 40.888888888888886,
"alnum_prop": 0.6793478260869565,
"repo_name": "portsoc/Web-Canvas-Stick-Figures",
"id": "61500ba554e3625bee97f8743e5302fa838fbafc... |
<?php
namespace Phlexible\Bundle\ElementBundle\Event;
use Phlexible\Bundle\ElementBundle\Entity\ElementVersion;
use Symfony\Component\EventDispatcher\Event;
/**
* Element version event
*
* @author Stephan Wentz <sw@brainbits.net>
*/
class ElementVersionEvent extends Event
{
/**
* @var ElementVersion
... | {
"content_hash": "237d1b93c277ed9a1a52fa08761d1e24",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 63,
"avg_line_length": 18.43243243243243,
"alnum_prop": 0.6612903225806451,
"repo_name": "temp/phlexible",
"id": "e5cb000f3696f7f38397876843feba2dc140ad88",
"size": "908",
... |
using content::BrowserContext;
using extensions::Extension;
namespace {
// Root dirs for file systems expected by the test extensions.
// NOTE: Root dir for drive file system is set by Chrome's drive implementation,
// but the test will have to make sure the mount point is mounted before
// starting a test extension.... | {
"content_hash": "e7b085f0ae469a89ce4772e11596739d",
"timestamp": "",
"source": "github",
"line_count": 518,
"max_line_length": 80,
"avg_line_length": 35.16216216216216,
"alnum_prop": 0.6934775447457999,
"repo_name": "codenote/chromium-test",
"id": "1fc474b0e9db8b8e91a098c8468c8998a6c29073",
"size"... |
// snippet-sourcedescription:[CancelJob.java demonstrates how to cancel a job by setting the job status to Cancelled.]
// snippet-service:[s3]
// snippet-keyword:[Java]
// snippet-sourcesyntax:[java]
// snippet-keyword:[Amazon S3]
// snippet-keyword:[Code Sample]
// snippet-sourcetype:[full-example]
// snippet-source... | {
"content_hash": "60e6a71f7e1a8edd542d188cc51fa72e",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 118,
"avg_line_length": 35.87096774193548,
"alnum_prop": 0.6717625899280576,
"repo_name": "awsdocs/aws-doc-sdk-examples",
"id": "4930917d574c4f041d2c957b9ca9d899e0198493",
... |
<?php
/**
* A class that provides shorthand functions to access/load files on the server.
*
* @author Leng Sheng Hong <darkredz@gmail.com>
* @version $Id: DooController.php 1000 2009-07-7 18:27:22
* @package doo.uri
* @since 1.0
*/
class DooLoader
{
public $app;
/**
* Reads a file and send a hea... | {
"content_hash": "61e1c73466bedb14dfe165fb6b279eae",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 96,
"avg_line_length": 30.548780487804876,
"alnum_prop": 0.5305389221556887,
"repo_name": "darkredz/DooJ",
"id": "733e9acdd1f741ef9982abe4a016c010b4e98884",
"size": "2722",... |
export class SetterObserver {
constructor(taskQueue, obj, propertyName){
this.taskQueue = taskQueue;
this.obj = obj;
this.propertyName = propertyName;
this.callbacks = [];
this.queued = false;
this.observing = false;
this.isSVG = obj instanceof SVGElement;
}
getValue(){
return thi... | {
"content_hash": "ac84f18a84224e2acdc898ae80475c18",
"timestamp": "",
"source": "github",
"line_count": 216,
"max_line_length": 95,
"avg_line_length": 21.60185185185185,
"alnum_prop": 0.6240891555936562,
"repo_name": "behzad88/binding",
"id": "413d377d43dff2cd14c4458c7428c6c3b1d02308",
"size": "466... |
package jp.co.yahoo.dataplatform.mds.spread.analyzer;
import java.io.IOException;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSo... | {
"content_hash": "a688f53bc3149afe8546351a4418211c",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 118,
"avg_line_length": 34.976190476190474,
"alnum_prop": 0.7542545949625595,
"repo_name": "yahoojapan/multiple-dimension-spread",
"id": "33180fb307d147a2ad2320133bffc72b357f... |
@protocol GWCollapsibleTableDataSource <NSObject>
- (BOOL)tableView:(UITableView *)tableView canCollapseSection:(NSInteger)section;
- (UITableViewCell *)tableView:(UITableView *)tableView headerCellForCollapsibleSection:(NSInteger)section;
- (UITableViewCell *)tableView:(UITableView *)tableView bodyCellForRowAtIndexPa... | {
"content_hash": "a89b6f58db26ffb59ae374f1e9f46a16",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 107,
"avg_line_length": 38.5,
"alnum_prop": 0.8138528138528138,
"repo_name": "gregwym/GWCollapsibleTable",
"id": "04eeb35dbb8e1088d8938a9f4e46dcff7b813d23",
"size": "1158",... |
import time
import pytest
from Util import timing
def test_near_full_load_fps_timer():
# example preliminary test
start = time.time()
time_total = 2
fps = 10
num_iterations = time_total*fps
sleep = timing.create_fps_timer(fps)
sleep() # to initialize it
for _ in range(num_iterations-1... | {
"content_hash": "4e1be0b6073cfb0ad1eb0e77a339e996",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 73,
"avg_line_length": 27.948275862068964,
"alnum_prop": 0.6440468846391116,
"repo_name": "RoboCupULaval/StrategyIA",
"id": "9714728429456fc79cb78d1ee93a16bd875c63c3",
"siz... |
//===--- ImportDecl.cpp - Import Clang Declarations -----------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | {
"content_hash": "c776b431831f9dec7649ef7ce7a24490",
"timestamp": "",
"source": "github",
"line_count": 5960,
"max_line_length": 87,
"avg_line_length": 38.93842281879195,
"alnum_prop": 0.592244681630349,
"repo_name": "slavapestov/swift",
"id": "bcd678a3acbaecf003462f02b8c1c5b01480bedf",
"size": "23... |
package com.jfixby.red.triplane.resources.fsbased;
import com.jfixby.rana.api.pkg.io.BankHeaderInfo;
import com.jfixby.scarabei.api.debug.Debug;
import com.jfixby.scarabei.api.file.File;
public class BankHeader {
private final File bank_folder;
private final String bank_name;
public BankHeader (fina... | {
"content_hash": "b07a216484b61b931231c5370ee9a6ac",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 78,
"avg_line_length": 23.484848484848484,
"alnum_prop": 0.6967741935483871,
"repo_name": "JFixby/Rana",
"id": "0ca1849b3b557cabb50f9e8627ff09b156146562",
"size": "775",
... |
import { visit, visitArray, compile, Opcodes } from '../../utils/compiler'
import { objectToSortedKVArray } from '../../utils/array-utils'
import { Type } from '../../models/types'
import Post from '../../models/post'
import MarkupSection from '../../models/markup-section'
import ListSection from '../../models/list-sec... | {
"content_hash": "5aed5275106b38ff5b6ef37a438161e5",
"timestamp": "",
"source": "github",
"line_count": 199,
"max_line_length": 98,
"avg_line_length": 31.798994974874372,
"alnum_prop": 0.7011694058154235,
"repo_name": "bustle/mobiledoc-kit",
"id": "f02132dcacef4a40f2d56513ebcce85d32628479",
"size":... |
import os
import copy
import pprint
from kivy.uix.image import Image
from kivy.uix.widget import Widget
# TODO: Handle this creation somewhere in app init
IMAGES_DICTIONARY = {'okapi': '/Assets/Sprites/okapi.png',
'normal_ground': '/Assets/Sprites/normal_ground.png',
'wall': '... | {
"content_hash": "5b655bc1a4b18faf3057b2800a9acdae",
"timestamp": "",
"source": "github",
"line_count": 162,
"max_line_length": 79,
"avg_line_length": 28.506172839506174,
"alnum_prop": 0.5426591598094413,
"repo_name": "kostyll/kivy-okapi",
"id": "6e6493712839713ae8d872723218dd54aeb4e9cc",
"size": "... |
package org.wildfly.camel.test.slack;
import org.apache.camel.CamelContext;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.component.slack.SlackComponent;
import org.apache.camel.impl.DefaultCamelCont... | {
"content_hash": "401af7d58495c39c41b14cf5992f6201",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 112,
"avg_line_length": 35.629629629629626,
"alnum_prop": 0.6990644490644491,
"repo_name": "jamesnetherton/wildfly-camel",
"id": "2f82d8271641b10901e9250a2bfd50e373a19231",
... |
var foo = {};
var bar = {};
// A function that uses `this`
function func(val) {
this.val = val;
}
// Force this in func to be foo
func.call(foo, 123);
// Force this in func to be bar
func.call(bar, 456);
// Verify:
console.log(foo.val); // 123
console.log(bar.val); // 456 | {
"content_hash": "9afd7174f09ac9b5079e12f130c3bebd",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 31,
"avg_line_length": 16.529411764705884,
"alnum_prop": 0.6192170818505338,
"repo_name": "decentcamper/MeanStackDevelopment",
"id": "7d55e2345d9e4250b72d7cf7790c08738df641d7... |
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="@color/auto_color_3b4d63_90" />
<corners
android:radius="@dimen/auto_dimen2_4"
android:topLeftRadius="0.... | {
"content_hash": "5d6efc00f9b828198f556b8eca1e1fdd",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 71,
"avg_line_length": 39.142857142857146,
"alnum_prop": 0.5675182481751825,
"repo_name": "eagle-S/Test",
"id": "e062e05dcab55a8cd9eaf3c536cc2ee3e2194f8a",
"size": "548",
... |
package org.synyx.urlaubsverwaltung.core.settings;
import org.junit.Assert;
import org.junit.Test;
/**
* Unit test for {@link MailSettings}.
*
* @author Aljona Murygina - murygina@synyx.de
*/
public class MailSettingsTest {
@Test
public void ensureHasSomeDefaultValues() {
MailSettings mailSett... | {
"content_hash": "50168ac69d91f81853eb8cfddaa6fdb3",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 108,
"avg_line_length": 42.891891891891895,
"alnum_prop": 0.7038437303087587,
"repo_name": "pongo710/urlaubsverwaltung",
"id": "44b3653eb50b7a9f6356ab5d56127544cee30cc7",
"... |
__revision__ = "test/site_scons/basic.py rel_2.5.1:3735:9dc6cee5c168 2016/11/03 14:02:02 bdbaddog"
import TestSCons
"""
Verify basic functionality of the site_scons dir and
site_scons/site_init.py file:
Make sure the site_scons/site_init.py file gets loaded,
and make sure a tool can be loaded from the site_scons/site... | {
"content_hash": "25251d88354ba3908cef4a6776ed3b08",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 98,
"avg_line_length": 22.96078431372549,
"alnum_prop": 0.6806148590947908,
"repo_name": "EmanueleCannizzaro/scons",
"id": "2868e0787b0b779831967ba7dc89db4f4c7c4cb2",
"size... |
const options = {
manager: require('../../../../src/managers/master/design-tracking-reason-manager'),
model: require('bateeq-models').master.DesignTrackingReason,
util: require('../../../data-util/master/design-tracking-reason-data-util'),
validator: require('bateeq-models').validator.master.designTrack... | {
"content_hash": "daa41fc4eac1388e30bf0bdd3538f608",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 87,
"avg_line_length": 41.27272727272727,
"alnum_prop": 0.6894273127753304,
"repo_name": "danliris/bateeq-module",
"id": "080afbd81b2e0385d349ef3be2505f1d77ecdef7",
"size":... |
"""Example Script: How to configure a Spark Datasource
This example script is intended for use in documentation on how to configure a Spark Datasource.
Assert statements are included to ensure that if the behaviour shown in this script breaks it will not pass
tests and will be updated. These statements can be ignore... | {
"content_hash": "c0cd560f8333697209fe6fb32b988ef3",
"timestamp": "",
"source": "github",
"line_count": 897,
"max_line_length": 137,
"avg_line_length": 38.827201783723524,
"alnum_prop": 0.5862237280349144,
"repo_name": "great-expectations/great_expectations",
"id": "6861548bb21c1ab42347ad59081d0e6f8e... |
<p align="center">
<img src="https://pigjian.com/images/v-distpicker.png" alt="Powered By Jiajian Chan" width="160">
</p>
<p align="center">A flexible, highly available district selector for picking provinces, cities and districts of China. </p>
# V - Distpicker
:
name = "Regression Tree"
description = "A regression tree algor... | {
"content_hash": "b6fe50bc697139fb021e694872e5cab6",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 75,
"avg_line_length": 25.771428571428572,
"alnum_prop": 0.7095343680709535,
"repo_name": "cheral/orange3",
"id": "deb309c105435a747b6c860e4bf53c10bccfe87c",
"size": "902",... |
<HTML><HEAD>
<TITLE>Review for Bone Collector, The (1999)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0145681">Bone Collector, The (1999)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy... | {
"content_hash": "713297ae91c3f39545116cf8750fcc1f",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 205,
"avg_line_length": 56.2,
"alnum_prop": 0.7437722419928826,
"repo_name": "xianjunzhengbackup/code",
"id": "6ca3ead1764f1d8518fd0d2b7d36f8b7d043f18c",
"size": "2810",
... |
using System.Collections.Generic;
using CollectionsOnline.Core.Models;
using CollectionsOnline.WebSite.Models;
namespace CollectionsOnline.WebSite.Transformers
{
public class SpecimenViewTransformerResult
{
public Specimen Specimen { get; set; }
public IList<EmuAggregateRootViewModel> Related... | {
"content_hash": "b86ed19650ec702cfd055e7aeddddb93",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 78,
"avg_line_length": 35.46875,
"alnum_prop": 0.6977973568281939,
"repo_name": "museumsvictoria/collections-online",
"id": "b098e262e6f90fd0d45070c794bdbf4618ec0b38",
"siz... |
import { expect } from "chai";
import { Formatter } from "@export/formatter";
import { MathRun } from "../math-run";
import { MathDegree } from "./math-degree";
describe("MathDegree", () => {
describe("#constructor()", () => {
it("should create a MathDegree with correct root key", () => {
con... | {
"content_hash": "ebf867224420b6bd13901befca69758a",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 81,
"avg_line_length": 29.583333333333332,
"alnum_prop": 0.40938967136150234,
"repo_name": "dolanmiu/docx",
"id": "656d8d8ac9eb837a11788641cb4efc032bcaf7ca",
"size": "1065"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.