text stringlengths 2 1.04M | meta dict |
|---|---|
function sugar = detect_sugar_position(fl,nr_frames,ROI)
%DETECT_SUGAR_POSITION - This function computes the default position of
% the sugar pellet
% Inputs:
% fl - structure of required folder paths (fl.pre, fl.frames)
% nr_frames - nr of frames in video
% ROI ... | {
"content_hash": "a2856f44ac4f9e73081577614d384e37",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 95,
"avg_line_length": 31.483333333333334,
"alnum_prop": 0.6003176283748015,
"repo_name": "CompVis/AutomaticBehaviorAnalysis_NatureComm",
"id": "c6a127ce17400da2174029397fef0... |
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/reboot.h>
#include "common.h"
#include "daemon.h"
/* the init script path */
#define INIT_SCRIPT_PATH CONF_DIR"/rc.d/rc.sysinit"
/* the shutdown script path ... | {
"content_hash": "47ddc7b0e7ae9dd8e9384e6930ed9336",
"timestamp": "",
"source": "github",
"line_count": 158,
"max_line_length": 75,
"avg_line_length": 21.860759493670887,
"alnum_prop": 0.6459177764910249,
"repo_name": "dimkr/lazy-utils",
"id": "c8ac93edc3429798dd238cb5252d8224fd4db240",
"size": "34... |
var os = require('os'),
fs = require('fs'),
path = require('path'),
assert = require('assert'),
swintHelper = require('swint-helper'),
buildSVG = require('../lib');
global.swintVar.printLevel = 5;
describe('builder-svg', function() {
it('Error when no callback', function() {
assert.throws(function() {
buil... | {
"content_hash": "5b871fd459cf69e7c85ccced879208e9",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 78,
"avg_line_length": 27.08,
"alnum_prop": 0.6314623338257016,
"repo_name": "KnowRe/swint-builder-svg",
"id": "816a1d17f0758faaf387df30e109efce6c98b25d",
"size": "1354",
... |
package liquibase.change.core;
import liquibase.change.AbstractChange;
import liquibase.change.DatabaseChange;
import liquibase.change.ChangeMetaData;
import liquibase.change.DatabaseChangeProperty;
import liquibase.configuration.GlobalConfiguration;
import liquibase.configuration.LiquibaseConfiguration;
import liquib... | {
"content_hash": "f7fcb1b40c8b2cec475c6ea420e2de4e",
"timestamp": "",
"source": "github",
"line_count": 435,
"max_line_length": 244,
"avg_line_length": 35.93793103448276,
"alnum_prop": 0.5944476428068829,
"repo_name": "Datical/liquibase",
"id": "52098fc22e1c9eb325da15343ff7eaa69b925385",
"size": "1... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/nowCardStyle"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="top"
android:orientation="vertical" >
<EditText
android:id=... | {
"content_hash": "52d8241bc0eafa0d05411aa738930df3",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 72,
"avg_line_length": 30.541666666666668,
"alnum_prop": 0.6521145975443383,
"repo_name": "pieterverstraete/BeTrains-for-Android",
"id": "ca6558e9dccd9955867ef619d5ea20043dd2... |
<!--<div class="element-panel-index"><%= index %></div>-->
<div class="element-index"><%= index %></div>
<div class="element-panel-preview js-show">
<div class="btn-element " data-toggle="tooltip" data-placement="left" title="Open Element">
<% if( thumbnail === "about:blank" && questionText !== "") {%>
<div... | {
"content_hash": "7931f3cbacedda8b605c8f03a04adf3f",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 93,
"avg_line_length": 34.708333333333336,
"alnum_prop": 0.5714285714285714,
"repo_name": "pointable/hitcamp",
"id": "bcc8a67063a39b42c473ab61db1efdb617429590",
"size": "83... |
package org.jfrog.hudson.pipeline.common.types;
import com.google.common.collect.Maps;
import org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.Whitelisted;
import org.jenkinsci.plugins.workflow.cps.CpsScript;
import org.jfrog.hudson.CredentialsConfig;
import org.jfrog.hudson.pipeline.common.Utils;
import org.jf... | {
"content_hash": "a2af739c56d8bfa87ba92460879cb829",
"timestamp": "",
"source": "github",
"line_count": 335,
"max_line_length": 124,
"avg_line_length": 33.40597014925373,
"alnum_prop": 0.6918952729872219,
"repo_name": "AlexeiVainshtein/jenkins-artifactory-plugin",
"id": "2ab71e8f616a0077c2ab5dad8dcbc... |
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>PHPXRef 0.7.1 : Unnamed Project : Detail view of selector.php</title>
<link rel="stylesheet" href="../../sample.css" type="text/css">
<link rel="stylesheet" href="../../sample-prin... | {
"content_hash": "761e9370b2a2b8acd9633c17645b26f9",
"timestamp": "",
"source": "github",
"line_count": 229,
"max_line_length": 253,
"avg_line_length": 52.790393013100434,
"alnum_prop": 0.6620067830258913,
"repo_name": "inputx/code-ref-doc",
"id": "f4df5f30ea7b3c9c769b6e620c2fb15368acc7c3",
"size":... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_222) on Thu Jan 16 21:49:29 PST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Deprecated List (datasketch... | {
"content_hash": "e56c83155450daf0981856d5cce41e1b",
"timestamp": "",
"source": "github",
"line_count": 217,
"max_line_length": 243,
"avg_line_length": 43.20276497695853,
"alnum_prop": 0.7163733333333333,
"repo_name": "DataSketches/DataSketches.github.io",
"id": "185a0e7cd11f3c5e4ae5958555971f6131cb5... |
package ch.scaille.example.gui.model;
import ch.scaille.tcwriter.pilot.swing.ByName;
import ch.scaille.tcwriter.pilot.swing.JTablePilot;
import ch.scaille.tcwriter.pilot.swing.JToggleButtonPilot;
import ch.scaille.tcwriter.pilot.swing.PagePilot;
import ch.scaille.tcwriter.pilot.swing.SwingPilot;
public class ModelExa... | {
"content_hash": "b239efccd54445844bc4a50d1886a2c3",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 58,
"avg_line_length": 27.17391304347826,
"alnum_prop": 0.8016,
"repo_name": "sebastiencaille/sky-lib",
"id": "768b7bdce024ed13486ea91030d328c646fcabd2",
"size": "625",
"... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("GX... | {
"content_hash": "09b4fb6ff1a29d1c7e53f541f56160ba",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 38.916666666666664,
"alnum_prop": 0.7444682369735903,
"repo_name": "gongxiancao/open-productivity",
"id": "83ad77f717b61d507371565402840502222e389b",
... |
import { expect } from "chai";
import { parseXSD } from "../../src/util/SAXParser";
describe("SAXParser", function () {
it("basic", function () {
const x = parseXSD(xml);
expect(x).to.exist;
expect(x.root).to.exist;
expect(x.simpleTypes).to.exist;
});
});
const xml = `<?xml ve... | {
"content_hash": "b03d8ce8f02c0aa58110645ff3bfecb2",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 162,
"avg_line_length": 42.888888888888886,
"alnum_prop": 0.4943476212906265,
"repo_name": "GordonSmith/hpcc-platform-comms",
"id": "81320afe5189d40160194b595b40fb6e751bab3c"... |
namespace Meta.ParsingAndPrinting
{
/// <summary>
/// Represents physical directions. Used by rooms to keep track of adjacent/adjoining rooms.
/// </summary>
public enum Direction { north, east, south, west, northeast, southeast, northwest, southwest, up, down };
/// <summary>
/// Indicates whether a gi... | {
"content_hash": "82537a98d66ac3c341f2279070c35f52",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 160,
"avg_line_length": 41.095238095238095,
"alnum_prop": 0.694090382387022,
"repo_name": "julia-ford/Game-Engine",
"id": "78c297d739278cf7a14672a81cba4476e9e7191f",
"size"... |
// Copyright 2015-2020 Espressif Systems (Shanghai) PTE LTD
//
// 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 app... | {
"content_hash": "2550da7d286b1a9caaee92133950d1ca",
"timestamp": "",
"source": "github",
"line_count": 306,
"max_line_length": 153,
"avg_line_length": 49.754901960784316,
"alnum_prop": 0.6689655172413793,
"repo_name": "espressif/esp-idf",
"id": "678de453cae0469ecd8bc467ffe48f1c62db1cde",
"size": "... |
LeptonThread::LeptonThread() : QThread() { }
LeptonThread::~LeptonThread() { }
void LeptonThread::run() {
left.Open(0);
right.Open(1);
// Note that cv::Mat is a wrapper to the underlying data representation -- we only build these once, and they point to our frame buffers.
leftImage = cv::Mat(ROWS_PER_FRAME, R... | {
"content_hash": "ff7a0b6a671ff349874b68b54c97a7b0",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 151,
"avg_line_length": 36.544117647058826,
"alnum_prop": 0.6865191146881288,
"repo_name": "xolalpay/UNLV-UAV-Controls-jriesen",
"id": "254005a15b7c6bc4bb16d3d23b194de79751cc... |
package com.intellij.spellchecker.tokenizer;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiElement;
import com.intellij.spellchecker.inspections.PlainTextSplitter;
import consulo.util.dataholder.Key;
import javax.annotation.Nonnull;
public abstract class EscapeSequenceTokenizer<T extends PsiE... | {
"content_hash": "847926efbb30fbf1940576a0897fcb63",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 115,
"avg_line_length": 32.04761904761905,
"alnum_prop": 0.7578008915304606,
"repo_name": "consulo/consulo-spellchecker",
"id": "dee01df83e09acd31558f1ce3f769ac31b1b98e3",
... |
namespace blink {
class Document;
class DOMWrapperWorld;
class DummyPageHolder;
class ExecutionContext;
class LocalFrame;
class Page;
class ScriptStateForTesting : public ScriptState {
public:
static PassRefPtr<ScriptStateForTesting> create(v8::Local<v8::Context>,
... | {
"content_hash": "9bf3055409757c8e0272dba66976d7fb",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 79,
"avg_line_length": 26.375,
"alnum_prop": 0.7322274881516587,
"repo_name": "google-ar/WebARonARCore",
"id": "919360003df8f9099e491bc42526f78f5b9b4ea5",
"size": "1653",
... |
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "b0145228282d2b112a8dc290465a92f8",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 23,
"avg_line_length": 9.076923076923077,
"alnum_prop": 0.6779661016949152,
"repo_name": "mdoering/backbone",
"id": "5558c0f7765841afae10ba886c366531b872492b",
"size": "178... |
package org.usc.demo.synchronization;
import java.util.Arrays;
import java.util.List;
/**
* 以实例对象为锁对象的话,只要对象不同,就不会有同步锁,如果对象相同,才会有同步锁
*
* @author ShunLi
*/
public class SynchronizationTest2 {
public static void sync(String threadName, User user) {
String msg = threadName + ":" + user + ":";
Syste... | {
"content_hash": "4ee738233b294424b31010698a478a17",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 79,
"avg_line_length": 22.83076923076923,
"alnum_prop": 0.616576819407008,
"repo_name": "usc/demo",
"id": "6da1152e0f96f5ee9ca98be870367d1d2a65a43e",
"size": "1564",
"bin... |
import unittest
class Node:
def __init__(self, item, next=None):
self.item = item
self.next = next
@property
def val(self):
return self.item
@val.setter
def val(self, value):
self.item = value
def __repr__(self):
tail = repr(self.next)
return... | {
"content_hash": "be13a01743a996b6796f7138cefd0a47",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 59,
"avg_line_length": 21.976744186046513,
"alnum_prop": 0.4894179894179894,
"repo_name": "afbarnard/glowing-broccoli",
"id": "dc1c4637e1abec9ae7c71624df928a6cf9234f7f",
"s... |
namespace onnxruntime {
namespace cuda {
// kernel builder functions
#define NONZERO_TYPED_KERNEL_WITH_TYPE_NAME(type, type_name) \
ONNX_OPERATOR_VERSIONED_TYPED_KERNEL_EX( \
NonZero, ... | {
"content_hash": "22cf1ddb9aa092bd9e3a82a263b5a270",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 131,
"avg_line_length": 48.39784946236559,
"alnum_prop": 0.5449900022217286,
"repo_name": "microsoft/onnxruntime",
"id": "93badb82e20b80f4d36ecf9a1cd685d6f9669773",
"size":... |
import { MaintainerCloud } from "./MaintainerCloud";
export { MaintainerCloud };
| {
"content_hash": "eb11121c836ce8bf886a0819e6b862e3",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 52,
"avg_line_length": 27.333333333333332,
"alnum_prop": 0.7439024390243902,
"repo_name": "collinbarrett/FilterLists",
"id": "c0c593fa3d32d70afae894bacc30dda0ec3e0975",
"siz... |
<?php
namespace sas\galleryBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* CategoryRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class CategoryRepository extends EntityRepository
{
}
| {
"content_hash": "de8eeebc51b0fd68fac3b96ef083ecb9",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 68,
"avg_line_length": 17.666666666666668,
"alnum_prop": 0.7660377358490567,
"repo_name": "ddelor/sas",
"id": "74f45b2499e5c0813704c68b9775a54577348a75",
"size": "265",
"... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "d6a246b6c211ee9585e4a0ed00aaf0cb",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "d738c85f679d7920e6fca879d5a4acd352d122e7",
"size": "192... |
/*
basic pager with navigation and pages collection
-----dependencies
tmlib addClass, removeClass
-----parameters
-----instantiation
__.pager = new __.classes.Pager({elmsPages: jQuery('#maincontent .tabpage'), elmsNavigation: jQuery('#maincontent .tab')});
-----html
-----css
*/
/*-------
©Pager
-------- */
__.classes.... | {
"content_hash": "d3d4b8e9bbd4622d72f4b209a9e4cc4e",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 123,
"avg_line_length": 34.78048780487805,
"alnum_prop": 0.7288452547919588,
"repo_name": "tobymackenzie/Web-ClientBehavior",
"id": "d2e5bdb3fade5335db0382af49815039dcc84c0b... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "3ddd58b5c064fe069b9739ee0177af8e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "e201d85b7d369a1415b32f8d1fb23d35033f8f86",
"size": "183... |
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using Approve.RuleCenter;
using Approv... | {
"content_hash": "9b70a141758cb43cd63160987560489a",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 154,
"avg_line_length": 36.0945945945946,
"alnum_prop": 0.5932235117933359,
"repo_name": "coojee2012/pm3",
"id": "e7e2019437cbdcf1802a10525a0950ecef4baaa2",
"size": "5400"... |
package arn
// Threads ...
func (user *User) Threads() []*Thread {
threads := GetThreadsByUser(user)
return threads
}
// // Posts ...
// func (user *User) Posts() []*Post {
// posts, _ := GetPostsByUser(user)
// return posts
// }
// Settings ...
func (user *User) Settings() *Settings {
settings, _ := GetSetting... | {
"content_hash": "255357ac1231be7773abd960bfe96926",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 77,
"avg_line_length": 20.96078431372549,
"alnum_prop": 0.6758652946679139,
"repo_name": "animenotifier/arn",
"id": "1d8504c0c70e040392e50d7fca6bdb1a145193f9",
"size": "21... |
namespace nano
{
class block_store;
class transaction;
class rep_weights
{
public:
void representation_add (nano::account const & source_a, nano::uint128_t const & amount_a);
nano::uint128_t representation_get (nano::account const & account_a);
void representation_put (nano::account const & account_a, nano::uint128... | {
"content_hash": "aa249527bfcdd65763e0f9b44c1e57e1",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 110,
"avg_line_length": 37,
"alnum_prop": 0.7364864864864865,
"repo_name": "clemahieu/raiblocks",
"id": "818c5f4e174dd6e686ab4ec76f45e1789e5abaf2",
"size": "1028",
"binar... |
#ifndef IVW_VOLUMESUBSET_H
#define IVW_VOLUMESUBSET_H
#include <modules/base/basemoduledefine.h>
#include <inviwo/core/common/inviwo.h>
#include <inviwo/core/ports/volumeport.h>
#include <inviwo/core/processors/processor.h>
#include <inviwo/core/properties/boolproperty.h>
#include <inviwo/core/properties/minmaxprope... | {
"content_hash": "7e902998c5169e70b1f327ae7961da63",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 75,
"avg_line_length": 21.580645161290324,
"alnum_prop": 0.672645739910314,
"repo_name": "cgloger/inviwo",
"id": "666e8848e623484542fbe1dec300cc9d92c7b2df",
"size": "2922",... |
<?php
namespace liderDeportivo\ExtranetBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBun... | {
"content_hash": "e53cf28113a59a47ea384b6716577649",
"timestamp": "",
"source": "github",
"line_count": 297,
"max_line_length": 119,
"avg_line_length": 31.14814814814815,
"alnum_prop": 0.5635066479299535,
"repo_name": "ovelasquez/lider",
"id": "7b3a55c7e81c23023dccd5d28072e45748e8bbe9",
"size": "92... |
package com.fishercoder;
import com.fishercoder.solutions._1118;
import org.junit.Before;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
public class _1118Test {
private static _1118.Solution1 solution1;
@Before
public void setupForEachTest() {
solution1 = new _1118.... | {
"content_hash": "f1b7272f65a7b9354cd0fafa9f775a0e",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 58,
"avg_line_length": 20.243243243243242,
"alnum_prop": 0.6475300400534045,
"repo_name": "fishercoder1534/Leetcode",
"id": "633a16ab395200c210931009d43ae640d62538e7",
"siz... |
package reactive.week01
/**
* @author mpakhomov
* @since 12/18/15
*/
abstract class JSON
case class JSeq (elems: List[JSON]) extends JSON
case class JObj (bindings: Map[String, JSON]) extends JSON
case class JNum (num: Double) extends JSON
case class JStr (str: String) extends JSON
case class JBool (b: Boolean)... | {
"content_hash": "61c81186bdcad66ef8bd38048ffac53d",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 64,
"avg_line_length": 26.16,
"alnum_prop": 0.5596330275229358,
"repo_name": "mpakhomov/scala-progfun-2015",
"id": "4b510e0120a57dc26d4a73ad012c17a151611d1c",
"size": "1308... |
package com.pchudzik.springmock.mockito;
import com.pchudzik.springmock.infrastructure.MockConstants;
public class MockitoConstants {
public static final String PACKAGE_PREFIX = MockConstants.PACKAGE_PREFIX + "mockito.";
}
| {
"content_hash": "09dcd8a43590f0fe444d051b035eaba3",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 87,
"avg_line_length": 32.285714285714285,
"alnum_prop": 0.8185840707964602,
"repo_name": "pchudzik/springmock",
"id": "9de105adafe29ecb5e12cea5af2bc83ded1b9077",
"size": "2... |
#include <algorithm>
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>
#include <boost/type_traits.hpp>
#include <boost/typeof/typeof.hpp>
#include "Driver.hpp"
/**
Set default values of ARD header.
@param pDesc ARD*.
@param pStmt HDRVSTMT.
*/
void _SQLSetARDFieldsDefault(ARD* pDesc, const SQL... | {
"content_hash": "9507af18d941d57f9a942759595f4e4a",
"timestamp": "",
"source": "github",
"line_count": 1257,
"max_line_length": 77,
"avg_line_length": 24.184566428003183,
"alnum_prop": 0.6911513157894736,
"repo_name": "yichenghuang/BigObject-ODBC",
"id": "c50ad27336afc71394b1847f24941a7ecf0a60f7",
... |
package com.verizon.bda.trapezium.dal.lucene
import com.verizon.bda.trapezium.dal.exceptions.LuceneDAOException
import org.apache.spark.sql.Row
import org.apache.spark.sql.types._
import org.slf4j.LoggerFactory
/**
* @author debasish83 on 12/22/16.
* Supports primitives for extracting doc value fields
*/
c... | {
"content_hash": "ec2dc6048429c49e0ba5b150ff1303c7",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 91,
"avg_line_length": 34.07692307692308,
"alnum_prop": 0.6914973664409331,
"repo_name": "Verizon/trapezium",
"id": "25e942115b53b0f0084630673500925b8543ed7b",
"size": "265... |
/**
* Created by Administrator on 2016/6/15.
*/
$(document).ready(function(){
$("#btn").on("click",function(){
$.get("Server.php",{name:$("#namevalue").val()},function(data){
$("#result").text(data);
})
})
}); | {
"content_hash": "4b3159af52185db2bbe02385bc007445",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 70,
"avg_line_length": 24.2,
"alnum_prop": 0.512396694214876,
"repo_name": "wangyongtan/H5",
"id": "9a7fb746afa9507f8e8568c7dde1d026e2d21167",
"size": "242",
"binary": fa... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_execvp_51a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-51a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_socket Read data ... | {
"content_hash": "5200013b8d94ef3a833666c84737111b",
"timestamp": "",
"source": "github",
"line_count": 201,
"max_line_length": 112,
"avg_line_length": 29.079601990049753,
"alnum_prop": 0.5837467921300257,
"repo_name": "maurer/tiamat",
"id": "2dc700f1bdee48a53eb2acbf5c66f7e70ac87142",
"size": "5845... |
<?php
namespace StackGuru\Commands\Scanner;
use StackGuru\Core\Command\AbstractCommand;
use StackGuru\Core\Command\CommandContext;
use React\Promise\Promise as Promise;
use React\Promise\Deferred as Deferred;
use StackGuru\Core\Utils\Response as Response;
class RemoveRole extends AbstractCommand
{
protected sta... | {
"content_hash": "5263c8225d919525809a2847986975e8",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 127,
"avg_line_length": 29.857142857142858,
"alnum_prop": 0.608339029391661,
"repo_name": "sciencefyll/stack-guru",
"id": "e7f2b7a6443e0e7344f6e0cd88bab5e6d79410e8",
"size"... |
<?php
/**
* Extended Identical validator. Added recursive context search.
*
* @category Modern
* @package Modern_Validate
* @author Rafał Gałka <rafal@modernweb.pl>
* @copyright Copyright (c) 2007-2012 ModernWeb (http://www.modernweb.pl)
*/
class Modern_Validate_Identical extends Zend_Validate_I... | {
"content_hash": "82cf5554f1085fdd30eb7b7bdb3cb6df",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 83,
"avg_line_length": 24.876712328767123,
"alnum_prop": 0.5,
"repo_name": "Hagith/zf1-lib",
"id": "082a1ad1c6dfa8fcdb30509c34ed041aba8cef22",
"size": "2533",
"binary": f... |
<?php
namespace gexo\image\transformer;
/**
* Must be implemented by all cropper transformers
*
* @copyright 2014 Stefan Oswald
* @link https://github.com/gexo/GexoImage
* @author Stefan Oswald <github@gexo.de>
*/
interface iCropper extends iTransformer {
/**
*
* @return integer
*/
... | {
"content_hash": "d9245b070a6be2fd47fb09f0bd465997",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 50,
"avg_line_length": 14.82089552238806,
"alnum_prop": 0.5830815709969789,
"repo_name": "gexo/GexoImage",
"id": "b7a352241fc5cb0ecfabcce299c544e6fc748304",
"size": "2214",... |
import Tapable = require('tapable');
class DllPlugin {
apply(compiler: Compiler) {
compiler.plugin('doSomething', function (...args: string[]) {
console.log(args);
});
compiler.plugin(['doSomething', 'doNothing'], function (...args: string[]) {
console.log(args);
... | {
"content_hash": "b6ba5b5095391c5b29e370173d5df417",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 84,
"avg_line_length": 32.63414634146341,
"alnum_prop": 0.6920777279521674,
"repo_name": "schmuli/DefinitelyTyped",
"id": "eca641655c5ecdd6b2f55ca99d30361f59c3a21c",
"size"... |
<?php
// Set timezone so tests run consistently independent of machine's timezone
date_default_timezone_set('GMT');
require __DIR__ . '/../vendor/autoload.php';
| {
"content_hash": "42b656bb65e632d6284a22bba57b9c94",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 75,
"avg_line_length": 27.166666666666668,
"alnum_prop": 0.7177914110429447,
"repo_name": "gajus/bugger",
"id": "56277e0937b5e20231191040cdc02018833518e6",
"size": "163",
... |
from lib import wphttp
from lib import wpprint
from generic import wpgeneric
from plugins import wpplugin
from themes import wptheme
from users import wpusers
class wpall:
def run(self,agent,proxy,redirect,url):
wpgeneric.wpgeneric().run(agent,proxy,redirect,url)
wptheme.wptheme(agent,proxy,redirect,url).run()
... | {
"content_hash": "f56a9ac5878a7d530891ba4ddc8d915d",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 53,
"avg_line_length": 32.38461538461539,
"alnum_prop": 0.7933491686460807,
"repo_name": "Yukinoshita47/Yuki-Chan-The-Auto-Pentest",
"id": "2770cf3df279fee39c0af675e3d99d3214... |
MQTT-Stage
==========
This utility trigger actions based on MQTT messages. To trigger the script simply put in a file path coresponding to the topic you want to trigger it on.
MQTT Stage produces and acts on MQTT messages by running a number of user defined or predefined python scripts.
The scipts are divided into... | {
"content_hash": "ae327c08eb5310d82e275b6a447f98de",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 255,
"avg_line_length": 53.54545454545455,
"alnum_prop": 0.7753254102999434,
"repo_name": "Anton04/MQTT-Stage",
"id": "0639f7a7bba89986913660cd170a30357ff5765d",
"size": "1... |
package com.byteslounge.slickrepo.test.derby
import com.byteslounge.slickrepo.test.{DerbyConfig, LongInstantVersionedRepositoryTest}
class DerbyLongInstantVersionedRepositoryTest extends LongInstantVersionedRepositoryTest(DerbyConfig.config)
| {
"content_hash": "6b76e179d75b41ff1e75c2b58c672cd0",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 108,
"avg_line_length": 35.142857142857146,
"alnum_prop": 0.8902439024390244,
"repo_name": "gonmarques/slick-repo",
"id": "3a4ab90be493005f359ab3c0cad8210cd3e3c2b4",
"size":... |
rust-tiled
==========
A library for the Tiled editor format, written in Rust
| {
"content_hash": "bdd8e3456ba0d870a583afd2c640ca1b",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 54,
"avg_line_length": 19.5,
"alnum_prop": 0.6794871794871795,
"repo_name": "Denommus/rust-tiled",
"id": "e029f3d08403caf8e8db93e1bba9296f64e6c068",
"size": "78",
"binary"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>pts: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | {
"content_hash": "cff35e5a579558ef12cb0533860e0ea3",
"timestamp": "",
"source": "github",
"line_count": 181,
"max_line_length": 159,
"avg_line_length": 41.110497237569064,
"alnum_prop": 0.5562424405321865,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "74429b936a8fad1b5321b3811da8b12141cc46f6",... |
<?php // Vars: $articlePager
use_helper('Date');
echo $articlePager->renderNavigationTop();
echo _open('ul.elements');
foreach ($articlePager as $article)
{
echo _open('li.element');
// wrap the article link into a H2 tag with the t_medium CSS class
echo _tag('h2.t_medium', _link($article... | {
"content_hash": "1aa4cbcd201bfa3765b319332510e6ba",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 76,
"avg_line_length": 27.027027027027028,
"alnum_prop": 0.591,
"repo_name": "carechimba/diem",
"id": "7857ac69723399959cff36fb65fe46ce8a028b66",
"size": "1000",
"binary"... |
<?php
namespace Dog2puppy\LoadScreen;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\event\Listener;
use pocketmine\network\protocol\ChangeDimensionPacket;
use pocketmine\plugin\PluginBase;
class Main extends PluginBase implements Listener
{
public function onEnable()
{
... | {
"content_hash": "9a3e31f30ff5ce7a18fbe3956fa04070",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 91,
"avg_line_length": 34.5609756097561,
"alnum_prop": 0.5899788285109386,
"repo_name": "Dog2puppy/LoadScreen",
"id": "b8308e1699aa49192653ca7f28ad79a58c40db5f",
"size": "1... |
title: Customizing the Quick Access Menu
page_title: Customizing the Quick Access Menu - RadRibbonBar
description: Quick Access Toolbar is an area of RadRibbonBar above the tabs.
slug: winforms/ribbonbar/programming-radribbonbar/customizing-the-quick-access-menu
tags: customizing,the,quick,access,menu
published: T... | {
"content_hash": "59c54fe56d84eefd720d148313cfb528",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 314,
"avg_line_length": 47.27777777777778,
"alnum_prop": 0.7732079905992949,
"repo_name": "telerik/winforms-docs",
"id": "49f5940c5ae7d774a2d4838f40f6a023211cfdef",
"size":... |
using System;
using Newtonsoft.Json;
namespace VkNet.Model.RequestParams;
/// <summary>
/// Places Add Params
/// </summary>
[Serializable]
public class PlacesAddParams
{
/// <summary>
/// Название нового места
/// </summary>
[JsonProperty(propertyName: "title")]
public string Title { get; set; }
/// <summary... | {
"content_hash": "89a3e84bfc419ce20014d46fc9628398",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 78,
"avg_line_length": 26.547169811320753,
"alnum_prop": 0.6922530206112296,
"repo_name": "vknet/vk",
"id": "926586b35c8087819e1a12bef981332943a29e61",
"size": "1717",
"b... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class Larislackers\BinanceApi\Exception\BinanceApiException</title>
<link rel="stylesheet" href="resources/style.css?c2f33731c1948fbed7c333554678bfa68d4817da">
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span... | {
"content_hash": "b21eb50926889d8ef8b44846a014f9eb",
"timestamp": "",
"source": "github",
"line_count": 320,
"max_line_length": 345,
"avg_line_length": 20.75625,
"alnum_prop": 0.626317374284854,
"repo_name": "larislackers/php-binance",
"id": "f80f48733a220ee904d8430dd519a820c1a688f3",
"size": "6642... |
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Coffeescript-UI Documentation</title>
<script src='../../javascript/application.js'></script>
<script src='../../javascript/search.js'></script>
<link rel='stylesheet' href='../../stylesheets/application.css' type='text/css'>
</head>
<body>
<... | {
"content_hash": "b55fb113cb7bc58171834140d019da75",
"timestamp": "",
"source": "github",
"line_count": 423,
"max_line_length": 112,
"avg_line_length": 36.16548463356974,
"alnum_prop": 0.5785723624003137,
"repo_name": "programmfabrik/coffeescript-ui",
"id": "715576d659f107ce3857d904446b6d8ad9197fa5",... |
<?php
namespace Oro\Bundle\SearchBundle\Tests\Unit\Engine;
use Doctrine\DBAL\DBALException;
use Oro\Bundle\EntityBundle\ORM\DatabaseDriverInterface;
use Oro\Bundle\SearchBundle\Engine\FulltextIndexManager;
use Oro\Bundle\SearchBundle\Engine\Orm\PdoMysql;
class FulltextIndexManagerTest extends \PHPUnit\Framework\Test... | {
"content_hash": "25857ec6975b9969e6764a592d08f1c8",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 119,
"avg_line_length": 27.9468085106383,
"alnum_prop": 0.5668062428625809,
"repo_name": "orocrm/platform",
"id": "e3a0a2ee53e8a1cac1293039f193a896554c3de7",
"size": "2627"... |
package io.codearcs.candlestack.aws;
import io.codearcs.candlestack.CandlestackException;
public class CandlestackAWSException extends CandlestackException {
private static final long serialVersionUID = 1L;
public CandlestackAWSException( String msg ) {
super( msg );
}
public CandlestackAWSException( Stri... | {
"content_hash": "7ff72046aa57a142f8bff9b39ddb0762",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 67,
"avg_line_length": 18.85,
"alnum_prop": 0.7692307692307693,
"repo_name": "CodeArcsInc/candlestack",
"id": "6b4cf3f52bbd6074e59ef0a2bc839029f4cc1686",
"size": "377",
"... |
namespace QA.Core.Exceptions
{
using System;
using System.Text;
using OpenQA.Selenium;
public class NoSuchElementException : ApplicationException
{
public NoSuchElementException()
{
}
public NoSuchElementException(By by, BaseWebDriverTest ext, Exception ex)
... | {
"content_hash": "7c3cec43be1fb1836a337d9236646fd6",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 150,
"avg_line_length": 31.365853658536587,
"alnum_prop": 0.6423017107309487,
"repo_name": "phristov/QA.SeleniumWebDriver.CSharp",
"id": "0354a536589d713559b89a6ea5923192adba... |
<?php
namespace Zf2ClientMoysklad;
require_once __DIR__.'/_config.php';
use Zf2ClientMoysklad\Entity\Good;
use Zf2ClientMoysklad\Entity\PurchaseOrder;
use Zf2ClientMoysklad\Repository\BasicRepository;
global $sm;
/* @var $entityManager EntityManager */
$entityManager = $sm->get('zf2clientmoysklad_entity_manager');
... | {
"content_hash": "5bad3f3d85216eb7f3074d3fae2272dd",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 87,
"avg_line_length": 33.65384615384615,
"alnum_prop": 0.7348571428571429,
"repo_name": "spalax/MoySkladClient",
"id": "de54977da047b3cde74e69d3364405bbfc1d479f",
"size": ... |
<ns0:eml xmlns:ns0="eml://ecoinformatics.org/eml-2.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" packageId="knb-lter-europe-deims.13466.14905" system="knb-lter-europe-deims" xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.1 https://code.ecoinformatics.org/code/eml/tags/RELEASE_EML_2_1_1/eml.xsd">
<ac... | {
"content_hash": "38ae9f87f2ca18340b804735600bb217",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 554,
"avg_line_length": 38.46067415730337,
"alnum_prop": 0.773298276365761,
"repo_name": "NCEAS/metadig",
"id": "7a4eab6dc2e1d37319f9fd53a957365e73f20031",
"size": "3423",
... |
package com.sentenial.ws.client.usermgmnt;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CancelDirectDebitReasonCode.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType n... | {
"content_hash": "233e2b24a2bd6ce1c52995fd7227d390",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 102,
"avg_line_length": 23.717391304347824,
"alnum_prop": 0.6626947754353804,
"repo_name": "whelanp/sentenial-ws-client",
"id": "d7782a8aba56f24f765d723933598c0d78e57576",
... |
package armdelegatednetwork_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/delegatednetwork/armdelegatednetwork"
)
// Generated from example definition: https://github.com/A... | {
"content_hash": "710b35aba02cdc4b6bee4281c8463c00",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 204,
"avg_line_length": 33.44642857142857,
"alnum_prop": 0.7229044313934864,
"repo_name": "Azure/azure-sdk-for-go",
"id": "60b96c6ebb7b17e270ce5e160fe712d11ac33c1b",
"size... |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | {
"content_hash": "51394e1b8d4b2e451d88a6e979561b7c",
"timestamp": "",
"source": "github",
"line_count": 159,
"max_line_length": 147,
"avg_line_length": 47.132075471698116,
"alnum_prop": 0.7452628769682412,
"repo_name": "lsmall/flowable-engine",
"id": "1b7f1293aa8ea9ef14abca226325469f31435b0a",
"siz... |
jquery-responsive-image
=======================
A very simple jQuery plugin to force images to truly responsive. I wrote jquery plugin primarily this because WYSIWYG editors can add inline width/height styles or width/height attributes to images which can override some CSS approaches. When using a CMS with non techni... | {
"content_hash": "ab74dd011b547be789774d9f7c58a959",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 321,
"avg_line_length": 92.75,
"alnum_prop": 0.77088948787062,
"repo_name": "troylutton/jquery-responsive-image",
"id": "9089f78b10d1765fbd3f1df794ff630278d6d1ce",
"size": "... |
//-----------------------------------------------------------------------
// <copyright file="BusyAnimation.cs" company="Marimer LLC">
// Copyright (c) Marimer LLC. All rights reserved.
// Website: http://www.lhotka.net/cslanet/
// </copyright>
// <summary>User control that displays busy animation</summary>
//... | {
"content_hash": "adf6eddb2021483dd2d1babd621a6e6a",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 373,
"avg_line_length": 28.602649006622517,
"alnum_prop": 0.6191247974068071,
"repo_name": "BrettJaner/csla",
"id": "5ab51d3a8b60377f0adbe196d94184501f8ffb60",
"size": "43... |
.class public final Landroid/media/TimedText$Karaoke;
.super Ljava/lang/Object;
.source "TimedText.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/media/TimedText;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Karao... | {
"content_hash": "46f0005c3c5fa7c2b191e5ddb695c593",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 65,
"avg_line_length": 21.566037735849058,
"alnum_prop": 0.6937882764654418,
"repo_name": "shumxin/FlymeOS_A5DUG",
"id": "f4b67f2fc35069d78a40ba5dbfb8d2826d1ced1f",
"size":... |
from rdflib.store import Store, VALID_STORE, NO_STORE
from rdflib.term import URIRef
from rdflib.py3compat import b
def bb(u):
return u.encode('utf-8')
try:
from bsddb import db
has_bsddb = True
except ImportError:
try:
from bsddb3 import db
has_bsddb = True
except ImportError:
... | {
"content_hash": "39f2fab5e3c031169531150b99897471",
"timestamp": "",
"source": "github",
"line_count": 605,
"max_line_length": 79,
"avg_line_length": 34.27603305785124,
"alnum_prop": 0.48782369677388243,
"repo_name": "hwroitzsch/DayLikeTodayClone",
"id": "1424f29149aaa230075f6f2c781d42926990e5b6",
... |
namespace XPlat.Device.Geolocation
{
using System;
/// <summary>
/// Defines an exception for an error in the <see cref="IGeolocator"/>.
/// </summary>
public class GeolocatorException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="GeolocatorExcepti... | {
"content_hash": "70f0e79b3551466b12720dd2e3174f56",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 211,
"avg_line_length": 43.84848484848485,
"alnum_prop": 0.650310988251555,
"repo_name": "jamesmcroft/XPlat-Windows-APIs",
"id": "dc5870f7b007be288ff1eb068077b8d998142c36",
... |
.port, .ip {
font-family: monospace;
}
/* Field errors */
.fielderror {
color: #c0392b;
}
/* Flashes */
.flash-message {
margin-top:20px;
}
.online {
color:#7f8c8d;
}
footer {
margin-bottom: 20px !important;
color:#7f8c8d !important;
}
#donate {
margin-bottom: 10px !important;
}
#refre... | {
"content_hash": "6a8e25df8a9d8285d606d982f3172a07",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 55,
"avg_line_length": 15.066666666666666,
"alnum_prop": 0.6342182890855457,
"repo_name": "FredrikAugust/Aether-Nodes",
"id": "1a27f703301020bdb1af6fcb64cd00a69a9f0ac3",
"s... |
FLEX (Flipboard Explorer) is a set of in-app debugging and exploration tools for iOS development. When presented, FLEX shows a toolbar that lives in a window above your application. From this toolbar, you can view and modify nearly every piece of state in your running application.

: nCmdShow_(nCmdShow),
name_(name),
windowClass_(hInstance, name, &StaticWindowProcedure)
{
MEMBER_LOG_STRING_TAG(L"Application");
}
void Application::Run()
{
MEMBER_LOG_SEV(... | {
"content_hash": "f8ab9cf750e535b07670d73b9bb41ca1",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 127,
"avg_line_length": 29.508928571428573,
"alnum_prop": 0.6384266263237519,
"repo_name": "kaylynb/Sunflower",
"id": "83df83c5ba8eca2cab81259bc5e33c132849cf56",
"size": "... |
package org.apache.hadoop.fs.glusterfs;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.apache.hadoop.fs.FSError;
import org.apache.hadoop.fs.Path;
public class GlusterFileOut extends OutputStream{
private FileOutputStream fos;
pri... | {
"content_hash": "217d5831e2d81f3cfd3190477c561900",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 71,
"avg_line_length": 24.65714285714286,
"alnum_prop": 0.6720741599073001,
"repo_name": "childsb/glusterfs-hpi",
"id": "5bc357c22f00e39a1625d166cb1eab884250ace9",
"size": ... |
package pubsub_test
import (
"context"
"fmt"
"runtime/debug"
"testing"
"time"
"github.com/hyperledger/burrow/event/pubsub"
"github.com/hyperledger/burrow/event/query"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
const (
clientID = "test-client"
receiveTimeout = 10 * t... | {
"content_hash": "267de0d350dcb965bdb8933d20d6a564",
"timestamp": "",
"source": "github",
"line_count": 238,
"max_line_length": 152,
"avg_line_length": 28.067226890756302,
"alnum_prop": 0.6655688622754491,
"repo_name": "eris-ltd/eris-db",
"id": "e8a405462a770383cf562d92975437e80e735dc8",
"size": "6... |
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities: {
'browserName':... | {
"content_hash": "1dc5a83138db529f18b1e44388bc44b8",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 90,
"avg_line_length": 26.181818181818183,
"alnum_prop": 0.65625,
"repo_name": "mtsukuda/ionicseed",
"id": "be4322d03225cb5133e0f322ecbfb58a7b80ae9f",
"size": "864",
"bin... |
package top.cardone.func.v1.configuration.navigation;
import com.google.common.base.Charsets;
import com.google.common.collect.Maps;
import com.google.gson.Gson;
import top.cardone.CardoneConsumerApplication;
import lombok.extern.log4j.Log4j2;
import lombok.val;
import org.apache.commons.io.FileUtils;
import org.junit... | {
"content_hash": "7a6481b27bb88c6583d91816e168dabb",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 193,
"avg_line_length": 44.83561643835616,
"alnum_prop": 0.7540482737549649,
"repo_name": "yht-fand/cardone-platform-configuration",
"id": "e0322dc99db5eabf15fe010e199ba85712... |
<?php
namespace Noergaard\ServerPilot\Contracts;
use Noergaard\ServerPilot\Entities\ServerEntity;
interface ServersContract
{
/**
* List all servers
*
* @return array
*/
public function all();
/**
* Retrieve an Existing Server
*
* @param $id
*
* @return Serve... | {
"content_hash": "d9dfb3ca979fa11e4ef3cf2027824df7",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 85,
"avg_line_length": 18.22222222222222,
"alnum_prop": 0.5660569105691057,
"repo_name": "ThomasNoergaard/serverpilot-php-client",
"id": "4e4f27300820eb4bc7035a66205c1b0ef808... |
namespace ash {
namespace {
InstallAttributes* g_install_attributes = nullptr;
// Calling SetForTesting sets this flag. This flag means that the production
// code which calls Initialize and Shutdown will have no effect - the test
// install attributes will remain in place until ShutdownForTesting is called.
bool g_... | {
"content_hash": "125d37bc4703e26fccc1b5ee2a415c26",
"timestamp": "",
"source": "github",
"line_count": 595,
"max_line_length": 80,
"avg_line_length": 38.452100840336136,
"alnum_prop": 0.6802744875213077,
"repo_name": "chromium/chromium",
"id": "12c4fc70ced01043b7263fe260fadaf1e7a90411",
"size": "2... |
Copyright (c) 2016-2017 Iman Ghafoori
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,... | {
"content_hash": "d6890c305d54cbb5b6ec9f7a365c18ff",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 100,
"avg_line_length": 66.625,
"alnum_prop": 0.8030018761726079,
"repo_name": "imanghafoori1/laravel-widgetize",
"id": "1d7c2ddd4636eeae9c88a5bb9a5854914ec74075",
"size": ... |
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<datasource jndi-name="jdbc/ApiManagerDS" pool-name="apiman-manager-api" enabled="true"
use-java-context="true">
<connection-url>jdbc:mysql://MYSQLSERVER:3306/apiman</connection-url>
<driver>mysql-connector-java-5.1.33-bin.jar_com.mysql.jdbc.Driver_5_1<... | {
"content_hash": "62a2a518d131973a5985c154c9e3ce33",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 89,
"avg_line_length": 34.93333333333333,
"alnum_prop": 0.6698473282442748,
"repo_name": "fadiabdeen/apiman",
"id": "bae8ee8c917448cbd00cca6e5cbfef6e43053a0a",
"size": "524... |
namespace vfs {
class vfs : public interfaces::component {
constexpr static const char *name_ = "vfs";
static null_block_device null_bd_;
utils::array<block_device *, 32> block_devices_;
unsigned bd_index_ = 0;
utils::list<mount_point_t> mount_points_;
utils::list<file_t> files_;
cache ca... | {
"content_hash": "5b41e2c708ca703e39c9c4d65a875a0a",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 131,
"avg_line_length": 30.76923076923077,
"alnum_prop": 0.66,
"repo_name": "Mrokkk/objective-kernel",
"id": "9ac9fc7c0a9506b170957d980937f24029cb2b73",
"size": "1481",
"... |
<?php
namespace app\modules\catalog\models;
use Yii;
/**
* This is the model class for table "{{%company_image}}".
*
* @property integer $company_id
* @property integer $image_id
*
* @property Image $image
* @property Company $company
*/
class CompanyImage extends \app\modules\core\models\CoreModel
{
/**... | {
"content_hash": "d47fd9ced612976e298dad915cb551cc",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 75,
"avg_line_length": 18.761904761904763,
"alnum_prop": 0.5135363790186125,
"repo_name": "proteye/YiiPress2",
"id": "0446ee26444015c3b9c2330078d1476af8b7a878",
"size": "11... |
<?php
namespace Figaromedias\Bundle\PechealamoucheBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PechealamoucheBundle extends Bundle
{
}
| {
"content_hash": "74c547288fa42e75cb3c626386607a21",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 51,
"avg_line_length": 17.22222222222222,
"alnum_prop": 0.832258064516129,
"repo_name": "figaromedias/Ateliers_figaro",
"id": "31801f1cac35fce076a819839aa00e00324678ff",
"si... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "cc4c6a688d20dc009c1ea87d8dc72225",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 615,
"avg_line_length": 67.8955223880597,
"alnum_prop": 0.6922400527588481,
"repo_name": "tzmartin/gae-python.docset",
"id": "6f4a89d4214bca7f3af09eaaf3526652e9e76f38",
"si... |
class WelcomeController < ApplicationController
def index
render text: "It worked - #{Time.now} - #{hostname}"
end
private
def hostname
%x(hostname)
end
end
| {
"content_hash": "976da138e41af86bcf34e5f24ab5d8c7",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 56,
"avg_line_length": 16.09090909090909,
"alnum_prop": 0.6779661016949152,
"repo_name": "juwalter/capistrano-docker-rails-sample",
"id": "904c085b3a668a92d90df3a33585bba422e... |
title: azu25
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: u25
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:
... | {
"content_hash": "bb516298e41c9903c204d1295ac10d3e",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 61,
"avg_line_length": 22.333333333333332,
"alnum_prop": 0.6656716417910448,
"repo_name": "pblack/kaldi-hugo-cms-template",
"id": "0e82f1b74c7da5228278d853947f55797c7469ce",
... |
@extends('plantillas.admin.mainAdmin')
@section('title','Editar Nombre')
@section('titleComplement','Admin')
@section('headerContent','Editar Nombre')
@section('headerDescription','...')
@section('contentPage')
<div class="row">
<div class="col-md-5"><div class="box box-info">
<div class="bo... | {
"content_hash": "93d61bce36658dd0e238a4a708e84883",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 160,
"avg_line_length": 41.53125,
"alnum_prop": 0.4928517682468021,
"repo_name": "fran-bravo/social-cocktail",
"id": "663a5b2cf2b2d305c1d01d5824a5b8f6889ea840",
"size": "13... |
package com.sequenceiq.it.cloudbreak.action.v4.notificationtest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sequenceiq.it.cloudbreak.CloudbreakClient;
import com.sequenceiq.it.cloudbreak.action.Action;
import com.sequenceiq.it.cloudbreak.context.TestContext;
import com.sequenceiq.it.cloudbrea... | {
"content_hash": "f64b52639240f3aceb9bc056cbe19147",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 159,
"avg_line_length": 44.30434782608695,
"alnum_prop": 0.7978410206084396,
"repo_name": "hortonworks/cloudbreak",
"id": "0fed5e1e830d853c641446e9191a91d9932a1cce",
"size"... |
var frozenRef = firebase.database().ref('Lists/Walmart/Frozen');
var frozenList = document.getElementById("frozenList");
document.getElementById("addItemFrozen").addEventListener('click', function() {
var itemName = document.getElementById("itemName").value.trim();
if(itemName.length > 0) {
saveToFB(itemName);... | {
"content_hash": "937c53e0df40274cb394a38d3649d6e9",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 117,
"avg_line_length": 30.11627906976744,
"alnum_prop": 0.6158301158301158,
"repo_name": "favaroj/shopping-list",
"id": "253fa7cf74c5539e503d20a33dbdb275d5004b5e",
"size":... |
package org.jenkinsci.plugins.mesos;
import org.apache.commons.lang.StringUtils;
import org.apache.mesos.Protos;
import org.apache.mesos.SchedulerDriver;
import org.jenkinsci.plugins.mesos.scheduling.Lease;
import org.jenkinsci.plugins.mesos.scheduling.Request;
import org.jenkinsci.plugins.mesos.scheduling.creator.Tas... | {
"content_hash": "0dd2c1020abead95e9b27a676196ef27",
"timestamp": "",
"source": "github",
"line_count": 185,
"max_line_length": 153,
"avg_line_length": 39.07027027027027,
"alnum_prop": 0.6438848920863309,
"repo_name": "goettl79/mesos-plugin",
"id": "6db6b1f3bf0aa566a147dd1f5c26322ee2c31802",
"size"... |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class WindowDecoder
| Pleosoft.XdeltaSharp - VCDIFF for .NET </title>
<meta name="viewport" content="width=device-width">
<meta name=... | {
"content_hash": "366ac03491607a181500feb57535f747",
"timestamp": "",
"source": "github",
"line_count": 333,
"max_line_length": 499,
"avg_line_length": 54.771771771771775,
"alnum_prop": 0.510718789407314,
"repo_name": "pleonex/xdelta-sharp",
"id": "c2153d0d04b3700a867a33872aaa256f2320622d",
"size":... |
let checkResult = null
function checkForUpdates () {
const npmLatest = require('npm-latest')
const packageJson = require('../package.json')
const colors = require('colors')
const semver = require('semver')
npmLatest('how2', { timeout: 1500 }, (err, npm) => {
if (err) {
console.error(err)
ret... | {
"content_hash": "fbbc113d35f8a5cdeb839bf899a7e08f",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 71,
"avg_line_length": 22.7,
"alnum_prop": 0.6123348017621145,
"repo_name": "santinic/how2",
"id": "b85c786d5199995635dfb300d06f914df071cf83",
"size": "681",
"binary": fa... |
#include "stdafx.h"
#include "../PriorityTape.h"
#include "../PriorityTapeGroup.h"
#include "PriorityTapeTask.h"
#include "PriorityTapeGroupTest.h"
CPPUNIT_TEST_SUITE_REGISTRATION( PriorityTapeGroupTest );
void
PriorityTapeGroupTest::setUp()
{
}
void
PriorityTapeGroupTest::tearDown()
{
}
void
PriorityTapeGro... | {
"content_hash": "1be1778d3b3edaab0ea58bc5333e199e",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 79,
"avg_line_length": 32.04571428571428,
"alnum_prop": 0.6453281027104137,
"repo_name": "BDT-GER/SWIFT-TLC",
"id": "34335e588aa0573c149354edcc7d8fc30271f0bc",
"size": "62... |
#if!defined __PRODUCERINVOKECALLBACK_H__
#define __PRODUCERINVOKECALLBACK_H__
#include "InvokeCallback.h"
class SendCallback;
/**
* Òì²½µ÷ÓÃÓ¦´ð»Øµ÷½Ó¿Ú
*
*/
class ProducerInvokeCallback : public InvokeCallback
{
public:
ProducerInvokeCallback(SendCallback* pSendCallBack);
virtual ~ProducerInvokeCallback();
virt... | {
"content_hash": "c2d22411b538824be1b1a26c5825e1bf",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 65,
"avg_line_length": 18.083333333333332,
"alnum_prop": 0.7788018433179723,
"repo_name": "mashibing/rocketmq-client4cpp",
"id": "d81b5552c7beff5f2a937bd232a4f742eb713a8b",
... |
CREATE OR REPLACE FUNCTION create_entity(identifier TEXT, doc json)
RETURNS json
AS
$$
BEGIN
return doc;
END;
$$
LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION update_entity(identifier TEXT, doc json)
RETURNS json
AS
$$
BEGIN
return doc;
END;
$$
LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION query_entity(identifier TE... | {
"content_hash": "21faaca14d95d03f45a4069dcbb6cda3",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 67,
"avg_line_length": 13.25,
"alnum_prop": 0.7603773584905661,
"repo_name": "letsface/pgspjs",
"id": "1e0007c8c809f80eebe32e800613e0d80abddf7e",
"size": "530",
"binary":... |
<?php
namespace Vinala\Kernel\Filesystem\Exception;
/**
* File not fount exception.
*/
class FileNotFoundException extends \Exception
{
protected $message; // exception message
public function __construct($path)
{
$this->message = "File does not existe in ($path)";
}
}
| {
"content_hash": "7855bf807299defe17912cafec83de83",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 59,
"avg_line_length": 18.8125,
"alnum_prop": 0.6611295681063123,
"repo_name": "vinala/kernel",
"id": "f99bc56e7b37d0deda5a963f797c717b933aad19",
"size": "301",
"binary":... |
<?php declare(strict_types=1);
namespace e2e;
use Deployer\Exception\Exception;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Application;
abstract class AbstractE2ETest extends TestCase
{
/** @var ConsoleApplicationTester */
protected $tester;
public function setUp(): void
{
... | {
"content_hash": "eb6ed8b819cd46aa845b692c20c1f889",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 90,
"avg_line_length": 24.176470588235293,
"alnum_prop": 0.6909975669099757,
"repo_name": "deployphp/deployer",
"id": "a1390da9983b54a79e62a68d11e589c0e9d1a964",
"size": "4... |
[![Standard Code Style][std_img]][std_site]
> A fast & lightweight responsive touch-friendly react slider component with sections.
<img src="./demo/slider.png" alt="Slider" />
Check out [project page](https://exelnait.github.io/react-range-slider/) and [demo](https://exelnait.github.io/react-range-slider/demo/index.h... | {
"content_hash": "09cb11ce3b56249705d396f0e76d7129",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 146,
"avg_line_length": 26.985294117647058,
"alnum_prop": 0.6446866485013624,
"repo_name": "exelnait/react-range-slider",
"id": "79f41bb0cb8ceae8637130fd449b3506a957012a",
... |
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using MonoMac.ObjCRuntime;
using MonoMac.Foundation;
namespace MonoMac.CoreGraphics {
public partial class CGDataConsumer : INativeObject, IDisposable {
internal IntPtr handle;
IntPtr buffer;
byte [] reference;
// invoked by marsha... | {
"content_hash": "e0f89af6c5be9301450881b4c7aab2a0",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 68,
"avg_line_length": 21.183098591549296,
"alnum_prop": 0.7061170212765957,
"repo_name": "mono/maccore",
"id": "79417402c9a0b5ee72bc68d46bd8bfece42c3f7b",
"size": "2756",
... |
{-# LANGUAGE OverloadedStrings #-}
module Snap.Utilities.Configuration.Extract (
extractGroups,
withValidGroup
) where
import Prelude hiding (lookup)
import Control.Applicative
import qualified Data.Configurator as C
import qualified Data.Configurator.Types as CT
import Data.List (groupBy, intercalate, find, ... | {
"content_hash": "3e254176887bccd104ff0d4ac1fd5d7a",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 115,
"avg_line_length": 38.911764705882355,
"alnum_prop": 0.6628873771730914,
"repo_name": "anchor/snap-configuration-utilities",
"id": "52539c6283b1747d31fe78e92c23dc481ab63... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.