text stringlengths 2 1.04M | meta dict |
|---|---|
use std::io::prelude::*;
use std::fs::OpenOptions;
use std::path::Path;
use std::process::exit;
use openssl::ssl;
use mqtt3::{QoS, Protocol};
use netopt::{NetworkOptions, SslContext};
use mqttc::{PubSub, ClientOptions, PubOpt};
use super::{Command, LocalStorage};
use client::logger::set_stdout_logger;
#[derive(Debug,... | {
"content_hash": "45072362340c37703f9de8a88a070954",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 136,
"avg_line_length": 29,
"alnum_prop": 0.5600667408231368,
"repo_name": "inre/rust-mq",
"id": "deffc9905f8a425a582a8e5642e80467e88a9f27",
"size": "3596",
"binary": fa... |
(function () {
'use strict';
angular.module('app.examples.form', [])
.config(['$stateProvider', routeConfig]);
function routeConfig($stateProvider) {
$stateProvider
.state('app.examples.form', {
url: '/form',
abstract: true,
template: "<div ui-view autoscroll='true' autosc... | {
"content_hash": "ac4f795490dbb2d2e26ee6c29d451f60",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 79,
"avg_line_length": 27,
"alnum_prop": 0.5311111111111111,
"repo_name": "poyal/angular-material-boilerplate",
"id": "d386c5cc9dd4e9b86a19c2e9cf3b4a0807741fbf",
"size": "1... |
require 'rails_helper'
RSpec.describe "teacher_classes/new", type: :view do
before(:each) do
assign(:teacher_class, TeacherClass.new(
:teacher => nil,
:classroom => nil
))
end
it "renders new teacher_class form" do
render
assert_select "form[action=?][method=?]", teacher_classes_pat... | {
"content_hash": "b491792969473be2c8790095aa1a60be",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 93,
"avg_line_length": 25.571428571428573,
"alnum_prop": 0.6610800744878957,
"repo_name": "GxDesign/codercapsule-blogs",
"id": "d500f6511e35c6014432fce21a9b2d83caef56e7",
"... |
TODO: This document was manually maintained so might be incomplete. The
automation effort is tracked in
https://github.com/kubernetes/client-go/issues/234.
# HEAD (changes that will go into v5)
** Breaking changes**
pkg/api and pkg/apis are moved to
[k8s.io/api](https://github.com/kubernetes/api). Other kubernetes r... | {
"content_hash": "c86fba3ee445ade0bf6d949df56667a4",
"timestamp": "",
"source": "github",
"line_count": 135,
"max_line_length": 331,
"avg_line_length": 45.28148148148148,
"alnum_prop": 0.772124979551775,
"repo_name": "pwittrock/apiserver-builder",
"id": "efe1df37ab9b88500ebca2d24111eb10eeeec508",
"... |
<?xml version="1.0"?>
<config>
<modules>
<Cotya_CartAdmin>
<active>true</active>
<codePool>local</codePool>
</Cotya_CartAdmin>
</modules>
</config> | {
"content_hash": "3e2da6adb683224223563db785e82e7f",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 29,
"avg_line_length": 18.333333333333332,
"alnum_prop": 0.6242424242424243,
"repo_name": "Cotya/Shopping-Cart-Visualizer-PRO",
"id": "3873daa19e671ed75ac9f6647152f21fec06768c... |
module Raindrops
( convert
) where
convert :: Int -> String
convert n
| null drops = show n
| otherwise = drops
where
divisibleBy d = n `rem` d == 0
drops = concat
[ if divisibleBy 3 then "Pling" else ""
, if divisibleBy 5 then "Plang" else ""
, if divisi... | {
"content_hash": "94d6cc9c17fce0855525822c15744d97",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 51,
"avg_line_length": 24.2,
"alnum_prop": 0.5344352617079889,
"repo_name": "tfausak/exercism-solutions",
"id": "c06c92948aa3c5f2d4fc902323647fcfbb36b7ca",
"size": "363",
... |
W celu sprawdzenia, czy dana właściwość została zdefiniowana *w tym* obiekcie, a **nie**
w [łańcuchu prototypów](#object.prototype), niezbędne jest skorzystanie z metody
`hasOwnProperty`, której wszystkie obiekty dziedziczą z `Object.prototype`.
> **Uwaga:** **Nie** wystarczy sprawdzić, czy właściwość jest `undefine... | {
"content_hash": "fe47278cc1843b9549699ba16a2a9664",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 89,
"avg_line_length": 38.96078431372549,
"alnum_prop": 0.7252138902868647,
"repo_name": "rdnz/JavaScript-Garden",
"id": "d9366447127c9d9772bae961ea84d46f63eb58a4",
"size":... |
using namespace arangodb;
using namespace arangodb::basics;
using namespace arangodb::rest;
RestEndpointHandler::RestEndpointHandler(GeneralRequest* request,
GeneralResponse* response)
: RestVocbaseBaseHandler(request, response) {}
RestStatus RestEndpointHandler::execute()... | {
"content_hash": "96970090437e20e4a525c3abe19c99a9",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 80,
"avg_line_length": 25.42105263157895,
"alnum_prop": 0.6652864044168392,
"repo_name": "hkernbach/arangodb",
"id": "5da782e70720192f0a1d10a8063cf031049358dd",
"size": "25... |
/**
* Created by Lenovo on 2016/10/25.
*/
var client = require("./Association.js");
var supplier = require("./ObjectClass.js");
function ClassWithAssociation(client, supplier) {
this.client = client;
this.supplier = supplier;
}
module.exports = ClassWithAssociation; | {
"content_hash": "adc11ae8bd4b0eb173eb4198c6d14842",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 49,
"avg_line_length": 20.928571428571427,
"alnum_prop": 0.6689419795221843,
"repo_name": "ritaxuan/Pruning-and-Refactoring-Tool",
"id": "ee4f7e117f964665ebc936dfebae5c9ac1c3... |
#import <MessageUI/MFMailComposeViewController.h>
#import <MessageUI/MFMessageComposeViewController.h>
| {
"content_hash": "9d4231ef7e155414c18e4cf3afee347f",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 52,
"avg_line_length": 21.2,
"alnum_prop": 0.839622641509434,
"repo_name": "rweichler/cylinder",
"id": "47a79f4d0b4cef39ed0ca8ce4b244873a3b368cb",
"size": "205",
"binary":... |
from st2common import log as logging
from st2common.constants.keyvalue import SYSTEM_SCOPE, FULL_SYSTEM_SCOPE
from st2common.constants.keyvalue import USER_SCOPE, FULL_USER_SCOPE
from st2common.constants.keyvalue import ALLOWED_SCOPES
from st2common.constants.keyvalue import DATASTORE_KEY_SEPARATOR
from st2common.exce... | {
"content_hash": "c6dbac8c1e528b04fbd76e45042dd770",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 96,
"avg_line_length": 32.747191011235955,
"alnum_prop": 0.6170869788986104,
"repo_name": "lakshmi-kannan/st2",
"id": "be443eda56812339a80ff15a2d26de7c004e79ba",
"size": "... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
Uses of Class org.apache.poi.hmef.attribute.TNEFAttribute (POI API Documentation)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="... | {
"content_hash": "8d8d4d0150293a70b68d6d156bf11a1e",
"timestamp": "",
"source": "github",
"line_count": 330,
"max_line_length": 359,
"avg_line_length": 57.04545454545455,
"alnum_prop": 0.650730411686587,
"repo_name": "crammeur/MyInvoices",
"id": "e280ddd5bf16f98878ad4e156386a796c7695015",
"size": "... |
package utils;
/**
* Comparator to sort list of buckets: default - in descending order: from bigger to smaller
* Used to get the fullest bucket
* @author marina
*
*/
public class BucketsCountsComparator implements java.util.Comparator<Bucket> {
private boolean asc = false;
public BucketsCountsComparator()
{... | {
"content_hash": "042291e1066bee4be4085aeb4dea2b3c",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 93,
"avg_line_length": 23.357142857142858,
"alnum_prop": 0.7262996941896025,
"repo_name": "mgbarsky/emcore",
"id": "1d2c70e4191df274924e1bcbc4f794c0a0a3e3ae",
"size": "654"... |
require 'rails_helper'
feature 'Person browsing' do
include PermittedDomainHelper
before do
omni_auth_log_in_as 'test.user@digital.justice.gov.uk'
end
scenario 'Using breadcrumbs on a profile page' do
group_a = create_group_hierarchy('Ministry of Justice', 'Apple', 'Biwa')
group_b = create_group_... | {
"content_hash": "5d180aa17e5f69c13b2313a21769fed2",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 96,
"avg_line_length": 33.283018867924525,
"alnum_prop": 0.6660997732426304,
"repo_name": "MjAbuz/peoplefinder",
"id": "20bcc9dec86dd66db31e02098085a2f377bf3794",
"size": "... |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Copyright 2017 Red Hat, Inc. and/or its affiliates. ~ ~ Licensed under
the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
... | {
"content_hash": "43cd2081ed690231ecfad784a39bd7ec",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 116,
"avg_line_length": 45.795081967213115,
"alnum_prop": 0.49346697691068553,
"repo_name": "nelsongraca/wildfly-swarm",
"id": "587279f4abd346192ca79f4d1f3fd09c0a725a16",
... |
// Copyright 2019 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | {
"content_hash": "66e731a4a6d7bfdbcf89eb4fdd489cb6",
"timestamp": "",
"source": "github",
"line_count": 191,
"max_line_length": 99,
"avg_line_length": 39.17277486910995,
"alnum_prop": 0.7288158246458166,
"repo_name": "ulfjack/bazel",
"id": "b5d916c70010c0b3f07a61ec8b88a88dbad9a78e",
"size": "7482",... |
const one64 = convert(UInt64, 1)
const FINAL = one64
const ITER = one64 << 1
const PARAMETERS = one64 << 2
const GRADIENT = one64 << 3
const SEARCHDIR = one64 << 4
const ALPHA = one64 << 5
const BETA = one64 << 6
const ALPHAGUESS = one64 << 7
const BRACKET = one64 << 8
const LINESEA... | {
"content_hash": "33c1cf8b249ccc97729e4c0ae4501a29",
"timestamp": "",
"source": "github",
"line_count": 604,
"max_line_length": 158,
"avg_line_length": 36.824503311258276,
"alnum_prop": 0.5,
"repo_name": "pkofod/Optim.jl",
"id": "6110ae0e7f93c67dce525b4506bf2c60a0fd9b5e",
"size": "22425",
"binary... |
"""This module provides functions to generate an ec2stack configuration file.
"""
import os
import argparse
from ConfigParser import SafeConfigParser
def main():
"""
Entry point into the configuration application.
"""
config_folder = _create_config_folder()
_create_config_file(config_folder)
... | {
"content_hash": "33cf11aa9e8b52b39ba0fb17a1153cde",
"timestamp": "",
"source": "github",
"line_count": 279,
"max_line_length": 108,
"avg_line_length": 28.99283154121864,
"alnum_prop": 0.6515020398071455,
"repo_name": "terbolous/cloudstack-ec2stack",
"id": "0c7f9d40a9320ef5b8203ca999ab7afcef3942c3",
... |
<?php
/**
* Created by PhpStorm.
* User: gerwood
* Date: 16/02/14
* Time: 6:46 PM
*/
namespace Proxmox;
use PHPUnit_Framework_TestCase;
class CallManagerTest extends PHPUnit_Framework_TestCase {
//These values need to be provided before tests can run
//successfully.
private $host = "10.1.1.2";
p... | {
"content_hash": "d04d05ca200452afde2ee3cbf7cd4eac",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 126,
"avg_line_length": 32.128571428571426,
"alnum_prop": 0.6033792796798577,
"repo_name": "dogma/pve-lib",
"id": "c937695e6369feb530a2e61fc199d65f3c55a7ee",
"size": "2249"... |
(function() {
var inputEx = YAHOO.inputEx,Event=YAHOO.util.Event,lang=YAHOO.lang;
/**
* @class Create a password field.
* @extends inputEx.StringField
* @constructor
* @param {Object} options inputEx.Field options object
* <ul>
* <li>confirmPasswordField: the PasswordField instance to compare to when usi... | {
"content_hash": "71048b1e7e710a0762faf54c1c59900e",
"timestamp": "",
"source": "github",
"line_count": 253,
"max_line_length": 172,
"avg_line_length": 33.43873517786561,
"alnum_prop": 0.658628841607565,
"repo_name": "festradasolano/mashment",
"id": "2fec5be18c08b754fd8b0cb150c47102e8e363c5",
"size... |
/**
* Name: libpackageinfo
* Type: iOS library
* Desc: iOS library for retrieving information regarding installed packages.
*
* Author: Lance Fetters (aka. ashikase)
* License: LGPL v3 (See LICENSE file for details)
*/
#import <Foundation/Foundation.h>
@interface PIPackage : NSObject {
@package NSMutableDi... | {
"content_hash": "7802b30a1456871826ce95b42031b4d8",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 77,
"avg_line_length": 36.8125,
"alnum_prop": 0.7724957555178268,
"repo_name": "lechium/yourTubeiOS",
"id": "53e22c0b8f4bb7bb1ead1cc7530da7de5ae7a48a",
"size": "1178",
"b... |
Titanium.UI.setBackgroundColor('#000');
var currwin = Titanium.UI.currentWindow;
currwin.backgroundImage = 'images/bgGradient.png';
var textColor ='#FFF';
var rowHeight = 40;
var win = Titanium.UI.createScrollView({
top:0,
showVerticalScrollIndicator:true,
showHorizontalScrollIndicator:false,
scrollType: 'vertical... | {
"content_hash": "ceed12001142a638c6da6ebef5d31702",
"timestamp": "",
"source": "github",
"line_count": 298,
"max_line_length": 170,
"avg_line_length": 28.476510067114095,
"alnum_prop": 0.6563752062220127,
"repo_name": "sweco-sesvic/GroundwaterAndroid",
"id": "048d5d477a00b023648df809af2c96bdcd6e27e9... |
<div class="mapcache container-fluid">
<div class="container">
<div class="row top-gap bottom-gap-s">
<div class="col-md-12">
<div class="mapcache-header-description">Use mapcache to save maps for offline use.</div>
</div>
</div>
<div class="row bottom-gap text-center">
<a class=... | {
"content_hash": "93ad0c2e7fb488a91fcd95e8c79db678",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 143,
"avg_line_length": 43.44736842105263,
"alnum_prop": 0.5245305875227135,
"repo_name": "stevendlander/mapcache-server",
"id": "1e922b725846ccd5e31d9af0c39cfa494633804d",
... |
class FileUploader < CarrierWave::Uploader::Base
# Include RMagick or MiniMagick support:
# include CarrierWave::RMagick
# include CarrierWave::MiniMagick
# Choose what kind of storage to use for this uploader:
storage :file
# storage :fog
# Override the directory where uploaded files will be stored.
... | {
"content_hash": "19e7e4cb8df6774c33cce6adf378494e",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 112,
"avg_line_length": 30.3265306122449,
"alnum_prop": 0.6924629878869448,
"repo_name": "actsasflinn/one-to-one",
"id": "2bc56c295479854193b52c089060247ab775ad76",
"size":... |
#include "third_party/blink/public/web/web_array_buffer.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer.h"
namespace blink {
WebArrayBuffer WebArrayBuffer::Create(unsigned num_elements,
unsigned element_byte_size) {
return WebArrayBuffer(
DOM... | {
"content_hash": "b21626a679f5030b752ef569662f21f4",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 76,
"avg_line_length": 23,
"alnum_prop": 0.6984877126654064,
"repo_name": "endlessm/chromium-browser",
"id": "4a9b988ff2d20729976d435d9c032a264e3d2e21",
"size": "2620",
"... |
/**
* Module Dependencies
*/
var mysql = require('mysql');
var _ = require('lodash');
var utils = require('./utils');
var hop = utils.object.hasOwnProperty;
var sql = module.exports = {
// Convert mysql format to standard javascript object
normalizeSchema: function (schema) {
return _.reduce(schema, functi... | {
"content_hash": "c7b37667528302e9937b85cff437a1e9",
"timestamp": "",
"source": "github",
"line_count": 462,
"max_line_length": 153,
"avg_line_length": 29.59090909090909,
"alnum_prop": 0.5974690951649477,
"repo_name": "VoidVolker/linode-manager",
"id": "ce77ca787f03b50a566487aa6a8b566cce38209a",
"s... |
/**
* This file exists only to show the usage of imports
*/
define('each', ['isDefined'], function (isDefined) {
return function () {
if (isDefined()) {
return 'each';
}
};
}); | {
"content_hash": "1308b2e2138f3318cab2ec8b078035ff",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 53,
"avg_line_length": 21.4,
"alnum_prop": 0.5233644859813084,
"repo_name": "obogo/grunt-treeshake",
"id": "8b4b08f0f69bfed542d826f8aa22228f477c59f0",
"size": "214",
"bin... |
package main
import (
"net"
"regexp"
"strings"
"sync"
"time"
"github.com/huin/goupnp"
"github.com/jonaz/mdns"
"github.com/ninjasphere/go-castv2"
"github.com/ninjasphere/go-ninja/api"
"github.com/ninjasphere/go-ninja/logger"
"github.com/ninjasphere/go-ninja/support"
)
var info = ninja.LoadModuleInfo("./pac... | {
"content_hash": "4114629d0b6164331361bc8e698fda47",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 90,
"avg_line_length": 19.460122699386503,
"alnum_prop": 0.6462799495586381,
"repo_name": "ninjasphere/driver-go-chromecast",
"id": "e086e79046c34e3733cb99498172e195dda8a608... |
import json
import sys
def write_gender_cont_person():
try:
f_json = open('data_extracted/person_lookup.json','r',encoding="utf8")
except IOError:
print('Need to create person_lookup.json first. (Execute write_personlist_by_type.py)')
# Load person lookup created by write_personlist_by_type.py (Maps: *page of ... | {
"content_hash": "74d4694559a668dd01cae7ef1d8d3846",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 112,
"avg_line_length": 30.261904761904763,
"alnum_prop": 0.7025963808025177,
"repo_name": "kandy-koblenz/people-networks",
"id": "fe8ceb1dc831455893c4e8ccebee6734d467c0f7",
... |
require 'spec_helper'
describe NetSuite::Records::JournalEntryLineList do
let(:list) { NetSuite::Records::JournalEntryLineList.new }
it 'has a custom_fields attribute' do
list.lines.should be_kind_of(Array)
end
describe '#to_record' do
before do
list.lines << NetSuite::Records::JournalEntryLine... | {
"content_hash": "cc2fa9cb1f7338218be804508e038f71",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 86,
"avg_line_length": 23.26923076923077,
"alnum_prop": 0.6148760330578512,
"repo_name": "stripe/netsuite",
"id": "e7ca4e8938eed3192f58db38e84f2d445a19445a",
"size": "605",... |
<?php
// Make sure we are called from index.php
if (!defined('SECURITY'))
die('Hacking attempt');
// This probably (?) never fails
$user->logoutUser();
$smarty->assign("CONTENT", "default.tpl");
?>
| {
"content_hash": "fb58f4edb6d9b9b13f554b9ca6010a74",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 42,
"avg_line_length": 20.4,
"alnum_prop": 0.6519607843137255,
"repo_name": "sasselin/xcoin-mpos",
"id": "30425851ed3f832409f13e777568820903f3608f",
"size": "204",
"binar... |
@interface JMJAnimationCatalogController : UIViewController <UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
@property (weak, nonatomic) IBOutlet UISegmentedControl *animationModeSelector;
@property(nonatomic, weak) IBOutlet UICollectionView *collectionView;
@end
| {
"content_hash": "d45198e44ad3b88a29c36d21a0ba8b5b",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 124,
"avg_line_length": 47,
"alnum_prop": 0.8652482269503546,
"repo_name": "jjjacksn/JMJParametricAnimation",
"id": "d2aef21304cfddee565ed77db8eec468a30e617e",
"size": "307"... |
package net.liftmodules.mongoauth
package model
import field._
import java.util.{Locale, UUID}
import org.joda.time.DateTime
import net.liftweb._
import common._
import http.{Req, S}
import http.provider.HTTPCookie
import mongodb.record._
import mongodb.record.field._
import util.LoanWrapper
import util.Helpers.try... | {
"content_hash": "989ae175a9715849c62156e3205d8cad",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 176,
"avg_line_length": 31.71171171171171,
"alnum_prop": 0.6911931818181818,
"repo_name": "eltimn/lift-mongoauth",
"id": "b95eeebb59b8c2e9d1fd65963be00b33f696bb52",
"size"... |
/*jslint nomen:true, browser:true*/
/*global DATA, YUI*/
// classes
import ModelPhotos from 'models/photos';
import ModelPhoto from 'models/photo';
import ViewHome from 'views/home';
import ViewPhotos from 'views/photos';
import {Models, Views} from 'pn';
Models.register('photos', ModelPhotos);
Models.register('p... | {
"content_hash": "81a8cdf0d182a5479319bc1bbee1602d",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 71,
"avg_line_length": 19.52777777777778,
"alnum_prop": 0.5945945945945946,
"repo_name": "caridy/feecbr-app",
"id": "40cccca2535b2135559ce61ce6a232cd94eb5555",
"size": "157... |
<?php declare(strict_types=1);
require_once __DIR__.'/../vendor/autoload.php';
use JsonApiPhp\JsonApi\Attribute;
use JsonApiPhp\JsonApi\DataDocument;
use JsonApiPhp\JsonApi\Link\RelatedLink;
use JsonApiPhp\JsonApi\Link\SelfLink;
use JsonApiPhp\JsonApi\ResourceIdentifier;
use JsonApiPhp\JsonApi\ResourceObject;
use Json... | {
"content_hash": "a92ea988bae6e1b31364d85d6f15c072",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 65,
"avg_line_length": 30.11111111111111,
"alnum_prop": 0.6260762607626076,
"repo_name": "f3ath/json-api",
"id": "a74263ab1303e50207cbaa32a3f6e33bdce93f9e",
"size": "813",
... |
import RPi.GPIO as GPIO
import time
class Alexa(object):
def __init__(self, port):
self.port = port
GPIO.setmode(GPIO.BCM)
GPIO.setup(self.port, GPIO.OUT)
GPIO.output(self.port, GPIO.HIGH)
self.on_state = GPIO.HIGH
self.off_state = not self.on_state
def set_on(se... | {
"content_hash": "bc8c25e799a2bf83024322ec8c75f554",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 54,
"avg_line_length": 23.228571428571428,
"alnum_prop": 0.5547355473554736,
"repo_name": "eddieruano/SentinelGreen",
"id": "0ce8a84e463d0368cfe7e26e891a3ffde0665953",
"siz... |
<!DOCTYPE html>
<head>
<base href="http://www.dailynebraskan.com/content/tncms/live/" />
<meta name="googlebot" content="noarchive" />
<meta name="description" content="First 100 words here." />
<meta name="keywords" content="project, title, something" />
<meta name="news_keywords" content="project, test, something" />... | {
"content_hash": "b94ed8b7331bb048a6584070c89eea6d",
"timestamp": "",
"source": "github",
"line_count": 1358,
"max_line_length": 412,
"avg_line_length": 44.15905743740795,
"alnum_prop": 0.587229855923159,
"repo_name": "JOUR491-NewsApplications/JOUR491-FoodOnCampus",
"id": "94cd2e7c712a4083616d131134d... |
<?php
/**
* Created by PhpStorm.
* User: kodiers
* Date: 05/02/16
* Time: 02:42
*/
namespace backend\assets;
use yii\web\AssetBundle;
class FontAwesomeAsset extends AssetBundle
{
// sourcePath points to the composer package
public $sourcePath = '@vendor/fortawesome/font-awesome';
// CSS file to be l... | {
"content_hash": "b190b3fe2645af9917fbabe7dc4b4052",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 76,
"avg_line_length": 25.196969696969695,
"alnum_prop": 0.5700541190619363,
"repo_name": "kodiers/yii2build",
"id": "5302dd1e251d764267a459324f883d65ccd1f3ff",
"size": "16... |
<?xml version="1.0"?>
<!--
Copyright 2008-2017 Qualogy Solutions B.V.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... | {
"content_hash": "e2f6d246f2f4f7fbae18c44176ce319b",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 195,
"avg_line_length": 43.31818181818182,
"alnum_prop": 0.7366211962224554,
"repo_name": "qafedev/qafe-platform",
"id": "8ec3958431405757d8d00b12d5e7e228795e0103",
"size":... |
<?xml version='1.0' encoding='utf-8'?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="PrL-0483">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Private Letter: 1882 February 8: to Balfour</title>
<author>
<name type="person" key="http://wtap.vuw.ac.nz/eats/entity/96... | {
"content_hash": "f25e019c8eafd986605090be535c783b",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 699,
"avg_line_length": 83.98113207547169,
"alnum_prop": 0.619411368231858,
"repo_name": "Harmannz/Colenso-Project",
"id": "afe589c4a0d8cd21e8cf272f9c79ac1d830acac9",
"size... |
<!DOCTYPE html>
<title>Service Worker: Fetch for the frame loading.</title>
<meta name=timeout content=long>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="resources/test-helpers.sub.js"></script... | {
"content_hash": "9503fa3c450eef1088866aec301a1d9e",
"timestamp": "",
"source": "github",
"line_count": 236,
"max_line_length": 78,
"avg_line_length": 34.74576271186441,
"alnum_prop": 0.572560975609756,
"repo_name": "nwjs/chromium.src",
"id": "a33309f34f9872da537921a11dfc961ac142b0f8",
"size": "820... |
from unittest import TestCase, SkipTest
try:
from unittest.mock import Mock
except:
from mock import Mock
import uuid
from holoviews import Tiles
try:
import plotly.graph_objs as go
except:
go = None
from holoviews.streams import (
BoundsXY, BoundsX, BoundsY, RangeXY, RangeX, RangeY, Selection1D
... | {
"content_hash": "6e3ae9dff5281975d3dea9544d563c11",
"timestamp": "",
"source": "github",
"line_count": 648,
"max_line_length": 87,
"avg_line_length": 37.08179012345679,
"alnum_prop": 0.5467143867826376,
"repo_name": "ioam/holoviews",
"id": "df614f4e8ee55d07f375864a218628c41ce721f5",
"size": "24029... |
SYNONYM
#### According to
World Register of Marine Species
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "f66ee944caf6f0e9805b4789e105cb3e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 32,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.6984126984126984,
"repo_name": "mdoering/backbone",
"id": "d4ccb0dc024c11ee897fb977c395533909464eda",
"size": "206... |
module RSpec::Puppet
module DefineExampleGroup
include RSpec::Puppet::ManifestMatchers
include RSpec::Puppet::Support
def subject
@catalogue ||= catalogue
end
def catalogue
define_name = self.class.top_level_description.downcase
vardir = Dir.mktmpdir
Puppet[:vardir] = va... | {
"content_hash": "ba57d1c4ad24a158f32d90750a668d55",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 119,
"avg_line_length": 38.27272727272727,
"alnum_prop": 0.611243072050673,
"repo_name": "mattthias/rspec-puppet",
"id": "901be1d737db7637ff6a815c57c9ba6a22729853",
"size":... |
<!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 (version 1.7.0_45) on Mon Sep 15 14:29:05 SGT 2014 -->
<title>ScaleInAnimation</title>
<meta name="date" content="2014-09-15">
<link rel="stylesheet" ... | {
"content_hash": "58b39536633aeef829733168ad68e654",
"timestamp": "",
"source": "github",
"line_count": 415,
"max_line_length": 737,
"avg_line_length": 46.65301204819277,
"alnum_prop": 0.6886524456381385,
"repo_name": "howtoplay/EasyAndroidAnimations",
"id": "18c4df6ff76fec36db07c88a70c0be82ece6abe8"... |
/* @flow */
import React from 'react';
import { shallow } from 'enzyme';
import Dialog from '../Dialog';
import DialogBody from '../DialogBody';
import examples from '../../../website/app/demos/Dialog/DialogBody/examples';
import testDemoExamples from '../../../../utils/testDemoExamples';
function shallowDialog(props ... | {
"content_hash": "fc52b565f32c5cee9945e5a5dbc9528c",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 77,
"avg_line_length": 22.75862068965517,
"alnum_prop": 0.6333333333333333,
"repo_name": "mineral-ui/mineral-ui",
"id": "43919650aae5bce0140266da252db7178af79f11",
"size": ... |
/**
* Created by daarond on 8/20/2015.
*/
'use strict';
goog.provide('Blockly.Blocks.Queue');
goog.require('Blockly.Blocks');
/**
* adds data to the queue
* @link https://blockly-demo.appspot.com/static/demos/blockfactory/index.html#tusqdy
* @type {{init: Function}}
*/
Blockly.Blocks['queue_add'] = {
init:... | {
"content_hash": "c5804d2fa913538ed61c40dafb412da5",
"timestamp": "",
"source": "github",
"line_count": 195,
"max_line_length": 94,
"avg_line_length": 31.72820512820513,
"alnum_prop": 0.6230806529820592,
"repo_name": "daarond/blockly",
"id": "fbb99938729b7c23f3cd1131ff2f8199ec3bf0f9",
"size": "6187... |
echo "BEGIN Set VM timezone and perform some cleanup pre-install ..."
# set server timezone
echo $1 | ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime
# a little housekeeping
echo "... Doing a little housekeeping ..."
yum update &>> /vagrant/log/install.txt
echo "... END Set VM timezone and perform some cleanup ... | {
"content_hash": "1ab06493507de79e349abc63e30873fb",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 69,
"avg_line_length": 31.09090909090909,
"alnum_prop": 0.7222222222222222,
"repo_name": "Ortus-Solutions/vagrant-ubuntu-lucee",
"id": "7b67f4ccb49b0925d0526ad1dc5d78e636c61c... |
id: deployment-api
title: Polybit Deployment API
permalink: deployment-api.html
prev: generator-api.html
next: glossary.html
---
```
poly:create [project]
Creates a new, empty project
poly:db:assign [database] [project]
Assigns a database to a project
poly:db:create [name]
Creates a new database
poly:db:drop [db... | {
"content_hash": "ca836e8bef60d0b0d292322056530980",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 69,
"avg_line_length": 22.403846153846153,
"alnum_prop": 0.7278969957081545,
"repo_name": "nsipplswezey/nodal",
"id": "29db000912adb7e8fecf2df756a82aedb5db4f78",
"size": "1... |
package com.cloudycrew.cloudycar.scheduling;
import rx.Scheduler;
import rx.schedulers.Schedulers;
/**
* Created by George on 2016-11-08.
*/
public class TestSchedulerProvider implements ISchedulerProvider {
@Override
public Scheduler mainThreadScheduler() {
return Schedulers.immediate();
}
... | {
"content_hash": "77fa13348390e2593c8afd15bda62e21",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 66,
"avg_line_length": 20.88,
"alnum_prop": 0.6954022988505747,
"repo_name": "CMPUT301F16T12/CloudyCar",
"id": "23afdbba913811ded9c29bcfd679cd54830d616a",
"size": "522",
... |
package brooklyn.entity.nosql.mongodb.sharding;
import brooklyn.entity.nosql.mongodb.AbstractMongoDBSshDriver;
import brooklyn.entity.nosql.mongodb.MongoDBDriver;
import brooklyn.location.basic.SshMachineLocation;
public class MongoDBConfigServerSshDriver extends AbstractMongoDBSshDriver implements MongoDBDriver {
... | {
"content_hash": "521abab93daa2a370c19408b9adcd68f",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 101,
"avg_line_length": 30.96153846153846,
"alnum_prop": 0.7279503105590062,
"repo_name": "neykov/incubator-brooklyn",
"id": "83c81bfe235b033c9108c10c06bfd138c074a5e6",
"si... |
package org.shaolin.javacc.context;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.Iterator;
import org.shaolin.bmdp.exceptions.I18NRuntimeException;
import org.shaolin.bmdp.i18n.ExceptionCon... | {
"content_hash": "f88639b277468708ca604d16887ba592",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 72,
"avg_line_length": 26.930232558139537,
"alnum_prop": 0.6931491076568796,
"repo_name": "shaolinwu/uimaster",
"id": "2f098958529fd14d2f6ba7c385748b6038dede4f",
"size": "... |
classdef DrakeFunctionConstraint < Constraint
properties (SetAccess = private)
fcn
end
methods
function obj = DrakeFunctionConstraint(lb,ub,fcn)
sizecheck(lb,[fcn.getOutputFrame().dim,1]);
sizecheck(ub,[fcn.getOutputFrame().dim,1]);
obj = obj@Constraint(lb,ub,fcn.getInputFrame().dim,1);
... | {
"content_hash": "960d15e10747369f73896f57e16acb08",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 113,
"avg_line_length": 35.951219512195124,
"alnum_prop": 0.6424694708276798,
"repo_name": "tkoolen/drake",
"id": "0fc963ee4926e868cfddb2662c2eca4a4db27026",
"size": "1474"... |
using UnityEngine;
using System;
using System.Collections;
/// <summary>
/// Event animation. Generic class to add a actions to animation events. When was executed, the action will set to null
/// </summary>
public class EventAnimation : MonoBehaviour {
#region STATIC_ENUM_CONSTANTS
#endregion
#region FIELDS
pu... | {
"content_hash": "446f7c109c5b1e510460dbf06c0e4446",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 119,
"avg_line_length": 22.12,
"alnum_prop": 0.7468354430379747,
"repo_name": "chrislugram/HuntRebels",
"id": "be2716f8a55be6c252c4b50f37188ad3f3a3bce2",
"size": "555",
"... |
<?php
declare(strict_types=1);
namespace Ray\Aop\Demo;
use Ray\Aop\AbstractMatcher;
use ReflectionClass;
use ReflectionMethod;
use function strpos;
final class IsContainsMatcher extends AbstractMatcher
{
/**
* {@inheritdoc}
*/
public function matchesClass(ReflectionClass $class, array $arguments)... | {
"content_hash": "2af8e5c34d8b4b49a6d65323aa766db9",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 83,
"avg_line_length": 19.470588235294116,
"alnum_prop": 0.6374622356495468,
"repo_name": "ray-di/Ray.Aop",
"id": "03cce384dbf3afc66021c5e60faa438500020ceb",
"size": "662",... |
<?php
/**
* Контроллер AdminCategoryController
* Управление категориями товаров в админпанели
*/
class AdminCategoryController extends AdminBase
{
/**
* Action для страницы "Управление категориями"
*/
public function actionIndex()
{
// Проверка доступа
self::checkAd... | {
"content_hash": "2f11dc8df0b8bcb73e9fc1e6c45df0ef",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 83,
"avg_line_length": 33.833333333333336,
"alnum_prop": 0.5335591133004927,
"repo_name": "naudmitry/phpshopbear",
"id": "48c900f984732b1d4bad86b7c55c0106a6255143",
"size":... |
namespace LearningSystem.Web
{
using AutoMapper;
using LearningSystem.Data;
using LearningSystem.Data.Models;
using LearningSystem.Web.Infrastructure.Extensions;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Identity;
using Microsoft.... | {
"content_hash": "f099e9215f26dacd03e5cc5c3ba12533",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 106,
"avg_line_length": 35.12871287128713,
"alnum_prop": 0.5631341600901917,
"repo_name": "andreykata/SoftUni",
"id": "197188f3b5db2e5a7d4a2f8ccc4bb0186fb1b253",
"size": "... |
<?php
namespace Gwyath\Bundle\AdventureBundle\Service;
use Doctrine\ORM\EntityManager;
use Gwyath\Bundle\AdventureBundle\Entity\Page;
use Gwyath\Bundle\AdventureBundle\Entity\PageType;
use Gwyath\Bundle\AdventureBundle\Service\Response\PageCreatorResponseCollection;
use Gwyath\Bundle\AdventureBundle\Exception\PageExc... | {
"content_hash": "97ff3ebbdcdf307520e38be39559b2dc",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 141,
"avg_line_length": 36.47328244274809,
"alnum_prop": 0.6163666806195061,
"repo_name": "quentinfayet/YouAreTheHero",
"id": "083af0bd89554d70305cbdc333445c137c158e90",
"... |
local function getSkillId(skillName)
if skillName == "club" then
return SKILL_CLUB
elseif skillName == "sword" then
return SKILL_SWORD
elseif skillName == "axe" then
return SKILL_AXE
elseif skillName:sub(1, 4) == "dist" then
return SKILL_DISTANCE
elseif skillName:sub(1, 6) == "shield" then
return SKILL_S... | {
"content_hash": "86d17884e4620f97074082b31d55f0d2",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 152,
"avg_line_length": 26.363636363636363,
"alnum_prop": 0.7,
"repo_name": "victorperin/tibia-server",
"id": "193cd06076e1e3f73f7c6403db899888b4edac2f",
"size": "1740",
... |
package org.kie.workbench.common.widgets.client.search.component;
import java.util.Optional;
import javax.annotation.PostConstruct;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;
import org.jboss.errai.ui.client.local.api.elemental2.IsElement;
import org.kie.workbench.common.widgets.client.... | {
"content_hash": "d6c23738a9ea50bf3136d453341096fd",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 119,
"avg_line_length": 27.0752688172043,
"alnum_prop": 0.6961874503574266,
"repo_name": "romartin/kie-wb-common",
"id": "24cb289e051f314f5062e276a41aa4276a72de63",
"size":... |
"""
usage:
python nbmerge.py A.ipynb B.ipynb C.ipynb > merged.ipynb
"""
import io
import os
import sys
from IPython.nbformat import current
def merge_notebooks(filenames):
merged = None
for fname in filenames:
with io.open(fname, 'r', encoding='utf-8') as f:
nb = current.read(f, 'json')
... | {
"content_hash": "f902f2144fe3fc5fd4f2c1add43137fc",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 69,
"avg_line_length": 22.923076923076923,
"alnum_prop": 0.6140939597315436,
"repo_name": "zaqwes8811/micro-apps",
"id": "ba01784e6208fa140ab72eda9efe7cd6fd654820",
"size":... |
package com.fedevela.springmvc.service;
/**
* Created by Federico on 30/04/14.
*/
import java.util.List;
import com.fedevela.springmvc.model.Strategy;
public interface StrategyService {
public void addStrategy(Strategy strategy);
public Strategy getStrategy(int id);
public void updateStrategy(Strategy... | {
"content_hash": "a1620fdbac96131bac4910bb2329dd2c",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 50,
"avg_line_length": 23.22222222222222,
"alnum_prop": 0.7488038277511961,
"repo_name": "fedevelatec/SpringMVC",
"id": "72c2b44a768bd342108131e92a3729948daa6775",
"size": ... |
package ma.wafa.cream.web.rest;
import com.codahale.metrics.annotation.Timed;
import ma.wafa.cream.domain.RefStatutCompagne;
import ma.wafa.cream.repository.RefStatutCompagneRepository;
import ma.wafa.cream.repository.search.RefStatutCompagneSearchRepository;
import ma.wafa.cream.web.rest.util.HeaderUtil;
import ma.wa... | {
"content_hash": "7007b3504e2840e8233ebc413fd335c3",
"timestamp": "",
"source": "github",
"line_count": 153,
"max_line_length": 183,
"avg_line_length": 46.248366013071895,
"alnum_prop": 0.7394007914075749,
"repo_name": "bzinoun/cream",
"id": "dd6690854940f4c98d994a81fd9ae6f1f865be43",
"size": "7076... |
package org.bouncycastle.asn1.isismtt.ocsp;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DEROctetString;
import org.bouncycastle.asn1.DERSequence;
import org... | {
"content_hash": "209b1bdcd52edbf698a464706c970676",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 85,
"avg_line_length": 30.330645161290324,
"alnum_prop": 0.649561286891784,
"repo_name": "sake/bouncycastle-java",
"id": "932d30087bea538cfd62ebd461412b2f1aef0728",
"size"... |
package com.peterphi.aws.snapshotd;
import java.io.File;
import java.io.FileInputStream;
import java.util.List;
import java.util.Properties;
import org.apache.log4j.PropertyConfigurator;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.ec2.AmazonEC2Client;
import com.amazonaws.services.ec... | {
"content_hash": "74b6911ca3ed0eeac10e4b6f921ba2bd",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 145,
"avg_line_length": 41.41129032258065,
"alnum_prop": 0.7945472249269717,
"repo_name": "petergeneric/ebs-snapshotd",
"id": "9468f1dfef71504131c1cb87aa7bde0e1e4b79c4",
"... |
package io.katharsis.jpa.query.querydsl;
import javax.persistence.EntityManager;
import io.katharsis.jpa.query.JpaQueryFactory;
import io.katharsis.jpa.query.SingleTableInheritanceQueryTestBase;
public class SingleTableInheritanceQuerydslTest extends SingleTableInheritanceQueryTestBase {
@Override
prote... | {
"content_hash": "273fe7c966ad1061521b6d46ae1fac8f",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 93,
"avg_line_length": 31,
"alnum_prop": 0.8248847926267281,
"repo_name": "iMDT/katharsis-framework-j6",
"id": "44473295952bbf5630829c2b4de6b3b02f33a621",
"size": "434",
... |
module Spree
class InventoryUnit < ActiveRecord::Base
belongs_to :variant, class_name: "Spree::Variant"
belongs_to :order, class_name: "Spree::Order"
belongs_to :shipment, class_name: "Spree::Shipment", touch: true
belongs_to :return_authorization, class_name: "Spree::ReturnAuthorization"
belongs_... | {
"content_hash": "7a544f276082811edd8d0a7c96c2cb53",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 93,
"avg_line_length": 31.818181818181817,
"alnum_prop": 0.6542857142857142,
"repo_name": "biagidp/spree",
"id": "50eae7a12ce2859252cb3226a9f55fe1c19d8839",
"size": "2450",... |
/*************************************************************************/
/* power_uwp.h */
/*************************************************************************/
/* This file is part of: */
/* ... | {
"content_hash": "8bc4f943e95344c20f3d8262b4c9b7c0",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 75,
"avg_line_length": 46.82142857142857,
"alnum_prop": 0.4832189168573608,
"repo_name": "groud/godot",
"id": "cc19904a6235788bba3cc1d756b527e5bee6e357",
"size": "2622",
... |
/*-------------------------------------------------------------------------
*
* Created: H5Gnode.c
* Jun 26 1997
* Robb Matzke <matzke@llnl.gov>
*
* Purpose: Functions for handling symbol table nodes. A
* symbol table node is a small collection of symbol
* table entries. A B-tree usually points to ... | {
"content_hash": "50e45baec601cade7fc02d300994f007",
"timestamp": "",
"source": "github",
"line_count": 1559,
"max_line_length": 129,
"avg_line_length": 34.63566388710712,
"alnum_prop": 0.5514195233068504,
"repo_name": "CapeDrew/DITK",
"id": "9e8dc776bbe16258aa7661fb17a2f23862d364ea",
"size": "5510... |
using System.Collections.Generic;
using System.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MongoDB.Driver;
namespace MongoDBTests
{
[TestClass]
public class Connections
{
private readonly string connection = ConfigurationManager.ConnectionStrings["mongolab"].Connection... | {
"content_hash": "6cef53496e8cf316909067e1eb3640a2",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 119,
"avg_line_length": 35.17567567567568,
"alnum_prop": 0.6035343834037649,
"repo_name": "jeffesp/MongoDBTests",
"id": "c9baf7d97bee7e4733888ffb91aeb2db028fbde3",
"size": ... |
{% extends 'index_tor.html' %}
{% load i18n %}
{% block body %}
<div id="ahmiaMainContent">
<div id="ahmiaSearchArea">
<h1>Ahmia</h1>
<h2>i2p network search</h2>
<form id="searchForm" class="autocomplete" action="/search/i2p/" method="get">
<input id="id_q" type="search" name="q" title=... | {
"content_hash": "373fa5565dda05d14af2a79b03296ac5",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 157,
"avg_line_length": 38.69444444444444,
"alnum_prop": 0.5936826992103375,
"repo_name": "ahmia/ahmia-site",
"id": "6bcbd01c2cd38072209e55598abd52f687aea3fc",
"size": "139... |
package net.florianschoppmann.java.reflect;
import javax.annotation.Nullable;
import javax.lang.model.type.ArrayType;
import javax.lang.model.type.TypeKind;
import javax.lang.model.type.TypeVisitor;
import java.util.Objects;
final class ArrayTypeImpl extends AnnotatedConstructImpl implements ReflectionTypeMirror, Arr... | {
"content_hash": "8286fd5295c347abdac7718c6c1df7c2",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 111,
"avg_line_length": 28.98181818181818,
"alnum_prop": 0.6869510664993727,
"repo_name": "fschopp/java-types",
"id": "db48529d3e6974fee82de0a0cf1a273470fc9a10",
"size": "1... |
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from utils import get_all_files
import codecs
import re
TAG_DELIMITER = ';'
def filter_tags(tags, regex):
tags = set(tags)
filtered_tags = []
for tag in tags:
if not regex.search(tag):
... | {
"content_hash": "836e857f474787cd782427efb1b066f6",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 105,
"avg_line_length": 33.515625,
"alnum_prop": 0.5603729603729604,
"repo_name": "osmanbaskaya/coarse-wsd",
"id": "5f0054ae9c7191a6cce95615c1463d905fa1c1cf",
"size": "2145... |
import sys
from oslo_config import cfg
from oslo_upgradecheck import common_checks
from oslo_upgradecheck import upgradecheck
from stevedore import driver as stevedore_driver
# Need to import to load config
from octavia.common import config # noqa: F401 pylint: disable=unused-import
from octavia.common import consta... | {
"content_hash": "f6aa150e5c04b18c2223554306e17061",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 79,
"avg_line_length": 43.68695652173913,
"alnum_prop": 0.5732484076433121,
"repo_name": "openstack/octavia",
"id": "f98d51dad4a7867933bee961d0ee4903572f95d8",
"size": "56... |
class ChangeEventsExceptionToText < ActiveRecord::Migration
def up
change_column :events, :exception, :text
end
def down
raise ActiveRecord::IrreversibleMigration
end
end
| {
"content_hash": "d59228e4f1112fe306230faec082b44d",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 59,
"avg_line_length": 20.88888888888889,
"alnum_prop": 0.7606382978723404,
"repo_name": "duke-libraries/ddr-batch",
"id": "b957eb983ca79de860e497e565279bd9815c95dc",
"size"... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suppressions PUBLIC "-//Puppy Crawl//DTD Suppressions 1.1//EN" "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
<suppress checks="RedundantThrows" files=".*\.java" />
<suppress checks="IllegalThrows" files=".*\.java" />
<suppress ... | {
"content_hash": "12ef427558c4a71d6b05065dfd878139",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 127,
"avg_line_length": 53.68181818181818,
"alnum_prop": 0.632514817950889,
"repo_name": "gwynlavin/jactors-junit",
"id": "55cb8c0838a92a091e7652382a10544e72d38ba3",
"size"... |
package com.zjk.fireflynews.module.news.presenter;
import com.zjk.fireflynews.module.base.presenter.BaseTabPresenter;
/**
* Created by FireFly on 2016/9/8.
*/
public interface NewsPresenter extends BaseTabPresenter {
}
| {
"content_hash": "1bac4bd4918d1cceee8b2e34ca66d18d",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 66,
"avg_line_length": 24.77777777777778,
"alnum_prop": 0.7892376681614349,
"repo_name": "ONARAINYDAY/FireFlyNews",
"id": "49d2eb1c574db3b2c5f90a4288caf208946c3f0a",
"size":... |
package com.google.javascript.jscomp;
import com.google.common.collect.ImmutableSet;
import java.io.Serializable;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* Group a set of related diagnostic types together, so that they can
* be toggled on and off as one ... | {
"content_hash": "a10556cd0425aa8919d0f619528066b7",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 77,
"avg_line_length": 24.818181818181817,
"alnum_prop": 0.6766566766566766,
"repo_name": "ralic/closure-compiler",
"id": "90b9214ef7da19794f189b0466a526a51605efb3",
"size... |
SpreeAlgoliaProducts
====================
Introduction goes here.
## Installation
1. Add this extension to your Gemfile with this line:
```ruby
gem 'spree_algolia_products', github: '[your-github-handle]/spree_algolia_products', branch: 'X-X-stable'
```
The `branch` option is important: it must match the ve... | {
"content_hash": "f1b4bd54927e385734540eb41c66e547",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 199,
"avg_line_length": 26.71698113207547,
"alnum_prop": 0.730225988700565,
"repo_name": "ThomasBush/spree_algolia_products",
"id": "c522e0ad8e7c9864efbb03cdf6fab3dc8e4a8940"... |
var count = 0;
var start = Date.now();
var freq = 500;
var NanoTimer = require('nanotimer');
var nanoTimer = new NanoTimer();
function countUp() {
count++;
console.log(count);
if (count >= 10000) {
nanoTimer.clearInterval();
const time = (Date.now() - start)/1000;
console.log('time: ' + time);
... | {
"content_hash": "5d1f9c2f68099565b4d6a98cb0a1adad",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 52,
"avg_line_length": 20.5,
"alnum_prop": 0.6178861788617886,
"repo_name": "moppymopperson/megserver",
"id": "50425a5b367e1e6092d179502c45e09c9cf9a91f",
"size": "492",
"... |
package iso20022
// Identification of a document as well as the document number.
type DocumentIdentification34 struct {
// Unique identifier of the document (message) assigned either by the account servicer or the account owner.
Identification *DocumentIdentification4Choice `xml:"Id"`
// Identification of the typ... | {
"content_hash": "1d145279414fdb68443ef07de8b57f17",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 109,
"avg_line_length": 34.57142857142857,
"alnum_prop": 0.8112947658402204,
"repo_name": "fgrid/iso20022",
"id": "b5707d46a16ce654b7570cc7433d570c745013e2",
"size": "726",... |
package com.android.datetimepicker.date;
import android.annotation.SuppressLint;
import android.content.Context;
import android.text.format.Time;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView.LayoutParams;
import android.widget.BaseAdapter;
import com.android.datetimepic... | {
"content_hash": "8eabd8451c4422b97da5ff2c255607e4",
"timestamp": "",
"source": "github",
"line_count": 222,
"max_line_length": 95,
"avg_line_length": 28.256756756756758,
"alnum_prop": 0.6049736967957915,
"repo_name": "appcube/StyleableDateTimePicker",
"id": "e48b205fa992359cb5084c814cb6766c3cd7d0fd"... |
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<!--
<parameters>
<parameter key="magyp_re... | {
"content_hash": "9e92feff7d27e8a469600d500e6325d7",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 126,
"avg_line_length": 44.31481481481482,
"alnum_prop": 0.6953614709569578,
"repo_name": "argob/cofra",
"id": "08976cbc19c8df8abaf69d8686542357d2120414",
"size": "2393",
... |
@implementation FileTool
+ (BOOL)checkDirectoryExist:(NSString *)directoryPath
{
NSError *error = nil;
id result = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:directoryPath error:&error];
if (result != nil && error == nil)
{
return YES;
}
else
{
retur... | {
"content_hash": "49d2af90496a6db2f94bc5ad74bf9321",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 102,
"avg_line_length": 17.894736842105264,
"alnum_prop": 0.6088235294117647,
"repo_name": "lyandy/AC4AJTool",
"id": "76001a2b1044bea9104cf48043e34efae23545e2",
"size": "48... |
<?php
namespace Nullix\Sasige;
use Leafo\ScssPhp\Compiler;
/**
* Hold information about the current theme context during generation
*/
class Theme
{
/**
* Cache filenames
* @var string
*/
private static $cacheFilenames;
/**
* Package data
* @var array
*/
private stat... | {
"content_hash": "478875c75550ed8055dc24a9b98d3895",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 119,
"avg_line_length": 30.68595041322314,
"alnum_prop": 0.5157554538109346,
"repo_name": "brainfoolong/sasige-docs",
"id": "4601c8674be6e88ed5c3a7c586c464990b86641e",
"si... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/bootstrap.min.css" rel="stylesheet">
<link href="<?p... | {
"content_hash": "3c4cf07d28d14f2ca2c7491e0112d066",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 177,
"avg_line_length": 36.30635838150289,
"alnum_prop": 0.5239611526826938,
"repo_name": "chrisbastian/tinza",
"id": "e0b92e4fd8adea71a9f7750b4c26e767b6ea28af",
"size": "... |
"""Checkpointing utilities."""
import os
import pickle
from absl import logging
import tensorflow as tf
class _PyWrapper(tf.train.experimental.PythonState):
"""Wraps a Python object for storage in an object-based checkpoint."""
def __init__(self, obj):
"""Specify an object to wrap.
Args:
obj: Th... | {
"content_hash": "95b5e1942b9e302d3045c8e904a41787",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 80,
"avg_line_length": 33.14685314685315,
"alnum_prop": 0.6822784810126582,
"repo_name": "deepmind/dm_c19_modelling",
"id": "036b3f3c08d8de9ebb435692f64e85d947c57f0b",
"si... |
<a href="{{url_for('relations.view', id=relation.id)}}"><i class="fa fa-money spacer"></i></a>
Paid
{% if relation['turnover_min'].value and relation['turnover_max'].value %}
{{relation['turnover_min'].value | format_eur}} - {{relation['turnover_max'].value | format_eur}}
{% else %}
ca. {{... | {
"content_hash": "2a7c136050ca29be64b2bdd5172a372e",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 103,
"avg_line_length": 58.888888888888886,
"alnum_prop": 0.6150943396226415,
"repo_name": "yaph/openinterests.eu",
"id": "6957d0b2ac8c38f0182d0566844634e0dcad7f73",
"size":... |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | {
"content_hash": "b85525b793b525e78f74a2603d1c834a",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 89,
"avg_line_length": 46.236363636363635,
"alnum_prop": 0.6920959496657492,
"repo_name": "Kenovix/san-miguel",
"id": "e97ede15c17742ff86f5b1c0308eaa166bd0e1ab",
"size": "2... |
Introduction to property-based testing (with LeanCheck)
=======================================================
This document introduces property-based testing. The reader only needs to be
familiar with Haskell. No previous knowledge of property-based testing is
assumed. This document focuses on LeanCheck, but skil... | {
"content_hash": "04402e3dbe22450137db43d0793bfba3",
"timestamp": "",
"source": "github",
"line_count": 338,
"max_line_length": 113,
"avg_line_length": 34.96449704142012,
"alnum_prop": 0.6754103909290912,
"repo_name": "rudymatela/llcheck",
"id": "a78e110e9629b3ba6f9ed826cbca2a23f6c7aa2b",
"size": "... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "0787a939af7deb5f5b91594bcb287d04",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "e38c365138d882fc3b44396218dde3625eecf529",
"size": "19... |
from mssqlrelayclient import MSSQLRelayClient
from smbrelayclient import SMBRelayClient
from ldaprelayclient import LDAPRelayClient
from httprelayclient import HTTPRelayClient
from imaprelayclient import IMAPRelayClient | {
"content_hash": "976cbaa16eb4a3a5cde2b5f41002f7fd",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 45,
"avg_line_length": 43.8,
"alnum_prop": 0.91324200913242,
"repo_name": "tholum/PiBunny",
"id": "b55d6edbf8736dc67821e59a403e0917e7ba7a32",
"size": "219",
"binary": fals... |
<div class="container">
<div class="row">
<div class="col-sm-3">
<div class="left-sidebar">
<h2>Administration</h2>
<div class="panel-group category-products" id="accordian"><!--category-productsr-->
<?php
if($_SESSION['niveau'] == 1) {
?>
<div class="panel p... | {
"content_hash": "59553d1782386faae2f1be530428ee83",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 289,
"avg_line_length": 31.205128205128204,
"alnum_prop": 0.5436866611887154,
"repo_name": "erwan-neel/easy_cooking",
"id": "69dacbe66a2785482a3a3a486f0491a5481eeead",
"si... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache Lic... | {
"content_hash": "2b5b3e5e21bc34a2e8b092c8a8c26b0b",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 116,
"avg_line_length": 43.84615384615385,
"alnum_prop": 0.6891812865497076,
"repo_name": "pkletsko/camel",
"id": "f78fd245a69083d97a0993519878849aaf8add59",
"size": "3420"... |
const SIGNUP = 'redux-example/signup/SIGNUP';
const SIGNUP_SUCCESS = 'redux-example/signup/SIGNUP_SUCCESS';
const SIGNUP_FAIL = 'redux-example/signup/SIGNUP_FAIL';
const initialState = {
signupDone: false,
errors: null,
};
export default function signupCreateReducer(state = initialState, action = {}) {
switch ... | {
"content_hash": "edddd8ae82ad31b1bb1896fb6b34a950",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 80,
"avg_line_length": 19.517241379310345,
"alnum_prop": 0.6015901060070671,
"repo_name": "coopdevs/katuma-web",
"id": "c158e41707165a77ce238c3fc5ddc56814ab6aaa",
"size": "... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.carbon.deployment</groupId>
<artifactId>carbon-deplo... | {
"content_hash": "eece3747154614d3676b67dcaf659e6f",
"timestamp": "",
"source": "github",
"line_count": 1512,
"max_line_length": 201,
"avg_line_length": 45.29695767195767,
"alnum_prop": 0.5430069062185169,
"repo_name": "manoj-kumara/carbon-deployment",
"id": "90a721ecd0b55fa61710e1da46c0b1fee18ce53b"... |
namespace blink {
class CSSOffsetRotateInterpolationType : public CSSInterpolationType {
public:
CSSOffsetRotateInterpolationType(PropertyHandle property)
: CSSInterpolationType(property) {
DCHECK(CssProperty().PropertyID() == CSSPropertyID::kOffsetRotate);
}
InterpolationValue MaybeConvertStandardPr... | {
"content_hash": "56ad51bef3ada60c117c5173217fcbe1",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 92,
"avg_line_length": 44.810810810810814,
"alnum_prop": 0.6598311218335344,
"repo_name": "ric2b/Vivaldi-browser",
"id": "779451dc9799a2e5fc36e31fae2e66b1cbe72d65",
"size":... |
package org.springframework.security.remoting.rmi;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.remoting.support.RemoteInvocation;
import org.springframework.remoting.support.RemoteInvocationFactory;
/**
* Called by a client-side instance of
* <code>org.springframework.remoting.r... | {
"content_hash": "b72422c0ecbed01222c0a195300e3427",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 108,
"avg_line_length": 32.6551724137931,
"alnum_prop": 0.7085533262935586,
"repo_name": "thomasdarimont/spring-security",
"id": "0830efc8090b0d188f60190fd7ea1721a6bc9911",
... |
require "rails_helper"
require "controller_spec_helper"
require "price_policies_controller_shared_examples"
RSpec.describe InstrumentPricePoliciesController do
render_views
before(:all) { create_users }
params_modifier = Class.new do
def before_create(params)
params.merge! charge_for: InstrumentPrice... | {
"content_hash": "f33ec5ca7c28378706b8c5dc0a3f1d40",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 81,
"avg_line_length": 26.473684210526315,
"alnum_prop": 0.7673956262425448,
"repo_name": "tablexi/nucore-open",
"id": "ceca5af72a104fd8f965a81c403365175ffd92a2",
"size": "... |
package com.andreytim.jafar.bm.sort;
import com.andreytim.jafar.algo.sort.Sort;
import com.andreytim.jafar.algo.sort.SortUtils;
import org.openjdk.jmh.annotations.*;
import java.util.List;
import java.util.concurrent.TimeUnit;
/**
* Created by shpolsky on 28.08.14.
*/
@SuppressWarnings("unused")
@State(Scope.Threa... | {
"content_hash": "758f99732541241d3298dac4e168a419",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 64,
"avg_line_length": 25.53846153846154,
"alnum_prop": 0.6927710843373494,
"repo_name": "andreytim/jafar",
"id": "26840eee88997fbf5d3dbc759b858d3a0775100b",
"size": "1328"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.