text stringlengths 2 1.04M | meta dict |
|---|---|
package dev
import (
"time"
"github.com/udhos/jazigo/conf"
)
func registerModelHTTP(logger hasPrintf, t *DeviceTable) {
a := conf.NewDevAttr()
a.CommandList = []string{"GET / HTTP/1.0\r\n\r\n"}
a.ReadTimeout = 5 * time.Second
a.MatchTimeout = 10 * time.Second
a.SendTimeout = 5 * time.Second
a.CommandReadTim... | {
"content_hash": "f37163663e414579d92083305bde7310",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 77,
"avg_line_length": 25.53846153846154,
"alnum_prop": 0.6792168674698795,
"repo_name": "udhos/jazigo",
"id": "8c2b361ecda5da36f12d2bab27aee436034909f9",
"size": "664",
... |
namespace GameMover2000
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <para... | {
"content_hash": "629cfe949c7e42410cbcb01fdd9c9e65",
"timestamp": "",
"source": "github",
"line_count": 319,
"max_line_length": 163,
"avg_line_length": 51.1692789968652,
"alnum_prop": 0.6008086748759419,
"repo_name": "Wynadorn/GameMover2000",
"id": "b0d12b5ad9b82e1ff50d6741f2059855855dcf34",
"size"... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StageBitz.Data.DataTypes
{
public class DefaultImage
{
public int DocumentMediaId { get; set; }
public string Name { get; set; }
public string RelatedTableName ... | {
"content_hash": "6bd46648fd80a75b30fcee77c26b7461",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 52,
"avg_line_length": 22.8,
"alnum_prop": 0.6871345029239766,
"repo_name": "StageBitz/StageBitz",
"id": "29397b07ad7bc4b2a4f9de65563a89b376f648ce",
"size": "344",
"binar... |
package com.podio;
import com.sun.jersey.api.client.ClientRequest;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.filter.ClientFilter;
import java.util.List;
import javax.ws.rs.core.MultivaluedMap;
public class RateLimitFilter extends ClientFilter {
@SuppressWarni... | {
"content_hash": "b1efbbbe7a9804b46fac9c13c0fb563e",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 107,
"avg_line_length": 47.627906976744185,
"alnum_prop": 0.45654296875,
"repo_name": "Awhiteweb/podio-java",
"id": "fcfc8e030affcbc4808188537741b6bc70b6d28e",
"size": "204... |
/**
* Provides classes, interfaces and annotations for registering and implementing artifact transforms.
*
* <p>
* To register an artifact transform, use {@link org.gradle.api.artifacts.dsl.DependencyHandler#registerTransform(java.lang.Class, org.gradle.api.Action)}.
* This allows you to register a {@lin... | {
"content_hash": "55de2d35fab5bafc00dda647af5b4cc4",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 159,
"avg_line_length": 47.42857142857143,
"alnum_prop": 0.7575301204819277,
"repo_name": "gradle/gradle",
"id": "9c21f9e50946d63dad789d68400adb1d90a777f7",
"size": "1279",... |
The iOS implementation of [`path_provider`][1].
## Usage
This package is [endorsed][2], which means you can simply use `path_provider`
normally. This package will be automatically included in your app when you do.
[1]: https://pub.dev/packages/path_provider
[2]: https://flutter.dev/docs/development/packages-and-plug... | {
"content_hash": "ab0fa8e0a2c767b9ec86a32a08e7ddef",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 108,
"avg_line_length": 41.111111111111114,
"alnum_prop": 0.7702702702702703,
"repo_name": "flutter/plugins",
"id": "dcfa06dcdfb0eaab9742aaccf499b9a0152c2503",
"size": "393"... |
package com.groupon.seleniumgridextras.grid;
import com.google.gson.JsonObject;
import com.groupon.seleniumgridextras.PortChecker;
import com.groupon.seleniumgridextras.config.Config;
import com.groupon.seleniumgridextras.config.GridNode;
import com.groupon.seleniumgridextras.config.RuntimeConfig;
import org.apache.... | {
"content_hash": "1d427d27c6f13db3e970d73eea633e2d",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 101,
"avg_line_length": 31.375,
"alnum_prop": 0.6977091633466136,
"repo_name": "Eriten/Selenium-Grid-Extras",
"id": "9980eaa5ec3c9eec4f04fddfb6c183361c4ef191",
"size": "200... |
package com.easycodebox.common.net;
import com.easycodebox.common.file.MimeTypes;
import com.easycodebox.common.file.UploadFileInfo;
import com.easycodebox.common.jackson.Jacksons;
import com.easycodebox.common.lang.*;
import com.easycodebox.common.validate.Assert;
import com.fasterxml.jackson.core.JsonGenerationExcep... | {
"content_hash": "8dc7fe006afe3e61c3ea28c8607004b8",
"timestamp": "",
"source": "github",
"line_count": 946,
"max_line_length": 159,
"avg_line_length": 31.17019027484144,
"alnum_prop": 0.6407230304880117,
"repo_name": "easycodebox/easycode",
"id": "cbd97825c73c3ec08c1e455da91d069dc9929512",
"size":... |
#import <UIKit/UIKit.h>
@class ViewController;
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) ViewController *viewController;
@end
| {
"content_hash": "b82d46af28d333c7c9b9987f8724f743",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 61,
"avg_line_length": 16.5,
"alnum_prop": 0.7748917748917749,
"repo_name": "EngineDreamer/DreamEngine",
"id": "f64bf7bdf3302abb0e561f279948c9e06269a764",
"size": "1495",
... |
package com.arthurpitman.samassi.tiles;
import com.arthurpitman.samassi.GeoPoint;
/**
* Represents metadata associated with a TileSource.
* <p>
* Fields are based on those provided by mbtiles files.
*/
public class TileSourceMetadata {
private final GeoPoint[] mapBounds;
private final GeoPoint mapCenter;
pr... | {
"content_hash": "f5555cba0ceed0e2b90709f777a1371c",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 119,
"avg_line_length": 18.469135802469136,
"alnum_prop": 0.7005347593582888,
"repo_name": "arthurpitman/samassi",
"id": "c8b2db0c582115b38627082d9222398c58a6e7e7",
"size":... |
package com.hazelcast.collection.impl.queue;
import com.hazelcast.collection.IQueue;
import com.hazelcast.collection.ItemEvent;
import com.hazelcast.collection.ItemListener;
import com.hazelcast.collection.impl.queue.model.VersionedObject;
import com.hazelcast.collection.impl.queue.model.VersionedObjectComparator;
i... | {
"content_hash": "6b0840c4804e79287e031cadb60abac5",
"timestamp": "",
"source": "github",
"line_count": 212,
"max_line_length": 105,
"avg_line_length": 37.589622641509436,
"alnum_prop": 0.6827707366043418,
"repo_name": "mdogan/hazelcast",
"id": "5864ca6c538c35c762f4ceba5c2c51029d00daed",
"size": "8... |
from datetime import datetime
from binascii import hexlify
from gevent.event import Event
from steam.steamid import SteamID
from steam.enums import EFriendRelationship, EPersonaState, EChatEntryType
from steam.enums.emsg import EMsg
from steam.core.msg import MsgProto
class SteamUser(object):
"""
A data model ... | {
"content_hash": "a2ffd4cd3a6c5c5f9a7c659d8bfc1418",
"timestamp": "",
"source": "github",
"line_count": 155,
"max_line_length": 196,
"avg_line_length": 31.212903225806453,
"alnum_prop": 0.5725506407606449,
"repo_name": "ValvePython/steam",
"id": "1eebeeac3cd1209257ba440f776ecc39678ba0cb",
"size": "... |
#ifndef TEST_TIMSORT_H
#define TEST_TIMSORT_H
#include <cppunit/extensions/HelperMacros.h>
class test_timsort : public CPPUNIT_NS::TestFixture {
CPPUNIT_TEST_SUITE(test_timsort);
CPPUNIT_TEST(test1);
CPPUNIT_TEST(test2);
CPPUNIT_TEST(test3);
CPPUNIT_TEST(test4);
CPPUNIT_TEST(test5);
CPPUN... | {
"content_hash": "27105d8fbfa3b63043509f56e5342b23",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 53,
"avg_line_length": 18.08823529411765,
"alnum_prop": 0.6357723577235772,
"repo_name": "RipcordSoftware/lazyflatset",
"id": "49a7744844990b74a3b2ad9f1e0e20d9bcbca69e",
"s... |
export CUDNN_CONVOLUTION, CUDNN_CROSS_CORRELATION
function convolution_desc(T::Type, padding, stride, mode)
N = length(padding)
p = Ptr{Void}[0]
cudnnCreateConvolutionDescriptor(p)
cpadding = Cint[padding[i] for i=N:-1:1]
cstrides = Cint[stride[i] for i=N:-1:1]
cupscale = fill(Cint(1), N)
c... | {
"content_hash": "4b6b543b6bb8f4b208619e43f7afe3d1",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 108,
"avg_line_length": 34.92982456140351,
"alnum_prop": 0.6978905072827725,
"repo_name": "hshindo/CUDA.jl",
"id": "f4b047ad758fc6aafddae186da91a091993e36de",
"size": "398... |
import Popper from 'popper.js'
import clickoutMixin from './clickout'
import listenOnRootMixin from './listen-on-root'
import { from as arrayFrom } from '../utils/array'
import { assign } from '../utils/object'
import KeyCodes from '../utils/key-codes'
import warn from '../utils/warn'
import { isVisible, closest, selec... | {
"content_hash": "8a1ff7af3c516efa7cb6b96e729ea3f8",
"timestamp": "",
"source": "github",
"line_count": 386,
"max_line_length": 133,
"avg_line_length": 27.585492227979273,
"alnum_prop": 0.556442524417731,
"repo_name": "sschadwick/bootstrap-vue",
"id": "29e39d7209c6e04bf8137403ea2060c861eefd59",
"si... |
package org.dashbuilder.dataset.engine.group;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.dashbuilder.dataset.date.Month;
import org.dashbuilder.dataset.group.ColumnGroup;
import org.dashbuilder.dataset.group.Interval;
/**
* List of the 12-months intervals present in a year.
... | {
"content_hash": "35dbc223e37dc1e2d7a3956cc04cc6d4",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 84,
"avg_line_length": 29.952380952380953,
"alnum_prop": 0.670906200317965,
"repo_name": "porcelli-forks/dashbuilder",
"id": "801327bb4129a375109cddc4463e81ea1e7b6087",
"si... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.industrieit.ohr.coherence;
import com.industrieit.ohr.collect.skiplist.OHRObjectSkipListMapImpl;
import com.industrieit.ohr.collect.skiplist.OHRSkipListMapFactory;
import java.util.Collection;
import java.ut... | {
"content_hash": "3fcf73674905c45ba247f258de29349a",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 135,
"avg_line_length": 27.049382716049383,
"alnum_prop": 0.6549520766773163,
"repo_name": "industrieit/ohr",
"id": "8741339ef4fb6d4bb14cf0b27843345280916807",
"size": "219... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="../../../../../favicon.ico" />
<tit... | {
"content_hash": "d0a759f8d7413b1aaa515ea57056b56d",
"timestamp": "",
"source": "github",
"line_count": 1963,
"max_line_length": 360,
"avg_line_length": 36.65104431991849,
"alnum_prop": 0.5546798988129986,
"repo_name": "terrytowne/android-developer-cn",
"id": "714a4eb3f8a6a2e90ceb608fe58abc3a8e3483c9... |
Common lisp provides several different conditional expressions, the main difference being the number of branches they support.
- `when` and `unless` allow for a single branch:
```lisp
(when (= 2 2) "All is well") ; => "All is well"
(unless (= 2 2) "Time to panic!") ; => NIL
```
The section after the test expres... | {
"content_hash": "af25f326423263e14ff9e545150a11e2",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 126,
"avg_line_length": 27.204545454545453,
"alnum_prop": 0.6599832915622389,
"repo_name": "exercism/xlisp",
"id": "d81adf4563dd00053419dc201b6036b1570546a0",
"size": "1213... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WF... | {
"content_hash": "ffb4ffdb6a22f0915ccb752e09ee75ec",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 84,
"avg_line_length": 39.4,
"alnum_prop": 0.7483683828861494,
"repo_name": "MarinMarinov/ASP.NET-Web-Forms",
"id": "c91d064f695ba73cb71daf3da5c7346cfb6354a9",
"size": "138... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://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/html; charset=utf-8" />
<title>The URI class — cpp-netlib v0.11.0</title>
... | {
"content_hash": "3512aa7bc823ec7b0fa6f0f8c80137f4",
"timestamp": "",
"source": "github",
"line_count": 288,
"max_line_length": 407,
"avg_line_length": 55.81944444444444,
"alnum_prop": 0.6447499377954715,
"repo_name": "godexsoft/pushy",
"id": "e127732a26adff16d176739b1044696c566bfe01",
"size": "160... |
/* 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
* distributed... | {
"content_hash": "770efa5eba0e6b952610080193096c62",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 155,
"avg_line_length": 41.91803278688525,
"alnum_prop": 0.7109894407508799,
"repo_name": "marcus-nl/flowable-engine",
"id": "f9802637326ce7f98abfebfba8f43393c6c04bba",
"si... |
import React, { Component } from 'react'
import styles from './JoinedChannelList.scss'
import { connect } from 'react-redux'
import { joinChannelSendbird } from '../../redux/actions/sendbird'
@connect(
state => ({
channels: state.channels,
}),
dispatch => ({
joinChannel: (channelUrl) => dispatch(joinChan... | {
"content_hash": "48f85ca04f589a5826e9f7306192edf2",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 262,
"avg_line_length": 32.8,
"alnum_prop": 0.6717479674796748,
"repo_name": "elbstack/elbstack-hackreact-web-3",
"id": "9d4d01dd9e21da9de68d49449f2753f40a42c923",
"size": ... |
// Copyright 2015 The Project Buendia Authors
//
// 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 agree... | {
"content_hash": "6d344d44c531c5936edc63e7a9cdac5a",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 98,
"avg_line_length": 43.49425287356322,
"alnum_prop": 0.6519556025369979,
"repo_name": "pedromarins/client",
"id": "28fd070f48da8c329e3b2922cdf0bd237c8dc6a1",
"size": "37... |
namespace Cosmetics.UnitTests.Products.ShoppingCart
{
using Contracts;
using Mock;
using Moq;
using NUnit.Framework;
[TestFixture]
public class TotalPrice_Should
{
// TotalPrice should return the total sum of the prices of all products in the products list.
// (or 0 if ther... | {
"content_hash": "63cd7c484ce6b9295f2895fd09abf265",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 101,
"avg_line_length": 29.441176470588236,
"alnum_prop": 0.6373626373626373,
"repo_name": "owolp/Telerik-Academy",
"id": "b448f2abada169507ea4ce30d843aa5e5f8a3020",
"size"... |
<?php
abstract class DifferentialChangesetRenderer extends Phobject {
private $user;
private $changeset;
private $renderingReference;
private $renderPropertyChangeHeader;
private $isTopLevel;
private $isUndershield;
private $hunkStartLines;
private $oldLines;
private $newLines;
private $oldComment... | {
"content_hash": "23f48e865b25827c91a00f019468a175",
"timestamp": "",
"source": "github",
"line_count": 718,
"max_line_length": 80,
"avg_line_length": 27.24791086350975,
"alnum_prop": 0.6062666121447556,
"repo_name": "aik099/phabricator",
"id": "26de5cb53b9640b007462dfcff7e5d27ec18ae52",
"size": "1... |
using flags::Flag;
using flags::Flags;
using flags::FlagsBase;
using std::cout;
using std::endl;
using std::string;
using std::map;
using utils::arraySize;
// Just used to test that the default implementation
// of --help and 'usage()' works as intended.
class EmptyFlags : public FlagsBase {};
class TestFlags : pu... | {
"content_hash": "5deaec6f839b98b93b187bbfd29b6d2a",
"timestamp": "",
"source": "github",
"line_count": 721,
"max_line_length": 76,
"avg_line_length": 21.527045769764218,
"alnum_prop": 0.5908124476515688,
"repo_name": "shakamunyi/mesos",
"id": "66e16abe914e2a1ee7599bab857ff478b7ec20dc",
"size": "16... |
package io.brooklyn.ambari;
import org.apache.brooklyn.location.ssh.SshMachineLocation;
import static org.apache.brooklyn.util.ssh.BashCommands.alternatives;
import static org.apache.brooklyn.util.ssh.BashCommands.chainGroup;
import static org.apache.brooklyn.util.ssh.BashCommands.commandToDownloadUrlAs;
import stat... | {
"content_hash": "4fd6620991c4ebff0f6ee312e51285b7",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 168,
"avg_line_length": 47,
"alnum_prop": 0.7175192394748755,
"repo_name": "tbouron/brooklyn-ambari",
"id": "93cac7dc5adf397c7853d49c670306732ce83902",
"size": "5227",
"b... |
module Network.MQTT.GatewaySpec (spec, debugTests) where
import Control.Concurrent (forkIO, killThread)
import Control.Exception (bracket)
import Control.Monad (forM_)
import Control.Monad.Cont (liftIO)
import Control.Monad.Reader (ReaderT, asks, runReaderT)
import q... | {
"content_hash": "8304677ed4b54709266decbdb6978e61",
"timestamp": "",
"source": "github",
"line_count": 313,
"max_line_length": 219,
"avg_line_length": 39.77635782747604,
"alnum_prop": 0.5828112449799197,
"repo_name": "rasendubi/mqtt-broker",
"id": "c2c92fd5b5e316b66c3cbff884af2241982182a3",
"size"... |
[](https://travis-ci.org/PVDTechEvents/owasp_ri_scraper)
Scrape currently scheduled event from [OWASP RI](https://www.owasp.org/index.php/Rhode_Island).
Built for automating updates to [PVDTechEvents.com](http://pvdtechevents.com/).... | {
"content_hash": "e6c9d50908863d897f6276736acecf30",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 143,
"avg_line_length": 28.054054054054053,
"alnum_prop": 0.7408477842003853,
"repo_name": "PVDTechEvents/owasp_ri_scraper",
"id": "d7f431e1e3ee48e8740215d67d05cd4a0f0dcad7",... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>finger-tree: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | {
"content_hash": "c4101fa4d658fd15665373a5271deb87",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 213,
"avg_line_length": 42.41104294478528,
"alnum_prop": 0.5431795168523073,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "9ae4141eacb1690f80e76b3957dc0643ad9bccea",
... |
namespace QuizFactory.Mvc.Areas.Admin.ViewModels
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Linq.Expressions;
using System.Web.Mvc;
using QuizFactory.Data.Models;
using QuizFactory.Mvc.ViewModels;
p... | {
"content_hash": "211b2f36e33d74e5af96f9e965b93445",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 105,
"avg_line_length": 31.04,
"alnum_prop": 0.5360824742268041,
"repo_name": "dpesheva/QuizFactory",
"id": "a363569e76e703a33ead5646b9b7f30db3dae82a",
"size": "1554",
"b... |
<?php
class Selectors_Pseudo {
static function resolve($name, $fallback=false){
static $parsers = false;if(!$parsers) {
$parsers = array() ;
foreach(array_diff(get_class_methods(__CLASS__),array(__FUNCTION__)) as $parser){
$parsers[str_replace("_","-",$parser)] = $parser;
... | {
"content_hash": "e39e445b0746eb76fb13480e2c397e15",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 89,
"avg_line_length": 26.857142857142858,
"alnum_prop": 0.6058510638297873,
"repo_name": "131/yks",
"id": "e996d1c71eb804cb8ad6833e31a51d6589b44950",
"size": "1880",
"bi... |
Super simple yet comprehensive static files server. Shuss :ski:
_u*:_ pick one
* uber
* unicorn
* universal
* ubuesque
* unix
* uhuhuh
## Installation
Shuss requires [`Node.js`](http://nodejs.org/) to run.
```shell
npm install shuss
```
You'd probably want it in available globally, with:
```shell
npm install -g s... | {
"content_hash": "fcb546ab32a708425badade1b18cf8f0",
"timestamp": "",
"source": "github",
"line_count": 189,
"max_line_length": 229,
"avg_line_length": 22.613756613756614,
"alnum_prop": 0.6984089845577913,
"repo_name": "ArnaudRinquin/shuss",
"id": "689ffdc4d3a2bedb7f69fa709f16e57c319680e7",
"size":... |
<?php
/**
* @see Zend_Http_Client
*/
require_once 'Zend/Http/Client.php';
/**
* This class allows Nirvanix authentication credentials to be specified
* in one place and provides a factory for returning convenience wrappers
* around the Nirvanix web service namespaces.
*
* @category Zend
* @package Zend_... | {
"content_hash": "d2862dcdc2cb55995a4195a24897a37a",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 87,
"avg_line_length": 32,
"alnum_prop": 0.5905539772727273,
"repo_name": "svn2github/zend_framework",
"id": "f4d02fcf138afd93410ff3c002a4d8eb823c4ae1",
"size": "3533",
"... |
"""
(2.5.3, 2.7.3) Exceptions for ticket validation failure responses
with the set of error codes that all CAS servers must implement.
"""
class ValidationError(Exception):
"""Base exception class for ticket validation failures."""
class InvalidRequest(ValidationError):
"""Not all of the required request pa... | {
"content_hash": "c43da06e59c68ea48e91ec786927e28d",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 72,
"avg_line_length": 27.537037037037038,
"alnum_prop": 0.7262945527908541,
"repo_name": "orbitvu/django-mama-cas",
"id": "dd1c707820a2d7671a398736f211bdc446f061dc",
"size... |
<html>
<head>
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
</head>
<body onload="prettyPrint();">
<pre class="prettyprint lang-js">FeedViewer = {};... | {
"content_hash": "851ad366b9fdc224aa0e5bf897168d1b",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 99,
"avg_line_length": 27.96511627906977,
"alnum_prop": 0.5147609147609148,
"repo_name": "jgsmith/locker",
"id": "e22e147607860b0f4f043f77a2980e8bf3f4494b",
"size": "2405",... |
'use strict';
require('should');
var utils = require('../index').collection;
describe('collection utils:', function() {
describe('any', function() {
it('should return an empty string when undefined.', function() {
utils.any().should.be.false;
});
it('should return if a value exists in the given ... | {
"content_hash": "fe2c9ee0c8f74d9a7f58fce583df580b",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 78,
"avg_line_length": 36.333333333333336,
"alnum_prop": 0.5596330275229358,
"repo_name": "jonschlinkert/utils",
"id": "0cfba0551957cb9406d9802ca0d7e884508176cb",
"size": "... |
package org.apache.geode.cache.lucene.internal.filesystem;
import java.io.IOException;
import java.io.InputStream;
/**
* An input stream that supports seeking to a particular position.
*/
public abstract class SeekableInputStream extends InputStream {
/**
* Seek to a position in the stream. The position is ... | {
"content_hash": "60514dfed926a2806e7c1ac6132c623f",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 98,
"avg_line_length": 25.88,
"alnum_prop": 0.740340030911901,
"repo_name": "prasi-in/geode",
"id": "43786837bf274bec03b3da336697d46cbd475e96",
"size": "1438",
"binary": ... |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="60dp"... | {
"content_hash": "9ad5fb6743a3f63cc92ad93f1a97d5a7",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 74,
"avg_line_length": 42.93333333333333,
"alnum_prop": 0.6288819875776398,
"repo_name": "spenceratkin/ImageEncrypt",
"id": "3e00e20f1107d4aea14029cf0eff0bcc5f137d9f",
"siz... |
<refentry id="gsettings-tool" lang="en">
<refentryinfo>
<title>gsettings</title>
<productname>GIO</productname>
<authorgroup>
<author>
<contrib>Developer</contrib>
<firstname>Ryan</firstname>
<surname>Lortie</surname>
</author>
</authorgroup>
</refentryinfo>
<refmeta>
<refentrytitl... | {
"content_hash": "bac787664d5e94efba58118cd74166e6",
"timestamp": "",
"source": "github",
"line_count": 233,
"max_line_length": 119,
"avg_line_length": 32.24892703862661,
"alnum_prop": 0.7251796646260315,
"repo_name": "zhongliangkang/twemproxy41",
"id": "3f3ef9774dafe858cbc505464f266d62b9b5f5d3",
"... |
"use strict";
// https://heycam.github.io/webidl/#es-namespaces
// https://console.spec.whatwg.org/#console-namespace
test(() => {
assert_true(self.hasOwnProperty("console"));
}, "console exists on the global object");
test(() => {
const propDesc = Object.getOwnPropertyDescriptor(self, "console");
assert_equals... | {
"content_hash": "8e6cefbbfae11918d6e78d660413f763",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 111,
"avg_line_length": 42.111111111111114,
"alnum_prop": 0.7229551451187335,
"repo_name": "enclose-io/compiler",
"id": "a4aae7ffce8ac81947ab092089aefb80b117c86e",
"size": ... |
'use strict';
// GLOBAL VARIABLES
var times = ['6am', '7am', '8am', '9am', '10am', '11am', '12pm', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm', '7pm'];
var salesTable = document.getElementById('cookieShops');
var myStores = [];
var hourlyTotal = [];
// var clearSalesForm = document.getElementById('clearForm');
// CONSTRU... | {
"content_hash": "ee14e49226fb8a1c385e9ad61fbcf667",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 161,
"avg_line_length": 28.791411042944784,
"alnum_prop": 0.6744086937992755,
"repo_name": "philipwerner/Cookie-Stand",
"id": "d0def6b47be296b222c8a61171c9d19d5fa0160e",
"... |
package org.robbins.flashcards.repository.conversion;
import java.util.Arrays;
import java.util.List;
import org.dozer.Mapper;
import org.hamcrest.CoreMatchers;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.robbins.flashcards.... | {
"content_hash": "a551c3849e4b8df36b88256ce0fd7ec4",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 81,
"avg_line_length": 31.26865671641791,
"alnum_prop": 0.7341288782816229,
"repo_name": "justinhrobbins/FlashCards_App",
"id": "f7fbb272f7455bc9b680b1ddbe263e2d79536c4c",
... |
<?xml version="1.0" encoding="UTF-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="hello" msgid="4362104386868779475">"Pozdrav svijetu, AktivnostAutoOdgovora!"</string>
<string name="app_name" msgid="898161313563373... | {
"content_hash": "96dfe16da55d0bd6f1dc3e9e014590bc",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 103,
"avg_line_length": 60.833333333333336,
"alnum_prop": 0.736986301369863,
"repo_name": "bmaupin/android-sms-plus",
"id": "121b86f8a572605787314acad0c8ec8845cf8d81",
"size... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/bigquery/connection/v1/connection.proto
package com.google.cloud.bigquery.connection.v1;
public interface AwsCrossAccountRoleOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.... | {
"content_hash": "e1249a20cf8012d8cb2128fbd2f60df4",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 106,
"avg_line_length": 26.52173913043478,
"alnum_prop": 0.646311475409836,
"repo_name": "googleapis/google-cloud-java",
"id": "b25dd1e04ebd536302aa48f38f6a72373831399c",
"... |
package com.google.api.ads.dfp.jaxws.v201508;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* Performs an action on {@link ExchangeRate} objects that sa... | {
"content_hash": "73bee3ba07698fc7544db1ae2a7888e7",
"timestamp": "",
"source": "github",
"line_count": 127,
"max_line_length": 143,
"avg_line_length": 30.094488188976378,
"alnum_prop": 0.5714285714285714,
"repo_name": "shyTNT/googleads-java-lib",
"id": "831e8527cb4e68190ac01797bd1c8aa247b33665",
"... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "ba264c973dff380199dcf26aaa280049",
"timestamp": "",
"source": "github",
"line_count": 1046,
"max_line_length": 835,
"avg_line_length": 49.105162523900574,
"alnum_prop": 0.6518768008722062,
"repo_name": "gpierre42/optraj",
"id": "3dbb94061ac446205a2feeeb4fe616bafb5c1117",
"size": "... |
using namespace std;
int maxSequenceSum(vector<int> numbers, int begin, int end)
{
if(begin == end)
return numbers[begin];
int index_half = begin + (end - begin)/2;
int max_left = maxSequenceSum(numbers, begin, index_half);
int max_right = maxSequenceSum(numbers, index_half+1, end);
int max_center_to_... | {
"content_hash": "cd6042047278077fe2c34ab63b3dc54d",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 61,
"avg_line_length": 19.34328358208955,
"alnum_prop": 0.5949074074074074,
"repo_name": "rNexeR/AnalisisAlgoritmos",
"id": "a0751eb058eaa06f0eedd6db1d5d500e0dbaa47b",
"siz... |
package org.apache.lucene.analysis.synonym;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.io.Reader;
import java.text.ParseException;
import java.util.ArrayList;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.util.CharsRef;
/**
* Pars... | {
"content_hash": "083a0c01111ea23b3fe874c8b0f3ca67",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 106,
"avg_line_length": 31.263803680981596,
"alnum_prop": 0.5769230769230769,
"repo_name": "fogbeam/Heceta_solr",
"id": "7afa491b0c054e3e21eef59753126a7b81d3889e",
"size":... |
using System;
using System.IO;
namespace Trinity.Consensus.Messages
{
internal class ChangeView : ConsensusMessage
{
public byte NewViewNumber;
public ChangeView()
: base((ConsensusMessageType) ConsensusMessageType.ChangeView)
{
}
public override void Deserialize(BinaryReader reader)
{
base.Dese... | {
"content_hash": "3a77df0595a4e176b23f14a94be9a1b2",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 65,
"avg_line_length": 18.774193548387096,
"alnum_prop": 0.7130584192439863,
"repo_name": "detroitpro/trinity",
"id": "a0daa4aa2058cb7dd4b6f490380e913813c9d9f7",
"size": "5... |
namespace sync_driver {
namespace {
using ::testing::InSequence;
using ::testing::StrictMock;
class SyncPrefsTest : public testing::Test {
protected:
void SetUp() override {
SyncPrefs::RegisterProfilePrefs(pref_service_.registry());
}
user_prefs::TestingPrefServiceSyncable pref_service_;
private:
bas... | {
"content_hash": "9171476d38d10badf575596f2c55cf68",
"timestamp": "",
"source": "github",
"line_count": 243,
"max_line_length": 80,
"avg_line_length": 37.21399176954733,
"alnum_prop": 0.7371447528475064,
"repo_name": "js0701/chromium-crosswalk",
"id": "f1712665c19d820836d65da3f8bacd5629cad3f7",
"si... |
#include <aws/chime-sdk-media-pipelines/model/UnauthorizedClientException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ChimeSDKMediaPipelines
{
namespace Model
{
UnauthorizedClientException::Unauthori... | {
"content_hash": "fdbccd393f44791d1cfd7b7533573a8b",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 88,
"avg_line_length": 19.45977011494253,
"alnum_prop": 0.7253396337861784,
"repo_name": "cedral/aws-sdk-cpp",
"id": "5a8720c40c7c25affd61e831cdb43439915b533e",
"size": "18... |
package com.jcabi.github;
import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import com.google.common.collect.ContiguousSet;
import com.google.common.collect.DiscreteDomain;
import com.google.common.collect.Iterables;
import com.google.commo... | {
"content_hash": "73d013b2d0ed2fa8fdcf41e54d82a97a",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 108,
"avg_line_length": 37.052083333333336,
"alnum_prop": 0.5903851560303627,
"repo_name": "cezarykluczynski/jcabi-github",
"id": "f41e795db37165b4478d56c8cda88ede158a92c3",
... |
'use strict';
function ContentEditRouteButton() {
return {
scope: true,
restrict: 'A',
controller: 'ContentRouteCtrl',
controllerAs: 'vm',
bindToController: true,// because the scope is isolated
link: function(scope, element, attrs, ContentRouteCtrl) {
el... | {
"content_hash": "39e0cd5d62547cec418e497189f4101d",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 93,
"avg_line_length": 30.8,
"alnum_prop": 0.6071428571428571,
"repo_name": "GrupaZero/admin",
"id": "6588fca2abc321f47c59b80e2262a4a6e4b9e412",
"size": "616",
"binary": ... |
cask 'utools' do
version '1.0.4-beta'
sha256 '30d46d8d89706b8d7642e2d809ad214410ba9c151ec3a0893658ac69f8639bdc'
# resource.u-tools.cn/ was verified as official when first introduced to the cask
url "https://resource.u-tools.cn/currentversion/uTools-#{version}.dmg"
appcast 'https://resource.u-tools.cn/current... | {
"content_hash": "3ae10fca2340726963937299556cc0b1",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 83,
"avg_line_length": 30.3,
"alnum_prop": 0.6848184818481848,
"repo_name": "morganestes/homebrew-cask",
"id": "531e403c8397101a72cf8229811e29efef28829b",
"size": "606",
... |
Infrared plugin to carry out migration from ML2/OVS to OVN
==========================================================
This is an infrared plugin which can be used to carry out the migration
from ML2/OVS to OVN if the tripleo was deployed using infrared.
See http://infrared.readthedocs.io/en/stable/index.html for more ... | {
"content_hash": "73c180bf545a39947dd897869703701b",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 240,
"avg_line_length": 43.878787878787875,
"alnum_prop": 0.7182320441988951,
"repo_name": "mahak/neutron",
"id": "1f1d04dbf588d3eb2989f353b4837ed0ee2373a9",
"size": "1448"... |
A maintainer should be polite and respectful towards every member of the community in order to make opsdroid a great project for both newbies and veterans in open source.
- **Responsibilities**
- Responding to issues and PRs (even just to say thanks and we'll look into it)
- Reviewing and merging Pull Requests
... | {
"content_hash": "4f7bd4a621bd40cce569e723a74a8722",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 325,
"avg_line_length": 71.95555555555555,
"alnum_prop": 0.7770228536133416,
"repo_name": "opsdroid/opsdroid",
"id": "d2485859e682d341c7bc15f702868695574aea47",
"size": "32... |
import abc
import six
@six.add_metaclass(abc.ABCMeta)
class ResourceBase(object):
"""Base class for resource."""
@abc.abstractmethod
def get_resource_extra_attributes(self, sample):
"""Extract the metadata from a ceilometer sample.
:param sample: The ceilometer sample
:returns: ... | {
"content_hash": "51b9977db2d88497f144c036f8a36b58",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 57,
"avg_line_length": 22.652173913043477,
"alnum_prop": 0.6487523992322457,
"repo_name": "idegtiarov/gnocchi-rep",
"id": "37d1ed70d82235f7c1a49ddea68852e9fd2fb9d0",
"size"... |
package org.lnu.is.converter.job.type;
import org.lnu.is.annotations.Converter;
import org.lnu.is.converter.AbstractConverter;
import org.lnu.is.domain.job.type.JobType;
import org.lnu.is.resource.job.type.JobTypeResource;
/**
*
* @author kushnir
*
*/
@Converter("jobTypeConverter")
public class JobTypeConverter e... | {
"content_hash": "35420244d43aef9230a1c1a7ba9bb3b7",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 85,
"avg_line_length": 25.06896551724138,
"alnum_prop": 0.7689133425034388,
"repo_name": "ifnul/ums-backend",
"id": "bc25e32b6bd3b52b3396f9a372f8703adbc039b8",
"size": "727... |
import * as yargs from "yargs";
import SSRProxy from "../src/index";
interface CommandLineArgs {
upstream: string;
config: string;
idleMax: number;
port: number;
nodeHttpProxy: Object;
phantomjs: Object;
}
const argv: CommandLineArgs = yargs
.usage("Usage: ssr-proxy -u http://upstream.url ... | {
"content_hash": "6cf34438422409fa3e25d55bb87f3fc2",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 97,
"avg_line_length": 28.951219512195124,
"alnum_prop": 0.6276326874473462,
"repo_name": "xiamx/ssr-proxy",
"id": "db2a3eac0cb5f8268057a8d94c4211a34a09e16f",
"size": "1212... |
package sh.isaac.model.observable.override;
import javafx.beans.property.Property;
import javafx.beans.property.SetProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableSet;
import sh.isaac.api.observable.coordinate.PropertyWithOverride;
import sh.isaac.model.observable.equalitybased.S... | {
"content_hash": "56cfc18d44054df1f7bdcf39e37da1db",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 84,
"avg_line_length": 28.50574712643678,
"alnum_prop": 0.5977822580645161,
"repo_name": "OSEHRA/ISAAC",
"id": "babee9253dcf47311724eb59b6e69c525dd7a2b3",
"size": "4960",
... |
from boto.pyami.config import Config, BotoConfigLocations
from boto.storage_uri import BucketStorageUri, FileStorageUri
import boto.plugin
import datetime
import os
import platform
import re
import sys
import logging
import logging.config
import urlparse
from boto.exception import InvalidUriError
__version__ = '2.25.0... | {
"content_hash": "de6ec8093ae60313bbc470d5db752ee7",
"timestamp": "",
"source": "github",
"line_count": 899,
"max_line_length": 79,
"avg_line_length": 34.550611790878754,
"alnum_prop": 0.6497859051543736,
"repo_name": "dablak/boto",
"id": "0e2752892912912d06786cec2e7e65f464f30106",
"size": "32376",... |
<?php
/**
* The Sidebar containing the main widget area.
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
$options = twentyeleven_get_theme_options();
$current_layout = $options['theme_layout'];
if ( 'content' != $current_layout ) :
?>
<div id="secondary" class="w... | {
"content_hash": "dfba9214652c2ec35ea6821568f69b5c",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 77,
"avg_line_length": 27.52777777777778,
"alnum_prop": 0.5408678102926338,
"repo_name": "sharpmachine/jessekade.com",
"id": "8d8e649115bfeecb04cecd047cfc82175cb94b92",
"si... |
"""
Writing data to a HDF partition.
"""
from copy import deepcopy
from functools import reduce
import json
import logging
import math
import time
import os
import re
from tables import open_file, StringCol, Int64Col, Float64Col, BoolCol, Int32Col
from tables.exceptions import NoSuchNodeError
import numpy as np
impo... | {
"content_hash": "0886b6ae40e82a4d9fd21d72859cc81e",
"timestamp": "",
"source": "github",
"line_count": 1022,
"max_line_length": 115,
"avg_line_length": 31.23972602739726,
"alnum_prop": 0.5464027312306199,
"repo_name": "CivicKnowledge/ambry_sources",
"id": "063eb62e91c84a0e469e6938defe368616de0129",
... |
package net.pens.pensmessenger.app.ui.loader;
import java.lang.ref.WeakReference;
import net.pens.pensmessenger.app.R;
import net.pens.pensmessenger.app.model.ChatStamp;
import net.pens.pensmessenger.app.util.Logger;
import net.pens.pensmessenger.app.util.StampCacheUtils;
import net.pens.pensmessenger.app.util.Thread... | {
"content_hash": "210d5fdbe2a51035eb647d55e70242e6",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 75,
"avg_line_length": 29.346153846153847,
"alnum_prop": 0.7213630406290956,
"repo_name": "rezacute/pens-messenger-android",
"id": "a3555d2e165b924d1b4a43aa66fb93b24ea8e57a"... |
/**
* Tests Ext.data.Store functionality
* @author Ed Spencer
*/
(function() {
var suite = Ext.test.session.getSuite('Ext.form.CompositeField'),
assert = Y.Assert;
//builds a simple composite field
function buildField(config) {
config = config || {};
Ext.appl... | {
"content_hash": "2d5422fa7ae6a73edc108e4651114ab2",
"timestamp": "",
"source": "github",
"line_count": 196,
"max_line_length": 96,
"avg_line_length": 27.474489795918366,
"alnum_prop": 0.47223769730733517,
"repo_name": "mguymon/mmd",
"id": "1df0f7bf9544acbacc8eb246c8e48f58eb126929",
"size": "5510",... |
{% extends "base.html" %}
{% block location %}
<li class="uk-active"><span> category </span></li>
{% endblock location %}
{% block content %}
<article class="uk-article">
{% for category, articles in categories %}
<dl class="uk-description-list-line">
<dt> <a href="{{SITEUR... | {
"content_hash": "346ee8d7b342c679e945e89dabb5f1ec",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 93,
"avg_line_length": 32.25,
"alnum_prop": 0.5368217054263565,
"repo_name": "dokelung/jojo",
"id": "2f09e57a0688b2ed29fcd541e055b3d3940ad1ab",
"size": "516",
"binary": f... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Mycoscience 43(3): 247 (2002)
#### Original name
Cribraria paucidictyon Yu Li, 2002
### Remarks
null | {
"content_hash": "80e43c81561767b79f5e85861efdd68f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 14.538461538461538,
"alnum_prop": 0.7142857142857143,
"repo_name": "mdoering/backbone",
"id": "688feea7f91003dac3eb285810651ec2ac9ec27e",
"size": "24... |
package com.sequenceiq.cloudbreak.core.flow2.cluster.config.update;
import static com.sequenceiq.cloudbreak.core.flow2.cluster.config.update.PillarConfigUpdateState.FINAL_STATE;
import static com.sequenceiq.cloudbreak.core.flow2.cluster.config.update.PillarConfigUpdateState.INIT_STATE;
import static com.sequenceiq.cl... | {
"content_hash": "35a5a9675e1f861adf87b4476cd8689c",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 147,
"avg_line_length": 54.223880597014926,
"alnum_prop": 0.7723644371043215,
"repo_name": "hortonworks/cloudbreak",
"id": "d3ea9c2d218429e6f59bede6e4dc9fa80fcc2890",
"size... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIco... | {
"content_hash": "f899f1219c7d46aa7d3612ab8b3de019",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 804,
"avg_line_length": 92.38095238095238,
"alnum_prop": 0.6943298969072165,
"repo_name": "mui-org/material-ui",
"id": "77386d344fef718250fe919d5823f14e9eae2aa4",
"size": "... |
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Diagnostics.Contracts;
using System;
// Disable the "this variable is not used" warning as every field would imply it.
#pragma warning disable 0414
// Disable the "this variable is never assigned to".
#pragma warning disable 0067
// Dis... | {
"content_hash": "4183b73d67d72d18e88fa4532ed7ae40",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 96,
"avg_line_length": 26.65671641791045,
"alnum_prop": 0.7105263157894737,
"repo_name": "hubuk/CodeContracts",
"id": "cf578e69d0ba49f4a386d121b8f62657ee066414",
"size": "3... |
<?php
/**
* @category Inchoo
* @package Inchoo Featured Products
* @author Domagoj Potkoc, Inchoo Team <web@inchoo.net>
* @modified Mladen Lotar <mladen.lotar@surgeworks.com>, Vedran Subotic <vedran.subotic@surgeworks.com>
*/
$installer = $this;
/* @var $installer Mage_Eav_Model_Entity_Setup */
... | {
"content_hash": "84a17f1c7265287d36d864d3403a034e",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 106,
"avg_line_length": 34.6578947368421,
"alnum_prop": 0.48139711465451784,
"repo_name": "portchris/NaturalRemedyCompany",
"id": "9a2722abfd54cac1e69cbcf7b42644e56e14edd0",
... |
import isObjectLike from './isObjectLike';
/** `Object#toString` result references. */
var errorTag = '[object Error]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostri... | {
"content_hash": "61d381d9192a721cbd021cfe5bbcf9a1",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 93,
"avg_line_length": 24.209302325581394,
"alnum_prop": 0.6493756003842459,
"repo_name": "nolanelena/MyProjectSite-",
"id": "5ad5e7e7430399954a1c97d679811e83287397e7",
"si... |
<meta name="doc-family" content="apps">
<h1>What Are Packaged Apps?</h1>
<p>
Packaged apps deliver an experience as capable as a native app,
but as safe as a web page.
Just like web apps,
packaged apps are written in HTML5, JavaScript, and CSS.
But packaged apps look and behave like native apps,
and they have native-... | {
"content_hash": "87aa9804e415bfe380335b95659682a7",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 150,
"avg_line_length": 32.38135593220339,
"alnum_prop": 0.7474483119602199,
"repo_name": "leighpauls/k2cro4",
"id": "cb83f78d3f152950499027d36c450371d5ced907",
"size": "3... |
import { JudgeUtils as JudgeUtils$ } from "wonder-commonlib/dist/commonjs/utils/JudgeUtils";
import { Entity } from "./core/Entity";
import { IObserver } from "./observer/IObserver";
export declare class JudgeUtils extends JudgeUtils$ {
static isPromise(obj: any): boolean;
static isEqual(ob1: Entity, ob2: Entit... | {
"content_hash": "50a818d955b4291a40194eba701f4624",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 92,
"avg_line_length": 48,
"alnum_prop": 0.7213541666666666,
"repo_name": "yyc-git/DYReactive",
"id": "3b4040083b56c118735ea67a47bdf1d3c0c8678e",
"size": "427",
"binary": ... |
#pragma once
#include "core/core.h"
#include "replay/replay_driver.h"
#include "vk_common.h"
#include "vk_core.h"
#include "vk_shader_cache.h"
struct VKMeshDisplayPipelines
{
enum
{
ePipe_Wire = 0,
ePipe_WireDepth,
ePipe_Solid,
ePipe_SolidDepth,
ePipe_Lit,
ePipe_Secondary,
ePipe_Coun... | {
"content_hash": "d9363b3a67ba1aa0b0cd0fcc04983d7a",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 101,
"avg_line_length": 39.01775147928994,
"alnum_prop": 0.7268729147710039,
"repo_name": "moradin/renderdoc",
"id": "a535001d3cce4dcb49225798f7a3f539c45d9976",
"size": "7... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ORKAudioChannel Constants Reference</title>
<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">... | {
"content_hash": "5e4edfe521840a19e110be69011ad0d5",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 118,
"avg_line_length": 23.274285714285714,
"alnum_prop": 0.45691136754235206,
"repo_name": "jeremiahyan/ResearchKit",
"id": "2b5433dba7a79644ae84d4a96f660108bce865ed",
"s... |
import {AotCompiler, CompileDirectiveMetadata, CompileMetadataResolver, CompileNgModuleMetadata, CompileStylesheetMetadata, ElementAst, EmbeddedTemplateAst, NgAnalyzedModules, QueryMatch, StaticSymbol, TemplateAst} from '@angular/compiler';
import {createProgram, Diagnostic, readConfiguration} from '@angular/compiler... | {
"content_hash": "055e7b1965cdd6fe6f8ea793716465e0",
"timestamp": "",
"source": "github",
"line_count": 236,
"max_line_length": 240,
"avg_line_length": 44.902542372881356,
"alnum_prop": 0.7219024252146834,
"repo_name": "alxhub/angular",
"id": "2d3f83e82d108b2d04cdd4b7253bc499bd843e17",
"size": "107... |
(function(f, define){
define([ "./kendo.draganddrop" ], f);
})(function(){
(function($, undefined) {
var kendo = window.kendo,
Widget = kendo.ui.Widget,
Draggable = kendo.ui.Draggable,
extend = $.extend,
format = kendo.format,
parse = kendo.parseFloat,
proxy = $... | {
"content_hash": "3079f37abe1a8fded292fc57fe36938f",
"timestamp": "",
"source": "github",
"line_count": 1649,
"max_line_length": 302,
"avg_line_length": 35.0194057004245,
"alnum_prop": 0.4793149427675897,
"repo_name": "nakske/LiveStock",
"id": "0047f13cf588f21ca04fcec59e7093ce21d10161",
"size": "58... |
namespace Ilwis {
class KERNELSHARED_EXPORT GeoRefImplementation : public GeoRefInterface, public Identity
{
public:
GeoRefImplementation(const QString& type);
virtual ~GeoRefImplementation();
ICoordinateSystem coordinateSystem() const;
void coordinateSystem(const ICoordinateSystem& csy);
Size<> siz... | {
"content_hash": "1da793f9032abbf8943a7df276ddc36a",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 88,
"avg_line_length": 29.12,
"alnum_prop": 0.7307692307692307,
"repo_name": "ridoo/IlwisCore",
"id": "9585741c9128663e112195277944d080a3746882",
"size": "791",
"binary":... |
package org.hisp.dhis.i18n;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.annotation.PostConstruct;
import org.hisp.dhis.common.BaseIdentifiableObject;
import org.hisp.dhis.common.Identifi... | {
"content_hash": "73c7de0b84f4ff4fcce3a9e3dee8b6d4",
"timestamp": "",
"source": "github",
"line_count": 184,
"max_line_length": 123,
"avg_line_length": 26.918478260869566,
"alnum_prop": 0.5756107409650717,
"repo_name": "HRHR-project/palestine",
"id": "5a2ee859101b74eb2604caad3dfa965b604f7095",
"siz... |
using namespace llvm;
Target &llvm::getTheLanaiTarget() {
static Target TheLanaiTarget;
return TheLanaiTarget;
}
extern "C" void LLVMInitializeLanaiTargetInfo() {
RegisterTarget<Triple::lanai> X(getTheLanaiTarget(), "lanai", "Lanai",
"Lanai");
}
| {
"content_hash": "6a184b4e5bd26da60a5dd6c04c801a21",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 72,
"avg_line_length": 26.181818181818183,
"alnum_prop": 0.65625,
"repo_name": "apple/swift-llvm",
"id": "93deb891dec56a4753761c80f5f188cd1952eaa6",
"size": "740",
"binar... |
/*************************************************************************/
/* editor_dir_dialog.h */
/*************************************************************************/
/* This file is part of: */
/* ... | {
"content_hash": "3f5915d94da2d2d53e81a6935db81817",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 75,
"avg_line_length": 42.68115942028985,
"alnum_prop": 0.5174872665534804,
"repo_name": "pixelpicosean/my-godot-2.1",
"id": "d9587c3492acab7bfcc613becf2515fa1290c803",
"si... |
import subprocess
from django.core.management.base import BaseCommand
from django.utils.encoding import force_str
from ngw.core.models import ContactMsg
class Command(BaseCommand):
help = 'Try to decrypt a message with an AES passphrase'
def add_arguments(self, parser):
parser.add_argument('msgid',... | {
"content_hash": "b11fe3e5731b2fcfef351c9a382398e9",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 60,
"avg_line_length": 27.885714285714286,
"alnum_prop": 0.6004098360655737,
"repo_name": "nirgal/ngw",
"id": "c7516dfe06395d7755e0c1de4459b04ca1fe8985",
"size": "976",
"... |
@interface CollectionViewController ()
@property (nonatomic,strong)NSMutableArray *smallUrlArray;
@end
@implementation CollectionViewController
-(NSMutableArray *)smallUrlArray{
if (_smallUrlArray == nil) {
_smallUrlArray= [NSMutableArray array];
}
return _smallUrlArray;
}
static NSString * const ... | {
"content_hash": "e898600e959bd88991d5d725708c6f57",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 126,
"avg_line_length": 45.29824561403509,
"alnum_prop": 0.6855151045701007,
"repo_name": "MyGitHub75/CMPhotoBrowser",
"id": "5741c902289f92432e1665951bb8c31a1eb23ddb",
"s... |
<?xml version="1.0" encoding="UTF-8"?>
<vehicle_equipment>
<entry><key>VEQUIPMENTTYPE_SMALL_DISRUPTION_SHIELD</key><value>
<scoreRequirement>1250</scoreRequirement>
</value></entry>
<entry><key>VEQUIPMENTTYPE_LARGE_DISRUPTION_SHIELD</key><value>
<scoreRequirement>2500</scoreRequirement>
</value></entry>
<entry>... | {
"content_hash": "46fa3a9def77329fab57e459c28a2b66",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 63,
"avg_line_length": 37.733333333333334,
"alnum_prop": 0.7526501766784452,
"repo_name": "pmprog/OpenApoc",
"id": "1c405ce373741ae172c72cedec92dea45d49f4e6",
"size": "566"... |
FROM alpine:latest
RUN apk add --no-cache ca-certificates docker
COPY build-soapbox-app.sh /soapbox/
CMD /soapbox/build-soapbox-app.sh | {
"content_hash": "1e5979154b431dc858b4fd99f2f49a82",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 45,
"avg_line_length": 33.5,
"alnum_prop": 0.7985074626865671,
"repo_name": "adhocteam/soapbox",
"id": "0ad2918ed5445a547328b63903a46a1fc7701847",
"size": "134",
"binary":... |
package owltools.io;
import static org.junit.Assert.*;
import org.junit.Test;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.model.OWLOntologyCreationException;
import owltools.OWLToolsTestBasics;
public class OboFormatOwlApiHandling extends OWLToolsTestBasics {
@Test
public void test() ... | {
"content_hash": "a25b14b89fe62ddcf9314a8654c9f25a",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 65,
"avg_line_length": 22.923076923076923,
"alnum_prop": 0.7533557046979866,
"repo_name": "dhimmel/owltools",
"id": "ad58d70b454512bfe648c0dd35a0bdc7dc4f4652",
"size": "596... |
[](https://travis-ci.org/Crinsane/LaravelShoppingcart)
[](https://packagist.org/packages/gloudemans/shoppingcart)
[ {
if (view == null)
return... | {
"content_hash": "2bd659504dfb21ffc89517872c487246",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 89,
"avg_line_length": 34.078947368421055,
"alnum_prop": 0.5737451737451738,
"repo_name": "achenglike/Gallery",
"id": "d41e4d574dbe4057576b663a2c06ec9dc5f3d034",
"size": "1... |
import os
import shutil
from distutils.command import build as build_module
from setuptools import setup, Command, Extension
import compiler
def _build_rpcz_proto():
compiler.generate_proto('../src/rpcz/proto/rpcz.proto', 'rpcz')
def _build_test_protos():
compiler.generate_proto('../test/proto/search.prot... | {
"content_hash": "e339da56a33c12b51193cdef953bc283",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 78,
"avg_line_length": 28.824324324324323,
"alnum_prop": 0.5785278949835911,
"repo_name": "reinfer/rpcz",
"id": "ab3d4a566de15583b443d826bf5f89d0829ac249",
"size": "2179",
... |
import { Session } from 'meteor/session';
import { $ } from 'meteor/jquery';
getActiveViewportElement = () => {
const viewportIndex = Session.get('activeViewport') || 0;
return $('.imageViewerViewport').get(viewportIndex);
};
zoomIn = () => {
const element = getActiveViewportElement();
if (!element) {... | {
"content_hash": "9cd7e2c7bdef61f8172af420452b2280",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 112,
"avg_line_length": 28.887005649717516,
"alnum_prop": 0.6835517308820653,
"repo_name": "HorizonPlatform/Viewers",
"id": "0cc720cfe28f6bdbb17787f94e97dbdfd1372ca4",
"si... |
angular.module('providers')
.factory('searchDialogService', ['$modal', function ($modal) {
var search = function (title, initalprovider) {
return $modal.open({
templateUrl: 'providers/search-dialog.html',
controller: 'searchDialogCtrl',
resolve: {
... | {
"content_hash": "ef6dbd9502d967486ea1aaae9bba9cce",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 66,
"avg_line_length": 32.904761904761905,
"alnum_prop": 0.4196816208393632,
"repo_name": "Opiskull/one4all",
"id": "0e59e4096b5ab09a6a4be72970ec13a8f8744103",
"size": "691... |
/**
*
*/
package net.geant.nsicontest.reservation.rsm;
import javax.xml.ws.Holder;
import org.ogf.schemas.nsi._2013._12.connection.types.ReservationStateEnumType;
import org.ogf.schemas.nsi._2013._12.framework.headers.CommonHeaderType;
/**
* A steady state for the reservation state machine in which the initial r... | {
"content_hash": "893b5a0b608f6e098ca317bd723884af",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 133,
"avg_line_length": 27.923076923076923,
"alnum_prop": 0.7741046831955923,
"repo_name": "nsicontest/nsi-ri",
"id": "9439600dc1c5923c2aa7347634aaf443265ba586",
"size": "7... |
public class MapEdge {
private final long id;
private final Container source;
private final Container destination;
private final double weight;
public MapEdge(long id, Container source, Container destination, double weight) {
this.id = id;
this.source = source;
this.destination = destinatio... | {
"content_hash": "28bf08ab9989461093be861e7d7887b4",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 82,
"avg_line_length": 19.441176470588236,
"alnum_prop": 0.6777609682299546,
"repo_name": "goodlyrottenapple/osm-routing",
"id": "39c9b886f3bfc4774d0d0305266a08cbdd4ca716",
... |
[](https://github.com/recharts/recharts-scale/actions)
Scale of Cartesian Coordinates
| {
"content_hash": "1c5c6803333d6588a9c2fff09fcfba60",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 136,
"avg_line_length": 56.333333333333336,
"alnum_prop": 0.7928994082840237,
"repo_name": "recharts/recharts-scale",
"id": "d2d3b48620e99171022f457712526112c0d988a4",
"size... |
class NotificationsController < ApplicationController
before_action :authenticate_user!
before_action :set_notification, only: [:destroy, :show_notification]
before_action :read_notification, only: [:show_notification]
def index
@notifications = Notification.where( user_id: current_user.id).order(created_... | {
"content_hash": "c160fd3ce74febc9acf6c63f6715274f",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 110,
"avg_line_length": 25.710526315789473,
"alnum_prop": 0.7072671443193449,
"repo_name": "AndreLZGava/vitula",
"id": "1b6525868eb7b7a76433fd018f56981967ae1765",
"size": "... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_60-ea) on Wed Jan 04 17:08:19 EST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.wil... | {
"content_hash": "c07fac2ad5f464da6d1aa3037b453529",
"timestamp": "",
"source": "github",
"line_count": 171,
"max_line_length": 579,
"avg_line_length": 47.84795321637427,
"alnum_prop": 0.6626741627963822,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "c1cc172128838a17424a89f4a050999e3594... |
import { TestBed, inject } from '@angular/core/testing';
import { FlowsService } from './flows.service';
describe('FlowsService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [FlowsService]
});
});
it('should be created', inject([FlowsService], (service: FlowsService) =>... | {
"content_hash": "6a0a70dfa89bcda5347995ed694b0d2e",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 77,
"avg_line_length": 24.533333333333335,
"alnum_prop": 0.6304347826086957,
"repo_name": "telstra/open-kilda",
"id": "163ab64b4df1739a1ed0e877b347892bdc79698a",
"size": "3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.