text stringlengths 2 1.04M | meta dict |
|---|---|
<?php
class AddressController extends Controller
{
private $filter_input;
private $employee_id;
public function main()
{
}
/**
* EmployeeController constructor.
*/
public function __construct($db)
{
parent::__construct($db);
$this->filter_input = new Filter... | {
"content_hash": "625c174a413d5ee674649a27b069dd90",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 121,
"avg_line_length": 29.863636363636363,
"alnum_prop": 0.5144596651445966,
"repo_name": "stoyantodorovbg/PHP-Web-Development-Basics",
"id": "9ff0aae2e902fa3b408a5df1ce7219... |
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("Clo... | {
"content_hash": "5eee14c33b99277c9d3eaf597f2cfefd",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.333333333333336,
"alnum_prop": 0.7521186440677966,
"repo_name": "SteelToeOSS/Samples",
"id": "3dfed382a8389eef9d8fbd0a2a42d937a974c6a7",
"size": "... |
#include <assert.h>
#include <errno.h>
#include <libintl.h>
#include <netdb.h>
#include <nss.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/mman.h>
#include "dbg_log.h"
#include "nscd.h"
#ifdef HAVE_SENDFILE
# include <kernel-features.h>
#endif
typedef enum nss_status (*nss_gethostbynam... | {
"content_hash": "070831d7e7b59e56d66326f3812fccdc",
"timestamp": "",
"source": "github",
"line_count": 576,
"max_line_length": 79,
"avg_line_length": 27.39236111111111,
"alnum_prop": 0.5807453416149069,
"repo_name": "endplay/omniplay",
"id": "aaaf80df9db41190f7ce24e1249d2a3ee6ef82a3",
"size": "167... |
package com.flj.latte.ec.main.sort.content;
import android.support.v7.widget.AppCompatImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;
import com.chad.library.adapter.base.BaseSectionQuickAdapter;
import com.chad.lib... | {
"content_hash": "ae7b6ff03eb1d46a1824437059e038e1",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 90,
"avg_line_length": 31.76923076923077,
"alnum_prop": 0.7100484261501211,
"repo_name": "xiao125/LatteDamo",
"id": "4ec898b0e4e6a1d9a87c153f0728e46346b89b19",
"size": "166... |
(function() {
var app = angular.module('nyt', []);
app.controller('NytController', ['$http', '$scope', function($http, $scope) {
var nyt = this;
nyt.homeStories = {};
nyt.healthStories = {};
nyt.expanded = false;
$scope.homeExpanded = false;
$scope.healthExpanded = false;
nyt.expand =... | {
"content_hash": "56ef3367de27e2eb92ee6ddfd45a95b5",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 79,
"avg_line_length": 24.5,
"alnum_prop": 0.554945054945055,
"repo_name": "nhashmi/top-of-the-morning",
"id": "5b1117758843245f572e00e7bfc2629db5b6102b",
"size": "1274",
... |
namespace blitz {
template<template <typename> class TensorType, typename DType>
DType CrossEntropyMulti<TensorType, DType>::Apply(
const shared_ptr<TensorType<DType> > output,
const shared_ptr<TensorType<DType> > target) {
return Backend<TensorType, DType>::CrossEntropyMultiApplyFunc(
output.get(), target.g... | {
"content_hash": "f6a71dcf70f77edc1e7dd17045e4c87b",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 64,
"avg_line_length": 33.4,
"alnum_prop": 0.7604790419161677,
"repo_name": "PAA-NCIC/blitz",
"id": "95379cdee39cd392f16c5c9b800bfbdf8d00ee4f",
"size": "900",
"binary": f... |
/**
* Module dependencies.
*/
var express = require('express');
var http = require('http');
var path = require('path');
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var mongoose = require('mongoose/');
var session = require('express-session');
var bcrypt = require('bcry... | {
"content_hash": "ab0905eef499ddc66690c1c504bae11c",
"timestamp": "",
"source": "github",
"line_count": 265,
"max_line_length": 114,
"avg_line_length": 26.28301886792453,
"alnum_prop": 0.6288585786073223,
"repo_name": "pfgithub/cdj-adv",
"id": "4ea6d2e133f0261186bdc1dba197155e44fcd803",
"size": "69... |
package net.gcdc.geonetworking;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.thre... | {
"content_hash": "35ee05080232a374f03b0a1b2c5454b2",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 110,
"avg_line_length": 41.15172413793103,
"alnum_prop": 0.6276185687950394,
"repo_name": "Heuvendw/geonetworking",
"id": "97d32c299fb8fa6d97b282db5d28dbe3a72f0753",
"size... |
// Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | {
"content_hash": "0e201a66139a201944537869bc7ba45e",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 99,
"avg_line_length": 35.53333333333333,
"alnum_prop": 0.7125703564727955,
"repo_name": "googleapis/google-cloud-node",
"id": "774f7a39913fc1422eb649321b802c779331671d",
"... |
{% from qiita_core.qiita_settings import qiita_config %}
{% if prep_info %}
<h3>Data Types</h3>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
{% for dt in prep_info %}
{% set cleaned_dt = dt.replace(' ', '_') %}
<div cla... | {
"content_hash": "365b7c750feb2d80c66644161edf7ac2",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 213,
"avg_line_length": 50.1,
"alnum_prop": 0.5429141716566867,
"repo_name": "squirrelo/qiita",
"id": "431d7c469301ed77e2d0cd8543cb154a3ff02c3b",
"size": "1503",
"binary"... |
namespace chrome_pdf {
namespace {
void RunAndDeleteResultCallback(void* user_data, int32_t result) {
std::unique_ptr<ResultCallback> callback(
static_cast<ResultCallback*>(user_data));
std::move(*callback).Run(result);
}
} // namespace
pp::CompletionCallback PPCompletionCallbackFromResultCallback(
R... | {
"content_hash": "75628c2cea37a2abd491a9e26bf76b84",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 73,
"avg_line_length": 26.842105263157894,
"alnum_prop": 0.7098039215686275,
"repo_name": "ric2b/Vivaldi-browser",
"id": "adc58a71b886cf2afe539800f6cd5d000640a96b",
"size":... |
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.editors">
<editor
name="Speedy ESB Editor"
extensions="mpe"
icon="icons/sample.gif"
contributorClass="com.github.bechtelcandoit.speedyesb.editors.... | {
"content_hash": "3fe87991a932064009f02cf7038cca9e",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 110,
"avg_line_length": 34.12903225806452,
"alnum_prop": 0.6285444234404537,
"repo_name": "BechtelCanDoIt/SpeedyESB",
"id": "826f909c2eef39d7a559029b9690fc4b5d70ec6d",
"siz... |
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\SlackMessage;
class CronExecuted extends Notification
{
use Queueable;
/**
* Create a new notification instance.
*
* @return void
*/
publi... | {
"content_hash": "a991c2634930d1ebbd11ede0a6c26d07",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 53,
"avg_line_length": 18.57894736842105,
"alnum_prop": 0.6175637393767706,
"repo_name": "gpoussel/cyclopaca",
"id": "375c1eec22e815082b98ace4ae96acdd4929827e",
"size": "70... |
require 'spec_helper'
describe Raemon::Instrumentation do
# Have to extend due to the way anonymous classes work
subject { Class.new { extend Raemon::Instrumentation } }
describe '#instrument' do
context 'instrumentor available' do
let(:instrumentor) { double('Instrumentor') }
before do
... | {
"content_hash": "6ad55ab79620a3f390855eb5ba8831ac",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 89,
"avg_line_length": 25.545454545454547,
"alnum_prop": 0.6165480427046264,
"repo_name": "pressly/raemon",
"id": "752206cb5eed4a271675ae94d557f79332d8f995",
"size": "1124"... |
Since the project is in an early stage, the contributing guide will develop over time. For the time being you can use
the following sections for some orientation.
## How to contribute?
It's too early to write this chapter beacuse there is a lot of things we just develop and discuss. If you want to
help out building... | {
"content_hash": "b8da3289de4ba4e79459967213257da0",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 121,
"avg_line_length": 42.46478873239437,
"alnum_prop": 0.7429519071310116,
"repo_name": "BudgetFreak/BudgetFreak",
"id": "8c43890949a11711055d4436f08543a27caa861a",
"size... |
namespace MassTransit
{
using System;
using System.IO;
using System.Linq;
using System.Text;
public class ArrayMessageBody :
MessageBody
{
readonly ArraySegment<byte> _bytes;
public ArrayMessageBody(ArraySegment<byte> bytes)
{
_bytes = bytes;
... | {
"content_hash": "9db59faa5b41d5133c3a3f77325583ff",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 149,
"avg_line_length": 24.416666666666668,
"alnum_prop": 0.5858930602957907,
"repo_name": "phatboyg/MassTransit",
"id": "5fff406b03737ae2a20cb50e244224f08f3f1f89",
"size":... |
package javaImportTool;
public class NodeInitializer {
public NodeInitializer(String nodeType, String[][] children)
{
nodeType_ = nodeType;
children_ = children;
}
public NodeInitializer(String nodeType, boolean isPersistenceUnit, String[][] children)
{
nodeType_ = nodeType;
children_ = children;
is... | {
"content_hash": "45d77fc80c49aa155be922412a7b4de5",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 109,
"avg_line_length": 26.571428571428573,
"alnum_prop": 0.7409579667644184,
"repo_name": "BalzGuenat/Envision",
"id": "773e375092e1936496b9a4f6b7271ceff5bcc43f",
"size": ... |
package net.hasor.security;
import net.hasor.core.Hasor;
/**
* 代表一个权限点。
* @version : 2013-3-26
* @author 赵永春 (zyc@byshell.org)
*/
public class Permission {
private String perCode = null;
//
public Permission(String perCode) {
Hasor.assertIsNotNull(perCode, "permission code is null.");
t... | {
"content_hash": "0b6388ae9b20083d8baeba37a9ac8382",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 68,
"avg_line_length": 27.029411764705884,
"alnum_prop": 0.5952121871599565,
"repo_name": "zycgit/configuration",
"id": "ee12ec70ee6742d05b6c87a20549a65e1bbab817",
"size": ... |
package org.onosproject.net.flow;
import com.google.common.collect.Iterables;
import org.onosproject.core.ApplicationId;
import org.onosproject.event.ListenerService;
import org.onosproject.net.DeviceId;
/**
* Service for injecting flow rules into the environment and for obtaining
* information about flow rules al... | {
"content_hash": "37bcc949553a720e639f97ba0bdad628",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 92,
"avg_line_length": 33.07142857142857,
"alnum_prop": 0.6654067674586033,
"repo_name": "oplinkoms/onos",
"id": "78aef84a7df8b58d3878e06923c64ea6fc661d12",
"size": "6173"... |
<?php
/**
*
* @package Org_Apache_Oodt_Security
* @author Chris A. Mattmann
* @author Andrew F. Hart
* @version $Revision$
*
* PHP Single Sign On Library for EDRN PHP-based products.
*
*/
class Org_Apache_Oodt_Security_SingleSignOn {
private $connectionStatus;
private $conn;
public function __... | {
"content_hash": "902a9b6c99ee45f1dc0b7bbe003c7e53",
"timestamp": "",
"source": "github",
"line_count": 187,
"max_line_length": 97,
"avg_line_length": 25.914438502673796,
"alnum_prop": 0.6314486174164259,
"repo_name": "LeStarch/oodt",
"id": "512dffabdcc4a90a41d86f8c2845110f84cd057d",
"size": "5647"... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Placodium diplacioides Vain.
### Remarks
null | {
"content_hash": "cabe8f6607e45df7425088a902a3e2ef",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 28,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.7142857142857143,
"repo_name": "mdoering/backbone",
"id": "9f018516e0604d9de6d68d0ff2bb9a87c8561c8c",
"size": "185... |
.. SoftLayer API Python Client documentation
SoftLayer API Python Client |version|
========================================
`API Docs <https://softlayer.github.io/reference/softlayerapi/>`_ ``|``
`GitHub <https://github.com/softlayer/softlayer-python>`_ ``|``
`Issues <https://github.com/softlayer/softlayer-python/issu... | {
"content_hash": "b105d6a1f2eafd808a20185e0e237369",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 86,
"avg_line_length": 27.84090909090909,
"alnum_prop": 0.6718367346938775,
"repo_name": "kyubifire/softlayer-python",
"id": "1b3c2b390883e3c17678de7b1b1925912a87f5ca",
"si... |
/**
* <p><b>MODULE: remove</b></p>
*
* <p>Provides functions to remove single files or whole directories recursively.</p>
*
* @version 0.1.0
*/
var fs = require("fs"),
collectErr = require("./collectErr");
/**
* <p>Removes single files or whole directories recursively.</p>
*
* <p>All errors that occure ... | {
"content_hash": "85653bd2928739b4130bbeb144db2115",
"timestamp": "",
"source": "github",
"line_count": 152,
"max_line_length": 85,
"avg_line_length": 24.585526315789473,
"alnum_prop": 0.4955846936044956,
"repo_name": "peerigon/fshelpers",
"id": "a15eecb9df51e3dc186b88723bb7963723554034",
"size": "... |
Write-Host "Checking if the Active Directory Module is installed"
if ((Get-Module -name ActiveDirectory -ErrorAction SilentlyContinue | foreach { $_.Name }) -ne "ActiveDirectory")
{
Write-Host Active Directory Management has not been added to this session, adding it now...
Import-Module ActiveDirectory
}
else... | {
"content_hash": "97b3bcb017998b08e220f6727e3cc33d",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 187,
"avg_line_length": 51.857142857142854,
"alnum_prop": 0.6475550964187328,
"repo_name": "HMcC-Tek/ActiveDirectory",
"id": "8a9261a43ee5e175ad2065f6d4a8698224429848",
"s... |
package com.alibaba.druid.bvt.pool.exception;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import junit.framework.TestCase;
import org.junit.Assert;
import com.alibaba.druid.mock.MockConnection;
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.po... | {
"content_hash": "d8f611bbfd6f29a227f3605ac54ceeaf",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 100,
"avg_line_length": 31.152941176470588,
"alnum_prop": 0.6805135951661632,
"repo_name": "xiaomozhang/druid",
"id": "6b357493f270f80ca7e2956e58f81ca13e491c0b",
"size": "2... |
jest
.dontMock('body-checker')
.dontMock('check-types');
describe('parameter count', function() {
var check = require('body-checker');
it('Should reject the wrong number of parameters', function() {
var reqBody = {
name: 'Randy',
rogue: 'DROP users'
};
check(reqBody, {
name: {
type: 'string'... | {
"content_hash": "0f591a320ceb1e9ff92c1d81b720d00c",
"timestamp": "",
"source": "github",
"line_count": 306,
"max_line_length": 88,
"avg_line_length": 16.905228758169933,
"alnum_prop": 0.5967523680649527,
"repo_name": "luceracloud/body-checker",
"id": "fc1d30b8b946713a390dd51e3763599d90c3deda",
"si... |
#ifndef MITKCONTROLPOINTMANAGER_H
#define MITKCONTROLPOINTMANAGER_H
#include <MitkSemanticRelationsExports.h>
// semantic relations module
#include "mitkSemanticTypes.h"
// mitk core
#include <mitkDataNode.h>
namespace mitk
{
/**
* @brief Provides helper functions that are needed to work with control points.
... | {
"content_hash": "c8daa7067dc72b3b9e939647281f42ae",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 182,
"avg_line_length": 56.22018348623853,
"alnum_prop": 0.7483681462140992,
"repo_name": "fmilano/mitk",
"id": "601ca9c945cbb125d9add7e24c6f01aae794fce1",
"size": "6509",... |
use std::fs::File;
use std::io::{BufReader, BufRead};
use std::path::Path;
use super::super::context::{Context};
use super::super::packages;
use super::generic::{run_command_at_env, capture_command};
use builder::distrib::Distribution;
pub fn scan_features(ver: u8, pkgs: &Vec<String>) -> Vec<packages::Package> {
... | {
"content_hash": "742253e7e19dad3ea262fa0a67f81d5d",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 80,
"avg_line_length": 35.89041095890411,
"alnum_prop": 0.5341603053435114,
"repo_name": "rrader/vagga",
"id": "9a4a42a2802366050adde2fbaaf90fb9d30454d2",
"size": "5240",
... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "3a27c9a0cb0ae9e1399e74b0bd54f9b5",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "f700958d9c26c6036f804244df03de827184f32f",
"size": "19... |
'use strict';
module.exports = function(sequelize, DataTypes) {
var Category = sequelize.define('Category', {
name: DataTypes.STRING,
description: DataTypes.STRING
}, {
classMethods: {
associate: function(models) {
// associations can be defined here
Category.hasMany(models.Book);
... | {
"content_hash": "403a45fd1fdbdab3d2e1a5039818765c",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 49,
"avg_line_length": 24.68421052631579,
"alnum_prop": 0.6247334754797441,
"repo_name": "Jalaj-khajotia/Library-backend",
"id": "0db2814e072e3da9e121c6ec6235cd1bbe8026b8",
... |
package com.teleca.jamendo.util.download;
import java.io.File;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.teleca.jamendo.JamendoApplication;
import com.te... | {
"content_hash": "d57ec6bed1b889fd7a5c01a9c2506ec3",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 111,
"avg_line_length": 26.317073170731707,
"alnum_prop": 0.6793327154772938,
"repo_name": "simceChina/welfare",
"id": "66ad0489b2ebfbce0fa3d79bf076e6d52a46b740",
"size": ... |
/******************************************************************************
*
* Module Name: nswalk - Functions for walking the ACPI namespace
*
*****************************************************************************/
/*
* Copyright (C) 2000 - 2007, R. Byron Moore
* All rights reserved.
*
* Redistrib... | {
"content_hash": "b1b88142dfd8279990f4cf5b1ff10b2f",
"timestamp": "",
"source": "github",
"line_count": 297,
"max_line_length": 99,
"avg_line_length": 31.912457912457914,
"alnum_prop": 0.6035028487022579,
"repo_name": "ut-osa/laminar",
"id": "280b8357c46c32ebe3f5dc9933f6a19ae95f4d0e",
"size": "9478... |
module WebkitRemote
class Client
# API for the Input domain.
module Input
# Dispatches a mouse event.
#
# @param [Symbol] type the event type (:move, :down, :up)
# @param [Integer] x the X coordinate, relative to the main frame's viewport
# @param [Integer] y the Y coordinate, relative to the main frame's v... | {
"content_hash": "04d0388cbfc9d6eb4b345920141a4f6b",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 92,
"avg_line_length": 31.928571428571427,
"alnum_prop": 0.6328859060402685,
"repo_name": "pwnall/webkit_remote",
"id": "31ae12a3b1707c034dc8b587cb0e7c345be0b6b8",
"size":... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>graphs: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | {
"content_hash": "caa0e27c498ceb8dc0260c79f3345761",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 407,
"avg_line_length": 44.31927710843374,
"alnum_prop": 0.5487291015359521,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "cfeba9f29d9103d185d21e1a0730fbee72c4b83e",
... |
package ru.stqa.pft.addressbook.model;
import com.google.gson.annotations.Expose;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import org.hibernate.annotations.Type;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
... | {
"content_hash": "b3b17ebf6e3ecce39f82aaa1926e2e4d",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 99,
"avg_line_length": 22.635514018691588,
"alnum_prop": 0.6453344343517754,
"repo_name": "Zadorozhia/java_pft",
"id": "e810e302f65fb58e67cd7f7ed0ba261aa811bd08",
"size": ... |
from __future__ import unicode_literals
from django.db import migrations
import django_countries.fields
class Migration(migrations.Migration):
dependencies = [
('crm', '0009_auto_20171115_2254'),
]
operations = [
migrations.AlterField(
model_name='client',
name='... | {
"content_hash": "6cd0032d2d9fa863f0cc0c3627ff5022",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 107,
"avg_line_length": 27.791666666666668,
"alnum_prop": 0.6101949025487257,
"repo_name": "Clarity-89/clarityv2",
"id": "73c45c9b79fa5f39675bf18d6787b004d6345888",
"size":... |
package edu.stanford.isis.atb.ui.validation;
import javax.swing.tree.DefaultMutableTreeNode;
import edu.stanford.isis.atb.system.validation.ValidationError;
import edu.stanford.isis.atb.ui.model.tree.TemplateNodeType;
/**
* @author Vitaliy Semeshko
*/
public class TemplateValidationError {
private Validation... | {
"content_hash": "aa1bde0b88385735dce3283190926cbb",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 92,
"avg_line_length": 21.573529411764707,
"alnum_prop": 0.7341513292433538,
"repo_name": "NCIP/annotation-and-image-markup",
"id": "adf965c27096ab7edc5e3688ad4e11b78ad5a3b9"... |
/**
* stores key-value pair
*/
define(
[
'module',
'../Jet',
'../Impl/StdClassImpl',
'../Impl/CollectionImpl'
],
function (module, Jet, StdClassImpl, CollectionImpl) {
/**
* Stores key-value pair
*
* Required for ClassDecl
*/
... | {
"content_hash": "3ceb713ab4bc5db156fe7ca24cee2786",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 126,
"avg_line_length": 29.126315789473683,
"alnum_prop": 0.4289844597036502,
"repo_name": "amuzalevskiy/Jet",
"id": "dfc31e32b66856e75e179e74f0fbf964d4db96d7",
"size": "27... |
<!DOCTYPE html>
<html lang="en"><meta charset="utf-8" />
<title>Posts - Reflections</title>
<meta name="description" content="Default Page Description" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href=... | {
"content_hash": "68b1c19cc4dd30e9bfef4a2dfd77f603",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 527,
"avg_line_length": 32.08433734939759,
"alnum_prop": 0.6224183251971461,
"repo_name": "shiva/shiva.github.io",
"id": "729f579da4bf34af3a13f73b817c24d759293c63",
"size"... |
package com.amazonaws.services.robomaker.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.robomaker.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazon... | {
"content_hash": "786b490178dcfb0007eb29121b6c6e6b",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 152,
"avg_line_length": 40.509803921568626,
"alnum_prop": 0.7666989351403679,
"repo_name": "aws/aws-sdk-java",
"id": "05f828c4ee91db0d2d9db16342379407ccfc5de0",
"size": "26... |
package org.elasticsearch.cluster.metadata;
import com.carrotsearch.hppc.ObjectArrayList;
import com.carrotsearch.hppc.ObjectOpenHashSet;
import com.carrotsearch.hppc.cursors.ObjectCursor;
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
import com.google.common.base.Predicate;
import com.google.common.colle... | {
"content_hash": "31a3e17edb165ec60bd3565cf87df9dc",
"timestamp": "",
"source": "github",
"line_count": 1451,
"max_line_length": 248,
"avg_line_length": 43.56650585802895,
"alnum_prop": 0.5931345408526457,
"repo_name": "heng4fun/elasticsearch",
"id": "6fd591fd0bb84877aa147829bf5ab6a011fcc0a0",
"siz... |
package org.locationtech.geomesa.tools.ingest
import java.io.{File, Serializable}
import java.util.{Map => JMap}
import com.twitter.scalding.Args
import com.typesafe.scalalogging.LazyLogging
import org.geotools.coverage.grid.io.AbstractGridCoverage2DReader
import org.geotools.coverageio.gdal.dted.DTEDReader
import o... | {
"content_hash": "4c8c65114612d8be77db8780cf75815a",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 100,
"avg_line_length": 51.5875,
"alnum_prop": 0.7438817543009449,
"repo_name": "vpipkt/geomesa",
"id": "7a7e144a136b52d58108f456e0f8bbda6571270f",
"size": "4586",
"binar... |
+(function ($) {
'use strict';
$.fn.historyTabs = function () {
var that = this;
window.addEventListener('popstate', function (event) {
if (event.state) {
$(that)
.filter('[href="' + event.state.url + '"]')
.tab('show');
}
});
return this.each(function (index,... | {
"content_hash": "6feaefcf42717cacb16fce0213f7f8c3",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 79,
"avg_line_length": 31,
"alnum_prop": 0.5076400679117148,
"repo_name": "jeffdavidgreen/bootstrap-html5-history-tabs",
"id": "76e772422e33844825b7f12e3c556f35d6b7fdc4",
"... |
Reality Keys Examples
====================
This repo is for scripts that help you set up contracts with Reality Keys:
https://www.realitykeys.com/
They should be considered EXPERIMENTAL and in some cases are put here for review.
| {
"content_hash": "9eb8f8518bfb6d664a8c8d2567feb6b1",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 81,
"avg_line_length": 33,
"alnum_prop": 0.7272727272727273,
"repo_name": "edmundedgar/realitykeys-examples",
"id": "9bc4eaf82d41cdd85acbe51aac5ca25081bf4c87",
"size": "231"... |
<?php
/**
* ContactsDeletedTest
*
* PHP version 5
*
* @category Class
* @package Clever
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Clever API
*
* The Clever API
*
* OpenAPI spec version: 2.0.0
*
* Generated by: https://github.com/swagger-api/s... | {
"content_hash": "b63a659390a764ac56f1f2cd6e7d959d",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 76,
"avg_line_length": 17.658823529411766,
"alnum_prop": 0.6102598267821452,
"repo_name": "Clever/clever-php",
"id": "27fa8d6ab7243ba9aaf4f2672408bab6ec161c0f",
"size": "15... |
package com.limagiran.hearthstone.partida.util;
import static com.limagiran.hearthstone.HearthStone.CARTAS;
import com.limagiran.hearthstone.card.control.Card;
import com.limagiran.hearthstone.util.Utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.limagiran.hearthstone.util.... | {
"content_hash": "87e304f468636a688c28f9a2556dafd8",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 127,
"avg_line_length": 35.40495867768595,
"alnum_prop": 0.6225490196078431,
"repo_name": "limagiran/hearthstone",
"id": "de1794a4e70494548390e1158a9d01ac5bce8f1f",
"size"... |
var jive = require("jive-sdk");
var q = require('q');
/**
* Handles actually pushing data to the tile instance
* @param instance
*/
function processTileInstance(instance) {
jive.logger.debug('running pusher for ', instance.name, 'instance', instance.id);
// creates a data update structure
function ge... | {
"content_hash": "b8c10687647bc9f42f894f78589d171e",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 125,
"avg_line_length": 28.831683168316832,
"alnum_prop": 0.5367445054945055,
"repo_name": "matthewmccullough/jive-sdk",
"id": "d4bfc9209d8d20a133351ba5139fed735daff68b",
... |
package com.github.hiendo.tsa.web.entities;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
/**
*
*/
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE,
isGetterVisibility= JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDete... | {
"content_hash": "ca9f2aa24f531d652b23e2b3c4bffa4b",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 115,
"avg_line_length": 23.419354838709676,
"alnum_prop": 0.7011019283746557,
"repo_name": "hiendo/tsa",
"id": "b0ef8574f037022c327b17961d8a54551782923f",
"size": "726",
... |
package com.laytonsmith.abstraction.bukkit.events.drivers;
import com.laytonsmith.abstraction.bukkit.events.BukkitWeatherEvents;
import com.laytonsmith.core.events.Driver;
import com.laytonsmith.core.events.EventUtils;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event... | {
"content_hash": "71170af92c931cba369e939409825ee1",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 141,
"avg_line_length": 43.67741935483871,
"alnum_prop": 0.8057607090103397,
"repo_name": "dbuxo/CommandHelper",
"id": "9307db9110e6f68b9e7eddcd1e4d2d9faad72d0b",
"size": "... |
/* $NetBSD: cd9660_debug.c,v 1.13 2013/10/19 17:16:37 christos Exp $ */
/*
* Copyright (c) 2005 Daniel Watt, Walter Deignan, Ryan Gabrys, Alan
* Perez-Rathke and Ram Vedam. All rights reserved.
*
* This code was written by Daniel Watt, Walter Deignan, Ryan Gabrys,
* Alan Perez-Rathke and Ram Vedam.
*
* Redistr... | {
"content_hash": "56adf4b72ca80401e1522c8af9dff77e",
"timestamp": "",
"source": "github",
"line_count": 498,
"max_line_length": 94,
"avg_line_length": 28.542168674698797,
"alnum_prop": 0.6571689883213733,
"repo_name": "execunix/vinos",
"id": "33e2b3e01f4a8a81e444352e18707afbb48e2b8a",
"size": "1421... |
<?php
class Ramp_Controller_KeyParameters
{
/* Controller names */
const ACT_CONTROLLER = 'activity';
const DOC_CONTROLLER = 'document';
const REP_CONTROLLER = 'report';
const TBL_CONTROLLER = 'table';
const ADMIN_CONTROLLER = 'admin-table';
const DEFAULT_CONTROLLER = self::TBL_CONTROLLER... | {
"content_hash": "6dc34f4f86b165d86baf2b39fd96dee7",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 75,
"avg_line_length": 27.4875,
"alnum_prop": 0.5716234652114598,
"repo_name": "AlyceBrady/ramp",
"id": "16d2d9ae826554e1255484dc93854d30ae7b52dc",
"size": "2683",
"binar... |
<?php
namespace Craft;
class RoutesService extends BaseApplicationComponent
{
// Public Methods
// =========================================================================
/**
* Returns the routes defined in craft/config/routes.php
*
* @return array
*/
public function getConfigFileRoutes()
{
$path = ... | {
"content_hash": "508f3371e37a5fef678d3fbf0069877e",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 112,
"avg_line_length": 22.7816091954023,
"alnum_prop": 0.5925832492431887,
"repo_name": "jelyman2/vagrant-craftcms",
"id": "fc6d38aa25844350611f611846b21bbb37cbd9d0",
"si... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About UniCoin</source>
<translation>Pri UniCoin</translation>
</messag... | {
"content_hash": "a240689b631f479a50c92f9b793d85a6",
"timestamp": "",
"source": "github",
"line_count": 2917,
"max_line_length": 395,
"avg_line_length": 33.73842989372643,
"alnum_prop": 0.5915663262714017,
"repo_name": "unicoindev/unicoin",
"id": "618a5c5fb434a3b56dda01c2a0b59221c8285333",
"size": ... |
all: check_dependencies test
filename=dominic-`python -c 'import dominic;print dominic.version'`.tar.gz
export PYTHONPATH:= ${PYTHONPATH}:${PWD}
check_dependencies:
@echo "Checking for dependencies to run tests ..."
@python -c "import sure" 2>/dev/null || (echo "You must install sure in order to run dominic's tes... | {
"content_hash": "d5464e9875b7066d51a6ded93a578431",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 122,
"avg_line_length": 33.86666666666667,
"alnum_prop": 0.6929133858267716,
"repo_name": "gabrielfalcao/dominic",
"id": "246c76924e84ddc4578d7f5774f62cc9edf6d2b1",
"size":... |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 26.1.9
description: >
Return abrupt result.
info: >
26.1.9 Reflect.has ( target, propertyKey )
...
4. Return target.[[HasProperty]](key).
features: [Proxy]
---*... | {
"content_hash": "b71db4e4ee1cbf5f91d5acd3057203f1",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 70,
"avg_line_length": 20.25,
"alnum_prop": 0.6378600823045267,
"repo_name": "baslr/ArangoDB",
"id": "78efba9f6c0703dc1f65cc068e7cd7ed7c25a165",
"size": "486",
"binary": ... |
#ifndef __PU_SLAVE_EMITTER_FACTORY_H__
#define __PU_SLAVE_EMITTER_FACTORY_H__
#include "ParticleUniversePrerequisites.h"
#include "ParticleUniverseEmitterFactory.h"
#include "ParticleUniverseSlaveEmitter.h"
#include "ParticleUniverseSlaveEmitterTokens.h"
namespace ParticleUniverse
{
/** This is the fac... | {
"content_hash": "08a851dad1dfcb6bbfcc3fb91dda36cd",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 93,
"avg_line_length": 27.189655172413794,
"alnum_prop": 0.7152821813570069,
"repo_name": "gsage/engine",
"id": "22d6f33da30887b20f907ad1c967f7c10eb2283f",
"size": "2877",
... |
from __future__ import print_function
import os.path
import subprocess
import mxnet as mx
import numpy as np
from time import time
import sys
def get_use_tensorrt():
return int(os.environ.get("MXNET_USE_TENSORRT", 0))
def set_use_tensorrt(status = False):
os.environ["MXNET_USE_TENSORRT"] = str(int(status))
... | {
"content_hash": "7726bef7c4c1322dafdf6aac9b1aa3dc",
"timestamp": "",
"source": "github",
"line_count": 154,
"max_line_length": 133,
"avg_line_length": 33.422077922077925,
"alnum_prop": 0.5968525354575481,
"repo_name": "mlperf/training_results_v0.6",
"id": "f4fb399f8720cd122002b7079cc1f76e5a0d6557",
... |
package org.spongepowered.mod.mixin.core.forge;
import net.minecraft.block.state.IBlockState;
import org.spongepowered.api.block.BlockSnapshot;
import org.spongepowered.api.block.BlockState;
import org.spongepowered.api.util.annotation.NonnullByDefault;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepower... | {
"content_hash": "bbe6aaca92e88432122946de927cf49e",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 81,
"avg_line_length": 29.47826086956522,
"alnum_prop": 0.7949852507374632,
"repo_name": "caseif/Sponge",
"id": "b44cda1304a6162cbfbc238ee7a64bf142c9f075",
"size": "1925",
... |
package org.apache.accumulo.tserver.constraints;
import org.apache.accumulo.core.constraints.Constraint;
public abstract class SystemConstraint implements Constraint {}
| {
"content_hash": "ab179440858ca320ba6332dee5c8b17b",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 63,
"avg_line_length": 28.666666666666668,
"alnum_prop": 0.8430232558139535,
"repo_name": "ivakegg/accumulo",
"id": "813054e0c4943b8acf5ba020017b7d3dfd95a42d",
"size": "979"... |
namespace sn_Function {
namespace ref {
template <typename R, typename ...Args>
class function_ref<R(Args...)> {
void* ptr;
R(*erased_fn)(void*, Args...);
public:
template <typename F> // some constraints here
function_ref(F&& f) noexcept : ptr... | {
"content_hash": "17924df46d37c01885bfba485047b837",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 65,
"avg_line_length": 28.73076923076923,
"alnum_prop": 0.42168674698795183,
"repo_name": "Airtnp/SuperNaiveCppLib",
"id": "d1281c4f3b2933b3fdb7167967ed9fb968c367cc",
"size... |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.4.4; xx; SAMSUNG SM-A7000 Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/2.0 Chrome/34.0.1847.76 Mobile Safari/537.36</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/m... | {
"content_hash": "5cf41d11973562e3c2b23f6b6df2add0",
"timestamp": "",
"source": "github",
"line_count": 1151,
"max_line_length": 810,
"avg_line_length": 41.12076455256299,
"alnum_prop": 0.5351785336995563,
"repo_name": "ThaDafinser/UserAgentParserComparison",
"id": "9e5d9afc731d2c2942b3e213951cd0ec01... |
require "spec_helper"
RSpec.describe FileManagement do
it "has a version number" do
expect(FileManagement::VERSION).not_to be nil
end
# it "does something useful" do
# expect(false).to eq(true)
# end
end
| {
"content_hash": "a44c286a0dec74173332fdd9d533be8d",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 49,
"avg_line_length": 20.181818181818183,
"alnum_prop": 0.6981981981981982,
"repo_name": "Mikeks81/File-Management",
"id": "d2ece1f32b1f4d09e0206b423d83bd9dbcd9068f",
"siz... |
<?php
namespace PHPExiftool\Driver\Tag\CanonVRD;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class BrightnessAdj extends AbstractTag
{
protected $Id = 276;
protected $Name = 'BrightnessAdj';
protected $FullName = 'CanonVRD::Ve... | {
"content_hash": "46ea8c2933224751c56bdefeb910d1a0",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 46,
"avg_line_length": 16.457142857142856,
"alnum_prop": 0.671875,
"repo_name": "romainneutron/PHPExiftool",
"id": "52b18a26949bf6913c5fc97f1e0f0e0e284f920f",
"size": "798"... |
<?php
namespace Nette\Database\Reflection;
use Nette;
/**
* Reflection metadata class with discovery for a database.
*
* @author Jan Skrasek
* @property-write Nette\Database\Connection $connection
*/
class DiscoveredReflection extends Nette\Object implements Nette\Database\IReflection
{... | {
"content_hash": "f15355dd7d0e20c29ef328ff934e519b",
"timestamp": "",
"source": "github",
"line_count": 192,
"max_line_length": 113,
"avg_line_length": 24.802083333333332,
"alnum_prop": 0.6112977740445191,
"repo_name": "janpecha/heymaster",
"id": "a04dfe30252e2dd3939e077152b94263eb20515f",
"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 -->
<title>com.centurylink.mdw.export (MDW 6 API JavaDocs)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Sty... | {
"content_hash": "04fe59a7eea1b349f4b3f0686de2cdc0",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 163,
"avg_line_length": 35.36024844720497,
"alnum_prop": 0.6320042157034955,
"repo_name": "CenturyLinkCloud/mdw",
"id": "fd44e74dd4d867b4d39a5eccd57cf87689efe5a2",
"size":... |
<!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": "530a89b97982f0931df2bc016803b702",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 261,
"avg_line_length": 72.04716981132076,
"alnum_prop": 0.7027628649993453,
"repo_name": "DrPizza/reed-solomon",
"id": "f1db948a4710f658c740615589c780d4d803e153",
"size":... |
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20130908094643 extends AbstractMigration
{
public function up(Schema $schema)
{
// this... | {
"content_hash": "9cbb38442c358640100269248d8f1b49",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 140,
"avg_line_length": 32.34615384615385,
"alnum_prop": 0.6587395957193817,
"repo_name": "GoogleMap/placesProject",
"id": "953d8b291e916b2d0bfcd264b9bcd6c2899f12cc",
"size... |
package org.apache.beam.runners.dataflow;
import static org.apache.beam.runners.dataflow.util.Structs.getString;
import static org.apache.beam.sdk.util.StringUtils.jsonStringToByteArray;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument;
import static org.hamcrest... | {
"content_hash": "4ba25051fd1f5d941c581f59806972fb",
"timestamp": "",
"source": "github",
"line_count": 1669,
"max_line_length": 115,
"avg_line_length": 41.58897543439185,
"alnum_prop": 0.6948366276724486,
"repo_name": "robertwb/incubator-beam",
"id": "82297b9784ae428ceb53930780455ca00692e15b",
"si... |
import settings from '../settings'
import Vue from 'vue'
export default class FileForUpload {
/**
* Initialize new instance of file upload.
* @param {File} file
*/
constructor (file) {
this.file = file
this.name = file.name
this.reader = new FileReader()
this.src = settings.icon('file')
... | {
"content_hash": "05ff4d812004fbcee8a2bfe464db8f20",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 76,
"avg_line_length": 25.483870967741936,
"alnum_prop": 0.6177215189873417,
"repo_name": "crip-laravel/filesys",
"id": "855ef8821c1d14bc25f343ab73c9142e256163d6",
"size": ... |
package dk.skrypalle.bpl.util;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.*;
import java.util.*;
public final class Parse {
public static String ttos(Token t) {
if (t == null)
throw new NullPointerException("'t' is null");
return t.getText();
}
public static String ttos(ParseTree t... | {
"content_hash": "dbbc8574c7f841f62e101ac2941bbdb4",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 55,
"avg_line_length": 19.333333333333332,
"alnum_prop": 0.6336206896551724,
"repo_name": "baeda/bpl",
"id": "66b9f56d3e3876011fea0daca72b0669e8070aa4",
"size": "1846",
"... |
"""
Exposes utility functions.
"""
from collections import OrderedDict
from contextlib import contextmanager
import json
import logging
import timeit
REPORTING_INDEX_ALL = 0
REPORTING_INDEX_ELD = 1
REPORTING_INDEX_VBM = 2
REPORTING_INDICES_SIMPLE = (REPORTING_INDEX_ALL, )
REPORTING_INDICES_COMPLETE = (REPORTING_IN... | {
"content_hash": "9cb4f76101bf2cb690bf031f682e381e",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 82,
"avg_line_length": 24.485714285714284,
"alnum_prop": 0.6444963049397122,
"repo_name": "cjerdonek/wineds-converter",
"id": "3bbd67762b23dd747e2bf9f001ff591a712f1a51",
"... |
// Copyright NVIDIA Corporation 2010-2013
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the follow... | {
"content_hash": "eb93bb259d7219e46373b4128f1fc759",
"timestamp": "",
"source": "github",
"line_count": 502,
"max_line_length": 139,
"avg_line_length": 43.86852589641434,
"alnum_prop": 0.5312414857869403,
"repo_name": "swq0553/pipeline",
"id": "1b22759f6b79c0df4b4604a39cd57049cf721398",
"size": "22... |
using namespace std;
class Iterator {
struct Data;
Data* data;
public:
Iterator(const vector<int>& nums);
Iterator(const Iterator& iter);
virtual ~Iterator();
// Returns the next element in the iteration.
int next();
// Returns true if the iteration has more elements.
bool hasNext()... | {
"content_hash": "a906d2c5e6fe83a34a01a33a1ce663fe",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 80,
"avg_line_length": 23.60377358490566,
"alnum_prop": 0.5859312549960032,
"repo_name": "narikbi/LeetCode",
"id": "2b848b081283389603778a8c85de090d549d8223",
"size": "1640... |
<?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="app_label" msgid="4489004083283879149">"Лента на състоянието"</string>
<string name="status_bar_clear_all_button" msgid... | {
"content_hash": "3be81470b4c13bb838f518312b7e356e",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 199,
"avg_line_length": 71.70370370370371,
"alnum_prop": 0.7283057851239669,
"repo_name": "xjwangliang/android_source_note",
"id": "d9ee86a4b7b754c278ced1a456c45475e837bad8",... |
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=yes">
<meta name="description" content="QuickSSVEP - A tool for setting up SSVEP stimulator">
<title>Quick SSVEP</title>
<script type... | {
"content_hash": "a77155a9f16f0d3e9b24488e826c6121",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 88,
"avg_line_length": 39.5,
"alnum_prop": 0.6864654333008764,
"repo_name": "OmidS/quickssvep",
"id": "0ea5954de87b640c7b9c28730fd27bf5702a892f",
"size": "1027",
"binary"... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "d8ae82100b7ef2bce78854acf94710c1",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "c2187c127bab379fee9208c1e1414ea48fb0dfbc",
"size": "19... |
/*jshint camelcase: false */
'use strict';
module.exports = {
addDefaults: function(options) {
options.proxy = options.proxy || {};
options.proxy.address = options.proxy.address || '172.20.0.253';
options.proxy.url = options.proxy.url || 'http://' + options.proxy.address + ':8888'... | {
"content_hash": "275df02a5ea63e9afae2c1dd990a1ce0",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 97,
"avg_line_length": 33.72222222222222,
"alnum_prop": 0.6375617792421746,
"repo_name": "xpfriend/pocci-template-examples",
"id": "ec14bae4192a51a4429421e5922da46bda47162c",... |
using System;
using System.Linq;
using System.Windows;
using System.Windows.Input;
using GSF.Data;
using GSF.TimeSeries.UI;
using PowerCalculations.UI.DataModels;
namespace PowerCalculations.UI.WPF.ViewModels
{
public class PowerCalculationViewModel : PagedViewModelBase<PowerCalculation, int>
{
public PowerCalcul... | {
"content_hash": "3cb8f233eebe6933817cb0261b435be8",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 156,
"avg_line_length": 28.871794871794872,
"alnum_prop": 0.6190053285968028,
"repo_name": "rmc00/gsf",
"id": "2ad48b3479f1ff852e943941b3ee1c4d79e6706e",
"size": "3380",
... |
var config = require('config.json');
var _ = require('lodash');
var jwt = require('jsonwebtoken');
var bcrypt = require('bcryptjs');
var Q = require('q');
var mongo = require('mongoskin');
var db = mongo.db(config.connectionString, { native_parser: true });
db.bind('timesheets');
db.bind('users');
db.bind('projects');
... | {
"content_hash": "3e8a6c0d5ad3c6f4b5eaf73d6dbfab7a",
"timestamp": "",
"source": "github",
"line_count": 1034,
"max_line_length": 202,
"avg_line_length": 42.13926499032882,
"alnum_prop": 0.5333700541632241,
"repo_name": "anudeepjusanu/timesheet",
"id": "2695cb123debb62850fcafef1e5b4a3efd6654c6",
"si... |
package global.utils.factories;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import global.models.BaseElement;
import global.models.serialization.BaseElementConverter;
/**
* Created by Arsen on 16.08.2016.
*/
public class GsonFactory {
private static Gson instance;
public static Gson g... | {
"content_hash": "c405d70227a672dbbc3d586201d2f991",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 87,
"avg_line_length": 27.4,
"alnum_prop": 0.6362530413625304,
"repo_name": "CeH9/PackageTemplates",
"id": "39d473b7ef29953822e0fdb4b587c15c75d9cf41",
"size": "822",
"bin... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CategoryBarComponent } from './category-bar.component';
describe('CategoryBarComponent', () => {
let component: CategoryBarComponent;
let fixture: ComponentFixture<CategoryBarComponent>;
beforeEach(async(() => {
TestBed.conf... | {
"content_hash": "32f81afcd0b6efd564f9e0430173c39f",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 73,
"avg_line_length": 26.56,
"alnum_prop": 0.6867469879518072,
"repo_name": "petrstehlik/pyngShop",
"id": "2f4e778a9dfac1901967337efd12d40cae7c6dda",
"size": "664",
"bin... |
package org.apache.hadoop.hbase.util;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.Fut... | {
"content_hash": "da20b66305d0274c5d55d3ad38bfd5cf",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 100,
"avg_line_length": 39.13333333333333,
"alnum_prop": 0.7075525269733106,
"repo_name": "ultratendency/hbase",
"id": "dfd9ead2785401333b1c644ccda94bff5a661895",
"size": ... |
package org.cloudfoundry.client.v2.events;
import org.junit.Test;
public final class GetEventRequestTest {
@Test(expected = IllegalStateException.class)
public void noEventId() {
GetEventRequest.builder()
.build();
}
@Test
public void valid() {
GetEventRequest.build... | {
"content_hash": "951928f24df0734ab2d5b30bec1e2827",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 49,
"avg_line_length": 17.90909090909091,
"alnum_prop": 0.6015228426395939,
"repo_name": "alexander071/cf-java-client",
"id": "760ccafec4983a3db204a0283fa4cfddfbc15fa4",
"s... |
<?php
namespace Magento\Paypal\Controller\Adminhtml\Paypal\Reports;
class Details extends \Magento\Paypal\Controller\Adminhtml\Paypal\Reports
{
/**
* Authorization level of a basic admin session
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_Paypal::paypal_settlement_reports_view... | {
"content_hash": "3ba2e6690a76c5004995ae730ccb08d5",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 90,
"avg_line_length": 29.13157894736842,
"alnum_prop": 0.5618789521228545,
"repo_name": "j-froehlich/magento2_wk",
"id": "74a7169309801770261b3898729b24e7d8de0cc3",
"size"... |
/* eslint-disable */
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(instal... | {
"content_hash": "22fd802a694fd67eaa01223a13f83536",
"timestamp": "",
"source": "github",
"line_count": 13452,
"max_line_length": 662,
"avg_line_length": 37.93421052631579,
"alnum_prop": 0.536201892645569,
"repo_name": "Statfine/reactDemo",
"id": "615955e098c4b020d5c40147b4649da19bc217c2",
"size": ... |
package org.scalafmt.util
import scala.annotation.tailrec
import scala.meta.Input
import scala.meta.tokens.Token
import scala.meta.tokens.Tokens
class TokenTraverser(tokens: Tokens, input: Input) {
private[this] val (tok2idx, excludedTokens) = {
val map = Map.newBuilder[Token, Int]
val excluded = Set.newBui... | {
"content_hash": "93fcf293539efda19a5673f08fadaff0",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 76,
"avg_line_length": 28.35114503816794,
"alnum_prop": 0.6173936456650512,
"repo_name": "scalameta/scalafmt",
"id": "94dcfb445f14388a4eb9f6421a7e9bcd1edf1f1d",
"size": "3... |
Date.CultureInfo = {
/* Culture Name */
name: "sv-FI",
englishName: "Swedish (Finland)",
nativeName: "svenska (Finland)",
/* Day Name Strings */
dayNames: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"],
abbreviatedDayNames: ["sö", "må", "ti", "on", "to", "f... | {
"content_hash": "67ff0b7d66536fd445fbc6796f4fa45f",
"timestamp": "",
"source": "github",
"line_count": 195,
"max_line_length": 310,
"avg_line_length": 35.14358974358974,
"alnum_prop": 0.49905151028746536,
"repo_name": "KingsleyYu/Chuanmei",
"id": "116d04bf44a813e6fba2fd9ea04431e8e4206d49",
"size":... |
from heat.common import exception
from heat.common.i18n import _
from heat.engine import constraints
from heat.engine import properties
from heat.engine import resource
from heat.engine import support
class CinderVolumeType(resource.Resource):
"""A resource for creating cinder volume types.
Volume type resou... | {
"content_hash": "ced237cf569d533b12602813109a8061",
"timestamp": "",
"source": "github",
"line_count": 147,
"max_line_length": 79,
"avg_line_length": 39.12244897959184,
"alnum_prop": 0.6019822639540949,
"repo_name": "steveb/heat",
"id": "f7d59707f1061bc0ba78a337e15df186800dd280",
"size": "6326",
... |
#import "Reachability.h"
#import <sys/socket.h>
#import <netinet/in.h>
#import <netinet6/in6.h>
#import <arpa/inet.h>
#import <ifaddrs.h>
#import <netdb.h>
NSString *const kReachabilityChangedNotification = @"kReachabilityChangedNotification";
@interface TMReachability ()
@property (nonatomic, assign) SCNetwork... | {
"content_hash": "c5e2fb34faeb4f6acb9c996310f2d37d",
"timestamp": "",
"source": "github",
"line_count": 444,
"max_line_length": 135,
"avg_line_length": 26.36036036036036,
"alnum_prop": 0.6699419002050581,
"repo_name": "albertbori/Reachability",
"id": "0c36e7d13196cb1a428c1acc0e745ee02337c2f5",
"siz... |
<?php /* Smarty version Smarty-3.1.7, created on 2016-09-06 15:55:50
compiled from "/home/bj/www/byjcrm/includes/runtime/../../layouts/vlayout/modules/Users/Login.tpl" */ ?>
<?php /*%%SmartyHeaderCode:141050139357cee7069c2a55-78099008%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_... | {
"content_hash": "caba35b3f60e48901c06653feb8b1a8d",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 174,
"avg_line_length": 50.2,
"alnum_prop": 0.6563745019920318,
"repo_name": "basiljose1/byjcrm",
"id": "adf3cec236d84c199934d097be2829b43f6b8483",
"size": "2008",
"binar... |
<?xml version="1.0" ?>
<LEOSimulation version="2.5.0">
<STELAVersion>2.5.1</STELAVersion>
<SpaceObject>
<mass unit="kg">3.0</mass>
<dragArea>0.045</dragArea>
<reflectingArea>0.18</reflectingArea>
<reflectivityCoefficient>1.5</reflectivityCoefficient>
<orbitType>LEO</orbitType>
<ConstantDragC... | {
"content_hash": "41be417ac005c847e9281727feab8472",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 65,
"avg_line_length": 36.354838709677416,
"alnum_prop": 0.6987577639751553,
"repo_name": "pouyana/satgen",
"id": "c72969a906d9c25f8dd005339fb8f76cf61d3f0b",
"size": "2254"... |
RSpec.configure do |config|
# rspec-expectations config goes here. You can use an alternate
# assertion/expectation library such as wrong or the stdlib/minitest
# assertions if you prefer.
config.expect_with :rspec do |expectations|
# This option will default to `true` in RSpec 4. It makes the `description`... | {
"content_hash": "9a63fb93d8c80f9d208535be3f1d50cd",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 129,
"avg_line_length": 44.506493506493506,
"alnum_prop": 0.7245404143565801,
"repo_name": "alexei-lexx/dciablo",
"id": "4ef194c693927f7ed31533b34f853a6a5e890283",
"size": ... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Id: OBSERVATION_CONTROL.xml,v 1.1 2010/04/26 16:18:57 utfsm Exp $
$Source: /diskb/tmp/stefano/project2/CVS/ACS/LGPL/CommonSoftware/acsGUIs/alarmsDefGUI/test/CDB/Alarms/AlarmDefinitions/OBSERVATION_CONTROL/OBSERVATION_CONTROL.xml,v $
-->
<fault-family name="OBSERVATION_CONTRO... | {
"content_hash": "8c11d39a6ff92cbc3f203753e4d9f501",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 166,
"avg_line_length": 46.642857142857146,
"alnum_prop": 0.6749617151607963,
"repo_name": "csrg-utfsm/acscb",
"id": "0064f23a53150067803c01db68b59c82fb409d71",
"size": "26... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="3c8bfbe1-e895-4151-a725-2e419ac66e55" name="Default" comment="" />
<ignored path="play-rest-api.iws" />
<ignored path=".idea/workspace.xml" />
<ignored path="$PROJECT_DIR$/target/... | {
"content_hash": "39c5405e5203ffd9a8d22a9d43bf7a82",
"timestamp": "",
"source": "github",
"line_count": 1042,
"max_line_length": 253,
"avg_line_length": 53.51343570057582,
"alnum_prop": 0.6269973637488567,
"repo_name": "aldolipani/VisualPool",
"id": "994eacff2172e3e0c330dc12c37897d703550067",
"size... |
package org.meteogroup.jbrotli.servlet;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.net.HttpURLConnection;
import java.net.URL;
import static java.lang.Integer.parseInt;
import static org.assertj.core.api.Assertions.assertThat;
import static org.meteogroup.jbrotli.se... | {
"content_hash": "b03916dbce4cc19f3672664f2201b04e",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 92,
"avg_line_length": 30.46551724137931,
"alnum_prop": 0.7357102433503112,
"repo_name": "MeteoGroup/jbrotli",
"id": "0a2018a7669fe9475a7f90b405de7f8cffe56547",
"size": "23... |
using FrannHammer.Domain.Contracts;
using static FrannHammer.Domain.FriendlyNameCommonConstants;
using static FrannHammer.Domain.FriendlyNameMoveCommonConstants;
namespace FrannHammer.Domain
{
public class UniqueData : BaseModel, IUniqueData
{
[FriendlyName(OwnerIdName)]
public int OwnerId { g... | {
"content_hash": "424c6e68556858007695e96951afc086",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 64,
"avg_line_length": 27.733333333333334,
"alnum_prop": 0.7235576923076923,
"repo_name": "Frannsoft/FrannHammer",
"id": "6f5774d4b9004cf2302b7bde8f72352de588803f",
"size":... |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.4; ST26a Build/11.0.A.3.13) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
... | {
"content_hash": "2845f670e306d64880133b937fe7da07",
"timestamp": "",
"source": "github",
"line_count": 1124,
"max_line_length": 752,
"avg_line_length": 41.46797153024911,
"alnum_prop": 0.5386183222484445,
"repo_name": "ThaDafinser/UserAgentParserComparison",
"id": "471f3fc72b2b48ccf36b61e26e75abe199... |
Handy data structures for elements keyed by string.
## Installing
If you use NPM, `npm install d3-collection`. Otherwise, download the [latest release](https://github.com/d3/d3-collection/releases/latest). The released bundle supports AMD, CommonJS, and vanilla environments. Create a custom build using [Rollup](https... | {
"content_hash": "77e6c7cf967adf61a7e589c6a9ce1c01",
"timestamp": "",
"source": "github",
"line_count": 260,
"max_line_length": 683,
"avg_line_length": 60.323076923076925,
"alnum_prop": 0.7134021933180311,
"repo_name": "raskolnikova/infomaps",
"id": "478c7de32052bb53b10e10cab6815ff18ed5e8b1",
"size... |
<?php
class Login extends F5_Controller{
/**
* Executa tudo que tem aqui antes de inicar QUALQUER action deste controller. O uso deste método é opcional, pois já está sobreescrevendo o método init() de controller do F5 Framework.
*/
public function init() {
$this->trataURL = new removerA... | {
"content_hash": "00236dcd4626208650d3cf4ba15021d7",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 189,
"avg_line_length": 22.666666666666668,
"alnum_prop": 0.6176470588235294,
"repo_name": "EquipeB/SOSFeevale",
"id": "04bb29059805a9d71883a52fcb96f4b33b6bc8a9",
"size": "... |
package org.jboss.weld.junit4.ofpackage;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.jboss.weld.junit4.WeldInitiator;
import org.junit.Rule;
import org.junit.Test;
/**
*
* @author Martin Kouba
*/
public class OfPackageTest {
@Rule
public WeldInitiat... | {
"content_hash": "24c74dbc69f6ef210b8e1da723ee6ba0",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 73,
"avg_line_length": 21.307692307692307,
"alnum_prop": 0.7148014440433214,
"repo_name": "weld/weld-junit",
"id": "b67f1bb1c25b9ff75c74e18498223409e4ba06d8",
"size": "1329... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.