text stringlengths 2 1.04M | meta dict |
|---|---|
/* eslint-env node, mocha */
import { assert } from 'chai';
import Joi from 'joi';
import EnumType from '../../src/datatypes/Enum';
describe('Enum datatype', () => {
it('asserts string value until values prop is defined', () => {
const dt = new EnumType();
const schema = dt.toJoi();
assert.doesNotThrow... | {
"content_hash": "c3817c4765b7fba618d2f794aa9669c8",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 72,
"avg_line_length": 35.17333333333333,
"alnum_prop": 0.5727824109173616,
"repo_name": "jmike/naomi",
"id": "c63766816934d012bf2196759d5d4c9656079cf1",
"size": "2638",
... |
drop table if exists ctas_src;
drop table if exists ctas_dst;
create table ctas_src (domain integer, class integer, attr text, value integer) distributed by (domain);
insert into ctas_src values(1, 1, 'A', 1);
insert into ctas_src values(2, 1, 'A', 0);
insert into ctas_src values(3, 0, 'B', 1);
-- MPP-2859
create tab... | {
"content_hash": "215ada8e7c1e4d216be999cd7a68eb5c",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 226,
"avg_line_length": 40.02325581395349,
"alnum_prop": 0.737361998837885,
"repo_name": "CraigHarris/gpdb",
"id": "fc07fa9c279f9924fc44c0a9f6254596b57e5b86",
"size": "1762... |
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MI... | {
"content_hash": "98b40f334defec0ca51147f0419ad26f",
"timestamp": "",
"source": "github",
"line_count": 435,
"max_line_length": 77,
"avg_line_length": 32.726436781609195,
"alnum_prop": 0.4952936218038775,
"repo_name": "fabricedesre/rust",
"id": "0704bf913d7c419d1f1f35d735b653f26ac0f6dd",
"size": "1... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title> RiveScript </title>
</head>
<frameset cols="20%,80%">
<frameset rows="30%,70%">
<frame sr... | {
"content_hash": "5fab8727ac0ee7cba71c7341a2d95dbd",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 67,
"avg_line_length": 34.05882352941177,
"alnum_prop": 0.6269430051813472,
"repo_name": "plasmashadow/rivescript-python",
"id": "43120bc34c7a57fc627f97f0475c282e48d98402",
... |
.class Lcom/nianticlabs/nia/iap/NianticBillingManager$4;
.super Ljava/lang/Object;
.source "NianticBillingManager.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/nianticlabs/nia/iap/NianticBillingManager;->redeemReceiptResult(Z... | {
"content_hash": "88436c037be01c53552cd3fbf2d94e84",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 178,
"avg_line_length": 33.38235294117647,
"alnum_prop": 0.7731277533039648,
"repo_name": "shenxdtw/PokemonGo-Plugin",
"id": "1fa2d9d9b8798cb9da33b8ec6ea5c34b20037e2b",
"si... |
A simple Python 3 library for converting Spline Font Database files to Python bytes
| {
"content_hash": "eb2fcc435c53c562dbf9a6d8e4684d15",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 83,
"avg_line_length": 84,
"alnum_prop": 0.8333333333333334,
"repo_name": "mmabey/py-spline-to-bytes",
"id": "58dfe3a3ba0af83ea9508a28efd926fcc7874c91",
"size": "105",
"bi... |
"""A parser for Relay's text format."""
from __future__ import absolute_import
import sys
from collections import deque
from typing import TypeVar, Deque, Tuple, Optional, Union, NamedTuple, List, Callable, Any, Dict
import tvm
from . import module
from .base import Span, SourceName
from . import expr
from . import... | {
"content_hash": "96b15183cb7eaaca3e589daee1dec7a7",
"timestamp": "",
"source": "github",
"line_count": 541,
"max_line_length": 96,
"avg_line_length": 32.724584103512015,
"alnum_prop": 0.5960799819249887,
"repo_name": "mlperf/training_results_v0.7",
"id": "c483f4f75900d92d05812f2501ab03d238586c36",
... |
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="ut... | {
"content_hash": "5f3f09bda34f5110b98fbc46fb8335a0",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 178,
"avg_line_length": 45.01538461538462,
"alnum_prop": 0.6103896103896104,
"repo_name": "jiwhiz/CIExample",
"id": "ef18863df42f29b489ef320be8c2397b74a400f6",
"size": "292... |
package org.springframework.cloud.dataflow.server.service;
import java.util.List;
import java.util.Map;
import org.springframework.cloud.dataflow.core.StreamDefinition;
import org.springframework.cloud.dataflow.core.StreamDeployment;
import org.springframework.cloud.dataflow.server.controller.support.InvalidStreamDe... | {
"content_hash": "e60e171a277458a5163d7e1895a5dbb2",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 101,
"avg_line_length": 33.81651376146789,
"alnum_prop": 0.764514378730331,
"repo_name": "markfisher/spring-cloud-data",
"id": "c0e802d3716976efbac699da2c7a06a3ad3d8a37",
... |
ALTER TABLE `security_users` MODIFY `username` VARCHAR(255) NOT NULL, MODIFY `password` VARCHAR(255) NOT NULL;
ALTER IGNORE TABLE `security_users` ADD UNIQUE (`username`);
| {
"content_hash": "dceafa121a72d33fa6120db5d8053010",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 110,
"avg_line_length": 57.666666666666664,
"alnum_prop": 0.7572254335260116,
"repo_name": "frmst/creator",
"id": "3dda3c0cdf54e27a089206070c7734fc6c5313be",
"size": "173",
... |
/* $NetBSD: pickmode.c,v 1.4 2011/04/09 20:53:39 christos Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation
* All rights reserved.
*
* this code was contributed to The NetBSD Foundation by Michael Lorenz
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... | {
"content_hash": "37ff5931401c5ce79f965083eb15fd80",
"timestamp": "",
"source": "github",
"line_count": 210,
"max_line_length": 82,
"avg_line_length": 29.247619047619047,
"alnum_prop": 0.6362748290459134,
"repo_name": "veritas-shine/minix3-rpi",
"id": "bc656367589ae56c023f819066cd1f64d8ed5fbc",
"si... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "346d2bdbcb98b476a57254003b4a8c49",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "0e1d5a53419faca58188ca2f0ac78f08b14e21a9",
"size": "177... |
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20160318161420 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema... | {
"content_hash": "c45b9880cd30f82e104f8eec68074331",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 146,
"avg_line_length": 40.75,
"alnum_prop": 0.6987048398091343,
"repo_name": "igorRovenki/freeyachting.devsize.ru",
"id": "ffb4d3b4958d141e153d3c5598747f1c16cffd37",
"size... |
void test(){
sem_t sem;
int pshared = 5;
sem_init(&sem, pshared, 3);
}
//线程参数
struct NativeWorkerArgs {
jint id;
jint iterations;
};
// 用来调用Java的方法id,不要在线程中获取
static jmethodID gOnNativeMessage = NULL;
// Java VM interface pointer
extern JavaVM *gVM;
// Global reference to object
static jobject ... | {
"content_hash": "56b044e9706c4bfed999bd789e6c3710",
"timestamp": "",
"source": "github",
"line_count": 156,
"max_line_length": 95,
"avg_line_length": 26.525641025641026,
"alnum_prop": 0.6041565973900435,
"repo_name": "Ztiany/Repository",
"id": "d2c2d85a5a224d32a57eb5a00ac3a3ba1ff18f21",
"size": "4... |
/*
* $Id: AbstractTableMap.java 38 2012-01-04 22:44:15Z andre@naef.com $
* See LICENSE.txt for license terms.
*/
package com.naef.jnlua.util;
import java.util.AbstractMap;
import java.util.AbstractSet;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import java... | {
"content_hash": "1007aa78043e65588e1735aae206ca41",
"timestamp": "",
"source": "github",
"line_count": 390,
"max_line_length": 77,
"avg_line_length": 23.31025641025641,
"alnum_prop": 0.6148938510614894,
"repo_name": "buksy/jnlua",
"id": "5a8a6139c0d9dcb8d66811583e36bff8ca9a4816",
"size": "9091",
... |
package com.sun.jmx.snmp.daemon;
// java import
//
import java.util.logging.Level;
import java.util.Vector;
// jmx imports
//
import static com.sun.jmx.defaults.JmxProperties.SNMP_ADAPTOR_LOGGER;
import com.sun.jmx.snmp.SnmpPdu;
import com.sun.jmx.snmp.SnmpVarBind;
import com.sun.jmx.snmp.SnmpDefinitions;
import... | {
"content_hash": "f53d4547b5a1234758ca154ef5d85a0c",
"timestamp": "",
"source": "github",
"line_count": 607,
"max_line_length": 101,
"avg_line_length": 38.01976935749588,
"alnum_prop": 0.5648236415633937,
"repo_name": "rokn/Count_Words_2015",
"id": "c2858deffcc2388b2b636e7092e80a81e1c3e6c4",
"size"... |
var argscheck = require('cordova/argscheck'),
exec = require('cordova/exec'),
ContactError = require('./ContactError'),
utils = require('cordova/utils'),
Contact = require('./Contact'),
fieldType = require('./ContactFieldType');
/**
* Represents a group of Contacts.
* @constructor
*/
var con... | {
"content_hash": "998a6a507fc5d7132dd1024ce89ccb13",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 92,
"avg_line_length": 34.03896103896104,
"alnum_prop": 0.5936665394887447,
"repo_name": "gemanor/OrangeMenu",
"id": "1ecd28c9d520bbe8eaa5b56a4e681760bb6e6ed0",
"size": "34... |
<?xml version="1.0" encoding="utf-8"?>
<XnaContent>
<Asset Type="RolePlayingGameData.Item">
<Name>Physical Defense Elixir</Name>
<Description>Increases physical defense by 1 point.</Description>
<GoldValue>500</GoldValue>
<IsDroppable>true</IsDroppable>
<MinimumCharacterLevel>1</MinimumCharacterL... | {
"content_hash": "581db60e075e55faa546d029f5650677",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 69,
"avg_line_length": 31.197916666666668,
"alnum_prop": 0.6230383973288814,
"repo_name": "DDReaper/XNAGameStudio",
"id": "a48042c45af9b08f6c8f4083446fa92e35ceaad7",
"size"... |
package org.eluder.coveralls.maven.plugin.source;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.eluder.coveralls.maven.plugin.domain.Source;
public class MultiSourceLoader implements SourceLoader {
private final List<SourceLoader> sourceLoaders = new ArrayList<S... | {
"content_hash": "de4918f6bb0367184ec91bbf44fdfa3c",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 83,
"avg_line_length": 28.266666666666666,
"alnum_prop": 0.6768867924528302,
"repo_name": "psiniemi/coveralls-maven-plugin",
"id": "9e45a77b80a6f76b11576e837f20d65fff4ff968",... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `PolyProjectionPredicate` type in crate `rustc_trans`.">
<m... | {
"content_hash": "1ccfbc00e7814d3166ec445f1f3c537e",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 395,
"avg_line_length": 44.32631578947368,
"alnum_prop": 0.5573497981477084,
"repo_name": "ArcherSys/ArcherSys",
"id": "d924cb27d0b1fde37e8abaf9f49b0be0a178bd90",
"size": "... |
require 'rails_helper'
describe Api::V1::Props do
let(:user) { create(:user) }
let(:receivers) { create_list(:user, 3) }
describe 'GET /api/v1/props' do
context 'user is a guest' do
it 'returns unathorized response' do
get '/api/v1/props'
expect(response).to have_http_status(401)
... | {
"content_hash": "be362410a33587a3ba3d5f2a30523727",
"timestamp": "",
"source": "github",
"line_count": 149,
"max_line_length": 105,
"avg_line_length": 26.604026845637584,
"alnum_prop": 0.5900605449041373,
"repo_name": "mic-kul/props",
"id": "1dacf5c9646ab07735e8e1ba52ad07637c086955",
"size": "3964... |
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace DatabaseCreationForPIWebAPI
{
public class PIWebAPIWrapper
{
private static string base_ur... | {
"content_hash": "5059b462500003b85d2e603b91cbf30d",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 276,
"avg_line_length": 38.63354037267081,
"alnum_prop": 0.5813504823151125,
"repo_name": "pthivierge/PI-Web-API-White-Paper",
"id": "a637ed2eb9cb5cdf87f5cc233932b853552e8de... |
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/menuContext_update"
android:icon="@drawable/pencil"
android:title="@string/menuContext_update"
app:s... | {
"content_hash": "cf7b98066b11737f728b00941c2a85c3",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 64,
"avg_line_length": 38.142857142857146,
"alnum_prop": 0.6423220973782772,
"repo_name": "JMedinilla/CondominApp",
"id": "79d5ed3aeabfd2174640514e95551c340467d6c5",
"size"... |
USING_NS_CC;
// the class inherit from TestScene
// every Scene each test used must inherit from TestScene,
// make sure the test have the menu item for back to main menu
class ActionsTestScene : public TestScene
{
public:
virtual void runThisTest();
};
class ActionsDemo : public BaseTest
{
protected:
Sprite... | {
"content_hash": "250bd9b08771ed0f4622a4c2a2fb89e7",
"timestamp": "",
"source": "github",
"line_count": 454,
"max_line_length": 82,
"avg_line_length": 19.676211453744493,
"alnum_prop": 0.6961826933840815,
"repo_name": "gibtang/CCNSCoding",
"id": "c064ee3436e9053496ec7deb814553bf508e0af0",
"size": "... |
/* $NetBSD: gai_strerror.c,v 1.1.1.2 2013/04/06 15:57:51 christos Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1... | {
"content_hash": "e6c7614c69041e57da72e5746a259ad3",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 106,
"avg_line_length": 36.89411764705882,
"alnum_prop": 0.7152423469387755,
"repo_name": "execunix/vinos",
"id": "a5eb3984e7906cf5563c9ee850c80388fef59ab2",
"size": "3136"... |
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator/toPromise';
import { Game } from './game';
@Injectable()
export class GameService {
private gameListURL = 'https://nodev.se/data/hs2017.json'
private gameBaseURL = 'https://nodev.se/data/'
constructor(p... | {
"content_hash": "b78650ccc80a503a9b7a643b797fb78e",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 72,
"avg_line_length": 28.666666666666668,
"alnum_prop": 0.6268498942917548,
"repo_name": "togus/uhc",
"id": "d06804f85c9d48e55046381cf21b32b4bf24e8d5",
"size": "946",
"b... |
import React from 'react'
import {Route, IndexRoute} from 'react-router'
import Root from './containers/Root'
export default (
<Route path="/" component={Root}>
<IndexRoute component={Root} />
</Route>
)
| {
"content_hash": "4e9c8c0ef92dc0cfa2c06bdfd93edc5f",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 46,
"avg_line_length": 23.666666666666668,
"alnum_prop": 0.6901408450704225,
"repo_name": "simongfxu/violet",
"id": "829af7e1262b2ed786f1ea7888c6637889e89abd",
"size": "213"... |
\comment (c)2017-2020, Cris Luengo.
\comment Based on original DIPimage user manual: (c)1999-2014, Delft University of Technology.
\comment Licensed under the Apache License, Version 2.0 [the "License"];
\comment you may not use this file except in compliance with the License.
\comment You may obtain a copy of the Lic... | {
"content_hash": "1798e5a92714b33398c53a104c0a8353",
"timestamp": "",
"source": "github",
"line_count": 153,
"max_line_length": 154,
"avg_line_length": 47.22222222222222,
"alnum_prop": 0.7539100346020762,
"repo_name": "DIPlib/diplib",
"id": "6a15e8014e2441e422a522b95c8c9160801d68b4",
"size": "7225"... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.beastiebots.ftcScoringLite.blockParty;
import org.beastiebots.ftcScoringLite.blockParty.enums.*;
import javax.swing.DefaultComboBoxModel;
/**
*
* @author Jacob
*/
public class BlockPartyScorePanel extend... | {
"content_hash": "37076b92f4ac308b5f6768060dfb1534",
"timestamp": "",
"source": "github",
"line_count": 623,
"max_line_length": 169,
"avg_line_length": 55.62279293739968,
"alnum_prop": 0.6687444088534903,
"repo_name": "hprobotics/ftc-scoring-lite",
"id": "ce8d6cce12921ea5ac0ce5d3116a2ab261399186",
... |
package resource;
@SuppressWarnings("serial")
public class FethResourceException extends Exception {
public static final int ANIMATION = 0;
public static final int AUDIO = 1;
private int errorType;
private String url;
public FethResourceException(int errorType,String url){
this.errorType = errorType;
this.u... | {
"content_hash": "2719739af937a3ee0c488247725da6ed",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 56,
"avg_line_length": 21.26923076923077,
"alnum_prop": 0.6980108499095841,
"repo_name": "5731087821-PT/Project-Game",
"id": "e3eb117b2ff0784a553d0c535ebd5fe39ff8335d",
"si... |
package org.jabref.gui.fieldeditors;
import javafx.scene.control.TextInputControl;
import org.jabref.gui.util.IconValidationDecorator;
import org.jabref.preferences.PreferencesService;
import de.saxsys.mvvmfx.utils.validation.ValidationStatus;
import de.saxsys.mvvmfx.utils.validation.visualization.ControlsFxVisualiz... | {
"content_hash": "5a9b39d2fd121f4ace55a3889b15af16",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 102,
"avg_line_length": 36.57692307692308,
"alnum_prop": 0.7802313354363828,
"repo_name": "Siedlerchr/jabref",
"id": "6396e4711ac177088ac01982d3b8db2356077200",
"size": "95... |
struct Input;
struct Renderer;
struct UIntHashPair
{
uint32 key;
uint32 value;
};
struct UIntHashMap
{
struct UIntHashPair buckets[4096];
};
struct GameMemory
{
void *game_memory;
size_t game_memory_size;
void *render_memory;
size_t render_memory_size;
};
struct Camera
{
vec2 positi... | {
"content_hash": "095d4d7939d2755bc4758da7e0089aa5",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 116,
"avg_line_length": 14.520710059171599,
"alnum_prop": 0.6524042379788101,
"repo_name": "truncator/gx",
"id": "e1dbcae629b75257c5f62763fb3911e425f9965b",
"size": "2513"... |
* [Release 1: Summarization Questions](#release-1-summarization-questions)
* [Release 2: Mini-Challenges](#release-2-mini-challenges)
* [Challenge 4.2.1: Defining Variables](https://github.com/dasKevinHuang/phase-0/blob/master/week-4/defining-variables.rb)
* [Challenge 4.2.2: Simple String Methods](https://github.com/d... | {
"content_hash": "55a004ef6e67913513e3c9c426ff13af",
"timestamp": "",
"source": "github",
"line_count": 157,
"max_line_length": 355,
"avg_line_length": 40.82165605095541,
"alnum_prop": 0.7480106100795756,
"repo_name": "dasKevinHuang/phase-0",
"id": "3c3c694f16cdcc85bce3a305a943e444f0929e41",
"size"... |
#pragma once
#include <unordered_map>
#include <arpa/inet.h>
#include <linux/limits.h>
#include <unistd.h>
#include <boost/filesystem.hpp>
#include <osquery/filesystem.h>
#include <osquery/logger.h>
#include "osquery/core/conversions.h"
namespace osquery {
const std::string kLinuxProcPath = "/proc";
struct Soc... | {
"content_hash": "9bf69149e8b53e26dddf6f6d7b461394",
"timestamp": "",
"source": "github",
"line_count": 215,
"max_line_length": 80,
"avg_line_length": 34.53953488372093,
"alnum_prop": 0.5941287368704552,
"repo_name": "jedi22/osquery",
"id": "771842af91652a5fc80d9edf13b9868fa7591244",
"size": "7808"... |
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/accentAColor" />
<size
android:width="18dp"
android:height="18dp" />
</shape>
| {
"content_hash": "496e7b5276d208eec7ea1604a6005a18",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 65,
"avg_line_length": 29.22222222222222,
"alnum_prop": 0.6349809885931559,
"repo_name": "edx/edx-app-android",
"id": "923e422d1b5be1c336175f94e105595d9e97e401",
"size": "26... |
local JSON = dofile("lib/dkjson.lua")
local updater = {}
local function getLocal(v)
if v then
if fs.exists("lib/.version") then
local file = fs.open("lib/.version", "r")
local ver = file.readAll()
file.close()
return tonumber(ver)
else
return 0
end
else
if fs.exists("lib/.dlver... | {
"content_hash": "7efba15f9bf57acae2234d8e8bc83c21",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 105,
"avg_line_length": 23.821428571428573,
"alnum_prop": 0.638680659670165,
"repo_name": "TheTakenFox/CP-DOS",
"id": "99e560286a766750f961cbe640c3eb7249ef2cc5",
"size": "2... |
package com.badlogic.gdx.backends.headless;
import com.badlogic.gdx.ApplicationLogger;
/**
* Default implementation of {@link ApplicationLogger} for headless
*/
public class HeadlessApplicationLogger implements ApplicationLogger {
@Override
public void log (String tag, String message) {
System.out.println("[... | {
"content_hash": "e326e50f60d575eb6059dcc97b209983",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 70,
"avg_line_length": 25.25,
"alnum_prop": 0.6903690369036903,
"repo_name": "alex-dorokhov/libgdx",
"id": "a361e6b8c8e4beb1622012e7bc208462b348addf",
"size": "1864",
"bi... |
import JSONAPISerializer from 'ember-data/serializers/json-api';
export default JSONAPISerializer.extend({
serializeIntoHash: function(data, type, snapshot, options) {
this._super(data, type, snapshot, options);
if (snapshot.adapterOptions && snapshot.adapterOptions.meta) {
data.data.meta = snapshot.adapterOpt... | {
"content_hash": "693f471d2cc9134c71bb37cfa421c60a",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 64,
"avg_line_length": 34.2,
"alnum_prop": 0.7543859649122807,
"repo_name": "gossi/trixionary-client",
"id": "c71fbcaf3177b96dff7ba1c6fdd8becbc93a6ce4",
"size": "342",
"b... |
<div class="container-fluid address-container address-book-container credit-Card-Container">
<div class="row credit-card-headerTitle">
<p class="my-account-content-title">Credit Cards</p>
<div class="add-button col-md-3 col-lg-3 hidden-xs hidden-sm">
<button type="button" class="btn" ng-... | {
"content_hash": "b2dadafabd124e6ab5e18acbabc9c033",
"timestamp": "",
"source": "github",
"line_count": 343,
"max_line_length": 324,
"avg_line_length": 75.90379008746356,
"alnum_prop": 0.4630305358171692,
"repo_name": "Shyam-Echidna/new-bachmansstore",
"id": "c377bba62635499638d9deb89f65d7f6bb7a9adf"... |
package org.hisp.dhis.dxf2.importsummary;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import org.hisp.dhis.common.DxfNamespaces;
@JacksonXmlRootElement(l... | {
"content_hash": "0ca0b2dfa25b1ee8a3e9b938b7923c75",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 94,
"avg_line_length": 18.73015873015873,
"alnum_prop": 0.6042372881355932,
"repo_name": "steffeli/inf5750-tracker-capture",
"id": "5b8bea5068a22ec0d684ae7edcf42dc572025708"... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Podam should generate evenly distributed random integers</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<!--[if IE 7]>
<link rel="stylesheet" href="font-awesome/css/font-... | {
"content_hash": "03dbad76a712573527ee9ef5c27e1012",
"timestamp": "",
"source": "github",
"line_count": 227,
"max_line_length": 136,
"avg_line_length": 40.61233480176212,
"alnum_prop": 0.4828072459051958,
"repo_name": "Vignesh4vi/podam",
"id": "3a692efe5370b268ee98bd17ad0b9683ed5aac8b",
"size": "92... |
/* ###
* IP: GHIDRA
*
* 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 writin... | {
"content_hash": "65316d39c99cbb61668e62717cf975ef",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 92,
"avg_line_length": 34.8,
"alnum_prop": 0.7707535121328225,
"repo_name": "NationalSecurityAgency/ghidra",
"id": "36c795e7e682b9de51d832dbfe792c4f55283665",
"size": "1566... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/device/geolocation/win/location_provider_winrt.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/wi... | {
"content_hash": "29877b02a7078410d6b9e629ef7ccc76",
"timestamp": "",
"source": "github",
"line_count": 270,
"max_line_length": 79,
"avg_line_length": 35.885185185185186,
"alnum_prop": 0.7365053153060171,
"repo_name": "ric2b/Vivaldi-browser",
"id": "128dbc8400ed65e3e58f559ec12988d9c14cee4c",
"size"... |
package com.netflix.florida.startup;
import com.google.inject.Injector;
import com.netflix.archaius.guice.ArchaiusModule;
import com.netflix.governator.InjectorBuilder;
import com.netflix.governator.guice.jetty.Archaius2JettyModule;
import com.netflix.governator.guice.servlet.WebApplicationInitializer;
/**
* The "m... | {
"content_hash": "9cbf8a3e7f38d80f1099759789cdef62",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 97,
"avg_line_length": 37.628571428571426,
"alnum_prop": 0.686408504176158,
"repo_name": "diegopacheco/dynomite-manager-1",
"id": "f88e1da5795fd45dcc55ebb3cf5f3511a79695bd",
... |
Example of creating an Android foreground service with wake and wifi locks.
Read more about this project on my blog: http://www.splinter.com.au/2015/12/20/android-server/
| {
"content_hash": "a7b7d0abda4ef44d0b2e72552af0150f",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 94,
"avg_line_length": 57.333333333333336,
"alnum_prop": 0.7906976744186046,
"repo_name": "chrishulbert/AndroidService",
"id": "15dfdb27621c2ab6f297eaffb45393ba6c2c1254",
"s... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class H5 extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->database();
$this->load->model('GameRules_model');
$this->load->model('GameTips_model');
}
pub... | {
"content_hash": "86d9ce35515f8b65b155a1f9f793ad45",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 74,
"avg_line_length": 28.725,
"alnum_prop": 0.5947200464171744,
"repo_name": "dragonzhu88/ci_framework",
"id": "16a9c3ce9d26406d9300e64383dda30e4e779eb6",
"size": "3447",... |
<?php
namespace Edu\Cnm\GigHub;
require_once("autoload.php");
/**
* @author Brandon Steider <bsteider@cnm.edu>
* @version 3.0.0
**/
class PostTag implements \JsonSerializable {
/**
* Tag id for this postTag; this is a foreign key
* @var int $postTagId
**/
private $postTagTagId;
/**
* id of the post fo... | {
"content_hash": "941d59ac1ba48d4a8f7dfeb9d22c0253",
"timestamp": "",
"source": "github",
"line_count": 286,
"max_line_length": 131,
"avg_line_length": 33.03496503496503,
"alnum_prop": 0.6881879762912786,
"repo_name": "cmd-space/gighub",
"id": "54b667f23b618e887d51dbf1f1c65e7bda6c9c8b",
"size": "94... |
"""RAML (REST API Markup Language) errors."""
__all__ = 'ApiError RequestError ParameterError AuthError'.split()
class ApiError(Exception):
default_status = 500
def __init__(self, message, *args, **data):
self.args = args
self.data = data
self.status = data.get('status', self.default_... | {
"content_hash": "50ad04a26731f20abdb82e3f3400a57f",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 81,
"avg_line_length": 34.857142857142854,
"alnum_prop": 0.6372950819672131,
"repo_name": "salsita/pyraml",
"id": "ccd4016e51ca3e0ebc8304cd9ca41cd681bf03b9",
"size": "976",... |
require 'grpc'
require 'google/ads/google_ads/v10/services/custom_conversion_goal_service_pb'
module Google
module Ads
module GoogleAds
module V10
module Services
module CustomConversionGoalService
# Proto file describing the CustomConversionGoal service.
#
... | {
"content_hash": "3973cc919d2e8e9f0366695b51f000b6",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 201,
"avg_line_length": 33.625,
"alnum_prop": 0.6421933085501859,
"repo_name": "googleads/google-ads-ruby",
"id": "2376ce30ec34a95ff9bd7879141f363018e4770e",
"size": "1867"... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... | {
"content_hash": "6ec9823a7251d1bbc91bd4dd542d82a0",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 112,
"avg_line_length": 36.95454545454545,
"alnum_prop": 0.5936859368593685,
"repo_name": "yantang-msft/azure-powershell",
"id": "ea055d343f82cc667a6047130bf0920aafea9b60",
... |
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
<info organisation="org.sonatype.forge"
module="forge-parent"
revision="6"
status="release"
publication="20140514191523"
>
<description homepage="http://forge.sonatype.com/" />
<m:properties__forgeS... | {
"content_hash": "6349662468e839e5c17bc188b40288fa",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 245,
"avg_line_length": 89,
"alnum_prop": 0.7756683456024797,
"repo_name": "pkoryzna/zipkin",
"id": "fac8c9f629e72d0709c11bccdbf55c1012dd6f95",
"size": "2581",
"binary": ... |
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')
class ThemeFileTest < ThemeTestCase
include ThemeTestHelper
def setup
super
@theme = Theme.find_by_name 'a theme'
@site = @theme.site
@theme.files.destroy_all
end
def expect_valid_file(file, type, path)
file.should be... | {
"content_hash": "497db8211e1882f13655bba9902b3b47",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 111,
"avg_line_length": 36.2972972972973,
"alnum_prop": 0.7038346984363366,
"repo_name": "svenfuchs/adva_cms",
"id": "8b6e1900f3e57b1303c07d52c94f0dbff922a4e2",
"size": "5... |
CCMarker automatically marks targets for crowd control according to party make up and abilities
Version: 1.4
Author: sshen81
License: MIT
--]]
-- Local objects
local CCMarker = {};
local CCMarkerButton;
CCMarker_isMarking = false;
CCMarker_UseRepentance = false;
CCMarker_UseWyvern = false;
CCMarker_Ca... | {
"content_hash": "7327410f59264227311ffadd53da3ab4",
"timestamp": "",
"source": "github",
"line_count": 359,
"max_line_length": 289,
"avg_line_length": 39.448467966573816,
"alnum_prop": 0.5931365626323966,
"repo_name": "sshen81/CCMarker",
"id": "8db2bfd4941f92629596b67c3d67fc7be38a378f",
"size": "1... |
class AddCommunities < ActiveRecord::Migration[4.2]
def change
create_table "communities", force: true do |t|
t.string "name"
t.timestamps
end
add_column :people, :community_id, :integer
end
end
| {
"content_hash": "6fce02875b93f271556eb3624b2f1224",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 51,
"avg_line_length": 22.5,
"alnum_prop": 0.6622222222222223,
"repo_name": "ministryofjustice/peoplefinder",
"id": "37d8aae7bbb9f69e4b354e8bb8f2300e5d6f7676",
"size": "294... |
using namespace std;
class Lista {
private:
pnodo primero;
pnodo actual;
bool f_lista_vacia(){
return (this->primero==NULL);
}
void f_primero(){
this->actual = this->primero;
}
void f_siguiente(){
this->actual = this->actual->Siguiente;
}
void f_ultimo(){
... | {
"content_hash": "a6482cab9a53a32713c424fad572025d",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 106,
"avg_line_length": 25.59375,
"alnum_prop": 0.4816849816849817,
"repo_name": "hitokiri/listas-c-",
"id": "436db5697cd50c66516887e9508c15ab834584aa",
"size": "3400",
... |
using System.Collections.Immutable;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
namespace CodeTiger.CodeAnalysis.Analyzers.Reliability
{
/// <summary>
/// Analyzes code related to th... | {
"content_hash": "42e806f5f01aea9bbadcb05fdad3a1d7",
"timestamp": "",
"source": "github",
"line_count": 144,
"max_line_length": 113,
"avg_line_length": 41.74305555555556,
"alnum_prop": 0.6068873731492265,
"repo_name": "csdahlberg/CodeTiger.CodeAnalysis",
"id": "3aaefb31846ecd7595dc16aa50c04bca52f7eb2... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Diplodia acanthophylli Kalymb.
### Remarks
null | {
"content_hash": "393065d58d64061b02827dbb9712f3bd",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 30,
"avg_line_length": 10.384615384615385,
"alnum_prop": 0.7185185185185186,
"repo_name": "mdoering/backbone",
"id": "c7390d62cb414bb64f0442f3cb9f3a665a58ab1c",
"size": "18... |
using System.Xml.Linq;
using Hydra.Framework;
using Hydra.Framework.Logging;
namespace Hydra.Framework.Data
{
/// <summary>
/// Provides for conversion and population to and from an XElement.
/// Allows an object instance to be converted to XML and perhaps serialized.
/// </summary>
public interface IXmlConvert... | {
"content_hash": "71c0a9f9846589eb892e012704cf3b83",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 88,
"avg_line_length": 30.14814814814815,
"alnum_prop": 0.7039312039312039,
"repo_name": "andywiddess/Hydra",
"id": "36f925a4149cbc0c8d2457806b661fe0db37dbf0",
"size": "816... |
'use strict';
var dash = require('../../drawing/attributes').dash;
var extendFlat = require('../../../lib/extend').extendFlat;
module.exports = {
newshape: {
line: {
color: {
valType: 'color',
editType: 'none',
role: 'info',
des... | {
"content_hash": "8834de02c8007e655eef0eb694017ef2",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 113,
"avg_line_length": 32.45614035087719,
"alnum_prop": 0.4481081081081081,
"repo_name": "aburato/plotly.js",
"id": "90d6cb810e564932f35b2c27d66e32c55e531959",
"size": "3... |
FROM balenalib/orange-pi-zero-alpine:3.10-build
ENV NODE_VERSION 14.15.4
ENV YARN_VERSION 1.22.4
# Install dependencies
RUN apk add --no-cache libgcc libstdc++ libuv \
&& apk add --no-cache libssl1.0 || apk add --no-cache libssl1.1
RUN for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserv... | {
"content_hash": "27918f46d09745d6afad42dff65edf14",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 699,
"avg_line_length": 65.33333333333333,
"alnum_prop": 0.7112244897959183,
"repo_name": "nghiant2710/base-images",
"id": "af4861bc09cefe12e2797d383b15bca1d0b80766",
"size... |
package org.apache.pdfbox.examples.interactive.form;
import java.io.File;
import java.io.IOException;
import org.apache.pdfbox.cos.COSDictionary;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.graphics.color.PDColor;
import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB;
import ... | {
"content_hash": "c1dbfd689fb45e1a1274299fa97d0619",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 100,
"avg_line_length": 37.236363636363635,
"alnum_prop": 0.71728515625,
"repo_name": "mathieufortin01/pdfbox",
"id": "79acaf222724670b98e03aa1f7d0a5f5d437cebf",
"size": "2... |
package org.opentides.util;
import static org.junit.Assert.*;
import junit.framework.Assert;
import org.junit.Test;
/**
* @author allantan
*
*/
public class ValidatorUtilTest {
/**
* Test method for {@link org.opentides.util.ValidatorUtil#isEmail(java.lang.String)}.
*/
@Test
public void testIsEmail() {
... | {
"content_hash": "a48f39195afa3d82db1afc2eb9996e05",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 128,
"avg_line_length": 28.338709677419356,
"alnum_prop": 0.7381900967558338,
"repo_name": "Letractively/open-tides",
"id": "72404cedef6cd88a0c262f9bfee8737124483609",
"siz... |
package org.apache.hadoop.fs.shell.find;
import static org.junit.Assert.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verifyNoMoreInteractions;
import java.io.IOEx... | {
"content_hash": "6a8ef7b20b8e57423d698b2f437e5b70",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 85,
"avg_line_length": 27.934959349593495,
"alnum_prop": 0.7086728754365541,
"repo_name": "cloudera/search",
"id": "d6985b3aa9c696a53995f34a09bb4b18753ad435",
"size": "424... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Sync\V1\Service;
use Twilio\Deserialize;
use Twilio\Exceptions\TwilioException;
use Twilio\InstanceResource;
use Twilio\Values;
use Twilio\Version;
/**
* PLEASE NOTE that this cl... | {
"content_hash": "2a179733b31b5648d9faa6dbfe1ba339",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 104,
"avg_line_length": 30.573426573426573,
"alnum_prop": 0.581427264409881,
"repo_name": "ShreyaR13/Twilio-SMS-Project-Part-1",
"id": "443ee7822a648b6782175482386923b923081... |
<?php
namespace Squid\MySql\Command;
interface IWithColumns
{
/**
* @param array $columns
* @return static
*/
public function column(...$columns);
/**
* @param string|array $columns
* @param string|bool $table
* @return static
*/
public function columns($columns, $table = false);
/**
* @param... | {
"content_hash": "15402a2f331416d17382315675bb7299",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 58,
"avg_line_length": 18.097560975609756,
"alnum_prop": 0.6307277628032345,
"repo_name": "Oktopost/Squid",
"id": "2dd8d3ce94730f6269fcf8150639ef2d4c2aad33",
"size": "742",... |
<template name='recipyDetails'>
{{#each recipyList}}
{{> recipyDescription}}
{{/each}}
</template>
<template name='recipyDescription'>
<div class='page-header'>
<h1>{{title}}</h1>
</div>
<div class='comment pre lead mainText'>{{#markdown}}{{comment}}{{/markdown}}</div>
<div class='ingrediences pre mainText'>... | {
"content_hash": "1a4630fea859e085c20dddf6ab13525d",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 120,
"avg_line_length": 38.36842105263158,
"alnum_prop": 0.6707818930041153,
"repo_name": "hfogelberg/fogelmat",
"id": "70cb7c5af4c5f75ef088fe5bfccb270f9300f4e3",
"size": "... |
using Azure.Core.Pipeline;
namespace Azure.ResourceManager.DataMigration
{
internal static class ProviderConstants
{
public static string DefaultProviderNamespace { get; } = ClientDiagnostics.GetResourceProviderNamespace(typeof(ProviderConstants).Assembly);
}
}
| {
"content_hash": "f21d1cc1dcfd159b9e843a7f694a2ad8",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 148,
"avg_line_length": 31.444444444444443,
"alnum_prop": 0.7809187279151943,
"repo_name": "Azure/azure-sdk-for-net",
"id": "78a736ffae2440fd53493087f7ec16da8e3d9913",
"size... |
BrickBotServoDriver::BrickBotServoDriver(int leftMotorPin, int rightMotorPin) {
leftMotor = new Servo();
leftMotor->attach(leftMotorPin);
leftMotor->write(BB_MOTOR_STOP);
rightMotor = new Servo();
rightMotor->attach(rightMotorPin);
rightMotor->write(BB_MOTOR_STOP);
resetMotorCalibr... | {
"content_hash": "eebd6be502aa3ee146b65d4f776b8685",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 79,
"avg_line_length": 31.242424242424242,
"alnum_prop": 0.6527643064985451,
"repo_name": "syoung-smallwisdom/BrickBot_Arduino",
"id": "677838199d8f1e03d86dc62f32bf252c870a52... |
package com.streamsets.pipeline.stage.processor.fieldmask;
import com.google.common.annotations.VisibleForTesting;
import com.streamsets.pipeline.api.Field;
import com.streamsets.pipeline.api.Record;
import com.streamsets.pipeline.api.StageException;
import com.streamsets.pipeline.api.base.OnRecordErrorException;
imp... | {
"content_hash": "50d4b70bae992eabafdd967187af7ec7",
"timestamp": "",
"source": "github",
"line_count": 213,
"max_line_length": 130,
"avg_line_length": 37.666666666666664,
"alnum_prop": 0.6689517636794217,
"repo_name": "streamsets/datacollector",
"id": "4708b579705518cee30cd949bd4887fba0a9906e",
"s... |
package org.leguan.testproject.language.java;
import java.util.Date;
public class ClassWithMethods {
private String privateMethod() {
return "";
}
public boolean publicMethod (final String param) {
return false;
}
protected Date protectedMethod () {
return null;
}
Object packagePrivateMe... | {
"content_hash": "847e5a37ec61f3fa08002238694a587a",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 52,
"avg_line_length": 15.923076923076923,
"alnum_prop": 0.6714975845410628,
"repo_name": "moley/leguan",
"id": "2c5951dd02deacdc1d3a2a5e740b08ca2656fad9",
"size": "414",
... |
import zstackwoodpecker.test_state as ts_header
import os
TestAction = ts_header.TestAction
def path():
return dict(initial_formation="template5", checking_point=8, path_list=[
[TestAction.create_vm, 'vm1', ],
[TestAction.create_volume, 'volume1', 'flag=scsi'],
[TestAction.attach_volume, 'vm1', 'volume1'],
... | {
"content_hash": "b9c912b62ff755b8f991e3a3f0e09aa0",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 227,
"avg_line_length": 44.04651162790697,
"alnum_prop": 0.7117212249208026,
"repo_name": "zstackio/zstack-woodpecker",
"id": "053d9b2de409354d9cf4cf0e638817587135fc51",
"s... |
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.aezo.spring... | {
"content_hash": "73c52445359a1c84f77f1cf53ad1a217",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 109,
"avg_line_length": 36.16981132075472,
"alnum_prop": 0.5414710485133021,
"repo_name": "oldinaction/springboot",
"id": "1727ab9ec2aafe555c7dfeab449792fa78ae06ed",
"size... |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="135"
android:endColor="@color/Blue"
android:startColor="@color/DarkBlue"
android:type="linear" />
<padding
and... | {
"content_hash": "adb1917a7e0cae1bd3d99cc92a7ebf7e",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 65,
"avg_line_length": 28.904761904761905,
"alnum_prop": 0.6177924217462932,
"repo_name": "wmhameed/Yahala-Messenger",
"id": "6af0cf44789615868688f747ac725be3e83fde3c",
"si... |
FROM lyft/envoy:latest
ARG enable_ratings
ARG star_color
ENV ENABLE_RATINGS ${enable_ratings:-false}
ENV STAR_COLOR ${star_color:-black}
RUN mkdir /opt/microservices
ADD ./reviews /opt/microservices
ADD ./start_service.sh /usr/local/bin/start_service.sh
RUN chmod u+x /usr/local/bin/start_service.sh
ENTRYPOINT /usr/lo... | {
"content_hash": "97c0381021a1ac6a6eec15b7f68ccf1e",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 54,
"avg_line_length": 28.75,
"alnum_prop": 0.7797101449275362,
"repo_name": "kimikowang/istio_vms",
"id": "04ed8e9bbe31cdf9e379935bdcfdd57b1c360bd2",
"size": "345",
"bin... |
"""Algorithms for Privacy-Preserving Machine Learning in JAX."""
from jax_privacy.src import accounting
from jax_privacy.src import training
| {
"content_hash": "32a1319239c3869c1cc66996b7113ac3",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 64,
"avg_line_length": 35.5,
"alnum_prop": 0.8028169014084507,
"repo_name": "deepmind/jax_privacy",
"id": "e77b098ede75f1bffea876c9a62192aef9fe8845",
"size": "752",
"binar... |
package example.sos.messaging.orders;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.DefaultServiceInstance;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client... | {
"content_hash": "761e909fc4e15003f5bc21122faa0879",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 91,
"avg_line_length": 30.82758620689655,
"alnum_prop": 0.8087248322147651,
"repo_name": "olivergierke/sos",
"id": "5639fe71eb1b4e33b0ec2d46cc2602210546ba63",
"size": "1509... |
<?php
/**
* FormGeneratorTest form.
*
* @package form
* @subpackage FormGeneratorTest
* @version SVN: $Id: FormGeneratorTestForm.class.php 23810 2010-11-12 11:07:44Z Kris.Wallsmith $
*/
class FormGeneratorTestForm extends BaseFormGeneratorTestForm
{
public function configure()
{
}
} | {
"content_hash": "97f0cc2548185fdb558de37567a35bce",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 100,
"avg_line_length": 20.133333333333333,
"alnum_prop": 0.7185430463576159,
"repo_name": "italinux/Authentication",
"id": "fac41ffbf71d6c55497c15882da201abd9aba071",
"siz... |
/* This function controls the cursor movement for placing ships,
* and returns the selected location.
* It has its own function so that it can account for the size and
* orientation of the ships that are being placed.
*/
#include "lcd_image.h"
#include "Images.h"
#ifndef __CURSOR__H
#define __CURSOR__H
// Joysti... | {
"content_hash": "affe5bb9579c14f9c8ad6fd2747ba285",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 69,
"avg_line_length": 29.483870967741936,
"alnum_prop": 0.7100656455142232,
"repo_name": "DLukeNelson/Arduino-Battleship",
"id": "999bd8016fd79a985bb705a33c32dcd3a471f758",
... |
using System.Collections.Generic;
namespace Mono.Debugging.Client
{
public class UsageCounter
{
readonly Dictionary<string, int> stats = new Dictionary<string, int> ();
public UsageCounter ()
{
}
public bool HasUsageStats {
get { return stats.Count > 0; }
}
public void IncrementUsage (string acti... | {
"content_hash": "ee9d9bb7fe64e9bafaabd5099db28475",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 74,
"avg_line_length": 18.93103448275862,
"alnum_prop": 0.6775956284153005,
"repo_name": "Unity-Technologies/debugger-libs",
"id": "b469ddf15dfb97584120dda07969ba1a13f71fb9",... |
package main
import (
"bytes"
"fmt"
"net"
"sync/atomic"
"github.com/uber-go/tally/v4/m3"
customtransport "github.com/uber-go/tally/v4/m3/customtransports"
m3thrift "github.com/uber-go/tally/v4/m3/thrift/v1"
"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
)
type batchCallback f... | {
"content_hash": "59a7717ef7df689c226827d30a420ede",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 86,
"avg_line_length": 22.945652173913043,
"alnum_prop": 0.7034580767408811,
"repo_name": "uber-go/tally",
"id": "e7571e997c7ac9da322bdfdf0a6e42e9018257a0",
"size": "3233",... |
brew update
brew install node
if test ! $(which spoof)
then
sudo npm install spoof -g
fi
| {
"content_hash": "001163c07f7bb8a1c1d04cea113cc63f",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 27,
"avg_line_length": 15.166666666666666,
"alnum_prop": 0.7362637362637363,
"repo_name": "evanriley/dotfiles",
"id": "a79127c78e4f96e47f4c7ba00d36d458f956e9a9",
"size": "91... |
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("T1... | {
"content_hash": "1861b2d93d7b9bcf9979dd9239d30ac2",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.083333333333336,
"alnum_prop": 0.744136460554371,
"repo_name": "studware/Ange-Git",
"id": "8058d64f3f82af67ba3b46cdd4801bd1d3b806f4",
"size": "141... |
package com.amazonaws.services.lambda.model.transform;
import static com.amazonaws.util.StringUtils.UTF8;
import static com.amazonaws.util.StringUtils.COMMA_SEPARATOR;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import jav... | {
"content_hash": "b90d0b12676d4936752832fdcf36baf3",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 111,
"avg_line_length": 38.83177570093458,
"alnum_prop": 0.6876052948255115,
"repo_name": "flofreud/aws-sdk-java",
"id": "ec9322059dc630f08496dd2a566546afc9259f5d",
"size"... |
package io.luna.game.model.mob;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Range;
import io.luna.Luna;
import io.luna.game.event.impl.SkillChangeEvent;
import io.luna.game.plugin.PluginManager;
import java.util.function.Function;
imp... | {
"content_hash": "20b08fa6c647366798ace73fdd189802",
"timestamp": "",
"source": "github",
"line_count": 369,
"max_line_length": 135,
"avg_line_length": 24.11111111111111,
"alnum_prop": 0.5785096099808924,
"repo_name": "lare96/luna",
"id": "a57536613910aacd3360d8c76a6405c5d268ef50",
"size": "8897",
... |
module Azure::Web::Mgmt::V2015_08_01
module Models
#
# SSL-enabled hostname.
#
class HostNameSslState
include MsRestAzure
# @return [String] Hostname.
attr_accessor :name
# @return [SslState] SSL type. Possible values include: 'Disabled',
# 'SniEnabled', 'IpBasedEnable... | {
"content_hash": "8abee9cf8ecc52190636025f6682f765",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 79,
"avg_line_length": 28.455445544554454,
"alnum_prop": 0.4603340292275574,
"repo_name": "Azure/azure-sdk-for-ruby",
"id": "13278f450306880db426a19b94b622e9f59c2f4f",
"si... |
package com.lightbend.lagom.internal.testkit
import akka.Done
import akka.actor.ActorRef
import akka.stream.Materializer
import akka.stream.OverflowStrategy
import akka.stream.scaladsl.Flow
import akka.stream.scaladsl.Keep
import akka.stream.scaladsl.Sink
import akka.stream.scaladsl.Source
import scala.concurrent.F... | {
"content_hash": "3663370aad7080d5f6ada15430e348f9",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 89,
"avg_line_length": 26.82051282051282,
"alnum_prop": 0.7418738049713193,
"repo_name": "TimMoore/lagom",
"id": "89329953b81278b05c75eb5017e5c096c65f2005",
"size": "1122",... |
var S3FS = require('s3fs')
var crypto = require('crypto')
function S3Storage (opts) {
if (!opts.bucket) throw new Error('bucket is required')
if (!opts.secretAccessKey) throw new Error('secretAccessKey is required')
if (!opts.accessKeyId) throw new Error('accessKeyId is required')
if (!opts.region) throw new E... | {
"content_hash": "ead4efe160f9c451abdcbb28d7a83e50",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 78,
"avg_line_length": 31.914285714285715,
"alnum_prop": 0.7045658012533572,
"repo_name": "jasonleibowitz/dreambear-caption-creator",
"id": "6efe2d47f46616a29487e2d075990e155... |
<div class="page-header">
<h1>
Code Samples
</h1>
</div>
<div class="row">
<div class="col-sm-12">
<p>
Most of the projects I've worked on over the past few years can be seen at my <a href="http://github.com/waldenraines">Github Account</a> as everything I've been doing is open source.
What ... | {
"content_hash": "30926c386c4123bbe0ee461502d5cc2a",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 189,
"avg_line_length": 24.51851851851852,
"alnum_prop": 0.6027190332326284,
"repo_name": "waldenraines/waldenrainesdotcom",
"id": "fefc3d333e560b86d5911173b48a43cbc15038df",... |
package com.twitter.finagle.netty4.http.handler
import com.twitter.finagle.netty4.http.FinagleHttpObjectAggregator
import com.twitter.util.StorageUnit
import io.netty.handler.codec.http._
/**
* Aggregates fixed length http messages and emits [[FullHttpMessage]] downstream.
*
* Http message is considered fixed leng... | {
"content_hash": "b00006bd31c0f107a68125d10cd13952",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 95,
"avg_line_length": 44.25,
"alnum_prop": 0.7190008920606601,
"repo_name": "twitter/finagle",
"id": "0b9293c382af7d40817d541a2130cd2dd8b46257",
"size": "3363",
"binary"... |
"""
A set of request processors that return dictionaries to be merged into a
template context. Each function takes the request object as its only parameter
and returns a dictionary to add to the context.
These are referenced from the 'context_processors' option of the configuration
of a DjangoTemplates backend a... | {
"content_hash": "fda25e450fa3ffdeb48af93d6234d32e",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 83,
"avg_line_length": 31.29113924050633,
"alnum_prop": 0.6678802588996764,
"repo_name": "yephper/django",
"id": "2ef4c1b8e6be820373191f514902c00859fad89c",
"size": "2472",... |
(function() {
'use strict';
angular
.module('module')
.directive('testDirective', testDirective);
testDirective.$inject = ['$rootScope'];
/* @ngInject */
function testDirective($rootScope) {
// Usage:
//
// Creates:
//
var directive = {
... | {
"content_hash": "c9e9cfce04b8afe6d9de460a81aa3fcc",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 58,
"avg_line_length": 20.742857142857144,
"alnum_prop": 0.5,
"repo_name": "siddharthJadhav/Library-management-system",
"id": "94a522f41b1593c2a2fcb853f64205e394403fdd",
"s... |
namespace MPIfR {
namespace LOFAR {
namespace Station {
//_CLASS LOFAR_Station_Beamformed_Writer_FFT0
class LOFAR_Station_Beamformed_Writer_FFT0 :
public LOFAR_Station_Beamformed_Writer_Base {
//_DESC full description of class
//_FILE files used and logical units used
//_LIMS design limitations
//... | {
"content_hash": "93781e343852f27c26bf1d03c7f516d8",
"timestamp": "",
"source": "github",
"line_count": 405,
"max_line_length": 168,
"avg_line_length": 42.953086419753085,
"alnum_prop": 0.5398942285582893,
"repo_name": "AHorneffer/lump-lofar-und-mpifr-pulsare",
"id": "54e6dad2d85ad43bb2f7be2d4a98debb... |
package colossal.pipe.formats;
import java.io.IOException;
import java.util.*;
import org.apache.avro.*;
import org.apache.avro.Schema.Field;
import org.apache.avro.Schema.Type;
import org.apache.avro.generic.GenericArray;
import org.apache.avro.generic.GenericRecord;
import org.apache.avro.reflect.ReflectData;
impo... | {
"content_hash": "da37fc295011a168528c47947a541ebb",
"timestamp": "",
"source": "github",
"line_count": 304,
"max_line_length": 129,
"avg_line_length": 39.31907894736842,
"alnum_prop": 0.4706768175353468,
"repo_name": "ThinkBigAnalytics/colossal-pipe",
"id": "2813ff1112784e802a606a2df13728b381957509"... |
/*
* 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 under t... | {
"content_hash": "e4b66bbcdde6621200fda38e74451575",
"timestamp": "",
"source": "github",
"line_count": 231,
"max_line_length": 182,
"avg_line_length": 32.35064935064935,
"alnum_prop": 0.7058744814666131,
"repo_name": "googleapis/google-api-java-client-services",
"id": "caf85d2615b174e93ce8e273d116e6... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Code Coverage for D:\appli\wamp\www\centrale_referencement\src/CentraleReferencementBundle/Repository/DepartementsRepository.php</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../../css/bootstrap.m... | {
"content_hash": "54cccfec5dd2cad4c8a5c90f1bd3724b",
"timestamp": "",
"source": "github",
"line_count": 135,
"max_line_length": 541,
"avg_line_length": 51.592592592592595,
"alnum_prop": 0.588226848528356,
"repo_name": "ViraxDev/centrale_referencement",
"id": "b23caf97491d89e98167d2b79a8d989ea34a582b"... |
FROM node:6.10.0-alpine
ENV PATH /root/.yarn/bin:${PATH}
ENV YARN_VERSION 0.21.3
RUN \
apk add --no-cache --update --virtual .build-deps bash curl gnupg tar && \
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VERSION} && \
apk del .build-deps
WORKDIR /app
COPY ./package.json ./yarn.l... | {
"content_hash": "680f4598417850d429403c728dbcaa1b",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 88,
"avg_line_length": 21.375,
"alnum_prop": 0.6276803118908382,
"repo_name": "baberutv/baberutv",
"id": "9c854bcedf5082fe5d0daa31c23f0866b4d48640",
"size": "513",
"binar... |
<?php
namespace Applisun\CompteBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Security\Core\SecurityContext;
class DefaultController extends Controller
{
public function indexAction()
{
$user = $this->getUser();
if (!$user instanceof \Applis... | {
"content_hash": "6041396b9b8a788b7f8d4666219f79c5",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 142,
"avg_line_length": 33.702127659574465,
"alnum_prop": 0.6174242424242424,
"repo_name": "frederic3476/compte",
"id": "fd6b22fdef721b6f0d6ba68da4bd40f2630648c4",
"size": ... |
exports = module.exports = function install() {
// TODO:
}
| {
"content_hash": "d7c240b81fb9d7168b112d20e0a7f43a",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 47,
"avg_line_length": 20.333333333333332,
"alnum_prop": 0.639344262295082,
"repo_name": "jaredhanson/tensile",
"id": "7a0ef73f3a073ed26e2be87edcb43e93786c5187",
"size": "61... |
local OptionParser = {}
function xlua.OptionParser(usage)
local self = {}
self.usage = usage
self.option_descriptions = {}
self.option_of = {}
for k,v in pairs(OptionParser) do
self[k] = v
end
self:option{"-h", "--help", action="store_true", dest="help",
help="show this help m... | {
"content_hash": "825842411501330a2cb23f6d1b0dc9ef",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 97,
"avg_line_length": 28.86857142857143,
"alnum_prop": 0.5540380047505938,
"repo_name": "torch/xlua",
"id": "facad43b65c800b91bc65da5c735b3053a657e07",
"size": "6084",
... |
#ifndef TextTrackRepresentation_h
#define TextTrackRepresentation_h
#if ENABLE(VIDEO_TRACK)
#include "PlatformLayer.h"
#include <wtf/Forward.h>
namespace WebCore {
class Image;
class IntRect;
class TextTrackRepresentationClient {
public:
virtual ~TextTrackRepresentationClient() { }
virtual RefPtr<Image>... | {
"content_hash": "b2282d1b4026393306b17dcb6d851366",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 91,
"avg_line_length": 20.85,
"alnum_prop": 0.7529976019184652,
"repo_name": "applesrc/WebCore",
"id": "72117048a26326d801f142283ad1d9f96609f847",
"size": "2188",
"binary... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.