text stringlengths 2 1.04M | meta dict |
|---|---|
'''Test percolator.py.'''
from test.support import requires
requires('gui')
import unittest
from tkinter import Text, Tk, END
from idlelib.percolator import Percolator, Delegator
class MyFilter(Delegator):
def __init__(self):
Delegator.__init__(self, None)
def insert(self, *args):
self.inser... | {
"content_hash": "18644620a382a9c90a96e09ebf83e0dc",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 74,
"avg_line_length": 34.38135593220339,
"alnum_prop": 0.634458959822529,
"repo_name": "Microsoft/PTVS",
"id": "573b9a1e8e69e3905122b905c4f30ee3958b17d7",
"size": "4057",... |
package org.xdi.oxauth.clientinfo.ws.rs;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.log.Log;
import org.xdi.model.GluuAttri... | {
"content_hash": "4eeb092723c930592e7afca2b3611f7e",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 123,
"avg_line_length": 38.583333333333336,
"alnum_prop": 0.6827213822894168,
"repo_name": "nixu-corp/oxAuth",
"id": "cb490833e3ddbc0d210b4b08afbf3e706af665ca",
"size": "4... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace DTS\eBaySDK\FindingAPI\Types;
/**
*
*/
class DecimalType extends \DTS\eBaySDK\Types\DecimalType
{
... | {
"content_hash": "30bb5ad40cec206b985c3083be332a53",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 116,
"avg_line_length": 26.86046511627907,
"alnum_prop": 0.6164502164502165,
"repo_name": "davidtsadler/ebay-api-sdk-php",
"id": "8847828a95f94c699278f54a770408fa30c02dc8",
... |
require 'fci/version.rb'
require 'freshdesk_api'
require 'crowdin-api'
require 'nokogiri'
require 'zip'
# require 'byebug'
# Add requires for other files you add to your project here, so
# you just need to require this one file in your bin file
require 'fci/helpers.rb'
require 'fci/init.rb'
require 'fci/import.rb'
r... | {
"content_hash": "637870a4a3d6eb1df13cb89c18e81093",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 63,
"avg_line_length": 23.0625,
"alnum_prop": 0.7506775067750677,
"repo_name": "mamantoha/fci",
"id": "b5f07dd803deeb6a230645b3e4569798f23f72eb",
"size": "369",
"binary":... |
if (Test-Path dist) {
Remove-Item dist -Recurse -Force
}
if (Test-Path build) {
Remove-Item build -Recurse -Force
}
if (Test-Path .tmp) {
Remove-Item .tmp -Recurse -Force
}
& gulp js:build
Copy-Item -Path src/tsconfig-build.json -Destination .tmp/tsconfig-build.json
Copy-Item -Path src/tsconfig-es5.json -Destina... | {
"content_hash": "2d450319db32d1e701fa4571e7aa2b09",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 77,
"avg_line_length": 25.76923076923077,
"alnum_prop": 0.7402985074626866,
"repo_name": "JiriBalcar/angular2-datepicker",
"id": "b0477e42795a4c7372b1780434eb2842be236b2f",
... |
//
// SupportingWebApiClient.h
// BRFCore
//
// Created by Matt on 15/09/15.
// Copyright (c) 2015 Blue Rocket, Inc. Distributable under the terms of the Apache License, Version 2.0.
//
#import "WebApiClient.h"
NS_ASSUME_NONNULL_BEGIN
/**
API for a WebApiClient with extended attributes, geared for implementatio... | {
"content_hash": "d3833fb213ef76941ab414f8018bcd4f",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 113,
"avg_line_length": 33.5531914893617,
"alnum_prop": 0.7469879518072289,
"repo_name": "Blue-Rocket/WebApiClient",
"id": "693f5142e4ae9d44b259dbf942f2e61d05946858",
"size... |
/**
* The HasAndBelongsToMany Field class
*
* @constructor
*
* @author Jelle De Loecker <jelle@develry.be>
* @since 0.2.0
* @version 1.1.0
*/
var HABTM = Function.inherits('Alchemy.Field', function HasAndBelongsToMany(schema, name, options) {
HasAndBelongsToMany.super.call(this, schema, name, options);... | {
"content_hash": "73503cea4f1c515d31c9605e92b61e7b",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 100,
"avg_line_length": 18.69090909090909,
"alnum_prop": 0.6040856031128404,
"repo_name": "skerit/alchemy",
"id": "106a7cbff59a2123fc5e7d9e78361f73201c9ec3",
"size": "1028"... |
import ko = require('knockout')
import { Pin } from '../../model/pin'
import { Sequence } from '../../model/sequence'
import { Model, AppState, Observer, ErrorDescriptor } from '../../frame'
import { Constants } from '../../config'
class ViewSequence {
public isEditing: KnockoutObservable<boolean>
public sequence: ... | {
"content_hash": "7d4793720a3873183e8772959778c106",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 92,
"avg_line_length": 26.61849710982659,
"alnum_prop": 0.6731813246471227,
"repo_name": "weichweich/Pi-Timeswitch",
"id": "1a799d3dae303122578f272abfd7037d31c382fa",
"siz... |
require 'pathname'
Puppet::Type.newtype(:dsc_xexchpopsettings) do
require Pathname.new(__FILE__).dirname + '../../' + 'puppet/type/base_dsc'
require Pathname.new(__FILE__).dirname + '../../puppet_x/puppetlabs/dsc_type_helpers'
@doc = %q{
The DSC xExchPopSettings resource type.
Automatically generated f... | {
"content_hash": "b888c8bbfde031a9cbdd3e89fa7e68ae",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 149,
"avg_line_length": 30.25136612021858,
"alnum_prop": 0.65625,
"repo_name": "Iristyle/puppetlabs-dsc",
"id": "18cf2f77e6f0f23cb9e57b29977dc6a822f085bb",
"size": "5536",... |
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import re
class Migration(migrations.Migration):
dependencies = [
('livelayermanager', '0009_auto_20170602_1459'),
]
operations = [
migrations.AlterField(
model_nam... | {
"content_hash": "fd05949bc2edf45e27e0fe63a81c2868",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 311,
"avg_line_length": 34.6,
"alnum_prop": 0.6734104046242775,
"repo_name": "rockychen-dpaw/borgcollector",
"id": "9b790ac6cd18f8edcbf931cbddce23b37ec13c15",
"size": "764"... |
package mll.dao;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.json.simple.JSONObject;
import mll.beans.Invite;
import mll.beans.UserDetails;
import mll.utility.SessionFactoryUtil;
public class RegistrationDAO
{
@SuppressWarnings("un... | {
"content_hash": "34d7fa0b1fa73c3f78b0dc14e10fbb61",
"timestamp": "",
"source": "github",
"line_count": 134,
"max_line_length": 189,
"avg_line_length": 26.119402985074625,
"alnum_prop": 0.6425714285714286,
"repo_name": "akhil0/MLL",
"id": "77cee7c1bef2f76852e42a0c1539d61ac5c87660",
"size": "3500",
... |
package com.orientechnologies.orient.test.domain.business;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Id;
import com.orientechnologies.orient.core.annotation.OAfterDeserialization;
import com.orientechnologies.orient.core.annotation.OBeforeSerializat... | {
"content_hash": "f85487e03b73743adeeeb1e9abebaa3e",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 74,
"avg_line_length": 21.862903225806452,
"alnum_prop": 0.6864625599409812,
"repo_name": "redox/OrientDB",
"id": "7a77ce89c1ddb67f9495e10db93456e5b89afbae",
"size": "3364... |
**DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON https://guides.rubyonrails.org.**
Autoloading and Reloading Constants (Classic Mode)
==================================================
This guide documents how constant autoloading and reloading works in `classic` mode.
After reading this guide, you will kn... | {
"content_hash": "2e64abcf0d234d66ff48a5f9c2ac1088",
"timestamp": "",
"source": "github",
"line_count": 1408,
"max_line_length": 594,
"avg_line_length": 30.787642045454547,
"alnum_prop": 0.7551731297146417,
"repo_name": "EmmaB/rails-1",
"id": "98b262f3cc74c8948f6820390503091791b5db6b",
"size": "433... |
/* common style */
button.customview-button{
background-color:transparent;
background-position:left top;
background-repeat:no-repeat;
background-size:30px 30px;
border:none;
box-sizing:border-box;
cursor:pointer;
font-size:13px;
height:auto;
margin:0px 3px;
min-height:30px;
min-width:30px;
outline:none;... | {
"content_hash": "4354cf27cf56dfc29f1a8b2d4a83c779",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 80,
"avg_line_length": 22.594594594594593,
"alnum_prop": 0.7485047846889952,
"repo_name": "TIS2010/jslibs",
"id": "5180eef58183c4e04938f13af7404de0db408da5",
"size": "3344... |
package com.ghgande.j2mod.modbus.facade;
import com.ghgande.j2mod.modbus.Modbus;
import com.ghgande.j2mod.modbus.io.AbstractModbusTransport;
import com.ghgande.j2mod.modbus.net.SerialConnection;
import com.ghgande.j2mod.modbus.util.SerialParameters;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Mod... | {
"content_hash": "a5c512960a2715d519fa0721db19fdbf",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 91,
"avg_line_length": 30.666666666666668,
"alnum_prop": 0.6489130434782608,
"repo_name": "j123b567/j2mod",
"id": "5e2b86b3223f9f4508e13961f4926e7d75df4137",
"size": "3375"... |
package com.greensopinion.finance.services.encryption;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.logging.Logger;
import javax.inject.Inject;
import com.greensopinion.finance.services.domain.Categories;
import com.greensopinion.finance.services.domain.CategoriesService;
impor... | {
"content_hash": "b9c3d9710345a958f761ecc65e2ebf77",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 106,
"avg_line_length": 31.21276595744681,
"alnum_prop": 0.8234492160872529,
"repo_name": "greensopinion/greenbeans",
"id": "2c2399a325bfa3b25619e2651ce3b69747c9664d",
"siz... |
import Component from '../editors/editor-xp';
export default Component;
| {
"content_hash": "26b6ce182093702c8576c1c636be4d6e",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 45,
"avg_line_length": 25.333333333333332,
"alnum_prop": 0.7368421052631579,
"repo_name": "randowize/e-app",
"id": "7a3aa5a01f6787da71429101ffc79a682f1759fd",
"size": "76",
... |
namespace content {
#if defined(OS_WIN)
namespace {
// The write must be performed on the UI thread because the clipboard object
// from the IO thread cannot create windows so it cannot be the "owner" of the
// clipboard's contents. // See http://crbug.com/5823.
void WriteObjectsOnUIThread(ui::Clipboard::ObjectMap*... | {
"content_hash": "340ed74848f5865c9bfed60ee8390174",
"timestamp": "",
"source": "github",
"line_count": 228,
"max_line_length": 80,
"avg_line_length": 37.85526315789474,
"alnum_prop": 0.7174139728884255,
"repo_name": "windyuuy/opera",
"id": "6935aba4f66ecbbecbf2494a84098796e79e4d93",
"size": "9267"... |
export default function ensureExist(module, moduleName) {
if (!module) {
throw new Error(`'${moduleName}' is a required dependency for '${this.constructor.name}'`);
}
return module;
}
| {
"content_hash": "c6a887311055bbb9947ea27e3c3b6e7c",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 95,
"avg_line_length": 32.333333333333336,
"alnum_prop": 0.6907216494845361,
"repo_name": "ele828/ringcentral-js-integration-commons",
"id": "fbb81ce7a305c00b5e8371118479b34a7... |
class AppListModelUpdater;
class ChromeSearchResult;
class Profile;
namespace app_list {
namespace test {
FORWARD_DECLARE_TEST(MixerTest, Publish);
}
class ChipRanker;
class SearchControllerImpl;
class SearchProvider;
class SearchResultRanker;
enum class RankingItemType;
// Mixer collects results from providers, so... | {
"content_hash": "3b878cdf012bbc92d36af8c0616a4149",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 80,
"avg_line_length": 29.695652173913043,
"alnum_prop": 0.7342606149341142,
"repo_name": "ric2b/Vivaldi-browser",
"id": "3c718d92501c4e503e2d21f9e4118012b4fe693a",
"size":... |
import tensorflow as tf
with tf.name_scope('policy') as scope:
# tf Graph Input
features = 4
objects = 8
layers = 3
x = tf.placeholder(tf.float32, [None, 8, 8, features], name='input')
y = tf.placeholder(tf.float32, [None, 8, 8, 1], name='expected')
# Set model weights
#first pass fi... | {
"content_hash": "bb61f38e013a549471c95015e0040f6c",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 101,
"avg_line_length": 35.59349593495935,
"alnum_prop": 0.5600730927364094,
"repo_name": "Tenebryo/coin",
"id": "6a10ed6975deea4245c15d71f79e160fcfcbd483",
"size": "4378"... |
package funnel
| {
"content_hash": "317d6825f9de8869333bbf3320d49fbf",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 14,
"avg_line_length": 15,
"alnum_prop": 0.8666666666666667,
"repo_name": "Gawainli/funnel",
"id": "ff56589d715f4a21353802b10f10ff39b3bcd67f",
"size": "15",
"binary": fals... |
import { Vector,
Matrix,
Line,
Plane,
LinkedListNode,
LinkedList,
CircularLinkedList,
Vertex,
Polygon,
LineSegment,
PRECISION,
mht,
makeLookAt,
makeOrtho,
makePerspective,
makeFrustum } from "sylvester-es6";
// Vector
const vector1 = new Vector([1, 2]);
const vector2 = new Vector(vector1)... | {
"content_hash": "b78dfe0c33317f5b0adcbf5be0172367",
"timestamp": "",
"source": "github",
"line_count": 383,
"max_line_length": 98,
"avg_line_length": 46.702349869451695,
"alnum_prop": 0.7676524850450047,
"repo_name": "georgemarshall/DefinitelyTyped",
"id": "a3982dc4bc2f59d79fdb48025c8fc733fa21fcc1",... |
package com.intellij.openapi.command;
import java.util.EventListener;
public interface CommandListener extends EventListener {
default void commandStarted(CommandEvent event) {
}
default void beforeCommandFinished(CommandEvent event) {
}
default void commandFinished(CommandEvent event) {
}
default v... | {
"content_hash": "9c6eb1bf5cd0bb4e4eadb39c6db54759",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 58,
"avg_line_length": 19.833333333333332,
"alnum_prop": 0.773109243697479,
"repo_name": "jk1/intellij-community",
"id": "c4eb86325b981db97725179c75f25b3a4da7c9c7",
"size":... |
module Wukong
module Streamer
#
# Mix StructRecordizer into any streamer to make it accept a stream of
# objects -- the first field in each line is turned into a class and used to
# instantiate an object using the remaining fields on that line.
#
module StructRecordizer
#
# Turned... | {
"content_hash": "dfcb50a9cc4b15e6a92e79adf89dcf72",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 80,
"avg_line_length": 30.48936170212766,
"alnum_prop": 0.6266573621772505,
"repo_name": "infochimps-labs/wukong",
"id": "f6c9a9fd9f2ea8d0926fa94175f976747ea63de0",
"size":... |
package iec61499
import (
"errors"
"fmt"
"strings"
)
//A ValidateError is returned when validation of a network of function block fails
type ValidateError struct {
Err error
Arg string
DebugInfo
}
func (v ValidateError) Error() string {
s := fmt.Sprintf("Error (File %v, Line %v): %s", v.SourceFile, v.SourceLi... | {
"content_hash": "9260f20ffdfcc16b76e18f6662368e17",
"timestamp": "",
"source": "github",
"line_count": 316,
"max_line_length": 135,
"avg_line_length": 29.414556962025316,
"alnum_prop": 0.685207100591716,
"repo_name": "PRETgroup/goFB",
"id": "9cfb982c62b2eed3defba92c9b45b98b40945279",
"size": "9295... |
//
// Pop3Command.cs
//
// Author: Jeffrey Stedfast <jestedfa@microsoft.com>
//
// Copyright (c) 2013-2022 .NET Foundation and Contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Softw... | {
"content_hash": "048c47d5bb21bab9ddbb81b22425332e",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 134,
"avg_line_length": 33.655913978494624,
"alnum_prop": 0.7169329073482428,
"repo_name": "jstedfast/MailKit",
"id": "0c86344db85d6de1f265e1e68763f4ad9e1b45e6",
"size": "3... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xam... | {
"content_hash": "233670bb12813d0aeb2f967f58f9804d",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 99,
"avg_line_length": 37.74766355140187,
"alnum_prop": 0.6236692250557069,
"repo_name": "kkho/Cognitive-Services-Computas-",
"id": "db1c57a6a867bbb0f094d776984712acb5e919e5... |
import createReducer, {
paginate,
fetchRequest,
fetchSuccessEntities,
fetchSuccess,
fetchFailure
// resetReducer
} from "./utilities"
import {
ROLETYPES_REQUEST,
ROLETYPES_SUCCESS,
ROLETYPES_FAILURE
// ROLETYPEIDS_SELECTED_RESET
} from "../actions/types"
// Slice Reducers
const roleTypes = createReduce... | {
"content_hash": "6475d5bab37024e45cd011fbf5243cf8",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 49,
"avg_line_length": 17.448979591836736,
"alnum_prop": 0.7298245614035088,
"repo_name": "MerinEREN/iiClient",
"id": "4f788ecd7b26816bbdc22ec5d382cf3fe026223d",
"size": "8... |
<?php
namespace Buybrain\Buybrain\Util;
class Cast
{
/**
* @param mixed $input
* @return null|string|string[]
*/
public static function toString($input)
{
if ($input === null) {
return $input;
}
if (is_array($input)) {
return array_map([self::c... | {
"content_hash": "49c8a6d1700a7cbfdbb4c33d29d59651",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 64,
"avg_line_length": 20.685714285714287,
"alnum_prop": 0.47513812154696133,
"repo_name": "buybrain/buybrain-sdk-pkp",
"id": "db80e8aa75c71ba18a7185fd37ca348edb94af06",
"s... |
package it.haefelinger.flaka.util;
/**
* A singleton factory for a Groovenizer instance.
*
* This factory is thread-safe.
*
* @author geronimo
*
*/
public class GroovenizerFactory {
/**
* The one and only instance.
*/
static Groovenizer instance;
static {
/* create instance on loading thi... | {
"content_hash": "194b8f6b95baf29283576232e36690b8",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 61,
"avg_line_length": 17.424242424242426,
"alnum_prop": 0.6469565217391304,
"repo_name": "greg2001/ant-flaka",
"id": "9a5da3e6dd1d4d633e0f0e587daf5449a39626f7",
"size": "1... |
package com.thoughtworks.studios.shine.semweb;
public interface URIReference extends Resource {
String getURIText();
String getSPARQLForm();
}
| {
"content_hash": "1b0a634b97a40776377420192ce7ebce",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 48,
"avg_line_length": 15.6,
"alnum_prop": 0.75,
"repo_name": "MFAnderson/gocd",
"id": "4cb9947004260512eafa130621a0831f61696632",
"size": "756",
"binary": false,
"copi... |
<?php
/**
* Base class that represents a query for the 'biblio' table.
*
*
*
* @method BiblioQuery orderByAutoctr($order = Criteria::ASC) Order by the autoctr column
* @method BiblioQuery orderByRefno($order = Criteria::ASC) Order by the RefNo column
* @method BiblioQuery orderBySpeccode($order = Criteria::ASC... | {
"content_hash": "eb6e11f8ebf1df6023bf384ddd8bfbfe",
"timestamp": "",
"source": "github",
"line_count": 911,
"max_line_length": 287,
"avg_line_length": 42.514818880351264,
"alnum_prop": 0.5899925124577212,
"repo_name": "royrusso/fishbase",
"id": "dbf1d7297d88abd4118a2f28307495cffd32698a",
"size": "... |
package com.hello2morrow.sonargraph.integration.access.model;
import com.hello2morrow.sonargraph.integration.access.foundation.IEnumeration;
import com.hello2morrow.sonargraph.integration.access.foundation.Utility;
public enum DependencyPatternType implements IEnumeration
{
WILDCARD,
PARSER_DEPENDENCY_ENDPOI... | {
"content_hash": "6da92994f3a3e5077ccebc4b1fffd569",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 78,
"avg_line_length": 25.695652173913043,
"alnum_prop": 0.7648054145516074,
"repo_name": "sonargraph/sonargraph-integration-access",
"id": "edd1fb517de2b0d2c4fe9ebb4d50cecdd... |
llvm::TargetOptions lld::initTargetOptionsFromCodeGenFlags() {
return ::InitTargetOptionsFromCodeGenFlags();
}
llvm::Optional<llvm::Reloc::Model> lld::getRelocModelFromCMModel() {
return getRelocModel();
}
llvm::Optional<llvm::CodeModel::Model> lld::getCodeModelFromCMModel() {
return getCodeModel();
}
std::str... | {
"content_hash": "eefca6654b67186293722670128c2932",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 71,
"avg_line_length": 28.733333333333334,
"alnum_prop": 0.7331786542923434,
"repo_name": "llvm-mirror/lld",
"id": "0137feb63f371d45669cab7d3939d5d78ca0dbad",
"size": "1540... |
namespace arc {
namespace {
class ArcMidisBridgeTest : public testing::Test {
protected:
ArcMidisBridgeTest()
: bridge_(ArcMidisBridge::GetForBrowserContextForTesting(&context_)) {}
ArcMidisBridgeTest(const ArcMidisBridgeTest&) = delete;
ArcMidisBridgeTest& operator=(const ArcMidisBridgeTest&) = delete;
... | {
"content_hash": "2e93bb9d3c0af9465f0b227c9cb7150a",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 77,
"avg_line_length": 27.076923076923077,
"alnum_prop": 0.7514204545454546,
"repo_name": "chromium/chromium",
"id": "d15bc1fc5a36df636cba4c379ee148be47c9c21a",
"size": "11... |
<?php
namespace Ballybran\Helpers\Security;
/**
* Class Val
* @package Ballybran\Helpers\Security
*/
class Val implements ValInterface
{
public function minlength(string $data, int $length)
{
if (strlen($data) < $length) {
return " (** minlength **) Your string " . $data . " can on... | {
"content_hash": "f2cc9ebdac68f082687632d9b05cd612",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 99,
"avg_line_length": 21.25,
"alnum_prop": 0.5357466063348416,
"repo_name": "knut7/framework",
"id": "d4e92304e66d8ade9ae2861219dca81aba12bfef",
"size": "1737",
"binary"... |
sudo sed -i '/Type=forking/a Restart=on-failure' /etc/systemd/system/$APPSYSTEMD || { echo -e $RED'Adding TYPE in SYSTEMD file failed.'$ENDCOLOR; exit 1; }
sudo sed -i "s@User=tautulli@User=$UNAME@g" /etc/systemd/system/$APPSYSTEMD || { echo -e $RED'Modifying USER in SYSTEMD file failed.'$ENDCOLOR; exit 1; }
sudo sed... | {
"content_hash": "beb22f982751c1b79297a670c51ecf65",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 157,
"avg_line_length": 89,
"alnum_prop": 0.7284644194756554,
"repo_name": "TommyE123/AtoMiC-ToolKit",
"id": "36fe5c24271060be05978a38fb894ac4bda86e5d",
"size": "593",
"bi... |
<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" con... | {
"content_hash": "d32298f8814091f2108de10129b351f6",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 420,
"avg_line_length": 71.60504201680672,
"alnum_prop": 0.7054336345499355,
"repo_name": "or-tools/docs",
"id": "57e242055bc1296303775698c53fc1e2d01c7d90",
"size": "8521"... |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.offlinepages.downloads;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Con... | {
"content_hash": "dcf8dbef04444149dc554373e8be43c5",
"timestamp": "",
"source": "github",
"line_count": 214,
"max_line_length": 110,
"avg_line_length": 44.30373831775701,
"alnum_prop": 0.7085750448264951,
"repo_name": "scheib/chromium",
"id": "a2ef8e85ee4af89e650b4330ac82b04da1fc0a9f",
"size": "948... |
package archive
import xtime "go-common/library/time"
// const ArcReport
const (
ArcReportNew = int8(0)
ArcReportReject = int8(1)
ArcReportAccept = int8(2)
)
// ArcReport archive_report
type ArcReport struct {
Mid int64 `json:"mid"`
Aid int64 `json:"aid"`
Type int8 `json:"type"`
Re... | {
"content_hash": "756bdcfe2d3bff2da3f38a563e54be64",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 37,
"avg_line_length": 22.045454545454547,
"alnum_prop": 0.6309278350515464,
"repo_name": "LQJJ/demo",
"id": "0f330aebebffec437fd16ab1fe3441a39869e53e",
"size": "485",
"b... |
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<link href="../../JavaScript-ConsoleStyle/JavaScript-ConsoleStyle.css" rel="stylesheet" />
<title>Exchange Values</title>
</head>
<body>
<div>
<label for="first-number">Enter first number:</label>
<input type="text" id="first-number"/>
... | {
"content_hash": "fa8888afdcc85f2b32a3303813940ed8",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 94,
"avg_line_length": 31.5,
"alnum_prop": 0.6634920634920635,
"repo_name": "AdrianApostolov/TelerikAcademy",
"id": "c24ffe772b950c208b262c8d7592bcdaeeedf951",
"size": "630... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jbehave.desktop</groupId>
<artifactId>jbehave-deskt... | {
"content_hash": "706205fc0ce52bfb47c79aecb9775fef",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 104,
"avg_line_length": 27.818181818181817,
"alnum_prop": 0.7116013071895425,
"repo_name": "fraisse/jbehave-desktop",
"id": "2c851b4386f252da844852d73a28ca8ef1b1fb0b",
"siz... |
package containerregistry
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0... | {
"content_hash": "7d31654cd8354f917d15a3c5dc581e8c",
"timestamp": "",
"source": "github",
"line_count": 583,
"max_line_length": 238,
"avg_line_length": 48.23670668953688,
"alnum_prop": 0.7662328426143233,
"repo_name": "seuffert/rclone",
"id": "ade76f52bcb19c9faf13d5f39eb549e84914cc2c",
"size": "281... |
package org.apache.nifi.processors.aws.sqs;
import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUn... | {
"content_hash": "d7676780d2a8b58560cfa5559c70aeda",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 162,
"avg_line_length": 45.21897810218978,
"alnum_prop": 0.7228410008071025,
"repo_name": "apsaltis/nifi",
"id": "cfa32b412826918b2689cf93680178c1e2e122eb",
"size": "6996"... |
package v6_test
import (
"errors"
"code.cloudfoundry.org/cli/actor/actionerror"
"code.cloudfoundry.org/cli/actor/v3action"
"code.cloudfoundry.org/cli/api/cloudcontroller/ccversion"
"code.cloudfoundry.org/cli/command/commandfakes"
"code.cloudfoundry.org/cli/command/flag"
"code.cloudfoundry.org/cli/command/trans... | {
"content_hash": "c0d223c6a3e04a6b29c9b1d2f4acad28",
"timestamp": "",
"source": "github",
"line_count": 156,
"max_line_length": 144,
"avg_line_length": 33.6025641025641,
"alnum_prop": 0.733689431514689,
"repo_name": "odlp/antifreeze",
"id": "0b661a50fe29abaee31d80f1e6044877f8911321",
"size": "5242"... |
package org.joda.time;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Locale;
import java.uti... | {
"content_hash": "eeccf90cd479e7fa97444be1b2ee66f7",
"timestamp": "",
"source": "github",
"line_count": 1145,
"max_line_length": 104,
"avg_line_length": 41.87336244541485,
"alnum_prop": 0.5960579831056418,
"repo_name": "tingting703/mp3_maven",
"id": "593cb3618dbe571bfc481e792a5b54c0493593e5",
"size... |
package helmpath
import (
"path/filepath"
"k8s.io/client-go/util/homedir"
)
// dataHome defines the base directory relative to which user specific data files should be stored.
//
// If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share is used.
func dataHome() string {
return filepat... | {
"content_hash": "203f541346bfb89fdcec3e0f708c245a",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 99,
"avg_line_length": 31.7,
"alnum_prop": 0.7350157728706624,
"repo_name": "operator-framework/operator-lifecycle-manager",
"id": "82fb4b6f1fec712ef513fc76e6af6c8190d8bdab",... |
package org.estatio.fixture.currency;
import javax.inject.Inject;
import org.estatio.dom.currency.Currencies;
import org.estatio.dom.currency.Currency;
import org.estatio.fixture.EstatioFixtureScript;
public class CurrenciesRefData extends EstatioFixtureScript {
public static final String EUR = "EUR";
publ... | {
"content_hash": "8227004ad79cb46857b717c8ded46d38",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 99,
"avg_line_length": 32.84848484848485,
"alnum_prop": 0.7370848708487084,
"repo_name": "kigsmtua/estatio",
"id": "9344aa27eaffc1e00a4f93390fee4b7a981d4ca9",
"size": "1724... |
'use strict'
//from http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object
function isHtmlElement(o:any) {
return (
typeof HTMLElement === "object" ? o instanceof HTMLElement : //DOM2
o && typeof o === "object" && o !== null && o.nodeType... | {
"content_hash": "c7450a0b6514ed6468ada7474180b886",
"timestamp": "",
"source": "github",
"line_count": 998,
"max_line_length": 145,
"avg_line_length": 32.98496993987976,
"alnum_prop": 0.6231051976062456,
"repo_name": "janisdd/tinybar",
"id": "a4bf42076375d5c9651bb4524adfd9434a4d3abc",
"size": "329... |
namespace message_center {
class Notification;
class NotificationControlButtonsView;
} // namespace message_center
namespace ui {
class LayerTreeOwner;
}
namespace views {
class FocusTraversable;
class Widget;
} // namespace views
namespace ash {
class ArcNotificationSurface;
// ArcNotificationContentView is a v... | {
"content_hash": "63a2fd845ef152599bb8a7ed1c323a1a",
"timestamp": "",
"source": "github",
"line_count": 192,
"max_line_length": 86,
"avg_line_length": 38.755208333333336,
"alnum_prop": 0.7494960354791023,
"repo_name": "ric2b/Vivaldi-browser",
"id": "910cdbd55feaf434964591bc60d508ab84bd7f7e",
"size"... |
import config, webui, BaseHTTPServer, urllib, sys, getopt, os
class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
config = config.Config("config.ini")
ssh_user = None
def set_content_type(self, content_type):
self.send_header('Content-Type', content_type)
def run(self):
if se... | {
"content_hash": "ca815a13f12b1b9f744d0d95ff130bd0",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 73,
"avg_line_length": 35.46875,
"alnum_prop": 0.5378854625550661,
"repo_name": "techtonik/pydotorg.pypi",
"id": "94f7d319cd7cc8be30ebeffc5a462a4503d6c845",
"size": "4558"... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_51) on Fri Jul 19 02:59:43 EDT 2013 -->
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
Class Hierarchy (Solr 4.4.0 API)
... | {
"content_hash": "8303c0bd9815e7a14d169ccb61022ad9",
"timestamp": "",
"source": "github",
"line_count": 182,
"max_line_length": 631,
"avg_line_length": 51.15384615384615,
"alnum_prop": 0.6860365198711064,
"repo_name": "tenaciousjzh/titan-solr-cloud-test",
"id": "14e7a7b545e9247f68cbf4c48fa9f0b5597782... |
<?php
namespace DCarbone\PHPFHIRGenerated\DSTU2\FHIRResource;
use DCarbone\PHPFHIRGenerated\DSTU2\FHIRElement\FHIRBackboneElement\FHIRBundle\FHIRBundleEntry;
use DCarbone\PHPFHIRGenerated\DSTU2\FHIRElement\FHIRBackboneElement\FHIRBundle\FHIRBundleLink;
use DCarbone\PHPFHIRGenerated\DSTU2\FHIRElement\FHIRBundleType;... | {
"content_hash": "e960fc85693e1d6609e518cf23e4a032",
"timestamp": "",
"source": "github",
"line_count": 771,
"max_line_length": 230,
"avg_line_length": 37.509727626459146,
"alnum_prop": 0.527627939142462,
"repo_name": "dcarbone/php-fhir-generated",
"id": "7d129e1ba21dad8f4a4e25278ca68af03d65c9f6",
... |
<?php
namespace Joomla\Filter;
use Joomla\String\StringHelper;
/**
* InputFilter is a class for filtering input from any data source
*
* Forked from the php input filter library by: Daniel Morris <dan@rootcube.com>
* Original Contributors: Gianpaolo Racca, Ghislain Picard, Marco Wandschneider, Chris Tobin and A... | {
"content_hash": "ce542a5c5dc2c3d812ec25a6a733b8d5",
"timestamp": "",
"source": "github",
"line_count": 949,
"max_line_length": 148,
"avg_line_length": 25.969441517386723,
"alnum_prop": 0.567336173666058,
"repo_name": "yaelduckwen/lo_imaginario",
"id": "d58e9491b44fec62d13a19d45fd593a4971994bd",
"s... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Ver... | {
"content_hash": "ed3f9cc93669fc24053821ab7efa6141",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 105,
"avg_line_length": 29.978102189781023,
"alnum_prop": 0.6437789140491843,
"repo_name": "JYBESSON/camel",
"id": "036033873decf7ca8be1843a9dd46f00c27b792d",
"size": "410... |
/**
* line.cpp
* Implementation of singleton methods for LINE
*/
#include "curve.h"
VALUE sr_cLine;
SR_CURVE_INIT(Line, Line, line)
bool siren_line_install()
{
SR_CURVE_DEFINE(Line)
rb_define_method(sr_cLine, "initialize", RUBY_METHOD_FUNC(siren_curve_init), -1);
rb_define_method(sr_cLine, "dir", RU... | {
"content_hash": "34b0853b4109c70bc6303ddc1527a859",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 83,
"avg_line_length": 22.416666666666668,
"alnum_prop": 0.6747211895910781,
"repo_name": "dyama/ruby-siren",
"id": "433bcc962deeb37eb359689496926ddb77e39e18",
"size": "538... |
// @COPYRIGHT@
// Licensed under MIT license (LICENSE.txt)
// clxx/cl/functions/get_image_info.t.h
/** // doc: clxx/cl/functions/get_image_info.t.h {{{
* \file clxx/cl/functions/get_image_info.t.h
* \todo Write documentation
*/ // }}}
#ifndef CLXX_CL_FUNCTIONS_GET_IMAGE_INFO_T_H_INCLUDED
#define CLXX_CL_FUNCTIONS_... | {
"content_hash": "98dcb40a27e8de1e27adf96ac1d19021",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 135,
"avg_line_length": 38.48192771084337,
"alnum_prop": 0.6224170319348779,
"repo_name": "ptomulik/clxx",
"id": "8410279bb486d93d9a27b2799f1711d36e58212c",
"size": "3194",... |
@import UIKit;
@interface GLAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| {
"content_hash": "12fd474a932e61fbb5bbb39fd662f92f",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 62,
"avg_line_length": 19.142857142857142,
"alnum_prop": 0.7835820895522388,
"repo_name": "gaoli/GLChart",
"id": "e083b4bb8dcae0e62f9b7c6b3e4cbd15885e9969",
"size": "134",
... |
namespace Urho3D
{
class Sound;
/// Ogg Vorbis sound stream.
class URHO3D_API OggVorbisSoundStream : public SoundStream
{
public:
/// Construct from an Ogg Vorbis compressed sound.
OggVorbisSoundStream(const Sound* sound);
/// Destruct.
~OggVorbisSoundStream();
/// Seek to sample number. Return t... | {
"content_hash": "42b002523f9edf1ae8d1920708b591f5",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 123,
"avg_line_length": 25.866666666666667,
"alnum_prop": 0.7074742268041238,
"repo_name": "fire/Urho3D-1",
"id": "83e3fda9b92871f4215667958c61fdbd4b26813f",
"size": "1989"... |
// Package cdsbalancer implements a balancer to handle CDS responses.
package cdsbalancer
import (
"encoding/json"
"errors"
"fmt"
"google.golang.org/grpc/balancer"
"google.golang.org/grpc/balancer/base"
"google.golang.org/grpc/connectivity"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/creden... | {
"content_hash": "6956084b2540f62715ab40588065b50a",
"timestamp": "",
"source": "github",
"line_count": 593,
"max_line_length": 165,
"avg_line_length": 36.99494097807757,
"alnum_prop": 0.7366213875467226,
"repo_name": "knative/eventing",
"id": "d057ed66a53c83ec809df53af1793ffb914cdd00",
"size": "22... |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.jps.incremental.storage;
import com.intellij.util.Function;
import com.intellij.util.containers.CollectionFactory;
import com.intellij.util.containers.Conta... | {
"content_hash": "68b0b53b7e68651b79376fd8a370930b",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 140,
"avg_line_length": 34.98412698412698,
"alnum_prop": 0.7366152450090744,
"repo_name": "allotria/intellij-community",
"id": "cab44da7f3faf35c266f9b791e4e04b4ef598db5",
... |
.. complexity documentation master file, created by
sphinx-quickstart on Tue Jul 9 22:26:36 2013.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Package Lib Tool's documentation!
======================================
Contents:
.. ... | {
"content_hash": "7ed64a59dd610b3441cb567bee87034f",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 76,
"avg_line_length": 19.692307692307693,
"alnum_prop": 0.630859375,
"repo_name": "weijia/libtool",
"id": "4a1cf720b04b2ba3071fcbf32425464eaff2e9a3",
"size": "512",
"bin... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "619fdcebb29d0fb4d3287612b3e2da24",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "0a2e1678c54698006b0ac81c37fcba221f8ed84e",
"size": "174... |
.animate-switch-container {
position: relative;
background: white;
border: 1px solid black;
height: 40px;
overflow: hidden;
}
.animate-switch {
padding: 10px;
}
.animate-switch.ng-animate {
transition: all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
position: absolute;
top: 0;
... | {
"content_hash": "3a6905a7f50bdc0e648cb48fb471ea40",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 66,
"avg_line_length": 17.258064516129032,
"alnum_prop": 0.6355140186915887,
"repo_name": "mudunuriRaju/tlr-live",
"id": "e467d5c91c796caa9a53fe1c98c12c230acd8ec0",
"size":... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>idt: 21 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesh... | {
"content_hash": "10b230aa3f6f57241c5dd2ca51a82ebd",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 159,
"avg_line_length": 42.41142857142857,
"alnum_prop": 0.5450013473457289,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "a6c960767a134a873e42d9ef5dac6be77731ac98",
... |
Configuration References
===========================
The description of options that you can pass in the datagrid configuration is available below.
## Setting Options
To set datagrid options, define them under the datagrid_name.options path.
``` yaml
datagrids:
acme-demo-datagrid:
options:
```
## Opti... | {
"content_hash": "44f4c6fcc6a51e0c38c8045f45f1b49b",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 177,
"avg_line_length": 28.7625,
"alnum_prop": 0.7253368100825728,
"repo_name": "orocrm/platform",
"id": "f035d5ec0479c198825ee50c69bb60730e3abac0",
"size": "2301",
"bina... |
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="Notifications">
<CheckBoxPreference
android:title="@string/notifications"
android:key="@string/notifications_key"
... | {
"content_hash": "f874781891da98861023e5b8f0b4606c",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 77,
"avg_line_length": 38.48,
"alnum_prop": 0.6408523908523909,
"repo_name": "runningcode/UmbrellaAlarm",
"id": "ace3c9c8535f885f7d6c31ac5cd173e783768c2a",
"size": "1924",
... |
<!DOCTYPE html>
<html>
<head>
<link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="../css/froala_editor.min.css" rel="stylesheet" type="text/css">
<link href="../css/froala_reset.min.css" rel="stylesheet" type="text/css">
<style>
body {
text-align: center;
... | {
"content_hash": "eb946699010d624b333c87bc463c7084",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 76,
"avg_line_length": 29.106060606060606,
"alnum_prop": 0.5429463820926601,
"repo_name": "StephR74/3asyReport",
"id": "e0a3a0735e0c747c33b3e83d50d69ed869972f03",
"size": "... |
package host
import "github.com/opencontainers/runc/libcontainer/configs"
// DefaultCapabilities is the default list of capabilities which are set inside
// a container, taken from:
// https://github.com/opencontainers/runc/blob/v1.0.0-rc1/libcontainer/SPEC.md#security
var DefaultCapabilities = []string{
"CAP_NET_RA... | {
"content_hash": "e624c0944dacdfff0f302a060d3e839c",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 87,
"avg_line_length": 25.96153846153846,
"alnum_prop": 0.7437037037037038,
"repo_name": "philiplb/flynn",
"id": "8e57681d249391edee7bfbc71a2b0524c277ad58",
"size": "700",
... |
package com.github.agourlay.cornichon.kafka
import com.github.agourlay.cornichon.core.SessionKey
import com.github.agourlay.cornichon.json.CornichonJson._
import com.github.agourlay.cornichon.json.JsonSteps.JsonStepBuilder
import com.github.agourlay.cornichon.steps.regular.assertStep.{ AssertStep, Assertion, GenericEq... | {
"content_hash": "d389402bdab7a8fa02cbb0fbc9803a9e",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 113,
"avg_line_length": 39.666666666666664,
"alnum_prop": 0.7394957983193278,
"repo_name": "agourlay/cornichon",
"id": "601b307adce053e53e5027e40e59e671859ca9f8",
"size": "... |
class CreateLoanMunitionLogs < ActiveRecord::Migration
def change
create_table :loan_munition_logs do |t|
t.references :loan, index: true
t.references :munition, index: true
t.references :reserve, index: true
t.integer :amount
t.timestamps null: false
end
end
end
| {
"content_hash": "ddcd9dcf61babd963206e4e29a8cec2b",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 54,
"avg_line_length": 25.583333333333332,
"alnum_prop": 0.6807817589576547,
"repo_name": "DiegoCorrea/SoldadinhodeChumbo",
"id": "8ae146fa2b868e5fdc0f21dd2100ea02691ecfa5",
... |
namespace Toscana.Engine
{
internal class ToscaFloatDataTypeConverter : IToscaDataTypeValueConverter
{
public bool CanConvert(string dataTypeName)
{
return dataTypeName == "float";
}
public bool TryParse(object dataTypeValue, out object result)
{
... | {
"content_hash": "62f18fc5d35b8415779a2d0c3e32d99f",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 86,
"avg_line_length": 27.695652173913043,
"alnum_prop": 0.5525902668759811,
"repo_name": "johnathanvidu/Toscana",
"id": "f6243974b7029d570529eaf11448b9e4272dc533",
"size":... |
using System.Collections.Generic;
namespace MaxMind.GeoIP2
{
/// <summary>
/// Options class for WebServiceClient.
/// </summary>
public class WebServiceClientOptions
{
/// <summary>
/// Your MaxMind account ID.
/// </summary>
public int AccountId { get; set; }
... | {
"content_hash": "71f9c0b56b5568330e152a19414d8290",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 96,
"avg_line_length": 30.390243902439025,
"alnum_prop": 0.557784911717496,
"repo_name": "maxmind/GeoIP2-dotnet",
"id": "2a40a9e35074d727fb50e2acd439dd0d768cb43d",
"size": ... |
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
[DWNetworking postUrlString:@"当输入的请求地址为http://或者https://开头时,则不自动抛弃baseUrl" params:nil resultCallBack:^(id success, NSErr... | {
"content_hash": "99fea7ce72923ebc65e65896dee939a5",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 150,
"avg_line_length": 23.166666666666668,
"alnum_prop": 0.685251798561151,
"repo_name": "CoderDwang/DWNetworking",
"id": "3bda1e098eb0d8bc05a7d8e40912c1ae6f4da926",
"size... |
#include "stdafx.h"
#include "System\Array.h"
#include "System\Object.h"
#include "System\Int32.h"
| {
"content_hash": "35e5c6548384a0b5df3a2916ec4a84af",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 26,
"avg_line_length": 25,
"alnum_prop": 0.72,
"repo_name": "xiongfang/UL",
"id": "c72401d47af016ebc88921a8b2e0bd222a2fd86f",
"size": "102",
"binary": false,
"copies": "... |
package main
import (
"github.com/spf13/cobra"
"github.com/coreos/mantle/sdk"
"github.com/coreos/mantle/sdk/omaha"
)
var (
buildCmd = &cobra.Command{
Use: "build [object]",
Short: "Build something",
}
buildUpdateCmd = &cobra.Command{
Use: "update",
Short: "Build an image update payload",
Run: r... | {
"content_hash": "db425517af2795febc66d89a29b6769b",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 59,
"avg_line_length": 19.166666666666668,
"alnum_prop": 0.6753623188405797,
"repo_name": "marineam/mantle",
"id": "257baff004828f13f1fa40b108061d143f900622",
"size": "1280... |
"""
ABP analyzer and graphics tests
"""
cases = [
('Run Pymodel Graphics to generate dot file from FSM model, no need use pma',
'pmg.py ABP'),
('Generate SVG file from dot',
'dotsvg ABP'),
# Now display ABP.dot in browser
('Run PyModel Analyzer to generate FSM from original FSM, should be ... | {
"content_hash": "72d9f98e3cfab3d9c294da53322e3d50",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 82,
"avg_line_length": 25.541666666666668,
"alnum_prop": 0.6541598694942904,
"repo_name": "nfredrik/pyModelStuff",
"id": "3582ef463bc23bae59174a0b2b8c276b24a2439a",
"size":... |
var albumServer = require('album-server')
albumMgr = require('album-manager');
var ALBUMS_DIR = './gallery';
// DI-style initialization
// Create album manager (service object)
var albums = albumMgr.create(ALBUMS_DIR);
// Fire up the server on port 8080
var server = albumServer.create(albums);
server.listen(808... | {
"content_hash": "b2972151d76d2eda981595e58efb22bb",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 52,
"avg_line_length": 25.2,
"alnum_prop": 0.7275132275132276,
"repo_name": "joerx/node-gallery",
"id": "aae8aba6aa28dba66ac7e4d805c1a39f36ecad8f",
"size": "378",
"binary... |
@interface ViewController() <SLRecognizerDelegate>
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
[[SLRecognizer sharedInstance] initWithAppId:@"appId" appSecret:@"appSecret"];
[SLRecognizer sharedInstance].delegate = self;
[[SLRecognizer sharedInstance] enable];
}
#p... | {
"content_hash": "95f4583a5c6dc8136cd73079678d4cde",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 82,
"avg_line_length": 24.5,
"alnum_prop": 0.7074829931972789,
"repo_name": "soundlinks/Soundlinks-iOS-SDK",
"id": "c4976b7cafcc4a8119c21c83f7d1932984c2bf45",
"size": "784"... |
package commands
import (
cmdkit "github.com/ipfs/go-ipfs-cmdkit"
cmds "github.com/ipfs/go-ipfs-cmds"
)
var DiagCmd = &cmds.Command{
Helptext: cmdkit.HelpText{
Tagline: "Generate diagnostic reports.",
},
Subcommands: map[string]*cmds.Command{
"sys": sysDiagCmd,
"cmds": ActiveReqsCmd,
},
}
| {
"content_hash": "ed12d0d721ed1b654044736070e909ff",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 42,
"avg_line_length": 18,
"alnum_prop": 0.7026143790849673,
"repo_name": "Luzifer/go-ipfs",
"id": "bfd75caac54fdd606e6ba53dd95cb58a8ae624dd",
"size": "306",
"binary": fa... |
<?php
/**
* Short description for class.
*
* @package Cake.Test.Fixture
*/
class MessageFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Message'
*/
public $name = 'Message';
/**
* fields property
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer'... | {
"content_hash": "6daea59639b836b88df9c179408ddd49",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 61,
"avg_line_length": 18.487179487179485,
"alnum_prop": 0.5589459084604715,
"repo_name": "soug-jp/account-book",
"id": "cd1f47552a674d817b4597beb8604c55b989226d",
"size": ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Immutable;
using System.Linq;
using System.Linq.Expressions;
using System.Threading;
using... | {
"content_hash": "c25c0e30375d6f27470f1426c8d5a254",
"timestamp": "",
"source": "github",
"line_count": 417,
"max_line_length": 168,
"avg_line_length": 45.39808153477218,
"alnum_prop": 0.5587132216998574,
"repo_name": "agocke/roslyn",
"id": "9108474b7907badc10e4d5169a1d09c79bc81b12",
"size": "18933... |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.autofill.prefeditor;
import android.content.Context;
import android.util.AttributeSet;
import android.view.Menu;
import android.view.MenuIt... | {
"content_hash": "213ababbe6c88190c5754ebaddd45899",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 83,
"avg_line_length": 32.025,
"alnum_prop": 0.7142857142857143,
"repo_name": "nwjs/chromium.src",
"id": "2b001aa811d67085399fa6c76b38575e7ea193c2",
"size": "1281",
"bina... |
@class DVTDotSeparatedVersion, NSString;
@interface DVTDownloadableDependency : NSObject <NSCoding>
{
NSString *_identifier;
DVTDotSeparatedVersion *_minVersion;
}
@property(readonly) DVTDotSeparatedVersion *minVersion; // @synthesize minVersion=_minVersion;
@property(readonly) NSString *identifier; // @synth... | {
"content_hash": "743cf52ca230882824cbab7c2984d25b",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 94,
"avg_line_length": 29.6,
"alnum_prop": 0.7584459459459459,
"repo_name": "pitatensai/FBSimulatorControl",
"id": "9b916dc26f49375a2eb9d5a9acf287ca3ae185a8",
"size": "775"... |
{% extends "base.html" %}
{% block title %}
{{ SITENAME }} | Projects
{% endblock %}
{% block content %}
{% if pages %}
<ul class="post-list" id="projects" itemscope itemtype="http://schema.org/Blog">
{% for article in articles|selectattr("project") %}
{% include 'article_short.html' %}
{% endfo... | {
"content_hash": "ec1729188f764d12274d1c8ebf30ec5f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 84,
"avg_line_length": 28.46153846153846,
"alnum_prop": 0.581081081081081,
"repo_name": "NikhilKalige/mytheme",
"id": "55aed130f1c13c12d474db30a31a686fc45bd453",
"size": "3... |
package alec_wam.CrystalMod.entities.animals;
import net.minecraft.client.model.ModelCow;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;
import ne... | {
"content_hash": "b414cd8e4c8485ddd5dbfba64dbb93ff",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 436,
"avg_line_length": 45.35,
"alnum_prop": 0.7508269018743109,
"repo_name": "Alec-WAM/CrystalMod",
"id": "14a18e37b83ef4a9bae66c03eb6c56a204c586e5",
"size": "1814",
"bi... |
#include "hal.h"
/**
* @brief PAL setup.
* @details Digital I/O ports static configuration as defined in @p board.h.
* This variable is used by the HAL when initializing the PAL driver.
*/
#if HAL_USE_PAL || defined(__DOXYGEN__)
const PALConfig pal_default_config =
{
{VAL_GPIOA_MODER, VAL_GPIOA_OTYP... | {
"content_hash": "8156d1425539eb97ea4ea77d3d65d3db",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 121,
"avg_line_length": 32.205882352941174,
"alnum_prop": 0.6995433789954338,
"repo_name": "marcoveeneman/ChibiOS-Tiva",
"id": "49cb4045459b4c5d73c45468efd2f61d2559cd2a",
"... |
package com.anriku.imcheck.MainInterface.View.GroupSet;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import com.anriku.imcheck.MainInterface.I... | {
"content_hash": "692a78f07d3627a6c5c3a7dc19d8bb5e",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 87,
"avg_line_length": 34.592592592592595,
"alnum_prop": 0.7210920770877944,
"repo_name": "Anriku/IMCheck",
"id": "f146c0f2e62452364f5cd3e1e3727a19872e6b92",
"size": "1868"... |
angular.module("appExpedientes",["ngRoute"])
.config(function($routeProvider){
$routeProvider.when("/area",{templateUrl:"views/datosArea.html"})
.when("/area/lista",{templateUrl:"views/listaAreas.html"});
})
.controller("areaController",function($scope,areaService){
$scop... | {
"content_hash": "2fe7395dad8612ce7d83e5c549918801",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 101,
"avg_line_length": 39.125,
"alnum_prop": 0.48562300319488816,
"repo_name": "cmacarpio/HTML5JS",
"id": "87dad19ecdac8eedf78260a72c5030f1cc0d8c51",
"size": "2828",
"bi... |
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from go... | {
"content_hash": "6adced89cff4ebdd58047804f43dd72d",
"timestamp": "",
"source": "github",
"line_count": 199,
"max_line_length": 560,
"avg_line_length": 32.5678391959799,
"alnum_prop": 0.6340070976701127,
"repo_name": "dhermes/gcloud-python",
"id": "5208450f5deae1866048e7a1d79c26b08b20accd",
"size":... |
<?php
declare(strict_types=1);
namespace Fbns\Network;
class NetworkType
{
public const NONE = -1;
public const MOBILE = 0;
public const WIFI = 1;
public const MOBILE_MMS = 2;
public const MOBILE_SUPL = 3;
public const MOBILE_DUN = 4;
public const MOBILE_HIPRI = 5;
public const WIMAX ... | {
"content_hash": "1890a10c05510282881b8ce8e0f1e024",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 39,
"avg_line_length": 24.357142857142858,
"alnum_prop": 0.6451612903225806,
"repo_name": "valga/fbns-react",
"id": "d144108dc8f067d47db315f91fd3f8faaaa4cf59",
"size": "682... |
package cgroup
import (
"bufio"
"bytes"
"io/ioutil"
"os"
"path/filepath"
"time"
"github.com/elastic/gosigar/util"
)
var clockTicks = uint64(util.GetClockTicks())
// CPUAccountingSubsystem contains metrics from the "cpuacct" subsystem.
type CPUAccountingSubsystem struct {
Metadata
TotalNanos uint64 `json... | {
"content_hash": "99a3f8cfba55ea4f686a1bcc95bf8e28",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 78,
"avg_line_length": 21.357142857142858,
"alnum_prop": 0.7044314381270903,
"repo_name": "knz/gosigar",
"id": "70893b4f8f1a1d1c6ac7ee8bf4eefee5885945a9",
"size": "2392",
... |
import abc
class BaseWSGIContainer(object):
__metaclass__ = abc.ABCMeta
DESCRIPTION = abc.abstractproperty
@abc.abstractproperty
def name(self):
pass
@abc.abstractmethod
def send_request(self):
"""Should be implemented by subclasses""" | {
"content_hash": "5c0cbbe31975a44e872b9dfb2336e904",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 43,
"avg_line_length": 18.714285714285715,
"alnum_prop": 0.7099236641221374,
"repo_name": "rishimishra/flask_tornado",
"id": "eb6a4d85ef8f71f07f227552415ea2786881ad47",
"si... |
"""Pyxie's image packing implementation. Based on greedy algorithm described
in this stack overflow question:
http://stackoverflow.com/questions/1213394/algorithm-needed-for-packing-\
rectangles-in-a-fairly-optimal-way
Start with the largest rectangle. Add the next largest rectangle to the place
that extends th... | {
"content_hash": "4105058f1a10d9861dd8dfa55e424bba",
"timestamp": "",
"source": "github",
"line_count": 344,
"max_line_length": 107,
"avg_line_length": 44.35755813953488,
"alnum_prop": 0.5907333377023396,
"repo_name": "shopwiki/pyxie",
"id": "a1ccdffe622c98ed756b7e597b1d956bef018fdd",
"size": "1530... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... | {
"content_hash": "852da8e4440b3006ef1b0778268a6e83",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 92,
"avg_line_length": 29.346153846153847,
"alnum_prop": 0.5425950196592398,
"repo_name": "symeonmattes/pjsip",
"id": "141157b42cef47b01f7465f5c731ba2967f0f8dd",
"size": "7... |
package collections;// collections/SetOfInteger.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
import java.util.*;
public class SetOfInteger {
public static void main(String[] args) {
Random ra... | {
"content_hash": "f67321207ce6deeb51ea462ece6ba5aa",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 63,
"avg_line_length": 32.526315789473685,
"alnum_prop": 0.6375404530744336,
"repo_name": "mayonghui2112/helloWorld",
"id": "bdb6fbf7d84bc95ecde727b86e2a6439c258e984",
"siz... |
namespace Hotcakes.Commerce.Utilities
{
public enum SortDirection
{
Ascending = -1,
Descending = 1
}
} | {
"content_hash": "3762ae02fab57d27144ceb91f383b2e4",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 37,
"avg_line_length": 16.25,
"alnum_prop": 0.6,
"repo_name": "HotcakesCommerce/core",
"id": "f473201df0f6635acbf4d74cfe7fa7cb7cd8a30a",
"size": "1392",
"binary": false,
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Iced.Intel;
namespace Iced.UnitTests.Intel.FormatterTests {
public readonly struct FormatterTestCase {
public readonly int Bitness;
public readonly string HexBytes;
public readonly ulong IP;
public readonly Code Code;
... | {
"content_hash": "8c1870843bfd29cd5a1b7cec8165a806",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 288,
"avg_line_length": 43.05384615384615,
"alnum_prop": 0.6978738609969627,
"repo_name": "0xd4d/iced",
"id": "463120c8f83d0eb78b8a71165419ce32e119d08e",
"size": "5735",
... |
package com.gemstone.gemfire.cache.query;
/**
* Thrown if a region referenced by name in a query cannot be found.
*
* @author Eric Zoerner
* @since 4.0
*/
public class RegionNotFoundException extends NameResolutionException {
private static final long serialVersionUID = 592495934010222373L;
/**
* C... | {
"content_hash": "bb5c7d86409a18c331ce16cce4559941",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 70,
"avg_line_length": 24.6,
"alnum_prop": 0.7113821138211383,
"repo_name": "sshcherbakov/incubator-geode",
"id": "4ae94e36cc7269164bdf525c09bbc0261ad28f4c",
"size": "1540"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.