text stringlengths 2 1.04M | meta dict |
|---|---|
set -o errexit
set -o nounset
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
STDLIB_TOKEN=$1
if [[ ${STDLIB_TOKEN} == "" ]]
then
echo "STDLIB_TOKEN needs to be supplied as first script argument."
exit 1
fi
ponyc packages/stdlib --docs-public --pass expr
sed -i 's/site_name:\ stdlib/site_name:\ Pony Standard Library/'... | {
"content_hash": "b2426c4a7e9778abc20ccc2b3ffe0f95",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 88,
"avg_line_length": 26.52173913043478,
"alnum_prop": 0.7311475409836066,
"repo_name": "sgebbie/ponyc",
"id": "2c05eabaabeabb4a89ffbfedfc67d962c0ff708b",
"size": "623",
... |
/*
* GET home page.
*/
var models = require('../models');
function include(arr,obj) {
return (arr.indexOf(obj) != -1);
}
exports.view = function(req, res){
var allBool = req.query.all == "true";
function formatAMPM(date) {
var hours = date.getHours();
var minutes = date.getMi... | {
"content_hash": "12a6cdc85061031746d2c6ee05b226ba",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 101,
"avg_line_length": 24.747826086956522,
"alnum_prop": 0.5997891777933942,
"repo_name": "alexpopof/147-project",
"id": "85fa646358c40686f2950891d650a5819a929eea",
"size... |
<?php
namespace KDuma\emSzmalAPI;
use DateTime;
use Exception;
use GuzzleHttp\Client;
use KDuma\emSzmalAPI\CacheProviders\CacheProviderInterface;
/**
* Class emSzmalAPI.
*/
class emSzmalAPI
{
/**
* @var Client
*/
protected $client;
/**
* @var string
*/
private $api_id;
/**... | {
"content_hash": "2d34cf4ce7336a5d821c107f28fe0f7b",
"timestamp": "",
"source": "github",
"line_count": 280,
"max_line_length": 182,
"avg_line_length": 26.5,
"alnum_prop": 0.4931266846361186,
"repo_name": "kduma/L5-emSzmal-api",
"id": "160dfd75d2092aeb831f89114aec64ffe451524e",
"size": "7420",
"b... |
'''
Contributors of this code: Alexander Belchenko, Harco Kuppens, Justin Riley.
http://code.activestate.com/recipes/440694-determine-size-of-console-window-on-windows/
https://stackoverflow.com/questions/566746/how-to-get-linux-console-window-width-in-python
https://gist.github.com/jtriley/1108174
I changed python2 ... | {
"content_hash": "465e9f9cc81729e912fbd4a13fbc5dc6",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 179,
"avg_line_length": 33.21782178217822,
"alnum_prop": 0.6038748137108793,
"repo_name": "willettk/common_language",
"id": "de162afa6c237c8e4898acd945debbb501b4d3bd",
"si... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Sun Public License Notice
The contents of this file are subject to the Sun Public License
Version 1.0 (the "License"). You may not use this file except in
compliance with the License. A copy of the License is available at
http://www.sun.com/
The Original Cod... | {
"content_hash": "e33dbf99d0808802b73b6e295f04853e",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 139,
"avg_line_length": 47.125,
"alnum_prop": 0.7259062776304156,
"repo_name": "qcccs/PhpPalette",
"id": "e55299e8ae26dee8de1fd0b4ccf4850deb090232",
"size": "1131",
"bina... |
import json
import queue
import time
from collections import namedtuple
from random import shuffle
from threading import Thread
import numpy as np
import tensorflow as tf
from dataset import to_sentences, tokens_to_ids, tf_Examples, SENTENCE_END, PAD_TOKEN
ModelInput = namedtuple('ModelInput',
... | {
"content_hash": "171e9a39839411eae90cdedd91f8008b",
"timestamp": "",
"source": "github",
"line_count": 228,
"max_line_length": 143,
"avg_line_length": 39.19736842105263,
"alnum_prop": 0.6295177352579165,
"repo_name": "drakessn/Question-Answering",
"id": "9a39f400d184898616ff0ceb25365d0170d60626",
... |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed><tipo>Beco</tipo><logradouro>União</logradouro><bairro>Jacaré</bairro><cidade>Cabo Frio</cidade><uf>RJ</uf><cep>28922630</cep></feed>
| {
"content_hash": "2f3fbe669b8f74ddf715e11eca8025ff",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 139,
"avg_line_length": 98,
"alnum_prop": 0.7142857142857143,
"repo_name": "chesarex/webservice-cep",
"id": "4541da89cee3917dfb82dcfd483fc2bcdf41d08e",
"size": "198",
"bin... |
class Ezine::TestMembersController < ApplicationController
include Cms::BaseFilter
include Cms::CrudFilter
model Ezine::TestMember
navi_view "ezine/main/navi"
private
def fix_params
{ cur_user: @cur_user, cur_site: @cur_site, node_id: @cur_node.id }
end
public
def index
raise "403" unles... | {
"content_hash": "64dbfc87e466ba3fbfa9755ae3e543cc",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 79,
"avg_line_length": 22.24137931034483,
"alnum_prop": 0.6465116279069767,
"repo_name": "tany/ss",
"id": "8dabdb897d5422f6b7e934a4fe9e1fc1b54d690f",
"size": "645",
"bina... |
#include <aws/ec2/model/DescribeAccountAttributesResponse.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <utility>
using namespace Aws::EC2::Model;
using namespace Aws::Util... | {
"content_hash": "05a9ebaae06b95c9816656ba75bd32c2",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 139,
"avg_line_length": 32.25,
"alnum_prop": 0.7509043927648579,
"repo_name": "awslabs/aws-sdk-cpp",
"id": "1e04c20c323438b81eeb865043fac68434e20bdf",
"size": "2054",
"bi... |
'use strict';
var chai = require('chai');
var should = chai.should();
var Mnemonic = require('..');
var errors = require('bitcore-lib').errors;
var bip39_vectors = require('./data/fixtures.json');
describe('Mnemonic', function() {
this.timeout(30000);
it('should initialize the class', function() {
should.ex... | {
"content_hash": "9c9abc0a76c638331f72820082521302",
"timestamp": "",
"source": "github",
"line_count": 219,
"max_line_length": 136,
"avg_line_length": 33.23287671232877,
"alnum_prop": 0.6323165704863973,
"repo_name": "bitjson/bitcore-mnemonic",
"id": "5d522a588099edf76b6c6fc29a1610c71132b029",
"si... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <assert.h>
#include "mpi.h"
#include "mdhim.h"
#define KEYS 10000
#define TOTAL_KEYS 10000
#define SLICE_SIZE 100000
#define SECONDARY_SLICE_SIZE 10000
#define PRIMARY 1
#define SECONDARY 2
uint64_t **keys;
int *key_lens;
uint64_t **values;
int *va... | {
"content_hash": "27b80d4c01fd1c0b3b8e223afb6bf5e9",
"timestamp": "",
"source": "github",
"line_count": 260,
"max_line_length": 102,
"avg_line_length": 28.15,
"alnum_prop": 0.6403880311517967,
"repo_name": "mdhim/mdhim-tng",
"id": "50cd3b459ce8fa15a85614da9b26be2b5a574279",
"size": "7319",
"binar... |
using System.Collections.Generic;
using StickEmApp.Entities;
using StickEmApp.Windows.ViewModel;
namespace StickEmApp.Windows.Builders
{
public interface IVendorListItemBuilder
{
IReadOnlyCollection<VendorListItem> BuildFrom(IReadOnlyCollection<Vendor> vendorList);
}
} | {
"content_hash": "cb8721c4772f2b9dc9db007bae798aa3",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 94,
"avg_line_length": 26.454545454545453,
"alnum_prop": 0.7938144329896907,
"repo_name": "jdt/StickEmApp",
"id": "fcaa5f03976c6de5bd1d6e750939d519485d4039",
"size": "293",... |
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using LiteGuard;
namespace LeagueRecorder.Server.Infrastructure.LeagueApi
{
public class ApiKeyMessageHandler : DelegatingHandler
{
private readonly string _apiKey;
public ApiKeyMessag... | {
"content_hash": "6a5df312ee4de31769ee80b2bd4041ae",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 127,
"avg_line_length": 26.875,
"alnum_prop": 0.6558139534883721,
"repo_name": "haefele/LeagueRecorderOld",
"id": "02acf63b3b0a79b398ef3eca5e9e5416cb6c878e",
"size": "1077"... |
import * as SunCalc from 'suncalc';
let d: Date;
let x: number;
let b: boolean;
const date = new Date();
const latitude = 0.0;
const longitude = 0.0;
const times = SunCalc.getTimes(date, latitude, longitude);
d = times.dawn;
d = times.dusk;
d = times.goldenHour;
d = times.goldenHourEnd;
d = times.nadir;
d = times.na... | {
"content_hash": "3fc17c71c70ea754e985ff20b57bdb27",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 65,
"avg_line_length": 20.9375,
"alnum_prop": 0.7064676616915423,
"repo_name": "georgemarshall/DefinitelyTyped",
"id": "0bc8772d04db04efce24e4cf188996d4f3c9239f",
"size": "... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using IIS.SLSharp.Bindings.MOGRE;
using IIS.SLSharp.Shaders;
using Mogre;
namespace IIS.SLSharp.Examples.MOGRE.GeoClipmap.GeoClipmap
{
public class Patch : IDisposable
{
private ... | {
"content_hash": "4ebd5ede9b1e34448ebb0a7232b5d3d8",
"timestamp": "",
"source": "github",
"line_count": 193,
"max_line_length": 170,
"avg_line_length": 30.803108808290155,
"alnum_prop": 0.45164003364171573,
"repo_name": "hach-que/SLSharp",
"id": "184cf263ae0c80505cb3105c7f073c1b065509d3",
"size": "... |
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<data>
<variable
name="content"
type="java.lang.String" />
</data>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layo... | {
"content_hash": "ca8af85658dd45cdf3838c68e8dfaa00",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 67,
"avg_line_length": 27.82608695652174,
"alnum_prop": 0.5921875,
"repo_name": "RichardGottschalk/RecyclerAdapter",
"id": "4c811f91a65c55ee8160a0d887377482c874d413",
"size... |
import * as childProcess from "child_process";
import * as fs from "fs";
import * as process from "process";
import * as tmp from "tmp";
// Mine
import * as repo from "../src/repo";
import * as util from "../src/util";
import * as cc from "./core-common";
describe("repo", () => {
const startDir = process.cwd();
l... | {
"content_hash": "0317a9fcece7d2fb0a8362aee67d08d1",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 99,
"avg_line_length": 33,
"alnum_prop": 0.6567783094098884,
"repo_name": "JohnRGee/arm",
"id": "1836e4e58ff037a2b7cb50ae08230d316525822b",
"size": "3181",
"binary": fals... |
<?php
defined('_JEXEC') or die;
/**
* Installer HTML class.
*
* @since 2.5
*/
abstract class InstallerHtmlManage
{
/**
* Returns a published state on a grid.
*
* @param integer $value The state value.
* @param integer $i The row index.
* @param boolean $enabled An optional sett... | {
"content_hash": "62e3e212b2b588dd6e518c535bf8a02c",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 92,
"avg_line_length": 21.098360655737704,
"alnum_prop": 0.5944055944055944,
"repo_name": "kobudev/lpp",
"id": "da18a185e868092747b47ac6f31e5a435a334029",
"size": "1532",
... |
import { Component, OnInit, Input } from '@angular/core';
import { Page } from '../models';
@Component({
selector: 'app-pages',
templateUrl: './pages.component.html',
styleUrls: ['./pages.component.less']
})
export class PagesComponent implements OnInit {
@Input() activePage: Page;
Page = Page;
ngOnInit(... | {
"content_hash": "f2cef0b165b8fb1858642fe92d602ada",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 57,
"avg_line_length": 19.823529411764707,
"alnum_prop": 0.658753709198813,
"repo_name": "lematty/mysite",
"id": "53ba6f7497e33f5d7d55fb42b2a3f8102725ae8e",
"size": "337",
... |
import logging
import numpy as np
import pandas as pd
from . import snpmatch
from . import parsers
from . import snp_genotype
log = logging.getLogger(__name__)
def simulateSNPs(g, AccID, numSNPs, outFile=None, err_rate=0.001):
assert type(AccID) is str, "provide Accession ID as a string"
assert AccID in g.g.a... | {
"content_hash": "58eb2b7dbe7d7da37a2258b1462a2bf8",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 185,
"avg_line_length": 57.19117647058823,
"alnum_prop": 0.651581383389046,
"repo_name": "Gregor-Mendel-Institute/SNPmatch",
"id": "bc10a3950ca1027577d27908a6d9c6baaafca64a",... |
package com.github.binarywang.wxpay.testbase;
import com.github.binarywang.wxpay.config.WxPayConfig;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
* The type Xml wx pay config.
*/
@XStreamAlias("xml")
public class XmlWxPayConfig extends WxPayConfig {
private String openid;
/**
* Gets openid.... | {
"content_hash": "a9f6850abe6ac5337eae7694544802cb",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 57,
"avg_line_length": 18.027027027027028,
"alnum_prop": 0.6686656671664168,
"repo_name": "binarywang/weixin-java-tools",
"id": "bdb394cd296baad880545cfc03f0bd4ba7be1280",
... |
'use strict'
import expect from './common'
import BaseGitHubApi from '../src/api'
describe('BaseGitHubApi', function () {
it('should return a valid api instance without config', () => {
const api = new BaseGitHubApi()
expect(api).to.be.an.instanceOf(BaseGitHubApi)
})
describe('#doRequest', function ()... | {
"content_hash": "17f219dd5d27a9be5abf498bf9a7e6ff",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 65,
"avg_line_length": 26.689655172413794,
"alnum_prop": 0.6059431524547804,
"repo_name": "jamsinclair/github-lite",
"id": "a4d72fb8cb5c4c13b734be6fd3e3a196491ad6ab",
"size... |
import re
import sys
from subprocess import PIPE, STDOUT
import subprocess
def err(msg="Undetermined error"):
print "ERROR"
print msg
sys.exit(0)
if __name__ == '__main__':
if len(sys.argv) < 2:
genders_query = '~NONE' # Trick to list all hosts
else:
genders_query = sys.argv[1]
... | {
"content_hash": "fb0de1ff5069a26fe00d75060666c00f",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 84,
"avg_line_length": 23.9,
"alnum_prop": 0.5913528591352859,
"repo_name": "wcooley/splunk-puppet",
"id": "56b73ee069c1e2b2d540e72bc0dec739ab8eb107",
"size": "1516",
"bi... |
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "7d4759e61a3ca305b36deb2de7598f69",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 23,
"avg_line_length": 9.076923076923077,
"alnum_prop": 0.6779661016949152,
"repo_name": "mdoering/backbone",
"id": "1187159b272bf15d3b037946c20964a41795081a",
"size": "171... |
/**
* SECTION:element-av1dec
*
* AV1 Decoder.
*
* <refsect2>
* <title>Example launch line</title>
* |[
* gst-launch-1.0 -v filesrc location=videotestsrc.webm ! matroskademux ! av1dec ! videoconvert ! videoscale ! autovideosink
* ]|
* </refsect2>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include ... | {
"content_hash": "8def412068ece6223595645d710f60f4",
"timestamp": "",
"source": "github",
"line_count": 467,
"max_line_length": 124,
"avg_line_length": 28.843683083511777,
"alnum_prop": 0.6358574610244989,
"repo_name": "google/aistreams",
"id": "6e0a9bd5dbc087172bb0f91e19dcaa44cb2b7c57",
"size": "1... |
echo "STARTING build.sh"
# commenting out this loading geonames stuff now because free travis ci doens't have enough memory
#cd /tmp && wget http://download.geonames.org/export/dump/allCountries.zip
#cd /tmp && unzip allCountries.zip
# takes about 20 min an an AWS Medium EC2 Ubuntu 15.04
#sudo -Hu postgres psql -f /hom... | {
"content_hash": "eb2d349e9fbbb36e10e7914fc291d4e3",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 233,
"avg_line_length": 58.450980392156865,
"alnum_prop": 0.7507547802750755,
"repo_name": "DanielJDufour/firstdraft",
"id": "06a119238163ffbdd2dd234e00628f1d4a2ccbca",
"si... |
declare type RoutingProjectItemParams = {
slug: string
};
| {
"content_hash": "636b0a5c6dce72a43287dd4c6dfc97cf",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 41,
"avg_line_length": 20.666666666666668,
"alnum_prop": 0.7258064516129032,
"repo_name": "BrianLusina/brianlusina.github.io",
"id": "0e1e89c0f8ba4a0cd61d38939854727f1971cace"... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
in Ciferri, Publções Inst. Micol. Recife 56: 395 (1959)
#### Original name
Ciferriotheca brosimi Bat. & I.H. Lima
### Remarks
null | {
"content_hash": "1bb706877ab9f43512cc76071412254b",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 55,
"avg_line_length": 14.923076923076923,
"alnum_prop": 0.7010309278350515,
"repo_name": "mdoering/backbone",
"id": "45d93631a8a86a5b39d37f4fcaf6fdb8563cfdea",
"size": "25... |
import { TestBed } from '@angular/core/testing';
import { AppModelMemoryToModelModule } from './memory-to-model.module';
import { ModelToMemoryService } from './model-to-memory.service';
import { TEST_MEMORY, TEST_MODEL } from './test-memory-to-model';
describe('Service: ModelToMemoryService', () => {
let servic... | {
"content_hash": "7d41b7091a0e9ce188e794fa3dfeea16",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 83,
"avg_line_length": 31.625,
"alnum_prop": 0.6389986824769434,
"repo_name": "nb48/chart-hero",
"id": "2ac3cffd0d46a9e0c20f42565a3e0aec776983b8",
"size": "759",
"binary"... |
<?php
echo $form->textFieldGroup($model, 'y_adsoyad', array(
'labelOptions' => array('label' => 'Adı Soyadı', 'class' => 'col-sm-2'),
'wrapperHtmlOptions' => array('class' => 'col-sm-6')
));
echo $form->textFieldGroup($model, 'y_email', array(
'labelOptions' => array('label' => 'E-Posta', 'class' => 'col-... | {
"content_hash": "50935dafaee6e55e5f35ce1a072deb60",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 85,
"avg_line_length": 34.09090909090909,
"alnum_prop": 0.5733333333333334,
"repo_name": "sevenseez/A-TASARISI",
"id": "1613c8675a2e2474de8de997fc9a2e8b5aab1a56",
"size": "... |
package gOsm
import log "github.com/helmutkemper/seelog"
func init(){
logger, _ := log.LoggerFromConfigAsString( `<seelog levels="off"></seelog>` )
log.ReplaceLogger( logger )
}
| {
"content_hash": "a44b8090117653a55c41002edc57b1cc",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 79,
"avg_line_length": 23,
"alnum_prop": 0.7119565217391305,
"repo_name": "helmutkemper/gOsm",
"id": "bdca4a5088df6cdcafc610e01533ca9f4e0e5f59",
"size": "184",
"binary": f... |
/*!
* Reqwest! A general purpose XHR connection manager
* (c) Dustin Diaz 2013
* https://github.com/ded/reqwest
* license MIT
*/
!function (name, context, definition) {
if (typeof module != 'undefined' && module.exports) module.exports = definition()
else if (typeof define == 'function' && define.amd) def... | {
"content_hash": "851797429762bed94d8ab2f6c8d339c1",
"timestamp": "",
"source": "github",
"line_count": 4307,
"max_line_length": 161,
"avg_line_length": 34.01950313443232,
"alnum_prop": 0.5343770901298098,
"repo_name": "niki-funky/Telerik_Academy",
"id": "b7a9b53f514e34bb75db10df35486da29326b340",
... |
package org.litepal;
import android.text.TextUtils;
import org.litepal.crud.LitePalSupport;
import org.litepal.crud.QueryHandler;
import org.litepal.crud.async.AverageExecutor;
import org.litepal.crud.async.CountExecutor;
import org.litepal.crud.async.FindExecutor;
import org.litepal.crud.async.FindMultiExecutor;
i... | {
"content_hash": "988d5a505e2992ea27faea7ccdc79270",
"timestamp": "",
"source": "github",
"line_count": 882,
"max_line_length": 170,
"avg_line_length": 33.93764172335601,
"alnum_prop": 0.5983028764240136,
"repo_name": "LitePalFramework/LitePal",
"id": "9097591f36fd58c8a3553a944d84304be478adb2",
"si... |
using System;
using System.Web;
using System.Web.Mvc;
using Microsoft.SharePoint.Client;
//Must be in the same namespace as SharePointContextFilterAttribute
namespace SharePointPermissionFiltersWeb
{
public class SharePointEffectivePermissionsFilterAttribute : ActionFilterAttribute
{
public override v... | {
"content_hash": "fe92df91f806051db5d3759d9bd9ab9b",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 86,
"avg_line_length": 27.692307692307693,
"alnum_prop": 0.6708333333333333,
"repo_name": "dafunkphenomenon/dev",
"id": "c1ee6298dab7a7f97dce02f43a235c5cfd9528c4",
"size": ... |
package net.venaglia.nondairy.soylang.elements;
import static net.venaglia.nondairy.soylang.SoyElement.*;
import com.intellij.lang.ASTNode;
import com.intellij.navigation.ItemPresentation;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.ElementManipulators;
import com.intellij.psi.PsiElement;
im... | {
"content_hash": "3b7a0ddb624a8ed0f8ba1b66a4021a23",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 125,
"avg_line_length": 33.85585585585586,
"alnum_prop": 0.6729643427354977,
"repo_name": "Arcnor/Non-Dairy-Soy-Plugin",
"id": "18bd783fe10e9ac502b3a19970ddd4763c8d202b",
... |
/* -----------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
body { font-family:'DB Helvethaica X 45 Li', Arial, sans-serif; font-size:26px; font-weight:normal; color:#181818; background:#fff; }
a { display... | {
"content_hash": "db18826ca669addc5d5f6ecf3493bacc",
"timestamp": "",
"source": "github",
"line_count": 650,
"max_line_length": 338,
"avg_line_length": 83.91846153846154,
"alnum_prop": 0.7109465231818431,
"repo_name": "hlex/vms",
"id": "c56c6965dccc0348df977117f41694a3ec4e3db1",
"size": "54547",
... |
CHANGELOG
=========
### 2013-12-05
* [BC BREAK] Move some classes to SonataCoreBundle, you need to add a new dependency
### 2013-11-23
* [BC BREAK] added ``getBatchActions`` to the AdminInterface
If you do not extend the Admin class, you need to add this method to
your admin.
### 2013-10-13
* [BC BREAK] added... | {
"content_hash": "c19835414a003c0482188d4d1e427258",
"timestamp": "",
"source": "github",
"line_count": 226,
"max_line_length": 163,
"avg_line_length": 32.47787610619469,
"alnum_prop": 0.7325613079019073,
"repo_name": "PhilippeGremmel/fromage_symfony",
"id": "ae3af42591863107254cc54cf1d345247a8b311c"... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="da" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About GammaCoin</source>
<translation>Om GammaCoin</translation>
</mes... | {
"content_hash": "9bb3625aedae32a183da799f3ce7611a",
"timestamp": "",
"source": "github",
"line_count": 2938,
"max_line_length": 414,
"avg_line_length": 39.72328114363513,
"alnum_prop": 0.6352917991208753,
"repo_name": "nuggetbram/gammacoin",
"id": "6bc858eaeafab873ced8d17d66c32d5220688643",
"size"... |
using System;
using System.IO;
using System.Runtime.InteropServices;
using SharpDX.Mathematics.Interop;
namespace SharpDX.Direct3D9
{
public partial class CubeTexture
{
/// <summary>
/// Initializes a new instance of the <see cref="CubeTexture"/> class.
/// </summary>
/// <param... | {
"content_hash": "5e3d223720c7cd38a18dec52aa3609bd",
"timestamp": "",
"source": "github",
"line_count": 736,
"max_line_length": 472,
"avg_line_length": 59.14402173913044,
"alnum_prop": 0.6126349643923731,
"repo_name": "weltkante/SharpDX",
"id": "3277929c87547ce8e6562d3411b857000a13273c",
"size": "4... |
namespace DataService.Enum
{
/// <summary>
/// Les Parametres Systems
/// </summary>
public enum MatrixSettings
{
/// <summary>
/// L'Annee Scolaire Actuelle
/// </summary>
CurrentAnneeScolaire = 1,
/// <summary>
/// La Periode Scolaire Actuelle
... | {
"content_hash": "ff0a66dbd4a4a9566dba26916aacd765",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 40,
"avg_line_length": 19.674418604651162,
"alnum_prop": 0.4858156028368794,
"repo_name": "HalidCisse/HLib",
"id": "41f3a812f7a8b168e1c6a45072f1e1475e379825",
"size": "848"... |
package com.griddynamics.jagger.util.statistics.percentiles;
import java.util.ArrayList;
// This class is a derivation of hist4j https://github.com/flaptor/hist4j
/**
* The HistogramDataNode stores the histogram data for a range of values.
* It knows the minimum and maximum values for which it counts the number ... | {
"content_hash": "5b18f21afa2c65fa89616a58883f2202",
"timestamp": "",
"source": "github",
"line_count": 176,
"max_line_length": 162,
"avg_line_length": 45.15340909090909,
"alnum_prop": 0.6331949163206242,
"repo_name": "Nmishin/jagger",
"id": "3a67ec35e0ee62416b9c91edc04a5cc6856681f2",
"size": "9039... |
(function( $ ) {
$.widget("smartclassroom.treeview", {
version: "1.0.0",
options: {
onNodeClick: function(node){},
onNodeCollapsed: function(node){},
onNodeExpanded: function(node){}
},
_create: function(){
var that = this, element =... | {
"content_hash": "ac56a2b41ac4488ecd00e1e492d6dac1",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 72,
"avg_line_length": 28.46875,
"alnum_prop": 0.4462129527991218,
"repo_name": "shaina-ashraf/smartclass",
"id": "dacc0ec6e5431395110b899ca03ad903393be125",
"size": "1822"... |
package adapter
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/goharbor/harbor/src/pkg/reg/model"
)
type fakedFactory struct {
}
func (fakedFactory) Create(*model.Registry) (Adapter, error) {
return nil, nil
}
func (fakedFactory) AdapterPattern() *mo... | {
"content_hash": "67bd3a4c7d9f23c3334fbd11f052054b",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 63,
"avg_line_length": 25.26388888888889,
"alnum_prop": 0.7163276525563497,
"repo_name": "wy65701436/harbor",
"id": "e5f6794347d51f31dd37b4e8b0a5d228441f943c",
"size": "241... |
//
// SDCycleScrollView.m
// SDCycleScrollView
//
// Created by aier on 15-3-22.
// Copyright (c) 2015年 GSD. All rights reserved.
//
/*
*********************************************************************************
*
* 🌟🌟🌟 新建SDCycleScrollView交流QQ群:185534916 🌟🌟🌟
*
* 在您使用此自动轮播库的过程中如果出现bug请及时以以下任意一种方式... | {
"content_hash": "5860cc98ab5bd4a2e0148edd6dc12936",
"timestamp": "",
"source": "github",
"line_count": 640,
"max_line_length": 167,
"avg_line_length": 32.1671875,
"alnum_prop": 0.7021907028707437,
"repo_name": "RocketsChen/CDDStore",
"id": "51c1afd4f02baaa422e6b1cbb0f4007b11d65da5",
"size": "21055... |
package com.formulasearchengine.mathosphere.mlp.cli;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
import java.io.Serializable;
@Parameters(commandDescription = "Applies the MLP evaluation to an evaluation dataset")
public class EvalCommandConfig extends FlinkMlpCommandConfig impleme... | {
"content_hash": "41befe913df11b0fe30c48bfe092d1db",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 87,
"avg_line_length": 28.705882352941178,
"alnum_prop": 0.7848360655737705,
"repo_name": "leokraemer/mathosphere",
"id": "2efe891fd2b29330daf9bb04060f1ee7b915cbf2",
"size"... |
package models
import anorm._
import play.api.db.DB
import java.util.{Date}
import play.api.Play.current
import scala.language.postfixOps
import anorm.{SQL, SqlParser}
import anorm.SqlParser._
case class User(id: Long, name: String, designation: String, email: String, password: String, isAdmin: Boolean)
/**
* Creat... | {
"content_hash": "4a400021fd01bdd2c1a681eee9528450",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 111,
"avg_line_length": 20.90909090909091,
"alnum_prop": 0.6243478260869565,
"repo_name": "anand-singh/csr-ticketing-system",
"id": "f5e913293d60a02207a13350a36de014519d9b57"... |
namespace mojo {
using blink::test::mojom::ClientToAuthenticatorProtocol;
using blink::test::mojom::Ctap2Version;
// static
ClientToAuthenticatorProtocol
EnumTraits<ClientToAuthenticatorProtocol, device::ProtocolVersion>::ToMojom(
device::ProtocolVersion input) {
switch (input) {
case ::device::ProtocolVersi... | {
"content_hash": "58916ea4e0583689d18699c43edf465e",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 76,
"avg_line_length": 28.208955223880597,
"alnum_prop": 0.707936507936508,
"repo_name": "scheib/chromium",
"id": "13f13cbc8d8c003efaf9fd4201c6735723f90151",
"size": "2143"... |
A high quality rip of the Eggman-OS.
The Eggman-OS is a high quality crapware made by the eggman croporation.
| {
"content_hash": "f58e9b4d5ab5fe11eb2ffb40f6f93bd5",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 72,
"avg_line_length": 37,
"alnum_prop": 0.7837837837837838,
"repo_name": "AAYapps/Eggman-OS",
"id": "f148e2b2c27e367487ae50d7b5961a4f4bcb82b9",
"size": "123",
"binary": f... |
svn status dev/doc/phpdoc | grep "?" | awk '{print $2}' | xargs svn add
svn status dev/doc/phpdoc | grep "!" | awk '{print $2}' | xargs svn del
svn ci -m "Update php documentation" dev/doc/phpdoc
| {
"content_hash": "b6dd24b5722032758fe3adbe9739ed72",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 71,
"avg_line_length": 65.33333333333333,
"alnum_prop": 0.6632653061224489,
"repo_name": "filesender/filesender",
"id": "c12e3e2335e5ce55f48c734834ab2824cdfa1d27",
"size": "... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http... | {
"content_hash": "731e90294f64ae4788730d72f6dd50b8",
"timestamp": "",
"source": "github",
"line_count": 464,
"max_line_length": 999,
"avg_line_length": 40.91379310344828,
"alnum_prop": 0.6073008849557522,
"repo_name": "statsmodels/statsmodels.github.io",
"id": "4720393f054b6fdb28b181a37f9cec66d856e12... |
#include <tommath.h>
#ifdef BN_MP_XOR_C
/* LibTomMath, multiple-precision integer library -- Tom St Denis
*
* LibTomMath is a library that provides multiple-precision
* integer arithmetic as well as number theoretic functionality.
*
* The library was designed directly after the MPI library by
* Michael Fromberger... | {
"content_hash": "1cd9b8956e95cc5dd77f3ef71937d031",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 66,
"avg_line_length": 22.829787234042552,
"alnum_prop": 0.6001863932898416,
"repo_name": "danchr/macports-base",
"id": "432f42eba2e2f0ac538c686dc87558d3af77250e",
"size": ... |
import React from 'react';
import classnames from 'classnames';
class ModalBody extends React.Component {
render() {
return (
<div {...this.props} className={classnames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalBody.propTypes = {
/**
... | {
"content_hash": "04cf72438560e8169b5725a7d3b6e0a3",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 99,
"avg_line_length": 19.307692307692307,
"alnum_prop": 0.6713147410358565,
"repo_name": "rapilabs/react-bootstrap",
"id": "40c667c00193fe6b424c5d86547885ee9a271d5d",
"siz... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "7131c9acdec400ee14385b3089ba84ab",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "017a9b4d61db40726841b9284c5435f43fcf2f3d",
"size": "19... |
package org.lwjgl.opengles;
public interface OES_stencil4 {
/** Accepted by the <internalformat> parameter of RenderbufferStorageOES: */
int GL_STENCIL_INDEX4_OES = 0x8D47;
} | {
"content_hash": "341ab8ae5e0bb2dd3a7fd7f61be2ab51",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 83,
"avg_line_length": 21.555555555555557,
"alnum_prop": 0.7216494845360825,
"repo_name": "ThePlexianNetwork/Grumy",
"id": "1e2c31b6776d5d1f5c3d461c65e2c1c79f164389",
"size"... |
using namespace g4;
using namespace std;
namespace http
{
ServerState::ServerState()
: _stateMutex(PTHREAD_MUTEX_INITIALIZER)
{
_configuration = Configuration::GetItems();
}
int ServerState::GetEventNumber() const
{
pthread_mutex_lock(&_stateMutex);
int eventNumber ... | {
"content_hash": "0a302c317705160adbd3e00b4a9c12c3",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 82,
"avg_line_length": 26.585365853658537,
"alnum_prop": 0.634862385321101,
"repo_name": "janpipek/g4application",
"id": "f5b740df45648ad34ee915c2f49ff3437c6abb70",
"size":... |
#include "third_party/blink/renderer/modules/webdatabase/database_tracker.h"
#include <memory>
#include "base/location.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/public/platform/web_security_origin.h"
#include "thir... | {
"content_hash": "f095d7fea5b1d110c18df573dd037300",
"timestamp": "",
"source": "github",
"line_count": 238,
"max_line_length": 88,
"avg_line_length": 37.07983193277311,
"alnum_prop": 0.6712747875354108,
"repo_name": "ric2b/Vivaldi-browser",
"id": "921153a7a2a4cdc00928b54999451c448a889b07",
"size":... |
@interface CarRuleModel : JSONModel
@property (nonatomic,strong) NSString <Optional> *airport_name;
@property (nonatomic,strong) NSString <Optional> *car_type_id;
@property (nonatomic,strong) NSString <Optional> *contain_mileage;
@property (nonatomic,strong) NSString <Optional> *high_low_speed;
@property (nonatomic,st... | {
"content_hash": "4660b6988defd19a23fc79521d26bd20",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 69,
"avg_line_length": 51.10526315789474,
"alnum_prop": 0.7744593202883625,
"repo_name": "NY-Z/MaShangTong-Driver",
"id": "f6fda9af0953dcab8367a7808df428b036906f16",
"size"... |
package com.amazonaws.services.medialive.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.medialive.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* StopTimecodeMarshaller
*/
@Generated("com.a... | {
"content_hash": "59b0e7efbce84d7b42cdf9cb59ddeedd",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 158,
"avg_line_length": 36.5531914893617,
"alnum_prop": 0.740395809080326,
"repo_name": "jentfoo/aws-sdk-java",
"id": "cee42bb8270c3c97e078423808ad041a5e85018f",
"size": "2... |
<?php
namespace PhpUnitGen\Container;
use PhpParser\Parser;
use PhpParser\ParserFactory;
use PhpUnitGen\Configuration\ConfigurationInterface\ConfigInterface;
use PhpUnitGen\Configuration\ConfigurationInterface\ConsoleConfigInterface;
use PhpUnitGen\Container\ContainerInterface\ContainerFactoryInterface;
use PhpUnit... | {
"content_hash": "229a6b5a5f93f5b3026aa8766c03dafd",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 106,
"avg_line_length": 36.58620689655172,
"alnum_prop": 0.7459943449575872,
"repo_name": "paul-thebaud/phpunit-generator",
"id": "3c12f379d2fc708f0624be0caedaba55fec44c86",
... |
<!DOCTYPE html>
<meta charset="utf-8">
<title>Test reference</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 20px/1 Ahem;
white-space: break-spaces;
color: green;
white-space: pre;
}
</style... | {
"content_hash": "cff3f164a8332ae9c3b3b9692fc9ff9c",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 76,
"avg_line_length": 26.875,
"alnum_prop": 0.6813953488372093,
"repo_name": "chromium/chromium",
"id": "798e35fd660b9d1e9681c7de01cb0efc923e6aa6",
"size": "430",
"binar... |
The contained AppleScript `Extract placeholder.scpt` augments [BBEdit](http://www.barebones.com/products/bbedit/)’s placeholders by reducing the work required to keep the text included as the placeholder label.
## BBEdit placeholders
A BBEdit placeholder is a portion of text prefixed with `<#` and suffixed with `#>`,... | {
"content_hash": "d5382ed444c2b6537876075121b86086",
"timestamp": "",
"source": "github",
"line_count": 127,
"max_line_length": 419,
"avg_line_length": 36.574803149606296,
"alnum_prop": 0.7741657696447793,
"repo_name": "ollicle/BBEdit-Extract-Placeholder",
"id": "62b611a26ace2c211dd80a92c0973d15cc451... |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed><tipo>Rua</tipo><logradouro>Cambé</logradouro><bairro>Alto Tarumã</bairro><cidade>Pinhais</cidade><uf>PR</uf><cep>83325280</cep></feed>
| {
"content_hash": "e654d73ca12f9cb2845bee3bcb2bb2c3",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 141,
"avg_line_length": 99,
"alnum_prop": 0.7171717171717171,
"repo_name": "chesarex/webservice-cep",
"id": "994687162240350f535eab1abbbdfa3f52db1b1a",
"size": "200",
"bin... |
package org.openforis.idm.metamodel;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.List;
import org.junit.Test;
/**
*
* @author S. Ricci
*
*/
public class LocalizedLanguageMapTest {
@Test
public void testAddEmptyLocaleText() {
... | {
"content_hash": "2f603440fe971a7ac040c4f2d128c718",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 88,
"avg_line_length": 31.442857142857143,
"alnum_prop": 0.7355747387551114,
"repo_name": "openforis/collect",
"id": "f90e66643ffebe791d4be93b2ca0efa6713f67d3",
"size": "22... |
template <typename T>
struct Generic { T x; };
struct AbstractClass {
virtual void pureMethod() = 0;
virtual void aPureMethod(int (*fptr)(), Generic<int> y) = 0;
virtual int anotherPureMethod(const int &x) const = 0;
virtual int operator + (int) const = 0;
virtual void otherMethod() { }
};
struct Base {
... | {
"content_hash": "993a7598095f83db2ec6a4fb87e8250b",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 234,
"avg_line_length": 39.92063492063492,
"alnum_prop": 0.7031809145129224,
"repo_name": "apple/swift-clang",
"id": "8ae223b67ea961bc59410bcfcaf618451011f07d",
"size": "5... |
package main
import (
"fmt"
"os"
"strings"
"testing"
"github.com/coreos/rkt/tests/testutils"
)
type ImageId struct {
path string
hash string
}
func (imgId *ImageId) getShortHash(length int) (string, error) {
if length >= len(imgId.hash) {
return "", fmt.Errorf("getShortHash: Hash %s is shorter than %d cha... | {
"content_hash": "67bf6feb12f18081228f4c73ebc034b0",
"timestamp": "",
"source": "github",
"line_count": 157,
"max_line_length": 109,
"avg_line_length": 24.75796178343949,
"alnum_prop": 0.6591201440699769,
"repo_name": "jzelinskie/rkt",
"id": "a217c9be13a38dc0be45dbbc235d8de20a0c3d3b",
"size": "4480... |
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
using Manos.Http;
using Manos.IO;
namespace Manos.Http.Testing
{
public class MockHttpResponse : IHttpResponse
{
StringBuilder builder = new StringBuilder ();
Dictionary<string, HttpCookie> cookies = new Dictionary<string, HttpC... | {
"content_hash": "856b863469f45cc463aa011894922155",
"timestamp": "",
"source": "github",
"line_count": 254,
"max_line_length": 90,
"avg_line_length": 19.094488188976378,
"alnum_prop": 0.6544329896907216,
"repo_name": "jacksonh/manos",
"id": "42789ca463938487bb45cfa815eced1b82c66962",
"size": "4850... |
#!/bin/bash
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | {
"content_hash": "8d4c3ffa6d683451d766ef490fe2cbda",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 133,
"avg_line_length": 40.06666666666667,
"alnum_prop": 0.7138103161397671,
"repo_name": "google/gnxi",
"id": "45e5f2f071e0faca02a6001fd8250c81f548f03b",
"size": "1803",
... |
<?php
final class PhabricatorChatLogChannelListController
extends PhabricatorChatLogController {
public function shouldAllowPublic() {
return true;
}
public function processRequest() {
$request = $this->getRequest();
$user = $request->getUser();
$channels = id(new PhabricatorChatLogChannelQu... | {
"content_hash": "d4c7734444c87143bad8b6b89c086a24",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 70,
"avg_line_length": 25.928571428571427,
"alnum_prop": 0.5876951331496786,
"repo_name": "Automattic/phabricator",
"id": "d313aa132c5e188dd68813561af546d59229de19",
"size"... |
#include "tensorflow/core/kernels/data/concatenate_dataset_op.h"
#include "tensorflow/core/kernels/data/dataset_test_base.h"
namespace tensorflow {
namespace data {
namespace {
constexpr char kNodeName[] = "concatenate_dataset";
// Test case 1: same shape.
ConcatenateDatasetParams SameShapeConcatenateDatasetParams... | {
"content_hash": "59cf728958712d1340a391f8882b8369",
"timestamp": "",
"source": "github",
"line_count": 219,
"max_line_length": 80,
"avg_line_length": 44.598173515981735,
"alnum_prop": 0.6065322002662025,
"repo_name": "renyi533/tensorflow",
"id": "a66a2a81cef0b1f42c9ff2bd394f5a94c6209941",
"size": ... |
/* Component containers
----------------------------------*/
.ui-widget {
font-family: Arial,Helvetica,sans-serif/*{ffDefault}*/;
font-size: 1em/*{fsDefault}*/;
}
.ui-widget .ui-widget {
font-size: 1em;
}
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
font-family: Arial,Helvetica,s... | {
"content_hash": "efe8fe43dba21130a2b3717fed20d02e",
"timestamp": "",
"source": "github",
"line_count": 428,
"max_line_length": 135,
"avg_line_length": 41.07710280373832,
"alnum_prop": 0.6978556396109437,
"repo_name": "GrayYoung/jQuery.UI.Extension",
"id": "bb097bf296e5d669f5e6a06f8f0bce7a514a2674",
... |
<?php namespace Tests\Support\Helpers;
use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\Response;
use CodeIgniter\HTTP\URI;
use Config\App;
/**
* ControllerTester Trait
*
* Provides features that make testing controllers simple and fluent.
*
* Example:
*
* $this->withRequest($request)
* ->wit... | {
"content_hash": "b4707de1b11f7614b1f0d59da7808782",
"timestamp": "",
"source": "github",
"line_count": 189,
"max_line_length": 107,
"avg_line_length": 18.084656084656086,
"alnum_prop": 0.6284376828554711,
"repo_name": "JuveLee/CodeIgniter4",
"id": "bf97190ac26e10dab53e981077c044755a111bf4",
"size"... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Sicily.Gps
{
//=======================================================================
/// <summary>
/// Ground speed and course data
/// </summary>
public class VtgData
{
/// <summary>
/// Heading, from true north, ... | {
"content_hash": "2048150ce443e343bec0a9b4fa4c892b",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 74,
"avg_line_length": 23.226666666666667,
"alnum_prop": 0.5545350172215844,
"repo_name": "mksmbrtsh/gpstalk",
"id": "b07ea24ca8629ef7ea04f8202054863a8b39c992",
"size": "17... |
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.amazonaws</groupId>
... | {
"content_hash": "2a03bdf7914d1e6d7f9f899f3e9de249",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 169,
"avg_line_length": 35.8421052631579,
"alnum_prop": 0.580029368575624,
"repo_name": "nterry/aws-sdk-java",
"id": "b97c136a2186dabdc37afd657a9e3d268a15ab98",
"size": "27... |
import win from 'global/window'
import { isString } from './utils'
type OriginLocation = {
protocol: 'http:' | 'https:'
hostname: string
port?: string
}
const isLocation = (origin: any): origin is OriginLocation =>
origin?.protocol && origin?.hostname
const determineOrigin = (
origin: string | OriginLocati... | {
"content_hash": "7b7c8df20ba8175665e9b32ba8ff18a9",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 62,
"avg_line_length": 23.535714285714285,
"alnum_prop": 0.669195751138088,
"repo_name": "reimagined/resolve",
"id": "d279943778293a47f7921594a0a25366fec4c91f",
"size": "65... |
#ifdef SUPPORT_ITUNES
#include <cybergarage/upnp/media/server/directory/itunes/iTunesPlaylistItemList.h>
using namespace CyberLink;
////////////////////////////////////////////////
// Methods
////////////////////////////////////////////////
void iTunesPlaylistItemList::clear()
{
int nTrack= size()... | {
"content_hash": "d119e73971c105137b27d9dcad6dfb81",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 82,
"avg_line_length": 19.565217391304348,
"alnum_prop": 0.5222222222222223,
"repo_name": "cybergarage/mupnpcc",
"id": "07d37018531d76a5ca050b5b8adfdf9e42af56eb",
"size": "... |
define([
'configuration/plugins/registry',
'util/promise',
], function(registry) {
const createFakeStore = (fakeData, dispatch) => ({
dispatch,
getState() {
return fakeData;
}
});
const dispatchWithStoreAndExtension = ({ store, extensionConfig, action }) => {
... | {
"content_hash": "d79a1c237795a1ae41729d58ff6d490c",
"timestamp": "",
"source": "github",
"line_count": 624,
"max_line_length": 106,
"avg_line_length": 31.415064102564102,
"alnum_prop": 0.3394888537468755,
"repo_name": "visallo/visallo",
"id": "ee98d9573f8765f6e582154a54ccc7a28a936523",
"size": "19... |
module Network.Riak.HTTP (
put, tryPut, putWithRandomKey, putWithIndexes, get, tryGet, delete,
tryDelete, lookupIndex, lookupIndexRange, tryClients, getListOfKeys,
defaultClient, Types.host, Types.port, Client,
Bucket, Key, IndexKey, IndexValue (..), IndexTag,
module Network.Riak.HTTP.MapReduce
) wh... | {
"content_hash": "e6048e152453b2c31e945bdf26b4d736",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 76,
"avg_line_length": 40.193548387096776,
"alnum_prop": 0.7367576243980738,
"repo_name": "ThoughtLeadr/Riak-Haskell-HTTP-Client",
"id": "64a44cdebff295a86dbbb09ca24f937cbf2a... |
var Marion = require('../../')
, debug = true;
/* Configure your TLS certificate & key or use demo provided as well
* as the server you wish to communcate with */
client = new Marion.Rejewski('client', {
host: 'node.dev',
key: 'test/fixtures/client/Rejewski.key',
cert: 'test/fixtures/client/Rejewski.crt',
... | {
"content_hash": "ab800dd704d3f350be774d5d45063a82",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 77,
"avg_line_length": 33.60344827586207,
"alnum_prop": 0.680861980502822,
"repo_name": "jas-/Rejewski",
"id": "818ac25501c68bdeb4dce9e833a54608abc27712",
"size": "2798",
... |
#ifndef CDSUNIT_SET_TYPE_SPLIT_LIST_H
#define CDSUNIT_SET_TYPE_SPLIT_LIST_H
#include "set_type.h"
#include <cds/container/michael_list_hp.h>
#include <cds/container/michael_list_dhp.h>
#include <cds/container/michael_list_rcu.h>
#include <cds/container/lazy_list_hp.h>
#include <cds/container/lazy_list_dhp.h>
#inclu... | {
"content_hash": "6ffe8ab30f92009e147aaf68a18fdbc0",
"timestamp": "",
"source": "github",
"line_count": 716,
"max_line_length": 134,
"avg_line_length": 70.65782122905028,
"alnum_prop": 0.6491668478583147,
"repo_name": "eugenyk/libcds",
"id": "1929995429d01b0a13dc6126960e1289bd378db3",
"size": "5216... |
<?xml version="1.0"?>
<!--
-->
<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>
<artifactId>hbase-indexer-demo</artifactId>... | {
"content_hash": "0c458e9de6a414b67d7a4946d4148893",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 204,
"avg_line_length": 32.52777777777778,
"alnum_prop": 0.6780529461998293,
"repo_name": "chenrongwei/hbase-indexer",
"id": "b3f1a9a49f7f5d358e2be85b76b890763694b0c2",
"si... |
#ifndef _OGREAXISALIGNEDBOXADAPTER_H
#define _OGREAXISALIGNEDBOXADAPTER_H
#include "Pathfinding/Math/PathfindingAxisAlignedBox.h"
#include "Pathfinding/Math/PathfindingVector3Adapter.h"
namespace PathIrr
{
/** @class PathfindingAxisAlignedBoxAdapter PathfindingAxisAlignedBoxAdapter.h "include/GOOFPathfinding/Ut... | {
"content_hash": "cfdff85e9fb9351e01a0442d2aa6d2a5",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 218,
"avg_line_length": 30.91176470588235,
"alnum_prop": 0.7897240723120837,
"repo_name": "fredericjoanis/Argorha-Pathfinding",
"id": "53bd7dfc090fb4771c86b071a7d8927c2bb6b65... |
<?php
use models\scriptureforge\dto\ProjectPageDto;
use models\AnswerModel;
use models\CommentModel;
use models\QuestionModel;
use models\TextModel;
require_once dirname(__FILE__) . '/../../TestConfig.php';
require_once SimpleTestPath . 'autorun.php';
require_once TestPath . 'common/MongoTestEnvironment.php';
class ... | {
"content_hash": "185b794637285662f68688f7a676d219",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 113,
"avg_line_length": 42.80701754385965,
"alnum_prop": 0.6118852459016394,
"repo_name": "UpstatePedro/web-languageforge",
"id": "a0e720427cd9c711cc4f7336d8f6dca89a411f4a",... |
import logging
import unittest
import bus
class FakeHandler:
def __init__(self):
self.handle_called = False
self.command = None
def handle(self, command):
self.handle_called = True
self.command = command
class RaiseExceptionHandler:
def __init__(self):
pass
... | {
"content_hash": "eb2925e048863bf549bf8f56f6c17318",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 61,
"avg_line_length": 23.046875,
"alnum_prop": 0.6196610169491525,
"repo_name": "guillaumevincent/rangevoting",
"id": "6fe729973136f9779c45b1f2dda3ceb2cb369709",
"size": "... |
import win32com.client
import array
import PPCOM
from PPCOM import enumInterfaces
from PPCOM import enumFrequencies
from PPCOM import enumSonosArrays
import sys
import os
#Define global variables
m_sLastError = ""
PY3 = sys.version_info.major == 3
#Distinguishing identifier of PSoC3/5 families
LEOPARD_ID = 0xE0;
PANT... | {
"content_hash": "4d4054120a341bab903243e342d484b6",
"timestamp": "",
"source": "github",
"line_count": 613,
"max_line_length": 207,
"avg_line_length": 32.54649265905383,
"alnum_prop": 0.61841511703674,
"repo_name": "open-storm/perfect-cell",
"id": "1972c2e50004c20b0be261b879d281de43980f1c",
"size"... |
<?php
/**
* @category Payment Gateway
* @package Adyen_Payment
* @author Adyen
* @property Adyen B.V
* @copyright Copyright (c) 2014 Adyen BV (http://www.adyen.com)
*/
$installer = $this;
$installer->startSetup();
$installer->addAttribute('order_payment', 'adyen_card_bin', array());
$installer->end... | {
"content_hash": "1ca08036a2985cc2d85cf7916867e968",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 69,
"avg_line_length": 21.933333333333334,
"alnum_prop": 0.6504559270516718,
"repo_name": "Adyen/magento",
"id": "ec97af743e8f0f7b70e9defd1a43e6f4c6043267",
"size": "1040",... |
class CreateLinks < ActiveRecord::Migration
def self.up
create_table :links do |t|
t.string :url
t.timestamps
end
end
def self.down
drop_table :links
end
end
| {
"content_hash": "506099696f62aad73c676d8b9fc309bb",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 43,
"avg_line_length": 14.76923076923077,
"alnum_prop": 0.640625,
"repo_name": "mcansky/mjolk",
"id": "6c8da7737aec5d1ca5c956e2ed00c8f2a483509f",
"size": "192",
"binary":... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace Music
{
//https://fr.wikipedia.org/wiki/Note_de_musique
public class Test
{
p... | {
"content_hash": "4648c0fff8ed8f7134adde16c31e5944",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 87,
"avg_line_length": 26.387755102040817,
"alnum_prop": 0.568445475638051,
"repo_name": "bnogent/music",
"id": "5a1474fdf63bd49181be0be169c8730df9d975d7",
"size": "1295",
... |
package info.source4code.jms;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TextMessage;
import org.apache.activemq.ActiveMQConnection;
import org.apache.activem... | {
"content_hash": "9853cf7dd1beaf82ea5e6f2c1a311806",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 79,
"avg_line_length": 31,
"alnum_prop": 0.7202538339502909,
"repo_name": "source4code/repo",
"id": "2250ee80633fb2202fa95ce5a40ddef3bcb18090",
"size": "1891",
"binary": ... |
package generated.zcsclient.admin;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for testResultInfo complex type.
*
* <p>The following schema fragm... | {
"content_hash": "8db3226014228ed25b300ebc56c61131",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 119,
"avg_line_length": 28.737373737373737,
"alnum_prop": 0.6260105448154657,
"repo_name": "nico01f/z-pec",
"id": "76de2e93b61cc592f1ea92df6f1a8cb4a681f305",
"size": "2845"... |
<?php
/**
* SFTP Stream Wrapper
*
* @package Net_SFTP_Stream
* @author Jim Wigginton <terrafrost@php.net>
* @access public
*/
class Net_SFTP_Stream
{
/**
* SFTP instances
*
* Rather than re-create the connection we re-use instances if possible
*
* @var Array
*/
static $i... | {
"content_hash": "50f8393b567defc418cd7e531cad6705",
"timestamp": "",
"source": "github",
"line_count": 773,
"max_line_length": 169,
"avg_line_length": 27.671410090556275,
"alnum_prop": 0.5046750818139317,
"repo_name": "lcssk8board/rsa-communication",
"id": "0085b9592ae7dac8ba62282521a8f69b7a17d9e7",... |
import factory
from oscar.core.loading import get_model
__all__ = [
'RangeFactory', 'ConditionFactory', 'BenefitFactory',
'ConditionalOfferFactory',
]
class RangeFactory(factory.DjangoModelFactory):
name = factory.Sequence(lambda n: 'Range %d' % n)
slug = factory.Sequence(lambda n: 'range-%d' % n)
... | {
"content_hash": "ff909eadfc205b173cc9cc79ca9a7d9d",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 68,
"avg_line_length": 26.462962962962962,
"alnum_prop": 0.675297410776767,
"repo_name": "john-parton/django-oscar",
"id": "b5ddaf402321506f72c1f2c6558e09ee6fb692ab",
"size... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ublas: boost::numeric::ublas::packed_tag Struct Reference</title>
... | {
"content_hash": "114af979841e5c153f6adda3b2d534f9",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 186,
"avg_line_length": 50.2,
"alnum_prop": 0.6344621513944223,
"repo_name": "cpascal/af-cpp",
"id": "01adf84816d05823a2f5afefe1d3362db992d958",
"size": "2008",
"binary":... |
#ifndef TENSORFLOW_COMPILER_XLA_TESTS_CONV_DEPTHWISE_COMMON_H_
#define TENSORFLOW_COMPILER_XLA_TESTS_CONV_DEPTHWISE_COMMON_H_
#include "absl/types/optional.h"
#include "tensorflow/compiler/xla/client/xla_computation.h"
#include "tensorflow/compiler/xla/execution_options_util.h"
#include "tensorflow/compiler/xla/serv... | {
"content_hash": "0ac4c13c44d3da996362648b7fcbd1a4",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 67,
"avg_line_length": 36.82051282051282,
"alnum_prop": 0.7799442896935933,
"repo_name": "adit-chandra/tensorflow",
"id": "18c92f21862c67899d4451c58ab6ee95099e16d7",
"size"... |
layout: default
title: Input Feedback
menu_title: UI/UX Patterns
id: 35
parent_id : 32
navigation: false
group: user-input
---
# Input Feedback
### Pattern Description
When users submit content to your site via forms, errors in the data the user has provided is bound to happen from time to time. The goal of this patt... | {
"content_hash": "98c0cb9cb6c7b048401576aa4fef08d4",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 270,
"avg_line_length": 50.21875,
"alnum_prop": 0.7840696950840075,
"repo_name": "backdrop-ops/backdrop-hig",
"id": "508d4a918b1ae46b840bcbbefd60ee8165f96230",
"size": "161... |
import os
from pants.base.build_environment import get_buildroot, pants_version
from pants.build_graph.aliased_target import AliasTargetFactory
from pants.build_graph.build_file_aliases import BuildFileAliases
from pants.build_graph.files import Files
from pants.build_graph.intransitive_dependency import (
Intrans... | {
"content_hash": "132742d3ac39ad74ccc054bd49c40765",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 98,
"avg_line_length": 34.61224489795919,
"alnum_prop": 0.6904481132075472,
"repo_name": "wisechengyi/pants",
"id": "cd57295efc5ef36df0c82425fbac654f8e084edb",
"size": "182... |
cask "ipfs" do
version "0.12.2"
sha256 "cc51561e1a28d25ce0f5d738bbe529150ca081faeaac2f843fb1e51b63240793"
url "https://github.com/ipfs-shipyard/ipfs-desktop/releases/download/v#{version}/ipfs-desktop-#{version}.dmg"
appcast "https://github.com/ipfs-shipyard/ipfs-desktop/releases.atom"
name "IPFS Desktop"
h... | {
"content_hash": "0e0408a6ceaa37d1fdaf8f2c20ab4349",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 111,
"avg_line_length": 32.84615384615385,
"alnum_prop": 0.765807962529274,
"repo_name": "haha1903/homebrew-cask",
"id": "c0c2c08f77e587803834d0967d4939925b96533c",
"size":... |
typedef const struct __CFNumber *CFNumberRef;
void takes_int(int);
void bad(CFNumberRef p) {
#ifdef PEDANTIC
if (p) {} // expected-warning{{Converting a pointer value of type 'CFNumberRef' to a primitive boolean value; instead, either compare the pointer to NULL or call CFNumberGetValue()}}
if (!p) {} // expected... | {
"content_hash": "62df8fde79c04e750b0b057289d448a5",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 213,
"avg_line_length": 69.31428571428572,
"alnum_prop": 0.72959604286892,
"repo_name": "epiqc/ScaffCC",
"id": "8f1e672179744b1026088def35975fcd55069eaf",
"size": "2750",
... |
package gov.hhs.fha.nhinc.docretrieve.entity.proxy;
import gov.hhs.fha.nhinc.common.nhinccommon.AssertionType;
import gov.hhs.fha.nhinc.common.nhinccommon.NhinTargetCommunitiesType;
import gov.hhs.fha.nhinc.docretrieve.entity.OutboundDocRetrieveAggregator_a0;
import gov.hhs.fha.nhinc.docretrieve.entity.OutboundDocRet... | {
"content_hash": "3ca6d5f15d58efae14238737b5911cd4",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 118,
"avg_line_length": 50.857142857142854,
"alnum_prop": 0.8127340823970037,
"repo_name": "sailajaa/CONNECT",
"id": "a6bd523e268ddfdb6e76d2071749524d79613b63",
"size": "38... |
package ir.asparsa.android.core.util;
import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Calendar;
import java.util.Locale;
import java.util.TimeZone;
/**
* Imported from https://github.com/hadilq/java-persian-calendar/blob... | {
"content_hash": "e8590580648234ec94d8def04e7f58dd",
"timestamp": "",
"source": "github",
"line_count": 748,
"max_line_length": 129,
"avg_line_length": 32.5975935828877,
"alnum_prop": 0.5108887339539844,
"repo_name": "hadilq/HobbyTaste",
"id": "8bd44036252308639d90161d42037967380602d1",
"size": "24... |
package ru.atom.lecture06.server.resource;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.eclipse.jetty.util.ConcurrentArrayQueue;
import org.w3c.dom.UserDataHandler;
import ru.atom.lecture06.server.dao.MessageDao;
import ru.atom.lecture06.server.dao.UserDao;
import ru.a... | {
"content_hash": "597a3f00a12270695f29f28b05d0b344",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 117,
"avg_line_length": 36.46218487394958,
"alnum_prop": 0.6098179303987094,
"repo_name": "Bragaman/atom",
"id": "f580ab260f86c99a66cdc50f12175ea2beec8d5a",
"size": "4339"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.