text stringlengths 2 1.04M | meta dict |
|---|---|
<html><!-- Created using the cpp_pretty_printer from the dlib C++ library. See http://dlib.net for updates. --><head><title>dlib C++ Library - widgets_abstract.h</title></head><body bgcolor='white'><pre>
<font color='#009900'>// Copyright (C) 2005 Davis E. King (davis@dlib.net), Keita Mochizuki
</font><font color='... | {
"content_hash": "6b1bc6bde370fd7ea1ecd2fb4e4af948",
"timestamp": "",
"source": "github",
"line_count": 3461,
"max_line_length": 521,
"avg_line_length": 63.361456226524126,
"alnum_prop": 0.5413280801116309,
"repo_name": "Nekel-Seyew/Complex-3D-Vector-Fields",
"id": "b8b5ff33a0078df38c3a1de4b62b93caa8... |
CoLisEU is a wireless network monitoring system based on collecting distributed information about the Quality of Experience (QoE) and Quality of Service (QoS). CoLisEU is composed of three entities with distinct functionalities: Agent, Gateway, and Management Application.
## Agent
A Mobile Device may present different... | {
"content_hash": "7cbf069d3add50df750ab158ec17e740",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 836,
"avg_line_length": 93.84615384615384,
"alnum_prop": 0.812568306010929,
"repo_name": "GT-CoLisEU/iOS",
"id": "271c23c8a817538c26cd2e0c3c05dcc829bb4aea",
"size": "7334",... |
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/home/bladestery/Sapphire/example_apps/AndroidStudioMinnie/sapphire/.externalNativeBuild/cmake/release/arm64-v8a/install")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
if(NOT D... | {
"content_hash": "f3c5a7190f0a407bd64df05c7868492e",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 150,
"avg_line_length": 32.67741935483871,
"alnum_prop": 0.71964461994077,
"repo_name": "bladestery/Sapphire",
"id": "a6fcc0b2c185eb1e2699d2e825bfb23319216d56",
"size": "11... |
SA.Donate = function () {
return this;
};
SA.Donate.prototype.init = function () {
}; | {
"content_hash": "f94ff1ec131b06fdcddf920a1b6e9f02",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 40,
"avg_line_length": 12.714285714285714,
"alnum_prop": 0.6179775280898876,
"repo_name": "SpaceAdvocates/SpaceAdvocatesWebsite",
"id": "01afa9ab94ab8cf557088e466caf98f0668169... |
import { ExtendedDescriptorLanguageBean } from 'app/entry/extendedDescriptorLanguage';
import { SourceFile, ToolDescriptor, Workflow } from 'app/shared/swagger';
import { Dockstore } from '../shared/dockstore.model';
const SERVICE_DOCUMENTATION_URL = Dockstore.DOCUMENTATION_URL + '/getting-started/getting-started-with... | {
"content_hash": "0a01c4cd0c8e83a1422c596c4071e9c5",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 118,
"avg_line_length": 38.44736842105263,
"alnum_prop": 0.7515400410677618,
"repo_name": "dockstore/dockstore-ui2",
"id": "7ee9214a8faa4b863d072a992b2d80b8b71bbbbb",
"size... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... | {
"content_hash": "981c0ef55748fd22f3f652f001f44658",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 102,
"avg_line_length": 47.135416666666664,
"alnum_prop": 0.6574585635359116,
"repo_name": "TamarLee/some-php-works",
"id": "e3e5d9d2a7c46b32dd48d8c4f05f39ccd17eb6a1",
"siz... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | {
"content_hash": "0beadaf24a7861d26978a6670761826a",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 140,
"avg_line_length": 43.883495145631066,
"alnum_prop": 0.6876106194690266,
"repo_name": "Teradata/presto",
"id": "1e0b28da17ee426bb8ec96ed6821d3431d16fa65",
"size": "45... |
<?php
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\Form\Type\Customer;
use Sylius\Bundle\CoreBundle\Form\Type\AddressChoiceType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* @author Jan Górals... | {
"content_hash": "98d6ac857677cc32b42637b0c0b57cef",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 76,
"avg_line_length": 21.652173913043477,
"alnum_prop": 0.643574297188755,
"repo_name": "TheMadeleine/Sylius",
"id": "f3e633e799567b9ea8595b55fa10f8316e62a576",
"size": "1... |
FROM fedora:20
MAINTAINER evansye@apache.org
RUN rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm; \
yum -y install hostname curl sudo unzip wget puppet
| {
"content_hash": "d2495c07a39a4dd390eb306b8e618c0c",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 76,
"avg_line_length": 35.8,
"alnum_prop": 0.770949720670391,
"repo_name": "shiroyp/bigtop",
"id": "90f79a94fc3adbe97b30fba09a5935832c43274c",
"size": "960",
"binary": fal... |
/**
* Created by nicholas.ball on 05/10/2016.
*/
//Taking 3 inputs and displaying them as an array
var f1 = document.getElementById("inputButton");
f1.addEventListener("click", function() {
// Get the 3 fruits inputted
var fru1 = document.getElementById("fru1").value;
var fru2 = document.getElementById("f... | {
"content_hash": "d3ce3174bfdbbe7472351e43ab0172cd",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 62,
"avg_line_length": 29.545454545454547,
"alnum_prop": 0.6492307692307693,
"repo_name": "nunchuck/JS_Bootcamp",
"id": "fb2016c0d792bad8606840624b112d63cffafe1f",
"size": ... |
// Copyright 2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | {
"content_hash": "854ecb693d5cb5fe7a717051df31d875",
"timestamp": "",
"source": "github",
"line_count": 1492,
"max_line_length": 100,
"avg_line_length": 34.75402144772118,
"alnum_prop": 0.6777042794052417,
"repo_name": "xindaya/bazel",
"id": "b3f75d95129a1363c7d0e086e75482c761353037",
"size": "5185... |
package com.jakewharton.u2020.ui.misc;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageView;
import com.jakewharton.u2020.R;
public class ForegroundImageView e... | {
"content_hash": "fa6568a74046ab91f24a543c4776816d",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 92,
"avg_line_length": 28.01904761904762,
"alnum_prop": 0.6920462270564242,
"repo_name": "yuke196/U2020Test",
"id": "8603469be8032f5eee82d7b19ff94727983a909e",
"size": "29... |
package org.pentaho.di.kitchen;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.security.Permission;
import static org.junit.Assert.assertFalse;
public class KitchenIT {
private final ByteArrayOutputStream outC... | {
"content_hash": "9c865ab53dcb8bc7b6084ac0ffe0ab42",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 79,
"avg_line_length": 29.31578947368421,
"alnum_prop": 0.6804308797127468,
"repo_name": "cjsonger/pentaho-kettle",
"id": "ce9aedbca7f9986e9bee6877c12aa418e000e363",
"size"... |
function Camera (xPosition) {
this.position = {
x: xPosition,
y: 0
};
}
Camera.prototype.moveRight = function (velocity) {
this.position.x += velocity;
};
export default Camera;
| {
"content_hash": "11be964c2597edb0b794610bc2c2639e",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 50,
"avg_line_length": 17.333333333333332,
"alnum_prop": 0.6105769230769231,
"repo_name": "sheldarr/endless-runners",
"id": "062f569f239a9bd3fe6e2240379366b2032347b0",
"siz... |
// Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved.
//
// MySQL Connector/NET is licensed under the terms of the GPLv2
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
// MySQL Connectors. There are special exceptions to the terms and
// conditions of the GPLv2 as it is ... | {
"content_hash": "dc1daa270b054a2f0f706a303e1cac14",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 86,
"avg_line_length": 38.357142857142854,
"alnum_prop": 0.7517070142768467,
"repo_name": "chenlianwd/MES",
"id": "38579aa0ce5a9c0903dadea52a5daf3adb3ee53e",
"size": "1614"... |
import { FirstAdvancedDirective, BasicComponent } from './first/first-directive';
import { StructuralAdvancedDirective } from './structural/structural-directive';
import { DirectivesHomeComponent } from './directives-home.component';
import { NgModule } from '@angular/core';
import { SharedModule } from '../../shar... | {
"content_hash": "4b00d30de8f0ac8741bf1f198a68b5c0",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 81,
"avg_line_length": 35.63157894736842,
"alnum_prop": 0.6853766617429837,
"repo_name": "hillinworks/echoisles",
"id": "98a61e5f46d9a5a49133cd22404dcb9adb73341e",
"size": ... |
AES-on-AES-NI-instructions
==========================
implementation of the AES on AES-NI instructions
| {
"content_hash": "1053a20110c5d6b759b4d9d385576a39",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 48,
"avg_line_length": 26,
"alnum_prop": 0.6057692307692307,
"repo_name": "KovalevDanil/AES-on-AES-NI-instructions",
"id": "0edd7e8dfa6e456700f8355b24cb9f5489ca9659",
"size"... |
import {parseJson} from './json';
/**
* A unique identifier for each localized string. Localized string IDs should:
*
* - Maintain alphabetical order, by component
* - Be prefixed with the name of the extension that uses the string
* (e.g. "AMP_STORY_"), or with "AMP_" if they are general
* - NOT be ... | {
"content_hash": "558a3e30bcccd9acd2751afd0a5b6acd",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 80,
"avg_line_length": 38.9,
"alnum_prop": 0.7232831435916269,
"repo_name": "techhtml/amphtml",
"id": "cb95a8ae409f662e5217dba35842462dae1de82b",
"size": "6073",
"binary... |
package tp.skt.onem2m.binder.mqtt_v1_1;
import tp.skt.onem2m.api.MQTTProcessor;
import tp.skt.onem2m.api.oneM2MResource;
import tp.skt.onem2m.net.mqtt.MQTTConfiguration;
public class Binder extends MQTTProcessor {
@Override
public <T extends oneM2MResource> String serialization(T request) {
return Co... | {
"content_hash": "f2755e335a95d9a67971126f25068504",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 101,
"avg_line_length": 30.043478260869566,
"alnum_prop": 0.7264833574529667,
"repo_name": "ThingPlug/thingplug-app-android-wis",
"id": "84705f806bb3f8570daab75e201f77b4d0603... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE761_Free_Pointer_Not_at_Start_of_Buffer__char_console_68b.c
Label Definition File: CWE761_Free_Pointer_Not_at_Start_of_Buffer.label.xml
Template File: source-sinks-68b.tmpl.c
*/
/*
* @description
* CWE: 761 Free Pointer not at Start of Buffer
* BadSource: cons... | {
"content_hash": "a0e5c03dacf2b7110d343a4d66100c96",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 118,
"avg_line_length": 30.432835820895523,
"alnum_prop": 0.6233447768513978,
"repo_name": "maurer/tiamat",
"id": "d06e36950c73995e1a43fba343f075dafb14d252",
"size": "2039"... |
import './imports';
import { AsyncIterableX } from 'ix/asynciterable/asynciterablex';
import { IterableX } from 'ix/iterable/iterablex';
declare module 'ix/iterable/concat' {
// @ts-ignore: static function overload augmentation
function concat<T>(
source: IterableX<T>,
...args: Array<Iterable<T>>
): Ite... | {
"content_hash": "466f03f49db8ff33de5aaaa341e92469",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 75,
"avg_line_length": 26.457142857142856,
"alnum_prop": 0.6889848812095032,
"repo_name": "marinels/webrx-react",
"id": "8cd6e8215e34b4407b36f82e4b6b196dfe6e5414",
"size": ... |
<?php
/**
* This class represents the entire template document
*
* @package Liquid
*/
class LiquidDocument extends LiquidBlock {
/**
* Constructor
*
* @param array $tokens
* @param LiquidFileSystem $file_system
* @return LiquidDocument
*/
function LiquidDocument(& $tokens, & $file_system) {
$thi... | {
"content_hash": "e0cee9cbea7af0e30d06ab7d02496c8e",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 82,
"avg_line_length": 14.282608695652174,
"alnum_prop": 0.6286149162861492,
"repo_name": "manojexecutive/php-liquid",
"id": "f1202a08816944d7eb39558c2c160218765bfc6a",
"si... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 命名空间用于查找 -->
<mapper namespace="cn.purchasenear.v1.cart.dao.PurchaseCartDao">
<resultMap id="BaseResultMap" type="cn.purchasenear.v... | {
"content_hash": "0e15c75b025fb5889985c22dfa197523",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 142,
"avg_line_length": 43.92307692307692,
"alnum_prop": 0.6348511383537653,
"repo_name": "runfriends/PurchaseNear",
"id": "1b08b0d508c7150b1d2eeac64d8bafe9c6506a65",
"size... |
package org.elasticsearch.painless.node;
import org.elasticsearch.painless.Definition;
import org.elasticsearch.painless.Globals;
import org.elasticsearch.painless.Locals;
import org.elasticsearch.painless.Location;
import org.elasticsearch.painless.MethodWriter;
import java.util.Objects;
import java.util.Set;
/**... | {
"content_hash": "2a5b3fc31d94c01211bd252c41d9b3c4",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 90,
"avg_line_length": 25.846153846153847,
"alnum_prop": 0.6732142857142858,
"repo_name": "qwerty4030/elasticsearch",
"id": "eaf8045bf1c65fa757e279a25d5234f659946f4c",
"siz... |
IFS.application.progressiveSelect = (function () {
'use strict'
var s
var index = 0
return {
settings: {
selectEl: 'select.prog-menu',
dropdownContainer: '.assign-container .assign-button'
},
init: function () {
s = this.settings
IFS.application.progressiveSelect.initDomChang... | {
"content_hash": "85f2ee47ffcde71bee4ff4863d008dea",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 262,
"avg_line_length": 37.23863636363637,
"alnum_prop": 0.5944461397619775,
"repo_name": "InnovateUKGitHub/innovation-funding-service",
"id": "203827f2b4566f34ac91232a4eb7d0... |
using System;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using TestAspNetSpa.Models;
namespace TestAspNetSpa.Controllers
{
[Authorize]
public class ManageControll... | {
"content_hash": "c140ebd4cccdc62ccf31f4db18dc6cab",
"timestamp": "",
"source": "github",
"line_count": 373,
"max_line_length": 175,
"avg_line_length": 36.85790884718499,
"alnum_prop": 0.5691736979924352,
"repo_name": "Vavro/Tests",
"id": "b7298e0d2969cddb756b1bfe87ba70a6107f649d",
"size": "13750",... |
namespace Common.Collections.Generic
{
using System;
using System.Collections.Generic;
public sealed class Heap<T> where T : IComparable<T>
{
internal delegate bool IndexComparor(int childIx, int parentIx);
internal IndexComparor IsHigherPriorityThanParent;
#region... | {
"content_hash": "9a58a2975027adf86a1a70c5aee877b9",
"timestamp": "",
"source": "github",
"line_count": 248,
"max_line_length": 137,
"avg_line_length": 31.802419354838708,
"alnum_prop": 0.5102066692024851,
"repo_name": "ArsenShnurkov/Common",
"id": "f5dcab3267adef7a45c2b58a18d275893e3f1e0a",
"size"... |
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace EC2
{
namespace Model
{
enum class EbsEncryptionSupport
{
NOT_SET,
unsupported,
supported
};
namespace EbsEncryptionSupportMapper
{
AWS_EC2_API EbsEncryptionSupport GetEbsEncry... | {
"content_hash": "c2c6fe2ff49e84030a2e4eddb4f5bb63",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 89,
"avg_line_length": 19.714285714285715,
"alnum_prop": 0.7663043478260869,
"repo_name": "jt70471/aws-sdk-cpp",
"id": "39d601bdd0f44075329be7f443f07c9c77d95313",
"size": "... |
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var autoprefixer = require('autoprefixer');
var env = process.env.NODE_ENV;
module.exports = {
entry: './src/index',
output: {
library: 'reactWordcloud',
libraryTarget: 'umd',
},... | {
"content_hash": "8279e6a17afed478aed252d2f75b43c0",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 87,
"avg_line_length": 22.646153846153847,
"alnum_prop": 0.5672554347826086,
"repo_name": "Purii/react-wordcloud-demo",
"id": "5c4e732ab51aafbf2bb5f054a4368b02954819cb",
"s... |
#include <aws/budgets/model/HistoricalOptions.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Budgets
{
namespace Model
{
HistoricalOptions::HistoricalOptions() :
m_budgetAdjustmentPeriod(0),
m_... | {
"content_hash": "57c50811fe4d17385bc882d02dc40ba3",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 82,
"avg_line_length": 21.186666666666667,
"alnum_prop": 0.764002517306482,
"repo_name": "aws/aws-sdk-cpp",
"id": "a44782f47399898d0350f2c78353a5d1d51b15b0",
"size": "1708"... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CONSENSUS_PARAMS_H
#define BITCOIN_CONSENSUS_PARAMS_H
#include "... | {
"content_hash": "5052c30b24264062e96e69d91f9aa907",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 104,
"avg_line_length": 32.65217391304348,
"alnum_prop": 0.7323568575233023,
"repo_name": "cannabiscoindev/cannabiscoin420",
"id": "91dcc8defb9a73354b787fca4bc1e7a4bb89d3d1",... |
package com.organic.maynard.util;
import java.util.*;
import java.io.*;
public class CommandQueue extends Queue {
protected boolean fileOpen = false;
protected boolean eof = false;
protected FileInputStream theStream = null;
protected BufferedReader buffer = null;
// The Constructors
public CommandQueue()... | {
"content_hash": "2cc0518f001d8491cb9616c230fc6515",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 77,
"avg_line_length": 21.08108108108108,
"alnum_prop": 0.6455128205128206,
"repo_name": "hashrock/JavaOutlineEditor",
"id": "aa147f8c534eaedb3264c04597440ed48408aa6b",
"si... |
<?xml version="1.0" encoding="UTF-8"?>
<sem:triples uri="http://www.lds.org/vrl/locations/general-locations/service-stations" xmlns:sem="http://marklogic.com/semantics">
<sem:triple>
<sem:subject>http://www.lds.org/vrl/locations/general-locations/service-stations</sem:subject>
<sem:predicate>http://www.w3.org... | {
"content_hash": "114f586c9c4aede9c4b3c0430a7e2fb4",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 130,
"avg_line_length": 58.388888888888886,
"alnum_prop": 0.7231208372978116,
"repo_name": "freshie/ml-taxonomies",
"id": "ea429d8f6e7d0a54650867a9b28a4447c2ea0b85",
"size"... |
import random
import numpy as np
from numba.core import types
from .templates import (ConcreteTemplate, AbstractTemplate, AttributeTemplate,
CallableTemplate, Registry, signature)
from numba.np.numpy_support import numpy_version
from numba.core.overload_glue import glue_typing
registry = Reg... | {
"content_hash": "b0e288d4bb0f9f0d62c6f88cf2dc14a7",
"timestamp": "",
"source": "github",
"line_count": 300,
"max_line_length": 79,
"avg_line_length": 36.43666666666667,
"alnum_prop": 0.6743207391821425,
"repo_name": "IntelLabs/numba",
"id": "0dc9cb4394dd8e896129677cc8d4c8b4cf13c053",
"size": "1093... |
#ifndef _DILITHIUM_MP_INT_HPP
#define _DILITHIUM_MP_INT_HPP
#pragma once
#include <Dilithium/CXX17/string_view.hpp>
#include <Dilithium/ArrayRef.hpp>
#include <boost/assert.hpp>
namespace Dilithium
{
// Multi-precision integer. Must <= 64 bits.
class MPInt
{
static uint32_t constexpr MPINT_BITS_PER_WORD = si... | {
"content_hash": "092912257534024e1f9fcd328a275df3",
"timestamp": "",
"source": "github",
"line_count": 267,
"max_line_length": 113,
"avg_line_length": 21.700374531835205,
"alnum_prop": 0.6480842250604073,
"repo_name": "gongminmin/Dilithium",
"id": "52c2fa455e776538e2f134c2b83851071ecefdcf",
"size"... |
package converters
import (
"github.com/icambridge/gobucket"
"github.com/revel/revel"
"sitrep/app/entities"
"fmt"
"time"
)
func GobucketToSitRepMultiPrs(prs []*gobucket.PullRequest) []entities.PullRequest {
output := make([]entities.PullRequest,0)
for _, pr := range prs {
newPr := GobucketToSitRepSinglePr(... | {
"content_hash": "67860d5c53c492c08e7721f476861ba4",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 108,
"avg_line_length": 22.3375,
"alnum_prop": 0.7134862898712927,
"repo_name": "icambridge-old/sitrep",
"id": "9cf62025453045ad4b1f1051ec0b56b706c5fb71",
"size": "1787",
... |
<!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>
<title>{Saivi:$tpl.wxname}</title>
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maxi... | {
"content_hash": "2672e64917397d1a3efe4a4ca6d51425",
"timestamp": "",
"source": "github",
"line_count": 320,
"max_line_length": 382,
"avg_line_length": 18.1375,
"alnum_prop": 0.5739145416953825,
"repo_name": "royalwang/saivi",
"id": "b94a39cb16abd640ba558802ec364cfe6eca3fdf",
"size": "5804",
"bin... |
using System;
using System.Collections.Generic;
using System.Linq;
class ClosestTwoPoints
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
var points = new List<Point>();
for (int i = 0; i < n; i++)
{
var currentPoint = ReadPoint();
points... | {
"content_hash": "0c1febe5cf2f0a4501577af60f2057b2",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 73,
"avg_line_length": 23.5609756097561,
"alnum_prop": 0.5165631469979296,
"repo_name": "Peter-Georgiev/Programming.Fundamentals",
"id": "7a620514acf44a3eaa9306728dd8d5ac1ea7... |
module Azure::SecurityInsights::Mgmt::V2020_01_01
module Models
#
# Represents scheduled alert rule.
#
class ScheduledAlertRule < AlertRule
include MsRestAzure
def initialize
@kind = "Scheduled"
end
attr_accessor :kind
# @return [String] The query that create... | {
"content_hash": "035eda2e523150d7b8a15b181105a7a5",
"timestamp": "",
"source": "github",
"line_count": 255,
"max_line_length": 79,
"avg_line_length": 31.462745098039214,
"alnum_prop": 0.45556524990651875,
"repo_name": "Azure/azure-sdk-for-ruby",
"id": "177c29d9f974b7dead14a9a9e2c5b020adc4893d",
"s... |
package com.facebook.buck.cxx;
import com.facebook.buck.cxx.toolchain.CxxBuckConfig;
import com.facebook.buck.cxx.toolchain.CxxPlatform;
import com.facebook.buck.cxx.toolchain.LinkerMapMode;
import com.facebook.buck.cxx.toolchain.linker.HasImportLibrary;
import com.facebook.buck.cxx.toolchain.linker.HasLinkerMap;
im... | {
"content_hash": "6d6f5de789dce278f25e1141d0f80b7b",
"timestamp": "",
"source": "github",
"line_count": 407,
"max_line_length": 100,
"avg_line_length": 39.09090909090909,
"alnum_prop": 0.6892520427404148,
"repo_name": "clonetwin26/buck",
"id": "62a00f2e8440f16d2d2ba19888f7add29e37e6f5",
"size": "16... |
FROM balenalib/orange-pi-lite-debian:stretch-build
ENV NODE_VERSION 14.15.4
ENV YARN_VERSION 1.22.4
RUN for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --batch --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --batch --key... | {
"content_hash": "f6208395575ceb3478488cd40a21c838",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 695,
"avg_line_length": 67.60975609756098,
"alnum_prop": 0.7095959595959596,
"repo_name": "nghiant2710/base-images",
"id": "1a9d55bbf436062169f0a570b74fa7c89c56b619",
"size... |
Applications using the `heroku/ruby` buildpack that do not have a version of Node installed by another buildpack (such as the `heroku/nodejs` buildpack) will now receive:
- Node version 16.13.1 (was previously 12.16.2)
- Yarn version 1.22.17 (was previously 1.22.4)
These versions and instructions on how to specify a ... | {
"content_hash": "bc7ddb5597c9df53ae8667fb8b7f432d",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 239,
"avg_line_length": 84.66666666666667,
"alnum_prop": 0.7893700787401575,
"repo_name": "brightbytes/heroku-buildpack-ruby-without-assets-precompile",
"id": "c769c5d7f87d47a... |
<!--
~ Copyright 2005-2006 The Apache Software Foundation.
~
~ 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 req... | {
"content_hash": "d6a0ddbb00f9f6955dbeb7474e17753d",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 76,
"avg_line_length": 23.8125,
"alnum_prop": 0.6152230971128609,
"repo_name": "ctrimble/jgit-flow",
"id": "441627072ceaa28928f7612070ab627a8d1f93cf",
"size": "1905",
"bi... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
// http://answers.unity3d.com/questions/575521/load-unityenginesprite-from-code.html
// http://answers.unity3d.com/questions/14165/show-and-hide-a-prefab-or-gameobject.html
public class MonthDayScript : MonoBehaviour {
publ... | {
"content_hash": "764ac822bd688e6fc333e927b943b663",
"timestamp": "",
"source": "github",
"line_count": 133,
"max_line_length": 94,
"avg_line_length": 28.789473684210527,
"alnum_prop": 0.6709323583180987,
"repo_name": "ahfung/1Calendar",
"id": "5b8b506c11edd9c7d3a71d0c85293c03a68108b1",
"size": "38... |
/**
* Autogenerated by Thrift Compiler (0.7.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
package backtype.storm.generated;
import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import... | {
"content_hash": "cee4ab6e5beae1aeecf36f06ed5cd24b",
"timestamp": "",
"source": "github",
"line_count": 426,
"max_line_length": 187,
"avg_line_length": 29.3943661971831,
"alnum_prop": 0.6628334131927807,
"repo_name": "witcxc/incubator-storm",
"id": "02ed3ed15ab7c84fa6b3d1500ff84b9caa28eea7",
"size"... |
/*
// load the things we need
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
// define the schema for our user model
var userSchema = mongoose.Schema({
local : {
email : String,
password : String
},
facebook : {
id ... | {
"content_hash": "795724f09c7904c2e65171fd097c2b69",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 66,
"avg_line_length": 25.841269841269842,
"alnum_prop": 0.47665847665847666,
"repo_name": "zablon/BE-for-Gport",
"id": "b48ce7e51439f3b01fc8a69976749d41bcbe77f2",
"size": ... |
package me.anoxic.bulber2;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super... | {
"content_hash": "5a0df1d650980698512a6ddf8bc953a7",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 93,
"avg_line_length": 26.76923076923077,
"alnum_prop": 0.7471264367816092,
"repo_name": "AnoXDD/Journal-Bulber-Android",
"id": "e6be7b2c4eac30f4ed924212327f29111b723402",
... |
;*************************************************************************
[BITS 16]
ORG 0
jmp START
OEM_ID db "QUASI-OS"
BytesPerSector dw 0x0200
SectorsPerCluster db 0x01
ReservedSectors dw 0x0001
TotalFATs db 0x02
MaxRootEntries dw 0x00E0
TotalSector... | {
"content_hash": "87f3a3b7dbcc5d56159bd0fc64257923",
"timestamp": "",
"source": "github",
"line_count": 238,
"max_line_length": 79,
"avg_line_length": 40.60504201680672,
"alnum_prop": 0.4458816225165563,
"repo_name": "asmblah/jemul8",
"id": "43ec81aa5526a38fd578ee13e61c21a4a66be287",
"size": "9664"... |
package com.yeyu.dearinformaton.View;
import com.yeyu.dearinformaton.Constant.LoadNewsType;
import com.yeyu.dearinformaton.View.BaseView.BaseView;
import com.yeyu.dearinformaton.entity.PhotoGirl;
import java.util.List;
/**
* Created by gaoyehua on 2016/9/11.
*/
public interface PhotoView extends BaseView {
voi... | {
"content_hash": "99c980ee5363fc74a78039b6d52175c6",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 86,
"avg_line_length": 28.714285714285715,
"alnum_prop": 0.7960199004975125,
"repo_name": "gaoyehua/DearInformation",
"id": "55f931bf19a3647600af71a4f663476c11ea667e",
"siz... |
package org.hawkular.agent.monitor.scheduler.config;
import org.hawkular.agent.monitor.scheduler.ModelControllerClientFactory;
import org.hawkular.agent.monitor.service.ServerIdentifiers;
/**
* Represent the endpoint to our local Wildfly instance (the one we are running inside of).
*/
public class LocalDMREndpoin... | {
"content_hash": "8f56fa4567e9872cba7940fb3a7639a3",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 105,
"avg_line_length": 37.3859649122807,
"alnum_prop": 0.7137494134209291,
"repo_name": "jsanda/hawkular-agent",
"id": "68cf45a9cc0cd5684a1c41dc9db4611eb794ecdd",
"size": ... |
import { Component, ElementRef, Output, EventEmitter } from '@angular/core';
import { MapService } from './map.service';
import MapView from 'esri/views/MapView';
import Point from 'esri/geometry/Point';
import SpatialReference from 'esri/geometry/SpatialReference';
@Component({
selector: 'esri-map',
template: '... | {
"content_hash": "1a9cebdd1238fc0ea8091af8e69af7b2",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 25.72222222222222,
"alnum_prop": 0.6598272138228942,
"repo_name": "jwerts/jsapi4-angular2",
"id": "3d6c8b8761166b44a36286f81c60c0edf69b8582",
"size":... |
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fluent_contents', '0001_initial'),
('glamkit_sponsors', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='BeginSpo... | {
"content_hash": "9744434cfd59ea5f82ab4158d2eb09a4",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 176,
"avg_line_length": 46.58490566037736,
"alnum_prop": 0.5880923450789793,
"repo_name": "ic-labs/django-icekit",
"id": "333c987974f373177403894e08794d0f66cb96dd",
"size":... |
<Alloy>
<Window id="window">
<View class="content">
<TextField id="textSearch"/>
<View class="tableWrapper">
<View class="tableHeader">
<Label class="tableTitle id" textid="store_id_str" />
<View class="verticalLine" />
<Label class="tableTitle name" textid="store_name_str" />
<View ... | {
"content_hash": "445db8bfd13216ec9efa76529970ceeb",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 65,
"avg_line_length": 31.157894736842106,
"alnum_prop": 0.6266891891891891,
"repo_name": "espiralpy/merrick",
"id": "102db9c7fdb973472a4df98c5a43f49c1c5cc799",
"size": "59... |
import should from 'should';
import * as bs58 from 'bs58';
import { getBuilderFactory } from '../getBuilderFactory';
import { KeyPair } from '../../../src';
import { Ed25519BIP32, Eddsa, TransactionType } from '@bitgo/sdk-core';
import * as testData from '../../resources/sol';
import BigNumber from 'bignumber.js';
de... | {
"content_hash": "a02e086cba4e59b94814fe982bbe90eb",
"timestamp": "",
"source": "github",
"line_count": 532,
"max_line_length": 120,
"avg_line_length": 44.067669172932334,
"alnum_prop": 0.6804726155946085,
"repo_name": "BitGo/BitGoJS",
"id": "191161c35a4b6d5526df57a2dec51555ac8e112b",
"size": "2344... |
/*
* MinIO Cloud Storage, (C) 2015, 2016, 2017, 2018 MinIO, Inc.
*
* 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 require... | {
"content_hash": "d1cd4b2577ca1c0ab2467aa25c96258c",
"timestamp": "",
"source": "github",
"line_count": 181,
"max_line_length": 110,
"avg_line_length": 31.4585635359116,
"alnum_prop": 0.7330523357920619,
"repo_name": "aead/minio",
"id": "9c3f792904cc6e4e4e3fb835d4148b8af995b9e2",
"size": "5694",
... |
using System;
using System.Drawing;
namespace TimeBeam.Helper {
/// <summary>
/// Contains helper methods to manipulate or generate rectangles.
/// </summary>
internal static class RectangleHelper {
/// <summary>
/// The edges of a rectangle.
/// </summary>
[Flags]
internal enum Edge {... | {
"content_hash": "aec5756266df16283f157037d2cf493a",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 163,
"avg_line_length": 31.393103448275863,
"alnum_prop": 0.5568980667838312,
"repo_name": "fire-eggs/YAGP",
"id": "1c0095ac5d7ea8091b365a9c4276bfe2ae146e0f",
"size": "455... |
<?php
use \Metrol\DBSql;
use \Metrol\DBSql\MySQL;
/**
* Verification that a complex WITH statement can be built with a variety of
* components.
*
* These tests will also exercise Union, Insert, Update, and Select statements
* and their ability to bind. The focus here is on WITH however.
*
*/
class MySQLWithT... | {
"content_hash": "b889b12670b47195dcbf5b662c80843e",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 78,
"avg_line_length": 19.309859154929576,
"alnum_prop": 0.5390226112326769,
"repo_name": "Metrol/dbsql",
"id": "48d0a36e96c4416b3651a8935a6eaaadb27092e9",
"size": "1529",
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_20) on Mon Nov 01 20:33:53 CET 2010 -->
<TITLE>
Uses of Class play.db.Model.Manager (Play! API)
</TITLE>
<META NAME="date" CONTENT="2010-11-01">
<L... | {
"content_hash": "3953dc4696391e4c38e272a67c348afb",
"timestamp": "",
"source": "github",
"line_count": 144,
"max_line_length": 227,
"avg_line_length": 40.854166666666664,
"alnum_prop": 0.6195818459969403,
"repo_name": "ericlink/adms-server",
"id": "96e4ffea3af0242a02d0ad659d16f92729b3ed7d",
"size"... |
/*global define:false*/
define([
'backbone',
'underscore'
],
function (Backbone, _) {
'use strict';
/**
* @class A router with an optionally overridable `.beforeRouting()`
* @namespace masseuse/MasseuseRouter
* @extends Backbone.Router
*/
return B... | {
"content_hash": "1d242ce67b047a86fd5f2865c8216942",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 121,
"avg_line_length": 29.964912280701753,
"alnum_prop": 0.47014051522248246,
"repo_name": "Duder-onomy/pdxrealsense",
"id": "3807707df8cafb8a75b35b29886c0c5659f37bcd",
"s... |
#videoBar {
top: 100px;
left: 100px;
width: 80px;
display: flex;
cursor: pointer;
position: fixed;
min-height: 80px;
border-radius: 40px;
background-color: black;
flex-direction: column;
}
#videoBar.videoBarOpened {
border-radius: 20px;
}
#videoBar.videoBarOpened > div:firs... | {
"content_hash": "56723fc082519039afedf86a2062c98e",
"timestamp": "",
"source": "github",
"line_count": 226,
"max_line_length": 628,
"avg_line_length": 28.451327433628318,
"alnum_prop": 0.7111975116640746,
"repo_name": "A7plusplus/A7plusplus",
"id": "3791b46314d95159b1ebaee0e4702c597725e25b",
"size... |
# Load local config files in /local
begin
local_file_supported = Dir[File.join(PROJECT_ROOT, 'local/*.sample')].map { |path| File.basename(path).sub(".sample","") }
local_file_supported.each do |file|
require "local/#{file}"
end
rescue LoadError
puts <<-EOS
This Gem supports local developer extensions in ... | {
"content_hash": "d841c400e1434a3ff9229ebce19aa748",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 124,
"avg_line_length": 28.208333333333332,
"alnum_prop": 0.672082717872969,
"repo_name": "agrimm/eol",
"id": "052c47ce1a380ab7f1fc53b098ba01ca5ece8580",
"size": "677",
"... |
Formula 1 Feeder, a listing of formula 1 drivers using angular-seed as startup.
| {
"content_hash": "23a0c8f88132645f43c5ecbdeaaf6aad",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 79,
"avg_line_length": 80,
"alnum_prop": 0.8,
"repo_name": "wnovido/F1Feeder",
"id": "0fd7e8e2ac47bd4286a6ad7cb8bbfc5fb119b107",
"size": "80",
"binary": false,
"copies":... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* @ @ *
* # # # # (c) 2016 CAB *
* # # # # # # ... | {
"content_hash": "734b9fe49ab2bdc2ae086660c05dc13e",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 110,
"avg_line_length": 43.24087591240876,
"alnum_prop": 0.549122214719784,
"repo_name": "AlexCAB/ProbabilisticPlaying",
"id": "52ef79b539a36eab4f11c574e4d9cfe0842b1427",
... |
var path = require('path')
var appName = require('./package.json')['name']
module.exports = require('rc')(appName, {
torrentsDir: path.join(__dirname, 'torrents'),
name: appName,
port: 3000,
swarmPort: 3001,
db: 'torrents.db',
shareDb: 'share.db',
data: '.',
idLength: 15
})
| {
"content_hash": "a0e779b8745a05bd94a0c4692b5e2ab5",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 48,
"avg_line_length": 19.6,
"alnum_prop": 0.6292517006802721,
"repo_name": "andrewosh/container-share",
"id": "1a2cdc5b74e19c6ba15c4d0666c7f8448a60357c",
"size": "294",
... |
package backoff
import (
"context"
"log"
)
func ExampleRetry() {
// An operation that may fail.
operation := func() error {
return nil // or an error
}
err := Retry(operation, NewExponentialBackOff())
if err != nil {
// Handle error.
return
}
// Operation is successful.
}
func ExampleRetryContext() ... | {
"content_hash": "ad38c0882d6898e0a02b3fb7092182bf",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 79,
"avg_line_length": 16.555555555555557,
"alnum_prop": 0.6526845637583892,
"repo_name": "upmc-enterprises/registry-creds",
"id": "f9f686bb5da5732cdd5fe7c0f778d7114b106b86",... |
(function () {
var i18n;
if (typeof require !== 'undefined') {
i18n = require('i18next');
} else {
i18n = window.i18n;
}
var ko, $;
var koBindingHandler = {
init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
ko.utils.domNodeDisposal.addDisposeCallbac... | {
"content_hash": "23f41a812431eec52cd92d0211671870",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 154,
"avg_line_length": 30.09433962264151,
"alnum_prop": 0.5670846394984326,
"repo_name": "leMaik/i18next-ko",
"id": "bf96f9064b9e5b9cd6328da3a8cefa04d0c89019",
"size": "3... |
<?php
namespace frontend\components;
use Yii;
use yii\web\Controller;
class CController extends Controller
{
public $layout = '//layoutZone';
}
| {
"content_hash": "f6b6af7dfa8088c0ed44742499fac908",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 37,
"avg_line_length": 13.818181818181818,
"alnum_prop": 0.7236842105263158,
"repo_name": "tuanquynh0508/yiishop",
"id": "42ddef966d9905ea4bdece117b59353733ce4f16",
"size":... |
"""Embedding functions."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from six.moves import xrange # pylint: disable=redefined-builtin
from tensorflow.contrib.framework.python.framework import tensor_util as contrib_tensor_util
from tensorflow.contrib... | {
"content_hash": "65f7e3a0168095153dd05b6849a8a1fa",
"timestamp": "",
"source": "github",
"line_count": 929,
"max_line_length": 92,
"avg_line_length": 45.02906350914962,
"alnum_prop": 0.6384825014343086,
"repo_name": "ghchinoy/tensorflow",
"id": "14bbe5f9b30ef93149aa1fb317bd07d7dc2e6308",
"size": "... |
#include <linux/ceph/ceph_debug.h>
#include <linux/sort.h>
#include <linux/slab.h>
#include "super.h"
#include "mds_client.h"
#include <linux/ceph/decode.h>
/*
* Snapshots in ceph are driven in large part by cooperation from the
* client. In contrast to local file systems or file servers that
* implement snapsh... | {
"content_hash": "2215ebce372e9dad60615fab80849c43",
"timestamp": "",
"source": "github",
"line_count": 1003,
"max_line_length": 80,
"avg_line_length": 28.120638085742772,
"alnum_prop": 0.6572948058854813,
"repo_name": "KristFoundation/Programs",
"id": "4aa7122a8d38c18dd4fe7443fb64f46765b83280",
"s... |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Future Sight', function () {
afterEach(function () {
battle.destroy();
});
it('should damage in two turns, ignoring Protect, affected by Dark immunities', function () {
battle = common.crea... | {
"content_hash": "e03c3ad88522d7ecfee9001ec73fd4c3",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 131,
"avg_line_length": 40.11009174311926,
"alnum_prop": 0.6715462031107045,
"repo_name": "sirDonovan/Pokemon-Showdown",
"id": "304decd27b96802e3a04f6f053a8613611792efb",
... |
package action;
import java.awt.Color;
import javax.swing.JColorChooser;
import javax.swing.JComponent;
import controller.Controller;
public class ModifyBGColor extends ActionDisplayModify {
Color color = null;
public ModifyBGColor (JComponent target, Controller c) {
super(target, c);
}
@O... | {
"content_hash": "bd79334828ee471d5529a7606921b210",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 78,
"avg_line_length": 20.676470588235293,
"alnum_prop": 0.6714082503556188,
"repo_name": "Jiaran/Slogo",
"id": "7f8b7d0ffa67c7b781f49c515a89302d01e93b21",
"size": "703",
... |
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| Here we will load the environment and create the application instance
| that serves as the central piece of this framework. We'll... | {
"content_hash": "1e73acbc051aa135a8bc3ecd73d2f0a2",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 75,
"avg_line_length": 26.24,
"alnum_prop": 0.5457317073170732,
"repo_name": "HelloWorldDev/api-service",
"id": "4f85b6b3b520395af8a6ef944a97932aee4fe4b3",
"size": "656",
... |
<header class="panel-cover {% if page.layout == 'post' or page.layout == 'page' %}panel-cover--collapsed{% endif %}" style="background-image: url('/assets/images/background-cover.jpg')">
<div class="panel-main">
<div class="panel-main__inner panel-inverted">
<div class="panel-main__content">
<a href... | {
"content_hash": "3b8ea465d0c5dcfd586b79ae25af8f2f",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 190,
"avg_line_length": 47.372093023255815,
"alnum_prop": 0.5557191948944527,
"repo_name": "wzhonggo/wzhonggo.github.io",
"id": "ae0f225ce6202a71d84d8d79ba2649bf86219e2c",
... |
package bin
import "strings"
func isExecutable(path string) bool {
if len(path) < 5 {
return false
}
ext := path[len(path)-4:]
return strings.ToLower(ext) == ".exe"
}
| {
"content_hash": "7533613cd6ef02cb36537afa6f11f94a",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 38,
"avg_line_length": 15.909090909090908,
"alnum_prop": 0.6571428571428571,
"repo_name": "rjeczalik/bin",
"id": "bb45f4e995380fabb32e350cecd2d7d71eaf85c6",
"size": "194",
... |
package org.apache.jmeter.protocol.http.parser;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* BaseParser is the base class for {@link LinkExtractorParser}
* It is advised to make subclasses reusable across ... | {
"content_hash": "492c8b6136b82f42389b1bf82b3f997e",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 127,
"avg_line_length": 35.24096385542169,
"alnum_prop": 0.6386324786324786,
"repo_name": "benbenw/jmeter",
"id": "4726b51328c00e090742da87b3634129878605eb",
"size": "3722"... |
module Strut
class ScenarioBuilder
def initialize(document_builder, command_factory)
@document_builder = document_builder
@command_factory = command_factory
end
def extract_scenarios_for_interaction(scenario_number, interaction, fixture, node)
instance = "instance-#{scenario_number}"
... | {
"content_hash": "6df718ebd1fc945d0a52a67f54c52674",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 100,
"avg_line_length": 40.07258064516129,
"alnum_prop": 0.6836385590662105,
"repo_name": "dcutting/strut",
"id": "cfa43bd6f2b3cf23c8fbe11d1091fc616a740e56",
"size": "4969... |
module Control.Concurrent.TimedRepeating (
timedRepeating
, defaultTrSettings
, trSettingsPeriodicity
, TrSettings()
) where
import Data.IORef (IORef, newIORef, writeIORef)
import Control.Monad (forever)
import Control.Concurrent (forkIO, threadDelay)
data TrSettings = TrSettings
{ -- | How ... | {
"content_hash": "409fdf75b24d53e8ac0993eafcf16b5d",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 75,
"avg_line_length": 38.5,
"alnum_prop": 0.6664388243335612,
"repo_name": "Tarrasch/timed-repeating",
"id": "7331d2cdf3d1881a8cff1183d64550e4fa8abd63",
"size": "1560",
... |
package org.fastnate.data.properties;
import java.text.Format;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.fastnate.util.ClassUtil;
import lombok.Getter;
/**
* Converts a string from an import f... | {
"content_hash": "b0b28d799a8acac85e9cb496b9fd5fd2",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 113,
"avg_line_length": 28.133333333333333,
"alnum_prop": 0.6971563981042654,
"repo_name": "liefke/org.fastnate",
"id": "be6c3c87b453ba9c12ff12f04c0f8bdd90e2bd29",
"size": ... |
<?php
namespace Magento\Theme\Block\Adminhtml\System\Design\Theme\Edit\Form\Element;
/**
* Image form element that generates correct thumbnail image URL for theme preview image
*
* @method \Magento\Theme\Model\Theme getTheme()
*/
class Image extends \Magento\Framework\Data\Form\Element\Image
{
/**
* Get... | {
"content_hash": "5e9f8f55304df7dc32680a541a5815ea",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 99,
"avg_line_length": 23.772727272727273,
"alnum_prop": 0.6692160611854685,
"repo_name": "j-froehlich/magento2_wk",
"id": "6f62ae5532c3d39a16c7474b67ee2300f82543b3",
"size... |
package org.hisp.dhis.trackedentity.action.dataentryform;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import org.hisp.dhis.common.comparator.IdentifiableObjectNameComparator;
import org.hisp.dhis.dataelement.DataElement;
import org.hisp.dhis.program.ProgramStage;
import or... | {
"content_hash": "33a8a8774774242381d68648ef09515f",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 104,
"avg_line_length": 27.956521739130434,
"alnum_prop": 0.5555987558320373,
"repo_name": "mortenoh/dhis2-core",
"id": "7c410b86d7557c1fbce1d0f53e165f803bc45c32",
"size": ... |
/*
* File: require.js
* ----------------
* This is a stub version of require.js that implements the define
* mechanics without a browser.
*/
var moduleTable = { };
function define(a1, a2) {
var dependencies = [ ];
var value;
if (a1 instanceof Array) {
dependencies = a1;
value = a2;
} else... | {
"content_hash": "587d654f812d09d45ba0c74f8e62dc20",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 66,
"avg_line_length": 21.571428571428573,
"alnum_prop": 0.552317880794702,
"repo_name": "chrispiech/cs106a-winter-2017",
"id": "11ef14963238332acc86bc2e327d333c48c68ef1",
... |
require 'test_helper'
require 'hanami/action/request'
describe Hanami::Action::Request do
def build_request(attributes = {})
url = 'http://example.com/foo?q=bar'
env = Rack::MockRequest.env_for(url, attributes)
Hanami::Action::Request.new(env)
end
describe '#body' do
it 'exposes the raw body of ... | {
"content_hash": "10921d842619eef12789bd067e0a0a98",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 79,
"avg_line_length": 24.833333333333332,
"alnum_prop": 0.6294343240651965,
"repo_name": "vyper/controller",
"id": "82106b552d6cdc1011355523d1ee8be1b354cd05",
"size": "41... |
package testing
// helper for testing plugins
// a fake host is created here that can be used by plugins for testing
import (
"k8s.io/kubernetes/pkg/api"
clientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
containertest "k8s.io/k... | {
"content_hash": "1aad712e37975ab87051cb6d15e2b55d",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 102,
"avg_line_length": 24.346938775510203,
"alnum_prop": 0.7753562447611064,
"repo_name": "bryk/kubernetes",
"id": "a650be1c2e19bb7abf9b72e511d8b5048fd23fa1",
"size": "176... |
<template name="createBug">
<div class="create-bug">
<div class="container">
<div class="row">
<div class="col-xs-12">
{{#autoForm collection="Bugs" id="createBug" type="insert"}}
{{> afQuickField name='name' autofocus=true}}
{{> afFieldInput name='companyId' value=... | {
"content_hash": "a5e22a4b63a4b82822d3faaf56c7dbea",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 80,
"avg_line_length": 30.857142857142858,
"alnum_prop": 0.5416666666666666,
"repo_name": "dazmiller/socialite",
"id": "6adccf364bdb1f9d8fe566240c866060af318d44",
"size": "... |
Input::
//// [/user/username/projects/myproject/Project/file1.ts]
export const x = 10;
//// [/a/lib/lib.d.ts]
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; ... | {
"content_hash": "baa0df52c8c67d2251b4e964efdc2a9e",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 171,
"avg_line_length": 38.18320610687023,
"alnum_prop": 0.7506997201119552,
"repo_name": "SaschaNaz/TypeScript",
"id": "4d67e95eb4725c48b32e1a63a2291cf3f34fa98c",
"size":... |
<?php
namespace Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler;
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\CachePoolPrunerPass;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Component\Cache\Adapter\PhpFilesAdapter;
use Symf... | {
"content_hash": "4d20bd3cc70b03e00de2f6e5e9377325",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 166,
"avg_line_length": 38.544117647058826,
"alnum_prop": 0.7039297977871042,
"repo_name": "ajgarlag/symfony",
"id": "58362df6ed8f8f28cbb692b0e757aa85d063fcf3",
"size": "28... |
layout: "fluid/docs_base"
version: "2.3.0"
versionHref: "/docs/v3/2.3.0"
path: ""
category: api
id: "datetime"
title: "DateTime"
header_sub_title: "Ionic API Documentation"
doc: "DateTime"
docType: "class"
show_preview_device: true
preview_device_url: "/docs/v3/demos/src/datetime/www/"
angular_controller: APIDemoCtrl
... | {
"content_hash": "03b19ca993ce5690f634a7b310a23f75",
"timestamp": "",
"source": "github",
"line_count": 831,
"max_line_length": 143,
"avg_line_length": 32.94344163658243,
"alnum_prop": 0.6430815312682642,
"repo_name": "driftyco/ionic-site",
"id": "d9d2c37bbc262b484baf5adff8d88a542a2eee70",
"size": ... |
package org.apache.camel.component.file.remote;
/**
* Unit test based on end user problem with SFTP on Windows
*/
public class FromFtpMoveFileAbsoluteFolderRecursiveNotStepwiseTest extends FromFtpMoveFileAbsoluteFolderRecursiveTest {
protected String getFtpUrl() {
return "ftp://admin@localhost:" + getP... | {
"content_hash": "f1ed8442ddd42d6c6f2751b89d298de0",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 119,
"avg_line_length": 37.30769230769231,
"alnum_prop": 0.7319587628865979,
"repo_name": "davidkarlsen/camel",
"id": "9403838e5e50bea5361d3e002637a4cc4436021a",
"size": "1... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hoare-tut: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | {
"content_hash": "5d5bb7443acb89b302569b3dcb62eb52",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 159,
"avg_line_length": 42.56111111111111,
"alnum_prop": 0.5674193969455684,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "aeffa8f3665c3fda2e24d938262b72868cc5c77a",
... |
#import "UserProfileUtils.h"
/**
A domain object that represents the user's profile attributes.
*/
@interface UserProfile : NSObject {
@private
Provider provider;
NSString* profileId;
NSString* username;
NSString* email;
NSString* firstName;
NSString* lastName;
NSString* a... | {
"content_hash": "780616379fbae6987b291f4c884ea74f",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 69,
"avg_line_length": 28.810526315789474,
"alnum_prop": 0.7204968944099379,
"repo_name": "soomla/ios-profile",
"id": "0ccfd45e3db016bb33d566b25dd60f96ae2cb33a",
"size": "3... |
A JRuby-based event stream processing framework for Kafka.
## Example
```ruby
Kafkaesque::Consumer.new(
:handler => MyHandler,
:event => MyEvent,
:number_of_workers => 5,
:kafka => {
:host => '192.168.0.1',
:topics => %w[foo bar]
}
).start
```
## Contributing to Kafkaesque
* fork the project
* sta... | {
"content_hash": "e133f3eb24bd628a59279edcbf2e555b",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 63,
"avg_line_length": 18.73076923076923,
"alnum_prop": 0.6694045174537988,
"repo_name": "wooga/kafkaesque",
"id": "e162460879c425b6548f644423180235a3a719b0",
"size": "501"... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class com.google.common.collect.ImmutableList.Builder (Guava: Google Core Libraries for GWT - latest)
</... | {
"content_hash": "b943416b70b129ce86cf43d87eb7a291",
"timestamp": "",
"source": "github",
"line_count": 218,
"max_line_length": 474,
"avg_line_length": 53.77522935779817,
"alnum_prop": 0.6470186812249424,
"repo_name": "jgaltidor/VarJ",
"id": "5bcb85a757bf11fc42ae21d40506daf221066405",
"size": "1172... |
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <sys/param.h>
#include <security/pam_appl.h>
#include <security/pam_modules.h>
/*
* XSSO 4.2.2
* XSSO 6 page 85
*
* Service module implementation for pam_set_mapped_username
*/
int
pam_sm_set_mapped_username(pam_handle_t *pamh,
char *target_module_us... | {
"content_hash": "f801d12629ee7552c966f7ca848642b5",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 60,
"avg_line_length": 13.882352941176471,
"alnum_prop": 0.6800847457627118,
"repo_name": "jhbsz/OSI-OS",
"id": "2696d3e182eceec22f427075a4bc5b0a7c729fde",
"size": "2411",
... |
using System;
using System.Collections.Generic;
using Monoamp.Common.system.io;
using Monoamp.Boundary;
namespace Monoamp.Common.Data.Standard.Riff
{
public abstract class RiffChunkList : RiffChunk
{
public abstract Dictionary<string, Dictionary<string, Type>> ChunkTypeDictionaryDictionary{ get; }
public reado... | {
"content_hash": "587f7bb9d554066a69de97710a15fd32",
"timestamp": "",
"source": "github",
"line_count": 229,
"max_line_length": 121,
"avg_line_length": 23.22707423580786,
"alnum_prop": 0.6328257191201354,
"repo_name": "monoamp/Uniamp",
"id": "2d57e1961515243dbf50d8f4afd98a8620940e1e",
"size": "5319... |
using Alensia.Core.Common;
using UnityEngine;
namespace Alensia.Core.Item
{
public abstract class ClothingForm : Form, IClothingForm
{
public ClothingSlot Slot => _slot;
[SerializeField] private ClothingSlot _slot;
}
} | {
"content_hash": "3372113d7f4f955e0ad261dae15d9913",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 60,
"avg_line_length": 20.666666666666668,
"alnum_prop": 0.6975806451612904,
"repo_name": "mysticfall/Alensia",
"id": "d618763c4135bcb2fbb12994f1d9ebe8ca310476",
"size": "2... |
package exec
import (
u "github.com/araddon/gou"
"github.com/araddon/qlbridge/datasource"
"github.com/araddon/qlbridge/expr"
"github.com/araddon/qlbridge/value"
"github.com/araddon/qlbridge/vm"
)
// A scanner to filter by where clause
type Where struct {
*TaskBase
where expr.Node
}
func NewWhere(where expr.No... | {
"content_hash": "0e3792227eb476f622118561850bd73d",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 103,
"avg_line_length": 25.27,
"alnum_prop": 0.6323703996834191,
"repo_name": "schmichael/qlbridge",
"id": "849cfaf207d6ce61549c62a86791b29da1712d34",
"size": "2527",
"b... |
<?php
Yii::import('bootstrap.helpers.TbHtml');
Yii::import('bootstrap.widgets.TbGridView');
/**
* WhGridView class
*
* This grid is an extended version of TbGridView.
*
* Features are:
* - Display an extended summary of the records shown. The extended summary can be configured to any of the
* WhOperation ty... | {
"content_hash": "1d8aee3c190a7a5f62a01419c21a98cd",
"timestamp": "",
"source": "github",
"line_count": 474,
"max_line_length": 122,
"avg_line_length": 35.09493670886076,
"alnum_prop": 0.5639915840096182,
"repo_name": "reedboat/yiiwheels",
"id": "a3c42bf804260a6519bd029f15e9979f3dfe477f",
"size": "... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Fri Sep 13 12:36:41 CDT 2013 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
com.github.maven_nar.cpptasks.sun... | {
"content_hash": "6213fad17bc9d6b424e1249236904961",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 632,
"avg_line_length": 60.71098265895954,
"alnum_prop": 0.6577168428068171,
"repo_name": "maven-nar/cpptasks-parallel",
"id": "e654e1aa8546ab9c2519211a1b9391d534187bed",
... |
define(function (require, exports, module) {
'use strict';
var App = require('app');
// Create a new module.
var PhotoPage = App.module();
// Default Model.
PhotoPage.Model = Backbone.Model.extend({
defaults: {
pageTitle: 'Photo',
activeLink: 'photography',
... | {
"content_hash": "c718b8b518b382149facef71a2f3946e",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 143,
"avg_line_length": 29.084745762711865,
"alnum_prop": 0.5501165501165501,
"repo_name": "mromanoff/okgrafix",
"id": "58444fbe75512313576103ecd50afb0e75426344",
"size": "... |
import React from 'react';
import PropTypes from 'prop-types';
import { ReactiveBase, SingleRange, ReactiveList } from '@appbaseio/reactivesearch';
const App = ({
settings, store, singleRangeProps, reactiveListProps,
}) => (
<ReactiveBase {...settings} initialState={store}>
<div className="row">
<div className=... | {
"content_hash": "36fa636147c57a8c43e0663b438c7891",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 84,
"avg_line_length": 26.892857142857142,
"alnum_prop": 0.7051792828685259,
"repo_name": "appbaseio/reactivesearch",
"id": "84203326728a0612506bfbf231dea11dd94cb2e0",
"siz... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.