text stringlengths 2 1.04M | meta dict |
|---|---|
using com.esendex.sdk.rest;
using com.esendex.sdk.rest.resources;
using NUnit.Framework;
namespace com.esendex.sdk.test.rest.resources
{
[TestFixture]
public class SessionResourceTests
{
[Test]
public void DefaultConstructor()
{
// Arrange
string expectedRes... | {
"content_hash": "a84c976e964ceebce090a740255daf45",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 73,
"avg_line_length": 23.869565217391305,
"alnum_prop": 0.6138433515482696,
"repo_name": "James226/esendex-dotnet-sdk",
"id": "7ce1fabde50a3ae4a65c12074e34fafc58866797",
"... |
<?
// Цепляем шапку сайта
include "templates/includes/header.html";
// Цепляем шаблон первой либо внутренней страниц
include "templates/$template.html";
// Цепляем общий для всех страниц футер
include "templates/includes/footer.html";
?> | {
"content_hash": "5b2efef92fdaa0d58335813911d9a926",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 48,
"avg_line_length": 20.083333333333332,
"alnum_prop": 0.7634854771784232,
"repo_name": "ukraine/madCMS",
"id": "ea47f5a4ecfe6b4e501b53266ef5acb984364054",
"size": "329",... |
'use strict';
// MODULES //
var tape = require( 'tape' );
var proxyquire = require( 'proxyquire' );
var exitCode = require( './../lib/exit_code.js' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof exitCode, 'function', 'main export is a func... | {
"content_hash": "e50739d08c538880c422d6cf3249ab70",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 166,
"avg_line_length": 17.440366972477065,
"alnum_prop": 0.592845870594424,
"repo_name": "stdlib-js/stdlib",
"id": "d49cfb12fb95b7f8bc0367281a11d324815f1500",
"size": "25... |
<?php
namespace Emayk\Ics\Repo\Transaction\Prints;
use Emayk\Ics\Controllers\BaseController;
class Controller extends BaseController{
protected $print;
function __construct(iPrints $Prints)
{
$this->print = $Prints;
}
/**
* Display a listing of the resource.
*
* @return Response
*/
public functio... | {
"content_hash": "fa0841af64fb7fce42a53358b0bd0760",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 53,
"avg_line_length": 14.728260869565217,
"alnum_prop": 0.618450184501845,
"repo_name": "emayk/ics",
"id": "73648a0ba9b47ea133d25188a5badff8e04a3490",
"size": "2058",
"b... |
$(function () {
$('#slickQuiz').slickQuiz();
// set up a "tweet your results" page
});
| {
"content_hash": "6c817f1fe5ea25263a962254a5dc1ea5",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 41,
"avg_line_length": 23.75,
"alnum_prop": 0.5473684210526316,
"repo_name": "laurencebradford/wp-quiz",
"id": "5d8e5e7fff92935b3e948bcb114dac0001ebd40a",
"size": "125",
"... |
package bytecounting
import (
"io/ioutil"
"net"
"sync/atomic"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
var (
req = []byte("Hello There")
resp = []byte("Hello Yourself")
dataLoops = 10
clientTimeout = 25 * time.Millisecond
serverTimeout = 10 * clientTimeout... | {
"content_hash": "c08210a1ba19ee179c06059c583718f8",
"timestamp": "",
"source": "github",
"line_count": 141,
"max_line_length": 105,
"avg_line_length": 27.43262411347518,
"alnum_prop": 0.6336608066184074,
"repo_name": "getlantern/bytecounting",
"id": "507758beeaa9f297d8ca1729ffc23c3ed7536e65",
"siz... |
package com.sun.max.ve.sched;
import java.util.*;
/**
* A ring implementation for the run queue. We implement our own to make sure no allocation
* and no synchronization is done. This works with objects that implement the RingEntry interface,
* which is a doubly-linked list abstraction, i.e., the queue is actuall... | {
"content_hash": "63ee3a84f81b17a0e308dc8cbf55b2de",
"timestamp": "",
"source": "github",
"line_count": 136,
"max_line_length": 98,
"avg_line_length": 24.860294117647058,
"alnum_prop": 0.5397811298432417,
"repo_name": "SnakeDoc/GuestVM",
"id": "392dd3c546aa16adfb589ee792a1745882f52375",
"size": "44... |
'use strict';
var _ = require('lodash');
var chalk = require('chalk');
var gutil = require('gulp-util');
/**
* Interns
*/
var Helpers = require('./helpers.js');
/**
* Constants
*/
var PLUGIN_NAME = 'gulp-angular-translate-extract';
function ExtractTranslations (options, content) {
/* jshint validthis: true *... | {
"content_hash": "a1dfd945802188a12eeac13feed4b523",
"timestamp": "",
"source": "github",
"line_count": 199,
"max_line_length": 231,
"avg_line_length": 43.89447236180904,
"alnum_prop": 0.5223812249570693,
"repo_name": "bcabanes/gulp-angular-translate-extract",
"id": "ed7da8cbdd59d484f7a88b84adba6df9b... |
package com.devbrackets.android.exomediademo.service;
import android.app.PendingIntent;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.Drawable;
import android.support.annotation.Nullable;
import com.devbrackets.android.exomedia.l... | {
"content_hash": "f01c459b10dff8d32ffb61161e802be6",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 134,
"avg_line_length": 31.470588235294116,
"alnum_prop": 0.7078504672897197,
"repo_name": "nguyenhongson03/ExoMedia",
"id": "c20176467412f195b6d2ae8bc15abd160297735b",
"s... |
<?php
class Model_Usersearch extends \Model
{
protected static $_table_name = 'usersearches';
protected static $_properties = array(
'id',
'UserAccount_id',
'search',
'rows',
'active',
'created_at',
'updated_at',
);
}
| {
"content_hash": "75dbb05771e41d5d5088df070ff40468",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 48,
"avg_line_length": 13.277777777777779,
"alnum_prop": 0.6276150627615062,
"repo_name": "hrabbit/newzearch",
"id": "1f746cfd297c5c4c9db4aefd775e2d81f5ec3487",
"size": "23... |
package com.google.schemaorg.core;
/**
* Interface of <a
* href="http://schema.org/MedicalObservationalStudyDesign}">http://schema.org/MedicalObservationalStudyDesign}</a>.
*/
public interface MedicalObservationalStudyDesign extends Enumeration, MedicalEnumeration {}
| {
"content_hash": "bb7558bae529330eca9e89058ac2b385",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 116,
"avg_line_length": 30.444444444444443,
"alnum_prop": 0.7883211678832117,
"repo_name": "google/schemaorg-java",
"id": "972dc5fce7a995c4de00e445b1ddf849136a9d8d",
"size":... |
"""Package loc."""
| {
"content_hash": "24dd88bdae48be2a9db22633e67fec70",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 18,
"avg_line_length": 19,
"alnum_prop": 0.5263157894736842,
"repo_name": "Nachtfeuer/pipeline",
"id": "620e10ea52bb5b463e8fed39a45291c4340541c1",
"size": "19",
"binary": ... |
.class Lcom/samsung/android/settings/wifi/mobileap/WifiApSetDataLimitDialog$1;
.super Ljava/lang/Object;
.source "WifiApSetDataLimitDialog.java"
# interfaces
.implements Landroid/text/TextWatcher;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/samsung/android/settings/wifi/mobil... | {
"content_hash": "8b1d1fa42b34ecd423ba5045618c3dbe",
"timestamp": "",
"source": "github",
"line_count": 141,
"max_line_length": 196,
"avg_line_length": 38.06382978723404,
"alnum_prop": 0.7836780324203466,
"repo_name": "BatMan-Rom/ModdedFiles",
"id": "96f55cb043a3a0270fe15e30c96872e37965785c",
"size... |
using namespace std;
using namespace boost;
#include "script.h"
#include "keystore.h"
#include "bignum.h"
#include "key.h"
#include "main.h"
#include "sync.h"
#include "util.h"
bool CheckSig(vector<unsigned char> vchSig, const vector<unsigned char> &vchPubKey, const CScript &scriptCode, const CTransaction& txTo, unsi... | {
"content_hash": "b5dc4b8ad2a9c3091616bb673c2f99c9",
"timestamp": "",
"source": "github",
"line_count": 1895,
"max_line_length": 181,
"avg_line_length": 33.94195250659631,
"alnum_prop": 0.49107587064676617,
"repo_name": "canadacoin/coin",
"id": "a6fe9f7275a7db616ec6345bbe9a5a2fedf64492",
"size": "6... |
@interface Gist : NSObject {
NSDate *created;
NSString *description, *owner, *repository,*ftype;
NSDictionary *files;
BOOL public;
NSDictionary *fileCache;
NSDictionary *ftypeCache;
NSMutableDictionary *textCache;
}
@property (nonatomic, retain) NSDate *created;
@property (nonatomic, c... | {
"content_hash": "96ea7ffcd431c399b3bf0e54c914d6cf",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 78,
"avg_line_length": 27.766666666666666,
"alnum_prop": 0.7226890756302521,
"repo_name": "Hyacinth/iGist",
"id": "3bd351c9aa8a6ed72522886f73a70c4f4575484d",
"size": "1001"... |
title: Eulerian Cycles
localeTitle: دورات اويلريان
---
## المشكلة 289: دورات Eulerian
هذا هو كعب. [ساعد مجتمعنا على توسيعه](https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/coding-interview-prep/project-euler/problem-289-eulerian-cycles/index.md) .
[سيساعدك دليل النمط السريع هذا على ضمان قب... | {
"content_hash": "f85245711d46cd7d1590b7fdc9973831",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 189,
"avg_line_length": 49.625,
"alnum_prop": 0.7909319899244333,
"repo_name": "otavioarc/freeCodeCamp",
"id": "63eeae75883051ad9d1bfc9f1708f1a739e0aa73",
"size": "498",
"... |
sap.ui.define([
"com/leerbennett/odata/controller/BaseController"
], function(Controller) {
"use strict";
return Controller.extend("com.leerbennett.odata.controller.App", {
});
});
| {
"content_hash": "9e20065c959b340dd7cb533234bc1400",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 67,
"avg_line_length": 18.8,
"alnum_prop": 0.7180851063829787,
"repo_name": "leerbennett/simGame",
"id": "def7f1833d4209bf8a621c792a09589ea2199160",
"size": "188",
"binar... |
import java.io.File;
import java.io.IOException;
import java.security.InvalidParameterException;
import java.util.*;
public class Directory {
private File path;
/** * @var array */
private ArrayList<Directory> directories;
/** * @var array */
private ArrayList<File> files;
public Directory(Fil... | {
"content_hash": "22d8d09f38023897547d4753ce5349c9",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 66,
"avg_line_length": 27.24074074074074,
"alnum_prop": 0.5710401087695445,
"repo_name": "FlavienCollomb/productionJS",
"id": "f72884f402145ef3a83d6d62d5a1261c955a2d81",
"s... |
#ifndef _INC_COMMCTRL
#define _INC_COMMCTRL
#ifndef _WINRESRC_
#ifndef _WIN32_IE
#define _WIN32_IE 0x0501
#else
#if (_WIN32_IE < 0x0400) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0500)
#error _WIN32_IE setting conflicts with _WIN32_WINNT setting
#endif
#endif
#endif
#ifndef _HRESULT_DEFINED
#define _HRESULT... | {
"content_hash": "0b50c502a58e716f79595e5a5952b18a",
"timestamp": "",
"source": "github",
"line_count": 10509,
"max_line_length": 246,
"avg_line_length": 32.38015034732134,
"alnum_prop": 0.659492246159814,
"repo_name": "weolar/miniblink49",
"id": "7276928fdcb570b3863b60bc06795a89fe7fc68e",
"size": ... |
<?php
/**
* Created by PhpStorm.
* Author: Adrian Dumitru
* Date: 4/30/2017 9:55 PM
*/
namespace Qpdb\QueryBuilder\Traits;
use Qpdb\QueryBuilder\Dependencies\QueryException;
use Qpdb\QueryBuilder\Dependencies\QueryHelper;
use Qpdb\QueryBuilder\Dependencies\QueryStructure;
/**
* Trait GroupBy
* @package Qpdb\Q... | {
"content_hash": "cfb92655378e4a5e3957df32cc1d2b31",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 121,
"avg_line_length": 24.2183908045977,
"alnum_prop": 0.6976744186046512,
"repo_name": "adumitru68/QueryBuilder",
"id": "25cb072ed1856f7fa5c111012f28800f2b4fc157",
"size"... |
package com.lazyloris.modeler.impl;
import java.io.FileInputStream;
import java.util.List;
import org.springframework.beans.factory.annotation.Required;
import com.lazyloris.modeler.Env;
import com.lazyloris.modeler.Model;
import com.lazyloris.modeler.ModelAcceptor;
import com.lazyloris.modeler.ModelParser;
import c... | {
"content_hash": "d6f791828f05b82c647bbf799d2c30c4",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 81,
"avg_line_length": 23.666666666666668,
"alnum_prop": 0.7629107981220657,
"repo_name": "hzywind/lazyloris",
"id": "cf2b2c41ad3949bb0496286b4caf8e069b6ac898",
"size": "85... |
package org.apache.lens.lib.query;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import org.apache.hadoop.hive.serde.serdeConstants;
import org.apache.hadoop.io.Text;
import org.testng.Assert;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
/**
* The Class... | {
"content_hash": "d8670615e0b73969636beb6761a9e3a4",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 116,
"avg_line_length": 30.358490566037737,
"alnum_prop": 0.5826600372902424,
"repo_name": "archanah24/lens",
"id": "ac39d8cae11dc89769f40a06274bbbdc338b6493",
"size": "40... |
package org.finra.datagenerator.scaffolding.spark
import java.io.Serializable
import java.nio.file.Paths
import java.util.UUID
import java.util.concurrent.atomic.AtomicInteger
import org.apache.spark.SparkContext
import org.apache.spark.rdd.RDD
import org.apache.spark.storage.StorageLevel
import org.finra.datagenerat... | {
"content_hash": "b45f004267aff6711264a31b6e39b9c2",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 119,
"avg_line_length": 35.09142857142857,
"alnum_prop": 0.6321446018563752,
"repo_name": "yukaReal/DataGenerator",
"id": "a76ad85c6c0f2e419c9023105b27c44ff76eae3b",
"size... |
/* ---------------------------
* VertexDegreeComparator.java
* ---------------------------
* (C) Copyright 2003-2008, by Linda Buisman and Contributors.
*
* Original Author: Linda Buisman
* Contributor(s): Christian Hammer
*
* $Id$
*
* Changes
* -------
* 06-Nov-2003 : Initial revision (LB);
* 07-Jun-2... | {
"content_hash": "f60b10fee9d6921b56c3402297d38078",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 79,
"avg_line_length": 26.28828828828829,
"alnum_prop": 0.5952707333790267,
"repo_name": "j123b567/stack-usage",
"id": "ec88192f64ab6e9208df2abf8e7ff22ef48e060c",
"size": ... |
$html = "<strong>
cup of coffeescript
</strong>";
| {
"content_hash": "2cf2cbf3fcf9c86af3c3b8d0416169e4",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 21,
"avg_line_length": 17.333333333333332,
"alnum_prop": 0.6346153846153846,
"repo_name": "helixbass/copheescript",
"id": "e150992914092798634be8c52330ee9cad1eaf94",
"size":... |
package fi.csc.chipster.auth.resource;
import java.security.Principal;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import fi.csc.chipster.auth.model.ChipsterToken;
import fi.csc.chipster.auth.model.UserToken;
/**
* Wrapper for Chipster tok... | {
"content_hash": "24e5745dc98654cf2e40e1a33b70f913",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 76,
"avg_line_length": 21.346153846153847,
"alnum_prop": 0.7339339339339339,
"repo_name": "chipster/chipster-web-server",
"id": "e15f42776239006083ae59efc32ee100a76949d5",
... |
module Wikirick.Import
( module Export
) where
import Control.Applicative as Export
import Control.Lens as Export
import Control.Monad as Export
import Control.Monad.State as Export
import Data.Default as Export
import Data.Function as Export
import Data.Maybe as Export
import Data.Monoid as Export
import Data.Tex... | {
"content_hash": "6bc3438d234a7db372f740c38cf39f0a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 36,
"avg_line_length": 25.923076923076923,
"alnum_prop": 0.8160237388724035,
"repo_name": "keitax/wikirick",
"id": "cca29b2b95b114b7ce7dbe36308ed11cb8b174a3",
"size": "337"... |
mapamok is a tool for projection mapping originally developed by [Kyle McDonald](http://kylemcdonald.net) during the Guest Research Project v1 at Yamaguchi Center for Arts and Media.
ProCamToolkit is co-developed by [YCAM Interlab](http://interlab.ycam.jp/en). | {
"content_hash": "94584c23d5a8d809ca812e17342080a2",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 182,
"avg_line_length": 87,
"alnum_prop": 0.8007662835249042,
"repo_name": "YCAMInterlab/mapamok",
"id": "044389227df6e7952104bd835a7debb842f5a1fb",
"size": "272",
"binary... |
<?php
namespace SmartCafe\Http;
use GrahamCampbell\Throttle\Http\Middleware\ThrottleMiddleware;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* @var array
*/
protected $middleware = [
... | {
"content_hash": "4292391a1d75129f13e17c8b6aeabe86",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 85,
"avg_line_length": 30.428571428571427,
"alnum_prop": 0.6892018779342723,
"repo_name": "CCU-CSIE-SmartCafe/Backend",
"id": "14696262e25d3a1074779e32b371619c23077bd3",
"s... |
<?php
namespace Proces\CursosBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* CursosVirtuales
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="Proces\CursosBundle\Entity\CursosVirtualesRepository")
*/
class CursosVirtuales
{
/**
* @var integer
... | {
"content_hash": "1b4afb742d5e701854911d340fcbd521",
"timestamp": "",
"source": "github",
"line_count": 237,
"max_line_length": 89,
"avg_line_length": 19.839662447257385,
"alnum_prop": 0.533815397703105,
"repo_name": "WybleTeam/procesAgroWeb",
"id": "90c5616a04addf70878c9c78eba8fd827e10d669",
"size... |
package org.apache.geode.cache.query.cq.dunit;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeTrue;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.awaitility.Awaitility;
import org.junit.Before;... | {
"content_hash": "951f08791a79c56cd53f7831ac1a5e2b",
"timestamp": "",
"source": "github",
"line_count": 202,
"max_line_length": 123,
"avg_line_length": 36.118811881188115,
"alnum_prop": 0.7224506578947368,
"repo_name": "charliemblack/geode",
"id": "2e9fc8a04877bfa8c477f42f60d344aad547ae6c",
"size":... |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
--
-- Stg to C-- code generation: expressions
--
-- (c) The University of Glasgow 2004-2006
--
-----------------------------------------------------------------------------
module StgCmmExpr ( cgExpr ) where
#define FA... | {
"content_hash": "5c1d87d87e4e4a1d8e955c990e1bf65b",
"timestamp": "",
"source": "github",
"line_count": 854,
"max_line_length": 108,
"avg_line_length": 36.81615925058548,
"alnum_prop": 0.6062784262587068,
"repo_name": "spacekitteh/smcghc",
"id": "b2b64f8650866b34729dd08df8c8456065d089c1",
"size": "... |
FROM ubuntu:14.04
MAINTAINER Apaar Shanker <apaar92@gmail.com>
USER root
RUN apt-get update
RUN apt-get install -y build-essential
#RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt-get install -y libstdc++6
# Install python
RUN apt-get install -y python
RUN apt-get install -y build-essential python-dev
... | {
"content_hash": "93dbb944b9a349e499946b26b4077b0f",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 111,
"avg_line_length": 27.94736842105263,
"alnum_prop": 0.7222222222222222,
"repo_name": "auag92/n2dm",
"id": "9ee86e75b52ce4f4f1e894474dc1c951c446def2",
"size": "1062",
... |
package com.igormaznitsa.mvngolang.cvs;
import java.io.File;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.apache.maven.plugin.logging.Log;
import com.igormaznitsa.mvngolang.utils.ProxySettings;
class CvsNone extends AbstractRepo {
CvsNone() {
super("%%%+++none+++%%%");
}
... | {
"content_hash": "cb616cb41b06a82567d347429eece31d",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 198,
"avg_line_length": 30.805555555555557,
"alnum_prop": 0.7529305680793508,
"repo_name": "dantran/mvn-golang",
"id": "e4253de2cea65cb2dc5a5b95d25406afcef890fd",
"size": "... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- From: file:/Users/mattmckenna/AndroidStudioProjects/retrievr/ParseLoginUI/build/intermediates/exploded-aar/com.facebook.android/facebook-android-sdk/3.23.1/res/values-he/values.xml -->
<eat-comment/>
<string name="com_facebook_choose_friends">בחר חברים... | {
"content_hash": "5d824ef135396f1a61f9c83771cbba7b",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 193,
"avg_line_length": 87.80645161290323,
"alnum_prop": 0.7553269654665687,
"repo_name": "matthewcmckenna/retrievr",
"id": "9e340f35b9daa320269788b9ff57c4186abb8c64",
"siz... |
<?php
/**
* @file
* Contains \Drupal\Core\Entity\KeyValueStore\Query\QueryFactory.
*/
namespace Drupal\Core\Entity\KeyValueStore\Query;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Query\QueryException;
use Drupal\Core\Entity\Query\QueryFactoryInterface;
use Drupal\Core\KeyValueStore\KeyValu... | {
"content_hash": "af9143238782ac9a85447f9dd1cf1e39",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 92,
"avg_line_length": 24.05263157894737,
"alnum_prop": 0.7111597374179431,
"repo_name": "ital-lion/Drupal4Lions",
"id": "47de2c58df725f1c8eed4f09f98cfbf6a6c76791",
"size":... |
/*
* This var has to be outside the angular factory, otherwise when
* there are multiple material apps on the same page, each app
* will create its own instance of this array and the app's IDs
* will not be unique.
*/
var nextUniqueId = 0;
/**
* @ngdoc module
* @name material.core.util
* @description
* Util
... | {
"content_hash": "fe376b8f771af4195b5e0443e9f0d2e8",
"timestamp": "",
"source": "github",
"line_count": 892,
"max_line_length": 134,
"avg_line_length": 31.97982062780269,
"alnum_prop": 0.5992778517843371,
"repo_name": "profoundry-us/material",
"id": "e31c4dd7cf294f75b9e4feb19047deb796bc3d8e",
"size... |
var assert = require('chai').assert;
var webdriver = require('selenium-webdriver');
var test = require('selenium-webdriver/testing');
test.describe("user forgets to enter necessary info for foods", function(){
var driver;
this.timeout(10000);
test.beforeEach(function() {
driver = new webdriver.Build... | {
"content_hash": "4130e0fc7090bb6bda36278732e453d8",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 82,
"avg_line_length": 31.75,
"alnum_prop": 0.6510826771653543,
"repo_name": "Cdunagan05/quantified-self",
"id": "444bc6a07152c1a4db7f2eba413f276cb77e5b00",
"size": "2032",... |
class ChangeCommentThreadsScopeToForum < ActiveRecord::Migration[5.0]
def change
add_reference :comment_threads, :forum, foreign_key: true
reversible do |dir|
dir.up do
Case.find_each do |c|
forum = Forum.create(case: c, community: nil)
CommentThread.joins(:card)
... | {
"content_hash": "5ff564b2c74f8f6caa67087a4df8353a",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 69,
"avg_line_length": 28.047619047619047,
"alnum_prop": 0.5568760611205433,
"repo_name": "galahq/gala",
"id": "b3b2e2644805766187ad8c33b3b4b9e35690696e",
"size": "620",
... |
using System;
using System.Collections;
using System.Web;
namespace FluentSecurity.ServiceLocation.LifeCycles
{
internal class HttpSessionLifecycle : ILifecycle
{
public const string CacheKey = "FluentSecurity-HttpSessionCache";
public static Func<bool> HasSessionResolver;
public static Func<IDict... | {
"content_hash": "e77002a9d864bfcca5de6bcf411fa645",
"timestamp": "",
"source": "github",
"line_count": 142,
"max_line_length": 108,
"avg_line_length": 21.676056338028168,
"alnum_prop": 0.6413255360623782,
"repo_name": "kristofferahl/FluentSecurity",
"id": "111e8a1632fbe3bcda1b73354201f120076ec2fa",
... |
#include <gtest/gtest.h>
#include <uavcan/Timestamp.hpp>
TEST(DsdlConst2, Timestamp)
{
using uavcan::Timestamp;
std::cout << &Timestamp::UNKNOWN << std::endl;
}
| {
"content_hash": "8f68f6fe50a1447cb1ab3e41d6036f0b",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 50,
"avg_line_length": 14.5,
"alnum_prop": 0.6666666666666666,
"repo_name": "cvra/uavcan",
"id": "477db1fa75e2ad72da2a5eef4f7fed17fe3ff190",
"size": "244",
"binary": fals... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Test.Utilities... | {
"content_hash": "8fb1366c3bf8119b892f912c51240770",
"timestamp": "",
"source": "github",
"line_count": 1223,
"max_line_length": 161,
"avg_line_length": 18.05233033524121,
"alnum_prop": 0.53184165232358,
"repo_name": "lorcanmooney/roslyn",
"id": "57bc64d65e708e8ea1eb91ecd2be4f020ee1a5ca",
"size": "... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Xylaria striata var. striata
### Remarks
null | {
"content_hash": "30bda9b0fca10df61097c79984e734aa",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 28,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.706766917293233,
"repo_name": "mdoering/backbone",
"id": "b7d9b4f5090d2e069167582047fa1114150e2c5d",
"size": "185"... |
<?php
/**
* Downloadable helper
*
* @category Mage
* @package Mage_Downloadable
* @author Magento Core Team <core@magentocommerce.com>
*/
class Mage_Downloadable_Helper_Data extends Mage_Core_Helper_Abstract
{
/**
* Check is link shareable or not
*
* @param Mage_Downloadable_Model... | {
"content_hash": "3db0da8c0d7c7fc48b3a54a8bc22760c",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 121,
"avg_line_length": 30.59375,
"alnum_prop": 0.6210418794688458,
"repo_name": "melvyn-sopacua/magedepot",
"id": "4221c8fc22cd6db225902119244d67e6c2b14d75",
"size": "1940... |
namespace Mgc {
// squared distance measurements
MAGICFM Real SqrDistance (const Triangle3& rkTri,
const Parallelogram3& rkPgm, Real* pfTriP0 = NULL, Real* pfTriP1 = NULL,
Real* pfPgmP0 = NULL, Real* pfPgmP1 = NULL);
// distance measurements
MAGICFM Real Distance (const Triangle3& rkTri, const Parallelogram... | {
"content_hash": "9adb2ae85c5baff573ff56a01ae19a0c",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 76,
"avg_line_length": 24.05263157894737,
"alnum_prop": 0.7067833698030634,
"repo_name": "OLR-xray/XRay-NEW",
"id": "a56d9649d1c90dde99c69d4a5130e967290bed1b",
"size": "105... |
This is the (partially) documented public API for Homebrew.
The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.
You may also find the [Formula C... | {
"content_hash": "d0669dffcd78314f8b9ba89924f0bf04",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 225,
"avg_line_length": 64.42857142857143,
"alnum_prop": 0.7804878048780488,
"repo_name": "mtigas/homebrew",
"id": "562335de498cf283ed2e3cec004ff6f98edbc4b5",
"size": "476",... |
<?php
use \yii\helpers\Html;
use \yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $products common\models\Product[] */
?>
<div class="breadcrumb">
<div class="container">
<div class="breadcrumb-inner">
<ul class="list-inline list-unstyled">
<li><a href="#">Home</a></li>
<li class='active'... | {
"content_hash": "287a4c69b9b36b679b689686c66a8882",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 203,
"avg_line_length": 36.15819209039548,
"alnum_prop": 0.51828125,
"repo_name": "ecodevsolution/md",
"id": "274b3c96c91445aa523a45b19b4989fe6accea3b",
"size": "6400",
... |
class Solution(object):
def maxProfit(self, prices, fee):
"""
:type prices: List[int]
:type fee: int
:rtype: int
"""
hold, not_hold = None, 0
for p in prices:
hold, not_hold = max(hold, not_hold - p - fee), max(not_hold, None if hold is None else h... | {
"content_hash": "3951c59b33307cc0218adf30feead9c2",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 109,
"avg_line_length": 33.09090909090909,
"alnum_prop": 0.5247252747252747,
"repo_name": "ckclark/leetcode",
"id": "be308ed80dab3a60b42aa4b10814f2d675614187",
"size": "364... |
package com.spotify.helios.master.resources;
import static javax.ws.rs.core.MediaType.APPLICATION_JSON;
import com.codahale.metrics.annotation.ExceptionMetered;
import com.codahale.metrics.annotation.Timed;
import com.spotify.helios.master.MasterModel;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.... | {
"content_hash": "ccb204aa0f6ff4529dc942797e2e27d6",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 58,
"avg_line_length": 21.444444444444443,
"alnum_prop": 0.7383419689119171,
"repo_name": "spotify/helios",
"id": "fdb85183fe1079b1e44d5fabaebd1150dc5ea9bc",
"size": "1419"... |
package com.virtualcoinclub.common;
import java.util.Enumeration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletRequest;
/**
* <h1>Common Utilities for front and back end</h1>
*
* Created for convenience but more specifically to utilize the same
* member provided... | {
"content_hash": "245e589add6efe91f4cdc0a6dcc7860b",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 82,
"avg_line_length": 29.023529411764706,
"alnum_prop": 0.6570733684637211,
"repo_name": "virtualcoinclub/common",
"id": "0508f5a9abd52f8dfc6998b8409279b8e6930618",
"size"... |
using System;
class Fort
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
// Draw first line
int towerLenght = n / 2;
int betweenTowers = (2 * n) - (2 * towerLenght) - 4;
string firstLine = "/" + new string('^', towerLenght) + "\\"
... | {
"content_hash": "b783a5004d998986c7cb12ff0bec45c1",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 86,
"avg_line_length": 34.31707317073171,
"alnum_prop": 0.5081734186211798,
"repo_name": "andreykata/SoftUni",
"id": "5687a05f94951012f91c367784d064428a9aa52f",
"size": "14... |
package org.locationtech.geomesa.convert.scripting
import java.io.File
import com.typesafe.config.ConfigFactory
import org.junit.runner.RunWith
import org.locationtech.geomesa.convert.{DefaultCounter, EvaluationContextImpl, SimpleFeatureConverters}
import org.locationtech.geomesa.utils.geotools.SimpleFeatureTypes
i... | {
"content_hash": "6751fd6ddf31cdea3f8aa7b107e5b0f9",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 127,
"avg_line_length": 39.38053097345133,
"alnum_prop": 0.5555056179775281,
"repo_name": "ddseapy/geomesa",
"id": "7494fe76d99200c098df57bce12f0f4e6abb168c",
"size": "491... |
var async = require('async');
var concurrencyCount = 0;
var fetchUrl = function(url, callback){
var delay = parseInt(111);
concurrencyCount++;
console.log('async num is ', concurrencyCount, 'now fetching', url, 'used' + delay + 'ms');
setTimeout(function(){
concurrencyCount--;
callback(null, url + '... | {
"content_hash": "6ab1440e6946f5599f18ea9994cf45e7",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 92,
"avg_line_length": 23.84,
"alnum_prop": 0.62248322147651,
"repo_name": "EyEder/A_Node",
"id": "46cbb3a8340d35e41bfce9a1fa35a89b5b916a60",
"size": "596",
"binary": fal... |
<?php namespace Anomaly\RepeaterFieldType\Command;
use Anomaly\RepeaterFieldType\RepeaterFieldType;
use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
use Anomaly\Streams\Platform\Entry\EntryCollection;
use Anomaly\Streams\Platform\Field\Contract\FieldInterface;
use Anomaly\Streams\Platform\Field\Contract\Fie... | {
"content_hash": "33745d8cb375c6a657d5674765fbc4f3",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 88,
"avg_line_length": 28.438356164383563,
"alnum_prop": 0.621868978805395,
"repo_name": "fannan1991/pyrocms",
"id": "8ebec308f37ed3de69762678cea9c657d57d1adf",
"size": "20... |
<?php include (DIR_APPLICATION.'language/en-gb/extension/d_visual_designer_module/row.php'); | {
"content_hash": "8586efb202e41fa95a18413d4cee006b",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 92,
"avg_line_length": 92,
"alnum_prop": 0.782608695652174,
"repo_name": "Dreamvention/2_d_visual_designer",
"id": "4219b11fb0b272cd0e69096f257d4c8e7f3c6736",
"size": "92",
... |
package extract
import (
"archive/tar"
"context"
"fmt"
"io"
"math"
"os"
"path"
"path/filepath"
"regexp"
"strconv"
"strings"
"github.com/golang/glog"
"github.com/spf13/cobra"
"github.com/docker/distribution"
dockerarchive "github.com/docker/docker/pkg/archive"
digest "github.com/opencontainers/go-dige... | {
"content_hash": "0c13dcebab3b6b9f21dae7bd56d73dc8",
"timestamp": "",
"source": "github",
"line_count": 703,
"max_line_length": 243,
"avg_line_length": 30.412517780938835,
"alnum_prop": 0.6686623012160898,
"repo_name": "kargakis/origin",
"id": "3af670538d4e4f4945a1c11b6b6d82fb52474ef4",
"size": "21... |
package com.jxd.android.bookinventtory.bean;
import io.realm.RealmModel;
import io.realm.RealmObject;
import io.realm.annotations.RealmClass;
/**
* 图书盘点
* Created by Administrator on 2017/10/17.
*/
@RealmClass
public class ShelfBookScanBean implements RealmModel {
private String title;
private String barc... | {
"content_hash": "1cc8e2853ac762829180de45eeec8132",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 55,
"avg_line_length": 21,
"alnum_prop": 0.6201465201465202,
"repo_name": "jxdong1013/bookinventory",
"id": "577e0a27b8901851282783433ef072283019b34b",
"size": "2746",
"... |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>org.robolectric Class Hierarchy</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="tree: package: org.robolectric">
<meta name="generator" content="javadoc/PackageTree... | {
"content_hash": "fc902b2f3f6f2ffe9bf97405b08f15e4",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 449,
"avg_line_length": 58.561797752808985,
"alnum_prop": 0.7238104374520338,
"repo_name": "robolectric/robolectric.github.io",
"id": "43f1db673a0c32f9fe822792048880184e62e3... |
<?php
// require config file
require_once('../config.php');
$res = $conn->query("SELECT * FROM types;");
$array = array();
while ($row = mysqli_fetch_array($res)) {
$array[] = $row['type'];
}
echo json_encode($array);
$conn->close();
?>
| {
"content_hash": "5440d8408022ab685c59ac5d32d74f5c",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 44,
"avg_line_length": 15.375,
"alnum_prop": 0.5853658536585366,
"repo_name": "wearska/daksports",
"id": "229c916414ef1e9cd7a42beea846c4697b05e996",
"size": "246",
"binar... |
#pragma once
#include <aws/kms/KMS_EXPORTS.h>
#include <aws/kms/KMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/kms/model/DataKeySpec.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace KMS
{
name... | {
"content_hash": "621c737c328944343ae72b1cbf008d09",
"timestamp": "",
"source": "github",
"line_count": 576,
"max_line_length": 214,
"avg_line_length": 62.60243055555556,
"alnum_prop": 0.688094511772373,
"repo_name": "cedral/aws-sdk-cpp",
"id": "31ea4472422df76f6ba8073790452538576932d1",
"size": "3... |
package io.subutai.core.environment.api.exception;
/**
* Thrown if general error occurred in environment manager
*/
public class EnvironmentManagerException extends Exception
{
public EnvironmentManagerException( final String message, final Throwable cause )
{
super( message, cause );
}
pu... | {
"content_hash": "c95dd5b900eec40861e4bf92bcd7d910",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 85,
"avg_line_length": 21.210526315789473,
"alnum_prop": 0.7022332506203474,
"repo_name": "subutai-io/Subutai",
"id": "b1fa664454402f0bb207e69d27af564177043320",
"size": "4... |
package org.apache.syncope.core.spring.security;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List;
import org.apache.syncope.common.lib.policy.DefaultPasswordRuleConf;
import org.apache.syncope.core.provisioning.api.seriali... | {
"content_hash": "94d55fd027a2883b2b71a2729d689cf7",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 109,
"avg_line_length": 42.625,
"alnum_prop": 0.7495112414467253,
"repo_name": "apache/syncope",
"id": "576b5a3686bf525645bbe46a3b0e40066a5a4b3e",
"size": "4899",
"binary... |
package de.adesso.jenkinshue.exception;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
*
* @author wennier
*
*/
@ResponseStatus
public class LampAlreadyExistsException extends RuntimeException {
private static final long serialVersionUID = -4414373881766460981L;
public LampAlreadyExistsE... | {
"content_hash": "b2ad6eb9d94520695e17871bfc809d7c",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 80,
"avg_line_length": 23.05263157894737,
"alnum_prop": 0.771689497716895,
"repo_name": "adessoAG/JenkinsHue",
"id": "0b6e07460ed92c2a41499bc12dcea9f59359340a",
"size": "43... |
package org.switchyard.component.camel.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.util.Ar... | {
"content_hash": "d73b2b08a95992b8b8d770aafef0f27c",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 116,
"avg_line_length": 40.247191011235955,
"alnum_prop": 0.7188721384701284,
"repo_name": "igarashitm/switchyard",
"id": "2e7497bd2e58e3b847ae77ed50926e05ad129032",
"size"... |
package seedu.watodo.commons.util;
import static org.junit.Assert.assertNotNull;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public class AppUtilTest {
@Rule
public ExpectedException thrown = ExpectedException.none();
@Test
public void getImage_exitingI... | {
"content_hash": "25176dbbc5ba706a8bfb31b5ab541232",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 67,
"avg_line_length": 19.17241379310345,
"alnum_prop": 0.7050359712230215,
"repo_name": "HQching/main",
"id": "c3ad85c962c15fcef5859ac055826b36a2abaf1d",
"size": "556",
... |
"use strict";
module.exports = function(sequelize, DataTypes) {
var Order = sequelize.define('Order', {
customerName: {type: DataTypes.STRING, allowNull: false},
productCode: {type: DataTypes.STRING, allowNull: false},
unitsOrdered: {type: DataTypes.INTEGER, allowNull: false},
unitPrice: {type: Dat... | {
"content_hash": "cd486c4701a6b73ed503b88b36754f89",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 79,
"avg_line_length": 30.6,
"alnum_prop": 0.6993464052287581,
"repo_name": "googleworkspace/sheets-api-codelab",
"id": "ad25fd7f375cb03eae8b940cfd41af77f797fcaa",
"size": ... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Candy Crusher</string>
</resources> | {
"content_hash": "a938698608fbb16a05a82f456ed0128c",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 50,
"avg_line_length": 28.5,
"alnum_prop": 0.6754385964912281,
"repo_name": "tamzi/sophia",
"id": "2d1daacf9f3c690ca70b01c32a85455463abdd30",
"size": "114",
"binary": fals... |
<resources>
<string name="app_name">CaTo</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
<string name="action_settings">Settings</string>
<string name="title_activity_maps">Map</string>
<str... | {
"content_hash": "9cb9e7c7f1faa9989cb6e5235343bb4c",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 100,
"avg_line_length": 61.596638655462186,
"alnum_prop": 0.7085948158253752,
"repo_name": "arifinfrds/CaTo",
"id": "b2c6e878647da0d7e240db2b3c128d3babcaca1b",
"size": "73... |
<?php
namespace Oro\Bundle\CalendarBundle\Tests\Functional;
use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase;
/**
* @dbIsolation
*/
class ControllersTest extends WebTestCase
{
const DEFAULT_USER_CALENDAR_ID = 1;
protected function setUp()
{
$this->initClient([], $this->generateBasicAuthHead... | {
"content_hash": "281c1e3534ece23c26d000ea526635df",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 104,
"avg_line_length": 29.341463414634145,
"alnum_prop": 0.600997506234414,
"repo_name": "trustify/oroplatform",
"id": "1dde1ffa879f0395711c59ba38b0bcaacaf5e547",
"size": ... |
Tutorials and examples for rosserial_tivac package.
## Building procedure:
```
catkin_make rosserial_tivac_tutorials_generate_messages
source devel/setup.bash
catkin_make
```
## Tutorials and examples:
### chatter
Small demo for the TM4C123GXL Launchpad.
It uses the UART on the debug USB port to communicate with ro... | {
"content_hash": "4c1ea437d3051649b38eb60ac8c73cce",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 174,
"avg_line_length": 40.44642857142857,
"alnum_prop": 0.7849889624724061,
"repo_name": "robosavvy/rosserial_tivac_tutorials",
"id": "923848867785d6d3dd338ddcacbe0447491c31... |
<?php
namespace AclModule;
use Nette\Application\UI\Form;
/**
* Resources
*
*/
class ResourcesPresenter extends \BasePresenter
{
/**
* Init method
*/
public function startup() {
parent::startup();
$this->checkAccess();
}
/******************
... | {
"content_hash": "06136744baa6ca36ea8cd542df1d84f3",
"timestamp": "",
"source": "github",
"line_count": 159,
"max_line_length": 118,
"avg_line_length": 35.43396226415094,
"alnum_prop": 0.4639687610933617,
"repo_name": "iguana007/gui-for-ACL-NETTE-2.0",
"id": "a200f5cf1512d864db8c36d5866c67effb442245"... |
<?php
namespace Google\Service\AndroidEnterprise;
class WebAppIcon extends \Google\Model
{
/**
* @var string
*/
public $imageData;
/**
* @param string
*/
public function setImageData($imageData)
{
$this->imageData = $imageData;
}
/**
* @return string
*/
public function getImage... | {
"content_hash": "bf9981e4dde52be2df6de970f722db5a",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 81,
"avg_line_length": 17.6,
"alnum_prop": 0.6723484848484849,
"repo_name": "googleapis/google-api-php-client-services",
"id": "379b3eb8f152a7378b171fa4690ad95cd591de12",
"... |
from django.core.urlresolvers import reverse
from django.core.urlresolvers import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from horizon import exceptions
from horizon import forms
from horizon import tables
from horizon import tabs
from horizon.utils import memoized
from horizon import work... | {
"content_hash": "541ec4a3391fe4d8ccb68eebc9f93108",
"timestamp": "",
"source": "github",
"line_count": 308,
"max_line_length": 79,
"avg_line_length": 38.90584415584416,
"alnum_prop": 0.5940081782525244,
"repo_name": "kogotko/carburetor",
"id": "954b5e4a1bbfedf33154a3bf474005b5796684e6",
"size": "1... |
'use strict';
/**
* @class
* Initializes a new instance of the ResourceMetricName class.
* @constructor
* Name of a metric for any resource .
*
* @member {string} [value] metric name value.
*
* @member {string} [localizedValue] Localized metric name value.
*
*/
class ResourceMetricName {
constructor() {
... | {
"content_hash": "36a058503b830051f84e3972be276b15",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 65,
"avg_line_length": 19.910714285714285,
"alnum_prop": 0.5282511210762332,
"repo_name": "AuxMon/azure-sdk-for-node",
"id": "bbef3a81c0c94da696aa93c015ad11a419d07353",
"si... |
/**
* This class hierarchy was generated from the Yang module hcta-epc
* by the <a target="_top" href="https://github.com/tail-f-systems/JNC">JNC</a> plugin of <a target="_top" href="http://code.google.com/p/pyang/">pyang</a>.
* The generated classes may be used to manipulate pieces of configuration data
* with NET... | {
"content_hash": "13eb4e611075c6d09a4626e4851f6489",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 172,
"avg_line_length": 77.1875,
"alnum_prop": 0.7238866396761133,
"repo_name": "jnpr-shinma/yangfile",
"id": "e1a80537ad18b87129ffbf84344a06f632ea3c1d",
"size": "1235",
... |
<?
require_once 'data.php';
class Member extends BaseObject
{
}
| {
"content_hash": "1e58005aa61a06e38fcfc3939d47069f",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 31,
"avg_line_length": 9.571428571428571,
"alnum_prop": 0.6865671641791045,
"repo_name": "n02647459/agora",
"id": "698ca7994b54ec56cb84ed63a903c9f829c6c43e",
"size": "67",
... |
$modulePath = Resolve-Path -Path "$PSScriptRoot\..\..\.." | Select-Object -ExpandProperty Path
$moduleName = Resolve-Path -Path "$PSScriptRoot\..\.." | Get-Item | Select-Object -ExpandProperty BaseName
Remove-Module -Name $moduleName -Force -ErrorAction SilentlyContinue
Import-Module -Name "$modulePath\$moduleName" -F... | {
"content_hash": "d0ad001222f5f6788749753ab32cc177",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 127,
"avg_line_length": 38.991150442477874,
"alnum_prop": 0.6211983658647299,
"repo_name": "claudiospizzi/SecurityFever",
"id": "b8002bdd0ad8aff1e28a05d0ed52d3132bceefc0",
... |
#include <map>
#include "tensorflow/core/common_runtime/function.h"
#include "tensorflow/core/framework/dataset.h"
#include "tensorflow/core/framework/partial_tensor_shape.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/kernels/data/captured_function.h"
#include "tensorflow/core/kernels/dat... | {
"content_hash": "c1205ac306b8738ae3ffdaa111cbe712",
"timestamp": "",
"source": "github",
"line_count": 526,
"max_line_length": 80,
"avg_line_length": 41.450570342205324,
"alnum_prop": 0.5683162867495298,
"repo_name": "jbedorf/tensorflow",
"id": "49122807b28aae48b77c1ead3be1f9e4021730ec",
"size": "... |
package edu.mit.kacquah.deckviewer.action.exec;
import java.awt.Point;
import java.util.LinkedList;
import processing.core.PApplet;
import edu.mit.kacquah.deckviewer.deckobjects.FlyingObject;
import edu.mit.kacquah.deckviewer.environment.Deck;
import edu.mit.kacquah.deckviewer.environment.ParkingRegion;
import edu.mi... | {
"content_hash": "0ca5ba7504736cf5bed8e995db96ea35",
"timestamp": "",
"source": "github",
"line_count": 240,
"max_line_length": 122,
"avg_line_length": 32.5875,
"alnum_prop": 0.6899373481651963,
"repo_name": "MUG-CSAIL/DeckViewer",
"id": "5106b3659851408d1a0210b2a2036474d4fe0b4c",
"size": "7821",
... |
* [#3](https://github.com/evangelischeomroep/npo-api-interceptor/pull/3) Add possibility to pass in a date (for easier testing), add tests
## 1.2.0 (March 3, 2017)
* [#2](https://github.com/evangelischeomroep/npo-api-interceptor/pull/2) Remove the need to polyfill Object.assign()
* [#1](https://github.com/evangelisch... | {
"content_hash": "3f79b3408918c44c8cc6020b7f861191",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 138,
"avg_line_length": 30.608695652173914,
"alnum_prop": 0.7258522727272727,
"repo_name": "evangelischeomroep/npo-api-interceptor",
"id": "f60e1866291e788b4d4204a16e91a1cc0a... |
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:ClientLibraryFolder"
categories="apps.pokegolure.manage"
dependencies="[handlebars,granite.ui.coral.foundation]"/>
| {
"content_hash": "8233d59643f925d790f2fa1e141c274e",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 89,
"avg_line_length": 55.2,
"alnum_prop": 0.7065217391304348,
"repo_name": "mickleroy/aem-pokego-lure-client",
"id": "a200430f8cf87a3759cb99172079d16950056ef5",
"size": "27... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>second-page</title>
<script src="trigger-console-messages.js"></script>
</head>
<body>
<h1>Second page</h1>
<button id="triggerConsoleMessages2" onclick="triggerConsoleMessages()">Trigger console messages</button>
</body>
</html>
| {
"content_hash": "642623bed0dd083638877646a3e96991",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 105,
"avg_line_length": 26,
"alnum_prop": 0.6955128205128205,
"repo_name": "AndreyBelym/testcafe",
"id": "5ace07db84bd869ca8bf31b90583d01c9cfc1ce4",
"size": "312",
"binar... |
FROM balenalib/orangepi-plus2-debian:buster-build
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
\
# .NET Core dependencies
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu63 \
libssl1.1 \
libstdc++6 \... | {
"content_hash": "b5717a7fe02f2862bfff4f977021114c",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 682,
"avg_line_length": 53.40425531914894,
"alnum_prop": 0.702390438247012,
"repo_name": "nghiant2710/base-images",
"id": "f95dfd12219da2952bb56b70cf9555047cf3dac0",
"size"... |
(function() {
'use strict';
angular
.module('mainApp')
.controller('JhiLanguageController', JhiLanguageController);
JhiLanguageController.$inject = ['$translate', 'JhiLanguageService', 'tmhDynamicLocale'];
function JhiLanguageController ($translate, JhiLanguageService, tmhDynamicLocal... | {
"content_hash": "a85dbceec8a1c9a81e8df58c8e353342",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 93,
"avg_line_length": 27.84,
"alnum_prop": 0.6264367816091954,
"repo_name": "jaxio/jhipser-lab",
"id": "52251fe8bcf393f1cf62e1d1a765b6a6c3b0f2dd",
"size": "696",
"binary... |
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = fac... | {
"content_hash": "2c9daa50b922d2f38ad0974834ad3327",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 221,
"avg_line_length": 33.30337078651685,
"alnum_prop": 0.6656545209176788,
"repo_name": "hironaokato/genkeimodelsio",
"id": "ae98ac96faa3deaf4448551112eafd4400b28541",
"s... |
package com.jakewharton.u2020.data;
import android.app.Application;
import android.content.SharedPreferences;
import android.net.Uri;
import com.jakewharton.u2020.data.api.ApiModule;
import com.squareup.okhttp.HttpResponseCache;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.picasso.OkHttpDownloader;
imp... | {
"content_hash": "a4dd6e61de2013a9ea223590db7ec4d3",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 90,
"avg_line_length": 31,
"alnum_prop": 0.7250132205182444,
"repo_name": "natuan241/u2020",
"id": "55e27a3a59516e9b9d41c2742ad5312c0bfbf87b",
"size": "1891",
"binary": f... |
/* @flow */
import express, { Router } from 'express';
const app = express();
// $FlowExpectedError property `foo` Property not found in Application:
app.foo();
app.locals.title = 'My Express App';
// $FlowExpectedError Symbol: This type is incompatible with string
app.locals[Symbol('bad')] = 'Should not work';
//... | {
"content_hash": "3f01428a3ccfff234d1f4e6ce0273ec1",
"timestamp": "",
"source": "github",
"line_count": 158,
"max_line_length": 124,
"avg_line_length": 28.240506329113924,
"alnum_prop": 0.6317794710891976,
"repo_name": "splodingsocks/FlowTyped",
"id": "0af5c3fec412281c81ec401131c2ecc3bcb1390f",
"si... |
require 'yaml'
module Bitcoin
# Network parameter class
class ChainParams
attr_reader :network
attr_reader :magic_head
attr_reader :message_magic
attr_reader :address_version
attr_reader :p2sh_version
attr_reader :bech32_hrp
attr_reader :privkey_version
attr_reader :extended_privk... | {
"content_hash": "f1ff666541f01d4b4b7a217a5af4e223",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 85,
"avg_line_length": 24.555555555555557,
"alnum_prop": 0.6631473102061337,
"repo_name": "haw-itn/bitcoinrb",
"id": "029ccf27cd4919ad335f52b4010e017551319ffc",
"size": "19... |
#ifndef VULKAN_CORE_H_
#define VULKAN_CORE_H_ 1
/*
** This header is generated from the Khronos Vulkan XML API Registry.
**
*/
#ifdef __cplusplus
extern "C" {
#endif
#define VK_VERSION_1_0 1
#include "vk_platform.h"
#define VK_DEFINE_HANDLE(object) typedef struct object##_T* object;
#ifndef VK_USE_64_BIT_PTR... | {
"content_hash": "fddf47092ff9d40d92b16be3afd9750d",
"timestamp": "",
"source": "github",
"line_count": 16023,
"max_line_length": 562,
"avg_line_length": 50.26237283904388,
"alnum_prop": 0.7038805295559468,
"repo_name": "Unarmed1000/RAIIGen",
"id": "b7fddd19060055dddf101cc1019dccb197f089b3",
"size"... |
.class public final Landroid/service/voice/VoiceInteractionSession$Insets;
.super Ljava/lang/Object;
.source "VoiceInteractionSession.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/service/voice/VoiceInteractionSession;
.end annotation
.annotation system Ldalvik/annota... | {
"content_hash": "8d1da3c2a53dbc23aeb97fda080ac8b1",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 121,
"avg_line_length": 25.42105263157895,
"alnum_prop": 0.7556935817805382,
"repo_name": "libnijunior/patchrom_bullhead",
"id": "aab071637f1d05b22abd95abc68336d10d2883a5",
... |
module Init where
import Graphics.Rendering.OpenGL as GL
import Graphics.UI.GLFW as GLFW
import Graphics.Rendering.OpenGL (($=))
initAndRun run = do
initSuccessful <- GLFW.initialize
-- open window
windowSuccessful <- GLFW.openWindow (GL.Size 400 400) [GLFW.DisplayAlphaBits 8] GLFW.Window
GLFW.windowTitle $= ... | {
"content_hash": "c84ce6ca5f1f52bc70926e18e9707e3e",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 99,
"avg_line_length": 31.595238095238095,
"alnum_prop": 0.7045968349660889,
"repo_name": "Stratege/NBody-Simulation",
"id": "d82f638c991be0a7ec9731157188407a38ba2d4f",
"si... |
<!DOCTYPE html>
<html class="minimal">
<title>Canvas test: 2d.canvas.reference</title>
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="minimal.2d.scaled.html" title="2d.scaled">
<link rel="next" href="minimal.2d.canvas.readonly.html" title="2d.canvas.readonly">
<bo... | {
"content_hash": "cbb08d3d6e33490b849c6cd5392b72d6",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 110,
"avg_line_length": 30.25,
"alnum_prop": 0.6749311294765841,
"repo_name": "gameclosure/webgl-2d",
"id": "b1eda65a386dd9057f722ccf6a50c433c1145195",
"size": "726",
"bi... |
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', '... | {
"content_hash": "5e30ffda29fd74a05dda135e5a24cd8c",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 72,
"avg_line_length": 43.375,
"alnum_prop": 0.6397694524495677,
"repo_name": "AlexeySoshin/CatsFeeder",
"id": "7ac6e6e60b80eedfc349be09c9d7b03ccf7d6ba3",
"size": "347",
"... |
/**
* \file x509_csr.h
*
* \brief X.509 certificate signing request parsing and writing
*/
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
*... | {
"content_hash": "328dc575e947fb4dd5b44ab070733219",
"timestamp": "",
"source": "github",
"line_count": 305,
"max_line_length": 160,
"avg_line_length": 34.557377049180324,
"alnum_prop": 0.6161290322580645,
"repo_name": "NXPmicro/mbedtls",
"id": "20a516e026d6c87195de56c260f1d5300372d360",
"size": "1... |
require 'test_helper'
class DocentesControllerTest < ActionController::TestCase
setup do
@docente = docentes(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:docentes)
end
test "should create docente" do
assert_difference('Docente.count') ... | {
"content_hash": "9c3ec60cf36d23e34de2cb76f346cb79",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 235,
"avg_line_length": 29.358974358974358,
"alnum_prop": 0.714410480349345,
"repo_name": "oviedomonica123/conest-encuesta-backend",
"id": "804be103f9a51bfe3c7d6c0172512edf46... |
import 'vs/css!./viewCursors';
import { FastDomNode, createFastDomNode } from 'vs/base/browser/fastDomNode';
import { IntervalTimer, TimeoutTimer } from 'vs/base/common/async';
import { ViewPart } from 'vs/editor/browser/view/viewPart';
import { IViewCursorRenderData, ViewCursor } from 'vs/editor/browser/viewParts/vi... | {
"content_hash": "46fba1161b62cee0a3b2979b741928b7",
"timestamp": "",
"source": "github",
"line_count": 365,
"max_line_length": 167,
"avg_line_length": 31.816438356164383,
"alnum_prop": 0.7170412468784982,
"repo_name": "microlv/vscode",
"id": "deee1d3cac4026aed51206efb67bcbfae792a696",
"size": "119... |
package libnetwork
import (
"container/heap"
"encoding/json"
"fmt"
"net"
"strings"
"sync"
log "github.com/Sirupsen/logrus"
"github.com/docker/libnetwork/datastore"
"github.com/docker/libnetwork/ipamapi"
"github.com/docker/libnetwork/netlabel"
"github.com/docker/libnetwork/options"
"github.com/docker/libne... | {
"content_hash": "82b341153b3242d28e453b9559e30679",
"timestamp": "",
"source": "github",
"line_count": 1104,
"max_line_length": 133,
"avg_line_length": 25.644021739130434,
"alnum_prop": 0.6723535021723005,
"repo_name": "medallia/docker",
"id": "48418bbb8dccd591497271a759cd8a65a8e4eeeb",
"size": "2... |
package java.net;
import java.io.FileDescriptor;
import java.io.IOException;
import java.nio.channels.ServerSocketChannel;
/* J2ObjC removed
import java.security.AccessController;
import java.security.PrivilegedExceptionAction;
*/
/**
* This class implements server sockets. A server socket waits for
* requests t... | {
"content_hash": "8df9c3425b90f35376c7d7a0d2fb348d",
"timestamp": "",
"source": "github",
"line_count": 916,
"max_line_length": 96,
"avg_line_length": 39.243449781659386,
"alnum_prop": 0.6183269813892676,
"repo_name": "mirego/j2objc",
"id": "334314d70823297501bf638ace8bbcb6085712ba",
"size": "37159... |
var spawn = require('child_process').spawn;
var fs = require('fs');
var workingDir = process.env.WORKING_DIR || process.env.PACKAGE_DIR || './';
var args = ['test-packages', '--once', '--driver-package', 'test-in-console', '-p', 10015];
if (typeof process.env.METEOR_RELEASE !== 'undefined' &&
process.env.METEOR_... | {
"content_hash": "6077da31abcbf5beffb776d4bce929dd",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 94,
"avg_line_length": 31.75,
"alnum_prop": 0.6640419947506562,
"repo_name": "mhwheeler/codeship-meteor-packages",
"id": "4f57533f6fb5c473dd94a4af36b6d1429da17885",
"size":... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@mipmap/btn_image_editor_save_pressed"
android:state_pressed="true"/>
<item android:drawable="@mipmap/btn_image_editor_save_normal"/>
</selector> | {
"content_hash": "0e944d197138be48ff2ac6ee3d51db49",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 69,
"avg_line_length": 37,
"alnum_prop": 0.7027027027027027,
"repo_name": "dyzs/YinjiImageEditor",
"id": "0630832eae157039bf66084560f7c8ebe65d5286",
"size": "296",
"binary... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.