text stringlengths 2 1.04M | meta dict |
|---|---|
from urllib3 import HTTPConnectionPool, HTTPSConnectionPool
from urllib3.poolmanager import proxy_from_url
from urllib3.exceptions import (
MaxRetryError,
ProxyError,
ReadTimeoutError,
SSLError,
ProtocolError,
)
from urllib3.response import httplib
from urllib3.util.ssl_ import H... | {
"content_hash": "f0446a81f5cd2d794e793ee19865ecec",
"timestamp": "",
"source": "github",
"line_count": 792,
"max_line_length": 108,
"avg_line_length": 35.39646464646464,
"alnum_prop": 0.5239708924876935,
"repo_name": "luca3m/urllib3",
"id": "5af00e0bf5d3e3c89c7eab3d4f2531c1853b9922",
"size": "2815... |
/* As a special exception, if you link this library with files compiled with
GCC to produce an executable, this does not cause the resulting executable
to be covered by the GNU General Public License. This exception does not
however invalidate any other reasons why the executable file might be
covered by ... | {
"content_hash": "7f2482ac15012de9268b36050e48971f",
"timestamp": "",
"source": "github",
"line_count": 298,
"max_line_length": 79,
"avg_line_length": 22.33221476510067,
"alnum_prop": 0.6462809917355372,
"repo_name": "shaotuanchen/sunflower_exp",
"id": "f7010833df8f3d0ddf6e511bedd4e0af0219eef8",
"s... |
/*
* Localized default methods for the jQuery validation plugin.
* Locale: FI
*/
$.extend($.validator.methods, {
date: function(value, element) {
return this.optional(element) || /^\d{1,2}\.\d{1,2}\.\d{4}$/.test(value);
},
number: function(value, element) {
return this.optional(element) || /^-?(?:\d+... | {
"content_hash": "27484c6aacae163a2b18b1bf5e5dbd3d",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 75,
"avg_line_length": 29.666666666666668,
"alnum_prop": 0.5870786516853933,
"repo_name": "vuonghuynhthanhtu/administrator.lacasa.com",
"id": "f1b07faf1a5c3e83d92564b7d3e89c6... |
package com.shejiaomao.weibo.service.listener;
import com.shejiaomao.maobo.R;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.LinearLayo... | {
"content_hash": "9542d7db09305c6970a00c60fc1a328d",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 87,
"avg_line_length": 29.503311258278146,
"alnum_prop": 0.7241301907968575,
"repo_name": "0359xiaodong/YiBo",
"id": "3382c31ed4445418b519d84da30a4047fc0d8309",
"size": "4... |
package com.notonthehighstreet.ratel.internal.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
/**
* Honeybadger API class. Contains information about system memory.
*/
public class Memory {
private final BigDecimal total;
private final BigDecimal free;
@Json... | {
"content_hash": "995e78d80ddd51a87cc0928072b9a25e",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 102,
"avg_line_length": 24.488888888888887,
"alnum_prop": 0.6397459165154264,
"repo_name": "notonthehighstreet/ratel",
"id": "da7dfd66facc7d34120493634118efa4bafcc8f3",
"si... |
using base::ASCIIToUTF16;
using base::UTF16ToASCII;
using base::WideToUTF16;
namespace autofill {
// Default JavaScript code used to submit the forms.
const char kDocumentClickHandlerSubmitJS[] =
"document.onclick = function() {"
" document.getElementById('testform').submit();"
"};";
// TODO(bondd): Pdm... | {
"content_hash": "e49ea15c6f9bc8666c9b886ace49a90d",
"timestamp": "",
"source": "github",
"line_count": 892,
"max_line_length": 80,
"avg_line_length": 40.74551569506726,
"alnum_prop": 0.6558811390837804,
"repo_name": "mou4e/zirconium",
"id": "c280cb8e5bcb9902da1405474d2966b6b5514bc5",
"size": "3865... |
package com.google.android.exoplayer.text.subrip;
import com.google.android.exoplayer.text.Cue;
import com.google.android.exoplayer.text.Subtitle;
import com.google.android.exoplayer.util.Assertions;
import com.google.android.exoplayer.util.Util;
import java.util.Collections;
import java.util.List;
/**
* A represen... | {
"content_hash": "f96f306106637083964102bf19802798",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 92,
"avg_line_length": 27,
"alnum_prop": 0.6962962962962963,
"repo_name": "reid-mcpherson/ExoPlayerDebug",
"id": "e8e583f822997c16e81e5ea7fa4f922f50cce8ed",
"size": "2374",... |
package de.hub.clickwatch.specificmodels.brn.device_wifi_wifidevice_cst_stats;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Mac duration</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@li... | {
"content_hash": "4e01c12814882ea5358c74b2f22b291a",
"timestamp": "",
"source": "github",
"line_count": 267,
"max_line_length": 217,
"avg_line_length": 47.659176029962545,
"alnum_prop": 0.6521807465618861,
"repo_name": "markus1978/clickwatch",
"id": "435a8a95bcac0e9a314272080e9ab45805575cdb",
"size... |
package io.scalajs.nodejs
package fs
import io.scalajs.RawOptions
import io.scalajs.nodejs.buffer.Buffer
import io.scalajs.nodejs.events.IEventEmitter
import io.scalajs.nodejs.url.URL
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.typedarray.Uint8Array
import scala.scalajs... | {
"content_hash": "4deb0d5dca1f67dbe01117814a3845df",
"timestamp": "",
"source": "github",
"line_count": 1184,
"max_line_length": 159,
"avg_line_length": 49.56925675675676,
"alnum_prop": 0.6610666212301926,
"repo_name": "ldaniels528/scalajs-nodejs",
"id": "dbb8064dd4b9c207cfba70edcc9c553cc3e19c7a",
... |
require "helper/spec"
describe Spurious::Server::State::Init do
it "Pulls down the docker images down and sends response back to client" do
connection_double = double('Spurious::Server::App')
config_stub = {
:foo => {
:image => 'foo/bar',
:name => 'foo-bar'
}
}
config = d... | {
"content_hash": "7eb9b6dc9b21297c9f9f8c150e94a913",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 118,
"avg_line_length": 29.115384615384617,
"alnum_prop": 0.6327608982826949,
"repo_name": "spurious-io/server",
"id": "f3c75fb9bfa61d6d013d0c935c459fef09e0938e",
"size": "... |
#import <MetaWear/MBLConstants.h>
#import <MetaWear/MBLModule.h>
/**
Interface to external haptic or buzzers
*/
@interface MBLHapticBuzzer : MBLModule
/**
Turn on Haptic Driver.
@param dcycle Duty cycle (0-248), relative strength of buzz
@param pwidth Duration of buzz in mSec
@param completion Callback when t... | {
"content_hash": "4d982b1ae5f646670640375a7c096e43",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 115,
"avg_line_length": 26.26923076923077,
"alnum_prop": 0.7701317715959004,
"repo_name": "iic-ninjas/metawear-ball",
"id": "28b45dff9327e87c799c98953c160e9d91708600",
"siz... |
#region License
#endregion
using System;
namespace Example
{
public class WeakReferenceExamples
{
}
} | {
"content_hash": "b3f3cfc6f4d3af3261cfde4b9fc3f6b1",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 35,
"avg_line_length": 11.5,
"alnum_prop": 0.7043478260869566,
"repo_name": "BclEx/AdamsyncEx",
"id": "2f3d4aa8acbce09b283a66db2ad7fb7631cb1364",
"size": "1214",
"binary"... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudentsAndWorkers.Models
{
public class Student : Human
{
public int Grade { get; set; }
public Student(string firstName, string lastName, int grade)
: base(firstName, lastName)
{... | {
"content_hash": "4ce1dde0c1e4e97b2402333076fa2e62",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 62,
"avg_line_length": 18.57894736842105,
"alnum_prop": 0.7252124645892352,
"repo_name": "SHAMMY1/Telerik-Academy",
"id": "0a4b6ed5f6c7922976ea1369ff5319e0ed72ecba",
"size"... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("04... | {
"content_hash": "d4d61b21c1cfb91f83f170047b361117",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.75,
"alnum_prop": 0.7442348008385744,
"repo_name": "NikiStanchev/SoftUni",
"id": "5c1f93d378c666e0fa2d95fb0628d00cd0e1f41d",
"size": "1434",
"bi... |
// +build linux
package mount
import (
"os"
"path/filepath"
"strings"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/util/exec"
)
// NsenterMounter is part of experimental support for running the kubelet
// in a container. Currently, all docker containers receive their own mount
// namespaces. NsenterMoun... | {
"content_hash": "de5f3921b9874198cb5d70ae58b93fe5",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 101,
"avg_line_length": 31.49462365591398,
"alnum_prop": 0.697678388528508,
"repo_name": "we87/kubernetes",
"id": "d0c2af02eb84955d89e0a4a30e307655cf7d6512",
"size": "6447... |
package com.opengamma.master;
import java.util.Map;
import org.joda.beans.Bean;
import org.joda.beans.BeanBuilder;
import org.joda.beans.BeanDefinition;
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.MetaProperty;
import org.joda.beans.Property;
import org.joda.beans.PropertyDefinition;
import org.joda.b... | {
"content_hash": "0cb0a532ae7ee7c5bfe1adf7097d17c2",
"timestamp": "",
"source": "github",
"line_count": 579,
"max_line_length": 137,
"avg_line_length": 38.77892918825561,
"alnum_prop": 0.6817351801540997,
"repo_name": "jeorme/OG-Platform",
"id": "6f06c1622c15a10ace17d59c8936ad62b9ffc4f1",
"size": "... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace CLK.AspNet.Identity.WebSite
{
public class MvcApplication : System.Web.HttpApplication
{
protected void A... | {
"content_hash": "cf1412bc5c0a1f8325b27c3b5462bf72",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 98,
"avg_line_length": 32.25,
"alnum_prop": 0.7222222222222222,
"repo_name": "Clark159/CLK.AspNet.Identity",
"id": "ac8b4d0e99d947010187ba83124a1b2e402ab0e4",
"size": "776"... |
verify.getSemanticDiagnostics(`[
{
"message": "'interface declarations' can only be used in a .ts file.",
"start": 10,
"length": 1,
"category": "error",
"code": 8006
}
]`); | {
"content_hash": "e13b9572ff39fd1e14194b5eae75019a",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 74,
"avg_line_length": 21.77777777777778,
"alnum_prop": 0.576530612244898,
"repo_name": "freedot/tstolua",
"id": "846ca3ea4926ee0d177c60cfa902b6e6188d41e0",
"size": "307",
... |
<?php
require __DIR__.'/autoload.php';
return function (array $context): void {
echo 'Hello World ', $context['SOME_VAR'];
};
| {
"content_hash": "159038ec9abd5cc5445968c019252909",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 46,
"avg_line_length": 14.88888888888889,
"alnum_prop": 0.6119402985074627,
"repo_name": "symfony/symfony",
"id": "512e2dc5a3e13c6ba82fa1d43c9065313302cfa3",
"size": "363",
... |
from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline
from rllab.envs.normalized_env import normalize
from rllab.misc.instrument import stub, run_experiment_lite
from sandbox.snn4hrl.algos.trpo_snn import TRPO_snn
from sandbox.snn4hrl.bonus_evaluators.grid_bonus_evaluator import GridBonusEvaluator
f... | {
"content_hash": "a3253ebcbae04e8fe21244ea604e3959",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 90,
"avg_line_length": 36.18181818181818,
"alnum_prop": 0.6540201005025126,
"repo_name": "florensacc/snn4hrl",
"id": "02393c428a90678d5a11a5606e7c8b314fee3fb3",
"size": "3... |
{template 'common/header'}
<div class="new-keyword" id="js-user-group-post" ng-controller="UserGroupPost" ng-cloak>
<ol class="breadcrumb we7-breadcrumb">
<a href="{php echo url('user/group/display')}"><i class="wi wi-back-circle"></i> </a>
<li><a href="{php echo url('user/group/display')}">用户组管理</a></li>
<li>添加... | {
"content_hash": "708023882d56d84511f72ac108e38540",
"timestamp": "",
"source": "github",
"line_count": 150,
"max_line_length": 153,
"avg_line_length": 39.333333333333336,
"alnum_prop": 0.5952542372881356,
"repo_name": "justzheng/test1",
"id": "69a303c6b1b9bc003fe0e37435a5c594263e4bdb",
"size": "63... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync/driver/data_type_manager_impl.h"
#include <algorithm>
#include <functional>
#include <string>
#include <utility>
#include "bas... | {
"content_hash": "744e374e5ec8d415f55c175433195482",
"timestamp": "",
"source": "github",
"line_count": 913,
"max_line_length": 80,
"avg_line_length": 39.35596933187295,
"alnum_prop": 0.711454970499833,
"repo_name": "endlessm/chromium-browser",
"id": "cbe7d0b352a5ed347351593b11530034024799ae",
"siz... |
<mat-card class="steps feed-card" >
<mat-card-header >
<mat-card-title>
<!-- <mat-icon>playlist_add_check</mat-icon> -->
<span>Setup Guide</span>
</mat-card-title>
<mat-card-subtitle>Required and optional steps</mat-card-subtitle>
<span fxFlex></span>
</mat-card-header>
<mat-card-conte... | {
"content_hash": "4ab0d563442bcda1377035e99dc62c86",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 114,
"avg_line_length": 43.170212765957444,
"alnum_prop": 0.641695416461311,
"repo_name": "Teradata/kylo",
"id": "20eaa659cb70fe44e11228c7d4aaf27d2ff44539",
"size": "2029",... |
package generated.zcsclient.admin;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for getAllServersResponse complex type.
*
* <p>The following schem... | {
"content_hash": "783d30c65c1df9e1ba05479f0c39ea24",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 95,
"avg_line_length": 26.65671641791045,
"alnum_prop": 0.6377379619260918,
"repo_name": "nico01f/z-pec",
"id": "a1148f926d097fa52b8a223a2bf6d099395e6eac",
"size": "1786",
... |
package ru.yandex.qatools.allure.data.io;
import com.google.inject.Inject;
import ru.yandex.qatools.allure.model.Description;
import ru.yandex.qatools.allure.model.Label;
import ru.yandex.qatools.allure.model.TestCaseResult;
import ru.yandex.qatools.allure.model.TestSuiteResult;
import java.util.ArrayList;
import jav... | {
"content_hash": "aacf50d53c97f81e8f3fd9488a3bccab",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 93,
"avg_line_length": 29.46511627906977,
"alnum_prop": 0.648776637726914,
"repo_name": "allure-framework/allure1",
"id": "5aa744ed2961288637d7b381d8b3b5fb247c937d",
"size"... |
package de.uni.freiburg.iig.telematik.swat.analysis.modelchecker.prism.modeltranlator;
import java.util.Calendar;
import java.util.Iterator;
import de.invation.code.toval.validate.ParameterException;
import de.uni.freiburg.iig.telematik.sepia.petrinet.abstr.AbstractPetriNet;
import de.uni.freiburg.iig.telematik.sepia... | {
"content_hash": "7e00a6adb21747779f34be0cf6b32ba4",
"timestamp": "",
"source": "github",
"line_count": 176,
"max_line_length": 104,
"avg_line_length": 33.21022727272727,
"alnum_prop": 0.7117194183062446,
"repo_name": "iig-uni-freiburg/SWAT20",
"id": "23e929e11d679960f839f5342c727db97730b614",
"siz... |
layout: page
title: Chen Family Reunion
date: 2016-05-24
author: Albert Kane
tags: weekly links, java
status: published
summary: Phasellus sed tempus tortor. Vestibulum.
banner: images/banner/office-01.jpg
booking:
startDate: 05/30/2017
endDate: 06/04/2017
ctyhocn: BNAEAHX
groupCode: CFR
published: true
---
Mor... | {
"content_hash": "5246368732e917e81d670e7f5d645560",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 589,
"avg_line_length": 92.54166666666667,
"alnum_prop": 0.8081945069788383,
"repo_name": "KlishGroup/prose-pogs",
"id": "90721f2904a20db86c5d3f843682b9b9133328f0",
"size":... |
require "rubygems"
require "bundler/setup"
Bundler.require(:default)
require_all "lib"
require "active_support/all"
def app_init
configure_figaro
configure_honeybadger
setup_resque
end
def configure_honeybadger
Honeybadger.configure do |config|
config.api_key = ENV["HONEYBADGER_API_KEY"]
config.env = ... | {
"content_hash": "64b9e6480e1d67f091a5807772a7b817",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 78,
"avg_line_length": 22.964285714285715,
"alnum_prop": 0.6889580093312597,
"repo_name": "wearemolecule/cme-fix-listener",
"id": "2ddb084daa5baf822a785641c8f60e63c628a324",
... |
module.exports = function (opts) {
require('../../index.js')(opts)
}
| {
"content_hash": "c403b1f14e0c07a9f8a791ad9f4feebb",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 34,
"avg_line_length": 23.666666666666668,
"alnum_prop": 0.6056338028169014,
"repo_name": "sdgluck/elquire",
"id": "08a655380d6c81c6bffbd8d73a9d338d1e265a50",
"size": "71",
... |
const char FileTemplate::kSource[] = "{{source}}";
const char FileTemplate::kSourceNamePart[] = "{{source_name_part}}";
const char FileTemplate::kSourceFilePart[] = "{{source_file_part}}";
const char kSourceExpansion_Help[] =
"How Source Expansion Works\n"
"\n"
" Source expansion is used for the custom sc... | {
"content_hash": "69d3b8f6a54fb0e547b9651821f11808",
"timestamp": "",
"source": "github",
"line_count": 281,
"max_line_length": 80,
"avg_line_length": 37.42348754448398,
"alnum_prop": 0.6112590338531761,
"repo_name": "mogoweb/chromium-crosswalk",
"id": "1616c52b9d3ff7aa8bfc6465dd7646463fc6aacd",
"s... |
package com.comcast.cim.rest.client.xhtml;
import static org.junit.Assert.*;
import static org.easymock.classextension.EasyMock.*;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import junit.framework.Assert;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.... | {
"content_hash": "dbc3b4750f9c5592d9c3beda9299b559",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 85,
"avg_line_length": 29.234939759036145,
"alnum_prop": 0.7455182361425922,
"repo_name": "jvelilla/hypermedia-client-java",
"id": "b6c34913e54f21dc9d4b9446e5828dee4a156166"... |
#include "server.h"
#include <sys/uio.h>
#include <math.h>
static void setProtocolError(client *c, int pos);
/* Return the size consumed from the allocator, for the specified SDS string,
* including internal fragmentation. This function is used in order to compute
* the client output buffer size. */
size_t sdsZma... | {
"content_hash": "50a4169bfe8291c823b2c84350048909",
"timestamp": "",
"source": "github",
"line_count": 1967,
"max_line_length": 266,
"avg_line_length": 36.253177427554654,
"alnum_prop": 0.5938017108399944,
"repo_name": "sanitysoon/nbase-arc",
"id": "24b87bd5d41027959be1e1b3f76ec7ea07e3f2a5",
"size... |
/***************************************************************************
* Purpose : To create stopwatch to count time of program
*
* @author Sujit
* @version 1.0
* @since 18-08-2017
****************************************************************************/
public class StopWatch {
private static long... | {
"content_hash": "b9a30aaae99dd9f8c40258a6b87c0768",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 77,
"avg_line_length": 26.45,
"alnum_prop": 0.44045368620037806,
"repo_name": "sujitchincholkar/BridgeLabz-programs",
"id": "e8e4127da8ffb3fe5005af2bf45d3efda1bc6a7e",
"siz... |
<?php
/**
* Author: Hassletauf <hassletauf@gmail.com>
* Date: 10/2/2016
* Time: 11:26 AM
*/
namespace Konnektive\Request\Order;
use Konnektive\Request\Request;
/**
* Class ImportUpsaleRequest
* @link https://api2.konnektive.com/docs/upsale_import/
* @package Konnektive\Request\Order
*
* @property string... | {
"content_hash": "6fce0f804576bdc47df954253630126c",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 142,
"avg_line_length": 38.41860465116279,
"alnum_prop": 0.6834140435835351,
"repo_name": "progjp/konnektive-api",
"id": "9f77488652100b30c1906ec075ad5dfd362725a0",
"size":... |
import { factory } from '../../../utils/factory.js'
import { clone } from '../../../utils/object.js'
const name = 'matAlgo14xDs'
const dependencies = ['typed']
export const createMatAlgo14xDs = /* #__PURE__ */ factory(name, dependencies, ({ typed }) => {
/**
* Iterates over DenseMatrix items and invokes the call... | {
"content_hash": "397ccedb7cb7efba9335136ae63454e1",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 102,
"avg_line_length": 29.746666666666666,
"alnum_prop": 0.5567010309278351,
"repo_name": "josdejong/mathjs",
"id": "342b2b19d98232351e0d7d0d1282ce3447ab2eaf",
"size": "22... |
'use strict';
// Load modules
const Util = require('util');
const Stream = require('stream');
const Fs = require('fs');
const Zlib = require('zlib');
const Lab = require('lab');
const Shot = require('../lib');
const Code = require('code');
// Declare internals
const internals = {};
// Test shortcuts
const lab = ... | {
"content_hash": "0156287ac97d830003907b2e7d9e02fe",
"timestamp": "",
"source": "github",
"line_count": 721,
"max_line_length": 135,
"avg_line_length": 26.23855755894591,
"alnum_prop": 0.4682841738027276,
"repo_name": "TumboTheGnome/phaserGraph",
"id": "853021ab9d2934429de05921170fecfd481562e1",
"s... |
package cz.jan.maly.model.game.wrappers;
import cz.jan.maly.utils.MyLogger;
import lombok.Getter;
/**
* Common parent for all type wrappers
* Created by Jan on 27-Mar-17.
*/
abstract class AbstractWrapper<T> {
@Getter
final T type;
@Getter
private final String name;
AbstractWrapper(T type, S... | {
"content_hash": "818ec7c3a0aa3797ea5ff16b469ea70c",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 77,
"avg_line_length": 22.523809523809526,
"alnum_prop": 0.5680056377730797,
"repo_name": "honzaMaly/kusanagi",
"id": "72827d284c892b0d3d9734238a9673a40d082303",
"size": "1... |
layout: post
title: "A Nice Exercise"
description: "The benefit of learning for an external reason"
date: 2017-10-30
tags: ['Learning', 'Python','GIS']
comments: true
share: true
---
# A Nice Exercise
They say the best advice for people learning to programing is to build things. It can be anything that interests the ... | {
"content_hash": "e501ed0e267ab1b5130f0fcd5dfebeef",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 793,
"avg_line_length": 98,
"alnum_prop": 0.7857142857142857,
"repo_name": "Kjmanion/kjmanion.github.io",
"id": "e224b816f06fc4f2f752013c95fc5041c3ae87e1",
"size": "1376",
... |
using System.Collections.Generic;
namespace Dropbox.Api
{
public class MetadataResult
{
public string path { get; set; }
public bool is_dir { get; set; }
public string mime_type { get; set; }
}
}
| {
"content_hash": "23037def20a16f6a0c829aafb3f7b74a",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 45,
"avg_line_length": 21.272727272727273,
"alnum_prop": 0.6068376068376068,
"repo_name": "hamstercat/Emby.Plugins",
"id": "acff57ef0a41a7a7d788b7de4bb08a2df5996eef",
"size... |
require 'test_helper'
class ProyectoTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| {
"content_hash": "53dade6248a46a4833a0b40765b7b9f7",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 44,
"avg_line_length": 17.428571428571427,
"alnum_prop": 0.6967213114754098,
"repo_name": "lalo2302/TodUni",
"id": "cf084baafb59a343bc792477de75a8f978694000",
"size": "122",... |
package pl.srw.billcalculator.util.strategy;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Build;
import android.view.View;
class JellyBeanTransitions extends Transitions {
@Override
@TargetApi(Build.VERS... | {
"content_hash": "255f489365669a40d3424b9e41c13165",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 115,
"avg_line_length": 33.333333333333336,
"alnum_prop": 0.7683333333333333,
"repo_name": "sewerk/Bill-Calculator",
"id": "30c79e227b3afdfff0220f0dd4281621f781e669",
"size... |
package main
import (
"context"
clientconnectorservices "cloud.google.com/go/beyondcorp/clientconnectorservices/apiv1"
clientconnectorservicespb "cloud.google.com/go/beyondcorp/clientconnectorservices/apiv1/clientconnectorservicespb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
... | {
"content_hash": "cf892ba9fc2f5393690d4217c8e8697d",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 150,
"avg_line_length": 32.714285714285715,
"alnum_prop": 0.75254730713246,
"repo_name": "googleapis/google-cloud-go",
"id": "b6b80f56ab0c181664f63096d5111b0ab0cedcdf",
"si... |
#pragma once
#include <aws/ebs/EBS_EXPORTS.h>
#include <aws/ebs/EBSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ebs/model/Tag.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace EBS
{
namespace Model
{
/**
... | {
"content_hash": "e485b33e3786e3cc96ecaf11dd0b4261",
"timestamp": "",
"source": "github",
"line_count": 555,
"max_line_length": 136,
"avg_line_length": 52.71351351351351,
"alnum_prop": 0.6858080393765381,
"repo_name": "jt70471/aws-sdk-cpp",
"id": "c2c00f58855a7d65a03c38b3bc6e78956174a993",
"size": ... |
<p align="center">
<a href="https://crates.io/crates/alga-derive">
<img src="http://meritbadge.herokuapp.com/alga-derive?style=flat-square" alt="crates.io">
</a>
<a href="https://travis-ci.org/rustsim/alga">
<img src="https://travis-ci.org/rustsim/alga.svg?branch=master" alt="Build status">... | {
"content_hash": "87a7c30537cc34f83d52a4390a643fc2",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 98,
"avg_line_length": 30.46875,
"alnum_prop": 0.6912820512820513,
"repo_name": "sebcrozet/alga",
"id": "67a516f50896428c432a3c1fb2b67a2b6cad902f",
"size": "977",
"binary... |
package org.kuali.rice.krad.uif.container;
import java.util.HashSet;
import java.util.Set;
import org.kuali.rice.krad.datadictionary.parse.BeanTag;
import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
import org.kuali.rice.krad.datadictionary.parse.BeanTags;
import org.kuali.rice.krad.uif.UifCo... | {
"content_hash": "f02c4c0c4405d1d96c303d26bf622a12",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 105,
"avg_line_length": 35.15942028985507,
"alnum_prop": 0.692085737840066,
"repo_name": "ricepanda/rice-git3",
"id": "1d7907c51c955642909aee726743bc989474fdbe",
"size": "3... |
using System.Collections.Generic;
using System.Linq;
namespace DotVVM.Framework.Compilation.Parser.Dothtml.Parser
{
public class HierarchyBuildingVisitor : IDothtmlSyntaxTreeVisitor
{
public int CursorPosition { get; set; }
public DothtmlNode LastFoundNode { get; set; }
public bool ... | {
"content_hash": "09e8c6c7f87f27087e624a56604a5753",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 168,
"avg_line_length": 26.086021505376344,
"alnum_prop": 0.5696619950535862,
"repo_name": "darilek/dotvvm",
"id": "ca621e752881a046d86c19ea0db3b50aa9de2402",
"size": "2428... |
.revolver {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.revolver {
width: 100%;
position: relative;
}
.revolver .revolver-item {
display: none;
border-width: 0 1px;
width: 1000px !important;
max-width: 9999px !important;
width: auto !important;
}
.revolver .revolver-active {
displa... | {
"content_hash": "68b657e82ab2e17aa4e2f61459e1c126",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 55,
"avg_line_length": 20.225,
"alnum_prop": 0.6965389369592089,
"repo_name": "filamentgroup/Revolver",
"id": "fe7bfcef3543c35154a1f418142279ba89112884",
"size": "1790",
... |
/* eslint-disable */
import rangy from 'rangy'
/**
* Save a cursor position in the given input field to restore later.
*
* @param {obj} containerEl Dom Node of the input field
* @return {obj} Object with the range of the seclection start & end
*/
export function saveSelection(containerEl) {
var charIndex = 0,... | {
"content_hash": "b877203cce4be1b51fe74dd8753574a1",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 96,
"avg_line_length": 30.942528735632184,
"alnum_prop": 0.5408618127786032,
"repo_name": "floscr/colorna.me",
"id": "ea336020b29436400b144da4f161d27dc5bcf656",
"size": "26... |
package ru.o2genum.howtosay;
/**
* Progress indicator view
*
* @author Andrey Moiseev
*/
import android.content.Context;
import android.util.AttributeSet;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.View;
import android.widget.ImageView;
public cla... | {
"content_hash": "8d2dad4461d6c3beab7787272da9d73b",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 75,
"avg_line_length": 22.426470588235293,
"alnum_prop": 0.6268852459016393,
"repo_name": "gelahcem/HowToSay",
"id": "75c93a619451d0ac94c445f038842e03b3b27111",
"size": "21... |
using MyApp.Domain;
using MyApp.Web.Mvc.Models;
using MyApp.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace MyApp.Web.Mvc.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
... | {
"content_hash": "0dd043730d237ae5d296232208afec6b",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 44,
"avg_line_length": 18.94736842105263,
"alnum_prop": 0.675,
"repo_name": "antanta/MyApp",
"id": "82b57be77aa2a150e2403537894226aba5ecf8eb",
"size": "362",
"binary": fa... |
4096 - The 4 Gigabyte Destiny
====
Creator: William Chang
NetID: wkc10
Started: 08292014
Last Edited: 09252014
Approx hours worked: 20
Genre: 2048 Spinoff
TA's consulted: Yu Zhou Lee, Cody Lieu
Students consulted: Shreyas Bharadwaj, Mike Zhu, Jesse Ling
Main contains the main function.
Resources Used:
Oracl... | {
"content_hash": "aad4b23ad7c65a16f38f5de7444ce835",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 320,
"avg_line_length": 41.13636363636363,
"alnum_prop": 0.5762430939226519,
"repo_name": "thewillchang/4096_Game",
"id": "0c3d843a0c490313172f4eac0a3e6b000e2fe6bb",
"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_17) on Tue Apr 02 08:44:35 MDT 2013 -->
<title>CreateRecipeActivity</title>
<meta name="date" content="2013-04-02">
<link rel="styleshe... | {
"content_hash": "cd82b9b91f44a57766504fe6500563d5",
"timestamp": "",
"source": "github",
"line_count": 490,
"max_line_length": 334,
"avg_line_length": 37.13673469387755,
"alnum_prop": 0.667967247348464,
"repo_name": "cserafin/CMPUT301W13T14",
"id": "00d6cdbeb9295e00b250f524c95a61c8de96a15d",
"size... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FinishLevel : MonoBehaviour
{
public GameObject managerScene;
private LevelManager script;
public Light myLight;
public bool changeIntesity = false;
public float intesitySpeed = 1.0f;
public float max... | {
"content_hash": "00b1248b9cbe465a40aee3bba7453006",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 87,
"avg_line_length": 22.525,
"alnum_prop": 0.6259711431742508,
"repo_name": "azsumas/HorrorShooter",
"id": "6e9e48830754fa038eced8198a35a3bca950db6b",
"size": "903",
"b... |
import spinalcordtoolbox as sct
def main():
print(sct.__version__)
if __name__ == "__main__":
main()
| {
"content_hash": "a21860e4a0b776511230c21ded52ff27",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 31,
"avg_line_length": 12.555555555555555,
"alnum_prop": 0.5663716814159292,
"repo_name": "neuropoly/spinalcordtoolbox",
"id": "6eafa777b39dff7d5a6d6418a43268c86f10521f",
"s... |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="ar-SA">
<title>Plug-n-Hack | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref ... | {
"content_hash": "291c2a01a7b70ad32314e900aeaa51fc",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 184,
"avg_line_length": 25.5,
"alnum_prop": 0.6367389060887513,
"repo_name": "secdec/zap-extensions",
"id": "09564fdbf51dcc1077f55e1e65ca107311565628",
"size": "972",
"bi... |
namespace gfx {
enum class VectorIconId;
}
namespace net {
class X509Certificate;
}
// This class is the model used by the toolbar, location bar and autocomplete
// edit. It populates its states from the current navigation entry retrieved
// from the navigation controller returned by GetNavigationController().
class... | {
"content_hash": "df37de745f9d76e85398f02a5c8674ce",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 80,
"avg_line_length": 39.16,
"alnum_prop": 0.725485188968335,
"repo_name": "heke123/chromium-crosswalk",
"id": "d0aee6b5596410c0a2f947e0a022b1880eff057f",
"size": "4354",... |
"use strict"
// TOOD: would like to extend String
class UUID {
constructor(uuid){
this.$type = "m.UUID";
if(uuid.$type && uuid.$type == this.$type){
this.uuid = uuid.uuid
}else {
this.uuid = uuid
}
}
static zero(){ new UUID('00000000-0000-0000-0000-0... | {
"content_hash": "cf3f23f062e736810d448f523f702eaa",
"timestamp": "",
"source": "github",
"line_count": 2118,
"max_line_length": 163,
"avg_line_length": 26.355524079320112,
"alnum_prop": 0.5898496981422762,
"repo_name": "conversant-im/conversant-client-api",
"id": "5276f4f0e40f1afbe87b166e1867dc409d3... |
/**
* Checks if value is object-like.
* A value is object-like if it's not null and has a typeof result of "object".
*
* @category Language
*
* First version: July 03, 2017
* Last updated : July 03, 2017
*
* @export
* @param {*} input
* @returns {boolean}
*/
export function isObjectLike(input: any): boole... | {
"content_hash": "77a5ce847bc0410c4940523127ef124a",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 79,
"avg_line_length": 19.1,
"alnum_prop": 0.6387434554973822,
"repo_name": "CamelKing/beta",
"id": "0c8985463d8ec1c509e436e55f3b8d9bfbd5d1c9",
"size": "382",
"binary": f... |
package config
import (
"bytes"
"context"
"errors"
"fmt"
"testing"
"github.com/cossacklabs/acra/decryptor/base/type_awareness"
base_mysql "github.com/cossacklabs/acra/decryptor/mysql/base"
common2 "github.com/cossacklabs/acra/encryptor/config/common"
"github.com/cossacklabs/acra/masking/common"
"github.com/... | {
"content_hash": "41d1efc9afb217c7fdf0b22c5730093e",
"timestamp": "",
"source": "github",
"line_count": 1338,
"max_line_length": 151,
"avg_line_length": 22.736920777279522,
"alnum_prop": 0.6247123791992637,
"repo_name": "cossacklabs/acra",
"id": "23abb037ca43f7a0a9753857dd592c616642c792",
"size": "... |
package com.phonegap;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.webkit.WebSettings;
public class WebViewReflect {
private static Method mWebSettings_setDatabaseEnabled;
private static Method mWebSettings_setDatabasePath;
... | {
"content_hash": "fa27a363ec17c9d11d2f497cdb0b8dea",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 85,
"avg_line_length": 35.21311475409836,
"alnum_prop": 0.6347765363128491,
"repo_name": "Repsly/phonegap-android",
"id": "6d6c342195590aeeee3bae7e5fcd4bd15ee5a38c",
"size... |
package com.sequenceiq.cloudbreak.cm;
import static com.sequenceiq.cloudbreak.cmtemplate.CMRepositoryVersionUtil.CLOUDERAMANAGER_VERSION_7_1_0;
import static com.sequenceiq.cloudbreak.cmtemplate.CMRepositoryVersionUtil.CLOUDERAMANAGER_VERSION_7_2_0;
import static com.sequenceiq.cloudbreak.cmtemplate.CMRepositoryVersio... | {
"content_hash": "a36f378a3b1da012776e9cdaa980b0b0",
"timestamp": "",
"source": "github",
"line_count": 589,
"max_line_length": 159,
"avg_line_length": 50.72665534804754,
"alnum_prop": 0.7262534306178459,
"repo_name": "hortonworks/cloudbreak",
"id": "b9974e299e2bd9274c933eaf3cfa971033904caa",
"size... |
#include "core/html/track/TextTrackCueList.h"
#include "wtf/StdLibExtras.h"
#include <algorithm>
namespace blink {
TextTrackCueList::TextTrackCueList()
: m_firstInvalidIndex(0)
{
}
unsigned long TextTrackCueList::length() const
{
return m_list.size();
}
TextTrackCue* TextTrackCueList::anonymousIndexedGet... | {
"content_hash": "2fb3642bde749742fe47b4a5ca269ac7",
"timestamp": "",
"source": "github",
"line_count": 135,
"max_line_length": 93,
"avg_line_length": 25.533333333333335,
"alnum_prop": 0.656803017116333,
"repo_name": "danakj/chromium",
"id": "5ee268e923a880e4161985b7e8866177a2a751bd",
"size": "4799... |
"""Support for MySensors covers."""
from __future__ import annotations
from enum import Enum, unique
from typing import Any
from homeassistant.components import mysensors
from homeassistant.components.cover import ATTR_POSITION, DOMAIN, CoverEntity
from homeassistant.components.mysensors.const import MYSENSORS_DISCOV... | {
"content_hash": "b1aba3b944937141ab365156552fb72f",
"timestamp": "",
"source": "github",
"line_count": 153,
"max_line_length": 87,
"avg_line_length": 35.11764705882353,
"alnum_prop": 0.6195793783733482,
"repo_name": "lukas-hetzenecker/home-assistant",
"id": "9219097bea455b40ee4fe8fbe9f60c511082d058"... |
import android.app.Activity;
import android.os.Bundle;
public class InstanceStateIntWithOnCreateActivity extends Activity {
private int myInt;
@Override
protected void onCreate(Bundle state) {
if (state != null) {
this.myInt = state.getInt("myInt");
}
super.onCreate(state);
}
@Override
protected v... | {
"content_hash": "56cb74cd69780a8b3f04151b2fa86b40",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 68,
"avg_line_length": 20.857142857142858,
"alnum_prop": 0.7328767123287672,
"repo_name": "Shedings/hrisey",
"id": "75d36436b29649be30d334105e0ca73cee90a6b4",
"size": "438"... |
require 'spec_helper'
describe Travis::Api::App::Endpoint do
class MyEndpoint < Travis::Api::App::Endpoint
set :prefix, '/my_endpoint'
get('/') { 'ok' }
end
it 'sets up endpoints automatically under given prefix' do
get('/my_endpoint/').should be_ok
body.should == "ok"
end
it 'does not requ... | {
"content_hash": "18776ae823e06e2415a753ac7a1a703c",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 60,
"avg_line_length": 23.11111111111111,
"alnum_prop": 0.6442307692307693,
"repo_name": "Tiger66639/travis-api",
"id": "d5a01f6b724eec28a8b7ac3a5dd286136bf4b501",
"size": ... |
//----------------------------------------------------------------------------------
// Microsoft Developer & Platform Evangelism
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
// EITHER EXPRESSED OR IMPLIED, INCLUDING... | {
"content_hash": "0f01ca8b9e5e884aeab29e769599d03f",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 147,
"avg_line_length": 38.775862068965516,
"alnum_prop": 0.6116792648584556,
"repo_name": "vipinsehgal/AzureQuickStartsProjects",
"id": "1e0a19b4e39c5d5e98efe0d3b3ffbe94291... |
import math
import torch
import torch.nn as nn
from fairseq import utils
class SinusoidalPositionalEmbedding(nn.Module):
"""This module produces sinusoidal positional embeddings of any length.
Padding symbols are ignored, but it is necessary to specify whether padding
is added on the left side (left_pa... | {
"content_hash": "535f630cf458b264b12597429b10ba20",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 95,
"avg_line_length": 40.01449275362319,
"alnum_prop": 0.6247736327417602,
"repo_name": "mlperf/training_results_v0.6",
"id": "4b000e892eef4a94a3faa4477a9a878b3eca8f41",
"... |
package com.nec.strudel.tkvs.store.mongodb;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.Random;
import org.apache.log4j.Logger;
import com.mongodb.DB;
import com.mongod... | {
"content_hash": "8bd8319e4ae03cb5fc5229df03ff2430",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 93,
"avg_line_length": 30.12162162162162,
"alnum_prop": 0.7128757290264692,
"repo_name": "tatemura/strudel",
"id": "c5a6791fb7e4049d3626a939cbc66ac63bcbd68b",
"size": "521... |
<!--
Generated template for the Nearby page.
See http://ionicframework.com/docs/v2/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-header>
<ion-navbar>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>Nearby</ion-title>
</io... | {
"content_hash": "502f2b8956bf96425c929e913ca6e535",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 79,
"avg_line_length": 18.333333333333332,
"alnum_prop": 0.6675324675324675,
"repo_name": "estevezluis1/go-app",
"id": "9ab7e53ee3dbcf5369d4f62e039554939581e602",
"size": "... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="849e2ea3-1dc1-4ecd-b767-88fbc76226e7" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gitignore" afterPath="$PROJECT_DIR$/.gitignore" />
<change ... | {
"content_hash": "35a1490ccb801f7eb084130b331f06bc",
"timestamp": "",
"source": "github",
"line_count": 1319,
"max_line_length": 252,
"avg_line_length": 53.76345716451858,
"alnum_prop": 0.6363764559889443,
"repo_name": "0909023/project_3_data",
"id": "68e0edab967235fb7dc761eee7a96593098cee26",
"siz... |
package org.springframework.security.config.annotation.web.configurers;
import javax.servlet.http.HttpServletRequest;
import org.springframework.security.access.SecurityConfig;
import org.springframework.security.config.annotation.web.HttpSecurityBuilder;
import org.springframework.security.config.annotation.web.co... | {
"content_hash": "2d6ede42332ecbe4b7a060860fe7385c",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 155,
"avg_line_length": 34.32835820895522,
"alnum_prop": 0.6752173913043479,
"repo_name": "tekul/spring-security",
"id": "4f95e43f1e16f6ee158b73044b9887cc4054411f",
"size":... |
"""
http://developer.openstack.org/api-ref-identity-v3.html#credentials-v3
"""
from oslo_serialization import jsonutils as json
from tempest.lib.common import rest_client
class CredentialsClient(rest_client.RestClient):
api_version = "v3"
def create_credential(self, **kwargs):
"""Creates a credenti... | {
"content_hash": "9315fc52fcf5f8ca3c7eadd12557c7cc",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 76,
"avg_line_length": 38.827586206896555,
"alnum_prop": 0.6309946714031972,
"repo_name": "LIS/lis-tempest",
"id": "6ab94d049596ff384fd39aa1348787f99001d028",
"size": "2888... |
module Main where
import qualified Server
main :: IO ()
main = Server.main
| {
"content_hash": "0c9bc11a164846bffbd4d4f0f23688af",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 23,
"avg_line_length": 12.833333333333334,
"alnum_prop": 0.7272727272727273,
"repo_name": "nathanic/purescript-simple-chat-client",
"id": "ac0edfd378be7064b111acf2ee976be021e0... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class M_news extends CI_Model {
public function __construct()
{
parent::__construct();
}
function total_record() { //hitung jumlah total data
$this->db->from("berita");
return $this->db->count_all_results();... | {
"content_hash": "37d939426bafc93505b45cbc92952937",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 135,
"avg_line_length": 33.61842105263158,
"alnum_prop": 0.5565557729941292,
"repo_name": "kikiiramdhani123/rpl-sampah",
"id": "0461e9b8c051c4ba3fe1a7dfdc17a74c13cc1dcd",
"... |
// Copyright (c) 2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CONSENSUS_VERSIONBITS
#define BITCOIN_CONSENSUS_VERSIONBITS
#include "chain.h"
#include <map>
/** What... | {
"content_hash": "cf7a9fdeb5bedc88b9ae3e65b0999742",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 151,
"avg_line_length": 37.183098591549296,
"alnum_prop": 0.7518939393939394,
"repo_name": "realzzt/BitCoin2013",
"id": "26ee0c63895ebaa8ad1c4f1d13550c52baa329ba",
"size": ... |
export async function sleep(time: number): Promise<void> {
return new Promise<void>((resolve, reject) => setTimeout(resolve, time));
}
| {
"content_hash": "c99cb388dc3436aa4d81748109f7b669",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 74,
"avg_line_length": 35.25,
"alnum_prop": 0.7021276595744681,
"repo_name": "CactusDev/Aerophyl",
"id": "e7e3d05b0e1d6bd07c63d80589ddda290566d647",
"size": "141",
"binary... |
/**
* TaltioniAPI_GetHealthRecordItemTypes_ReceiverFault_FaultMessage.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:33:49 IST)
*/
package fi.taltioni._0._1.taltioniapi;
public class TaltioniAPI_GetHealthRecordItemTypes_ReceiverFault_FaultMessag... | {
"content_hash": "f4f091b58097bb8abb327eecb9c19d6d",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 124,
"avg_line_length": 32.97674418604651,
"alnum_prop": 0.7172073342736248,
"repo_name": "Sensotrend/moves2taltioni",
"id": "8bed210ef7e7fe7ad6c48fafe51cce1802152cb3",
"si... |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
... | {
"content_hash": "5dae9ae37b3381c7bd654f507119b32f",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 137,
"avg_line_length": 47.53488372093023,
"alnum_prop": 0.6981409001956947,
"repo_name": "Zotyrn/ext_site",
"id": "0c2430ca5f3b5dd532427fc68dbcdeee2ec518db",
"size": "2499... |
package core.main_view.content_view.products_view.item_view;
/**
* Created by Mohammed Matar
* Creation Date 2/27/15.
*/
public class ItemViewPresenter {
}
| {
"content_hash": "b1add0fda6e2874e2b1292a2ac586c33",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 60,
"avg_line_length": 20,
"alnum_prop": 0.73125,
"repo_name": "jmatar-sd/b-shopper",
"id": "446867f0b299407106bf6fc0465fb2cdc3c710c1",
"size": "160",
"binary": false,
"... |
import DocumentView from "trix/views/document_view"
import { normalizeRange } from "trix/core/helpers"
const { assert } = QUnit
assert.locationRange = function (start, end) {
const expectedLocationRange = normalizeRange([ start, end ])
const actualLocationRange = getEditorController().getLocationRange()
this.de... | {
"content_hash": "6a926d0e40ee5b201eb786b42235701d",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 87,
"avg_line_length": 34.516666666666666,
"alnum_prop": 0.748913568324481,
"repo_name": "basecamp/trix",
"id": "1dc65659126de430f6ccc70740b38761605477b1",
"size": "2071",
... |
var Q = require('q');
var Logger = require('bower-logger');
/**
* Require commands only when called.
*
* Running `commandFactory(id)` is equivalent to `require(id)`. Both calls return
* a command function. The difference is that `cmd = commandFactory()` and `cmd()`
* return as soon as possible and load an... | {
"content_hash": "c6bbe9b9e6234e60c38ecaea0753e75c",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 82,
"avg_line_length": 29.35211267605634,
"alnum_prop": 0.5825335892514395,
"repo_name": "rowanmiller/Demo-MVADec14",
"id": "d58c3c6aea3b5925900d0f69213f6e3fb4415f38",
"siz... |
package com.navercorp.pinpoint.profiler.monitor.codahale;
import com.google.inject.Inject;
import com.navercorp.pinpoint.bootstrap.config.ProfilerConfig;
import com.navercorp.pinpoint.profiler.context.TransactionCounter;
import com.navercorp.pinpoint.profiler.context.active.ActiveTraceRepository;
import com.navercor... | {
"content_hash": "6c61070088716874102e830f03aff716",
"timestamp": "",
"source": "github",
"line_count": 200,
"max_line_length": 203,
"avg_line_length": 51.06,
"alnum_prop": 0.7604778691735213,
"repo_name": "sjmittal/pinpoint",
"id": "ba1aa43da5162e99c2831e1380a2c01c2ffcdd47",
"size": "10806",
"bi... |
"""
Shell utility functions which use non-blocking and eventlet / gevent friendly code.
"""
from __future__ import absolute_import
import os
import subprocess
import six
from st2common import log as logging
from st2common.util import concurrency
__all__ = ["run_command"]
TIMEOUT_EXIT_CODE = -9
LOG = logging.getL... | {
"content_hash": "5510adcd7826ca53019f861ee3c28d53",
"timestamp": "",
"source": "github",
"line_count": 225,
"max_line_length": 96,
"avg_line_length": 31.662222222222223,
"alnum_prop": 0.623385738349242,
"repo_name": "nzlosh/st2",
"id": "64830c9423c25c5e10f3ab13852b736caee2b6ef",
"size": "7752",
... |
<?php
namespace ViewComponents\ViewComponents\Component\Html;
use Nayjest\Tree\ChildNodeInterface;
use ViewComponents\ViewComponents\Base\Html\AutoSubmittingInputInterface;
use ViewComponents\ViewComponents\Base\Html\AutoSubmittingInputTagTrait;
use ViewComponents\ViewComponents\Base\Html\TagInterface;
use ViewCompon... | {
"content_hash": "fb31164f6f91e41c632fa6884fda82d9",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 84,
"avg_line_length": 30.8125,
"alnum_prop": 0.5730223123732252,
"repo_name": "Nayjest/ViewComponents",
"id": "ff814bb2108c10fbcb2fd97385f83f7b62ae635c",
"size": "1972",
... |
SYNONYM
#### According to
Index Fungorum
#### Published in
null
#### Original name
Clavaria gollani Henn.
### Remarks
null | {
"content_hash": "7cb0078e701fe00e6d0e7977aa4417d5",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 22,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.6984126984126984,
"repo_name": "mdoering/backbone",
"id": "b9f8fccb332be630d9e5675f3831d9f093f3b9e0",
"size": "172... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "5bbb0764cf6dc2be5c4875a390cfc972",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "d55aab376985796c97459e46828a0552280e73ca",
"size": "172... |
package com.zuoxiaolong.util;
import com.google.gson.Gson;
import java.awt.*;
import java.io.IOException;
import java.io.OutputStream;
import java.net.*;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
/**
* @author 左潇龙
* @since 2015年5月24日 上午12:23:01
*/
public abstract class HttpUtil {
pr... | {
"content_hash": "e24e82c5fc17ed0f272613111e19a45f",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 126,
"avg_line_length": 34.21495327102804,
"alnum_prop": 0.6998087954110899,
"repo_name": "xiaolongzuo/personal-blog-webapp",
"id": "7813e015adbd3edddf8be372224be73dc8c88ed2... |
local common = require('test_scripts/WidgetSupport/common')
--[[ Local Variables ]]
local params = {
displayLayout = "Layout1",
dayColorScheme = {
primaryColor = {
red = 1,
green = 2,
blue = 3
}
}
}
--[[ Local Functions ]]
local function sendSetDisplayLayout_UNSUCCESS_noHMIResponse()
... | {
"content_hash": "df3560a7adbe4bfccc6147d6af07fb6e",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 98,
"avg_line_length": 36.96610169491525,
"alnum_prop": 0.7450710683172856,
"repo_name": "smartdevicelink/sdl_atf_test_scripts",
"id": "39d0192f2ee836e8081140018e02c285f21284... |
import six
from django.db import models, transaction
from django.db.models import F, Max, Min
from django.contrib.comments.models import Comment
from django.contrib.contenttypes.models import ContentType
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext, ugettext_lazy as _
fro... | {
"content_hash": "c7fabb4b897bce62584d22ece97bc949",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 132,
"avg_line_length": 36.737226277372265,
"alnum_prop": 0.6171269620504669,
"repo_name": "CantemoInternal/django-comments-xtd",
"id": "02ab19bf26c879ecfc5ea41cb55765cf6598... |
package org.ta4j.core;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* Base implementation of a {@link TimeSeries}.
* <p>
*/
public class BaseTimeSeries implements TimeSeries {
private static final long serialV... | {
"content_hash": "b3bcdea02040960d9fefbd625938dd24",
"timestamp": "",
"source": "github",
"line_count": 236,
"max_line_length": 145,
"avg_line_length": 33.97457627118644,
"alnum_prop": 0.6172362185083562,
"repo_name": "gcauchis/ta4j",
"id": "4255401f5c74aad817b676deeb41f89ee26a4b27",
"size": "9205"... |
import datetime
from keystoneclient import access
from keystoneclient.openstack.common import timeutils
from keystoneclient.tests import client_fixtures as token_data
from keystoneclient.tests.v2_0 import client_fixtures
from keystoneclient.tests.v2_0 import utils
UNSCOPED_TOKEN = client_fixtures.UNSCOPED_TOKEN
PROJE... | {
"content_hash": "16612d4d23fa842051d428b6b62ed8b6",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 79,
"avg_line_length": 44.26605504587156,
"alnum_prop": 0.6905699481865285,
"repo_name": "ntt-sic/python-keystoneclient",
"id": "e097120e8220b1ccb5ecf52fb80c9505d90ef1de",
... |
// BLASTX IMPLEMENTIERUNG VON ANNKATRIN BRESSIN UND MARJAN FAIZI
// SOFTWAREPROJEKT VOM 2.4. - 29.5.2012
// VERSION VOM 21.APRIL.2013
#include "own_functions.h"
//
int find_matches(StrSetSA & trans_proteine,StrSetSA & trans_reads,int seed,Match_found seed_found){
Index <StrSetSA> index_trans_proteine(tra... | {
"content_hash": "643cc7b377f0a1e3232c593a993926e4",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 111,
"avg_line_length": 34.985915492957744,
"alnum_prop": 0.67914653784219,
"repo_name": "bkahlert/seqan-research",
"id": "afde60382cd83974e72524152519ebf2f23a8b47",
"size"... |
<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<channel>
<title>enthought blog</title>
<link>http://blog.enthough... | {
"content_hash": "627a47b467750c21be1fbe3439893b8f",
"timestamp": "",
"source": "github",
"line_count": 236,
"max_line_length": 350,
"avg_line_length": 44.182203389830505,
"alnum_prop": 0.7138198906684569,
"repo_name": "bbc/kamaelia",
"id": "bf090ca9bd33487062600b9c5366825b4d0c58f8",
"size": "10433... |
Sistema de distribuição de disciplinas - UFG
# Instalação
### 1. Baixar o [composer](https://getcomposer.org/doc/00-intro.md)
`curl -sS https://getcomposer.org/installer | php`
OU
`php -r "readfile('https://getcomposer.org/installer');" | php`
### 2. Instalação das dependências via composer:
`mv composer.phar sr... | {
"content_hash": "52f146886d97398a035469cb17af2a68",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 149,
"avg_line_length": 21.413793103448278,
"alnum_prop": 0.7069243156199678,
"repo_name": "BrunoSoares-LABORA/sdd-ufg",
"id": "02e2857020dd99fc06effae39c0512674002aa49",
"... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace Joy.Storage
{
public interface ISaveAdapter
{
LoadResult Load(string input = null);
void Process(EntityGroups pool);
... | {
"content_hash": "1075a782f2017626d57cecce6a807145",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 52,
"avg_line_length": 25.05263157894737,
"alnum_prop": 0.7100840336134454,
"repo_name": "mind0n/hive",
"id": "f4499d9c45adefd7fce94ab945480a759521a5e3",
"size": "478",
"... |
package org.mockitousage.bugs.creation.api;
import org.mockitousage.bugs.creation.otherpackage.PublicParentClass;
public class PublicClass extends PublicParentClass {}
| {
"content_hash": "8ae4b8669882f55db5e78c829f3e11af",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 69,
"avg_line_length": 28.5,
"alnum_prop": 0.847953216374269,
"repo_name": "bric3/mockito",
"id": "048208c627dd8b2b4cf285701059a145311bc74c",
"size": "290",
"binary": fals... |
import { ContentProjectionPage } from './app.po';
describe('content-projection App', () => {
let page: ContentProjectionPage;
beforeEach(() => {
page = new ContentProjectionPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqu... | {
"content_hash": "368117adc61c372fdca9e8ba56e783f6",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 63,
"avg_line_length": 25.428571428571427,
"alnum_prop": 0.6123595505617978,
"repo_name": "TelerikAcademy/Angular",
"id": "af16285decc69ffb6e2cc50778a1c542aff290e0",
"size"... |
local spec = require 'spec.spec'
describe("Add keys", function()
it("adds a header", function()
local add = spec.middleware('add-keys/add_keys.lua')
local request = spec.request({ method = 'GET', uri = '/'})
local next_middleware = spec.next_middleware(function()
assert.contains... | {
"content_hash": "aa42faa7e8045fafd1cd701fdee1d153",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 70,
"avg_line_length": 31.333333333333332,
"alnum_prop": 0.5896656534954408,
"repo_name": "APItools/middleware",
"id": "f44589eb04cd6bcaf6d1052d6ba4ffb4034dbbb1",
"size": "... |
package fromwsdl.client_from_sei.client;
import junit.framework.TestCase;
import jakarta.xml.ws.Service;
import java.net.URL;
import javax.xml.namespace.QName;
/**
* Creating proxy from a SEI
*
* @author Jitendra Kotamraju
*/
public class SEITest extends TestCase {
public SEITest(String name) throws Exce... | {
"content_hash": "4fe0558ceaa5b331cfdd4c7738562abe",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 65,
"avg_line_length": 25.571428571428573,
"alnum_prop": 0.6410614525139665,
"repo_name": "eclipse-ee4j/metro-jax-ws",
"id": "3823250438cf3ad45b664472694335bd472802de",
"si... |
import DS from 'ember-data';
import AjaxServiceSupport from 'ember-ajax/mixins/ajax-support';
const { JSONAPIAdapter } = DS;
export default JSONAPIAdapter.extend(AjaxServiceSupport, {
namespace: 'api',
ajaxOptions() {
const hash = this._super(...arguments);
hash.headers = {
'X-Silly-Option': 'Hi!'... | {
"content_hash": "c7bbbed7155296da6c1196c832cb495d",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 64,
"avg_line_length": 19.666666666666668,
"alnum_prop": 0.655367231638418,
"repo_name": "ember-cli/ember-ajax",
"id": "38781a9c389980937e678a19508c3140ab294eea",
"size": "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.