text stringlengths 2 1.04M | meta dict |
|---|---|
module Middleman
class Emberman
VERSION = "0.1.4"
end
end
| {
"content_hash": "3b8406282b814172a34f90d198128683",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 21,
"avg_line_length": 13.2,
"alnum_prop": 0.6666666666666666,
"repo_name": "minusfive/emberman",
"id": "e345d51c5221b42d64d71d6d73265cbce5b59eef",
"size": "66",
"binary":... |
using base::Time;
// IPC::Logging is allocated as a singleton, so we don't need any kind of
// special retention program.
DISABLE_RUNNABLE_METHOD_REFCOUNT(IPC::Logging);
namespace IPC {
const int kLogSendDelayMs = 100;
// We use a pointer to the function table to avoid any linker dependencies on
// all the traits u... | {
"content_hash": "7aad10bb94b6c8dcb3d0b3c83d5cd5a0",
"timestamp": "",
"source": "github",
"line_count": 223,
"max_line_length": 79,
"avg_line_length": 26.390134529147982,
"alnum_prop": 0.616142735768904,
"repo_name": "Crystalnix/house-of-life-chromium",
"id": "138e6acce735d80cda6d819aef7a91c77c2f2a8a... |
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)applicat... | {
"content_hash": "cc4b3ffb09647adbd32099d341607a78",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 281,
"avg_line_length": 53.48571428571429,
"alnum_prop": 0.7863247863247863,
"repo_name": "shaojiankui/RandomCodeView",
"id": "a99a0f09215bd93941d03765919aacd949f7c4ab",
"s... |
export class LazySet {
/*
This class is optimized for a very
particular use case.
We often have lots of subscribers on
a stream. We get an array from the
backend, because it's JSON.
Often the only operation we need
on subscribers is to get the length,
... | {
"content_hash": "148fa2be42764e370056f1a0397d6ee7",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 45,
"avg_line_length": 21.703703703703702,
"alnum_prop": 0.5011376564277589,
"repo_name": "brainwane/zulip",
"id": "4b765f1dc3d2e33f9cbe8b47c1cea486ad23a9d6",
"size": "1758... |
import { combineReducers } from 'redux';
// import reducers here
import profile from './modules/profile'
export default combineReducers({
// combine reducers here, which are imported
profile
}); | {
"content_hash": "1e17efc5df505e8bc96dc610cd8e8bf6",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 46,
"avg_line_length": 25.75,
"alnum_prop": 0.7233009708737864,
"repo_name": "manikandan-ramar/react-redux-boilerplate",
"id": "81308d0056001ca4b0bc36aec2fa99b441a2a922",
"s... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.android_webview.test;
import android.app.Activity;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.Vi... | {
"content_hash": "c3056a24155ea9f3922ef0b373833ca5",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 97,
"avg_line_length": 36.3394495412844,
"alnum_prop": 0.7190103509214845,
"repo_name": "scheib/chromium",
"id": "c7fd841fe4d7b5e4ba0310ffd1562bc63ed35fae",
"size": "3961"... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using IronArc.HardwareDefinitionGenerator.Models;
using Newtonsoft.Json;
namespace IronArc.HardwareDefinitionGenerator
{
public static class Generator
{
public s... | {
"content_hash": "bc9808f49d024a131a18463f7e1aec8c",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 110,
"avg_line_length": 37.58064516129032,
"alnum_prop": 0.5699570815450644,
"repo_name": "Celarix/IronArc",
"id": "1e547deb569d91a1fae12518cd8d473133a01578",
"size": "3497... |
module Makefile where
import Text.PrettyPrint
import Data.String.Utils
import Prelude hiding(all)
($\$) t = ((t <> text "\n") $$)
tab = text "\t"
all = text "all"
bench = text "bench"
clean = text "clean"
rm args = (text "rm -rf" <+> hsep args)
phony = text ".PHONY"
cc args = (text "$(CC)" <+> hsep args)
flags = te... | {
"content_hash": "8aa6b74a53bc34095dd7c44fc96953d3",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 76,
"avg_line_length": 24.80597014925373,
"alnum_prop": 0.5451263537906137,
"repo_name": "parapluu/encore",
"id": "a6c3569dbea7ba03d48c47f25a64c2f6761604aa",
"size": "1663"... |
require 'addressable/uri'
require 'google/api_client/reference'
require 'uuidtools'
module Google
class APIClient
##
# Helper class to contain a response to an individual batched call.
#
# @api private
class BatchedCallResponse
# @return [String] UUID of the call
attr_reader :call_id... | {
"content_hash": "f4932246410aff3560dce170f86ae3d4",
"timestamp": "",
"source": "github",
"line_count": 312,
"max_line_length": 131,
"avg_line_length": 31.73076923076923,
"alnum_prop": 0.5648484848484848,
"repo_name": "backupify/google-api-ruby-client",
"id": "7358baaec5201f26bdc2aa56ccd8f8aed0e489c3... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.Toolbar
android:id="@+id... | {
"content_hash": "8843dd3db69283584b4b32520f035477",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 82,
"avg_line_length": 38.46551724137931,
"alnum_prop": 0.5437023756163155,
"repo_name": "binkery/allinone",
"id": "f410a72e7c35b9c6afac39cf209a9e9e88a67ba8",
"size": "2231... |
/**
* A link to a certain page, an anchor tag
*/
import styled from 'styled-components';
const A = styled.a`
color: #666;
&:hover {
text-decoration: none;
color: #777;
}
`;
export default A;
| {
"content_hash": "054e5f4ef3188b8fddd84a33af731b26",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 42,
"avg_line_length": 13.1875,
"alnum_prop": 0.6066350710900474,
"repo_name": "kevinnorris/bookTrading",
"id": "bff54ba4e70d2220c42bb368b4e2dd04d1723656",
"size": "211",
... |
const fetch = require(`./fetch`)
const normalize = require(`./normalize`)
const typePrefix = `wordpress__`
const refactoredEntityTypes = {
post: `${typePrefix}POST`,
page: `${typePrefix}PAGE`,
tag: `${typePrefix}TAG`,
category: `${typePrefix}CATEGORY`,
}
/* If true, will output many console logs. */
let _verb... | {
"content_hash": "8f855a565069d75ade2f8aa86599da9f",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 81,
"avg_line_length": 24.38317757009346,
"alnum_prop": 0.7121502491376006,
"repo_name": "danielfarrell/gatsby",
"id": "2d8baebbd254151d7489d1d3b9a8dd0b29a1a840",
"size": ... |
<b>Small example project using HapiJS (NodeJS back-end) and AngularJS (front-end) </b>
<br/>
<i>Presentation slides</i>
<a target="_blank" href="http://slides.com/danielaborges/angularjs-lisbonbigapps">http://slides.com/danielaborges/angularjs-lisbonbigapps</a>
<b>Installation Steps</b>
<ol>
<li>Instal <a target=... | {
"content_hash": "ef81ad0846d3c250f96cdae67c96f411",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 141,
"avg_line_length": 33.86666666666667,
"alnum_prop": 0.7007874015748031,
"repo_name": "sericaia/angular-hapi-lisbonbigapps-tutorial",
"id": "4574c08d76dbafe227b194f064abc... |
#include <string>
#include <vector>
#include <openssl/err.h>
#include <openssl/ssl.h>
#if !defined(OPENSSL_WINDOWS)
bool Client(const std::vector<std::string> &args);
bool Server(const std::vector<std::string> &args);
#endif
bool DoPKCS12(const std::vector<std::string> &args);
bool Speed(const std::vector<std::str... | {
"content_hash": "d3d39bceff967e7ed7111c8f4cd741f7",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 59,
"avg_line_length": 21.229166666666668,
"alnum_prop": 0.6084396467124632,
"repo_name": "mxOBS/deb-pkg_trusty_chromium-browser",
"id": "a57cd166be0a24ef9c7d6b8ba206cf39cb08... |
<?php
require_once 'helper/rst_dummy_directives.php';
/**
* Test suite for class.
*
* @package Document
* @subpackage Tests
*/
class ezcDocumentRstXhtmlBodyVisitorTests extends ezcTestCase
{
protected static $testDocuments = null;
public static function suite()
{
return new PHPUnit_Framewo... | {
"content_hash": "edd863f67318adc0e6e308e30b45a760",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 100,
"avg_line_length": 33.771186440677965,
"alnum_prop": 0.5959849435382685,
"repo_name": "gewthen/ezcomponents",
"id": "c8ea7344228c2b0461e01b72990caa76e9e6a605",
"size"... |
import _ from 'underscore'
import { Component, OnInit, Inject } from '@angular/core'
import { UserService } from '../../upgrade/ajs-upgraded-providers'
import { Feed, Service, FeedService } from '@ngageoint/mage.web-core-lib/feed'
import { StateService } from '@uirouter/angular'
import { MatDialog } from '@angular/mate... | {
"content_hash": "fd5ef413a79c861c1ee01851ff95ecd5",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 113,
"avg_line_length": 30.857142857142858,
"alnum_prop": 0.6680756843800322,
"repo_name": "ngageoint/mage-server",
"id": "993e7c1979d870f810b5d0a5097a23694dcd28f5",
"size... |
namespace LinuxPackages.Web.Mvc.Controllers
{
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Common.Utilities;
using Data.Models;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Ninject;
using ViewModels.Profile;
public... | {
"content_hash": "a944b0fe51832814d8863f0917bc9613",
"timestamp": "",
"source": "github",
"line_count": 154,
"max_line_length": 149,
"avg_line_length": 29.142857142857142,
"alnum_prop": 0.5677361853832442,
"repo_name": "arnaudoff/LinuxPackages",
"id": "e374a5176ec56f585e75142438585bab93147170",
"si... |
#!bash
#
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completi... | {
"content_hash": "15a1f335e1ebc3c98f9171c5a9020a0a",
"timestamp": "",
"source": "github",
"line_count": 2514,
"max_line_length": 99,
"avg_line_length": 19.77645186953063,
"alnum_prop": 0.5944124864234281,
"repo_name": "marpaia/chef-osx",
"id": "8c49ce25443c531fb11243d8faf19010a209e970",
"size": "49... |
#import "CCRotatingSprite.h"
@implementation CCRotatingSprite
@synthesize secondsPerRotation;
- (id) init
{
self = [super init];
if (!self) return NULL;
self.secondsPerRotation = 2;
NSLog(@"------------------>");
return self;
}
- (void) setSecondsPerRotation:(float)spr
{
secondsPerRot... | {
"content_hash": "b7b6e12a5f7e8b50926de81a3d44f6df",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 102,
"avg_line_length": 17.387096774193548,
"alnum_prop": 0.6419294990723562,
"repo_name": "wulin9005/cocosbuilder",
"id": "00136de3f4564403a8f737abcf6dc27862ba8e9c",
"size... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Medical Care Responsive Bootstrap themes | webthemez</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="http://webthemez.com" />
... | {
"content_hash": "dfe4b8c2186a4447c93bea627e308788",
"timestamp": "",
"source": "github",
"line_count": 202,
"max_line_length": 308,
"avg_line_length": 51.633663366336634,
"alnum_prop": 0.45186960690316397,
"repo_name": "GeaninaAt/hms-fe",
"id": "3e88f35df91ca6b9d8babf310b2a87545b4cc051",
"size": "... |
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/cardView_aqi"
android:layout_width="match_parent"
android:layout_height="wrap_content"
and... | {
"content_hash": "ff906d0e292d27aaac220caf79a6b5a4",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 94,
"avg_line_length": 37.45967741935484,
"alnum_prop": 0.5134553283100107,
"repo_name": "LiuShengchieh/hengweather",
"id": "a8a4f68d8c6b262e324ee7eb8c043c0f4b4646ea",
"si... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "7fe1d0fe623e3e219ce4c5ba3a13c4a9",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "25b50c3aef5fc7ef7016aeae5c0aaa5fdadc5648",
"size": "217... |
package org.jetbrains.plugins.scala.lang.psi.stubs.index
import com.intellij.psi.PsiClass
import com.intellij.psi.stubs.StubIndexKey
class ScClassNameInPackageIndex extends ScStringStubIndexExtension[PsiClass] {
override def getKey: StubIndexKey[String, PsiClass] =
ScalaIndexKeys.CLASS_NAME_IN_PACKAGE_KEY
}
| {
"content_hash": "cbd227f099024793e437fe46bb7b06e3",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 78,
"avg_line_length": 35.22222222222222,
"alnum_prop": 0.8264984227129337,
"repo_name": "JetBrains/intellij-scala",
"id": "6195cbce1241685d580eef8f970682b17c4328ec",
"size"... |
package com.juntosalimos.client.application.userprofile;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.HasUiHandlers;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.clien... | {
"content_hash": "c438adf1e3fa50effeb33aeed74e6a47",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 106,
"avg_line_length": 30.793650793650794,
"alnum_prop": 0.795360824742268,
"repo_name": "manubotija/junsal",
"id": "736219b8d028ae80b93dbd8c0ab1acc21e6790dc",
"size": "19... |
\newcommand{\NWtarget}[2]{#2}
\newcommand{\NWlink}[2]{#2}
\newcommand{\NWtxtMacroDefBy}{Fragment defined by}
\newcommand{\NWtxtMacroRefIn}{Fragment referenced in}
\newcommand{\NWtxtMacroNoRef}{Fragment never referenced}
\newcommand{\NWtxtDefBy}{Defined by}
\newcommand{\NWtxtRefIn}{Referenced in}
\newcommand{\NWt... | {
"content_hash": "b543b4e390f45cec3b799a1f5438c03b",
"timestamp": "",
"source": "github",
"line_count": 749,
"max_line_length": 551,
"avg_line_length": 40.82510013351135,
"alnum_prop": 0.6349663156517757,
"repo_name": "sjatakia/Beeyer",
"id": "71e8265bbf655f6e4a1981c64590b1afc9448d24",
"size": "305... |
<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
<script>
'use strict';
promise_test(() => {
return setBluetoothFakeAdapter('ServicesDiscoveredAfterReconnectionAdap... | {
"content_hash": "8de97827c5cebba372b6be2cf59ce077",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 79,
"avg_line_length": 43.04347826086956,
"alnum_prop": 0.6676767676767676,
"repo_name": "Samsung/ChromiumGStreamerBackend",
"id": "468eabf97678ce968f93d3d6750f6c7d11c7da27",... |
import { List } from 'immutable';
import { createAction, handleActions } from 'redux-actions';
import { makeTypedFactory, TypedRecord} from 'typed-immutable-record';
import { IAppStateRecord } from '../../../stores';
import { DATA_PREFIX } from './reduxPrefix';
const ALL_COMMENT_IDS_DATA = [...DATA_PREFIX, 'allCommen... | {
"content_hash": "c8a650d7c552b7c21f8bdda498d60b39",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 117,
"avg_line_length": 31.58695652173913,
"alnum_prop": 0.7501720578114246,
"repo_name": "Instrument/conversationai-moderator",
"id": "d91deccae0821d9e3d42ead2932c19de042a42... |
'use strict';
const biz = require('emag.biz');
const _ = require('underscore');
const conf = require('../settings');
const utils = require('speedt-utils').utils;
const amq = require('emag.lib').amq;
exports.indexUI = function(req, res, next){
biz.notice.findAll(function (err, docs){
if(err) return next(e... | {
"content_hash": "178e45b3e45707a32f5312e4d206c6fc",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 95,
"avg_line_length": 20.601626016260163,
"alnum_prop": 0.5572217837411207,
"repo_name": "speedt/g2",
"id": "30326091d9f1645bc8ca6ab473c4c55f9c33387f",
"size": "2631",
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MokkosuPad.ViewModels
{
// 参考: https://consoleredirect.codeplex.com/
public class ConsoleRedirectWriter : StringWriter
{
TextWriter consoleTextWriter;
... | {
"content_hash": "6c390353be76116c4a8615de869c45ba",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 108,
"avg_line_length": 38.776119402985074,
"alnum_prop": 0.6351039260969977,
"repo_name": "lambdataro/Mokkosu",
"id": "c6e04134ee68235b34df3ea5171d981f86624d38",
"size": "... |
package hudson.plugins.analysis.core;
/**
* Global settings for all static code analysis plug-ins.
*
* @author Ulli Hafner
*/
public interface Settings {
/**
* Returns whether the logger should be quite. If the logger is quite then the output is not shown in the
* console log.
*
* @return o... | {
"content_hash": "537b39760d672f584e01d06c343c03e6",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 112,
"avg_line_length": 30.347826086956523,
"alnum_prop": 0.669054441260745,
"repo_name": "amuniz/analysis-core-plugin",
"id": "98cde9f3eab3cdd2670271648d10e9fcffbc1449",
"... |
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
n... | {
"content_hash": "990ffa0544e6c21898b8842980c9fae1",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 186,
"avg_line_length": 40.15873015873016,
"alnum_prop": 0.5754940711462451,
"repo_name": "idefav/CodeGenerator",
"id": "0ab25af5a8290ced0282cc73768c8de1da3b2387",
"size": ... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Monograph of Cercospora 53 (1954)
#### Original name
Cercospora ilicis-opacae Chupp
### Remarks
null | {
"content_hash": "2750c28d54001ed96ca647b2546dda59",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 33,
"avg_line_length": 12.615384615384615,
"alnum_prop": 0.7317073170731707,
"repo_name": "mdoering/backbone",
"id": "fbdeb104d4f1605f995380d67abe7e0c3358fb64",
"size": "21... |
<!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><!--Google Tag Manager--><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElem... | {
"content_hash": "109a2a561fe95f8bc18affe3be2038dc",
"timestamp": "",
"source": "github",
"line_count": 688,
"max_line_length": 752,
"avg_line_length": 77.34156976744185,
"alnum_prop": 0.7362951269474357,
"repo_name": "twilio/twilio-python",
"id": "dbb0c777a7bf8c762c3801b1f09f11cde0ec2690",
"size":... |
package tv.floe.metronome.classification.logisticregression.iterativereduce;
import java.io.IOException;
import java.nio.ByteBuffer;
import org.apache.mahout.math.Matrix;
//import com.cloudera.knittingboar.sgd.GradientBuffer;
import com.cloudera.iterativereduce.Updateable;
public class ParameterVectorUpdatable i... | {
"content_hash": "f1b9787a647981e33e6283302d63a3a1",
"timestamp": "",
"source": "github",
"line_count": 97,
"max_line_length": 76,
"avg_line_length": 21.31958762886598,
"alnum_prop": 0.65715667311412,
"repo_name": "jpatanooga/Metronome",
"id": "eaf359d00452798a07ab3801db94fbbcc6065ad1",
"size": "28... |
const webpack = require('webpack');
const conf = require('./gulp.conf');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const pkg = require('../package.json');
const autoprefixer = require('autoprefixer');
modul... | {
"content_hash": "7ae1d939c383f3b8c0c1a86952d08111",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 97,
"avg_line_length": 23.643835616438356,
"alnum_prop": 0.5457705677867902,
"repo_name": "PizzaTime-Exia/PizzaTime-Dashboard",
"id": "3eb42021494deda86f4e502bf89327d475a4f47... |
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "1e3bf8a46f42d952c0f5cae62cb597e7",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 23,
"avg_line_length": 9.076923076923077,
"alnum_prop": 0.6779661016949152,
"repo_name": "mdoering/backbone",
"id": "2ef1be845d7d457d06d2ba920f222e0474d25c4a",
"size": "179... |
const Node = require('./node')
class Alpha extends Node {
constructor(val) {
super()
this.value = val
}
accept(visitor) {
this.value = visitor.visit(this.value)
}
eval(context) {
if (this.value.eval) {
return new Alpha(this.value.eval(context))
}
return this
}
genCSS(cont... | {
"content_hash": "bac48c301e6b943c3d06caf7068d150b",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 48,
"avg_line_length": 16.285714285714285,
"alnum_prop": 0.6,
"repo_name": "arusanov/less.js",
"id": "463b0450b9e42a75ab64cf3a721edb91188a8ca6",
"size": "570",
"binary": ... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | {
"content_hash": "77815f8993766af138bc2a8803e1c9d2",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 150,
"avg_line_length": 48.328125,
"alnum_prop": 0.5651471063692208,
"repo_name": "Redd500/www",
"id": "1d51413bc55a12cbe3aa58a3a2b55799b30e403a",
"size": "3093",
"binary... |
.. _`tbreportdemo`:
Demo of Python failure reports with pytest
==================================================
Here is a nice run of several tens of failures
and how ``pytest`` presents things (unfortunately
not showing the nice colors here in the HTML that you
get on the terminal - we are working on that)::
... | {
"content_hash": "a39b59fb6b437c9c6f2b691f6966f075",
"timestamp": "",
"source": "github",
"line_count": 605,
"max_line_length": 196,
"avg_line_length": 38.315702479338846,
"alnum_prop": 0.5014451490444761,
"repo_name": "tareqalayan/pytest",
"id": "55626b257b2a6b195921fbb90cc3590ae8cd94c6",
"size": ... |
class MenuSettings : public Screen
{
private:
std::vector<std::string> m_controlTexts;
public:
MenuSettings(ScreenBuffer *screenBuffer);
private:
virtual void handleInput();
virtual void update();
virtual void fillScreenBuffer();
int getCenterPosX(const std::string Text) const;
};
#endif // !MENUSETTINGS... | {
"content_hash": "97af58dd085ed71804fc86ffa13db11d",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 49,
"avg_line_length": 16.15,
"alnum_prop": 0.739938080495356,
"repo_name": "TmCrafz/QuadrisSFML",
"id": "c2aed55647f98791810d9a1c27f6a3483954a2b4",
"size": "472",
"binar... |
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
arguments[0] ? arguments[0]["__parentSymbol"] : null;
arguments[0] ? arguments[0]["$model"] : null;
var $ = this;
var exports = {};
$.__views.container = Ti.UI.createView({
... | {
"content_hash": "c4da30f2894cc089d5192e5ad127d4e4",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 99,
"avg_line_length": 32.30612244897959,
"alnum_prop": 0.5173720783322805,
"repo_name": "k0sukey/alloy.adapter.acs",
"id": "c0a9a8d7872ff0404ce8f529009e2a0e421b92dd",
"siz... |
<!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": "b91116b60fb3bb79205a86666edfd009",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 295,
"avg_line_length": 47.03361344537815,
"alnum_prop": 0.6853671609790959,
"repo_name": "sintefneodroid/droid",
"id": "bda30cab56ee26c7c6292d395002f039b2075958",
"size":... |
<?php
namespace creators\metroui\grid;
use Yii;
use yii\helpers\Html;
class CheckboxColumn extends \yii\grid\CheckboxColumn
{
protected function renderHeaderCellContent()
{
$name = rtrim($this->name, '[]') . '_all';
$id = $this->grid->options['id'];
$options = json_encode([
... | {
"content_hash": "9c344e528b5c9f9beaae564c36afaf02",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 127,
"avg_line_length": 36.68888888888889,
"alnum_prop": 0.5487583282858873,
"repo_name": "creators/yii2-metroui",
"id": "78542cb0e4fc77a0a98647eb47185c8b4904e35f",
"size":... |
Date: Tue, 10 Dec 1996 20:46:05 GMT
Server: NCSA/1.4.2
Content-type: text/html
Last-modified: Sun, 01 Sep 1996 22:38:46 GMT
Content-length: 5230
<html>
<head>
<TITLE>Marc Langheinrich's Resume</TITLE>
<BASE HREF="http://www.cs.washington.edu/homes/marclang/">
<LINK REV="made" HREF="mailto:marclang@u.washington.edu">
<... | {
"content_hash": "cc53c9b639eccdcf4f935dee8cec53e7",
"timestamp": "",
"source": "github",
"line_count": 147,
"max_line_length": 100,
"avg_line_length": 37.48299319727891,
"alnum_prop": 0.7018148820326678,
"repo_name": "ML-SWAT/Web2KnowledgeBase",
"id": "90deba9b46dfccabbf24162b2e06fd96be6c0d9b",
"s... |
package org.codinjutsu.tools.jenkins.view.action.results;
import com.google.common.base.MoreObjects;
import com.intellij.execution.PsiLocation;
import com.intellij.execution.testframework.sm.runner.GeneralTestEventsProcessor;
import com.intellij.execution.testframework.sm.runner.events.*;
import com.intellij.openapi.p... | {
"content_hash": "212c7b66999479cffb36b79687175950",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 177,
"avg_line_length": 42.60377358490566,
"alnum_prop": 0.6992914083259522,
"repo_name": "dboissier/jenkins-control-plugin",
"id": "c713b161bec0390bedda316e07c33fac8bb48374... |
package main
import (
"github.com/shaoshing/gotest"
"testing"
)
func TestDiagnose(t *testing.T) {
assert.Test = t
assert.True(diagnose())
}
| {
"content_hash": "d53810bd95159f4b5e67a4d8d1ba7f0d",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 33,
"avg_line_length": 13.272727272727273,
"alnum_prop": 0.6986301369863014,
"repo_name": "roperzh/ogg",
"id": "8ae44bc07e0f76b5b36d4f0b03cdbd0e03c0dc63",
"size": "146",
... |
@import ObjectiveC.runtime;
#pragma mark- Handle
@implementation UIView (Handle)
- (UIImage *)rw_snapshot {
UIGraphicsBeginImageContextWithOptions(self.frame.size, YES, [[UIScreen mainScreen] scale]);
[self drawViewHierarchyInRect:self.bounds afterScreenUpdates:NO];
UIImage *snapshot = UIGraphicsGetImag... | {
"content_hash": "a0e5709835298b31d1d1d010cd73fbc1",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 112,
"avg_line_length": 28.11881188118812,
"alnum_prop": 0.7295774647887324,
"repo_name": "RangeChiong/RWKit",
"id": "d933e4bdce281b319fcda2b60a98d85c8813a08f",
"size": "3... |
using System;
using System.Linq;
using System.Windows;
using TranslatorApk.Logic.OrganisationItems;
using TranslatorApk.Logic.Utils;
using TranslatorApk.Resources.Localizations;
using TranslatorApk.Windows;
namespace TranslatorApk
{
public partial class App
{
private static readonly NLog.Logger Logger... | {
"content_hash": "8d6a5d8b4bb4977eaa340972ab1b780f",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 117,
"avg_line_length": 32.371428571428574,
"alnum_prop": 0.6160635481023831,
"repo_name": "And42/TranslatorApk",
"id": "f028fa5bed7fc2af55db6553cf8eaa024796ba70",
"size": ... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head th:include="@{_fragment/_headTag} :: headTag">
</head>
<body>
<div th:remove="tag" th:include="@{_fragment/_apolo-template} :: apolo-template"></div>
<... | {
"content_hash": "6b0f5abd954d83b1ec70a45f775efe4e",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 136,
"avg_line_length": 33.53658536585366,
"alnum_prop": 0.5127272727272727,
"repo_name": "macielbombonato/apolo",
"id": "0f221df4116f3a347e3c1a064d98c864b7648739",
"size":... |
#include "server_base.h"
#include <cassert>
#include <array>
#include <iostream>
#include "debug.h"
using namespace ngtcp2;
extern Config config;
Buffer::Buffer(const uint8_t *data, size_t datalen)
: buf{data, data + datalen}, begin(buf.data()), tail(begin + datalen) {}
Buffer::Buffer(size_t datalen) : buf(da... | {
"content_hash": "a6caa589def4596e32b89d57ff6993f0",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 80,
"avg_line_length": 24.314285714285713,
"alnum_prop": 0.6803760282021152,
"repo_name": "ngtcp2/ngtcp2",
"id": "aea86bd9284ffeac07acd7476060b69732d0e301",
"size": "1990",... |
from __future__ import print_function, division, absolute_import
from numba import struct, jit, double
import numpy as np
record_type = struct([('x', double), ('y', double)])
record_dtype = record_type.get_dtype()
a = np.array([(1.0, 2.0), (3.0, 4.0)], dtype=record_dtype)
@jit(argtypes=[record_type[:]])
def hypot(dat... | {
"content_hash": "9027e6ff15c918fc6d3a749ffd81308c",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 74,
"avg_line_length": 34.46153846153846,
"alnum_prop": 0.6618303571428571,
"repo_name": "shiquanwang/numba",
"id": "f10d38556186c26b3bad8c5ff9b1889be1f6f7c4",
"size": "920... |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
module PactCLISpec(spec) where
import Test.Hspec
import qualified Data.Aeson as A
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BSL
import Data.Either(isRight)
import qualified Data.Yaml as Y
import Data.Text(Text)
... | {
"content_hash": "bfcc98ddc9d515aba54f949ce9877918",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 107,
"avg_line_length": 36.6875,
"alnum_prop": 0.6959114139693356,
"repo_name": "kadena-io/pact",
"id": "621a4f95aa10a75a69077e1056b780ec1b2237b5",
"size": "2348",
"binar... |
using namespace json_spirit;
using namespace std;
Value getconnectioncount(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error(
"getconnectioncount\n"
"Returns the number of connections to other nodes.");
LOCK(cs_vNodes);
return (int)vNod... | {
"content_hash": "3476f7d8d8d4f31c026278c378b4e620",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 110,
"avg_line_length": 35.79338842975206,
"alnum_prop": 0.6386515816208728,
"repo_name": "sherlockcoin/navbetatest2",
"id": "01d712ab24f645bce52b7f6a15e057f3fc015dcd",
"s... |
module.exports.ALLOWED_TEST_CONFIG = `{% fa fa-exclamation-triangle red %} **Note:** Some configuration values are readonly and cannot be changed via test configuration. The following configuration values **can be changed** via per test configuration:
- \`animationDistanceThreshold\`
- \`baseUrl\`
- \`browser\` **note... | {
"content_hash": "55342c3db8fcc9ba793316e1a5776932",
"timestamp": "",
"source": "github",
"line_count": 97,
"max_line_length": 368,
"avg_line_length": 67.64948453608247,
"alnum_prop": 0.7293508076805851,
"repo_name": "cypress-io/cypress-documentation",
"id": "959ab1bbaf73fb5ced3eea3a3bdb1140338707ce"... |
from thrift.Thrift import *
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TProtocol
try:
from thrift.protocol import fastbinary
except:
fastbinary = None
class Iface:
def submitTopology(self, name, uploadedJarLocati... | {
"content_hash": "3b639577da39af05d6cb40a94ac4540c",
"timestamp": "",
"source": "github",
"line_count": 3927,
"max_line_length": 188,
"avg_line_length": 30.370766488413548,
"alnum_prop": 0.635478677913236,
"repo_name": "Aloomaio/incubator-storm",
"id": "a2ee892bd3810c99804bc6fa5cc5c7bc2cff8c45",
"s... |
package edu.gemini.p2checker.rules.gmos;
import edu.gemini.p2checker.api.*;
import edu.gemini.p2checker.rules.altair.AltairRule;
import edu.gemini.p2checker.rules.general.GeneralRule;
import edu.gemini.p2checker.util.AbstractConfigRule;
import edu.gemini.p2checker.util.MdfConfigRule;
import edu.gemini.p2checker.util.N... | {
"content_hash": "71f920687fe5696b3ca0fb960a8be476",
"timestamp": "",
"source": "github",
"line_count": 1919,
"max_line_length": 204,
"avg_line_length": 46.580510682647216,
"alnum_prop": 0.6064796169508211,
"repo_name": "fnussber/ocs",
"id": "35e5cd7c46232b7a89c36c487a658ce598710009",
"size": "8938... |
package main
import (
"github.com/go-martini/martini"
"github.com/guh/guh-libgo"
"github.com/martini-contrib/render"
)
// DefineVendorEndPoints defines all routes related to vendors
func DefineVendorEndPoints(m *martini.ClassicMartini, config guh.Config) {
// Lists all available vendors
m.Get("/api/v1/vendors... | {
"content_hash": "ecdfbc6f25e935fd9d3fafd3ff14e1c3",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 103,
"avg_line_length": 24.074074074074073,
"alnum_prop": 0.676923076923077,
"repo_name": "guh/guh-webserver",
"id": "f4d222efc399c621479b359ad3afc1b2232671ae",
"size": "33... |
package com.sksamuel.scapegoat.inspections
import com.sksamuel.scapegoat.PluginRunner
import org.scalatest.{ FreeSpec, Matchers, OneInstancePerTest }
/** @author Stephen Samuel */
class RedundantFinalModifierOnVarTest
extends FreeSpec
with Matchers
with PluginRunner
with OneInstancePerTest {
overr... | {
"content_hash": "6046b27eff69e457dbab404d4b55acde",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 90,
"avg_line_length": 36.58441558441559,
"alnum_prop": 0.6187433439829606,
"repo_name": "jasonchaffee/scalac-scapegoat-plugin",
"id": "7511f97fee4aa7d5fe032a2299dd9c88daae1a... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "24c621379cc43d7d410a30c0892762a4",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "5bd52f8be4ec1c076afd8457099f3f52f76d6a53",
"size": "170... |
''' Provide properties for various visual attrributes.
'''
#-----------------------------------------------------------------------------
# Boilerplate
#-----------------------------------------------------------------------------
from __future__ import absolute_import, division, print_function, unicode_literals
imp... | {
"content_hash": "cf7a6546888935a4f57e6402e650c914",
"timestamp": "",
"source": "github",
"line_count": 244,
"max_line_length": 155,
"avg_line_length": 32.49590163934426,
"alnum_prop": 0.5247824441922059,
"repo_name": "timsnyder/bokeh",
"id": "553f6621e57cddc99f4aafb0820ec6bb8ba32187",
"size": "826... |
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.android.clase2.MainActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
... | {
"content_hash": "20e80120cc2ffdde2937e8b316c3d21e",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 64,
"avg_line_length": 34.083333333333336,
"alnum_prop": 0.6723716381418093,
"repo_name": "sonico999/CursoAndroid",
"id": "beeff4db7c1cf1fb8cc374bdfe5f8bbb8a29eec7",
"size"... |
module Barometer
module Query
module Converter
class FromCoordinatesToNoaaStationId
def self.from
[:coordinates]
end
def initialize(query)
@query = query
end
def call
return unless can_convert?
station_id = Service::NoaaStati... | {
"content_hash": "cb8513ab1cdccf57e4cbdb29cbced57f",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 115,
"avg_line_length": 22.1,
"alnum_prop": 0.6093514328808446,
"repo_name": "attack/barometer",
"id": "5f2588fa0176e4d7caf6877f26277f8427946640",
"size": "663",
"binary"... |
import ConfigParser
from pprint import pprint
import re
import sys
import time
import urllib
def get_api_key():
config = ConfigParser.RawConfigParser()
config.read('setting.ini')
if config.has_option('main', 'api_key'):
api_key = config.get('main', 'api_key')
if api_key != '<YOUR REBRICKABLE API KEY HERE>':
... | {
"content_hash": "0758d5a3c4778b61ee63f0b05ca0455b",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 81,
"avg_line_length": 26.253333333333334,
"alnum_prop": 0.6160487557135602,
"repo_name": "maczniak/brickstats",
"id": "0eef18e582ec5c88caeaafbe02f1fb5fc6802486",
"size": "... |
package org.camunda.bpm.spring.boot.example.webapp.delegate;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class SayHelloDelegat... | {
"content_hash": "e9e6444a16983a390aec7376d496c0c8",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 87,
"avg_line_length": 28.35,
"alnum_prop": 0.8059964726631393,
"repo_name": "ingorichtsmeier/camunda-bpm-examples",
"id": "d6828e1073fc18979f0e17addc0914919d8ce31d",
"size... |
package com.sixsq.slipstream.statemachine;
public class DoneState extends OrchestratorsSynchronizedState {
public DoneState(ExtrinsicState extrinsicState) {
super(extrinsicState);
}
@Override
public States getState() {
return States.Done;
}
public boolean isFinal() {
... | {
"content_hash": "26f31fd8cf09d35eaa11aa1452888fef",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 63,
"avg_line_length": 16.476190476190474,
"alnum_prop": 0.6647398843930635,
"repo_name": "slipstream/SlipStreamServer",
"id": "13913e84761c8d6d45951d4cc45a438d373e2c3e",
"... |
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
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:layout_width="match_parent"
android:layout_hei... | {
"content_hash": "887bd0b9a84f47c44c3222a1e427e490",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 75,
"avg_line_length": 48.93846153846154,
"alnum_prop": 0.6274756365922666,
"repo_name": "harryplus/Android-Carbon-Forum-master",
"id": "5ebf8ccf0b4d4c2d587e6717c4e6ad4122d3a... |
<project name="dcm4chee-hl7" default="jar">
<property file="build.properties"/>
<property file="../build.properties" />
<property name="version" value="2.14.7"/>
<property name="javac.debug" value="on"/>
<property name="javac.deprecation" value="off"/>
<property name="javac.optimize" value="on"/>
<property na... | {
"content_hash": "0a3317c5198469292d0a150365468e14",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 96,
"avg_line_length": 35.053763440860216,
"alnum_prop": 0.652760736196319,
"repo_name": "medicayun/medicayundicom",
"id": "9f95245e622397fbe438feeca30ec5b086cd3019",
"size... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2015-2022 The Fluent Bit Authors
*
* 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... | {
"content_hash": "516471e3a820d1fdef837ffcb9b3531e",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 77,
"avg_line_length": 31.365384615384617,
"alnum_prop": 0.6689147762109136,
"repo_name": "nokute78/fluent-bit",
"id": "d6d67262075081e2f66c3cd67186fa72d8f6a04c",
"size": "... |
<?php
namespace App\Form\Processor;
use App\Form\DocumentTemplateForm;
use App\Repository\DocumentTemplateRepository;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
class DocumentTemplateFormProcessor extends DefaultFormProces... | {
"content_hash": "5abdc480e02f2da9b365fdf2044acac5",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 99,
"avg_line_length": 30.5,
"alnum_prop": 0.7836065573770492,
"repo_name": "disider/invox",
"id": "6e5e28430efe3b9290d89d963fc8a45319e396c2",
"size": "803",
"binary": fa... |
<?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>com.in28minute... | {
"content_hash": "ebcacb122cd8cf10627661582a94ec9f",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 104,
"avg_line_length": 34.721311475409834,
"alnum_prop": 0.6798866855524079,
"repo_name": "in28minutes/MockitoIn28Minutes",
"id": "f2e0f7b42bd3d0c6cea653e471fdf6c620166e1d",... |
<?php // 0.0.1
function testException($testCase, $expectedMessage, $codeBlock) {
try {
$codeBlock();
$exceptionThrown = FALSE;
} catch (Exception $e) {
$testCase->assertEquals($expectedMessage, $e->getMessage());
$exceptionThrown = TRUE;
}
if (!$exceptionThrown) {
$trace = debug_backtrace();
$function ... | {
"content_hash": "64fcd0f8dc82bcbd24c091b9650a63ae",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 95,
"avg_line_length": 26.352941176470587,
"alnum_prop": 0.6785714285714286,
"repo_name": "khoomeister/php-web-recipes",
"id": "ab24079418a3024189ba13d330efa3a934bb9088",
"... |
Enigma::Application.configure do
# Settings specified here will take precedence over those in config/environment.rb
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test s... | {
"content_hash": "a32b56ad61f8241a531c294b3fe96d62",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 85,
"avg_line_length": 44.02777777777778,
"alnum_prop": 0.7621451104100946,
"repo_name": "CultivateHQ/ballpark",
"id": "3c28900ff2e1855c5477e6c40053aec1bcaf94cd",
"size": "... |
package weibo4j.examples.account;
import weibo4j.Account;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.User;
import weibo4j.model.WeiboException;
public class EndSession {
public static void main(String[] args) {
String access_token = args[0];
Account am = new Account(access_token);
tr... | {
"content_hash": "8fef77c09227ce00c2a02e1be534f86c",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 41,
"avg_line_length": 21.136363636363637,
"alnum_prop": 0.6817204301075269,
"repo_name": "seagrape/kekoa",
"id": "99121cb2628b7a43c13d4ffdf7d6724b51e5399e",
"size": "465",... |
https://www.tropo.com/docs/webapi/conference.htm
TPConference has not been documented yet. The class comment should describe the purpose of the class, its collaborations and its variables.
Instance Variables:
id <ProtoObject | PseudoContext>
mute <ProtoObject | PseudoContext>
name <ProtoObject | PseudoContext>
pl... | {
"content_hash": "602aa5e7280706788100b93adfc15fc2",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 139,
"avg_line_length": 39.90909090909091,
"alnum_prop": 0.8041002277904328,
"repo_name": "pdebruic/tropo-smalltalk",
"id": "684c3208d6dada6eb6c6ac2ce693972198f0e6c8",
"siz... |
namespace pdalboost {} namespace boost = pdalboost; namespace pdalboost {
namespace interprocess {
namespace ipcdetail {
class posix_condition;
class posix_mutex
{
posix_mutex(const posix_mutex &);
posix_mutex &operator=(const posix_mutex &);
public:
posix_mutex();
~posix_mutex();
void lock();
... | {
"content_hash": "ddddd88fb2699575eb8c4019801f0dd4",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 81,
"avg_line_length": 22.085714285714285,
"alnum_prop": 0.64381198792583,
"repo_name": "verma/PDAL",
"id": "763fc7c616fd04e392926c06d53204678356550e",
"size": "4285",
"... |
package example.web.filter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.container.PreMatching;
import javax.ws.rs.ext.Provider;
import java.io.IOException;
@Provider
@PreMatching... | {
"content_hash": "7a42247f9a1a464f745fb71c91125ba2",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 89,
"avg_line_length": 28.4,
"alnum_prop": 0.7676056338028169,
"repo_name": "naotsugu/example-jersey-grizzly",
"id": "585a4e8e57bc89913297d33989956d126d4527d4",
"size": "85... |
.pmis-logo {
margin-right: 5px;
}
table#list tbody tr td:last-child {
text-align: center;
}
table#list tbody tr td:last-child button:last-child {
margin-left: 5px;
}
table#form tbody tr td:last-child, table.table-form tbody tr td:last-child {
width: 10%;
text-align: center;
vertical-align: middle;
}
table#fo... | {
"content_hash": "f8178c6e317e9abcf26e5b0e216fae63",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 102,
"avg_line_length": 16.78301886792453,
"alnum_prop": 0.6902754356379989,
"repo_name": "sly14flores/webpmis",
"id": "bfed1b3df1fff7e4cf400791fa895e347437aea7",
"size": ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__char_file_fopen_61b.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-61b.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: file Read input from a file
* Good... | {
"content_hash": "8aeba7a9ce42ffd8d62fb3cbccba0c25",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 99,
"avg_line_length": 24.658823529411766,
"alnum_prop": 0.575381679389313,
"repo_name": "JianpingZeng/xcc",
"id": "9b76ba7f99825b23094f7d65416e393c2bc58253",
"size": "2096... |
ACCEPTED
#### According to
Euro+Med Plantbase
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "5a2ae1b39517736be2a0522dc06518a2",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 18,
"avg_line_length": 8.692307692307692,
"alnum_prop": 0.6814159292035398,
"repo_name": "mdoering/backbone",
"id": "a6dddd6bd0dc8171104113ad15176742cb70b292",
"size": "169... |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/content_main"
android:layout_width="match_parent"
android:layout_heigh... | {
"content_hash": "35c175225c8d3925d3fcb0f6c3c243c9",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 74,
"avg_line_length": 45.2,
"alnum_prop": 0.7234513274336283,
"repo_name": "simeonpp/top-offers",
"id": "c97b0c35e916601c62c9d96c4569886f0a2fa6cc",
"size": "904",
"binar... |
<!DOCTYPE html>
<html>
<head>
<title>Multi-row selection</title>
<link rel="stylesheet" href="../../../codebase/webix.css" type="text/css" charset="utf-8">
<script src="../../../codebase/webix.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="../common/samples.c... | {
"content_hash": "077d6f3536f61fe9a27e6c33ebe7b639",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 92,
"avg_line_length": 30.782608695652176,
"alnum_prop": 0.6179378531073446,
"repo_name": "lastuniverse/explosion",
"id": "c95377e17cb8c0243cae5f08f8ca7962bc288063",
"size"... |
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit57490ad1dcfe79a8596ecec07c4ed5e2
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... | {
"content_hash": "baf5d2b11028c261614e952e0e5ee5e0",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 126,
"avg_line_length": 30.389830508474578,
"alnum_prop": 0.6129392080312326,
"repo_name": "jimmyfu135/monkeyblog",
"id": "df166af7100a6afb7a44ce6f2746855ad774506c",
"size"... |
@interface LeftViewController ()
@property (strong, nonatomic) NSArray *titlesArray;
@end
@implementation LeftViewController
- (id)init {
self = [super initWithStyle:UITableViewStylePlain];
if (self) {
self.titlesArray = @[@"assgin",
@"request",
... | {
"content_hash": "c66576aee6220ad13e118d2190bef9a2",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 123,
"avg_line_length": 34.91056910569106,
"alnum_prop": 0.6977177456916628,
"repo_name": "Sunday4/Capvision.Fun",
"id": "3c0361a6d3224f38e490adf7e5d5dced473811ca",
"size"... |
using System;
using NUnit.Framework;
using StructureMap.Configuration.DSL;
using StructureMap.Testing.Widget3;
namespace StructureMap.Testing.Configuration.DSL
{
[TestFixture]
public class InterceptorTesting : Registry
{
#region Setup/Teardown
[SetUp]
public void SetUp... | {
"content_hash": "94515812ee392d5d959e4cfda2cfb61e",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 102,
"avg_line_length": 33.54601226993865,
"alnum_prop": 0.5221287490855889,
"repo_name": "mtscout6/structuremap",
"id": "bb3889c79baae22cac1f85b0f9d4466210ca96c0",
"size"... |
Polling for changes (repeatedly asking server if there are any new changes)
introduces high load on a GitLab instance, because it usually requires
executing at least a few SQL queries. This makes scaling large GitLab
instances (like GitLab.com) very difficult so we do not allow adding new
features that require polling ... | {
"content_hash": "8230e0920c2143134c9e7060db70c747",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 79,
"avg_line_length": 41.67272727272727,
"alnum_prop": 0.7691972076788831,
"repo_name": "iiet/iiet-git",
"id": "76bb5ae78196af1236e9493c9ca4a527e239a9c7",
"size": "2321",
... |
package com.owncloud.android.lib.resources.files;
import java.io.File;
import com.owncloud.android.lib.common.utils.Log_OC;
public class FileUtils {
public static final String PATH_SEPARATOR = "/";
public static String getParentPath(String remotePath) {
String parentPath = new File(remotePath).getParent();
... | {
"content_hash": "9863d3913f6ac884c49d5f828aa7406c",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 106,
"avg_line_length": 27.571428571428573,
"alnum_prop": 0.6198186528497409,
"repo_name": "cloudcopy/owncloud-android-library",
"id": "796e0e82029052c518b6e349dea0e0a4ccd726... |
<!---
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | {
"content_hash": "2e8099fd710f03dc41186bf3898d286b",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 181,
"avg_line_length": 37.98529411764706,
"alnum_prop": 0.6329849012775842,
"repo_name": "aliyun-beta/aliyun-oss-hadoop-fs",
"id": "9c15db6c64f77c765c90c53e8922add158260b0c"... |
- Setup
- [Goals](docs/01-setup/01-goals.md)
- [Requirements](docs/01-setup/02-requirements.md)
- [Getting Started](docs/01-setup/03-getting-started.md)
- Core Dependencies
- [First-party](docs/02-dependencies/01-first-party.md)
- [react-wildcat](packages/react-wildcat/README.md)
- [rea... | {
"content_hash": "651254dd90a8cc094f314e03651ec8fe",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 85,
"avg_line_length": 44.903225806451616,
"alnum_prop": 0.7097701149425287,
"repo_name": "nfl/react-wildcat",
"id": "c2dfcdc3ce884652a89aa580aaa1e2fc331d918c",
"size": "14... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Activities;
namespace Core.Workflow
{
public static class 工作流扩展
{
/// <summary>
/// 将SynchronizationContext属性设为SynchronousSynchronizationContext类型实例之后,以使工作流变为在当前线程内同... | {
"content_hash": "9ee9a9c1e4e83592dd241054f6c24184",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 97,
"avg_line_length": 29.652173913043477,
"alnum_prop": 0.6700879765395894,
"repo_name": "manasheep/Core3",
"id": "344db28fd53eb3dc273ed62d9df6942f5cf12268",
"size": "876"... |
"""
Created on Fri Feb 29 14:33:17 2015
@author: Open Risk
Purpose: Testing concentration metrics library
"""
import unittest
import numpy as np
import pandas as pd
import concentrationMetrics as cm
ERROR_MARGIN = 1e-10
class TestConcentrationLib(unittest.TestCase):
""" Testing all indexes with uniform vecto... | {
"content_hash": "dce11c65a1e174b52f233f6cafef00b0",
"timestamp": "",
"source": "github",
"line_count": 255,
"max_line_length": 116,
"avg_line_length": 29.498039215686273,
"alnum_prop": 0.5610210050518479,
"repo_name": "open-risk/concentration_library",
"id": "99d8999902d35f5daf7e72cd898eb2965bd34af1... |
Copyright (c) 2014 RetailMeNot, Inc.
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": "d2081d6c2ece2182098ea28dbde7a74a",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 77,
"avg_line_length": 55.8421052631579,
"alnum_prop": 0.8049010367577757,
"repo_name": "RetailMeNot/ember-heisenberg",
"id": "08967d64a04fae1ed409e1ca4ba651f757a96127",
"s... |
require 'sinatra'
reference_temperature = ReferenceTemperature.new(273.15 + 25)
before '/temperature' do
unless session['is_authenticated']
halt 401, 'log in first'
end
end
# https://github.com/conoyes/hippeis#temperature
get '/temperature' do
{
'current' => Temperature.celsius_offset + 10 + ::Random.n... | {
"content_hash": "0e64409f2fcfecf1ddba2e7ee548336f",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 73,
"avg_line_length": 27.375,
"alnum_prop": 0.7214611872146118,
"repo_name": "conoyes/hippeis",
"id": "62b4d30aaf017544b2af730f1e207721d61ecf1f",
"size": "1234",
"binary... |
package com.semmle.js.ast.jsdoc;
import com.semmle.js.ast.SourceLocation;
import java.util.List;
/** A JSDoc block tag. */
public class JSDocTag extends JSDocElement {
private final String title;
private final String description;
private final String name;
private final JSDocTypeExpression type;
private fin... | {
"content_hash": "b16cbb709cc7e694b5a744d39eba7d70",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 88,
"avg_line_length": 23.068493150684933,
"alnum_prop": 0.6526128266033254,
"repo_name": "github/codeql",
"id": "1f65f8af8754c2e30ab43c4268db12811a9bf31d",
"size": "1684",... |
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<!-- The 'demoBean' below is only used as an example on how to use the debug toolbar from Java.
It is not required to use the Debug Toolbar -->
<managed-bean id="demoBean">
<managed-bean-name>demoBean</managed-bean-name>
<managed-bean-class>eu.linqed.d... | {
"content_hash": "2679b9f479325dafc98d2de57be5949b",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 97,
"avg_line_length": 50.916666666666664,
"alnum_prop": 0.7201309328968903,
"repo_name": "OpenNTF/DebugToolbar",
"id": "caf37c829657b2af8e331323e39425d7618f1157",
"size": ... |
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| {
"content_hash": "622a3de7efd5c6e3b1eb38649175d121",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 60,
"avg_line_length": 23.2,
"alnum_prop": 0.7931034482758621,
"repo_name": "martingit/NexaHomeControl",
"id": "14c3c80d1d9d9b8e0be1861471df75906045b289",
"size": "287",
"... |
describe('Kitchen Sink', function() {
it('.should() - assert that <title> is correct', function() {
// https://on.cypress.io/visit
cy.visit('https://evanghelic.ro');
// Here we've made our first assertion using a '.should()' command.
// An assertion is comprised of a chainer, subject, and optional va... | {
"content_hash": "15ae6535337aeea5ed598f597010c2c3",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 75,
"avg_line_length": 33.705882352941174,
"alnum_prop": 0.5724258289703316,
"repo_name": "radubrehar/evanghelic.ro",
"id": "7617c8ec64081f2a204263cb8f80a84c635187dc",
"siz... |
var addSetEntry = require('./_addSetEntry'),
arrayReduce = require('./_arrayReduce'),
setToArray = require('./_setToArray');
/**
* Creates a clone of `set`.
*
* @private
* @param {Object} set The set to clone.
* @returns {Object} Returns the cloned set.
*/
function cloneSet(set) {
return ar... | {
"content_hash": "3de5a934d1a232aa69681ce3cfa1e696",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 72,
"avg_line_length": 26,
"alnum_prop": 0.6490384615384616,
"repo_name": "Moccine/global-service-plus.com",
"id": "df0ef38367d05455a14827d761e90fad5401e6f2",
"size": "416"... |
package at.ac.tuwien.cg.gesture.data;
import java.util.ArrayList;
public class MeasuringPointStorage {
private ArrayList<Object> objectQueue;
private int measurementID = 0;
public MeasuringPointStorage(){
objectQueue = new ArrayList<Object>();
}
public void setMeasurementID(int id){
this.... | {
"content_hash": "d7e02ea9dcf1b78206e48061b0bebb05",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 46,
"avg_line_length": 19.627906976744185,
"alnum_prop": 0.6966824644549763,
"repo_name": "iSchluff/Wii-Gesture",
"id": "1287d5c7a3dceb00f936e044e8fcc6f854fbf094",
"size": ... |
layout: page
title: Palace Cube Corporation Award Ceremony
date: 2016-05-24
author: Elizabeth Orozco
tags: weekly links, java
status: published
summary: Aliquam erat volutpat. Cras at suscipit.
banner: images/banner/people.jpg
booking:
startDate: 12/12/2019
endDate: 12/16/2019
ctyhocn: GRRHSHX
groupCode: PCCAC
... | {
"content_hash": "0c4091b1257b51ecfaee164f5c1509d9",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 670,
"avg_line_length": 79.8,
"alnum_prop": 0.8114035087719298,
"repo_name": "KlishGroup/prose-pogs",
"id": "304e2a0185e32168567e560da6dd31391fed6b07",
"size": "1600",
"b... |
<?php
session_start();
error_reporting(5);
if(!isset($_SESSION['user']))
{
header("LOCATION:../login.php");
}
else
{
include("../include/conn.php");
if(isset($_GET['form_purpose']))
{
if($_GET['form_purpose']=='passchange')
{
if($_GET['new_status']=='inactive')
{
foreach($_POST['selected'] as $value... | {
"content_hash": "a0287cc91643e358051d1ab056c6c09a",
"timestamp": "",
"source": "github",
"line_count": 328,
"max_line_length": 159,
"avg_line_length": 26.28048780487805,
"alnum_prop": 0.5418793503480278,
"repo_name": "balramkverma/Simple-File-Hosting-Website-in-PHP-with-Admin-Panel",
"id": "a96b9a82... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.