text stringlengths 2 1.04M | meta dict |
|---|---|
import copy
import datetime
from django.conf import settings
from django.core.exceptions import FieldError
from django.db.backends import utils as backend_utils
from django.db.models import fields
from django.db.models.constants import LOOKUP_SEP
from django.db.models.query_utils import refs_aggregate
from django.util... | {
"content_hash": "244007c0a21722f97baa5220f4de37d5",
"timestamp": "",
"source": "github",
"line_count": 636,
"max_line_length": 102,
"avg_line_length": 33.611635220125784,
"alnum_prop": 0.6109369883519671,
"repo_name": "edevil/django",
"id": "ac69307edc50010dea00f99b9feebe6820af57dd",
"size": "2137... |
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20170618062058 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema... | {
"content_hash": "7b80d398c9a5cac49bbfa0ab7e621796",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 215,
"avg_line_length": 34.294117647058826,
"alnum_prop": 0.6698113207547169,
"repo_name": "seyfer/crv_video_crawler",
"id": "8b2edea702fcaf756745324e893839bdb80e7b4d",
"si... |
namespace IECore
{
/// The LuminanceOp calculates a primvar representing luminance.
/// \ingroup imageProcessingGroup
class IECORE_API LuminanceOp : public PrimitiveOp
{
public :
IE_CORE_DECLARERUNTIMETYPED( LuminanceOp, PrimitiveOp );
LuminanceOp();
virtual ~LuminanceOp();
StringParameter * colorPrimVarPa... | {
"content_hash": "c3e235057be6eae1ccd71ce2d34fcabc",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 89,
"avg_line_length": 27.65,
"alnum_prop": 0.7836045810729355,
"repo_name": "hradec/cortex",
"id": "492b6d0db4cb5caef2577d6c82f1caa9ea82b7c2",
"size": "3598",
"binary": ... |
namespace Microsoft.Azure.Management.MySQL.FlexibleServers.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// Delegated subnet arguments of a server
/// </summary>
public partial class DelegatedSubnetArguments
{
/// <summary>
/// Initializes a new instance ... | {
"content_hash": "55da45be874742fe2de42149cb0f2a42",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 90,
"avg_line_length": 30.571428571428573,
"alnum_prop": 0.6051401869158879,
"repo_name": "brjohnstmsft/azure-sdk-for-net",
"id": "c8f6b4e8480816d1d0aa0820e3736bfa18394cdd",
... |
<?php
/**
* Customize API: WP_Customize_Header_Image_Setting class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* A setting that is used to filter a value, but will not save the results.
*
* Results should be properly handled using another setting or callback.
*
* @since 3.4.0
*
* ... | {
"content_hash": "1579b8242be5ecf971103fe5d755bae1",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 117,
"avg_line_length": 31.132075471698112,
"alnum_prop": 0.6484848484848484,
"repo_name": "mandino/www.bloggingshakespeare.com",
"id": "e8328a991dbdd7cd4d83d22ba9e1426ac3060... |
SYNONYM
#### According to
Index Fungorum
#### Published in
Syst. orb. veg. (Lundae) (1846)
#### Original name
Sphaeria turbinata Pers.
### Remarks
null | {
"content_hash": "1d3591078b721fe78c49f9e3bf152a14",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 11.923076923076923,
"alnum_prop": 0.6838709677419355,
"repo_name": "mdoering/backbone",
"id": "526252471f30cc78877342bedf45687f6a7d4cae",
"size": "20... |
get_ipython().magic('matplotlib inline')
import theano
floatX = theano.config.floatX
import pymc3 as pm
import theano.tensor as T
import sklearn
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style('white')
from sklearn import datasets
from sklearn.preprocessing import scale
from sklea... | {
"content_hash": "05d9f72da8e78c938cdc078481811959",
"timestamp": "",
"source": "github",
"line_count": 276,
"max_line_length": 367,
"avg_line_length": 37.75,
"alnum_prop": 0.6990114214415971,
"repo_name": "balarsen/pymc_learning",
"id": "ae7bbae0260554fa6379ee5151fc387029011dea",
"size": "10717",
... |
.class Landroid/widget/TableLayout$PassThroughHierarchyChangeListener;
.super Ljava/lang/Object;
.source "TableLayout.java"
# interfaces
.implements Landroid/view/ViewGroup$OnHierarchyChangeListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/widget/TableLayout;
.end ann... | {
"content_hash": "f1538d24bfb854c57d3887f9f70ed52f",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 200,
"avg_line_length": 32.8125,
"alnum_prop": 0.7768707482993197,
"repo_name": "baidurom/reference",
"id": "6892e78246bf8c553e292e1dda536cccbbb2b1e1",
"size": "3675",
"... |
"""
api_model.py
The meta-model of the generated API.
Translation process converts the YANG model to classes defined in this module.
"""
from __future__ import absolute_import
from pyang.statements import TypeStatement
from pyang.types import UnionTypeSpec, PathTypeSpec
class Element(object):
"""
T... | {
"content_hash": "3e89b4b8c25fd841d2bbec271b2a03ac",
"timestamp": "",
"source": "github",
"line_count": 990,
"max_line_length": 113,
"avg_line_length": 30.830303030303032,
"alnum_prop": 0.5555664766398009,
"repo_name": "CiscoDevNet/ydk-gen",
"id": "6677891749f668d2eb0ec5edd8850630cccc5a6a",
"size":... |
import {Component, Directive, View, Output, EventEmitter} from 'angular2/core';
import {
ComponentFixture,
afterEach,
AsyncTestCompleter,
TestComponentBuilder,
beforeEach,
ddescribe,
describe,
dispatchEvent,
fakeAsync,
tick,
expect,
it,
inject,
iit,
xit,
browserDetection
} from 'angular2... | {
"content_hash": "6d0c096d1f6852ceeba7f70eb09c03d1",
"timestamp": "",
"source": "github",
"line_count": 1073,
"max_line_length": 132,
"avg_line_length": 39.57688723205965,
"alnum_prop": 0.5568219281307399,
"repo_name": "willseeyou/angular",
"id": "a2d66e5a08ff8418f5e760921ca5b7903021eb5d",
"size": ... |
<?php
namespace Ortofit\Bundle\BackOfficeFrontBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@... | {
"content_hash": "580e303f3f9417b0fb9d0ee5461768c5",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 131,
"avg_line_length": 31.379310344827587,
"alnum_prop": 0.7230769230769231,
"repo_name": "rsmakota/ortofit_backoffice",
"id": "0c623463bc14326ac13248ea3f90226e02ece3f9",
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.analytics.synapse.artifacts.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.t... | {
"content_hash": "267858deba2d5bd11cacce53b8aae4a5",
"timestamp": "",
"source": "github",
"line_count": 201,
"max_line_length": 87,
"avg_line_length": 26.27363184079602,
"alnum_prop": 0.6470365461086915,
"repo_name": "Azure/azure-sdk-for-java",
"id": "87b31c023858df529a7d569992fe177c33d7d937",
"siz... |
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "f48e8c81bd8731bd6628e1ed68ad250a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 23,
"avg_line_length": 9.076923076923077,
"alnum_prop": 0.6779661016949152,
"repo_name": "mdoering/backbone",
"id": "0080fa40b521fb13f23036f154cdca3790bcd82a",
"size": "184... |
package me.kafeitu.activiti.chapter2;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.runtime.Pro... | {
"content_hash": "a0e7e65b7fd49bc064ccf58d0997d978",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 85,
"avg_line_length": 39.73809523809524,
"alnum_prop": 0.7291791491911325,
"repo_name": "kutala/activiti-in-action-codes",
"id": "fdd37b8356e10dbf8c184a8a70a7b2875e034ca4",
... |
Difficulty: Medium
https://leetcode.com/problems/one-edit-distance/
Given two strings s and t, determine if they are both one edit distance apart.
**Note:**
There are 3 possiblities to satisify one edit distance apart:
1. Insert a character into s to get t
2. Delete a character from s to get t
3. Replace a charac... | {
"content_hash": "3d7c19264c14abbf9782f5e4d6f44c12",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 78,
"avg_line_length": 20.205882352941178,
"alnum_prop": 0.6681222707423581,
"repo_name": "jiadaizhao/LeetCode",
"id": "a389d1b7a56d00b872c03ec246f35c0126f76df0",
"size": "... |
package io.datalayer.algorithm.sort;
import io.datalayer.algorithm.list.ListSorter;
import io.datalayer.algorithm.sort.bubble.BubblesortListSorter;
import io.datalayer.algorithm.sort.insertion.InsertionSortListSorter;
import io.datalayer.algorithm.sort.merge.MergesortListSorter;
import io.datalayer.algorithm.sort.qui... | {
"content_hash": "cc4e1c214c6281ea5a267828f079c1e6",
"timestamp": "",
"source": "github",
"line_count": 141,
"max_line_length": 85,
"avg_line_length": 31.51063829787234,
"alnum_prop": 0.6896241278415485,
"repo_name": "echalkpad/t4f-data",
"id": "3b27bae96394ce4bd81471b8ddcd0ded3ab0fe87",
"size": "5... |
/*
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
without fee, provided that the above copyright notice appear in
all copies and that both that the copyright noti... | {
"content_hash": "b9fed31c47d9ea85b1154cf06002dd97",
"timestamp": "",
"source": "github",
"line_count": 768,
"max_line_length": 161,
"avg_line_length": 58.467447916666664,
"alnum_prop": 0.6650335166915351,
"repo_name": "satlab/bluebox",
"id": "e97e7c9d622b54446ce8cb6f910e324c506387b6",
"size": "450... |
package com.microsoft.bingads.v12.campaignmanagement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for DynamicSearchAd complex type.
*
* <p>The followin... | {
"content_hash": "0e0ae84d340a606137358405e7f7cc9c",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 99,
"avg_line_length": 22.841666666666665,
"alnum_prop": 0.565487048522437,
"repo_name": "bing-ads-sdk/BingAds-Java-SDK",
"id": "775ebb81d98a79c02b562d2558381993d8ab322a",
... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "8a578f76244eb14682c7857df5a29c41",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "44c27bc49ee9e89f0ddcc5e5c3c2d8e5fda9afd2",
"size": "190... |
cp ./podiobooks-centos-base/epel.repo /etc/yum.repos.d/epel.repo
cp ./podiobooks-centos-base/postgresql.repo /etc/yum.repos.d/postgresql.repo
cp ./podiobooks-centos-base/CentOS-fasttrack.repo /etc/yum.repos.d/CentOS-fasttrack.repo
# Update centos
yum update -y --nogpgcheck && yum upgrade -y --nogpgcheck
# Install com... | {
"content_hash": "c2fa3902f1ca2baff59cd96bd6a2d8ca",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 124,
"avg_line_length": 29.23972602739726,
"alnum_prop": 0.7531037713750293,
"repo_name": "podiobooks/podiobooks_docker",
"id": "0940e91bc37a5e06afd39bb21cb546f20e00c62f",
... |
import urllib
from time import time
from unittest import main, TestCase
from test.unit import FakeLogger
from copy import deepcopy
import mock
from swift.common import internal_client
from swift.obj import expirer
def not_random():
return 0.5
last_not_sleep = 0
def not_sleep(seconds):
global last_not_sl... | {
"content_hash": "0c9b4d9c8ed9e1371bde23a596e68b65",
"timestamp": "",
"source": "github",
"line_count": 686,
"max_line_length": 79,
"avg_line_length": 34.72886297376093,
"alnum_prop": 0.5393720617864338,
"repo_name": "lielongxingkong/windchimes",
"id": "493de0ff2455e2944f449080b9d3425311670475",
"s... |
## About
Simple jQuery 3 plugin to enable autocomplete suggestions for inputs. Uses a JSON-based API as the datasource. Works with either plain HTML or Bootstrap form controls.

[DEMO](https://tihauan.github.io... | {
"content_hash": "0910b85d6f71496abacfd8c7e92eabcf",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 167,
"avg_line_length": 40.19230769230769,
"alnum_prop": 0.645933014354067,
"repo_name": "Tihauan/jquery-autolist",
"id": "9153eddd344daa25f35a846a1c8785652b19d4c7",
"size"... |
cask :v1 => 'mesasqlite' do
version '4.0.8'
sha256 '16741eb458127db0ce72e71824ddf938ee7b30a8b6ea4bc0e82357aab5b3359b'
url "http://www.desertsandsoftware.com/DEMOS/MesaSQLite#{version.gsub('.','')}.zip"
homepage 'http://www.desertsandsoftware.com/wordpress/?page_id=17'
license :unknown # todo: change licen... | {
"content_hash": "13ab039e5026c95091480e42f0339379",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 115,
"avg_line_length": 42.2,
"alnum_prop": 0.7535545023696683,
"repo_name": "donbobka/homebrew-cask",
"id": "57e8459113f809ba775208179b20587d26244900",
"size": "422",
"b... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "c219646dd2c33cdbec4a04a8cf4f63aa",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "cef1ddee9355801aea9b3288849cb63897cc5237",
"size": "206... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "2061411e4ff58b07b54fc1c81274de85",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "93adf2f967116bc9acd8f8f31931d6c9d764cdd1",
"size": "184... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | {
"content_hash": "610ff5d38f343d01e1547879a4dce4a9",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 142,
"avg_line_length": 33.56363636363636,
"alnum_prop": 0.6996208017334777,
"repo_name": "mpilman/presto",
"id": "5316b6e4ed50a1f1f2f3829f49e2ef9ce45736a8",
"size": "3692... |
from django.conf.urls import include, url
from django.conf import settings
from django.contrib import admin
from wagtail.wagtailadmin import urls as wagtailadmin_urls
from wagtail.wagtaildocs import urls as wagtaildocs_urls
from wagtail.wagtailcore import urls as wagtail_urls
urlpatterns = [
url(r'^django-admin/... | {
"content_hash": "e99bb67ef170abe541d1847fbc84aa80",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 89,
"avg_line_length": 31.025641025641026,
"alnum_prop": 0.7206611570247934,
"repo_name": "RocketPod/wagtail-cookiecutter",
"id": "2c5850b2b058ad04f53e509a6f4f8f62d6093719",
... |
@class PURLog;
@class PUROutput;
typedef void(^PURLogStoreRetrieveCompletionBlock)(NSArray *logs);
@interface PURLogStore : NSObject
+ (instancetype)defaultLogStore;
- (instancetype)initWithDatabasePath:(NSString *)databasePath;
- (BOOL)prepare;
- (void)retrieveLogsForPattern:(NSString *)pattern output:(PUROutput ... | {
"content_hash": "77c458f00fb43b61ccd25ccfb44a8659",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 136,
"avg_line_length": 32.76190476190476,
"alnum_prop": 0.7834302325581395,
"repo_name": "86/puree-ios",
"id": "ff91b9e9e73ec71003aa7b84345de4c09b89e0a9",
"size": "861",
... |
<!--
Copyright 2005-2008 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->... | {
"content_hash": "ed7a27c32ca22df74ce4bf47ced6cc51",
"timestamp": "",
"source": "github",
"line_count": 185,
"max_line_length": 520,
"avg_line_length": 51.2972972972973,
"alnum_prop": 0.6449947312961012,
"repo_name": "brycelelbach/asl",
"id": "b6dc79a5973521306f5d159826877045ef5f8f0f",
"size": "949... |
using UnityEngine;
using System.Collections;
namespace Boardgame
{
public class BattleTheatre : MonoBehaviour
{
void Test()
{
/*
int attackSum;
while (attackSum > 0)
{
var defender = defenders.dequeue();
int defe... | {
"content_hash": "c1b4b895068a5bed77a5274be41510ea",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 65,
"avg_line_length": 20.92,
"alnum_prop": 0.4569789674952199,
"repo_name": "local-minimum/suffertheking",
"id": "61dbe35c14b4118afc30b6551d51b0438336f5f0",
"size": "525",... |
// 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;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeActions;
using Mic... | {
"content_hash": "3374188de114edf22420ec82e50bab34",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 178,
"avg_line_length": 43.5632183908046,
"alnum_prop": 0.6191292875989446,
"repo_name": "nguerrera/roslyn",
"id": "8f67bb218478e82629266ceac12a801117957cbf",
"size": "758... |
<?php
namespace emilkm\tests\asset\value;
/**
* @author Emil Malinov
* @package efxphp
* @subpackage tests
*/
class VoLt32
{
public $property1 = 1;
public $property2 = 'b';
}
| {
"content_hash": "64b66aee8c0812480bb1b3ade19234d3",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 35,
"avg_line_length": 13.733333333333333,
"alnum_prop": 0.587378640776699,
"repo_name": "emilkm/amfext",
"id": "1fe0cf5267fc96b421928a1ac34718fe740abee3",
"size": "454",
... |
namespace nvbio {
namespace bowtie2 {
namespace cuda {
// alloc enough storage for max_size hits
//
inline
uint64 ReadHitsIndex::resize(const uint32 max_size, const bool do_alloc)
{
const uint32 n = 2u*max_size;
if (do_alloc) m_links.resize( n );
return n * sizeof(uint32);
}
// setup the number of input... | {
"content_hash": "690fdd124ca2e93a620ff3a3aba756ba",
"timestamp": "",
"source": "github",
"line_count": 344,
"max_line_length": 109,
"avg_line_length": 31.421511627906977,
"alnum_prop": 0.6650939032287908,
"repo_name": "kimrutherford/nvbio",
"id": "6ea83de702c910c208a226f041e15cf9fb0479dd",
"size":... |
<?php namespace Tuurbo\AmazonPayment\Exceptions;
use Exception;
class InvalidDataException extends Exception {}
| {
"content_hash": "e032e14c1ce96d90a32d69486d411dcb",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 48,
"avg_line_length": 22.8,
"alnum_prop": 0.8245614035087719,
"repo_name": "tuurbo/amazon-payment",
"id": "a11f8304ba483b0543aed5250ea05844c5169751",
"size": "114",
"bina... |
/*
* User: anna
* Date: 29-Jan-2007
*/
package com.intellij.codeInspection.ui.actions;
import com.intellij.codeInspection.*;
import com.intellij.codeInspection.ex.GlobalInspectionContextImpl;
import com.intellij.codeInspection.ex.InspectionManagerEx;
import com.intellij.codeInspection.ex.InspectionToolWrapper;
impo... | {
"content_hash": "08c1b2c95886e26bf88e3c1af2d8360c",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 169,
"avg_line_length": 42.322404371584696,
"alnum_prop": 0.7172369270497095,
"repo_name": "IllusionRom-deprecated/android_platform_tools_idea",
"id": "ac801b70588de3034062f... |
Part 07: Structure inspection
=============================
Especially with larger directory structures one can get confused of how the
directory tree looks like. vfsStream provides a simple utility method to inspect
the directory structure: vfsStream::inspect(). As first parameter it expects a
vfsStreamVisitor - for ... | {
"content_hash": "c9c95e6f6f9a4351ae3d8fbdfaab7044",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 118,
"avg_line_length": 55.63636363636363,
"alnum_prop": 0.7949346405228758,
"repo_name": "mikey179/vfsStream-examples",
"id": "dc02ea4b2fbb832d84709938004eac04f6220626",
"... |
require File.dirname(__FILE__) + '/../../spec_helper'
require File.dirname(__FILE__) + '/fixtures/common'
require File.dirname(__FILE__) + '/shared/new'
describe "Exception.exception" do
it_behaves_like(:exception_new, :exception)
end
describe "Exception" do
it "is a Class" do
Exception.should be_kind_of(Clas... | {
"content_hash": "f040258a83af18b02cdd787546416de6",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 91,
"avg_line_length": 25.211267605633804,
"alnum_prop": 0.7078212290502793,
"repo_name": "benbc/rubyspec",
"id": "78a89275f9c07dbdce4b52e2da5b22e61f6183b3",
"size": "1790"... |
namespace sandbox {
namespace {
#if defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS)
// This is true for Mips O32 ABI.
static_assert(MIN_SYSCALL == __NR_Linux, "min syscall number should be 4000");
#elif defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_64_BITS)
// This is true for MIPS N64 ABI.
static_asse... | {
"content_hash": "a5fe2b9385a13bac2c7d7e5db2d59efa",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 79,
"avg_line_length": 29.138686131386862,
"alnum_prop": 0.654308617234469,
"repo_name": "ric2b/Vivaldi-browser",
"id": "6e31765060e06358b72095a2aed6a69c2e3569fb",
"size":... |
.. confval:: panic_on_snap_error
If there is an error while reading the snapshot file
(at server start), abort.
Type: boolean |br|
Default: true |br|
Dynamic: no |br|
.. confval:: panic_on_wal_error
If there is an error while reading a write-ahead log
file (at server start or to relay to... | {
"content_hash": "12512979d7b1720dcd7b55aa987d3e3e",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 68,
"avg_line_length": 29.296875,
"alnum_prop": 0.6634666666666666,
"repo_name": "condor-the-bird/tarantool",
"id": "fdb89e747d02ffaeecdc0d598afe08893e9a35a0",
"size": "187... |
set -e
# Set up the sandbox
cabal sandbox init
cabal sandbox add-source dna/cupti
cabal sandbox add-source dna/linux-perf-stat
cabal sandbox add-source dna/core
cabal sandbox add-source dna/flow
cabal sandbox add-source kernel/oskar
# Install dependencies into sandbox
cabal install --only-dependencies
# Create link t... | {
"content_hash": "41e690757bfc96b8e5e686b2c29f4814",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 44,
"avg_line_length": 26.5,
"alnum_prop": 0.7978436657681941,
"repo_name": "SKA-ScienceDataProcessor/RC",
"id": "4012bf42ece5f9789c0b24d51edf9e5f8f1a8c68",
"size": "382",
... |
use crate::error::{ExecutionError, Result};
use crate::execution::physical_plan::common::RecordBatchIterator;
use crate::execution::physical_plan::ExecutionPlan;
use crate::execution::physical_plan::{BatchIterator, Partition};
use arrow::array::ArrayRef;
use arrow::compute::array_ops::limit;
use arrow::datatypes::Schem... | {
"content_hash": "5e0a3112809528921ba94be042a73644",
"timestamp": "",
"source": "github",
"line_count": 189,
"max_line_length": 84,
"avg_line_length": 29.746031746031747,
"alnum_prop": 0.5273923870508715,
"repo_name": "renesugar/arrow",
"id": "87e77f97743b6f226889576f206074135f0c735f",
"size": "645... |
interface IConnectionProvider {
getActiveConnection(): Rx.Observable<IConnection>;
dispose(): void;
} | {
"content_hash": "0c5a96b50fe4458053ca8229cfed7e7a",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 54,
"avg_line_length": 27.75,
"alnum_prop": 0.7297297297297297,
"repo_name": "jorik041/ReactiveTrader",
"id": "db2cc5e849f178a8b58394b982143a2a9a503631",
"size": "113",
"b... |
/**
* JobErrorReason.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.adwords.axis.v201601.cm;
public class JobErrorReason implements java.io.Serializable {
private java.lang.String _value_;
private stati... | {
"content_hash": "2fa84687a862ae914827fc2676d6c15e",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 154,
"avg_line_length": 52.46511627906977,
"alnum_prop": 0.7138741134751773,
"repo_name": "gawkermedia/googleads-java-lib",
"id": "4656c65818187a4438d5a2280dfdb7ad0d725333",
... |
/*
This module implements a structure I've called "arena". An arena is a data
container composed of a set of pages. The arena grows automatically when
needed by adding new pages to hold new data. Arenas can be saved and loaded
from files.
*/
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <std... | {
"content_hash": "7aaf4c448589e6201f59084e63dcbf98",
"timestamp": "",
"source": "github",
"line_count": 1080,
"max_line_length": 79,
"avg_line_length": 22.35,
"alnum_prop": 0.6188996602866849,
"repo_name": "rednaga/yara",
"id": "3f37bc5d7bed6bd0d7be6628456fc726667004ec",
"size": "25631",
"binary"... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Request Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset="utf-8">
<script src="../js/jquery.min.js" defer></script>
<scrip... | {
"content_hash": "6517a636e1e2eb0e3f7b8a7f60303a91",
"timestamp": "",
"source": "github",
"line_count": 2825,
"max_line_length": 710,
"avg_line_length": 53.97982300884956,
"alnum_prop": 0.4613982281153889,
"repo_name": "antigp/Alamofire",
"id": "b9ef48437b8ac14ddb44742655fe1bf6b19b48c2",
"size": "1... |
function method() {
(function removeListeners() {
log(removeListeners);
})();
} | {
"content_hash": "26f07cd6d3063505a28c7cd1d80e6939",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 31,
"avg_line_length": 17.4,
"alnum_prop": 0.632183908045977,
"repo_name": "babel/babili",
"id": "1e0e7342cf0e08783e8c9a8e79173fda7f673f7c",
"size": "87",
"binary": false,... |
<?php
namespace SlaxWeb\View\Tests\Unit;
use SlaxWeb\View\Base;
use SlaxWeb\View\AbstractLoader;
use SlaxWeb\Config\Container as Config;
use Symfony\Component\HttpFoundation\Response;
class BaseTest extends \PHPUnit_Framework_TestCase
{
/**
* Config
*
* @var \SlaxWeb\Config\Container_mock
*/
... | {
"content_hash": "f072bbf77cf5874538e32c7f538a90db",
"timestamp": "",
"source": "github",
"line_count": 267,
"max_line_length": 96,
"avg_line_length": 31.9812734082397,
"alnum_prop": 0.5339032673615177,
"repo_name": "SlaxWeb/View",
"id": "25bc67d0be843769fde0f083605582df7c7ecd2d",
"size": "8903",
... |
namespace base {
class SequencedTaskRunner;
}
namespace extensions {
// Cache .crx files in some local dir for future use. Cache keeps only latest
// version of the extensions. Only one instance of LocalExtensionCache can work
// with the same directory. But LocalExtensionCache instance can be shared
// between multi... | {
"content_hash": "b6d406f2840017ab7c1e522d3f6fde6e",
"timestamp": "",
"source": "github",
"line_count": 268,
"max_line_length": 80,
"avg_line_length": 46.406716417910445,
"alnum_prop": 0.6791830827369945,
"repo_name": "ric2b/Vivaldi-browser",
"id": "c3fd3b25c566cc83c3ae2b3a0b784a0c1f6185c1",
"size"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>gaia-hydras: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | {
"content_hash": "e9a644ded97adebb4baf8b0e26961293",
"timestamp": "",
"source": "github",
"line_count": 172,
"max_line_length": 159,
"avg_line_length": 41.38953488372093,
"alnum_prop": 0.5523247647141453,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "4b28d9256f8759553edcf919b7faf29be95fcb5e",
... |
using namespace WebKit;
namespace {
static const int kVideoCaptureWidth = 352;
static const int kVideoCaptureHeight = 288;
static const int kVideoCaptureFrameDurationMs = 33;
bool IsMockMediaStreamWithVideo(const WebURL& url) {
#if ENABLE_WEBRTC
WebMediaStream descriptor(
WebMediaStreamRegistry::lookupMediaS... | {
"content_hash": "df5857f6155c9275246f2f7bad093653",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 71,
"avg_line_length": 26.841463414634145,
"alnum_prop": 0.7387551113130395,
"repo_name": "loopCM/chromium",
"id": "c3e8b917508f7b9e22d554b2a2f8ed5e5ea13aea",
"size": "3091... |
"""backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | {
"content_hash": "2c4d23afa08dd19fb872d2d54ae24033",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 79,
"avg_line_length": 34.65384615384615,
"alnum_prop": 0.7114317425083241,
"repo_name": "stphivos/django-angular2-fullstack-devops",
"id": "8b58d4bf4069ce4dfab3bf5882e0904d2... |
@import UIKit;
@class TRWeatherController;
@interface TRWeatherViewController : UIViewController
@property (nonatomic) TRWeatherController *controller;
@end
| {
"content_hash": "2eb0a459a118e443a64a74ba959cace3",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 54,
"avg_line_length": 17.88888888888889,
"alnum_prop": 0.8198757763975155,
"repo_name": "thoughtbot/Tropos",
"id": "b1cf624a84ef8003e911d286853a9e779ef880ee",
"size": "161"... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using AsyncGenerator.TestCases;
namespace AsyncGenerator.Tests.NewTypes.Input
{
public abstract class InternalReaderWithToken
{
public virtual bool Read()
{
SimpleFile.R... | {
"content_hash": "6906df3683728ea1f8c28b954820a9d4",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 80,
"avg_line_length": 16.83582089552239,
"alnum_prop": 0.6959219858156028,
"repo_name": "maca88/AsyncGenerator",
"id": "5c81de87301e41b971b3f4dc2f46caab8c75947c",
"size": ... |
from gerencianet import Gerencianet
from ...credentials import credentials
gn = Gerencianet(credentials.CREDENTIALS)
body = {
'items': [{
'name': "Product 1",
'value': 1100,
'amount': 2
}],
'shippings': [{
'name': "Default Shipping Cost",
'value': 100
}]
}
res... | {
"content_hash": "f70cac1c786bfb27b4d6160c6b2af2f4",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 41,
"avg_line_length": 18.65,
"alnum_prop": 0.5871313672922251,
"repo_name": "gerencianet/gn-api-sdk-python",
"id": "53b40aed4d829a9a24224d0b5f3e430655b90f44",
"size": "392... |
package scc
import (
"fmt"
"golang.org/x/net/context"
"github.com/hyperledger/fabric/common/flogging"
"github.com/hyperledger/fabric/common/util"
"github.com/hyperledger/fabric/core/chaincode/shim"
"github.com/hyperledger/fabric/core/common/ccprovider"
"github.com/hyperledger/fabric/core/container/inproccon... | {
"content_hash": "b2d8b0e52f520a1e77b1a6085691f1b4",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 169,
"avg_line_length": 31.86904761904762,
"alnum_prop": 0.7443033246171087,
"repo_name": "lukehuangch/fabric",
"id": "12dc892641f4c6f0c1c49294757278f22c28fe3c",
"size": "... |
<?xml version="1.0"?>
<updates>
<update from="lzap+pub@redhat.com" status="stable" type="security" version="1">
<id>RHEA-2010:0001</id>
<title>Empty errata</title>
<release>1</release>
<issued date="2010-01-01 01:01:01"/>
<description>Empty errata</description>
</update>
<update from="lzap+pub@redhat.com" st... | {
"content_hash": "48b067a015604945d1474c458c3225c0",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 108,
"avg_line_length": 31.884615384615383,
"alnum_prop": 0.6598311218335344,
"repo_name": "ehelms/runcible",
"id": "d5ba85c912e8482b493aefc2d66361e0a0a17c20",
"size": "829... |
package edu.atilim.acma.metrics;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;
import edu.atilim.acma.design.Design;
import edu.atilim.acma.design.Type;
public class InheritanceMetricsTests {
private static Design design;
@BeforeClass
public static void createDesign() {... | {
"content_hash": "ce9192c49aa3712caca88c3f38bbe26a",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 53,
"avg_line_length": 26.14516129032258,
"alnum_prop": 0.6600863664404688,
"repo_name": "eknkc/a-cma",
"id": "7e0206135f33e7c31cf420d1b13b8bd520f9787f",
"size": "1621",
... |
Repositório da pagina https://informaticos.net.br
| {
"content_hash": "7662a0813c0ca6baa7d32b35498392dd",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 49,
"avg_line_length": 50,
"alnum_prop": 0.82,
"repo_name": "DougKrioK/landingPage-sistemaEventos",
"id": "4a0dafe9c6860a62787113fa86c7f195ccd5aac3",
"size": "80",
"binary... |
title: Data Package v1 Specifications. What has Changed and how to Upgrade
date: 2017-10-11
authors: ['mikanebu']
---
This post walks you through the major changes in the Data Package v1 specs compared to pre-v1. It covers changes in the full suite of Data Package specifications including Data Resources and Table Sche... | {
"content_hash": "726c553bd874165506418214cacb49d3",
"timestamp": "",
"source": "github",
"line_count": 317,
"max_line_length": 337,
"avg_line_length": 31.914826498422713,
"alnum_prop": 0.7317386577048532,
"repo_name": "datahq/frontend",
"id": "b7e39f9abf447720dac0fb9cda7b3ba6511acfc0",
"size": "10... |
package com.twitter.finagle.toggle
import com.twitter.util.{Return, Throw, Try}
import org.scalacheck.Arbitrary.arbitrary
import org.scalatest.FunSuite
import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks
import scala.collection.JavaConverters._
class JsonToggleMapTest extends FunSuite with ScalaCheckDr... | {
"content_hash": "bc8dcd840fea3f5a1d97ec0936659a16",
"timestamp": "",
"source": "github",
"line_count": 201,
"max_line_length": 84,
"avg_line_length": 28.572139303482587,
"alnum_prop": 0.5874978234372279,
"repo_name": "luciferous/finagle",
"id": "f2ed3c2641718542845863f19bde2a013c7c440f",
"size": "... |
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include "ifcpp/model/AttributeObject.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/model/BuildingGuid.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include... | {
"content_hash": "597f1e6aa07321d21ec495a5ab4ce861",
"timestamp": "",
"source": "github",
"line_count": 152,
"max_line_length": 239,
"avg_line_length": 50.625,
"alnum_prop": 0.7172189733593243,
"repo_name": "berndhahnebach/IfcPlusPlus",
"id": "b75e08cc8a5f0a3c76f09c29ab8754cbb839d4d5",
"size": "769... |
package br.eti.kinoshita.testlinkjavaapi.testsuite;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import br.eti.kinoshita.testlinkjavaapi.BaseTest;
import br.eti.kinoshita.testlinkjavaapi.model.TestSuite;
import br.eti.kinoshita.testlinkjavaapi.util.TestLin... | {
"content_hash": "631cfd4f3e48a91f223ec05a2eb08fed",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 82,
"avg_line_length": 26.390243902439025,
"alnum_prop": 0.7523105360443623,
"repo_name": "hpmtissera/testlink-java-api-master",
"id": "7ca9ad9f03c3a83162f3a313fe02ddec0ca55f... |
<?php
namespace Hubzero\Form\Fields;
use Hubzero\Html\Builder\Select as Dropdown;
use App;
/**
* Supports an HTML select list of files
*/
class Filelist extends Select
{
/**
* The form field type.
*
* @var string
*/
public $type = 'Filelist';
/**
* Method to get the list of files for the field opti... | {
"content_hash": "77b1d811ebd5182018b81620322570a3",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 148,
"avg_line_length": 25.47252747252747,
"alnum_prop": 0.6220880069025022,
"repo_name": "zooley/framework",
"id": "0301f8ca6fbe72c01b538e26c412416ecf65f01b",
"size": "246... |
void Hooks_Handlers_Init(void);
void Hooks_Handlers_Commit(void);
| {
"content_hash": "579e961413ffe8293d597904fc610725",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 33,
"avg_line_length": 33,
"alnum_prop": 0.7878787878787878,
"repo_name": "SilverIce/JContainers",
"id": "3a0fdfe99315cf65451d37a9cbc24f641fdbd4ed",
"size": "80",
"binary"... |
<configuration scan="true">
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date{ISO8601} [%.20thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="File" class="ch.qos.logback.core.rolling.RollingFileAppe... | {
"content_hash": "af10c341b95c12b4d54f6eeb0bfcca92",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 89,
"avg_line_length": 41.91304347826087,
"alnum_prop": 0.6172199170124482,
"repo_name": "pqtoan/motown",
"id": "12dce8c416a3138a6588af3cd7a5292bb93f78aa",
"size": "964",
... |
package org.switchyard.quickstarts.camel.jaxb;
import javax.xml.bind.JAXBContext;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.converter.jaxb.JaxbDataFormat;
import org.switchyard.common.camel.SwitchYardMessage;
/**
* Gre... | {
"content_hash": "b372a8ae9a202a042656eb57d7db6641",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 114,
"avg_line_length": 33.76315789473684,
"alnum_prop": 0.6375681995323461,
"repo_name": "bfitzpat/switchyard",
"id": "1e922863ff866e3e6f96e4f47dadf4e0d2f5ba83",
"size": "... |
// Copyright 2007-2012 Chris Patterson, Dru Sellers, Travis Smith, et. al.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at
//
// http://www.apache.org/licenses/LICENSE-2.0... | {
"content_hash": "ad5ede42220714a6fc99bcd90de88163",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 114,
"avg_line_length": 37.08,
"alnum_prop": 0.6353829557713053,
"repo_name": "eswann/Burrows",
"id": "aa1800250aa82304205512d10d33d15a1a561f44",
"size": "1856",
"binary"... |
import sys
from eventlet import event
from eventlet import greenthread
from dragon.openstack.common.gettextutils import _ # noqa
from dragon.openstack.common import log as logging
from dragon.openstack.common import timeutils
LOG = logging.getLogger(__name__)
class LoopingCallDone(Exception):
"""Exception to ... | {
"content_hash": "42fe69d369b83ec709abdc23d877f8da",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 78,
"avg_line_length": 30.140625,
"alnum_prop": 0.5544323483670296,
"repo_name": "os-cloud-storage/openstack-workload-disaster-recovery",
"id": "9c51513246b8179fb4332d3a8676... |
<?php
namespace Zend\Feed\Writer\Exception;
/**
* Feed exceptions
*
* Interface to represent exceptions that occur during Feed operations.
*/
interface ExceptionInterface
{
}
| {
"content_hash": "4722b757083410b11e184fc9be1ab456",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 71,
"avg_line_length": 15,
"alnum_prop": 0.6923076923076923,
"repo_name": "stromengine/10001",
"id": "e4d847b3b5b5e0a49acc965da5c6fb4a6b208525",
"size": "503",
"binary": ... |
from __future__ import unicode_literals
from builtins import str
import datetime, json, logging, os
from jsonpath_rw import jsonpath, parse
from jsonpath_rw.lexer import JsonPathLexerError
from scrapy import signals
from scrapy.exceptions import CloseSpider
from scrapy.http import Request
from pydispatch import dispa... | {
"content_hash": "84cf62b267962fd57d228f649a21f91a",
"timestamp": "",
"source": "github",
"line_count": 222,
"max_line_length": 156,
"avg_line_length": 45.03603603603604,
"alnum_prop": 0.5524104820964193,
"repo_name": "holgerd77/django-dynamic-scraper",
"id": "f86de816984df8ef01b153d4020d9ce3092c40f6... |
function truncate(str, len) {
len = len || 30;
if (str.length > len && str.length > 0) {
var new_str = str + " ";
new_str = str.substr (0, len);
new_str = str.substr (0, new_str.lastIndexOf(" "));
new_str = (new_str.length > 0) ? new_str : str.substr (0, len);
return new Handlebars.SafeString (... | {
"content_hash": "86b72d0481e02de2d053db3abc095189",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 67,
"avg_line_length": 21.173076923076923,
"alnum_prop": 0.5703905540417802,
"repo_name": "rlipscombe/bookymark",
"id": "8593c737dd7d84d76d26460aac92d942e2540c51",
"size": ... |
from ibis.common import RelationError, ExpressionError
from ibis.expr.window import window
import ibis.expr.types as ir
import ibis.expr.operations as ops
import ibis.util as util
# ---------------------------------------------------------------------
# Some expression metaprogramming / graph transformations to suppor... | {
"content_hash": "f76ef3d9442f123bb3e364ae296ed8a0",
"timestamp": "",
"source": "github",
"line_count": 781,
"max_line_length": 79,
"avg_line_length": 30.52368758002561,
"alnum_prop": 0.5653341163639415,
"repo_name": "shaunstanislaus/ibis",
"id": "d7471e2dfd17fd4baf948af0087d84a635dfd3cb",
"size": ... |
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
/* private library and arch headers */
#include "pfmlib_priv.h"
#include "pfmlib_s390x_priv.h"
#include "pfmlib_perf_event_priv.h"
int pfm_s390x_get_perf_encoding(void *this, pfmlib_event_desc_t *e)
{
pfmlib_pmu_t *pmu = this;
struct perf_event_attr *... | {
"content_hash": "55408235702cb8f3a9b7befe51639afe",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 67,
"avg_line_length": 21.733333333333334,
"alnum_prop": 0.6656441717791411,
"repo_name": "yqzhang/FinerProfiler",
"id": "fb7589212c3d9e59733a67014106bf8dac864525",
"size":... |
<?php
namespace Octo;
use b8;
use b8\View;
use Octo\Template;
/**
* Class Form
* @package Octo
*/
class Form extends b8\Form
{
/**
* Get the view for the form
*
* @param $view
* @return View|null|Template
*/
public function getView($view)
{
if (Template::exists('Form/'... | {
"content_hash": "39e83ee89880537d6e743086211c2b03",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 83,
"avg_line_length": 18.688524590163933,
"alnum_prop": 0.4842105263157895,
"repo_name": "wouteradem/octo",
"id": "bc4aaed0d9cb608f64ff9bc93e25ed75af63d783",
"size": "1140... |
using base::UserMetricsAction;
using content::RenderViewHost;
using content::WebContents;
FullscreenController::FullscreenController(Browser* browser)
: browser_(browser),
window_(browser->window()),
profile_(browser->profile()),
fullscreened_tab_(NULL),
state_prior_to_tab_fullscreen_(STATE... | {
"content_hash": "a17b9f68fe6acd65a2922729477867b1",
"timestamp": "",
"source": "github",
"line_count": 740,
"max_line_length": 80,
"avg_line_length": 34.50405405405405,
"alnum_prop": 0.7120980691653938,
"repo_name": "patrickm/chromium.src",
"id": "a99b0e3643a0794f5e4abb72f98f6dbec46832ac",
"size":... |
using System;
using System.Threading.Tasks;
using Microsoft.ServiceBus.Messaging;
namespace Nimbus.Infrastructure.MessageSendersAndReceivers
{
internal interface INimbusMessageReceiver : IDisposable
{
Task Start(Func<BrokeredMessage, Task> callback);
Task Stop();
}
} | {
"content_hash": "1310a891f8d18cb192df5a3947aa4f08",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 59,
"avg_line_length": 24.75,
"alnum_prop": 0.7474747474747475,
"repo_name": "sbalkum/Nimbus",
"id": "10576089615d491dd9750823be13234220b00b36",
"size": "299",
"binary": ... |
//// [privacyLocalInternalReferenceImportWithoutExport.ts]
// private elements
module m_private {
export class c_private {
}
export enum e_private {
Happy,
Grumpy
}
export function f_private() {
return new c_private();
}
export var v_private = new c_private();
ex... | {
"content_hash": "b283275b6902a3ba1472cfee78d81789",
"timestamp": "",
"source": "github",
"line_count": 448,
"max_line_length": 172,
"avg_line_length": 43.125,
"alnum_prop": 0.6332298136645963,
"repo_name": "domchen/typescript-plus",
"id": "73266bc1d024ca3954e51f76e05c8195ae89d6d0",
"size": "19320"... |
package org.pentaho.di.trans.ael.websocket;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.pentaho.di.core.KettleClientEnvironment;
import org.pentaho.di... | {
"content_hash": "d652dae76fee90634eee1ef752f7778e",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 118,
"avg_line_length": 38.06956521739131,
"alnum_prop": 0.7275011420740064,
"repo_name": "lgrill-pentaho/pentaho-kettle",
"id": "0eaf7065dcda4cdfa17c19f40507a43706c60e92",
... |
using System.Collections.Generic;
using SilverlightMappingToolBasic.UI.Extensions.Security;
namespace SilverlightMappingToolBasic.UI.SuperGraph.Controller
{
public interface ISuperGraphNodeBatchOperations
{
void CommitLocations(IEnumerable<ViewModel.Node> nodesToBeCommitted);
void CommitCollap... | {
"content_hash": "36bc08954e047f5791c54c9eb9239776",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 164,
"avg_line_length": 42.54545454545455,
"alnum_prop": 0.8205128205128205,
"repo_name": "chris-tomich/Glyma",
"id": "a59afe9fcb882bf23538813efc98a26340562d40",
"size": "4... |
typedef NS_ENUM(NSUInteger, GridTheme) {
GridThemeLight = 1,
GridThemeDark,
};
#endif // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TAB_GRID_GRID_GRID_THEME_H_
| {
"content_hash": "39f8c1ce2ff142339001709333995292",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 73,
"avg_line_length": 26.333333333333332,
"alnum_prop": 0.7278481012658228,
"repo_name": "nwjs/chromium.src",
"id": "0944b55456096e8ee49d39d1ea6e1ca0aea30cb2",
"size": "487... |
package demo.solstice;
import java.awt.Color;
import edu.turtlekit2.kernel.agents.Turtle;
@SuppressWarnings("serial")
public class Ant4 extends Turtle
{
double quantity = 50;
public Ant4()
{
super("searchForFood");
randomHeading();
}
@Override
public void setup() {
super.setup()... | {
"content_hash": "e639030eee6806b61842934cbf036d7d",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 60,
"avg_line_length": 19.202380952380953,
"alnum_prop": 0.5957842529448233,
"repo_name": "slvrgauthier/archives",
"id": "96fe057e2c1156264cf790b169ee0b0dcd49c032",
"size":... |
html {
font-family:sans-serif;
-ms-text-size-adjust:100%;
-webkit-text-size-adjust:100%
}
body {
margin:0
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
display:block
}
audio, canvas, progress, video {
display:inline-block;
vertical-align... | {
"content_hash": "ce9b96b0f0ace6f68356a03b44ccbf31",
"timestamp": "",
"source": "github",
"line_count": 11809,
"max_line_length": 904,
"avg_line_length": 22.703954610889998,
"alnum_prop": 0.6444495003934937,
"repo_name": "BeardandFedora/dotcom",
"id": "7f0d259d84fd23776aa158d4fef62d507479e6ce",
"si... |
namespace SIM.Tool.Windows.Dialogs
{
using System;
using System.Data.SqlClient;
using System.Windows;
using System.Windows.Input;
using SIM.Tool.Base;
using Sitecore.Diagnostics.Base;
using JetBrains.Annotations;
using SIM.Extensions;
#region
#endregion
public partial class ConnectionStringDia... | {
"content_hash": "138674e0f9c44b2d9ecef7a79ef158e0",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 97,
"avg_line_length": 23.56989247311828,
"alnum_prop": 0.6405109489051095,
"repo_name": "Sitecore/Sitecore-Instance-Manager",
"id": "affd35c35fa26c0383ca6e3ecfe2f2d55e0b7218... |
#ifndef TSL_ROBIN_GROWTH_POLICY_H
#define TSL_ROBIN_GROWTH_POLICY_H
#include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <cstddef>
#include <iterator>
#include <limits>
#include <ratio>
#include <stdexcept>
#ifdef __EXCEPTIONS
# define THROW(_e, _m) throw _e(_m)
#else
# include <s... | {
"content_hash": "1784cd0239c35c4b66d7b2eec49cbebd",
"timestamp": "",
"source": "github",
"line_count": 268,
"max_line_length": 117,
"avg_line_length": 33.865671641791046,
"alnum_prop": 0.6007051564565888,
"repo_name": "google/filament",
"id": "daf6bf5636be7cbf03f108531ec6c70061e9f5c7",
"size": "10... |
import uuid
import random
from django.test import TestCase, Client
from main.models import Question_option
class TestSesson(TestCase):
fixtures = ['basic_setup.json']
def setUp(self):
# Create our client, login and select a course
self.client = Client()
self.client.post('/login/',... | {
"content_hash": "a726fb88722fc6b9670237c56f06836e",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 107,
"avg_line_length": 48.5609756097561,
"alnum_prop": 0.6685082872928176,
"repo_name": "camerongray1515/SELP-Audience-Response-System",
"id": "ce618a80dc7e0d0dc86227ec8df3d... |
var expect = require("chai").expect;
module.exports = function (helpers) {
var component = helpers.mount(require.resolve("./index"), {});
component.getComponent("ok").emitPressEvent();
expect(component.pressEvent[0].type).to.equal("ok");
expect(component.pressEvent[1].component).to.equal(
component.getCo... | {
"content_hash": "fad58e17b87c3f7f47a2bd3d064d2480",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 64,
"avg_line_length": 29.05263157894737,
"alnum_prop": 0.7083333333333334,
"repo_name": "marko-js/marko",
"id": "e10aca29fe75bbb46910ba41f56d29557d849181",
"size": "552",
... |
@interface ViewController : UIViewController<UINavigationControllerDelegate, UIImagePickerControllerDelegate, UICollectionViewDelegate, UICollectionViewDataSource>
FOUNDATION_EXPORT NSString *const kTemplateFolderName;
@end
| {
"content_hash": "5b67e1a1c469a0f522cecb7f3f739846",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 163,
"avg_line_length": 45.2,
"alnum_prop": 0.8893805309734514,
"repo_name": "quangtqag/BlendModes",
"id": "57b34da11294f454d7b51c4cf5d4406c1385a3d4",
"size": "389",
"bina... |
package org.wikipedia.test;
import android.content.Intent;
import android.test.ActivityUnitTestCase;
import com.github.kevinsawicki.http.HttpRequest;
import org.wikipedia.PageTitle;
import org.wikipedia.Site;
import org.wikipedia.WikipediaApp;
import org.wikipedia.editing.DoEditTask;
import org.wikipedia.editing.EditT... | {
"content_hash": "1c255b040b3e5f1a79888483f8d72e06",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 128,
"avg_line_length": 47.734693877551024,
"alnum_prop": 0.5414707139803335,
"repo_name": "creaITve/apps-android-tbrc-works",
"id": "ef4a0a067f8959972049c253594bde1b5017f064... |
package org.apache.tinkerpop.gremlin.process.traversal.step.map;
import org.apache.tinkerpop.gremlin.AbstractGremlinTest;
import org.apache.tinkerpop.gremlin.FeatureRequirement;
import org.apache.tinkerpop.gremlin.LoadGraphWith;
import org.apache.tinkerpop.gremlin.process.GremlinProcessRunner;
import org.apache.tinke... | {
"content_hash": "26ad16b8b72f327baba9237b8c5d5808",
"timestamp": "",
"source": "github",
"line_count": 319,
"max_line_length": 181,
"avg_line_length": 55.46394984326019,
"alnum_prop": 0.7110156559091166,
"repo_name": "BrynCooke/incubator-tinkerpop",
"id": "0186fa6fd8ff705144eca98a90f307d7dc9ae54b",
... |
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape
android:shape="rectangle" >
<solid android:color="@color/actionbar_bottom_divider" />
</shape>
</item>
<item android:bottom="2dp">
<s... | {
"content_hash": "b44395ba4f4d87b354e0040524d7355c",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 71,
"avg_line_length": 25.666666666666668,
"alnum_prop": 0.551948051948052,
"repo_name": "akavrt/worko",
"id": "aa414230133ab3366ce528ef94c21348c3c891ad",
"size": "462",
... |
// TODO: Migrate to GCD sockets (GCDAsyncSocket). This will resolve a number of really ugly issues:
// * Lower thread counts
// * Explicit synchronization (no more conditions, flags, or race conditons!)
// * Maybe even synchronize with the context itself (when TIMOB-6990 complete)
#ifdef USE_TI_NETWORKSOCKET
#import... | {
"content_hash": "5fac326bdf658701db84b9727f00dfde",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 137,
"avg_line_length": 35.4025974025974,
"alnum_prop": 0.7226705796038151,
"repo_name": "knightapplicationsystems/GDS-Core",
"id": "a990049a0eba7a82b2144f8c605645168bc05665"... |
<?php
/**
* HybridAuth
* https://hybridauth.sourceforge.net | https://github.com/hybridauth/hybridauth
* (c) 2009-2015, HybridAuth authors | https://hybridauth.sourceforge.net/licenses.html
*/
// ------------------------------------------------------------------------
// HybridAuth End Point
// --------------... | {
"content_hash": "5c4d8f586c0dae37ca60df063895c238",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 86,
"avg_line_length": 32.6,
"alnum_prop": 0.4785276073619632,
"repo_name": "maukoese/jabali",
"id": "18b566c6129f41bfd6e8b5bd6e8c476bec6266e9",
"size": "489",
"binary": ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>three-gap: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | {
"content_hash": "18f404f060343d0f9fe141b8e381f9e5",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 236,
"avg_line_length": 42.31901840490798,
"alnum_prop": 0.5423311104668019,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "09c08fd02702eb6e73f09139cabcc1b68fe5c06e",
... |
<?php
namespace PivotTable;
class PivotTable
{
private $heading_all = 'All';
private $heading_total = 'Total';
public function __construct($settings = array())
{
if ($settings) {
if (isset($settings['heading_all'])) {
$this->heading_all = $settings['heading_all'... | {
"content_hash": "996f8a33f03be1e8523e44e76d0c2e02",
"timestamp": "",
"source": "github",
"line_count": 209,
"max_line_length": 100,
"avg_line_length": 39.92344497607655,
"alnum_prop": 0.4557766059443912,
"repo_name": "ronaldbradford/PivotTable",
"id": "40f94ce65bc8091641b93979c2cbf7f8823055b7",
"s... |
module Spree
module Api
class CountriesController < Spree::Api::BaseController
skip_before_action :authenticate_user
def index
@countries = Country.
accessible_by(current_ability, :read).
ransack(params[:q]).
result.
order('name ASC')
country =... | {
"content_hash": "41d36cdb218ba8bf268f572fe3da0d6f",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 82,
"avg_line_length": 23.88888888888889,
"alnum_prop": 0.586046511627907,
"repo_name": "Arpsara/solidus",
"id": "f0857d546d51582dab78d2ec7d440cb6b57106fe",
"size": "645",
... |
#nullable enable
using System;
using System.Diagnostics.CodeAnalysis;
using Avalonia.Controls.Platform;
using Avalonia.Platform;
using CoreGraphics;
using ObjCRuntime;
using UIKit;
namespace Avalonia.iOS
{
internal class NativeControlHostImpl : INativeControlHostImpl
{
private readonly AvaloniaView _... | {
"content_hash": "1b821acb1f8a2dcafc883cdfbe8a3e73",
"timestamp": "",
"source": "github",
"line_count": 160,
"max_line_length": 128,
"avg_line_length": 31.6125,
"alnum_prop": 0.5432977461447213,
"repo_name": "grokys/Perspex",
"id": "f752936dc8eacb39eb9374425359f29faa7cd77b",
"size": "5060",
"bina... |
package net.protyposis.android.spectaculum.gles.flowabs;
import android.opengl.GLES20;
import net.protyposis.android.spectaculum.gles.GLUtils;
import net.protyposis.android.spectaculum.gles.Texture2D;
/**
* Created by maguggen on 18.07.2014.
*/
public class OrientationAlignedBilateralFilterShaderProgram extends ... | {
"content_hash": "5ce0e23a955377a183656b65cd8eef25",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 90,
"avg_line_length": 33.45205479452055,
"alnum_prop": 0.6957411957411958,
"repo_name": "protyposis/Spectaculum",
"id": "4c458879ea066ce43d0f24b7f04d752d1351a8a0",
"size":... |
<?php
namespace AppBundle\Form\Type {
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class m_employeeType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, ar... | {
"content_hash": "0cc961658b81adf0a43db936e2e251b8",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 173,
"avg_line_length": 27.529411764705884,
"alnum_prop": 0.5950854700854701,
"repo_name": "artitsiriroop/taxfileIntage",
"id": "4488bbbe9e8af47ecb63de442bf3f784c65448fe",
... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Input Output</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapte... | {
"content_hash": "264c448ec6611cdbcf6ea3f06b500e3d",
"timestamp": "",
"source": "github",
"line_count": 185,
"max_line_length": 604,
"avg_line_length": 85.98918918918919,
"alnum_prop": 0.6752577319587629,
"repo_name": "c72578/poedit",
"id": "da23c8a1a3ac74969b617c7685329f363581cd89",
"size": "15908... |
<!--
~ Copyright 2010 Red Hat, Inc.
~
~ Red Hat licenses this file to you under the Apache License, version
~ 2.0 (the "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unle... | {
"content_hash": "4d8cbe14290aac33c4a3cd77637e6a59",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 201,
"avg_line_length": 37.351351351351354,
"alnum_prop": 0.7120115774240231,
"repo_name": "alexeev/jboss-fuse-mirror",
"id": "65fac0e5ed660e532a2fc81b550ea74e1e7e5e74",
"s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.