text stringlengths 2 1.04M | meta dict |
|---|---|
'''Shortcode arbitrary integer base alphabet conversion'''
# http://stackoverflow.com/a/1119769/1524507
def int_to_str(num, alphabet):
'''Convert integer to string.'''
if (num == 0):
return alphabet[0]
arr = []
base = len(alphabet)
while num:
rem = num % base
num = num // b... | {
"content_hash": "a0fb5ecee94384ad9a9b04284a6ba3e0",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 58,
"avg_line_length": 22.483870967741936,
"alnum_prop": 0.5652797704447633,
"repo_name": "hugovk/terroroftinytown",
"id": "739f2e55283558fc93a79cba61b05954b5a854b0",
"size... |
Tests
-----
If you are testing the current release of this plugin via bundler
```
bundle exec vagrant up default
```
## Expect
### Box `default`
- The box `default` is a docker container that will be a reverse
proxy. It should provision itself and work without errors.
- You can check that the proxy is wo... | {
"content_hash": "ce9fb9e45ce041a0a8e217c071216f69",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 88,
"avg_line_length": 23.677419354838708,
"alnum_prop": 0.7029972752043597,
"repo_name": "tmatilai/vagrant-proxyconf",
"id": "669d17f493ac2c84190d52665810afcfd5fc0d23",
"s... |
from pyramid_mailer.interfaces import IMailer
from pyramid_mailer.mailer import DummyMailer
def includeme(config):
mailer = DummyMailer()
config.registry.registerUtility(mailer, IMailer)
| {
"content_hash": "7036287a85724527a87312b5f02c7772",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 52,
"avg_line_length": 32.666666666666664,
"alnum_prop": 0.8010204081632653,
"repo_name": "dakra/pyramid_mailer",
"id": "7b11043a84f48606267d17ae9b6cbdc986a71017",
"size": "... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Thu Mar 08 14:17:43 MST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.s... | {
"content_hash": "a93a05719e1d0bcf8809c551464402df",
"timestamp": "",
"source": "github",
"line_count": 260,
"max_line_length": 638,
"avg_line_length": 67.78076923076924,
"alnum_prop": 0.6877943596436475,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "f52e6e442f03add527e5ff5c8ba6fbbe9ba3... |
\section{Evaluation}
All in all we are quite happy with \SPLC. Our added syntactic sugar and the
higher order functions make our implementation of \SPL{} quite comfortable to
program in. Due to the UNIX style interface it is quite easy to combine
usage of the compiler with \SSM.
There are however of course a lot of t... | {
"content_hash": "d4aefd9842eda9e6d7bd9e4ef087fcc8",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 80,
"avg_line_length": 46.721311475409834,
"alnum_prop": 0.7729824561403509,
"repo_name": "dopefishh/cc1516",
"id": "70bbb9de9724b27ffb0ec039d6e1ad4f504ec689",
"size": "285... |
package org.killbill.billing.payment.core.janitor;
import java.util.UUID;
import org.killbill.notificationq.DefaultUUIDNotificationKey;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class JanitorNotificationKey extends DefaultUUIDNotificationKey ... | {
"content_hash": "e767c5cb8773fcfb5a1deaa1ff194d4c",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 109,
"avg_line_length": 32.30120481927711,
"alnum_prop": 0.6165609847071988,
"repo_name": "killbill/killbill",
"id": "fe614e92d7b197eec37b8df398acd3c1d68a9506",
"size": "33... |
package nam.workspaceService;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.List;
import nam.NamRepository;
import nam.model.Workspace;
import nam.model.util.ModelFixture;
import nam.model.util.ModelHelper;
import org.aries.jaxb.JAXBSessionCache;
import org.aries.r... | {
"content_hash": "13b2fbe8f1d07be543e2ea0115d54215",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 104,
"avg_line_length": 26,
"alnum_prop": 0.7838196286472149,
"repo_name": "tfisher1226/ARIES",
"id": "24300a9d9de2e4b67ae7912729b5bd23b476b617",
"size": "2262",
"binary"... |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed ... | {
"content_hash": "950f369ccc3b784f496e2b798e2e14b7",
"timestamp": "",
"source": "github",
"line_count": 790,
"max_line_length": 80,
"avg_line_length": 29.430379746835442,
"alnum_prop": 0.6387096774193548,
"repo_name": "dapangchi/stampcircles",
"id": "3337bdb580e8aac4d71aa455ddc6f0e4fe1195da",
"size... |
namespace bitbots_ros_control {
class LedsHardwareInterface : public bitbots_ros_control::HardwareInterface{
public:
LedsHardwareInterface(rclcpp::Node::SharedPtr nh,
std::shared_ptr<DynamixelDriver> &driver,
uint8_t id,
uint8_t num_leds,
... | {
"content_hash": "283e17b4a075ec5a85621e7631e988b4",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 133,
"avg_line_length": 36.02857142857143,
"alnum_prop": 0.6708961141950832,
"repo_name": "bit-bots/bitbots_lowlevel",
"id": "7bb05bc9b7b8663bb11c7f5fce11bfedc61241e6",
"si... |
<?xml version="1.0"?>
<!--
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_ImportExport:etc/export.xsd">
<entityType entity="catalog_product" name="bundle" model="Magento\BundleImportExport\Model\Export\Product\Type\Bundle" />
</config>
| {
"content_hash": "b06078e1374560ce0671578b07e42d5a",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 149,
"avg_line_length": 45.42857142857143,
"alnum_prop": 0.7484276729559748,
"repo_name": "j-froehlich/magento2_wk",
"id": "c7fd951bfab53b4b48b3550a859273ec0995d708",
"size"... |
using System;
using Serilog;
namespace Nimbus.Logger.Serilog
{
public class SerilogStaticLogger : ILogger
{
public void Debug(string format, params object[] args)
{
Log.Debug(format, args);
}
public void Info(string format, params object[] args)
{
... | {
"content_hash": "27e82aae20e1026e29a2733da0b5d28e",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 77,
"avg_line_length": 23.605263157894736,
"alnum_prop": 0.5473801560758083,
"repo_name": "KodrAus/Nimbus",
"id": "ea670ad1e43240d70dabf50779ff6be8e05c031c",
"size": "899",... |
package org.dozer.functional_tests;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
im... | {
"content_hash": "df22dbe3fa7260fae6c5c5745c98f588",
"timestamp": "",
"source": "github",
"line_count": 847,
"max_line_length": 131,
"avg_line_length": 39.3482880755608,
"alnum_prop": 0.7071531445031205,
"repo_name": "STRiDGE/dozer",
"id": "2bb81241046e79dc6bc342ea10d0b91d0b3c13c8",
"size": "33944"... |
package org.apiviewer.test;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
/**
* @author hitesh.bargujar
*
*/
@RunWith(value = Cucumber.class)
@CucumberOptions(format = {"pretty", "json:build/testReports"},
features = {"src/test/resources"})
publi... | {
"content_hash": "d16dc1f9223f6801915034d660b53e1c",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 63,
"avg_line_length": 21,
"alnum_prop": 0.7338935574229691,
"repo_name": "APIVIEWER/api-viewer-service",
"id": "ca64c335fbf0bc9acf541b24e7be797417f45803",
"size": "357",
... |
using System.Windows;
namespace CrystalKeeper.Gui
{
/// <summary>
/// Interaction logic for DlgImgDisplayGui.xaml
/// </summary>
public partial class DlgImgDisplayGui : Window
{
public DlgImgDisplayGui()
{
InitializeComponent();
}
}
}
| {
"content_hash": "a275018b5af9a37c8d71cbbbf26dab92",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 51,
"avg_line_length": 19.8,
"alnum_prop": 0.5959595959595959,
"repo_name": "JoshuaLamusga/Crystal-Keeper",
"id": "3166a5dc2873b6cdedc90133db65fda1e945c756",
"size": "299",... |
package com.cisco.oss.foundation.directory.client;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import com.cisco.oss.foundation.directory.exception.ServiceException;
import or... | {
"content_hash": "baf61f1863a2a76c4a4fea8916a93e8e",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 128,
"avg_line_length": 40.339622641509436,
"alnum_prop": 0.6508419083255379,
"repo_name": "foundation-runtime/service-directory",
"id": "4efeed200ac09e2fd29ad931754828b2eb4... |
// create the module and name it trans
var trans = angular.module('trans', ['ngRoute','ui.bootstrap']);
// configure our routes
trans.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl : 'pages/home.html'
})
// route for the about page
.when('/about', {
templateUrl : ... | {
"content_hash": "0577e5b0db30a6a75c7d042cf55518a8",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 75,
"avg_line_length": 27.545454545454547,
"alnum_prop": 0.6138613861386139,
"repo_name": "aditi121/demo-angular-project",
"id": "1a1361d102ecd6c59bbd59160a34a61b5250b26e",
... |
package net.katsuster.strview.media.ps;
import net.katsuster.strview.util.bit.*;
import net.katsuster.strview.media.bit.*;
/**
* <p>
* MPEG2-PS (Program Stream) pack header
* </p>
*
* <p>
* 参考規格
* </p>
* <ul>
* <li>ITU-T H.222, ISO/IEC 13818-1:
* Information technology – Generic coding of moving pictures an... | {
"content_hash": "976b71b0e0c2d3da03a117aeb839b375",
"timestamp": "",
"source": "github",
"line_count": 215,
"max_line_length": 96,
"avg_line_length": 44.70232558139535,
"alnum_prop": 0.515659140568099,
"repo_name": "katsuster/strview",
"id": "a15f0e53ebaf5b48e71dc12e008c37068e9e7f2b",
"size": "966... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu()]
public class TerrainData : UpdatableData {
public float uniformScale = 2f;
public bool useFalloff;
public bool useFlatShading;
public float meshHeightMultiplier;
public AnimationCurve meshHeightCurve;
public ... | {
"content_hash": "429cb6961f83f5f628b2935d2663d041",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 76,
"avg_line_length": 17.40625,
"alnum_prop": 0.7576301615798923,
"repo_name": "Batora07/ProceduralLandmassGeneration",
"id": "8af9f47f3bb37bee68ebe51e74f6669228f1d570",
"... |
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("Mea... | {
"content_hash": "76c3a676cbaa00402a91c0675e6133df",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.22222222222222,
"alnum_prop": 0.7485835694050992,
"repo_name": "Shirasho/Meadow",
"id": "383cb6a6c133ffe10ba99e41589676c039f9af0e",
"size": "1415"... |
<?php
namespace WoohooLabs\SpecGenerator\Swagger2\Parameters;
class BodyParameter extends AbstractSchemaParameterFactory
{
/**
* @param string $name
* @return $this
*/
public static function create($name = null)
{
return new self($name);
}
/**
* @param string $name
... | {
"content_hash": "85460767c41f0d2f5dde1ed3920721d9",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 58,
"avg_line_length": 19.454545454545453,
"alnum_prop": 0.5911214953271028,
"repo_name": "woohoolabs/spec-generator",
"id": "b2aa69255de714649389c454bc17764e90897068",
"si... |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
using Octopus.Client;
using Octopus.Client.Model;
using Serilog;
namespace Octoposh.TestDataGenerator.Fixtures
{
/// <summary>
/// This fixture is in charge of creating/setting up most of the things that ca... | {
"content_hash": "66de9001286e9b314e614007253dc687",
"timestamp": "",
"source": "github",
"line_count": 133,
"max_line_length": 207,
"avg_line_length": 37.05263157894737,
"alnum_prop": 0.5631087662337663,
"repo_name": "Dalmirog/OctoPosh",
"id": "c0b55f8dee042ed12e47c95463f70b4ff6d4910f",
"size": "4... |
@implementation UIView (Util)
- (UIImage *)createImage
{
UIGraphicsBeginImageContextWithOptions(self.bounds.size, YES, [UIScreen mainScreen].scale);
[self.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
... | {
"content_hash": "d0864059e77fba73b6e647e427ba5322",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 95,
"avg_line_length": 34.1,
"alnum_prop": 0.7712609970674487,
"repo_name": "imjerrybao/CMUtils",
"id": "38c41338ef1c7659516d50a12881e8302c335e8a",
"size": "492",
"binary... |
require('../../test-env');
describe('dig.data.priorityQueue', function() {
var pq;
beforeEach(function() {
pq = new dig.data.PriorityQueue();
});
describe("constructor", function() {
it("PriorityQueue() returns an empty queue", function() {
assert.equal(0, pq.size());
});
it("should th... | {
"content_hash": "4a6b0410f8b83864134a2b19d6aa1ea7",
"timestamp": "",
"source": "github",
"line_count": 125,
"max_line_length": 82,
"avg_line_length": 26.832,
"alnum_prop": 0.5405485986881335,
"repo_name": "cpettitt/dig.js",
"id": "cd343dd38bb3d1c36ee45be790ded2ad8cb332ce",
"size": "3354",
"binar... |
import { Directive, OnInit, ElementRef, Renderer, Input } from '@angular/core';
import { TranslateService, LangChangeEvent } from '@ngx-translate/core';
@Directive({
selector: '[jhiActiveMenu]'
})
export class ActiveMenuDirective implements OnInit {
@Input() jhiActiveMenu: string;
constructor(private el: ... | {
"content_hash": "ad62e10c9df8f49baf8a1773c75135d6",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 114,
"avg_line_length": 36,
"alnum_prop": 0.6848290598290598,
"repo_name": "alexandrofs/gfp",
"id": "edbdeb94fd98c2bf7b2e8525aa50a45a84c697bc",
"size": "936",
"binary": f... |
using System;
using System.Windows;
using System.Windows.Input;
using Windows.Storage;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using AppStudio.Data;
using AppStudio.Services;
namespace AppStudio.ViewModels
{
public class ContactUsViewModel : ViewModelBase<MenuSchema>
{
private RelayCom... | {
"content_hash": "42f98e0e940c03bb20c86bbce2f100d2",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 162,
"avg_line_length": 32.486486486486484,
"alnum_prop": 0.4789240155296728,
"repo_name": "SangramChavan/IEEE-Connected-Learning-Win-8.1",
"id": "d1a2587c4567acd61fef412cee... |
from logging import WARNING, DEBUG
import yaml
import os.path
def load():
u"""サーバーとアプリの環境設定を読み込む
"""
env = 'development' if not os.environ.get('APP_NAME') else \
os.environ.get('APP_NAME')
base_path = os.path.dirname(os.path.dirname(__file__))
conf_path = '%s/%s' % (base_path, "conf/server... | {
"content_hash": "8558ef38ce7b75b09225ad879261a82a",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 70,
"avg_line_length": 34.9,
"alnum_prop": 0.6117478510028653,
"repo_name": "JFK/python-tornado-site-template",
"id": "582ba3a2c5a37224a30ddefc831b365b1635ff53",
"size": "8... |
//
// DO NOT EDIT THIS FILE, IT HAS BEEN GENERATED USING AndroidAnnotations 3.0.1.
//
package com.prom.by.views;
import android.content.Context;
import android.widget.TextView;
import com.android.volley.toolbox.NetworkImageView;
import com.prom.by.R.id;
import com.prom.by.R.layout;
import org.androidannotations.api.... | {
"content_hash": "39f6b393874b14ffc0b04f3288bdda2e",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 111,
"avg_line_length": 30.69736842105263,
"alnum_prop": 0.6995285040720103,
"repo_name": "cliffroot/prom.by",
"id": "32cfb39f27f240144d8b2b1c82bf4aada824ddd5",
"size": "23... |
This feature is language-specific.
It occurs with 1 different values: `Anim`.
This is a <a href="../../u/overview/feat-layers.html">layered feature</a> with the following layers: [Animacy](), [Animacy[gram]]().
9 tokens (0%) have a non-empty value of `Animacy[gram]`.
7 types (0%) occur at least once with a non-empty ... | {
"content_hash": "7da671d27c2b7a1b1c1571245f6e8b0b",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 319,
"avg_line_length": 50.416666666666664,
"alnum_prop": 0.6743801652892562,
"repo_name": "PhyloStar/UDTelugu",
"id": "1bb2c564a110cb3aad2165090bd8c644aac0ebc6",
"size": "... |
insert into t_users (email) values('jack@itcrowd.pl');
| {
"content_hash": "98187845a6bad4b6c121f671b5698eda",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 54,
"avg_line_length": 55,
"alnum_prop": 0.7272727272727273,
"repo_name": "ftomassetti/JavaIncrementalParser",
"id": "27794a384963aad7de46344722da720997976fda",
"size": "55"... |
import numpy as np
import matplotlib.pyplot as plt
from sklearn import ensemble, svm,datasets
import brica1
# Randomforest Component Definition
class RandomForestClassifierComponent(brica1.Component):
def __init__(self, n_in):
super(RandomForestClassifierComponent, self).__init__()
self.classifie... | {
"content_hash": "441743ba05c76e663641adf34a8eea3b",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 92,
"avg_line_length": 25.89908256880734,
"alnum_prop": 0.6301806588735388,
"repo_name": "wbap/BriCA1",
"id": "e573d4735afaa9764540d4885740bd8e0e169ca2",
"size": "2840",
... |
import allergy_intolerance from 'ember-fhir-adapter/models/allergy-intolerance';
export default allergy_intolerance; | {
"content_hash": "95a145591d935355c7bd730c9ee2f743",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 80,
"avg_line_length": 58,
"alnum_prop": 0.853448275862069,
"repo_name": "intervention-engine/ember-fhir-adapter",
"id": "ccfdc07a82afc79194d0e299c43978aac1bc9269",
"size": ... |
require_dependency "subscriptions/application_controller"
module Subscriptions
class InvoicesController < ApplicationController
before_filter :set_invoice, only: [:show, :edit, :update, :destroy]
# GET /invoices
def index
@invoices = Invoice.all
end
# GET /invoices/1
def show
end
... | {
"content_hash": "4cfa3b79e50bdd2f7904d565091bdd57",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 93,
"avg_line_length": 22.85483870967742,
"alnum_prop": 0.6358503881439661,
"repo_name": "camperoo/subscriptions",
"id": "685fab6a9213e87fbb42bed09901673f65892a02",
"size":... |
SHA := $(shell git rev-parse --short HEAD)
VERSION := $(shell cat VERSION)
BUILDPATH := "build/"
LD_FLAGS := -s -w
GOVERSION := $(shell go version | sed -e 's/ /-/g')
BDATE := $(shell date -u +%Y-%m-%d.%H:%M:%S)
test:
go test $(shell go list ./... | grep -v /vendor/)
build:
mkdir -p $(BUILDPATH)
go build -i -v --l... | {
"content_hash": "965614185b1b7ec8a7084355d19c8b82",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 84,
"avg_line_length": 33.275,
"alnum_prop": 0.6393688955672426,
"repo_name": "letterj/megacfs",
"id": "2955c20704ce74303fb20ccc38f710e7273adbd1",
"size": "1331",
"binary... |
<!-- Footer Start -->
<footer id="footer">
<!-- Footer Bottom Start -->
<div class="footer-bottom">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12 ">
... | {
"content_hash": "ead9a64ce2da67917b68089872f2de3f",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 125,
"avg_line_length": 45.278688524590166,
"alnum_prop": 0.5224475018102824,
"repo_name": "shenzhen-tq/nzdm",
"id": "a0cff0fa1e16439aba4d2a389cf973435f4793b2",
"size": "27... |
package io.fd.vpp.jvpp.core.test;
import io.fd.vpp.jvpp.JVppRegistry;
import io.fd.vpp.jvpp.JVppRegistryImpl;
import io.fd.vpp.jvpp.core.JVppCoreImpl;
import io.fd.vpp.jvpp.core.dto.BridgeDomainDetailsReplyDump;
import io.fd.vpp.jvpp.core.dto.BridgeDomainDump;
import io.fd.vpp.jvpp.core.dto.GetNodeIndex;
import io.f... | {
"content_hash": "7b070b6b89ca6f33441e35dd9cf2cfc6",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 116,
"avg_line_length": 45.357798165137616,
"alnum_prop": 0.6814320388349514,
"repo_name": "GabrielGanne/vpp-flowtable",
"id": "f478bab442f05b1ace81aaf70b1d5fdc3fee055b",
... |
#region License
// Copyright(c) Workshell Ltd
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, m... | {
"content_hash": "0301098f60bf005d56ef60324af7dc9a",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 191,
"avg_line_length": 37.806451612903224,
"alnum_prop": 0.6355233219567691,
"repo_name": "Workshell/pe",
"id": "75a2596c0714ab62c652fa141b5e017dedc1ff42",
"size": "7034"... |
package contacts;
import java.util.regex.Pattern;
import java.util.concurrent.TimeUnit;
import org.testng.*;
import org.testng.annotations.*;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa... | {
"content_hash": "4d5548c8b0598987037107b22ff6a0f2",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 119,
"avg_line_length": 36.34375,
"alnum_prop": 0.7357408999713385,
"repo_name": "LanaVoit/pgs-tests",
"id": "badf6346ea5e262813495e83adce2c07bdfff894",
"size": "3489",
"... |
.PHONY: deploy
deploy:
git checkout gh-pages
git merge master
git push
git checkout master | {
"content_hash": "e95580790e7c1b5636620b7d36414af0",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 22,
"avg_line_length": 13.571428571428571,
"alnum_prop": 0.7684210526315789,
"repo_name": "primozcigler/check-my-pipipi",
"id": "8ca9eaf8d7e92bc03296413d0c96fd9bc6cc9de9",
"... |
/*
* Author: atotic
* Created on Mar 23, 2004
* License: Common Public License v1.0
*/
package vgrechka.phizdetsidea.phizdets.debugger.pydev;
import com.google.common.collect.Maps;
import com.intellij.execution.ui.ConsoleViewContentType;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.ut... | {
"content_hash": "bc3889996ce3b4ad5b58fe2e5c279009",
"timestamp": "",
"source": "github",
"line_count": 667,
"max_line_length": 138,
"avg_line_length": 34.79460269865068,
"alnum_prop": 0.6826525336091003,
"repo_name": "vovagrechka/fucking-everything",
"id": "19ba6ef3848afb4ee29501bc545045ae98c781c6",... |
from .SipAddress import SipAddress
from .SipRoute import SipRoute
from .UaStateGeneric import UaStateGeneric
from .CCEvents import CCEventRing, CCEventConnect, CCEventFail, CCEventRedirect, CCEventDisconnect
class UacStateRinging(UaStateGeneric):
sname = 'Ringing(UAC)'
triedauth = False
def recvResponse(s... | {
"content_hash": "a51d787cdf15c3ab7eca8662d753e205",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 120,
"avg_line_length": 48.46739130434783,
"alnum_prop": 0.5826418479479704,
"repo_name": "hgascon/pulsar",
"id": "dd73a722ea7914deedb782cfc4760f5608803366",
"size": "5584"... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.tlcn</groupId>
<artifac... | {
"content_hash": "e54dfbf99e40b04dc3b0346129b8009b",
"timestamp": "",
"source": "github",
"line_count": 158,
"max_line_length": 104,
"avg_line_length": 29.044303797468356,
"alnum_prop": 0.6792329483547613,
"repo_name": "akiyamayami/TLCN",
"id": "69fc9a2370a0de6c2378c799655eb911d6b6c5c4",
"size": "4... |
musicmaster.js: components/*
cat components/* > musicmaster.js
| {
"content_hash": "8cbf88f00964e58700bb59f7440fb62b",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 34,
"avg_line_length": 32,
"alnum_prop": 0.765625,
"repo_name": "debolk/musicmaster-js",
"id": "3d3854fa48700b534aed111944fd7219b21011a4",
"size": "64",
"binary": false,
... |
#import <Foundation/NSInputSourceSet.h>
@class NSSelectSet;
@interface NSSelectInputSourceSet : NSInputSourceSet {
NSMutableSet *_outputSources;
NSSelectSet *_outputSet;
}
@end
| {
"content_hash": "e9b530e500b8c333aa789754d8dd1fe1",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 54,
"avg_line_length": 15.75,
"alnum_prop": 0.7619047619047619,
"repo_name": "wenq1/cocotron",
"id": "962dac8505b6617391ea5da7a49e0eba1cc0891b",
"size": "1261",
"binary":... |
using System.Threading.Tasks;
using Common;
using Core;
namespace AzureRepositories
{
public class AzureQueueReader : IQueueReader
{
private readonly IQueueExt _queueExt;
public AzureQueueReader(IQueueExt queueExt)
{
_queueExt = queueExt;
_queueExt.RegisterTyp... | {
"content_hash": "053dd2883e89b43b9e4c8cf183b90f7e",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 134,
"avg_line_length": 53.97959183673469,
"alnum_prop": 0.675992438563327,
"repo_name": "LykkeCity/WalletBackEnd",
"id": "613d9793bfca14108225b1f9dcc07965790433a6",
"size"... |
<?php echo $this->load->view('content/admin/field_types_subnav'); ?>
<div class="box">
<div class="heading">
<h1><img alt="" src="<?php echo theme_url('assets/images/layout.png'); ?>">Content Type Edit
- <?php echo $Content_type->title; ?> (<?php echo $Content_type->short_name; ?>)</h1>
... | {
"content_hash": "11c920ea8e430b421d9200d943344be3",
"timestamp": "",
"source": "github",
"line_count": 328,
"max_line_length": 295,
"avg_line_length": 58.58536585365854,
"alnum_prop": 0.3982098251457119,
"repo_name": "chintan21191/vlb",
"id": "b4750fbe399384d2c7a2a474f98db69b8a5ab66e",
"size": "19... |
Adventure for fun and profit
---
Features:
* traversing the dungeon
* fighting with monsters
* fleeing from battle
* grabbing new items
* save/load game
* deterministic battle system with A/D/H
* permadeath
---
Fun is in creating something to play with.
Profit is in learning.
| {
"content_hash": "434ed0ea64de22d9693ec7f713ca9dc4",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 42,
"avg_line_length": 18.6,
"alnum_prop": 0.7562724014336918,
"repo_name": "tr00per/adventure",
"id": "159b81d78e7590ba71d7e670e2c48da741d10176",
"size": "279",
"binary"... |
Mutant::Meta::Example.add do
source 'if condition; true; else false; end'
singleton_mutations
# mutation of condition
mutation 'if !condition; true; else false; end'
mutation 'if nil; true; else false; end'
mutation 'if true; true; else false; end'
mutation 'if false; true; else false;... | {
"content_hash": "352a9a2412371c4347237d20365dcb43",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 61,
"avg_line_length": 27.57377049180328,
"alnum_prop": 0.6730083234244947,
"repo_name": "nepalez/mutant",
"id": "610c8ccb39a67dd577027776771ddc668e0ce6ba",
"size": "1682",... |
<?php
/*
* GENERATED CODE WARNING
* This file was automatically generated - do not edit!
*/
namespace Google\Cloud\AppEngine\Tests\Unit\V1;
use Google\ApiCore\ApiException;
use Google\ApiCore\CredentialsWrapper;
use Google\ApiCore\Testing\GeneratedTest;
use Google\ApiCore\Testing\MockTransport;
use Google\Clou... | {
"content_hash": "2831cf2e5393d22a9c89d1d2a0834447",
"timestamp": "",
"source": "github",
"line_count": 421,
"max_line_length": 105,
"avg_line_length": 37.30878859857482,
"alnum_prop": 0.5997326032978927,
"repo_name": "googleapis/google-cloud-php",
"id": "9c57f9651437737a33f239a36738dd3a63fb8000",
... |
When using JavaScript in the browser, we have access to global variables like `window` and `document`.
In Node.js, `window` becomes `global` and `document` becomes `process`.
| {
"content_hash": "2bd3516a1effcddb04ec9222631fe709",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 102,
"avg_line_length": 58.666666666666664,
"alnum_prop": 0.7556818181818182,
"repo_name": "charliegerard/til",
"id": "f44a545288b867812af1849e9c459e5b9067cc30",
"size": "20... |
module Aspose
module Cloud
module Tasks
class Assignments
def initialize(filename)
@filename = filename
raise 'filename not specified.' if filename.empty?
@base_uri = Aspose::Cloud::Common::Product.product_uri + '/tasks/' + @filename
end
=begin
Get all Assign... | {
"content_hash": "1aa74a9d4efbf21461699cc5d6784f14",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 117,
"avg_line_length": 44.66197183098591,
"alnum_prop": 0.6483759066540523,
"repo_name": "asposeforcloud/Aspose_Cloud_SDK_For_Ruby",
"id": "c2954bb5f2597301c74cbd0ca5b20eb95... |
Ascent is a mobile first designed webapp that allows kids to track previously visited recreational parks and facilities and collect points through various channels such as visiting parks, scanning QR codes located at different facilities and so on.
##Install
These instructions assume that your environment has ruby i... | {
"content_hash": "df5a7bd7d0806574eda3fac77b6fb6a1",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 249,
"avg_line_length": 27.82758620689655,
"alnum_prop": 0.7538207352333747,
"repo_name": "myAmericaDevSummit2015/Ascent",
"id": "fb38277869a2afbf8b531772a891a67ca517f21d",
... |
/*
* Antonin Bas (antonin@barefootnetworks.com)
*
*/
#include "error_codes.h"
#include "table_common.h"
#include "utils.h"
#include "PI/frontends/generic/pi.h"
#include "PI/pi.h"
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char table_add_hs[] =
"Add entry to a match tab... | {
"content_hash": "042d109edb62edf097fca8ce469f0331",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 78,
"avg_line_length": 28.125,
"alnum_prop": 0.6545454545454545,
"repo_name": "p4lang/PI",
"id": "5b4464026a6e6c845b0d38ad22deac64062200b1",
"size": "3084",
"binary": fal... |
package timus;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
/**
* Created by sherxon on 12/8/16.
*/
public class Order1510 {
public static void main(String[] args) {
FastReader fastReader= new Fast... | {
"content_hash": "50f1788cbfa9965d0c544c71dfe7bd81",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 68,
"avg_line_length": 24.403508771929825,
"alnum_prop": 0.4982027318475917,
"repo_name": "sherxon/AlgoDS",
"id": "53fab4b6892b568fe18583b479fb57231a089b66",
"size": "1391"... |
package pl.nn44.battleship.service;
import pl.nn44.battleship.model.Cell;
import pl.nn44.battleship.model.Coord;
import pl.nn44.battleship.model.Grid;
import pl.nn44.battleship.model.Ship;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.funct... | {
"content_hash": "4dac748da3230e739ad6031c9eef0986",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 111,
"avg_line_length": 29.436781609195403,
"alnum_prop": 0.6884029675907849,
"repo_name": "180254/Battleship44",
"id": "7460379ddd27502c597c237e28ab97594627e810",
"size": ... |
package com.demo.floatwindowdemo;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
public class FloatWindowBigView extends LinearLayout {
/**
* 记录大悬浮窗的宽度
*/
public stati... | {
"content_hash": "204fb1756e304e977d1e1bd82c4c6405",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 72,
"avg_line_length": 27.755102040816325,
"alnum_prop": 0.7441176470588236,
"repo_name": "longwei243/viewlibrary",
"id": "331d9ed5bc807529408fe08b1929a6fd48913fac",
"size"... |
<?php
declare(strict_types=1);
namespace Gdbots\Bundle\PbjxBundle\Command;
use Gdbots\Pbj\Message;
use Gdbots\Pbj\Util\NumberUtil;
use Gdbots\Pbj\WellKnown\Microtime;
use Gdbots\Schemas\Pbjx\StreamId;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Compone... | {
"content_hash": "5fb7a0b4436dd30a873b01f6ef2259e2",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 117,
"avg_line_length": 34.97260273972603,
"alnum_prop": 0.554445750097924,
"repo_name": "gdbots/pbjx-bundle-php",
"id": "419c742c757faddd9d19efe3509af59135ca61e2",
"size"... |
package com.example.stream.eb.detail;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatTextView;
import android.view.View;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.example.stream.core.delegates.StreamDelegate;
i... | {
"content_hash": "dac38ef7a42eb63ac745006b389c9eaf",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 80,
"avg_line_length": 30.39344262295082,
"alnum_prop": 0.7022653721682848,
"repo_name": "streamj/JX",
"id": "db43b083b9db22b2a222670fe8a500fa6d054fde",
"size": "1854",
"... |
require "test/unit"
class TC_NilClass_And_Instance < Test::Unit::TestCase
def setup
@x = nil
end
def test_basic
assert_respond_to(@x, :&)
assert_nothing_raised{ @x & "hello" }
assert_equal(false, @x & "hello")
assert_equal(false, @x & @x)
end
def test_edge_cases
... | {
"content_hash": "6409ee921781a2cbebfe5983111859b1",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 53,
"avg_line_length": 22.476190476190474,
"alnum_prop": 0.5741525423728814,
"repo_name": "google-code/android-scripting",
"id": "e84feb303c257c07830024a6f0f9fd3ce6299bdc",
... |
from django.db import models
from django.contrib.auth.models import User
from django.core.cache import cache
from helper.model import to_dict, get_deep_attr
# Create your models here.
class UserProfile(models.Model):
def __str__(self):
return self.user.username
user = models.OneToOneField(User, rela... | {
"content_hash": "4b1da70aa2eddd64f09feffc47983602",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 129,
"avg_line_length": 31.26775956284153,
"alnum_prop": 0.5896539671443551,
"repo_name": "FiniteElementries/barebone_server",
"id": "8393d0e8f21e5c34887d65cb92f3db2240f7a24... |
import '../app/shared/components/alert-message/alert-message.story.js'
import '../app/shared/components/full-button/full-button.story.js'
import '../app/shared/components/rounded-button/rounded-button.story.js'
import '../app/shared/components/search-bar/search-bar.story.js'
| {
"content_hash": "1fa29e1e8e87c5bd6116df65e492d185",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 72,
"avg_line_length": 69,
"alnum_prop": 0.782608695652174,
"repo_name": "ruddell/ignite-jhipster",
"id": "ab29c40e3497474a6ce9424ba90535b981c3f9e4",
"size": "276",
"binar... |
package com.linkedin.pinot.transport.pool;
import com.linkedin.pinot.common.response.ServerInstance;
/**
*
* Interface to create/destroy and validate pooled resource
* The implementation is expected to be thread-safe as concurrent request to create connection for same/different servers
* is possible.
*
* @par... | {
"content_hash": "ac2187f9675ca4ab6f9f692d7fd9f54b",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 121,
"avg_line_length": 25.785714285714285,
"alnum_prop": 0.7137580794090489,
"repo_name": "apucher/pinot",
"id": "6163e52fec31a667eeb7bf391513d52fb1365cd6",
"size": "1720"... |
// Package requirematchinglabel implements the `require-matching-label` plugin.
// This is a configurable plugin that applies a label (and possibly comments)
// when an issue or PR does not have any labels matching a regexp. If a label
// is added that matches the regexp, the 'MissingLabel' is removed and the comment... | {
"content_hash": "ce96f5b9ae8182f393e0436b972966d7",
"timestamp": "",
"source": "github",
"line_count": 213,
"max_line_length": 491,
"avg_line_length": 34.816901408450704,
"alnum_prop": 0.712378640776699,
"repo_name": "ixdy/kubernetes-test-infra",
"id": "254dce1bf890bfea5a69f1b34c403a93d7ecd7dd",
"... |
//
// DP formulation based on https://figshare.com/articles/preprint/Notes_on_pairwise_alignment_with_dynamic_programming/5223973
//
#pragma once
#include "Compat.h"
#include "FixedSizeMap.h"
#include "BigAlloc.h"
#include "exit.h"
#include "Genome.h"
#include "Read.h"
#include "Tables.h"
#include "LandauVishkin.h"
#... | {
"content_hash": "3189030584fe04d69222830d3c1df17b",
"timestamp": "",
"source": "github",
"line_count": 1474,
"max_line_length": 160,
"avg_line_length": 40.434871099050206,
"alnum_prop": 0.5107632422274794,
"repo_name": "amplab/snap",
"id": "e6a04096c6f4fda4aaecdaa38b32985842d86198",
"size": "59601... |
<?php
declare(strict_types=1);
namespace FeedIo;
use FeedIo\Parser\JsonParser;
use FeedIo\Parser\XmlParser;
use FeedIo\Reader\Fixer\HttpLastModified;
use FeedIo\Reader\Fixer\PublicId;
use FeedIo\Reader\FixerAbstract;
use FeedIo\Reader\FixerSet;
use FeedIo\Rule\DateTimeBuilder;
use FeedIo\Rule\DateTimeBuilderInterfac... | {
"content_hash": "04aad703e07d7ec882d46af6badf8f8d",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 119,
"avg_line_length": 27.925233644859812,
"alnum_prop": 0.6358768406961178,
"repo_name": "OleVik/grav-plugin-twigfeeds",
"id": "4699aefef784aa10bef1b4d748cce5cd7e936268",
... |
require_relative '../../spec_helper'
module Asana
describe Tag do
before do
VCR.insert_cassette('tags', :record => :all)
Asana.configure do |c|
c.api_key = ENV['ASANA_API_KEY']
end
end
after do
VCR.eject_cassette
end
describe '.all' do
it 'should return al... | {
"content_hash": "b5e497e9cbe703d03e348bbc8a25b91a",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 86,
"avg_line_length": 25.063492063492063,
"alnum_prop": 0.609879670677644,
"repo_name": "suhongrui/gitlab",
"id": "36f9600169fbbbee56a128bf9f536d6ac109ce21",
"size": "1579... |
// Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' messa... | {
"content_hash": "8e76a9d94b0d4d6a4fed18530c777a00",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 147,
"avg_line_length": 35.6875,
"alnum_prop": 0.6887665749311984,
"repo_name": "worldbit/worldbit",
"id": "c3fbbee769c1def98bfc51a2ec3ba83993fff640",
"size": "3997",
"b... |
from __future__ import division, with_statement
import platform
import numpy as np
import pyfits as fits
from . import PyfitsTestCase
from .util import ignore_warnings
class TestUintFunctions(PyfitsTestCase):
utypes = ('u2', 'u4', 'u8')
utype_map = {'u2' :np.uint16, 'u4': np.uint32, 'u8': np.uint64}
it... | {
"content_hash": "c6b1d61207e31c0c7fa6a0dd1f99afed",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 79,
"avg_line_length": 41.59016393442623,
"alnum_prop": 0.5147812376823019,
"repo_name": "embray/PyFITS",
"id": "a85c32a198f3abfdd668d4b0965ed4d0b85abac2",
"size": "5074",... |
package org.wso2.carbon.esb.mediator.test.iterate;
import org.apache.axis2.AxisFault;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import org.wso2.esb.integration.common.utils.ESBIntegrationTest;
import org.wso2.esb... | {
"content_hash": "5a6c7bace6918608537bbfd1bdc9667c",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 142,
"avg_line_length": 37.255319148936174,
"alnum_prop": 0.7292975442604226,
"repo_name": "mpmunasinghe/product-ei",
"id": "1245bf2c8ead3b28675629ee959a32ee0652bcff",
"siz... |
var express = require('express');
var webpack = require('webpack');
var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var yargs = require('yargs');
var args = yargs
.alias('p', 'production')
.argv;
var app = new express();
var port = 8000;
... | {
"content_hash": "c93c37e8a32fe67c59816c7975109cb7",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 107,
"avg_line_length": 30.923076923076923,
"alnum_prop": 0.6749585406301825,
"repo_name": "mareksuscak/surfing-gallery",
"id": "ce1e5d3a0056d6b16cf4b85c9187ef52f0c15a77",
... |
package com.netflix.astyanax.partitioner;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import org.apache.cassandra.dht.RandomPartitioner;
import com.google.common.collect.Lists;
import com.netflix.astyanax.connectionpool.TokenRange;
import com.netflix.as... | {
"content_hash": "d5b0cbed8b2c4be06717a6d1733d9ab5",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 123,
"avg_line_length": 34.5,
"alnum_prop": 0.6709753231492362,
"repo_name": "0x6e6562/astyanax",
"id": "0b3357b073268b334b1ea27d3a46d2accf4f0be1",
"size": "2553",
"binar... |
class AudiosController < ApplicationController
helper :categories, :comments, :feed, :forums, :licenses, :maps, :markup, :medias,
:render_controls, :configuration
#mixin in the markers_to_markup from maps_helper
include MapsHelper
#media controller helper mixin
include MediasControllerHelper
#co... | {
"content_hash": "eeb9121049ed323b9418fc8338fafb35",
"timestamp": "",
"source": "github",
"line_count": 375,
"max_line_length": 168,
"avg_line_length": 33.114666666666665,
"alnum_prop": 0.6168465131261073,
"repo_name": "nazar/MediaCMS",
"id": "cb793eda349b1ce0fc8a288c2764c1a34a02be3c",
"size": "124... |
package anemos
import "fmt"
func (uri Uri) String() string {
return fmt.Sprintf("%s:%s:%s:%s:%s:%s",
uri.Kind,
uri.Provider,
uri.Operation,
uri.Name,
uri.Id,
uri.Status)
}
| {
"content_hash": "d97b7db417162eb57132f57021957f97",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 40,
"avg_line_length": 13.428571428571429,
"alnum_prop": 0.6223404255319149,
"repo_name": "anemos-io/engine",
"id": "b62e2f9e367723a2bf62faedd4d16317149bdaeb",
"size": "188... |
class MissedDetectionTrigger
{
public:
enum
{
STATE_IDLE,
STATE_INHIBIT,
STATE_DETECT,
};
MissedDetectionTrigger();
virtual ~MissedDetectionTrigger();
bool update(bool is_ok);
bool isTriggered(void) const;
bool isDetecting(void) const;
double getDe... | {
"content_hash": "dc3eb4345e758281c0e2057a5dc62ff2",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 72,
"avg_line_length": 22.846153846153847,
"alnum_prop": 0.6565656565656566,
"repo_name": "mwgit00/cpox",
"id": "14c1b29f2af67c392f90f634e104dfc70d3518d9",
"size": "983",
... |
package org.eknet.neoswing.loader;
import com.tinkerpop.blueprints.Graph;
import java.util.ArrayList;
import java.util.List;
/**
* @author <a href="mailto:eike.kettner@gmail.com">Eike Kettner</a>
* @since 14.11.12 22:57
*/
public class OrientDbLoader extends AbstractGraphLoader {
public static final String N... | {
"content_hash": "8db8a92f7f08304b283ddb44aa30e542",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 99,
"avg_line_length": 24.242857142857144,
"alnum_prop": 0.6664702416028285,
"repo_name": "eikek/neoswing",
"id": "1a85b715549ce880769f1d9176a972a89c37b78d",
"size": "2292"... |
ChatPermitter
<img src=https://poggit.pmmp.io/ci.badge/haniokasai/ChatPermitter/ChatPermitter>
ダウンロード https://poggit.pmmp.io/ci/haniokasai/ChatPermitter/ChatPermitter
https://blog.haniokasai.com/2017/08/chatpermitter.html
| {
"content_hash": "3873f20e41566329b6a4205214e3f9c2",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 80,
"avg_line_length": 32.142857142857146,
"alnum_prop": 0.8222222222222222,
"repo_name": "haniokasai/ChatPermitter",
"id": "b3a5dbe18cc3a4c59da11fec82b961307f3fff11",
"size... |
package ca.antonious.viewcelladapter.viewcells.builtins;
import android.support.v7.widget.RecyclerView;
import android.util.TypedValue;
import android.view.View;
import android.widget.TextView;
import ca.antonious.viewcelladapter.R;
import ca.antonious.viewcelladapter.viewcells.AbstractViewCell;
/**
* Created by Ge... | {
"content_hash": "f23b6792600dc15691898f8eb02ec391",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 164,
"avg_line_length": 32.271186440677965,
"alnum_prop": 0.6334033613445378,
"repo_name": "gantonious/ViewCellAdapter",
"id": "6838b86745eaa302162e43c46497df9898188628",
... |
(function(){ 'use strict';
// register controller on the module
angular.module('runculator.app')
.controller('AppController', AppController);
AppController.$inject = ['$translate','$timeout','runculatorConfig'];
function AppController($translate, $timeout, runculatorConfig){
/* jshint validthis: true */
v... | {
"content_hash": "6d4da73e80461262b2494341ca53cd7f",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 70,
"avg_line_length": 21.3768115942029,
"alnum_prop": 0.6549152542372881,
"repo_name": "dev-runner/RunCulator",
"id": "88f39a81b92f24dd87cd724c90e915fcb032e9da",
"size": "... |
require 'lugg/request'
module Lugg
describe Request do
subject { described_class.new('test') }
it 'considers two objects with the same source equal' do
other = Request.new('test')
expect(subject).to eql(other)
expect(subject == other).to be_true
end
it 'can not modify the contents... | {
"content_hash": "0afbbfa12324a5383575ea14d2ca4fe5",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 121,
"avg_line_length": 39.611111111111114,
"alnum_prop": 0.5855539971949509,
"repo_name": "avdgaag/lugg",
"id": "bd4e2b2aa47cffd80ec5fd84764c66a8a51b8135",
"size": "1426",... |
package client.app.taxes.tasks;
import share.app.dictionary.Category.Categories;
import share.app.taxes.Tax;
import client.app.system.dictionary.DictionaryManager;
import client.app.taxes.gui.def.GUIEditTax;
import client.app.taxes.operations.OperationsTaxes;
public class EditTax extends BaseTax
{
private ... | {
"content_hash": "8fe58e7d7440d508ed68e9d23c69c61e",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 153,
"avg_line_length": 19.788888888888888,
"alnum_prop": 0.631106120157215,
"repo_name": "vndly/saas",
"id": "a9931135da407fd2a530140be17982368b7710a5",
"size": "1781",
... |
package org.bouncycastle.pqc.crypto.xmss;
/**
* WOTS+ private key.
*/
final class WOTSPlusPrivateKeyParameters
{
private final byte[][] privateKey;
protected WOTSPlusPrivateKeyParameters(WOTSPlusParameters params, byte[][] privateKey)
{
super();
if (params == null)
{
... | {
"content_hash": "193b4bcb4403f2d7f263654ebb0dd34e",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 90,
"avg_line_length": 27.318181818181817,
"alnum_prop": 0.5740432612312812,
"repo_name": "bcgit/bc-java",
"id": "1ac19f19602e3f39a3928a47b0472b7333c88ed0",
"size": "1202",... |
package com.graphhopper.routing.util;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import com.graphhopper.reader.Relation;
import com.graphhopper.reader.Way;
import com.graphhopper.util.Helper;
public class BusFlagEncoder extends AbstractFla... | {
"content_hash": "5d9c757b3a4eb5b0604f516d44fdb414",
"timestamp": "",
"source": "github",
"line_count": 352,
"max_line_length": 92,
"avg_line_length": 31.03125,
"alnum_prop": 0.7051176416735329,
"repo_name": "engaric/graphhopper",
"id": "d8a254eda5aafd526666a062b671e8dc59885a0d",
"size": "10925",
... |
import Sharp from "sharp";
import { dirname } from "path";
export default class Image {
constructor(fsPath, urlPath, maxScale) {
this.fsPath = fsPath;
this.urlPath = urlPath;
this.maxScale = maxScale;
}
getShortPath(newFileName) {
return `${dirname(this.urlPath)}/${newFileName}`;
}
resizeIm... | {
"content_hash": "d2f9c791a01250bd55a1355417c9a7c4",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 67,
"avg_line_length": 25,
"alnum_prop": 0.5870967741935483,
"repo_name": "retyui/postcss-image-set-generator",
"id": "8bdfcd2aa237ed5e3dddf9879ee92d1ed8206c3f",
"size": "7... |
//
// IDmeWebVerifyKeychainData.h
// WebVerifySample
//
// Copyright © 2016 ID.me, Inc. All rights reserved.
//
#ifndef IDmeWebVerifyKeychainData_h
#define IDmeWebVerifyKeychainData_h
#import <Foundation/Foundation.h>
@interface IDmeWebVerifyKeychainData : NSObject
-(NSString* _Nullable)getLatestUsedScope;
-(NSS... | {
"content_hash": "3cca57cb17bbb2a46e45b6b4d45ed790",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 78,
"avg_line_length": 29.636363636363637,
"alnum_prop": 0.7740286298568507,
"repo_name": "IDme/ID.me-WebVerify-SDK-iOS",
"id": "9eb372b3007c5e67424816ebf83dbfb004e96ca4",
... |
<Type Name="SunSliceAccum" FullName="MonoMac.OpenGL.SunSliceAccum">
<TypeSignature Language="C#" Value="public enum SunSliceAccum" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed SunSliceAccum extends System.Enum" />
<AssemblyInfo>
<AssemblyName>MonoMac</AssemblyName>
<AssemblyVer... | {
"content_hash": "5d9c9a4eed16bc8f8e985779ace90971",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 147,
"avg_line_length": 36.193548387096776,
"alnum_prop": 0.6844919786096256,
"repo_name": "dlech/monomac",
"id": "8a96f7c68967968b909af6efe90fcb7389018168",
"size": "1122"... |
"""
Base class for stroke and fill providing color and alpha channel.
"""
import abc
class RgbaColor(metaclass=abc.ABCMeta):
"""Abstract RGB color with an alpha channel."""
def __init__(self, viewport):
super().__init__()
self._viewport = viewport
self._color = '#000000'
se... | {
"content_hash": "7eb9b07292ec9a921df48ef377689ed9",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 79,
"avg_line_length": 26.754716981132077,
"alnum_prop": 0.5888575458392101,
"repo_name": "bzaczynski/ogre",
"id": "81178e471d8d50d2e8cd954564f291963e0807e9",
"size": "2541... |
package com.github.blacklocus.rdsecho.utl;
import com.amazonaws.services.rds.model.DBInstance;
import com.amazonaws.services.rds.model.DBSnapshot;
import com.amazonaws.services.rds.model.Tag;
import com.github.blacklocus.rdsecho.EchoCfg;
import com.github.blacklocus.rdsecho.EchoConst;
import com.google.common.base.Op... | {
"content_hash": "74afd54d1cd2961bfa3fc525853c4e62",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 124,
"avg_line_length": 35.34939759036145,
"alnum_prop": 0.6768916155419223,
"repo_name": "blacklocus/rds-echo",
"id": "46f34c0221c29d3758d055108805f95db5890725",
"size": "... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "a8104d92babb0e944fbf3b5dbad0ac00",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "d7a054da51e95615c67a4a9f5258855259088561",
"size": "18... |
package org.xcolab.view.taglibs.xcolab.jspTags.discussion.actions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bin... | {
"content_hash": "a7d76d4e3a336bf936f79dca071674e4",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 96,
"avg_line_length": 43.10344827586207,
"alnum_prop": 0.7808,
"repo_name": "CCI-MIT/XCoLab",
"id": "b2beb4c1a6d8619335f8bedd169ce5d0f4f88111",
"size": "2500",
"binary":... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Cache;
class ElectionsController extends Controller
{
const CACHE_PREFIX = 'elections:';
const CACHE_TIMEOUT = 1440;
protected $civicinfo;
public function __construct() {
$this->civicinfo = new \App\Services\GoogleCivicInfo;
}
public f... | {
"content_hash": "138ebe78217e6adafb400c4597f25930",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 24.305555555555557,
"alnum_prop": 0.7097142857142857,
"repo_name": "athill/informedelectorate.net",
"id": "ea379bafda341318b7ad5ecdc0c48eb90fe68442",
... |
package org.osgi.resource.dto;
import java.util.List;
import org.osgi.dto.DTO;
import org.osgi.resource.Wiring;
/**
* Data Transfer Object for a Wiring node.
*
* @author $Id$
* @NotThreadSafe
*/
public class WiringDTO extends DTO {
/**
* The unique identifier of the wiring node.
*
* <p>
... | {
"content_hash": "de75bef5424336b97cacc86ded45398e",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 76,
"avg_line_length": 21.783333333333335,
"alnum_prop": 0.6350420811017597,
"repo_name": "osgi/osgi",
"id": "28737b9ba213fb49b8ebe824b1b2592be065257e",
"size": "2126",
"... |
title: 'Second Post'
date: 2015-03-21 02:46:34
categories: blog development
tags: code
---
#Second post
## like a boss
| {
"content_hash": "092bbd28da36ee6949ca584df65e60c8",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 28,
"avg_line_length": 12.2,
"alnum_prop": 0.6967213114754098,
"repo_name": "danipy/danipy.github.io",
"id": "ea4cb1d837f532e7e299c7570adc8c817f5e8e23",
"size": "126",
"b... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/mongi.iml" filepath="$PROJECT_DIR$/.idea/mongi.iml" />
</modules>
</component>
</project> | {
"content_hash": "5e3227af7e75be29153cbdc67a02f430",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 104,
"avg_line_length": 32.75,
"alnum_prop": 0.6526717557251909,
"repo_name": "StrangerMdj/mongi",
"id": "7db57e4724444a9a1c2ffcebbe1a7507a036c7e3",
"size": "262",
"binary... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "0987eca048fff027cdf75329095f5c4e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "581a84eeb18862328da3e25de8724558b61d4498",
"size": "185... |
package com.google.cloud.bigtable.admin.v2.models;
import static com.google.common.truth.Truth.assertThat;
import com.google.bigtable.admin.v2.ColumnFamily;
import com.google.bigtable.admin.v2.GcRule;
import com.google.bigtable.admin.v2.Table.TimestampGranularity;
import com.google.bigtable.admin.v2.TableName;
impor... | {
"content_hash": "47f0de8d69dd2068ce84de21b8dfd3c6",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 95,
"avg_line_length": 39.36842105263158,
"alnum_prop": 0.6280748663101604,
"repo_name": "googleapis/java-bigtable",
"id": "b94be17e7f7a8979e1e78e5f56e65b400822a476",
"size... |
<!DOCTYPE html>
<meta charset=utf-8>
<title>Redirecting...</title>
<link rel=canonical href="../也/index.html">
<meta http-equiv=refresh content="0; url='../也/index.html'">
<h1>Redirecting...</h1>
<a href="../也/index.html">Click here if you are not redirected.</a>
<script>location='../也/index.html'</script>
| {
"content_hash": "208c5af82365ef8f6bef4501125807b7",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 67,
"avg_line_length": 38.5,
"alnum_prop": 0.6785714285714286,
"repo_name": "hochanh/hochanh.github.io",
"id": "b103cd58993671b95cba6ae30c80e793f0e33395",
"size": "316",
"... |
"""empty message
Revision ID: e62680af2bfa
Revises: 190163627111
Create Date: 2016-04-01 12:22:17.505613
"""
# revision identifiers, used by Alembic.
revision = 'e62680af2bfa'
down_revision = '190163627111'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | {
"content_hash": "9f28a03a745da466dcc92cef010a1bf7",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 81,
"avg_line_length": 29.2,
"alnum_prop": 0.6792237442922374,
"repo_name": "lancecopper/flasky_blog",
"id": "67132694466b0852519e5fccc13628f58d423a92",
"size": "876",
"b... |
package org.eclipse.jnosql.artemis.graph;
import jakarta.nosql.NonUniqueResultException;
import jakarta.nosql.mapping.IdNotFoundException;
import jakarta.nosql.mapping.PreparedStatement;
import org.apache.tinkerpop.gremlin.structure.Direction;
import org.apache.tinkerpop.gremlin.structure.Transaction;
import java.ut... | {
"content_hash": "338c43c8ccdc3bff4830d9079b80e6c6",
"timestamp": "",
"source": "github",
"line_count": 322,
"max_line_length": 136,
"avg_line_length": 35.55590062111801,
"alnum_prop": 0.6394444929688182,
"repo_name": "JNOSQL/diana",
"id": "6d0112984fd13a3bc46cc089e7309d47573a3fcf",
"size": "12030"... |
namespace ROCKSDB_NAMESPACE {
// Index that leverages an internal hash table to quicken the lookup for a given
// key.
class HashIndexReader : public BlockBasedTable::IndexReaderCommon {
public:
static Status Create(const BlockBasedTable* table,
FilePrefetchBuffer* prefetch_buffer,
... | {
"content_hash": "c5d6ea85abc9fadcd746f115143d94a6",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 80,
"avg_line_length": 38.24324324324324,
"alnum_prop": 0.6855123674911661,
"repo_name": "TeamSPoon/logicmoo_workspace",
"id": "fecd1e5c8b5f8b27e6d8a6908647def76efa6bb1",
"... |
#if !defined(FUSION_INCLUDE_DEDUCE_SEQUENCE)
#define FUSION_INCLUDE_DEDUCE_SEQUENCE
#include <lslboost/fusion/support/deduce_sequence.hpp>
#endif
| {
"content_hash": "a021953e6810c4dccf01f4d40bf80c3a",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 54,
"avg_line_length": 21.285714285714285,
"alnum_prop": 0.7986577181208053,
"repo_name": "gazzlab/LSL-gazzlab-branch",
"id": "4394eff6353b8e581ce88d5c8a9566e3c6b3a2c0",
"si... |
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html dir="rtl" lang="en"> <!--<![endif]-->
<head>
<title>Unify - Responsive Website Template</title>
<!-- Meta -->
<meta charset="utf-8">
<meta name="vie... | {
"content_hash": "a9c8a082f7aedd5bd353d3339cca2493",
"timestamp": "",
"source": "github",
"line_count": 1113,
"max_line_length": 292,
"avg_line_length": 63.906558849955076,
"alnum_prop": 0.4082077381621865,
"repo_name": "code1492/jenkinstest",
"id": "1b3606fa788b3e7ee86a86072fe1720dcef9fde0",
"size... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.