text stringlengths 2 1.04M | meta dict |
|---|---|
package org.innovateuk.ifs.activitylog.service;
import org.innovateuk.ifs.activitylog.resource.ActivityLogResource;
import org.innovateuk.ifs.commons.rest.RestResult;
import org.innovateuk.ifs.commons.service.BaseRestService;
import org.springframework.stereotype.Service;
import java.util.List;
import static org.inn... | {
"content_hash": "f3f45a56217b3496111ee931e33a08bd",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 128,
"avg_line_length": 39.89473684210526,
"alnum_prop": 0.8324538258575198,
"repo_name": "InnovateUKGitHub/innovation-funding-service",
"id": "57ccb471a386a282a5ca3697e84284... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
// define the schema for our user model
var userSchema = mongoose.Schema({
email : String,
password : String
});
// methods ======================
// generating a hash
userSchema.methods.generateHash = function(password) {
... | {
"content_hash": "5ad4cd689429f816650fc3595e49b642",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 66,
"avg_line_length": 28.347826086956523,
"alnum_prop": 0.6947852760736196,
"repo_name": "mohamadir/15-minutes",
"id": "255e62f6f03daadedf6e93443d34802714ceffbd",
"size": ... |
<?php
namespace Mailer\AppBundle\Twig;
class AppExtension extends \Twig_Extension
{
public function getFilters()
{
return array(
new \Twig_SimpleFilter('ellipse', array($this, 'ellipseFilter')),
);
}
public function ellipseFilter($str, $length = 30)
{
if (strle... | {
"content_hash": "8ad5b01813f4afb8658b2f1ae1dbeb29",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 77,
"avg_line_length": 18.962962962962962,
"alnum_prop": 0.541015625,
"repo_name": "fweber-de/imap-mailer-client",
"id": "e7e1acaf0ad61b0243a51ed34b6462e55f1ee6d1",
"size":... |
require 'simplecov'
module SimpleCov::Configuration
def clean_filters
@filters = []
end
end
SimpleCov.configure do
clean_filters
load_adapter 'test_frameworks'
end
ENV["COVERAGE"] && SimpleCov.start do
add_filter "/.rvm/"
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH... | {
"content_hash": "8e57a106e3283bf4a329bfb3631f1605",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 69,
"avg_line_length": 20.586206896551722,
"alnum_prop": 0.6968174204355109,
"repo_name": "mdtjr/mlbam",
"id": "3f5b27173255ec882ebab861175a20eb0f71fb0a",
"size": "597",
... |
package tablewriter
import (
"bytes"
"math"
)
var (
nl = []byte{'\n'}
sp = []byte{' '}
)
const defaultPenalty = 1e5
// Wrap wraps s into a paragraph of lines of length lim, with minimal
// raggedness.
func WrapString(s string, lim int) ([]string, int) {
words := bytes.Split(bytes.Replace(bytes.TrimSpace([]byte... | {
"content_hash": "a2d1ed6e26a631a2b4498e2fa8171412",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 80,
"avg_line_length": 25.28235294117647,
"alnum_prop": 0.6035365286179618,
"repo_name": "zenoss/tablewriter",
"id": "dfb3d3bf3aea9bed7c439dd4148a92b2725847de",
"size": "24... |
// Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | {
"content_hash": "2c2bdf1eb769086ca2a64d7445ab0118",
"timestamp": "",
"source": "github",
"line_count": 1259,
"max_line_length": 100,
"avg_line_length": 33.58220810166799,
"alnum_prop": 0.5892620624408704,
"repo_name": "mikelalcon/bazel",
"id": "7256393faaa05ebf39e22d2ce9f0a2c724627917",
"size": "4... |
package com.ximsfei.dynamicskindemo.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.ColorRes;
import android.support.annotation.DrawableRes;
import android.util.AttributeSet;
import com.ximsfei.dynamicskindemo.R;
import skin.support.content.res.SkinCom... | {
"content_hash": "a10725fefcf23f98504ebf35aeeb78c5",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 103,
"avg_line_length": 32.85227272727273,
"alnum_prop": 0.7097890003459011,
"repo_name": "wutongke/AndroidSkinAnimator",
"id": "124a35c376725ae0204081b975b93c1b4c41172a",
... |
import nj from '../core';
import * as tools from '../utils/tools';
import { extensionConfig } from '../helpers/extension';
//提取xml open tag
export function getXmlOpenTag(obj, tmplRule) {
return tmplRule.xmlOpenTag.exec(obj);
}
//验证xml self close tag
const REGEX_XML_SELF_CLOSE_TAG = /^<[^>]+\/>$/i;
export function ... | {
"content_hash": "d9a6eb418d0bf2e5e4c697539ad70c4a",
"timestamp": "",
"source": "github",
"line_count": 188,
"max_line_length": 98,
"avg_line_length": 22.73936170212766,
"alnum_prop": 0.6194152046783625,
"repo_name": "joe-sky/nornj",
"id": "02a07900feb75a8727cf58befb155e3d1ea7e95d",
"size": "4319",... |
A bot that lets you add custom Slack emoji by URL.
[](https://heroku.com/deploy)
### How it works
In Slack: `@emojifier add <emoji name> <image url>`
- downloads image and resizes it to aspect fit within 128px x 128px.
- navigates Slack with [PhantomJS](http://p... | {
"content_hash": "57b450b93b78225ee5e74edfabc5d2c5",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 190,
"avg_line_length": 24.675,
"alnum_prop": 0.7375886524822695,
"repo_name": "Bogidon/emojifier-slack-bot",
"id": "fb990d0c401d535ddaaff4f2310da3fb1ae02fa1",
"size": "103... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "c1233bcd5a67ab421311f1ec057dd377",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "80e53e709fd17a9653c4a3161599b4852f2ac351",
"size": "183... |
<?php
// security - hide paths
if (!defined('ADODB_DIR')) die();
// Simple guide to configuring db2: so-so http://www.devx.com/gethelpon/10MinuteSolution/16575
// SELECT * FROM TABLE(SNAPSHOT_APPL('SAMPLE', -1)) as t
class perf_db2 extends adodb_perf{
var $createTableSQL = "CREATE TABLE adodb_logsql (
created ... | {
"content_hash": "1d6ec85c3b6f1cdba834ae3c009a7048",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 133,
"avg_line_length": 28.63157894736842,
"alnum_prop": 0.6455882352941177,
"repo_name": "Universidad-de-Sevilla/icasus",
"id": "bcfa840f209a858e2b8be9344b9b99f6d9a3298b",
... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "7996f470e0ed2499d36ef2ad170fbe42",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "5bf3abe6edcb38f22d4d93b32c430b3862716046",
"size": "174... |
import { Entity } from "../../../../src/decorator/entity/Entity"
import { PrimaryColumn } from "../../../../src/decorator/columns/PrimaryColumn"
import { ManyToOne } from "../../../../src/decorator/relations/ManyToOne"
import { Group } from "./Group"
@Entity()
export class Player {
@PrimaryColumn()
email: stri... | {
"content_hash": "fdbd17526a0531968f013793b72b962c",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 79,
"avg_line_length": 28.846153846153847,
"alnum_prop": 0.6373333333333333,
"repo_name": "typeorm/typeorm",
"id": "d2cf2b5b273111faf9468347a1914cddb690830f",
"size": "375"... |
<header class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#top-menu">
<span class="sr-only">Toggle navigation</span>
... | {
"content_hash": "28901a1f1a8e829420030c272ecabc80",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 126,
"avg_line_length": 49.17948717948718,
"alnum_prop": 0.5328467153284672,
"repo_name": "VincentSchippefilt/DDD-DomainEvents",
"id": "f7e816367ca5e0d4c46ea55290637202ea5eeb... |
hexchat.register('PMColor', '1', 'Color PM tabs like highlights')
for _, event in pairs({'Private Message to Dialog', 'Private Action to Dialog'}) do
hexchat.hook_print(event, function (args)
hexchat.command('gui color 3')
end)
end
| {
"content_hash": "02e2997f11350310ad6b9a1321e0fcd3",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 83,
"avg_line_length": 33.857142857142854,
"alnum_prop": 0.7172995780590717,
"repo_name": "TingPing/plugins",
"id": "dd8753d42e326bbb61229b6729938b0f86984242",
"size": "269"... |
#!/usr/bin/env node
/**
* Created by idok on 11/10/14.
*/
'use strict';
//var fs = require('fs');
var _ = require('lodash');
var path = require('path');
var api = require('./api');
var context = require('./context');
var shell = require('./shell');
var pkg = require('../package.json');
//var defaultOptions = {commonJ... | {
"content_hash": "8e747aa435eaa50efc6f67dcef546c13",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 89,
"avg_line_length": 29.49473684210526,
"alnum_prop": 0.6313347608850821,
"repo_name": "strikingly/react-templates",
"id": "33d1d9fdf7472c261dedc04872f90be4a2803108",
"si... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
in Braun & Mel'nik, Trudy Botanicheskogo Instituta im. V. L. Komarova 20: 38 (1997)
#### Original name
Cercospora ampelopsidis Peck, 1878
### Remarks
null | {
"content_hash": "e1df1971e0d5bb1bcd4b66cf064bffc8",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 83,
"avg_line_length": 18.615384615384617,
"alnum_prop": 0.7231404958677686,
"repo_name": "mdoering/backbone",
"id": "148a885fa5c7f5e46d90406d5a87b7964f497dfc",
"size": "31... |
package org.openforis.idm.metamodel.xml.internal.unmarshal;
import java.io.IOException;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
/**
* @author G. Miceli
*/
abstract class TextPullReader extends IdmlPullReader {
private boolean trimWhitespace;
protected Text... | {
"content_hash": "c8881c2ef1ad34f9ce8b4582cc9e2f63",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 73,
"avg_line_length": 24,
"alnum_prop": 0.7307692307692307,
"repo_name": "openforis/collect",
"id": "82464fcb09106eb21e2ebf780c6d57b0911343d3",
"size": "936",
"binary": ... |
#pragma once
#include "IElement.hpp"
/* Documentation at: http://www.metroid2002.com/retromodding/wiki/Particle_Script#Mod_Vector_Elements */
namespace urde {
class CMVEImplosion : public CModVectorElement {
std::unique_ptr<CVectorElement> x4_implPoint;
std::unique_ptr<CRealElement> x8_magScale;
std::unique_p... | {
"content_hash": "47b7195717b8c92a95e64c0be1fb1bb6",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 120,
"avg_line_length": 38.24,
"alnum_prop": 0.708756724447101,
"repo_name": "RetroView/PathShagged",
"id": "6e01908f4cab27de551752cfe6e3533c3c003999",
"size": "6692",
"... |
export default {
reportingUrl: 'http://eum.example.com',
xhrTransmissionTimeout: 5432,
beaconBatchingTime: 0,
secretPropertyKey: '__secret__',
sessionId: undefined,
sessionStorageKey: 'session',
defaultSessionInactivityTimeoutMillis: 100,
defaultSessionTerminationTimeoutMillis: 200,
maxAllowedSessionT... | {
"content_hash": "cf2d18142e86ae9d382cb70826a8ccb9",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 46,
"avg_line_length": 31.09090909090909,
"alnum_prop": 0.7777777777777778,
"repo_name": "instana/weasel",
"id": "c08b9ab11570c410ad75a691590f6d35bfa102b4",
"size": "342",
... |
"""
Filename: unittest_test_mc_compute_stationary.py
Author: Daisuke Oyama
Unittest for mc_compute_stationary in mc_tools.py from quantecon
Input Markov matrices defined by the Kandori-Mailath-Rob model with
- two actions (0 and 1),
- payoffs being characterized by the level of p-dominance of action 1,
- N players, a... | {
"content_hash": "4cc11b42e7c4172884458822cb7808b0",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 89,
"avg_line_length": 29.463276836158194,
"alnum_prop": 0.5825503355704698,
"repo_name": "oyamad/test_mc_compute_stationary",
"id": "6a9675f4ba3317c0f62e6ba3f898ea2193167a0... |
package org.pentaho.di.ui.core.dialog;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
import org.apache.commons.lang.StringUtils... | {
"content_hash": "bfa51a5e2317275230cd9e7e23301f54",
"timestamp": "",
"source": "github",
"line_count": 287,
"max_line_length": 134,
"avg_line_length": 36.53310104529617,
"alnum_prop": 0.6528373867429661,
"repo_name": "brosander/pentaho-kettle",
"id": "6d81898b4390a4d1289d447bc3f51311c46213cf",
"si... |
layout: post
title: "How to Ramdisk Image ramdisk.cpio.gz"
date: 2016-10-31 19:31:50
categories: Linux
tags: android linux embedded reverse
---
```
gzip -d ramdisk.cpio.gz
mkdir rootfs
cd rootfs
cpio -i -d -m ../ramdisk.cpio
```
```
out/host/linux-x86/bin/mkbootfs -d out/target/product/msm8952_64/sy... | {
"content_hash": "f653d8b6486a9a385b972da19546137b",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 778,
"avg_line_length": 65.48571428571428,
"alnum_prop": 0.7212041884816754,
"repo_name": "thalib/thalib.github.io",
"id": "51d5b7c4ddd0e5b9c11cbd87d277c8c71b94b92e",
"size... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "907212775dec3fb222251f9bb9a4871d",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "d62e5f107fa4af9e3f88ee9ec7f4485267922fd1",
"size": "18... |
package org.elasticlib.console.command.repositories;
import java.util.List;
import org.elasticlib.console.command.AbstractCommand;
import org.elasticlib.console.command.Category;
import org.elasticlib.console.config.ConsoleConfig;
import org.elasticlib.console.display.Display;
import org.elasticlib.console.http.Sessi... | {
"content_hash": "cdb78b33d793fea70aaddb60bba50813",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 102,
"avg_line_length": 26,
"alnum_prop": 0.6923076923076923,
"repo_name": "elasticlib/elasticlib",
"id": "560041a51860c681ac247c7cf2eb75da43ecb103",
"size": "1411",
"bin... |
import datetime, re;
from sqlalchemy.orm import validates;
from server import DB, FlaskServer;
class Irrigators_phone(DB.Model):
id = DB.Column(DB.Integer, primary_key=True, autoincrement=True);
irrigator_id = DB.relationship(DB.Integer, DB.ForeignKey('irrigators.id'), lazy='joined');
phone_id = DB.relationship(DB... | {
"content_hash": "a78b982cf0df5390932152294e3c54fd",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 91,
"avg_line_length": 40.75,
"alnum_prop": 0.7288343558282209,
"repo_name": "mikelambson/tcid",
"id": "7e005c47d7d32acb5701202fff6561d5c81a8562",
"size": "815",
"binary"... |
require 'spec_helper'
feature 'Merge Request Discussions', feature: true do
before do
sign_in(create(:admin))
end
describe "Diff discussions" do
let(:merge_request) { create(:merge_request, importing: true) }
let(:project) { merge_request.source_project }
let!(:old_merge_request_diff) { merge_re... | {
"content_hash": "ac9b22b3cf49e3ccd60dd938ee6b8294",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 156,
"avg_line_length": 34.53333333333333,
"alnum_prop": 0.6534749034749034,
"repo_name": "dplarson/gitlabhq",
"id": "55846f8609b8d5ef35cf11136e7afc95ac013205",
"size": "31... |
package com.google.gson;
import junit.framework.TestCase;
import java.lang.reflect.Type;
/**
* Unit tests for the {@link MappedObjectConstructor} class.
*
* @author Joel Leitch
*/
public class MappedObjectConstructorTest extends TestCase {
private ParameterizedTypeHandlerMap<InstanceCreator<?>> creatorMap;
... | {
"content_hash": "d54412ca687d0fdc696e825dd3c91506",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 93,
"avg_line_length": 32.554054054054056,
"alnum_prop": 0.7667081776670818,
"repo_name": "eatnumber1/google-gson",
"id": "da36ef02c6d6b9270f611bf9ae73e114b27144c2",
"size"... |
package inst
import (
"fmt"
"regexp"
"strconv"
"strings"
)
// InstanceKey is an instance indicator, identifued by hostname and port
type InstanceKey struct {
Hostname string
Port int
}
var (
ipv4Regexp = regexp.MustCompile(`^([0-9]+)[.]([0-9]+)[.]([0-9]+)[.]([0-9]+)$`)
ipv4HostPortRegexp = rege... | {
"content_hash": "d66eb31e48073c96aba927631691291b",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 121,
"avg_line_length": 32.72571428571428,
"alnum_prop": 0.7407019381875327,
"repo_name": "mahak/vitess",
"id": "2a3124aeb57c73d7112a7ee245665e5cac744700",
"size": "6337",... |
namespace FbTk {
class Accessor<class T>;
/// a bool menu item
class BoolMenuItem: public FbTk::MenuItem {
public:
BoolMenuItem(const FbTk::FbString &label, Accessor<bool> &item,
FbTk::RefCount<FbTk::Command<void> > &cmd):
FbTk::MenuItem(label, cmd), m_item(item) {
FbTk::MenuIte... | {
"content_hash": "944180e50526953156d8c4a22b5dff19",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 68,
"avg_line_length": 28.594594594594593,
"alnum_prop": 0.6181474480151229,
"repo_name": "ystk/debian-fluxbox",
"id": "3e68cbd1a4a38bc64cb33ffa1f2ca6da655c5b1d",
"size": "... |
@class BaseResponse;
@interface AddTrustedFriendsResp : WXPBGeneratedMessage
{
}
+ (void)initialize;
// Remaining properties
@property(retain, nonatomic) BaseResponse *baseResponse; // @dynamic baseResponse;
@end
| {
"content_hash": "590f0c2c7c7f966c78b69a828baed0cb",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 82,
"avg_line_length": 16.76923076923077,
"alnum_prop": 0.7752293577981652,
"repo_name": "walkdianzi/DashengHook",
"id": "192a2af775aa770e900f4d83ef1f10215236866e",
"size":... |
package org.corebounce.resman;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
impor... | {
"content_hash": "fcfb5d350f71656e2aa4067923fde822",
"timestamp": "",
"source": "github",
"line_count": 144,
"max_line_length": 138,
"avg_line_length": 29.04861111111111,
"alnum_prop": 0.6595744680851063,
"repo_name": "arisona/ether",
"id": "b73e6bdff244a3c45d72659ea167eb9ce5e4955b",
"size": "4183"... |
namespace Gu.Wpf.UiAutomation.WindowsAPI
{
public static class LayeredWindowAttributes
{
public const uint LWA_COLORKEY = 0x1;
public const uint LWA_ALPHA = 0x2;
}
}
| {
"content_hash": "1ffd45fc009bd4c254144f9da42f3336",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 47,
"avg_line_length": 24.25,
"alnum_prop": 0.6752577319587629,
"repo_name": "JohanLarsson/Gu.Wpf.UiAutomation",
"id": "b9bf31740d7efc725b88f41d77332ce37f51a8f0",
"size": "4... |
<?php
namespace Symfony\Component\HttpKernel\Tests\EventListener;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\EventList... | {
"content_hash": "8e241e08bbf3d91196f923cd6ecd69df",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 113,
"avg_line_length": 41.01587301587302,
"alnum_prop": 0.7109133126934984,
"repo_name": "DerDu/MOC-Framework-Mark-V",
"id": "14c161f5eb9e25c235dc99aa5d86fdf9365f111a",
"s... |
package io.cloudslang.content.xml.services.impl;
import io.cloudslang.content.xml.entities.inputs.EditXmlInputs;
import io.cloudslang.content.xml.services.OperationService;
import io.cloudslang.content.xml.utils.Constants;
import io.cloudslang.content.xml.utils.DocumentUtils;
import io.cloudslang.content.xml.utils.Xm... | {
"content_hash": "821ed28ed27ea5ad748dc2cd497d61a8",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 140,
"avg_line_length": 43.03636363636364,
"alnum_prop": 0.6582171525137305,
"repo_name": "robert-sandor/cs-actions",
"id": "04e200ad906901aa6d4398ad7de892fec3c3aa21",
"siz... |
package org.jboss.pnc.common.json.moduleconfig;
import org.jboss.pnc.common.json.AbstractModuleConfig;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
/**
* Runtime configuration parameters for the Bu... | {
"content_hash": "3e9d371b1930ea7ab44eb1b213872e41",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 78,
"avg_line_length": 31.14516129032258,
"alnum_prop": 0.69135163127913,
"repo_name": "jdcasey/pnc",
"id": "5d2a893c5a69e6431f65ae4f7566c4c4223f7469",
"size": "2639",
"b... |
The <scsidevice> inspectors refer to the Small Computer System Interface devices connected to the Client computer.
# product of <scsidevice> : string
The product string for the given SCSI device.
# revision of <scsidevice> : string
The revision of the SCSI device.
# type of <scsidevice> : s... | {
"content_hash": "8f29302fa189b0d339d9da5f80b893bd",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 120,
"avg_line_length": 29.764705882352942,
"alnum_prop": 0.7470355731225297,
"repo_name": "briangreenery/developer.bigfix.com",
"id": "28e2ffe2f0f7397207a3612c898c30659d4520... |
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.... | {
"content_hash": "0c0251bb6fd9ab4df147969973008f9e",
"timestamp": "",
"source": "github",
"line_count": 297,
"max_line_length": 201,
"avg_line_length": 38.84848484848485,
"alnum_prop": 0.5076269717455365,
"repo_name": "yyitsz/myjavastudio",
"id": "82d9510d6db82f955c70bd6f2c52463ad0addc5d",
"size": ... |
class PagesController < ApplicationController
def home
end
end
| {
"content_hash": "6b6625738e8d43a9a0d5e8897a4ebbe1",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 45,
"avg_line_length": 13.6,
"alnum_prop": 0.7941176470588235,
"repo_name": "lewg/click",
"id": "38bab446bbad85549bd94f50ccfa61a57959aa76",
"size": "68",
"binary": false,
... |
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.internal.constraintvalidators.hv;
import java.text.Normalizer;
impor... | {
"content_hash": "7537b49e32f8549338480d39eafcb786",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 100,
"avg_line_length": 26.675675675675677,
"alnum_prop": 0.7750759878419453,
"repo_name": "marko-bekhta/hibernate-validator",
"id": "7afcde7d042f36c2b72942614251ca6269bc9499... |
require 'ads_common/savon_service'
require 'dfp_api/v201411/reconciliation_report_row_service_registry'
module DfpApi; module V201411; module ReconciliationReportRowService
class ReconciliationReportRowService < AdsCommon::SavonService
def initialize(config, endpoint)
namespace = 'https://www.google.com/ap... | {
"content_hash": "7910aefbbcb2c540224c7d612348f77d",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 88,
"avg_line_length": 32.945945945945944,
"alnum_prop": 0.7350287120590648,
"repo_name": "ramdanplusplus/google-api-ads-ruby",
"id": "0f37346ca5d00939261e1866866d4058468ec5d... |
//**************************************************************************/
// Copyright (c) 1998-2006 Autodesk, Inc.
// All rights reserved.
//
// These coded instructions, statements, and computer programs contain
// unpublished proprietary information written by Autodesk, Inc., and are
// protected by Federal cop... | {
"content_hash": "0f4f4355d6a530b0856875d979a85e31",
"timestamp": "",
"source": "github",
"line_count": 283,
"max_line_length": 128,
"avg_line_length": 36.706713780918726,
"alnum_prop": 0.694358875625722,
"repo_name": "SuperMap/OGDC",
"id": "54eb28a7a7401bad6251682edc3b23321e2985bb",
"size": "10388... |
namespace niven
{
Route &Module::RouteBuilder::operator[](const std::string path)
{
auto route = std::make_shared<Route>(this->parent, this->method, this->GetPath(path));
this->parent->routes.push_back(route);
return *route;
}
std::string Module::RouteBuilder::GetPath(std::string path)
{
auto relative ... | {
"content_hash": "96aceb427b282e9cedd2fc2a5806bb6b",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 97,
"avg_line_length": 25.85,
"alnum_prop": 0.6499032882011605,
"repo_name": "parnham/libniven",
"id": "c8bdbdd4e9f662e66b45912d0b74630d18ef63fd",
"size": "545",
"binary"... |
<?php
namespace flat\lib\exception;
class bad_param extends \flat\lib\exception {
public function get_param_key() {
return $this->_key;
}
public function get_reason() {
return $this->_reason;
}
public function get_reason_code() {
return sprintf("%u",crc32($this->_reason));
}
priv... | {
"content_hash": "23b44d00ce30eb24f8f76e6e199ac05c",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 98,
"avg_line_length": 26.761904761904763,
"alnum_prop": 0.604982206405694,
"repo_name": "katmore/flat",
"id": "b3ae1de39649577aab4f3e9ad7df9bb7a651fc6c",
"size": "1961",
... |
# XmlMessage
This class acts as a superclass for classes which build XML documents by utilizing the factory pattern. Its purpose is to provide a convenient base for classes which encapsulate logic to generate XML using Xmlify by following a few simple conventions.
If you are unfamiliar with Xmlify then review the doc... | {
"content_hash": "f231b9dc35d8deb2e5ef9a713b9f2b7d",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 361,
"avg_line_length": 33.95977011494253,
"alnum_prop": 0.6332712810966322,
"repo_name": "Gunsobal/Xmlary",
"id": "a560c488b6c27ed0079a7b76bc26929c5f4829e2",
"size": "590... |
using System.Text;
using DogAgilityCompetition.Circe;
using JetBrains.Annotations;
namespace DogAgilityCompetition.Controller.Engine.Storage;
/// <summary>
/// The outcome of a competition run, achieved by a single competitor.
/// </summary>
/// <remarks>
/// Deeply immutable by design to allow for safe cross-thread ... | {
"content_hash": "50c1d82e8c3262a04f682a824b594c0d",
"timestamp": "",
"source": "github",
"line_count": 216,
"max_line_length": 157,
"avg_line_length": 37.629629629629626,
"alnum_prop": 0.7006643700787402,
"repo_name": "bkoelman/DogAgilityCompetitionManagement",
"id": "003aa9871e0cbef1684368697b52fbe... |
package com.fxc.translator.beans;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.List;
/**
* Created by fxc07 on 2016/12/11.
*/
public class DailyBean extends BaseBean {
/**
* sid : 2441
* tts : http://news.iciba.com/admin/tts/2016-12-... | {
"content_hash": "457b1b83a08b9b7cd665da978849ef3f",
"timestamp": "",
"source": "github",
"line_count": 195,
"max_line_length": 177,
"avg_line_length": 18.497435897435896,
"alnum_prop": 0.6875519822567231,
"repo_name": "fxc0719/Ugly-Wife-s-Translator",
"id": "86e3dda7a189447379df63828befecea5ea7a132"... |
Development Guidelines
======================
Dask is a community maintained project. We welcome contributions in the form
of bug reports, documentation, code, design proposals, and more.
This page provides resources on how best to contribute.
.. note:: Dask strives to be a welcoming community of individuals with di... | {
"content_hash": "5905b7d8565526a6e001ae02c13b8df6",
"timestamp": "",
"source": "github",
"line_count": 383,
"max_line_length": 135,
"avg_line_length": 34.595300261096604,
"alnum_prop": 0.7313207547169811,
"repo_name": "jakirkham/dask",
"id": "625823f26bc589c7b73bb131e5b2384756cbb9a9",
"size": "132... |
// BLASTX IMPLEMENTIERUNG VON ANNKATRIN BRESSIN UND MARJAN FAIZI
// SOFTWAREPROJEKT VOM 2.4. - 29.5.2012
// VERSION VOM 04.MAI.2013
#ifndef SANDBOX_MY_SANDBOX_APPS_BLASTX_OWN_FUNCTIONS_
#include <iostream>
#include <seqan/arg_parse.h>
#include <seqan/sequence.h>
#include <seqan/seq_io.h>
#include <seqan/find.... | {
"content_hash": "6d1b06aa0e66f25f569f8599ecb5b881",
"timestamp": "",
"source": "github",
"line_count": 149,
"max_line_length": 240,
"avg_line_length": 48.29530201342282,
"alnum_prop": 0.6321567537520845,
"repo_name": "bkahlert/seqan-research",
"id": "204d827166c0bca1044ede441b3ae9e3e7103081",
"siz... |
namespace blink {
class WebLocalFrame;
class WebURL;
class WebView;
} // namespace blink
namespace content {
class BlinkTestRunner;
class GamepadController;
class TestRunner;
class WebViewTestProxy;
class TestInterfaces {
public:
TestInterfaces();
~TestInterfaces();
void SetMainView(blink::WebView* web_view)... | {
"content_hash": "8a4513ea9b188f7562de97e7a0e37d00",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 80,
"avg_line_length": 32.89473684210526,
"alnum_prop": 0.7392,
"repo_name": "endlessm/chromium-browser",
"id": "a82fd8d4493e89dba726b35e4fd60ef112e2a287",
"size": "2257",
... |
namespace es = CPM_ES_NS;
namespace esys = CPM_ES_SYSTEMS_NS;
namespace {
// We may want to enforce that these components have bson serialization members
// (possibly a static assert?).
struct CompPosition
{
CompPosition() {}
CompPosition(const glm::vec3& pos) {position = pos;}
void checkEqual(const CompPosit... | {
"content_hash": "43bcc83c059a974e7bc9bf428aa3823c",
"timestamp": "",
"source": "github",
"line_count": 213,
"max_line_length": 91,
"avg_line_length": 28.6056338028169,
"alnum_prop": 0.691285081240768,
"repo_name": "iauns/cpm-es-systems",
"id": "32cce45c26589f4c91c9274c006f015ff1835d9e",
"size": "6... |
import unittest
import os
import uuid
from nvm import pmem
class MapMixin(object):
def create_mapping(self, size=4096):
filename = "{}.pmem".format(uuid.uuid4())
mapping = pmem.map_file(filename, size,
pmem.FILE_CREATE | pmem.FILE_EXCL,
... | {
"content_hash": "a861fba438630798fe8137f11ae22aa6",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 66,
"avg_line_length": 29.392857142857142,
"alnum_prop": 0.6351761846901579,
"repo_name": "perone/pynvm",
"id": "68f6fa00e90980d2dd93a8a2f047e9cf20b3acf6",
"size": "3292",... |
{% verbatim %}
<div class="content container" data-ng-cloak data-ng-controller="semDomTransAppManagementCtrl">
<div id="sfchecks-hmenu" class="hdrnav">
<ul class="topNav">
<li class="here"><a href="/app/projects">My Projects</a></li>
<li><a href="/app/activity">Activity</a></li>
</ul>
<br />... | {
"content_hash": "7a3f0d03cdf7736a531dad4333e1a877",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 158,
"avg_line_length": 41.42857142857143,
"alnum_prop": 0.6008620689655172,
"repo_name": "sil-student-projects/web-scriptureforge",
"id": "b6329ac60600bf272cd5d9e61ca0d01af7... |
<?php
namespace Tests\AppBundle\Form;
use AppBundle\Criteria\Model as ModelCriteria;
use AppBundle\Form\Criteria as CriteriaForm;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Form\Form;
class CriteriaTest extends KernelTestCase
{
/**
* @var Form
*/
private $form;
... | {
"content_hash": "8d518ef6d641a900937e7d6920e75918",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 66,
"avg_line_length": 26.34722222222222,
"alnum_prop": 0.562467053241961,
"repo_name": "danbelden/symfony-crud-api",
"id": "e5a63305aa2d3bc81ac3940aa274e357691a2852",
"siz... |
package eu.hyvar.feature.mapping.resource.hymapping.debug;
public class HymappingDebugVariable {
// The generator for this class is currently disabled by option
// 'disableDebugSupport' in the .cs file.
}
| {
"content_hash": "aa4a4a8058a8d9622876462f3ee0468f",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 64,
"avg_line_length": 26.25,
"alnum_prop": 0.780952380952381,
"repo_name": "DarwinSPL/DarwinSPL",
"id": "52d41686cee6b19af6054849765f582dac29337e",
"size": "255",
"binary... |
require File.dirname(__FILE__) + '/spec_helper'
describe "arrays" do
def contain_same_elements_as(expected)
simple_matcher "array with same elements in any order as #{expected.inspect}" do |actual|
if actual.size == expected.size
a, e = actual.dup, expected.dup
until e.empty? do
i... | {
"content_hash": "710ae1c703b85d0e788bb2632711a019",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 93,
"avg_line_length": 31.225806451612904,
"alnum_prop": 0.618801652892562,
"repo_name": "shanti/olio",
"id": "46cc6375ec0a77f1dcf095f7fc705ddbacaa8977",
"size": "1756",
... |
<!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" ... | {
"content_hash": "18f2b2665c0cf2b9be4cea8e7b7dfb93",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 123,
"avg_line_length": 37.326530612244895,
"alnum_prop": 0.41224712957900495,
"repo_name": "caijun-carr/caijun-carr.github.io",
"id": "7e1308af67ac100e30d89263a8df157f3dbf4a... |
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
namespace HaloOnline.Server.Model.TitleResource.TitleConfigurations
{
public class PlayerLevel : TitleInstance
{
public PlayerLevel(string instanceName) : base(instanceName)
{
Name = "";
LevelIn... | {
"content_hash": "5098fab0ad16288358af55bec98824bd",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 71,
"avg_line_length": 28.98611111111111,
"alnum_prop": 0.552467656923814,
"repo_name": "Atvaark/Emurado",
"id": "1918e90341802b53449af4196c11bfeecde5cecb",
"size": "2089",... |
"""This module contains the Resilient propagation optimizer."""
import mathadapt as ma
from base import Minimizer
class Rprop(Minimizer):
"""Rprop optimizer.
Resilient propagation is an optimizer that was originally tailored towards
neural networks. It can however be savely applied to all kinds of
... | {
"content_hash": "cdc2ef6af48ecab7be42acfa3e3de649",
"timestamp": "",
"source": "github",
"line_count": 149,
"max_line_length": 115,
"avg_line_length": 33.04026845637584,
"alnum_prop": 0.5864310379849685,
"repo_name": "SFPD/rlreloaded",
"id": "aaa681eb6a835e2b48bb1999b9b8d96e442fef20",
"size": "494... |
<!--
~ Copyright 2016 Davide Maestroni
~
~ 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 l... | {
"content_hash": "f321ad1fee04c57da4f37a3ec4c6fa0e",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 269,
"avg_line_length": 44.07142857142857,
"alnum_prop": 0.6528903295515938,
"repo_name": "davide-maestroni/jroutine",
"id": "2d0bde0826824d1b936fd062318f86498420da10",
"si... |
<!doctype html>
<html id="mindmaps">
<head>
<meta charset="utf-8">
<title>Framindmap</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/Aristo/jquery-ui-1.8.7.custom.css" />
<link rel="styl... | {
"content_hash": "9a49f5ff35a3766b81815143d0aaf504",
"timestamp": "",
"source": "github",
"line_count": 257,
"max_line_length": 272,
"avg_line_length": 36.88715953307393,
"alnum_prop": 0.6348101265822785,
"repo_name": "framasoft/framindmap",
"id": "7f01d150236cc05fa13d8a998eb8b4ecd9c4b290",
"size":... |
package com.androidapp.richard.startfresh.Fragments;
import android.Manifest;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Ac... | {
"content_hash": "fc8c40ab324a583836968e06ce1b6a70",
"timestamp": "",
"source": "github",
"line_count": 155,
"max_line_length": 285,
"avg_line_length": 44.05806451612903,
"alnum_prop": 0.6224923121979792,
"repo_name": "richardzhanguw/StartFresh",
"id": "145772c3b89b1e13ab69f01a828b96e88f4c71bf",
"s... |
package org.ziwenxie.leafer.redis;
public interface CacheSupport {
/**
* 刷新容器中的所有键
* @param cacheName
*/
void refreshCache(String cacheName);
/**
* 按照容器以及给定的键刷新
* @param cacheName
* @param cacheKey
*/
void refreshCacheByKey(String cacheName,String cacheKey);
}
| {
"content_hash": "eed22b3ee6e26f085c442422e09081f1",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 61,
"avg_line_length": 17.555555555555557,
"alnum_prop": 0.629746835443038,
"repo_name": "ziwenxie/leafer",
"id": "559ac553f2068dff2786bc3859752c0dda347519",
"size": "358",... |
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_p... | {
"content_hash": "c1da5f4c49bc8d3a016fb466a7117442",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 62,
"avg_line_length": 41.774193548387096,
"alnum_prop": 0.6694980694980694,
"repo_name": "Garthi/Running-Leaderboard",
"id": "70d1341499279024c2f80116fac1cb99cded3c8a",
"s... |
import Delegator from 'dom-delegator';
///////////////////////////////////////////////////////////////////////////////
const delegator = new Delegator();
delegator.listenTo('click');
delegator.listenTo('dragenter');
delegator.listenTo('dragleave');
delegator.listenTo('dragover');
delegator.listenTo('drop');
///////... | {
"content_hash": "5960eb2209ac343fcc194d3957a2b3ef",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 79,
"avg_line_length": 30.23076923076923,
"alnum_prop": 0.45038167938931295,
"repo_name": "craigdallimore/hog",
"id": "7c1713f3ec3a9a0838b5d9e1ac8d151a4ce78131",
"size": "7... |
package com.chrisyazbek.holla;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.To... | {
"content_hash": "be6d1dacc94debdbde0f7e3afdcd7d4b",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 81,
"avg_line_length": 27.25,
"alnum_prop": 0.6952089704383282,
"repo_name": "cyazbek/holla",
"id": "2505f5a7fe059256206f36675709877850e9a164",
"size": "981",
"binary": f... |
<!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_112) on Mon May 01 08:43:54 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.wildfly.swarm.mail (Pub... | {
"content_hash": "9d4aa963f6befde4f659506ae9a13dd2",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 179,
"avg_line_length": 37.907514450867055,
"alnum_prop": 0.6413540713632205,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "cf964014ead076e944ecbf37e05f8b70e74... |
#pragma once
#define MOONSTONE_NET_PROTOCOL_VERSION 106
/**
* Define this to enable debugging code in the p2p network interface.
* This is code that would never be executed in normal operation, but is
* used for automated testing (creating artificial net splits,
* tracking where messages c... | {
"content_hash": "8a381f597edf5202d89276035ad600af",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 95,
"avg_line_length": 39.10843373493976,
"alnum_prop": 0.6829944547134935,
"repo_name": "moonstonedac/moonstone",
"id": "e9bb7f1592d83a8f44c6cdd2db12ef03a43862f2",
"size":... |
#include "config.h"
#include "core/dom/NodeTraversal.h"
#include "platform/testing/URLTestHelpers.h"
#include "public/platform/Platform.h"
#include "public/platform/WebPrerender.h"
#include "public/platform/WebPrerenderingSupport.h"
#include "public/platform/WebString.h"
#include "public/platform/WebUnitTestSupport.... | {
"content_hash": "248b92bf86d5cde0586d8bb456e8b98e",
"timestamp": "",
"source": "github",
"line_count": 471,
"max_line_length": 129,
"avg_line_length": 32.00212314225053,
"alnum_prop": 0.6985338021628077,
"repo_name": "Bysmyyr/chromium-crosswalk",
"id": "8458c4cd8a66d383705ac09302798410d94c3a03",
"... |
package org.kie.workbench.common.screens.projectimportsscreen.client.forms;
import javax.inject.Inject;
import com.google.gwt.user.client.ui.IsWidget;
import org.guvnor.common.services.project.model.ProjectImports;
import org.jboss.errai.common.client.api.Caller;
import org.jboss.errai.common.client.api.RemoteCallb... | {
"content_hash": "aeb6ccb02f69f4e055d33c0301f34a36",
"timestamp": "",
"source": "github",
"line_count": 164,
"max_line_length": 159,
"avg_line_length": 38.25,
"alnum_prop": 0.5942930017535469,
"repo_name": "scandihealth/kie-wb-common",
"id": "0f1e298701ece662bfa93cb6eac79742ff902364",
"size": "6894... |
<!DOCTYPE html>
<html lang="en">
@include('partials/head')
<body>
@include('partials/navbar')
<div class="container theme-showcase">
<div class="page-header">
<h1>{{{ $title }}}</h1>
</div>
@include('partials/flashmsgs')
<!-- Sta... | {
"content_hash": "d5f553c372b87fd9f57e3cffc4344eb1",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 46,
"avg_line_length": 22.583333333333332,
"alnum_prop": 0.45571955719557194,
"repo_name": "bobsta63/turbine",
"id": "6f14b4b859f57b84788b495153da59993acf77c8",
"size": "54... |
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0005_auto_20170124_1531'),
]
operations = [
migrations.AddField(
model_name='article',
name='show_featured_image'... | {
"content_hash": "37503ad63bcd3a2d4645706ed1206952",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 52,
"avg_line_length": 21.77777777777778,
"alnum_prop": 0.6020408163265306,
"repo_name": "PARINetwork/pari",
"id": "5657bbc08c97718b2b9721969bfce86a1a5dd28b",
"size": "416"... |
console.log("Application started.");
var Core = require('./NodeJS/core');
| {
"content_hash": "d25a7d1d828f99a7bf1eb36c26d7b19a",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 36,
"avg_line_length": 37,
"alnum_prop": 0.7027027027027027,
"repo_name": "chriswoodle/Name-Tag-Printer",
"id": "d120b37236ec0bd8e5aab5a727894e8d6b712706",
"size": "74",
"... |
<?php
namespace Thessia\Tasks\CLI;
use JBZoo\PimpleDumper\PimpleDumper;
use Jenssegers\Lean\SlimServiceProvider;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Thessia\Service\SystemServiceProvider... | {
"content_hash": "d9d432f8cbf9c6c30582bd239945e520",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 124,
"avg_line_length": 32.4040404040404,
"alnum_prop": 0.5570448877805486,
"repo_name": "new-eden/Thessia",
"id": "04250c805e750173904d18e6efe7c00f06731f83",
"size": "4381... |
<!DOCTYPE html>
<HTML><head><TITLE>Manpage of consoletype_selinux</TITLE>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/main.css" type="text/css">
</head>
<body>
<header class="site-header">
<div class="wrap"> <div class="site-title"><a href="/manpages/index.html">linux manpages</a></div>
<div class="sit... | {
"content_hash": "1b9182c71c07d89f6b1c30f0aa687b63",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 363,
"avg_line_length": 27.716216216216218,
"alnum_prop": 0.7130667966845441,
"repo_name": "yuweijun/yuweijun.github.io",
"id": "13dd53c9b62ddc6706e4d6268845336bafed5941",
... |
class LogBreak < ApplicationRecord
belongs_to :rule
belongs_to :student
end
| {
"content_hash": "ddedb88c367dfcd959a1f6d43e52380d",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 34,
"avg_line_length": 20,
"alnum_prop": 0.775,
"repo_name": "BOJOP/organize_cu",
"id": "49f04bc7b82ab6aa650e7f82ffe5b3bece68a7e7",
"size": "80",
"binary": false,
"copie... |
#!/usr/bin/env node
import '../server/env';
/*
* This script runs breaks out how many new and old backers are added per active month per collective
*/
console.log('This script is being deprecated.');
console.log('To re-enable it, remove this message with a Pull Request explaining the use case.');
process.exit();
/... | {
"content_hash": "1430a37ff7024f88a746191d86055071",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 136,
"avg_line_length": 29.1,
"alnum_prop": 0.6159288457651102,
"repo_name": "OpenCollective/opencollective-api",
"id": "4005cbeaef992f4216a3fcf76a7785661bf768c7",
"size":... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using UiAuthorisation.Models;
namespace UiAuthorisation.Data
{
public class ApplicationDbContext : IdentityDbContext<Applic... | {
"content_hash": "4ae1e215519347affb9b0bdc3fccfe8c",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 88,
"avg_line_length": 33.46153846153846,
"alnum_prop": 0.7103448275862069,
"repo_name": "andrewlock/blog-examples",
"id": "54a5b1c26e12743923b532516312e2285c699dcb",
"size... |
const forEach = require('lodash/forEach');
module.exports = {
check: (batch, maxCount) => {
let result = true;
let maxValue = 0;
forEach(batch, (value) => {
let count = 0;
forEach(batch, (inner) => {
count += (inner === value);
});
result &= (count <= maxCount);
maxV... | {
"content_hash": "ae56f3d66f305a4b79aba8afd8a81805",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 56,
"avg_line_length": 23.789473684210527,
"alnum_prop": 0.5376106194690266,
"repo_name": "prasanna1211/ranker-backend",
"id": "a5ef65e01c0141b649383656ae63ecaa67eae73a",
"... |
export * from './toLowerCase'
export * from './toUpperCase'
| {
"content_hash": "d7973c8903f199aa49939632b0aacf73",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 29,
"avg_line_length": 30,
"alnum_prop": 0.7,
"repo_name": "TylorS167/167",
"id": "70b7e30d8e7b846316ed230d9b138fa028a7695d",
"size": "60",
"binary": false,
"copies": "1... |
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.4.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component co... | {
"content_hash": "2d98b383dcbc4a129e021a5d60ca3785",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 160,
"avg_line_length": 40.48,
"alnum_prop": 0.7480237154150198,
"repo_name": "manuelhuber/LostColonies",
"id": "de4059a044535d8a78075fa3e5f1251f3c93e051",
"size": "1028",
... |
package org.mifos.accounts.productdefinition.business;
import org.apache.commons.lang.StringUtils;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException;
import org.mifos.accounts.productdefinition.persistence.PrdOfferingPersi... | {
"content_hash": "3877264a1239ea36904380e002de98a8",
"timestamp": "",
"source": "github",
"line_count": 574,
"max_line_length": 253,
"avg_line_length": 40.69337979094077,
"alnum_prop": 0.7005308673687816,
"repo_name": "maduhu/mifos-head",
"id": "442ac79fea526111ee8e3ba3e448243f8a0dd56e",
"size": "2... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Trans. Br. mycol. Soc. 23: 251 (1939)
#### Original name
Dasyscyphus winterianus Rehm
### Remarks
null | {
"content_hash": "324b61f793dbc01d70df11087fa54c89",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 14.615384615384615,
"alnum_prop": 0.7052631578947368,
"repo_name": "mdoering/backbone",
"id": "2a3ece3c5ad4260e73ed07eeabac5a4427a1adc8",
"size": "25... |
import Ember from 'ember';
export default Ember.Component.extend({
tagName: "ul",
// Passable parameters
tags: [],
//tagAdded: functionName,
//tagRemoved: functionName
placeholderText: "Tags",
tagLimit: 10,
tagit: null,
shouldSendActions: true,
didInsertElement: function() {
var self = this... | {
"content_hash": "d1d0d5c3deb046381c64bac5020b1bfc",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 63,
"avg_line_length": 24.211111111111112,
"alnum_prop": 0.6025699862322166,
"repo_name": "davidlukerice/genSynth",
"id": "95c510bb0dcd67ae32c86de333de3315f6bfec5d",
"size"... |
<!DOCTYPE html>
<script src="../../../resources/js-test.js"></script>
<script src="testutils.js"></script>
<body>
<script>
description('Tests that Custom Elements does not induce leaks');
var jsTestIsAsync = true;
if (!window.internals)
testFailed('this test requires window.internals');
function step1() {
deb... | {
"content_hash": "2c6569e6323040eb9b2bbc5060564813",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 79,
"avg_line_length": 33.18543046357616,
"alnum_prop": 0.6308122131311116,
"repo_name": "lordmos/blink",
"id": "eac4cbfc5edba1a633bc11e53ce5ce3be8d5ec93",
"size": "5011",... |
package com.liangmayong.base.binding.mvp;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* Created by LiangMaYong on 2016/9/17.
*/
public class Presenter<V> {
//viewState
private V viewState = null;
//isAttached
private boolean isAtt... | {
"content_hash": "3a9fca15baba0abc2047adc81bbe471d",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 143,
"avg_line_length": 22.705128205128204,
"alnum_prop": 0.5059288537549407,
"repo_name": "LiangMaYong/android-base",
"id": "4137f80814a7270f1a46d61fa56d5f207a705dc4",
"si... |
class CreateUserPermissions < ActiveRecord::Migration
def change
create_table :user_permissions do |t|
t.string :action
t.string :target
t.timestamps
end
end
end
| {
"content_hash": "63ef024f3435d09fd434174a0d222719",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 53,
"avg_line_length": 19.3,
"alnum_prop": 0.6787564766839378,
"repo_name": "TaxiDash/ServerV2",
"id": "90b33542cbd751e7805af1bbbae71a9576a7effc",
"size": "193",
"binary"... |
TS=`date +"%d%b%y_%H%M"`
bname=`basename "$1" | cut -d'.' -f1`
logname="Results/"$bname"_"$TS".log"
bname=`basename "$1"`
bname="${bname#*.}"
logname="Results/ba_ctrl_"$TS".log"
## Print metrics and save to log files
# Arguments:
# original (reference) dataset in eddgelist format
#
# find datasets -name "$bname... | {
"content_hash": "ddf01f7c83222bbef1b3973e72a14bf6",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 114,
"avg_line_length": 47,
"alnum_prop": 0.6702127659574468,
"repo_name": "nddsg/TreeDecomps",
"id": "34ad29ed888e6d0951c7deb452408f5122631adf",
"size": "764",
"binary":... |
package org.robolectric.shadows;
import android.content.ContentProviderResult;
import android.net.Uri;
import java.lang.reflect.Field;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
@Implements(ContentProviderResult.class)
... | {
"content_hash": "d0f0c2bbc2a86aa411b6b1ca31be036c",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 79,
"avg_line_length": 32.83870967741935,
"alnum_prop": 0.775049115913556,
"repo_name": "spotify/robolectric",
"id": "baf44dd137b1d29860256c6aa20a72f25e4e9c7c",
"size": "10... |
package org.linaro.glmark2;
import android.app.Activity;
import android.os.Bundle;
import android.opengl.GLSurfaceView;
import android.app.Dialog;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Context;
import android.os.PowerManager;
import android.os.PowerManager.WakeL... | {
"content_hash": "ea037c136593df803299c85d67a3aed9",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 172,
"avg_line_length": 31.102272727272727,
"alnum_prop": 0.5893313847278042,
"repo_name": "endlessm/chromium-browser",
"id": "bc0dde4a7893489563d04cf06add5069bd170c83",
"s... |
<!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 (version 1.7.0_111) on Thu Aug 18 01:51:59 UTC 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.a... | {
"content_hash": "30580cba576e95eacc619504f02e99a9",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 177,
"avg_line_length": 40.376068376068375,
"alnum_prop": 0.6202370872142252,
"repo_name": "TK-TarunW/ecosystem",
"id": "9f5025d51c31948bfa39854959dc2a5a55a1c605",
"size":... |
import Schema from 'ember-cli-mirage/orm/schema';
import Model from 'ember-cli-mirage/orm/model';
import Db from 'ember-cli-mirage/db';
import {module, test} from 'qunit';
var db, schema, User;
module('Integration | ORM | attrs', {
beforeEach() {
db = new Db({ users: [
{ id: 1, name: 'Link', evil: false }
... | {
"content_hash": "b33efac4dd10eb047f3e8d2698392969",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 75,
"avg_line_length": 24.966666666666665,
"alnum_prop": 0.630173564753004,
"repo_name": "lazybensch/ember-cli-mirage",
"id": "50b1756b8f7a005d35e932718ba174ffc39a15d4",
"s... |
package io.pravega.connectors.flink;
import org.apache.flink.api.common.typeutils.SerializerTestBase;
import org.apache.flink.api.common.typeutils.TypeSerializer;
public class FlinkPravegaTransactionStateSerializerTest extends SerializerTestBase<FlinkPravegaWriter.PravegaTransactionState> {
@Override
protec... | {
"content_hash": "c075b68711e707f38ff1992dbcbdb42b",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 128,
"avg_line_length": 33.21052631578947,
"alnum_prop": 0.7321711568938193,
"repo_name": "pravega/flink-connectors",
"id": "a1087c9dfbe3f5101da994bbe33b2b43d8469e43",
"siz... |
npm run build
cp ./clasp/production/.clasp.json ./dist
cp ./clasp/production/appsscript.json ./dist
cp ./src/api.js ./dist
(cd ./dist && clasp push)
rm ./dist/.clasp.json
rm ./dist/appsscript.json
rm ./dist/api.js | {
"content_hash": "7632f75ce57ac98685b093dc090baa15",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 44,
"avg_line_length": 21.5,
"alnum_prop": 0.7023255813953488,
"repo_name": "artofthesmart/Ob2SS",
"id": "d8171c5bfb989316b21cfbedae06f078aea9dcf2",
"size": "235",
"binar... |
package com.github.ybq.android.spinkit.animation.interpolator;
import android.view.animation.Interpolator;
/**
* Created by ybq.
*/
public class Ease {
public static Interpolator inOut() {
return PathInterpolatorCompat.create(0.42f, 0f, 0.58f, 1f);
}
}
| {
"content_hash": "38358b6666ea38f32b836f0fac1d3e98",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 67,
"avg_line_length": 22.75,
"alnum_prop": 0.7106227106227107,
"repo_name": "horsesdeveloper/camera",
"id": "916ca6f97496f9d4f4ea58c02db94ec0cd7314fb",
"size": "273",
"b... |
package org.jvyamlb.nodes;
import org.jruby.util.ByteList;
import org.jvyamlb.Position;
import org.jvyamlb.Positionable;
/**
* @author <a href="mailto:ola.bini@gmail.com">Ola Bini</a>
*/
public class PositionedScalarNode extends ScalarNode implements Positionable {
private Position.Range range;
public Po... | {
"content_hash": "5c3c335d7b9765c6d72b446d9036f409",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 146,
"avg_line_length": 31.066666666666666,
"alnum_prop": 0.6008583690987125,
"repo_name": "olabini/jvyamlb",
"id": "8edecf4d2199f4d9740a215b79d6b4e19531acb8",
"size": "148... |
"""
********************************************
* Title: Creating data manipulation w/ Gui *
* Author: Dustin A. Landers *
* License: GNU GPL-3 *
********************************************
"""
import os
import csv
from Tkinter import *
def cls():
os.system('cls')
class Data:
... | {
"content_hash": "a480832c62b7210e046f3733d107c4c0",
"timestamp": "",
"source": "github",
"line_count": 133,
"max_line_length": 125,
"avg_line_length": 27.601503759398497,
"alnum_prop": 0.6513211658948516,
"repo_name": "mtnman38/Horiz2Vert",
"id": "57eba2ed55ab22308e8c249acfa5e915456ea9f1",
"size":... |
<div class="mod_animate" id="J_datasourceContent"></div> | {
"content_hash": "218d10e20cf79acc145f5b0060c5280f",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 56,
"avg_line_length": 56,
"alnum_prop": 0.7321428571428571,
"repo_name": "knowThis/wxms",
"id": "c6ececa173274a05e8cb84b1bbd5ced75e3111b4",
"size": "56",
"binary": false,... |
from pysc2.lib import actions
import random
from oscar.agent.custom_agent import CustomAgent
# TODO: As RandomAgent is no more callable directly by pysc2, action_spec is undefined.
class RandomAgent(CustomAgent):
def __init__(self):
super().__init__()
def step(self, obs, locked_choice=None):
... | {
"content_hash": "9c179ecc6ecac5d31ee80b6233cde525",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 87,
"avg_line_length": 30.363636363636363,
"alnum_prop": 0.6736526946107785,
"repo_name": "Xaxetrov/OSCAR",
"id": "133c9c40fda6320dcdb329f7a2f39138acff8693",
"size": "668",... |
@interface ArtistDetailTableViewConrtoller ()
- (BOOL)validAttribute:(NSString * )attrib;
@property (nonatomic, strong, readonly) NSArray *values;
@end
@implementation ArtistDetailTableViewConrtoller
@synthesize artist = _artist;
@synthesize values = _values;
- (void)viewWillDisappear:(BOOL)animated {
// setu... | {
"content_hash": "53bf24b767d9aa384a924f976ffc39b2",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 276,
"avg_line_length": 38.72868217054263,
"alnum_prop": 0.6361088871096877,
"repo_name": "austimkelly/rrdb",
"id": "55a9b7ffaf7dd23daa3a21277d8885e57a2653d5",
"size": "62... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.