text stringlengths 2 1.04M | meta dict |
|---|---|
package org.guvnor.inbox.backend.server;
import java.util.Iterator;
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import org.guvnor.inbox.model.InboxPageRequest;
import org.guvnor.inbox.model.InboxPageRow;
import o... | {
"content_hash": "ec5a1d0399f327b50c886737bafe147c",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 87,
"avg_line_length": 32.65555555555556,
"alnum_prop": 0.6308268118407622,
"repo_name": "yurloc/guvnor",
"id": "66babc80322015b0440c342e7b78041f007e5f7a",
"size": "3533",
... |
static volatile VALUE rbWindowsFontDirPathSymbol = Qundef;
#endif
static VALUE rbFontCache = Qundef;
static volatile VALUE symbol_bold = Qundef;
static volatile VALUE symbol_italic = Qundef;
static volatile VALUE symbol_ttc_index = Qundef;
typedef struct FontFileInfo {
VALUE rbFontNameSymbol;
VALUE rbFil... | {
"content_hash": "d48293ec0ba433fe9a27e8fdd63508d6",
"timestamp": "",
"source": "github",
"line_count": 448,
"max_line_length": 82,
"avg_line_length": 31.96875,
"alnum_prop": 0.6027789414886189,
"repo_name": "hajimehoshi/starruby",
"id": "6a8d56be79193d8f674cc52cce9e5263857c07aa",
"size": "14444",
... |
class OpenIDMiddleware(object):
"""This middleware initializes some settings to make the
python-openid library compatible with Google App Engine
"""
def process_view(self, request, view_func, view_args, view_kwargs):
from openid import fetchers
import openidgae.fetcher
fetchers.setDefaultFetcher(ope... | {
"content_hash": "818190d36e4bffe5098c404c0b72c096",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 78,
"avg_line_length": 43.03125,
"alnum_prop": 0.6957153231663036,
"repo_name": "lvbeck/niubi",
"id": "532fc062cd1c9609535890b348f0b4fa9d8b1ae3",
"size": "2201",
"binary"... |
{% extends 'events/display/conference/base.html' %}
{% from 'events/display/common/_conferences.html' import render_attachments %}
{% from 'events/display/indico/_common.html' import render_location, render_speakers %}
{% from 'events/timetable/display/indico/_common.html' import render_references %}
{% block page_cl... | {
"content_hash": "55b4e5e497c94b3962408447c862ae28",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 115,
"avg_line_length": 33.82258064516129,
"alnum_prop": 0.5665236051502146,
"repo_name": "pferreir/indico",
"id": "6c39f4af31e82bb18d5775632c00e1bbc9173817",
"size": "2097... |
package org.apache.spark.sql.streaming
import java.io.File
import java.net.URI
import scala.collection.mutable
import scala.util.Random
import org.apache.hadoop.fs._
import org.apache.hadoop.fs.permission.FsPermission
import org.apache.hadoop.util.Progressable
import org.apache.spark.SparkConf
import org.scalatest.... | {
"content_hash": "d045f38b6ee50c28851ca9d138b5259f",
"timestamp": "",
"source": "github",
"line_count": 2004,
"max_line_length": 110,
"avg_line_length": 38.77095808383233,
"alnum_prop": 0.6327013913021095,
"repo_name": "Intel-bigdata/OAP",
"id": "2f97eb8cdce2d1d6d713be8da3808ef7ddc345df",
"size": "... |
/*
Language: QML
Requires: javascript.js, xml.js
Author: John Foster <jfoster@esri.com>
Description: Syntax highlighting for the Qt Quick QML scripting language, based mostly off
the JavaScript parser.
Category: scripting
*/
var register = function(hljs) {
var KEYWORDS = {
keyword:
'in of ... | {
"content_hash": "024248cbd59e4e95b77591a12477852d",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 105,
"avg_line_length": 30.47457627118644,
"alnum_prop": 0.5522803114571746,
"repo_name": "andre-bergner/qrezi",
"id": "f218ffb7a8694fcd6d3ac2307b4d640af95a10f1",
"size": ... |
package org.mockito.runners;
import org.junit.runner.Description;
import org.junit.runner.Runner;
import org.junit.runner.manipulation.Filter;
import org.junit.runner.manipulation.Filterable;
import org.junit.runner.manipulation.NoTestsRemainException;
import org.junit.runner.notification.Failure;
import org.junit.ru... | {
"content_hash": "d30542d5b705841eea0ee1aaf95c6eff",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 105,
"avg_line_length": 34.397260273972606,
"alnum_prop": 0.688968538430904,
"repo_name": "hansjoachim/mockito",
"id": "076884a94b852c048397f37ac38a79738d13f53a",
"size": "... |
namespace Microsoft.Azure.Management.Storage.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// The properties of a storage account’s Blob service.
/// </summary>
[Rest.Serialization.JsonTransformation]
publ... | {
"content_hash": "9de322db00e10637b7988d11c93d75f3",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 718,
"avg_line_length": 45.92134831460674,
"alnum_prop": 0.6312698801076584,
"repo_name": "Azure/azure-sdk-for-net",
"id": "3a05ed201131da4dc76860dfbb1ab14b56ef8efc",
"siz... |
FactoryGirl.define do
factory :comment do
association :article, :factory => :article
body "Comment body"
ip "192.168.0.1"
email "jake@home.com"
end
factory :invalid_comment, parent: :comment do |f|
f.title nil
end
end
| {
"content_hash": "5a514bcc368bbc787b85f626d384c3ed",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 51,
"avg_line_length": 20.916666666666668,
"alnum_prop": 0.649402390438247,
"repo_name": "guy-roberts/code-challenge",
"id": "7bfc6427d14133310e07416cf7d29e901abc5028",
"si... |
/**
*
* @author Víctor Ruiz Gómez
* @file \brief Es un script con funciones especificas para la página
* de perfil del usuario.
* @note Este script debe ser incluido antes de la inclusión de comun.js
*/
/**
* Es una redefinición de la función usuarioLogeado creada por el script comun.js
* Con esto definimos ... | {
"content_hash": "5cc0cfe3b1c6c11f84422777843cc913",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 81,
"avg_line_length": 29.11764705882353,
"alnum_prop": 0.7070707070707071,
"repo_name": "morfeo642/a4g",
"id": "b5b20223afacd66c8f0f7bdc7c9860c72a4dd3d8",
"size": "505",
... |
#include "../hedley.h"
#if HEDLEY_IAR_VERSION_CHECK(8,0,0)
# pragma diag_suppress=Pe381
#elif defined(HEDLEY_SUNPRO_VERSION) && !defined(__cplusplus)
# pragma error_messages(off,E_EMPTY_DECLARATION)
#elif defined(HEDLEY_TI_VERSION)
# pragma diag_suppress 383
#endif
#ifdef __cplusplus
struct Empty2 {};
struct Empty... | {
"content_hash": "1b9040c11eae290966592d1bd1f9bb60",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 91,
"avg_line_length": 25,
"alnum_prop": 0.7184615384615385,
"repo_name": "turol/smaaDemo",
"id": "da62c036b5c5e17f35863fdff04693c26ed44db3",
"size": "650",
"binary": fal... |
(function() {
'use strict';
angular
.module('wordsearchApp')
.controller('LogsController', LogsController);
LogsController.$inject = ['LogsService'];
function LogsController (LogsService) {
var vm = this;
vm.changeLevel = changeLevel;
vm.loggers = LogsService.... | {
"content_hash": "f5cc0589359a3a281cb30424c195b57e",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 77,
"avg_line_length": 24.772727272727273,
"alnum_prop": 0.5651376146788991,
"repo_name": "hillwater/wordsearch",
"id": "edff9fc9582eddb2af611c4b51201b2ce886a964",
"size": ... |
[CmdletBinding()]param()
$Me = "$PSScriptRoot\" + $PSCmdlet.MyInvocation.MyCommand.Name.Replace(".tests", "")
if ((& $Me -Url "https://postman-echo.com/get?foo1=bar1&foo2=bar2" | ConvertFrom-Json).args.foo1 -eq "bar1") {Write-Host "SUCCESS: CURL: Basic GET works!" -ForegroundColor Green} else {Write-Host "FAIL: CURL:... | {
"content_hash": "d723da53f9896126e9304ba4e06fa9a6",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 253,
"avg_line_length": 73,
"alnum_prop": 0.7150684931506849,
"repo_name": "cawoodm/powowshell",
"id": "65cc06c63caba4fe7dd7fcd64d7306d306204e32",
"size": "365",
"binary":... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_execv_41.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-41.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_socket Read data usi... | {
"content_hash": "444690bbb8d9cd25cb6a0f1f671ab501",
"timestamp": "",
"source": "github",
"line_count": 215,
"max_line_length": 112,
"avg_line_length": 29.846511627906978,
"alnum_prop": 0.5860994234065763,
"repo_name": "JianpingZeng/xcc",
"id": "efe63bb505a4c36fb198011ed508ff1e167b9533",
"size": "6... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTasksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tasks', function ... | {
"content_hash": "bb4d0fea803f54cd6383c07308b54a6a",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 61,
"avg_line_length": 23.81081081081081,
"alnum_prop": 0.5482406356413166,
"repo_name": "alejandro088/webxander",
"id": "1abbaa323a175e405a5a458cc191e628f0568c26",
"size":... |
package com.xthena.core.hibernate;
import org.hibernate.FlushMode;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.context.spi.CurrentSessionContext;
import org.springframework.orm.hibernate4.SessionHolder;
import org.springframework.t... | {
"content_hash": "0d45a8fe128afcb98e470b7dabb3494d",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 95,
"avg_line_length": 39.31578947368421,
"alnum_prop": 0.6666666666666666,
"repo_name": "jianbingfang/xhf",
"id": "0e668e27d14244b7649e7b72a4b4d903640fce46",
"size": "2241... |
import BookmarkTreeNode = chrome.bookmarks.BookmarkTreeNode;
import PersistentSet from "./PersistentSet";
export class TreeRenderer {
private openFolders: PersistentSet<string>;
private readonly hideEmptyFolders: boolean;
private readonly startWithAllFoldersClosed: boolean;
constructor(openFolders: Persistent... | {
"content_hash": "1d6e929c83fcd745520ea92dc8ec6bea",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 114,
"avg_line_length": 25.79054054054054,
"alnum_prop": 0.6295520041917736,
"repo_name": "rpkamp/chrome-minimal-bookmarks-tree",
"id": "bbce60bd560e7765355e9f7d6d7318a17df5... |
/**
* User.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/#!documentation/models
*/
var bcrypt = require('bcrypt');
var hashedPassword = function(pass, cb) {
bcrypt.genSalt(10, function(err, salt) {
bcrypt.has... | {
"content_hash": "027d91430c8705e0e314d0001c1e1033",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 108,
"avg_line_length": 23.945945945945947,
"alnum_prop": 0.5457110609480813,
"repo_name": "schwarz9791/salis-vue-chat",
"id": "8e4e68e5e321927e79c0c5b12ce5887c11257dd9",
"... |
package org.lwjgl.vulkan;
/**
* This extension allows framebuffers to be created without the need for creating images first, allowing more flexibility in how they are used, and avoiding the need for many of the confusing compatibility rules.
*
* <p>Framebuffers are now created with a small amount of additional me... | {
"content_hash": "16f5c13b909071f88294e57b4a18614f",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 295,
"avg_line_length": 45.770114942528735,
"alnum_prop": 0.6923656454043194,
"repo_name": "TheMrMilchmann/lwjgl3",
"id": "fd7a8266a041edfe073df1b2722a8b5ed2c3857c",
"size"... |
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="margin-20">
<h4>Pakketkeuze Tool</h4>
<p>In 10 seconden bij jouw ideale pakket!</p>
</div>
<form [formGroup]="myForm" novalidate (ngSubmit)="save(myForm)">
<div formArrayName="questions">
... | {
"content_hash": "9d32cf775219b9efdfb2921762dc4ebe",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 161,
"avg_line_length": 51.337278106508876,
"alnum_prop": 0.47291378515444904,
"repo_name": "willem-vanheemstrasystems/meetup-angular2-firebase",
"id": "70a84ec2faac92f17f5a... |
from unittest import TestCase
import tempfile, os
from backup_monkey import SplunkLogging
class SplunkLoggingTest(TestCase):
parsed = None
values = {}
keys = ['body', 'severity', 'src_account', 'src_role', 'src_region', 'src_volume', 'src_snapshot', 'src_tags', 'subject', 'type', 'category']
log_file = tempfil... | {
"content_hash": "1dd65d722ec90a56a2ce26a7925eaa10",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 143,
"avg_line_length": 33.51111111111111,
"alnum_prop": 0.6326259946949602,
"repo_name": "orionhealth/backup-monkey",
"id": "1ce3472a6df898106b32983d8113e9a198143676",
"si... |
package org.pac4j.core.http.callback;
import org.pac4j.core.context.Pac4jConstants;
import org.pac4j.core.context.WebContext;
import org.pac4j.core.util.CommonHelper;
/**
* The client name is added as a query parameter to the callback URL.
*
* @author Jerome Leleu
* @since 3.0.0
*/
public class QueryParameterCal... | {
"content_hash": "f23bf9fe17eae9b4657531b38576cfeb",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 96,
"avg_line_length": 34.35897435897436,
"alnum_prop": 0.7313432835820896,
"repo_name": "mmoayyed/pac4j",
"id": "5dd9020129dd05d684bacff3085e1a11dfe8af0a",
"size": "1340",... |
"""
Annotation Type Hints
=====================
Defines the annotation type hints, the module exposes many aliases from
:mod:`typing` and :mod:`numpy.typing` to avoid having to handle multiple
imports.
"""
from __future__ import annotations
import numpy as np
import numpy.typing as npt
import re
from types import Mo... | {
"content_hash": "71960e054f62e78e273d4523110de5f2",
"timestamp": "",
"source": "github",
"line_count": 386,
"max_line_length": 79,
"avg_line_length": 23.642487046632123,
"alnum_prop": 0.6351084812623274,
"repo_name": "colour-science/colour",
"id": "3d110746e1c3622542df3ceedb821cb01733d16d",
"size"... |
package gov.nih.nci.cbiit.cdms.formula.gui.action;
import gov.nih.nci.cbiit.cdms.formula.gui.FrameMain;
import gov.nih.nci.cbiit.cdms.formula.gui.PanelMainFrame;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
public class SaveFormulaStoreAction extends AbstractAction {
private ... | {
"content_hash": "a0279e9403ee017993649aad7849d1c9",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 65,
"avg_line_length": 25.03125,
"alnum_prop": 0.7403245942571786,
"repo_name": "NCIP/caadapter",
"id": "c4e4e21211aec3d72bb79c20966a6c7412fb11c9",
"size": "976",
"binary... |
using System;
using System.Reactive.Threading.Tasks;
using Octokit.Reactive.Internal;
namespace Octokit.Reactive
{
/// <summary>
/// A client for GitHub's Reactions API.
/// </summary>
/// <remarks>
/// See the <a href="https://developer.github.com/v3/reactions">Reactions API documentation</a> for... | {
"content_hash": "02c9013a7aa13f0791b927fff7365b17",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 155,
"avg_line_length": 44.701149425287355,
"alnum_prop": 0.6397531499100025,
"repo_name": "thedillonb/octokit.net",
"id": "5c7e965c4d3bdfeede4677f3566183ce562b6f99",
"size... |
<div class="image">
<img src="{{ include.url }}" alt="{{ include.description }}"/>
<div class="text-center">{{ include.description }}</div>
</div>
| {
"content_hash": "c30baaa23d14884c331fcee6abf3f156",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 63,
"avg_line_length": 37.25,
"alnum_prop": 0.6174496644295302,
"repo_name": "ttvand/ttvand.github.io",
"id": "feb884faafdce35548c9b26929173f531fe01a87",
"size": "149",
"b... |
[master_build_status]: https://travis-ci.com/VATSIM-UK/core.svg?branch=master
[master_test_status]: https://github.com/VATSIM-UK/core/workflows/Build%20&%20Test/badge.svg?event=push
[master_codecov_status]: https://codecov.io/gh/VATSIM-UK/core/branch/master/graphs/badge.svg
[production_status]: https://vatsim-uk.deploy... | {
"content_hash": "d13365e172bead0ae876320eb4ba165a",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 217,
"avg_line_length": 63.46666666666667,
"alnum_prop": 0.5714285714285714,
"repo_name": "atoff/core",
"id": "111ca35d45c731ecb24ec51cf3195692a1d11f55",
"size": "1904",
... |
#import "CCRenderTexture.h"
#import "CCDirector.h"
#import "ccMacros.h"
#import "CCShader.h"
#import "CCConfiguration.h"
#import "Support/ccUtils.h"
#import "Support/CCFileUtils.h"
#import "Support/CGPointExtension.h"
#import "CCTexture_Private.h"
#import "CCDirector_Private.h"
#import "CCNode_Private.h"
#import "CC... | {
"content_hash": "b3a85c4beeb1935f46c2db60df33633c",
"timestamp": "",
"source": "github",
"line_count": 552,
"max_line_length": 174,
"avg_line_length": 28.894927536231883,
"alnum_prop": 0.7371159874608151,
"repo_name": "DNESS/cocos2d-objc",
"id": "854579c0f04340acf286d013b1694f31813569d2",
"size": ... |
using org.xmlvm;
namespace java.util.regex {
public class AbstractCharClass_2LazyJavaDefined: global::java.util.regex.AbstractCharClass_2LazyCharClass {
new public void @this(){
//XMLVM_BEGIN_WRAPPER[java.util.regex.AbstractCharClass$LazyJavaDefined: void <init>()]
global::System.Object _r0_o = null;
_r0_o = th... | {
"content_hash": "2ae24c64521c13db9012b3cbd059a1c6",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 150,
"avg_line_length": 49.97435897435897,
"alnum_prop": 0.7347357619291944,
"repo_name": "Pmovil/CN1WindowsPort",
"id": "e8d8691b1dae5a4f9c9d1171fe23ec3248f69e04",
"size":... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="fi_FI">
<context>
<name>EnttecWing</name>
<message>
<location filename="enttecwing.cpp" line="113"/>
<source>This plugin provides input support for Enttec Playback and Enttec Shortcut Wings.</source>
<transl... | {
"content_hash": "55449dcfb7ae6ca3e50ff616055b3025",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 145,
"avg_line_length": 35.33898305084746,
"alnum_prop": 0.6503597122302158,
"repo_name": "peternewman/qlcplus",
"id": "41bd68ee7013bcc6df78061cdeb0536efaf6916d",
"size": "... |
import csb.test as test
from csb.io import MemoryStream
from csb.bio.io.mrc import DensityMapReader, DensityMapWriter, DensityMapFormatError, HeaderInfo, ByteOrder
@test.unit
class TestDensityMapReader(test.Case):
def setUp(self):
super(TestDensityMapReader, self).setUp()
... | {
"content_hash": "bec64d574837fdc7da79af2d6626d382",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 107,
"avg_line_length": 32.096385542168676,
"alnum_prop": 0.5844594594594594,
"repo_name": "csb-toolbox/CSB",
"id": "24bda3c70c505c8a0ff558a1d88472307f88ff8b",
"size": "266... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2021-2022 Google LLC. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentati... | {
"content_hash": "ab6854688dd60ae121aba70f0f7f05cd",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 120,
"avg_line_length": 48.09316770186335,
"alnum_prop": 0.6821645357096733,
"repo_name": "GPUOpen-Drivers/llpc",
"id": "e83a765881e1caa47d80c79359e424c86b99a2ab",
"size":... |
.. spelling::
ncnn
.. index:: machine-learning ; ncnn
.. _pkg.ncnn:
ncnn
====
- `Official <https://github.com/Tencent/ncnn>`__
- `Hunterized <https://github.com/hunter-packages/ncnn>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/ncnn/CMakeLists.txt>`__
.. literalinclude:: /../example... | {
"content_hash": "4c01c473e877e63175aee277250bb1dd",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 89,
"avg_line_length": 23.05263157894737,
"alnum_prop": 0.6712328767123288,
"repo_name": "ErniBrown/hunter",
"id": "08b67b9bf95f0ef68660dc236f29ec7c0c446f1e",
"size": "438"... |
package org.dasein.cloud.vsphere.network;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Locale;
import java.util.concurrent.Future;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.dasein.cloud.CloudException;
import org.dasein.cloud.InternalException;
impo... | {
"content_hash": "8b941b79720caa0cb9de5a314e8c9aac",
"timestamp": "",
"source": "github",
"line_count": 205,
"max_line_length": 231,
"avg_line_length": 35.96585365853659,
"alnum_prop": 0.7404041774040417,
"repo_name": "daniellemayne/dasein-cloud-vsphere_old",
"id": "5811913e59c26a409323a845e6dcc69f38... |
//
// BQCamera.h
// BQCommunity
//
// Created by ZL on 14-9-11.
// Copyright (c) 2014年 beiqing. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ZLCamera.h"
typedef void(^codeBlock)();
typedef void(^ZLComplate)(id object);
@interface ZLCameraViewController : UIViewController
// 顶部View
@property (weak, n... | {
"content_hash": "c58c1c178693dd3ab98277fe9ded01a8",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 82,
"avg_line_length": 21.575757575757574,
"alnum_prop": 0.6811797752808989,
"repo_name": "Coding/Coding-iPad",
"id": "39227a5c4693a80a738de86c7628ffc8224e9cb0",
"size": "7... |
dependencies = {
layers: [
{
// This is a specially named layer, literally 'dojo.js'
// adding dependencies to this layer will include the modules
// in addition to the standard dojo.js base APIs.
name: "dojo.js",
dependencies: [
"dijit._Widget",
"dijit._Templated",
"dojo.fx",
"dojo.... | {
"content_hash": "11e53c75674731631d340b56875eed7a",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 64,
"avg_line_length": 19.904761904761905,
"alnum_prop": 0.5765550239234449,
"repo_name": "NCIP/calims",
"id": "19e517d99a33d15858cfd3cf97d945e6457a14ca",
"size": "418",
... |
define(['angular'], function(ng) {
'use strict';
ng.module('cs_table.controllers', []);
ng.module('cs_table.directives', []);
var module = ng.module('cs_table', [
'ngSanitize',
'ui',
'ui.bootstrap',
'ngTable',
'ngTableResizableColumns',
'cs_table.controllers',
'cs_table.directives'... | {
"content_hash": "fbc1809b4c0ba7cdd1c8e379f80cfe1d",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 40,
"avg_line_length": 19.38888888888889,
"alnum_prop": 0.5931232091690545,
"repo_name": "nobitagit/angular-seed",
"id": "58c4415eef709f657d7cbd995ecd4c24f4453b97",
"size":... |
<div role="columnheader" ng-class="{ 'sortable': sortable }"
ui-grid-one-bind-aria-labelledby-grid="col.uid + '-header-text ' + col.uid + '-sortdir-text'"
aria-sort="{{col.sort.direction == asc ? 'ascending' : ( col.sort.direction == desc ? 'descending' : (!col.sort.direction ? 'none' : 'other'))}}">
<div... | {
"content_hash": "1e1c10bc5b9036ba53c117721e3d4e24",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 175,
"avg_line_length": 90.94444444444444,
"alnum_prop": 0.6371411117898595,
"repo_name": "ppcxy/cyfm",
"id": "2b711979a5591580c8874959fba8c26d7a8a98ac",
"size": "1637",
... |
// public/core.js
var fatCatsFeeding = angular.module('fatCatsFeeding', []);
fatCatsFeeding.controller('Controller', ['$scope', '$http', '$interval', function($scope, $http, $interval) {
$scope.quantity = 5;
$scope.feedDate = '';
$scope.amounts = [{"id":"1/6"}, {"id": "1/4"}, {"id":"1/3"}, {"id":"1"}];
$scope.... | {
"content_hash": "92109b9d619e4a2ef960c7250fe99581",
"timestamp": "",
"source": "github",
"line_count": 190,
"max_line_length": 109,
"avg_line_length": 26.110526315789475,
"alnum_prop": 0.5746825236847409,
"repo_name": "dwats/FatCatsJS",
"id": "80b371dbd3868a3066991aa230bc2691e4d91121",
"size": "49... |
require File.dirname(__FILE__) + "/spec_helper"
# These specs are a kind of integration spec. They're not unit testing small pieces
# of code, it's just parsing a range of PDF files and ensuring the result is
# consistent. An extra check to make sure parsing these files will continue
# to work for our users.
#
# Where... | {
"content_hash": "06183374f55599b828810757f7b0cb24",
"timestamp": "",
"source": "github",
"line_count": 269,
"max_line_length": 140,
"avg_line_length": 35.69144981412639,
"alnum_prop": 0.6907613790230185,
"repo_name": "mattvv/pdf-reader",
"id": "373cb80a813a6d39c7334562596a53e154f21aea",
"size": "9... |
// This code is auto-generated, do not modify
package com.spectralogic.ds3client.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import java.util.Date;
import java.lang.Long;
import java.util.UUID;
import java.lang.String;
@... | {
"content_hash": "7f9d11e4053dec119aefa52e6b13687a",
"timestamp": "",
"source": "github",
"line_count": 227,
"max_line_length": 103,
"avg_line_length": 25.17180616740088,
"alnum_prop": 0.7264613230661533,
"repo_name": "DenverM80/ds3_java_sdk",
"id": "2ede6aa7d779fe5d9eeef29f30740ca22dae2ea5",
"size... |
package com.intellij.openapi.extensions.impl;
import com.intellij.diagnostic.ActivityCategory;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.components.ComponentManager;
import com.intellij.openapi.diagnostic.DefaultLogger;
import com.intellij.openapi.extensions.*;
import com.intellij.openapi.pro... | {
"content_hash": "109d055292089d8d23a8cdec88330dd1",
"timestamp": "",
"source": "github",
"line_count": 458,
"max_line_length": 170,
"avg_line_length": 36.68122270742358,
"alnum_prop": 0.7191071428571428,
"repo_name": "google/intellij-community",
"id": "2de9ab29f2533dbde3ffb05ac54efd367fe85a53",
"s... |
package controllers
import (
"net/http"
bosherr "github.com/cloudfoundry/bosh-utils/errors"
boshlog "github.com/cloudfoundry/bosh-utils/logger"
semiver "github.com/cppforlife/go-semi-semantic/version"
mart "github.com/go-martini/martini"
martrend "github.com/martini-contrib/render"
bhstemsrepo "github.com/bos... | {
"content_hash": "342f74f445584ea2a79f60083621f30c",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 99,
"avg_line_length": 25.890173410404625,
"alnum_prop": 0.7131056039294486,
"repo_name": "cppforlife/bosh-hub",
"id": "485648cfff8952dfdf6756892d0a6728ec960a30",
"size": ... |
// Copyright © 2010 onwards, Andrew Whewell
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice, th... | {
"content_hash": "815381ad7287c5f7d22b6bc2f2dc2f41",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 749,
"avg_line_length": 77.4,
"alnum_prop": 0.7751937984496124,
"repo_name": "wiseman/virtual-radar-server",
"id": "234e8e3d0b08ba15bf2bf271263082d9f9e52c28",
"size": "1938... |
/*
* Do not modify this file. This file is generated from the opsworks-2013-02-18.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.OpsWorks.Model
{... | {
"content_hash": "6f05c276a10f048f91ed496cb48c5076",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 168,
"avg_line_length": 31.906666666666666,
"alnum_prop": 0.6092770580860845,
"repo_name": "mwilliamson-firefly/aws-sdk-net",
"id": "8a73c28ed4f26967fb775af9e114c4c21b851ac1"... |
<?php
/**
* The Akismet PHP5 Class
*
* This class takes the functionality from the Akismet WordPress plugin written by {@link http://photomatt.net/ Matt Mullenweg} and allows it to be integrated into any PHP5 application or website.
*
* The original plugin is {@link http://akismet.com/download/ available on... | {
"content_hash": "8e7f1e0bac7279fb34415e4dd395cac3",
"timestamp": "",
"source": "github",
"line_count": 369,
"max_line_length": 212,
"avg_line_length": 31.048780487804876,
"alnum_prop": 0.6340228681155625,
"repo_name": "jitendrathakur/jtb",
"id": "cd54aa526ef051fda6fdde07423fffb7237ac527",
"size": ... |
Redispress
==========
Redis + Express
| {
"content_hash": "4df01f89e3c126c8c6dac454db07381b",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 15,
"avg_line_length": 9.75,
"alnum_prop": 0.5641025641025641,
"repo_name": "koheishingai/Redispress",
"id": "cc2223f1fcd6e9bc27ead7e7f482b8051f9c8db6",
"size": "39",
"bin... |
package config
import (
"fmt"
"io"
"io/ioutil"
"github.com/go-yaml/yaml"
"github.com/xanzy/go-gitlab"
)
const (
apiPath = "/api/v4"
)
type issueRange struct {
from, to int
}
// Config contains the configuration related to source and target projects.
type Config struct {
SrcPrj *project `yaml:"from"`
DstPr... | {
"content_hash": "5dab28f7624d5bc1782aaf169624891d",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 115,
"avg_line_length": 22.814814814814813,
"alnum_prop": 0.6466450216450217,
"repo_name": "gotsunami/gitlab-copy",
"id": "4058e7d9b9d7e29b84dda88148784d0f98620dfe",
"size"... |
<?php
namespace Craft;
class ImageHelper
{
// Constants
// =========================================================================
const EXIF_IFD0_ROTATE_180 = 3;
const EXIF_IFD0_ROTATE_90 = 6;
const EXIF_IFD0_ROTATE_270 = 8;
// Public Methods
// ===========================================================... | {
"content_hash": "6c9a018a52f9051d670f57938f6fe040",
"timestamp": "",
"source": "github",
"line_count": 272,
"max_line_length": 107,
"avg_line_length": 20.44485294117647,
"alnum_prop": 0.5903614457831325,
"repo_name": "chrisdubya/wildfile-craft",
"id": "0ed9767b863169c6d80744845d95a51cee0106b0",
"s... |
namespace ash {
class UnifiedSystemTrayController;
// Controller of IME feature pod button.
class ASH_EXPORT IMEFeaturePodController : public FeaturePodControllerBase,
public IMEObserver {
public:
IMEFeaturePodController(UnifiedSystemTrayController* tray_controller);
~I... | {
"content_hash": "b8fca219bc56b5bb1e6148444ba18f85",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 75,
"avg_line_length": 27.303030303030305,
"alnum_prop": 0.7436182019977803,
"repo_name": "endlessm/chromium-browser",
"id": "0591c7a6792f2f9d8910eea98c1e02d54111ae6b",
"si... |
<?php
namespace ZendTest\Stdlib\StringWrapper;
use Zend\Stdlib\Exception;
use Zend\Stdlib\StringWrapper\MbString;
class MbStringTest extends CommonStringWrapperTest
{
public function setUp()
{
if (!extension_loaded('mbstring')) {
try {
new MbString('utf-8');
... | {
"content_hash": "e5062aa16d3767389e69ba19b64cce15",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 98,
"avg_line_length": 26.341463414634145,
"alnum_prop": 0.5972222222222222,
"repo_name": "cpunsola/kiosko",
"id": "01c9f8f418de3e9dfec0e5d193bea008c23c6dbc",
"size": "1385... |
<?php
namespace App\Validation\Rules;
class Xdigit extends AbstractCtypeRule
{
public function ctypeFunction($input)
{
return ctype_xdigit($input);
}
}
| {
"content_hash": "454cb2397b1ac0f18fa9811395d202bc",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 41,
"avg_line_length": 13.538461538461538,
"alnum_prop": 0.6761363636363636,
"repo_name": "Javier-Solis/admin-project",
"id": "5990afa52a9953ab3d5f043581842289f97dd2ef",
"s... |
package eu.davidea.flexibleadapter.items;
import android.support.v7.widget.RecyclerView;
/**
* This interface represents an item in the section.
*
* @author Davide Steduto
* @see IFlexible
* @see IExpandable
* @see IFilterable
* @see IHeader
* @see IHolder
* @since 07/02/2016 Created
* <br/>26/03/2016 setH... | {
"content_hash": "866b747f87de095872c0fc50eefa3000",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 84,
"avg_line_length": 20.04,
"alnum_prop": 0.7325349301397206,
"repo_name": "weiwenqiang/GitHub",
"id": "e7e3f48bc9162a9f40af8f42ca4a4f1eb0276f92",
"size": "1094",
"bina... |
#include <v8.h>
#include <node.h>
#include <stdio.h>
#include <stdlib.h>
#include "openssl_wrapper.h"
#include <string.h>
using namespace node;
using namespace v8;
const static int BUFFER_SIZE = 4096;
void prettyPrintArray(char* pem, int len) {
printf("\n%s",pem);
printf("\n");
for (int i=0; i<len; i++) {
... | {
"content_hash": "cf8a9081c859c1dfc8332d993caaa61a",
"timestamp": "",
"source": "github",
"line_count": 266,
"max_line_length": 125,
"avg_line_length": 33.06390977443609,
"alnum_prop": 0.6375213189312109,
"repo_name": "hansmy/Webinos-Platform",
"id": "d7d42385e8841be04438ad30c91dddfdbf1c95fa",
"siz... |
package iht.views.application
import org.jsoup.nodes.Document
import play.api.data.{Form, FormError}
import play.api.mvc.Call
import play.twirl.api.HtmlFormat.Appendable
import iht.utils.CommonHelper._
trait SubmittableApplicationPageBehaviour[A] extends ApplicationPageBehaviour {
def view: String = formToView(f... | {
"content_hash": "4804636108c53518eaad3a6e435981eb",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 95,
"avg_line_length": 32.404761904761905,
"alnum_prop": 0.7362233651726672,
"repo_name": "hmrc/iht-frontend",
"id": "3441394ea424707c8419f4726e003ac3041df772",
"size": "19... |
from flask import redirect, render_template, url_for, request, flash
from time import time
from pyfsw import app, db
from pyfsw import Player, ShopCategory, ShopItem, ShopOrder, ShopHistory
from pyfsw import login_required, current_user
@app.route('/shop/offer')
def route_shop():
categories = db.session.query(ShopCa... | {
"content_hash": "c1dfde4d05fba0ba241c8d23bfe4b8c0",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 95,
"avg_line_length": 29.25609756097561,
"alnum_prop": 0.7123801583993331,
"repo_name": "diath/pyfsw",
"id": "5fe718fe44d5d06772ebc891d649202c25f0b10c",
"size": "2399",
... |
#ifndef __UILOADINGBAR_H__
#define __UILOADINGBAR_H__
#include "../BaseClasses/UIWidget.h"
NS_CC_EXT_BEGIN
typedef enum
{
LoadingBarTypeLeft,
LoadingBarTypeRight
}LoadingBarType;
class UILoadingBar : public UIWidget
{
public:
/**
* Default constructor
*/
UILoadingBar();
/**
... | {
"content_hash": "de537d54458d25f94056419e0a7e5664",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 107,
"avg_line_length": 23.631147540983605,
"alnum_prop": 0.6378772112382934,
"repo_name": "gibtang/CCNSCoding",
"id": "5bf38a203a0378dd1d68b0bbe75c26a4724c0032",
"size": ... |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
xmlns:tool="http://schemas.android.com/tools"
android:fitsSystemWind... | {
"content_hash": "44f2b972124d99952d81e969465c5f20",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 96,
"avg_line_length": 35.50769230769231,
"alnum_prop": 0.6464471403812825,
"repo_name": "iRail/BeTrains-for-Android",
"id": "f7cb573ccc26d6470e38c246d932b9066cc39cdd",
"si... |
<?php
/*
Section: confirm
Language: Slovak
Translator: SierraHawk <sierrahawk@outlook.com>
*/
$translations = array(
'h1' => 'Potvrdenie',
);
?> | {
"content_hash": "9fba18ad05ed46e757717fc068cdcc67",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 47,
"avg_line_length": 13.545454545454545,
"alnum_prop": 0.6711409395973155,
"repo_name": "mpopp75/db4free-net-l10n",
"id": "d6a04d641474375b5b1b68be0dd40ef00cd30992",
"siz... |
template<class T>
static bool dummy_constructor(JSContext *cx, uint32_t argc, jsval *vp) {
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
JS::RootedValue initializing(cx);
bool isNewValid = true;
if (isNewValid)
{
TypeTest<T> t;
js_type_class_t *typeClass = nullptr;
std::s... | {
"content_hash": "33f8bb95fec55171e3e4f9f6ae4c94bb",
"timestamp": "",
"source": "github",
"line_count": 1212,
"max_line_length": 171,
"avg_line_length": 45.26897689768977,
"alnum_prop": 0.7027120621149711,
"repo_name": "yinjimmy/sdkbox-samples",
"id": "d1da9cfd20608a61883abd7dcc52c97f3348df0e",
"si... |
// Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// th... | {
"content_hash": "2c03a4d412b55f54f45b63be1f667cda",
"timestamp": "",
"source": "github",
"line_count": 232,
"max_line_length": 148,
"avg_line_length": 30.875,
"alnum_prop": 0.7552701382102471,
"repo_name": "wjw465150/jodd",
"id": "7ab338f427ef020f70929a9bc7c3fc410089cc04",
"size": "7163",
"binar... |
// Python Tools for Visual Studio
// Copyright(c) Microsoft Corporation
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the License); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
//... | {
"content_hash": "70b8c465c172a013b32ecb7122661d54",
"timestamp": "",
"source": "github",
"line_count": 366,
"max_line_length": 140,
"avg_line_length": 47.6448087431694,
"alnum_prop": 0.5625071682532401,
"repo_name": "int19h/PTVS",
"id": "5f1bed2b436189fcbb722a8d2582cd781d703600",
"size": "17438",
... |
require 'fixtures/fake_rails_app'
require 'fixtures/controllers'
ActiveRecord::Base.establish_connection :adapter => :postgresql,
:adapter => 'postgresql',
:database => 'ansible_test',
:pool => 5,
:timeout => 5000,
:host => 'localhost'
| {
"content_hash": "ccce451034bb177a268652aee22b4fc2",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 64,
"avg_line_length": 28.555555555555557,
"alnum_prop": 0.6614785992217899,
"repo_name": "derekparker/transmitter",
"id": "6cbf59bfdc13726d817fcc7a30fad2c56ea6f5d4",
"size"... |
// ---------------------------------------------------------------------------------
// <copyright file="GetCatalogClubGiftsMessageEvent.cs" company="https://github.com/sant0ro/Yupi">
// Copyright (c) 2016 Claudio Santoro, TheDoctor
// </copyright>
// <license>
// Permission is hereby granted, free of charge, to a... | {
"content_hash": "6b510365b01b3ba4729021975b4deaba",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 120,
"avg_line_length": 46.829268292682926,
"alnum_prop": 0.6635416666666667,
"repo_name": "TheDoct0r11/Yupi",
"id": "bb632db8744e5a0929412beda284dfb415efaf43",
"size": "19... |
'use strict';
let angular = require('angular');
require('./projectPipeline.less');
module.exports = angular.module('spinnaker.core.projects.dashboard.pipelines.projectPipeline.directive', [
require('../../../utils/lodash.js'),
])
.directive('projectPipeline', function () {
return {
restrict: 'E',
... | {
"content_hash": "b1a8e75be13759ca0109fa3ebd81aa3a",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 148,
"avg_line_length": 28.903225806451612,
"alnum_prop": 0.6395089285714286,
"repo_name": "HaishiBai/deck",
"id": "5ad75d9094ff05dff02445f3cbc58efb136d0627",
"size": "896"... |
<?php
/**
* ALIPAY API: alipay.mobile.public.qrcode.create request
*
* @author auto create
* @since 1.0, 2016-01-19 17:18:08
*/
class AlipayMobilePublicQrcodeCreateRequest
{
/**
* 生成二维码的参数
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;... | {
"content_hash": "fe83d87b38ebaf0adb5a673f48262565",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 57,
"avg_line_length": 16.98936170212766,
"alnum_prop": 0.6612398246712586,
"repo_name": "PHPJourney/gccms",
"id": "864248484a5d660f2fc1cdc71ebb13b812972a00",
"size": "1613... |
require 'rails_helper'
RSpec.describe Admin::SubscribesController, :type => :controller do
before do
session[:login] = true
end
describe "GET index" do
it "returns http success" do
get :index
expect(response).to have_http_status(:success)
end
end
describe "POST enable" do
it "r... | {
"content_hash": "4f23840558ffffc3d4f376f8cd31c1c5",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 67,
"avg_line_length": 22.75,
"alnum_prop": 0.6565934065934066,
"repo_name": "Syuusuke/hosea-blog",
"id": "94494aa64a63bdb4f6cdc8af37a98d4f0504bf8d",
"size": "728",
"bina... |
package com.muleinaction;
import static com.muleinaction.Constants.MESSAGE_XML_V1;
import static com.muleinaction.Constants.MESSAGE_XML_V2;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import org.mule.api.MuleMessage;
import org.mule.api.client.MuleClie... | {
"content_hash": "dcba2cd2ae57f0139d476c145f4a7f0c",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 103,
"avg_line_length": 34.84615384615385,
"alnum_prop": 0.6431199411331862,
"repo_name": "ddossot/mule-in-action-2e",
"id": "a6404915e5198f1af272b68a02468753b3e4c061",
"si... |
<?php
include(dirname(__FILE__).'/../../bootstrap/functional.php');
$browser = new sfTestFunctional(new sfBrowser());
$browser->
get('/image/index')->
with('request')->begin()->
isParameter('module', 'image')->
isParameter('action', 'index')->
end()->
with('response')->begin()->
... | {
"content_hash": "c702e687388cec7230739d108dcea896",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 61,
"avg_line_length": 21.68421052631579,
"alnum_prop": 0.5703883495145631,
"repo_name": "studiodev/archives",
"id": "fc609b4fbda8c9505c7c24505e0d9aa0d17d0d4d",
"size": "41... |
import Vue from 'vue/dist/vue.esm'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
const localeEn = require('../../../config/locales/en.yml')
const localeCy = require('../../../config/locales/cy.yml')
// The locale is passed via the window.ukhpi structure
// directly from Rails
const currentLocale = window.ukhpi.loc... | {
"content_hash": "e087a877d666fc06d66da76706eaf9f9",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 60,
"avg_line_length": 26.53846153846154,
"alnum_prop": 0.6869565217391305,
"repo_name": "epimorphics/ukhpi",
"id": "aae9a29228c2eb0080fd90080c4b2a08b5430be4",
"size": "690... |
from setuptools import find_packages, setup
DESCRIPTION = 'App Engine backends for Django-nonrel'
LONG_DESCRIPTION = None
try:
LONG_DESCRIPTION = open('README.rst').read()
except:
pass
setup(name='djangoappengine',
version='1.4.0',
packages=find_packages(exclude=['docs']),
install_requires... | {
"content_hash": "55b8942b080c254c089f3cf8f741d9ac",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 81,
"avg_line_length": 32.911764705882355,
"alnum_prop": 0.6309204647006256,
"repo_name": "jerod2000/djangoappengine",
"id": "8a6234072f35147ed717f43325152a55e3b07529",
"si... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Wed Oct 12 20:49:58 CEST 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Package org... | {
"content_hash": "a1d61ddbcdadae83b99a6b3e45195caf",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 151,
"avg_line_length": 35.2991452991453,
"alnum_prop": 0.6138014527845036,
"repo_name": "wangchuande/apache-flume-1.7.0",
"id": "6b6ab6560092e3339c9e907f77e65466fdb30154",
... |
"""AbstractCoroutine provider tests."""
import asyncio
from dependency_injector import providers, errors
from pytest import mark, raises
from .common import example
def test_inheritance():
assert isinstance(providers.AbstractCoroutine(example), providers.Coroutine)
@mark.asyncio
@mark.filterwarnings("ignore"... | {
"content_hash": "ff0e8104527b0adb24ed2793cf0886e9",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 81,
"avg_line_length": 27.181818181818183,
"alnum_prop": 0.7090301003344481,
"repo_name": "ets-labs/python-dependency-injector",
"id": "4f09844282c2e2143c38b4b99f285a134ce770... |
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/remove_friend"
android:title="Remove Friend"
android:icon="@mipmap/ic_launcher"
/>
</menu> | {
"content_hash": "bda1db169a3a6ab57e19088571a045f7",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 65,
"avg_line_length": 28.333333333333332,
"alnum_prop": 0.611764705882353,
"repo_name": "TheFourMarauders/MaraudersApp-Android",
"id": "2faaf810b22785767f08e66032ed32c4324765... |
#ifndef FPA2BV_CONVERTER_H_
#define FPA2BV_CONVERTER_H_
#include"ast.h"
#include"obj_hashtable.h"
#include"ref_util.h"
#include"fpa_decl_plugin.h"
#include"bv_decl_plugin.h"
#include"array_decl_plugin.h"
#include"datatype_decl_plugin.h"
#include"dl_decl_plugin.h"
#include"pb_decl_plugin.h"
#include"seq_decl_plugin.h"... | {
"content_hash": "b60d4df61ce259c3bed9a5e199c4b7bf",
"timestamp": "",
"source": "github",
"line_count": 215,
"max_line_length": 115,
"avg_line_length": 51.42325581395349,
"alnum_prop": 0.6217438494934877,
"repo_name": "kyledewey/z3",
"id": "3f5e76c6681ea80ef6495eb4d421451c98093546",
"size": "11267"... |
class Spork::AppFramework::Rails < Spork::AppFramework
def preload(&block)
STDERR.puts "Preloading Rails environment"
STDERR.flush
ENV["RAILS_ENV"] ||= 'test'
preload_rails
yield
end
def entry_point
@entry_point ||= File.expand_path("config/environment.rb", Dir.pwd)
end
alias :envir... | {
"content_hash": "c31d02193e30057e058eea46243a0797",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 116,
"avg_line_length": 28.414634146341463,
"alnum_prop": 0.6373390557939914,
"repo_name": "masukomi/mobtvse",
"id": "351d6e7c6a4fe5129184d6a32d5651ccbfa1fbc6",
"size": "23... |
package com.android.server.pm;
import android.content.pm.ApplicationInfo;
import android.os.Build;
import android.os.SystemProperties;
import android.text.TextUtils;
import android.util.ArraySet;
import java.util.ArrayList;
import java.util.List;
import dalvik.system.VMRuntime;
/**
* Provides various methods for... | {
"content_hash": "331e5da10725c1002db792c324c5fdd5",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 95,
"avg_line_length": 36.654545454545456,
"alnum_prop": 0.6555059523809523,
"repo_name": "daiqiquan/framework-base",
"id": "5092ebf9d4b937f9b310b6790ab303fb71808114",
"si... |
/* jQuery.Rating Plugin CSS - http://www.fyneworks.com/jquery/star-rating/
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
div.rating-cancel,div.star-rating {
float:left;
width:17px;
height:... | {
"content_hash": "e2c4cd9246805b92e68fe1741611819e",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 111,
"avg_line_length": 39.38461538461539,
"alnum_prop": 0.71484375,
"repo_name": "alorchenkov/spring-data-openjpa-example",
"id": "cae4238e7ef1e82ca41d95cd6a57f9cf2b978975",... |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* DNS Library for handling lookups and updates.
*
* PHP Version 5
*
* Copyright (c) 2010, Mike Pultz <mike@mikepultz.com>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are... | {
"content_hash": "3ffb8d6fdef07f33dcf7ca0880722b5a",
"timestamp": "",
"source": "github",
"line_count": 423,
"max_line_length": 84,
"avg_line_length": 31.569739952718678,
"alnum_prop": 0.5008986071589037,
"repo_name": "crypticmind/docker-osticket",
"id": "4d6202066d0c6ecd425e02c4f8e76fc94c9d13a8",
... |
package sysdb
import (
"fmt"
"time"
)
// The SysDB JSON time format.
const jsonTime = `"2006-01-02 15:04:05 -0700"`
// A Duration represents the elapsed time between two instants as a
// nanoseconds count.
//
// It supports marshaling to and unmarshaling from the SysDB JSON format (a
// sequence of decimal numbers... | {
"content_hash": "1c60be081f4b3990bafd8d012953c4e9",
"timestamp": "",
"source": "github",
"line_count": 234,
"max_line_length": 85,
"avg_line_length": 26.4017094017094,
"alnum_prop": 0.6197798640336678,
"repo_name": "sysdb/go",
"id": "73fe0b530c73cdf5d194c2d7de0dc8b8ecf5c8de",
"size": "7576",
"bi... |
package com.amazonaws.services.simpleemail.model;
import java.io.Serializable;
/**
* <p>
* Recipient-related information to include in the Delivery Status
* Notification (DSN) when an email that Amazon SES receives on your
* behalf bounces.
* </p>
* <p>
* For information about receiving email through Amazon S... | {
"content_hash": "e7cfc5c70665489b8a36c5d16ebcf978",
"timestamp": "",
"source": "github",
"line_count": 615,
"max_line_length": 192,
"avg_line_length": 43.822764227642274,
"alnum_prop": 0.6342992838855701,
"repo_name": "drsquidop/aws-sdk-java",
"id": "f7bec91f258d1587a4e5fcbcf2fdea399e59d421",
"siz... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% GTSAM Copyright 2010-2013, Georgia Tech Research Corporation,
% Atlanta, Georgia 30332-0415
% All Rights Reserved
% Authors: Frank Dellaert, et al. (see THANKS for the full author list)
%
% See LICENSE for the license information
%
% @brief M... | {
"content_hash": "d8cca5b1d6192902b67bcabca36cd9f4",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 106,
"avg_line_length": 30.017857142857142,
"alnum_prop": 0.6531826293872695,
"repo_name": "devbharat/gtsam",
"id": "9fd2df4631648301c12ca6a41b2f63691bbc375c",
"size": "168... |
namespace policy {
namespace {
// Determines the time, measured from the time of issue, after which the command
// queue will consider this command expired if the command has not been started.
const int kCommandExpirationTimeInMinutes = 10;
} // namespace
DeviceCommandRebootJob::DeviceCommandRebootJob(
chromeo... | {
"content_hash": "9db6b70ced6709e2b3b4e6ed6b72abcf",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 80,
"avg_line_length": 35.644067796610166,
"alnum_prop": 0.7256300523062292,
"repo_name": "danakj/chromium",
"id": "04e3994651e750b7479b608f93e1f9305b76f6ed",
"size": "2746... |
import ListGroup from '../ListGroup.svelte';
import { render, cleanup } from '@testing-library/svelte';
beforeEach(cleanup);
describe('ListGroup', () => {
test('should render correctly', () => {
const { container } = render(ListGroup);
const component = container.querySelector('ul.list-group');
expect(c... | {
"content_hash": "f2e28b43c8fad35397ddde5416b22f6c",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 76,
"avg_line_length": 37.63333333333333,
"alnum_prop": 0.6554472984942427,
"repo_name": "bestguy/sveltestrap",
"id": "b8f2a253380a72b17fb7253055191f4eb52da93c",
"size": "1... |
package com.androidsample.contentprovidersample;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will ex... | {
"content_hash": "1213d0ca95ae7ba021c7f406fe833c38",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 93,
"avg_line_length": 30.076923076923077,
"alnum_prop": 0.7595907928388747,
"repo_name": "kevalpatel2106/android-samples",
"id": "38a444a0ba1b4fdbb91dded4e44e87be4f274e0d",
... |
package org.apache.flink.table.descriptors
import org.apache.flink.api.java.typeutils.TypeExtractor
import org.apache.flink.table.api.Types
import org.apache.flink.table.runtime.utils.CommonTestData.Person
import org.apache.flink.table.utils.TableTestBase
import org.junit.Assert.assertEquals
import org.junit.Test
i... | {
"content_hash": "a7cde7b56c0a9bad8438bba39015dbdb",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 91,
"avg_line_length": 33.88235294117647,
"alnum_prop": 0.6398809523809523,
"repo_name": "mylog00/flink",
"id": "dcc1ab94852953020d06c2c758f433135aa3ab95",
"size": "4837",... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>'PB Crave'</title>
<meta name="published" content="true"/>
<meta name="taxonomy" content="
category:
- work"/>
</head>
<body>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Duis mollis, est non commodo luctus, nisi erat porttitor ... | {
"content_hash": "6f913620011e349a164e48ddfffb77a7",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 314,
"avg_line_length": 32.75,
"alnum_prop": 0.7347328244274809,
"repo_name": "michaelfangman/portfolio-grav",
"id": "4b215ea66fb828462ff5b18efa27ac35acd6f685",
"size": "52... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Diagnostics;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.Intero... | {
"content_hash": "08504b36f732cb0b7ef46a9e7a7e04f2",
"timestamp": "",
"source": "github",
"line_count": 702,
"max_line_length": 184,
"avg_line_length": 53.1011396011396,
"alnum_prop": 0.5061834375083832,
"repo_name": "stephentoub/corefxlab",
"id": "7a02b7375fc5bba5a2d0d8b2d7dfe57b3ba64639",
"size":... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>TaxonomyGroup Class Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></script>
... | {
"content_hash": "a2c462c68016e967f9ee28520e4fec20",
"timestamp": "",
"source": "github",
"line_count": 303,
"max_line_length": 351,
"avg_line_length": 47.198019801980195,
"alnum_prop": 0.47017691070554507,
"repo_name": "makma/cloud-sdk-swift",
"id": "120d25ce3bafd28710dbcb919a06e33f6c0cb84c",
"siz... |
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="security.authenti... | {
"content_hash": "e1dc1f01ecd4e22b877f29cc3ebb6e01",
"timestamp": "",
"source": "github",
"line_count": 199,
"max_line_length": 161,
"avg_line_length": 59.14070351758794,
"alnum_prop": 0.6494179624437081,
"repo_name": "apetitpa/symfony",
"id": "26db528aed55011327487b3821ab86c566abfafd",
"size": "11... |
from twisted.internet import reactor
from twisted.internet.defer import inlineCallbacks, returnValue
from autobahn.wamp.types import CallOptions, RegisterOptions
from autobahn.twisted.util import sleep
from autobahn.twisted.wamp import ApplicationSession
class Component(ApplicationSession):
"""
Application co... | {
"content_hash": "658dafb4bdde333176dd7d46a8002c18",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 89,
"avg_line_length": 25.838709677419356,
"alnum_prop": 0.6716604244694132,
"repo_name": "eugenejen/AutobahnPython",
"id": "777130688d33012ac9e0c483be25a490e6bfb026",
"siz... |
package lore
import "github.com/Masterminds/squirrel"
/*
SquirrelStatementBuilder provides a generic interface for squirrel statement builders. Wraps
SqlBuilderInterface.
*/
type SquirrelStatementBuilder SqlBuilderInterface
/*
newSquirrelStatementBuilder returns a new squirrel.StatementBuilder(Type) instance, with t... | {
"content_hash": "316bf70e5f6ecc812a4b434fd21abb8a",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 100,
"avg_line_length": 27.157894736842106,
"alnum_prop": 0.8352713178294574,
"repo_name": "abrahambotros/lore",
"id": "c7691cc0b08dc5f603471dde24080aa1f303d8bb",
"size": "... |
"""
Filename: test_random.py
Author: Daisuke Oyama
Tests for markov/random.py
"""
import numpy as np
from numpy.testing import (
assert_array_equal, assert_raises, assert_array_almost_equal_nulp
)
from nose.tools import eq_, ok_, raises
from quantecon.markov import (
random_markov_chain, random_stochastic_ma... | {
"content_hash": "50faac0481d8f2f5688ff6e09ca49591",
"timestamp": "",
"source": "github",
"line_count": 144,
"max_line_length": 79,
"avg_line_length": 32.22222222222222,
"alnum_prop": 0.5788793103448275,
"repo_name": "gxxjjj/QuantEcon.py",
"id": "dee4c701371e30a8ddae262047fbae48fc4c03af",
"size": "... |
require 'spec_helper'
describe Gitlab::GithubImport::Stage::ImportBaseDataWorker do
let(:project) { create(:project) }
let(:import_state) { create(:import_state, project: project) }
let(:worker) { described_class.new }
describe '#import' do
it 'imports the base data of a project' do
importer = doubl... | {
"content_hash": "1d9f06dfe242ddeb0375ee3381135604",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 67,
"avg_line_length": 27,
"alnum_prop": 0.6487455197132617,
"repo_name": "stoplightio/gitlabhq",
"id": "0c7fc2a164e7583bb25889b6daaa6733aa90956e",
"size": "868",
"binary... |
namespace Ra {
namespace Core {
namespace Skinning {
/// Skinning data that gets set at startup including the "reference state"
struct RefData {
/// Skeleton
Ra::Core::Animation::Skeleton m_skeleton;
/// Mesh in reference position
Ra::Core::Geometry::TriangleMesh m_referenceMesh;
/// Reference po... | {
"content_hash": "2677bbc1a3bba612d0e8734746df6261",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 74,
"avg_line_length": 27.03076923076923,
"alnum_prop": 0.6852589641434262,
"repo_name": "AGGA-IRIT/Radium-Engine",
"id": "5c093044458e207580e74d9b8eafd3f15b9bd02c",
"size"... |
<?php
declare(strict_types=1);
namespace OpenCFP\Test\Helper;
use Symfony\Component\HttpFoundation;
/**
* @mixin \PHPUnit\Framework\TestCase
*/
trait ResponseHelper
{
final protected function assertResponseIsSuccessful(HttpFoundation\Response $response)
{
$this->assertTrue($response->isSuccessfu... | {
"content_hash": "9a78f599ae0aee970c33c469ec83f02b",
"timestamp": "",
"source": "github",
"line_count": 153,
"max_line_length": 124,
"avg_line_length": 32.58169934640523,
"alnum_prop": 0.6320962888665999,
"repo_name": "mdwheele/opencfp",
"id": "21e98bb997b1b692907fc60458a4e26177f507de",
"size": "52... |
<!DOCTYPE html>
<html lang="en-us">
<head>
<link href="https://gmpg.org/xfn/11" rel="profile">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-Control" content="public" />
<!-- Enable responsiveness on mobile devices -->
<meta name="viewport" content... | {
"content_hash": "cf6beed717f2b728f87f0d06cd11e491",
"timestamp": "",
"source": "github",
"line_count": 190,
"max_line_length": 197,
"avg_line_length": 23.63684210526316,
"alnum_prop": 0.6228011578712982,
"repo_name": "aitorvs/aitorvs.github.io",
"id": "7ee98959e6f03e4ed93135a821f88106264e919f",
"s... |
<ion-view>
<ion-nav-title><mm-format-text watch="true">{{ title }}</mm-format-text></ion-nav-title>
<ion-content delegate-handle="mmSectionScroll" mm-state-class>
<ion-refresher pulling-text="{{ 'mm.core.pulltorefresh' | translate }}" ng-if="sectionLoaded" on-refresh="doRefresh()">
</ion-refresh... | {
"content_hash": "c970ef75953ae6a5190e626ec4104c5c",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 213,
"avg_line_length": 57.5,
"alnum_prop": 0.5855072463768116,
"repo_name": "chester666/moodlemobile",
"id": "2ddbd08d7f591454878e0ac2949494cfd2ac52e9",
"size": "1725",
... |
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
* User Settings
*
* @copyright [PHPFOX_COPYRIGHT]
* @author natio
* @package Module_User
* @version $Id: setting.class.php 4109 2012-04-18 09:45:11Z Miguel_Espinoza $
*/
class User_Component_Controller_Setting extends Phpfox_C... | {
"content_hash": "a76a50b12e4d831a70daed9f8c1715a7",
"timestamp": "",
"source": "github",
"line_count": 185,
"max_line_length": 179,
"avg_line_length": 35.475675675675674,
"alnum_prop": 0.6288282797501142,
"repo_name": "edbiler/BazaarCorner",
"id": "36dd8a8688af2f5255f8fd221c0ed724ab93e884",
"size"... |
package org.apache.rave.portal.model.conversion.impl;
import com.google.common.collect.Lists;
import org.apache.rave.portal.model.MongoDbPageTemplate;
import org.apache.rave.model.PageTemplate;
import org.apache.rave.model.PageTemplateRegion;
import org.apache.rave.model.PageTemplateWidget;
import org.apache.rave.po... | {
"content_hash": "84be784d5dd5ac41a51261e772b08f21",
"timestamp": "",
"source": "github",
"line_count": 136,
"max_line_length": 151,
"avg_line_length": 40.911764705882355,
"alnum_prop": 0.7059669302659957,
"repo_name": "svn2github/rave",
"id": "e609a90c5ff13bccf653630f088f756819f94cc6",
"size": "63... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.