text stringlengths 2 1.04M | meta dict |
|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Citp.IO;
namespace Citp.Packets.FPtc
{
public class FPtcPatch : FPtcHeader
{
public const string PacketType = "Ptch";
#region Setup and Initialisation
public FPtc... | {
"content_hash": "2014c0279024b842affd9d60fa73ede0",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 61,
"avg_line_length": 23.352941176470587,
"alnum_prop": 0.5698992443324937,
"repo_name": "HakanL/ACN",
"id": "981ae214cdfd8efcaddfc13f48259ad91a2deed9",
"size": "1590",
... |
package uk.gov.gchq.gaffer.accumulostore.integration;
import com.google.common.collect.Lists;
import org.junit.jupiter.api.Test;
import uk.gov.gchq.gaffer.accumulostore.AccumuloProperties;
import uk.gov.gchq.gaffer.accumulostore.utils.AccumuloPropertyNames;
import uk.gov.gchq.gaffer.commonutil.StreamUtil;
import uk.... | {
"content_hash": "ec7308ff264818bb6bcd2e5f3ae21056",
"timestamp": "",
"source": "github",
"line_count": 667,
"max_line_length": 151,
"avg_line_length": 46.44827586206897,
"alnum_prop": 0.5681546754462412,
"repo_name": "gchq/Gaffer",
"id": "ad6e94de0e2d8a44b3d56df8e4ffaf6329fb3ac6",
"size": "31584",... |
package org.onosproject.incubator.net.routing;
import org.onosproject.event.AbstractEvent;
import java.util.Objects;
/**
* Describes an event about a route.
*/
public class RouteEvent extends AbstractEvent<RouteEvent.Type, ResolvedRoute> {
/**
* Route event type.
*/
public enum Type {
... | {
"content_hash": "e33716b50c8ee2d140f9cf7e3917d383",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 79,
"avg_line_length": 20.026315789473685,
"alnum_prop": 0.5486202365308804,
"repo_name": "VinodKumarS-Huawei/ietf96yang",
"id": "1889a532d5e999a844822a0efb8271af61404a3c",
... |
/* This file was auto-generated by ensurePackage() in @jupyterlab/buildutils */
@import url('~@jupyterlab/apputils/style/index.css');
@import url('~@jupyterlab/docregistry/style/index.css');
@import url('~@jupyterlab/application/style/index.css');
@import url('~@jupyterlab/imageviewer/style/index.css');
| {
"content_hash": "f7be07d8c18e2ad058d08575f7e583c3",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 79,
"avg_line_length": 43.857142857142854,
"alnum_prop": 0.749185667752443,
"repo_name": "jupyter/jupyterlab",
"id": "7f40d9606cab46ae4d7877a3f685908feead7696",
"size": "567... |
package com.timeyang.jkes.core.elasticsearch.exception;
/**
*
* @author chaokunyang
*/
public class IllegalAnnotatedFieldException extends RuntimeException {
public IllegalAnnotatedFieldException() {
}
public IllegalAnnotatedFieldException(String message) {
super(message);
}
}
| {
"content_hash": "cc391359ab7158c7fcb4f0834e4a70cd",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 70,
"avg_line_length": 21.928571428571427,
"alnum_prop": 0.7361563517915309,
"repo_name": "chaokunyang/jkes",
"id": "72b726cc10c32ba158158cc5cce30079c624e34a",
"size": "307... |
import numpy as np
from sdafile.character_inserter import (
ArrayInserter, BytesInserter, StringInserter,
)
from sdafile.testing import InserterTestCase
class TestCharacterInserter(InserterTestCase):
def setUp(self):
InserterTestCase.setUp(self)
self.grp_attrs = dict(
RecordType=... | {
"content_hash": "e078c35f8dc730936f6cf639a96f9c14",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 64,
"avg_line_length": 26.424778761061948,
"alnum_prop": 0.5154052243804421,
"repo_name": "enthought/sandia-data-archive",
"id": "04dd713b2f9de1f962aea8c94db031117697760e",
... |
class ApplicationController < ActionController::Base
# Forgery Protection
protect_from_forgery with: :exception
# Filters
before_action :authenticate_user!
after_action :update_last_seen_at
#before_action :http_basic_auth
# Actions
# Methods
protected
def find_lab_from_cookies
if cookies.... | {
"content_hash": "0433e1bf5d0674180aae20f1c19f194d",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 92,
"avg_line_length": 22.660377358490567,
"alnum_prop": 0.6240632805995004,
"repo_name": "cetic/sitcom",
"id": "cb278174e6d9863065b31c28ff5ac53dead719ed",
"size": "2402",... |
package org.testcontainers.junit.jupiter;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ConditionEvaluationResult;
import org.junit.jupiter.api.extension.ExtensionContext;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;... | {
"content_hash": "2134c989ab7f51d48cd8167ec18b3785",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 87,
"avg_line_length": 33.97222222222222,
"alnum_prop": 0.7530662305805397,
"repo_name": "outofcoffee/testcontainers-java",
"id": "f3aea9bb8504c8033c466a7fbab0d90b05d83a82",
... |
var paper = function(self, undefined) {
self = self || require('./node/self.js');
var window = self.window,
document = self.document;
var Base = new function() {
var hidden = /^(statics|enumerable|beans|preserve)$/,
array = [],
slice = array.slice,
create = Object.create,
describe = Object.getOwnPropertyD... | {
"content_hash": "482a4dec3b04baf418ab87222c236038",
"timestamp": "",
"source": "github",
"line_count": 15653,
"max_line_length": 229,
"avg_line_length": 25.09506164952405,
"alnum_prop": 0.5852148477774411,
"repo_name": "cdnjs/cdnjs",
"id": "130f5f4ec8e9235aad2a3dfd61ec38aedffc5a41",
"size": "39357... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* isCollidingBottomRight()
* ------------------------
* Used to determine whether the right-bottom side of obj1 collides with the
* left side of obj2. The objects must have an x1, y1, x2, and y2.
*
* @param {CollisionObject} obj1 Thi... | {
"content_hash": "3bc8b6c8245ec2880a9223ab3476565d",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 81,
"avg_line_length": 43.78947368421053,
"alnum_prop": 0.6418269230769231,
"repo_name": "mission-bay-games/collision.js",
"id": "260cd98508c469549d828daf1708d0b52a153f42",
... |
./configure --debug --no-regex --no-pcre2
make all
pushd fuzzer/
make
cp Fuzz_http $OUT/Fuzz_http
cp Fuzz_json $OUT/Fuzz_json
popd
pushd $SRC/oss-fuzz-bloat/nginx-unit/
cp Fuzz_http_seed_corpus.zip $OUT/Fuzz_http_seed_corpus.zip
cp Fuzz_json_seed_corpus.zip $OUT/Fuzz_json_seed_corpus.zip
popd
| {
"content_hash": "0a396ad11f161f5754c0ff51ffd82575",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 59,
"avg_line_length": 22.76923076923077,
"alnum_prop": 0.7533783783783784,
"repo_name": "google/oss-fuzz",
"id": "408bca4a25ff2475c871aeda2afd6355540c018e",
"size": "970",... |
<?php
/**
* @see Zend_Service_DeveloperGarden_Request_RequestAbstract
*/
// require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.php';
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.... | {
"content_hash": "91cc18d42a6d31fe3790be5737283b1a",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 109,
"avg_line_length": 25.64788732394366,
"alnum_prop": 0.6507413509060955,
"repo_name": "calonso-conabio/intranet",
"id": "e3640430229cd31055c3865041b13f66e9b55dde",
"siz... |
package com.orionplatform.math.set;
import java.util.Arrays;
import java.util.List;
import com.orionplatform.core.exception.Assert;
import com.orionplatform.data.data_structures.set.OrionSet;
import com.orionplatform.math.MathRule;
import com.orionplatform.math.number.ANumber;
public class SetRules extends MathRule
{... | {
"content_hash": "99b0cd555e211bd365b7900592b0983a",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 81,
"avg_line_length": 27.342105263157894,
"alnum_prop": 0.651106833493744,
"repo_name": "orioncode/orionplatform",
"id": "25b0312f795e5b164a831190b21d6249231864d1",
"size"... |
#include "vix_all.h"
#include <maya/MFnSet.h>
#include <maya/MFnTransform.h>
#include <maya/MPlug.h>
#include <maya/MPlugArray.h>
#include <maya/MItDependencyGraph.h>
#include <maya/MFnCompoundAttribute.h>
/*!
* @fn SharedObj* meConvProj::Make()
*
* A Maya projection node applies a 3D projection onto a texture. It ... | {
"content_hash": "d9493742b7174dd2d6e057e5d24bff27",
"timestamp": "",
"source": "github",
"line_count": 532,
"max_line_length": 101,
"avg_line_length": 26.360902255639097,
"alnum_prop": 0.6248573873359954,
"repo_name": "Caprica666/vixen",
"id": "75e763f1eb7e2de6c3fdfa6fc3cc69dafcf05ed6",
"size": "1... |
var expect = require('chai').expect;
var repattern = require('../lib');
describe("repattern", function() {
beforeEach(function() {
if (require.cache['../lib'])
delete require.cache['../lib'];
repattern = require('../lib');
});
describe("#use", function() {
it("should return the repattern function", fun... | {
"content_hash": "5d0de45644263b907184df1761db2817",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 59,
"avg_line_length": 24.115384615384617,
"alnum_prop": 0.5645933014354066,
"repo_name": "xianwill/node-repattern",
"id": "f2bc3c6ec63266d4e1d1b67de83be4c333b0dc21",
"size... |
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Data;
using System.Linq;
using System.Security.Principal;
using System.Text.RegularExpressions;
using SimpleReport.Model.Constants;
using SimpleReport.Model.DbExecutor;
using SimpleReport.Model.Helpers;
using SimpleRepor... | {
"content_hash": "10aa81943f3621c513b3cf9d1be5c77c",
"timestamp": "",
"source": "github",
"line_count": 204,
"max_line_length": 217,
"avg_line_length": 36.86274509803921,
"alnum_prop": 0.6121010638297872,
"repo_name": "tronelius/simplereport",
"id": "caf1b9dfb01ea35c120166ced928e79de0c861b4",
"size... |
package org.elasticsearch.recovery;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthRequestBuilder;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.common.Priority;
import org.elasticsearch.commo... | {
"content_hash": "f7902478ab595a8f28291d938929bcb7",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 194,
"avg_line_length": 46.28440366972477,
"alnum_prop": 0.6909811694747274,
"repo_name": "kagel/elasticsearch",
"id": "94121d71a639e75d8f5134b22037b940337a1e6d",
"size": ... |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Zebra_Cookie examples</title>
<link rel="stylesheet" href="public/css/reset.css" type="text/css">
<link rel="stylesheet" href="public/css/style.css" type="text/css">
<link rel="stylesheet" href="libraries/syntax... | {
"content_hash": "ca9d3e57000e2f3a0a4b2c90f57cf2c6",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 118,
"avg_line_length": 35.345238095238095,
"alnum_prop": 0.5880767935331761,
"repo_name": "hehongwei44/Project-FE",
"id": "84c1fbd70003f89aafb24e6d18f23e91805755da",
"size... |
using System;
namespace UniqueList
{
///Signals if one tried to get value from the null reference while working with List.
[Serializable]
public class ListNullException : Exception
{
public ListNullException() { }
public ListNullException(string message) : base(message) { }
publ... | {
"content_hash": "9c951ea0ec46700c8b3cc9a11d15676f",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 89,
"avg_line_length": 34.43076923076923,
"alnum_prop": 0.6501340482573726,
"repo_name": "alexander-bzikadze/University_tasks",
"id": "c90fced34b8f09ea4e2e3334ab80cd18263e1cf... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/datastore/v1/query.proto
package com.google.datastore.v1;
/**
* <pre>
* A holder for any type of filter.
* </pre>
*
* Protobuf type {@code google.datastore.v1.Filter}
*/
public final class Filter extends
com.google.protobuf.Gener... | {
"content_hash": "40da28f127a50c49f72be24ee2f27285",
"timestamp": "",
"source": "github",
"line_count": 907,
"max_line_length": 172,
"avg_line_length": 33.291069459757445,
"alnum_prop": 0.6461665838715019,
"repo_name": "speedycontrol/googleapis",
"id": "2d9a3a97724367d358f424193f135de7008e8e93",
"s... |
Scenario: you created a feature branch, rebased history nicely, and then wanted to deploy a debug version full of prints to stdout; afterwards, you want to remove that last commit so that there's no rubbish in the code and in stdout anymore. And you don't really care about git history: removing one commit from it is ok... | {
"content_hash": "81bf6958358faa8c9a1076eeea46f16a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 383,
"avg_line_length": 43.84615384615385,
"alnum_prop": 0.7684210526315789,
"repo_name": "taxigy/til",
"id": "8f243b74bafa6239014b79ae7c562a205813fea6",
"size": "621",
"... |
from django import forms
from django.http import HttpResponse
from django.shortcuts import redirect
from django.template.response import TemplateResponse
from django.utils.translation import gettext_lazy
from wagtail.admin import messages
from wagtail.admin.auth import user_passes_test
from wagtail.admin.views.generic... | {
"content_hash": "1c09542e579b37ff7413205a19119953",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 72,
"avg_line_length": 31.566265060240966,
"alnum_prop": 0.7179389312977099,
"repo_name": "zerolab/wagtail",
"id": "cca5129b86d6e7fe4eabdd36dfc2b96022d6e553",
"size": "2620... |
coming soon...
## Example:
python src/main.py -i example/example.vcf -o example/example.tab
| {
"content_hash": "2babd6a74509eff812bda974426e0c0e",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 64,
"avg_line_length": 18.8,
"alnum_prop": 0.723404255319149,
"repo_name": "khalidm/vcf2tab",
"id": "f078269eca29cae57925b08457e4ee04392fc34d",
"size": "117",
"binary": fa... |
// Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt
using System;
using NUnit.Framework.Interfaces;
using NUnit.Framework.Internal;
namespace NUnit.TestUtilities
{
/// <summary>
/// Summary description for ResultSummary.
/// </summary>
public class ResultSummary... | {
"content_hash": "b324fd4e0a25c7a995f324b59e74ff7f",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 91,
"avg_line_length": 29.59349593495935,
"alnum_prop": 0.514010989010989,
"repo_name": "nunit/nunit",
"id": "deb39dffa7fcd6eb1ee39744d5f811f21b53a903",
"size": "3642",
... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "e84aec19d778915a25bb9d0a1f4c64e8",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "7c8d3ba13a520239383f0e74d4a40b96b9601419",
"size": "19... |
'use strict';
var Hapi = require('hapi');
var config = require('./config');
var server = new Hapi.Server();
var schoolService = require('./index');
server.connection({
port:config.SERVER_PORT,
routes:{cors:{credentials:true}}
});
server.register([
{
register: schoolService,
options: {}
}
], function(... | {
"content_hash": "8a806bce039dedbb073933830ae6f74a",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 55,
"avg_line_length": 18.026315789473685,
"alnum_prop": 0.6467153284671533,
"repo_name": "zrrrzzt/tfk-api-schools",
"id": "78b86ba7b54429db86a57a07a60f47196f9c2c89",
"size... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "36aabe9756d885911557518d304017d1",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "c2c5b52bcf13059339f3a316f4ee431e35b4fd6f",
"size": "161... |
package typeinfo;//: typeinfo/Position.java
class Position {
private String title;
private Person person;
public Position(String jobTitle, Person employee) {
title = jobTitle;
person = employee;
if(person == null)
person = Person.NULL;
}
public Position(String jobTitle) {
title = jobTit... | {
"content_hash": "13ced819b24474761b4dfb591c678c95",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 53,
"avg_line_length": 25.06896551724138,
"alnum_prop": 0.6464924346629987,
"repo_name": "mayonghui2112/helloWorld",
"id": "fd3b1ed8a2c17bb15672a943d7a80b535d80bf9a",
"size... |
namespace RogueMetalicana.Constants.Shop
{
public class ShopConstants
{
public const char Symbol = '$';
public static string lastBought { get; set; }
public static bool lastSuccess { get; set; }
public static void PrintLastShopAction()
{
if (lastBought==... | {
"content_hash": "2ba8f2ebc070a7a1f381c166323a15a0",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 159,
"avg_line_length": 24.612903225806452,
"alnum_prop": 0.546526867627785,
"repo_name": "SoftMetalicana/RogueMetalicana",
"id": "4275231ddb80ae26b1b9f041c80102b77fbe5d83",
... |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | {
"content_hash": "e5e9452df7f0bc60372cc10952c3fe14",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 182,
"avg_line_length": 39.785714285714285,
"alnum_prop": 0.7662477558348294,
"repo_name": "googleapis/google-api-java-client-services",
"id": "2d607b024864d13eeb860cfea72451... |
<!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/html; charset=utf-8" />
<title>Epilogue — CasperJS documentation</title>
... | {
"content_hash": "234bf3bb12a06048c02e5f8810857bec",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 195,
"avg_line_length": 62.98192771084337,
"alnum_prop": 0.6843615494978479,
"repo_name": "claus022015/USDA_community",
"id": "91b38c2981bf6d33049844b740bc5b181021ee8e",
"... |
University
==========
Repository for University work and Projects
| {
"content_hash": "d01da016f10244f0b859a35aa6c6f5e5",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 43,
"avg_line_length": 16.75,
"alnum_prop": 0.7164179104477612,
"repo_name": "PrimalSpark/University",
"id": "5eabc678272ca3e6e85dde1e27fdf7c452410418",
"size": "67",
"bin... |
<link rel="import" href="/_polymer/bower_components/polymer/polymer.html">
<link rel="import" href="/_polymer/bower_components/google-apis/google-maps-api.html">
<dom-module id="sky-google-maps-places-autocomplete">
<template>
<style>
:host {
position: relative;
display: block;
... | {
"content_hash": "65e844ac7e31a5add240bf5d69ac8b32",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 86,
"avg_line_length": 24.912280701754387,
"alnum_prop": 0.5669014084507042,
"repo_name": "evandor/skysail",
"id": "2fe2fcdd9d10be9ba50e939774101b02a2b0a9a5",
"size": "1420... |
/* https://leetcode.com/problems/count-complete-tree-nodes/description/
Given a complete binary tree, count the number of nodes.
Note:
Definition of a complete binary tree from Wikipedia:
In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far ... | {
"content_hash": "2b3f05c267f6589797817a761070eeab",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 213,
"avg_line_length": 20.142857142857142,
"alnum_prop": 0.6099290780141844,
"repo_name": "TTWShell/algorithms",
"id": "86aaa3485bc711585d447d8889c64c08e8cbf92a",
"size": ... |
#import "TiBase.h"
#import "TiUIView.h"
#import "TiColor.h"
#import "TiRect.h"
#import "TiUtils.h"
#import "ImageLoader.h"
#ifdef USE_TI_UI2DMATRIX
#import "Ti2DMatrix.h"
#endif
#if defined(USE_TI_UIIOS3DMATRIX) || defined(USE_TI_UI3DMATRIX)
#import "Ti3DMatrix.h"
#endif
#import "TiViewProxy.h"
#import "TiApp.h"
#i... | {
"content_hash": "9c64dc2eb956b5e81e789b6fe22cad4b",
"timestamp": "",
"source": "github",
"line_count": 1468,
"max_line_length": 168,
"avg_line_length": 30.469346049046322,
"alnum_prop": 0.7180576359856021,
"repo_name": "gtlaserbeast/imageCompression",
"id": "fb34676a3e2483253c825a8deebaa281b0366289"... |
jest.mock('../../../../services/note.service');
const noteService = require('../../../../services/note.service');
const deleteNoteProcessResolver = require('../deleteNote.process.resolver');
it('should call createNote with provided text and ' +
'return created note', () => {
noteService.deleteNoteById.mockReturn... | {
"content_hash": "418e7d464a32eb3bfa4621431ab1d97e",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 76,
"avg_line_length": 34.13333333333333,
"alnum_prop": 0.705078125,
"repo_name": "alexandarnikita/wen",
"id": "55542330e49a1ac2e7edc945867bfbb0da68c64e",
"size": "512",
... |
package org.antlr.tool;
import org.antlr.runtime.Token;
import org.stringtemplate.v4.ST;
/** A problem with the symbols and/or meaning of a grammar such as rule
* redefinition.
*/
public class GrammarSemanticsMessage extends Message {
public Grammar g;
/** Most of the time, we'll have a token such as an undefin... | {
"content_hash": "5387f320f5abe2eb25bccb3d0efbedad",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 71,
"avg_line_length": 21.14516129032258,
"alnum_prop": 0.6552250190694127,
"repo_name": "stumoodie/VisualLanguageToolkit",
"id": "1027182a22629002d2c432ab764f066b9e17c632",
... |
namespace Demo.ADTProcessing.Worker
{
class Program
{
static void Main(string[] args)
{
var worker = new Worker();
worker.Run();
}
}
}
| {
"content_hash": "bba05bcaf22182332642c73137a72637",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 39,
"avg_line_length": 17.818181818181817,
"alnum_prop": 0.4846938775510204,
"repo_name": "toddmeinershagen/Demo.ADTProcessing",
"id": "24228a2d36627cbf2cb1c73668450050bf2f6d... |
<?php
// Controller class generated automatically by MDA process
namespace MyCompany\MyProject\AppBundle\Controller;
// Start of user code imports
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use JMS\SecurityExtraBundle\Annotation\Secure;
use Symfony\Component\Security\Core\Exception\AccessDeniedE... | {
"content_hash": "658e2ffdad25721bf22bfb0194822dc5",
"timestamp": "",
"source": "github",
"line_count": 222,
"max_line_length": 102,
"avg_line_length": 21.86036036036036,
"alnum_prop": 0.5724294250978776,
"repo_name": "ithone/pam",
"id": "4a3c8b20678a4ef8dd42b4506042c86525929d34",
"size": "4857",
... |
var Dispatcher = require('flux').Dispatcher;
module.exports = new Dispatcher();
| {
"content_hash": "efdd8ebfe6db45bf1408142acdb42532",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 44,
"avg_line_length": 20.5,
"alnum_prop": 0.7317073170731707,
"repo_name": "lumc-nested/nested-editor",
"id": "c2daad79e5070a427043e73cdd7ac8f69d14c9e2",
"size": "82",
"b... |
/*
* The Plaid API
*
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* API version: 2020-09-14_1.205.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package plaid
import (
"encoding/json"
"fmt"
)
// FDXPartyRegistry The registry cont... | {
"content_hash": "3e335b24e506bb3bebaedb625518bc9e",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 95,
"avg_line_length": 21.81081081081081,
"alnum_prop": 0.7422552664188352,
"repo_name": "plaid/plaid-go",
"id": "ee103c6a7032023c5bdf8aeb36f005ae09fd0b37",
"size": "2423"... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML style="overflow:auto;">
<HEAD>
<meta name="generator" content="JDiff v1.1.0">
<!-- Generated by the JDiff Javadoc doclet -->
<!-- (http://www.jdiff.org) -->
<meta name="description" content="JDiff is a Javadoc doclet which ... | {
"content_hash": "9e51cedfb9e413e77f06989510c00b0e",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 269,
"avg_line_length": 39.92622950819672,
"alnum_prop": 0.6403202627797167,
"repo_name": "AzureZhao/android-developer-cn",
"id": "ee15d0791cb72ce012bef2828de6016d79902a93",... |
/* global define, module, require, exports */
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery',
'd3',
'nf.CanvasUtils',
'nf.Common',
'nf.Dialog',
'nf.Client',
'nf.... | {
"content_hash": "afcb504f9e112e2c176beda0b493b63d",
"timestamp": "",
"source": "github",
"line_count": 1744,
"max_line_length": 622,
"avg_line_length": 43.446100917431195,
"alnum_prop": 0.4729312392767586,
"repo_name": "PuspenduBanerjee/nifi",
"id": "7050df0aa374e4b8baff85b12edf000827f60419",
"siz... |
/** PURE_IMPORTS_START .._Subscriber PURE_IMPORTS_END */
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b)
if (b.hasOwnProperty(p))
d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype,... | {
"content_hash": "060b713ff622fdde5318829a1b970691",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 127,
"avg_line_length": 38.94949494949495,
"alnum_prop": 0.64548755186722,
"repo_name": "Jeck99/At-T",
"id": "e25f388432e19150c9bb91f146c80e27c4b31e56",
"size": "3856",
"... |
NDock [](https://travis-ci.org/kerryjiang/NDock)
=====
**NDock** is a server application container, which can be used for your back end services' hosting and management.
**Features**:
* Automatic service hosting
* Multiple application isolatio... | {
"content_hash": "b0b7dd03d4ace9a12de8b6a26d8a4a2f",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 122,
"avg_line_length": 31.5,
"alnum_prop": 0.753968253968254,
"repo_name": "huoxudong125/NDock",
"id": "8c382ef920b532b3ebc62bd36d1950db911d32f6",
"size": "378",
"binary... |
package org.apache.flink.table.planner.plan.optimize
import org.apache.flink.annotation.Experimental
import org.apache.flink.configuration.{ConfigOption, ReadableConfig}
import org.apache.flink.configuration.ConfigOptions.key
import org.apache.flink.table.planner.plan.`trait`.MiniBatchInterval
import org.apache.flink... | {
"content_hash": "4937b2b8a4f667c93f3b9d5ca153a76a",
"timestamp": "",
"source": "github",
"line_count": 411,
"max_line_length": 105,
"avg_line_length": 39.97323600973236,
"alnum_prop": 0.7134944305800718,
"repo_name": "godfreyhe/flink",
"id": "7cabc65d150bb3d6c9b67499e421f54b6927c4cb",
"size": "172... |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>
<script src="/script/list.min.js"></script>
<script src="/script/script.js"></script>
<!-- end scripts -->
{% include system/ga.html %}
</body>
</html>
| {
"content_hash": "15f33c5664a29e35789fef84c4fded3a",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 78,
"avg_line_length": 33,
"alnum_prop": 0.6623376623376623,
"repo_name": "studiomohawk/Seven",
"id": "ab4903cfeeebc9b232441d2061b8d49661f21194",
"size": "231",
"binary": ... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Sync\V1\Service;
use Twilio\Deserialize;
use Twilio\Exceptions\TwilioException;
use Twilio\InstanceResource;
use Twilio\Options;
use Twilio\Values;
use Twilio\Version;
/**
* PLEA... | {
"content_hash": "a75cfd12d7af5d283edf973eb03d7e47",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 106,
"avg_line_length": 31.301204819277107,
"alnum_prop": 0.5912240184757506,
"repo_name": "besongsamuel/eapp",
"id": "b8ab536defa28037ffdc3734f934345501f21685",
"size": "... |
<Record>
<Term>Coffin-Siris Syndrome</Term>
<SemanticType>Disease or Syndrome</SemanticType>
<ParentTerm>Syndrome</ParentTerm>
<ClassificationPath>Findings_and_Disorders_Kind/Disease, Disorder or Finding/Disease or Disorder/Syndrome/Coffin-Siris Syndrome</ClassificationPath>
<BroaderTerm>Syndrome</BroaderTerm>
<B... | {
"content_hash": "93c035a4903a1ccc272189d9d2cf1b93",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 148,
"avg_line_length": 47.23076923076923,
"alnum_prop": 0.8061889250814332,
"repo_name": "detnavillus/modular-informatic-designs",
"id": "45883a7ccf3765f7b218aa99e943419bbb7... |
namespace exegesis {
namespace x86 {
// An implementation of a parser for the binary encoding of x86-64 instructions.
// Note that this class does not perform full disassembly, it only parses the
// instruction data to a structured form that is easy to manage and inspect.
//
// Note that the parser is not thread safe ... | {
"content_hash": "3bbd752025a554e20076786ab926abc1",
"timestamp": "",
"source": "github",
"line_count": 155,
"max_line_length": 80,
"avg_line_length": 52.87741935483871,
"alnum_prop": 0.7491459248413861,
"repo_name": "google/EXEgesis",
"id": "3b9f7f5cf3b77fd1cc9b345a9e5f9fd72adb7116",
"size": "9943... |
package com.navercorp.pinpoint.rpc.client;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Taejin Koo
*/
public class ConnectFutur... | {
"content_hash": "94d1254b564ea3d9d5ee207dcb5d0d11",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 176,
"avg_line_length": 26.49230769230769,
"alnum_prop": 0.6085946573751452,
"repo_name": "suraj-raturi/pinpoint",
"id": "0105ded3cbc23423b2922f8fa94cd5213bbe7d6c",
"size":... |
import * as vscode from 'vscode';
import { ElixirSenseClient } from './elixirSenseClient';
export function checkTokenCancellation(token: vscode.CancellationToken, result: any) {
if (token.isCancellationRequested) {
throw new Error('The request was cancelled');
}
return result;
}
export function checkElixirS... | {
"content_hash": "e6396efcea90c5cadf3ca6f47f912821",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 89,
"avg_line_length": 31.0625,
"alnum_prop": 0.7625754527162978,
"repo_name": "fr1zle/vscode-elixir",
"id": "907923d00e1dc2efb0b1dfc15760e35dae62950c",
"size": "497",
"b... |
<?php
/**
* \ElggFileCache
* Store cached data in a file store.
*
* @package Elgg.Core
* @subpackage Caches
*/
class ElggFileCache extends \ElggCache {
/**
* Set the Elgg cache.
*
* @param string $cache_path The cache path.
* @param int $max_age Maximum age in seconds, 0 if no limit.
* @param ... | {
"content_hash": "d3ab2a392500fee1da526cd5d86eb806",
"timestamp": "",
"source": "github",
"line_count": 230,
"max_line_length": 107,
"avg_line_length": 20.308695652173913,
"alnum_prop": 0.590237636480411,
"repo_name": "miniguez/novadores",
"id": "3c6eb43a7e0b9c87dc2a4b8041ae63e158f2d93d",
"size": "... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
... | {
"content_hash": "96e77c6cfecbb3461222114952b0dbfb",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 73,
"avg_line_length": 36.51923076923077,
"alnum_prop": 0.6076882569773565,
"repo_name": "ericyl/EricylUtils",
"id": "11e9826b8f1e01e1fd9c395e8e843109959bf4a2",
"size": "18... |
<?php
namespace Fuel\Core;
class Cache_Storage_File extends \Cache_Storage_Driver
{
/**
* @const string Tag used for opening & closing cache properties
*/
const PROPS_TAG = 'Fuel_Cache_Properties';
/**
* @var string File caching basepath
*/
protected static $path = '';
/**
* @var array driv... | {
"content_hash": "f93c6fda68cc3d3d9f3a4fad9620ffce",
"timestamp": "",
"source": "github",
"line_count": 324,
"max_line_length": 105,
"avg_line_length": 20.700617283950617,
"alnum_prop": 0.585656776502162,
"repo_name": "seem-sky/FrameworkBenchmarks",
"id": "f7f11a372404e9f5cf1c47c8342e0441e8ed22a3",
... |
#include "webrtc/p2p/base/basicpacketsocketfactory.h"
#include "webrtc/p2p/base/asyncstuntcpsocket.h"
#include "webrtc/p2p/base/stun.h"
#include "webrtc/base/asynctcpsocket.h"
#include "webrtc/base/asyncudpsocket.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/nethelpers.h"
#include "webrtc/base/physicalso... | {
"content_hash": "f99ae59536748e67ef6679ce8429b21f",
"timestamp": "",
"source": "github",
"line_count": 201,
"max_line_length": 79,
"avg_line_length": 30.383084577114428,
"alnum_prop": 0.6522023906991976,
"repo_name": "aleonliao/webrtc-trunk",
"id": "697518da9d0508cfcec888306b133514307726c7",
"size... |
int main(int argc, char *argv[]) {
const auto command_line_args = clblast::RetrieveCommandLineArguments(argc, argv);
switch(clblast::GetPrecision(command_line_args, clblast::Precision::kSingle)) {
case clblast::Precision::kHalf:
clblast::RunClient<clblast::TestXgemmBatched<clblast::half>, clblast::half, c... | {
"content_hash": "96f24385342f5dbad5f586aca62bffb7",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 125,
"avg_line_length": 59.888888888888886,
"alnum_prop": 0.6614100185528757,
"repo_name": "dividiti/CLBlast",
"id": "d55a87493c410f00dc820b75bd95f790aa8c743b",
"size": "17... |
<!--
Copyright (c) 2008 lib4j
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, distrib... | {
"content_hash": "47edd406c815a95e10c160745eadebe2",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 120,
"avg_line_length": 36.44285714285714,
"alnum_prop": 0.6860054880439044,
"repo_name": "SevaSafris/java",
"id": "31972e4dcae42332046c1d5c0abc888042c1a8d1",
"size": "2551... |
package org.zstack.sdk;
public class DeleteImageResult {
}
| {
"content_hash": "e1481fc86b053766d0fef08ac1580437",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 32,
"avg_line_length": 9,
"alnum_prop": 0.746031746031746,
"repo_name": "camilesing/zstack",
"id": "6c290f09351c92f14107bce78c7ffd950a592349",
"size": "63",
"binary": fals... |
<!DOCTYPE html>
<html>
<head>
<script src="../../../js-test-resources/js-test.js"></script>
<script>
function runTest() {
description('Tests that loading a same-origin frame with a URL that contains an anchor fragment does scroll this frame.');
description('This tests that the framesniffing defenses... | {
"content_hash": "17548b32d81de4396116c5b655cfc158",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 157,
"avg_line_length": 39.041666666666664,
"alnum_prop": 0.6734258271077909,
"repo_name": "chromium/chromium",
"id": "ed2a49c0e661804a4dd8e506c5cd6de95a23a4af",
"size": "9... |
var setColor = require('ansi-color').set;
var util = require('util');
var PassThrough = require('stream').PassThrough;
var Console = require('console').Console;
function makePassThrough (strm) {
var passthrough = new PassThrough();
passthrough.pipe(strm);
return passthrough;
}
function DavLog (options) {... | {
"content_hash": "43c80f91485d92f82ae1f1d670176552",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 86,
"avg_line_length": 26.451612903225808,
"alnum_prop": 0.6152439024390244,
"repo_name": "davglass/davlog",
"id": "6ebdf93c522969b9014ea286b80fcfc880408c12",
"size": "344... |
package resource
import (
"bytes"
"errors"
"io"
"io/ioutil"
"net/http"
"reflect"
"strings"
"testing"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/testapi"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kube... | {
"content_hash": "b08c4c6b50e4eb9039a2496bdb6c46c1",
"timestamp": "",
"source": "github",
"line_count": 469,
"max_line_length": 146,
"avg_line_length": 25.571428571428573,
"alnum_prop": 0.606937380138414,
"repo_name": "sdodson/origin",
"id": "a56b31b8774313b9e8c4864b0435f9aef775f0e5",
"size": "1257... |
package com.zinibu.employee;
import java.util.*;
public class Employee {
public static final int X = 10;
public Employee(String n, double s, int year, int month, int day) {
name = n;
salary = s;
GregorianCalendar calendar = new GregorianCalendar(year, month - 1, day);
System.... | {
"content_hash": "773c8b7cd8ef650c2c7a7689728b9c2d",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 161,
"avg_line_length": 23.68354430379747,
"alnum_prop": 0.5938001068947087,
"repo_name": "alexisbellido/Java-and-Eclipse",
"id": "dfae97fa1aed6d6c8ad4a6c66a4b804dec4da26f",
... |
layout: event
title: "McCabe, Halsted, WTFPS – Software Metriken zum Mitnehmen"
date: 2014-06-04 19:15:00
tags: events
speakers:
- tgetrost
location: hs-karlsruhe-m202
---
McCabe, Halsted, Cyclomatic Complexity, WTFPS? Nie gehört? Schon mal gehört, aber was ist das eigentlich? Was sagen mir die Werte in meinem Cod... | {
"content_hash": "fd8da537ede79839eafe44e7d4f4b447",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 342,
"avg_line_length": 73.28571428571429,
"alnum_prop": 0.8167641325536062,
"repo_name": "fhopf/jugka-site",
"id": "5f8b29713ae471b91be999e279b7f7131ea8f6fc",
"size": "104... |
package org.uberfire.java.nio.fs.jgit.util.commands;
public class PathUtil {
public static String normalize(final String path) {
if (path.equals("/")) {
return "";
}
final boolean startsWith = path.startsWith("/");
final boolean endsWith = path.endsWith("/");
... | {
"content_hash": "97e6d07a0503b8e9582bc11d5d868e6f",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 56,
"avg_line_length": 24.321428571428573,
"alnum_prop": 0.47577092511013214,
"repo_name": "karreiro/uberfire",
"id": "27233e5369e0dd2181967ebd1bf5c8f0a286245c",
"size": "1... |
package 练习26
object Runner extends App {
val item01 = Item("Item01")
val item02 = Item("Item02")
val item03 = Item("Item03")
val item04 = Item("Item04")
val item05 = Item("Item05")
val item06 = Item("Item06")
val item07 = Item("Item07")
case class Number2P1(tail1: Number2, override val head: Item) ex... | {
"content_hash": "9124eba4260c1ab6bbfc07dd25ad38c1",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 132,
"avg_line_length": 29.851063829787233,
"alnum_prop": 0.6749821810406272,
"repo_name": "djx314/ubw",
"id": "003a29d00eacc75199e50d5cf935eae8384e4b92",
"size": "1407",
... |
namespace {
const char* const kDidChangeView = "DidChangeView";
const char* const kHandleInputEvent = "DidHandleInputEvent";
const char* const kDidChangeFocus = "DidChangeFocus";
const char* const kHaveFocus = "HaveFocus";
const char* const kDontHaveFocus = "DontHaveFocus";
// Convert a given modifier to a descriptive... | {
"content_hash": "60e0b532dcbe51df9a38dc2d6071db8b",
"timestamp": "",
"source": "github",
"line_count": 265,
"max_line_length": 80,
"avg_line_length": 36.74339622641509,
"alnum_prop": 0.6307897709766869,
"repo_name": "leighpauls/k2cro4",
"id": "a84822bab9c7ad289b55a482ae3d80d5e93b561e",
"size": "10... |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | {
"content_hash": "29e15c343e951b356d17a0400a9cd58d",
"timestamp": "",
"source": "github",
"line_count": 607,
"max_line_length": 127,
"avg_line_length": 43.69686985172982,
"alnum_prop": 0.5631503543960187,
"repo_name": "dantonets/Pingzee-ESP32",
"id": "b52dabbdaca364b03ac3dcb4c691e7dabdf68de2",
"siz... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>training</groupId>
<artifactId>hadoop-exercises</artifactId>
<ver... | {
"content_hash": "195531a1facf85dc20e43a3e4355784d",
"timestamp": "",
"source": "github",
"line_count": 203,
"max_line_length": 104,
"avg_line_length": 28.29064039408867,
"alnum_prop": 0.6343374542921818,
"repo_name": "gliptak/hadoop-course",
"id": "fc1d7cdce725944675e47710935c2415034284f7",
"size"... |
import React from 'react';
import { withRouter, Link } from "react-router-dom";
import { Button, MenuItem, Nav, Navbar, NavItem, NavDropdown, Jumbotron } from 'react-bootstrap';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'material-ui/Table';
cl... | {
"content_hash": "30381af2504f57bd7be9d832b7b607f5",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 113,
"avg_line_length": 36.60747663551402,
"alnum_prop": 0.41639009446004593,
"repo_name": "pedrobertao/CorridaGeneciadorBertao",
"id": "cc66df59f28fc5dcccb8e8c5a6eb8b3d4604... |
<?xml version="1.0" encoding="utf-8"?>
<geo:GeodesyML gml:id="MAC100AUS" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:geo="urn:xml-gov-au:icsm:egeodesy:0.5" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<geo:siteL... | {
"content_hash": "d1bae0ec2eff9804da1c4c378921983c",
"timestamp": "",
"source": "github",
"line_count": 479,
"max_line_length": 268,
"avg_line_length": 69.95824634655533,
"alnum_prop": 0.6018203521336914,
"repo_name": "GeoscienceAustralia/Geodesy-Web-Services",
"id": "74f7fcb92f2cfbac07e511f4c4f67a70... |
var passport = require('passport'),
LocalStrategy = require('passport-local').Strategy,
User = require('mongoose').model('User');
module.exports = function() {
passport.use(new LocalStrategy(function(username, password, done) {
User.findOne({
username: username,
function... | {
"content_hash": "fa4fe4293d93c8650851a848f695eca3",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 102,
"avg_line_length": 37.529411764705884,
"alnum_prop": 0.5564263322884012,
"repo_name": "AbdullahAlger/macro-fitness-tracker",
"id": "9410484ff45f44983b2d2297e994c0f5f62ba... |
package fr.imie;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class Serialiser implements ISerialiser {
/* (non-Javadoc)
* @see org.imie.testTDDTennis.ISerialiser#persist(org.imie.testTDDTe... | {
"content_hash": "d3348b88948dd9045d0f3d75a5a53e49",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 80,
"avg_line_length": 22.033898305084747,
"alnum_prop": 0.686923076923077,
"repo_name": "imie-source/CDPN-N-05-SHARE",
"id": "51c97bffbf43d089575cdcd3a63d85db03f3b758",
"s... |
/**
* @TODO: add this to OHIF's Viewers
*/
import { Template } from 'meteor/templating';
import { $ } from 'meteor/jquery';
import { toolManager } from '../../../lib/toolManager';
import { viewportUtils } from '../../../lib/viewportUtils';
Template.textMarkerDialogs.events({
'change #startFrom'(e) {
co... | {
"content_hash": "6f26f14de0c3362bac0e700f143e2d5b",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 88,
"avg_line_length": 35.58064516129032,
"alnum_prop": 0.5818223028105167,
"repo_name": "NucleusIo/HealthGenesis",
"id": "335418881b0f328fe1fa15ab92ae0f94e0cea392",
"size... |
IF NOT EXISTS (select * from sys.objects where type = 'p' and name = 'testRowGroupAndDelta' and schema_id = SCHEMA_ID('RowGroups') )
exec ('create procedure [RowGroups].[testRowGroupAndDelta] as select 1');
GO
ALTER PROCEDURE [RowGroups].[testRowGroupAndDelta] AS
BEGIN
DROP TABLE IF EXISTS #ExpectedRowGroups;
CR... | {
"content_hash": "bd8578b3a541ce8983b6e6ae194f5def",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 159,
"avg_line_length": 32.32142857142857,
"alnum_prop": 0.6988950276243094,
"repo_name": "NikoNeugebauer/CISL",
"id": "2f10d09ab97055ccfa2067fed7bd7a844ec807ed",
"size": "... |
"""
Copyright (c) 2014 Alex Forencich
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": "5d0e91512a98a707abba68dc61d36b61",
"timestamp": "",
"source": "github",
"line_count": 409,
"max_line_length": 117,
"avg_line_length": 33.02200488997555,
"alnum_prop": 0.5009625351695542,
"repo_name": "alexforencich/hdg2000",
"id": "986201bce01cd657b86d95e81744d1be4f810d17",
"size"... |
<footer class="post-info">
<span class="label label-default">Date</span>
<span class="published">
<i class="fa fa-calendar"></i><time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }}</time>
</span>
{% if SHOW_ARTICLE_AUTHOR %}
{% if article.author %}
<span... | {
"content_hash": "2674fa5e2fac9918c7fc743f735ea5f2",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 119,
"avg_line_length": 39.925925925925924,
"alnum_prop": 0.5593692022263451,
"repo_name": "gw0/pelican-bootstrap3",
"id": "333d42676bddd52e29753b1f660359bcfbd0eb59",
"size... |
"""
Command-line and common processing for Docutils front-end tools.
Exports the following classes:
* `OptionParser`: Standard Docutils command-line processing.
* `Option`: Customized version of `optparse.Option`; validation support.
* `Values`: Runtime settings; objects are simple structs
(``object.attribute``). ... | {
"content_hash": "86b4bcc80c744da5959f1270d533e20d",
"timestamp": "",
"source": "github",
"line_count": 784,
"max_line_length": 80,
"avg_line_length": 43.26020408163265,
"alnum_prop": 0.5713527538624837,
"repo_name": "ddd332/presto",
"id": "83f5fde594647739f22da18ac205dba4666b0b6c",
"size": "34078"... |
package com.oak.finance.app.monitor;
import java.util.Set;
public interface MarketDataMonitorsController {
void startStocksAnalysis(Set<String> symbolList, Set<String> interestingSymbols);
void loadHistoricalQuotes();
}
| {
"content_hash": "4af51dc016a2fd7eae46f43fcbda73b4",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 82,
"avg_line_length": 22.6,
"alnum_prop": 0.8097345132743363,
"repo_name": "charcode/StockScreener",
"id": "7c6eadaccff0c247e86ed20758e6f57feb5e9fc0",
"size": "226",
"bi... |
&& __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 40000) \
|| (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) \
&& __IPHONE_OS_VERSION_MIN_REQUIRED >= 40000)
# define ANKI_OS ANKI_OS_IOS
# else
# define ANKI_OS ANKI_OS_MACOS
# endif
#elif defined(__ANDROID__)
# define ANKI_OS ANKI_OS_ANDROID
#else
# define ANKI_OS... | {
"content_hash": "adfbd3eb8dc4c269adb26c06b7bdb3b1",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 80,
"avg_line_length": 25.00578034682081,
"alnum_prop": 0.6331484049930652,
"repo_name": "svn2github/anki-3d-engine",
"id": "f14f4d66dbc8b4fb261e5bb274d94b53c7564c3f",
"si... |
package com.cinchapi.concourse.test;
/**
* A marker interface for end-to-end tests of Concourse {@link Plugin plugins}.
* <p>
* Test cases that implement this interface will run any plugins on the current
* classpath in distinct JVM containers.
* </p>
*
* @author Jeff Nelson
*/
public interface PluginTest {}... | {
"content_hash": "2bdb49a479fce819b8e3c6386a336855",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 79,
"avg_line_length": 24.692307692307693,
"alnum_prop": 0.7165109034267912,
"repo_name": "kylycht/concourse",
"id": "476b213b6edb55b035a504d4170e60a5f407c066",
"size": "92... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>NUnitCommon - FAKE - F# Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Steffen Forkmann, Mauricio Scheffer, Colin Bull">
... | {
"content_hash": "3ae670f10c34ae20df3908eb548dca54",
"timestamp": "",
"source": "github",
"line_count": 229,
"max_line_length": 229,
"avg_line_length": 48.379912663755455,
"alnum_prop": 0.6041158949363661,
"repo_name": "hackle/AutoFixture",
"id": "3f53d2489bf7542df435db13fc856dabeb6eb44c",
"size": ... |
"""Foundational utilities common to many sql modules.
"""
import itertools
import operator
import re
from .visitors import ClauseVisitor
from .. import exc
from .. import util
coercions = None # type: types.ModuleType
elements = None # type: types.ModuleType
type_api = None # type: types.ModuleType
PARSE_AUTOC... | {
"content_hash": "71d723683dffa3ea8d979d19d80a0cb9",
"timestamp": "",
"source": "github",
"line_count": 993,
"max_line_length": 79,
"avg_line_length": 33.152064451158104,
"alnum_prop": 0.5808930741190765,
"repo_name": "wujuguang/sqlalchemy",
"id": "da384bdabcb34703efd87c183cfb8fb5fd9603aa",
"size":... |
package com.cosylab.logging.engine.audience;
import com.cosylab.logging.engine.log.ILogEntry;
import com.cosylab.logging.engine.log.LogField;
import com.cosylab.logging.engine.log.LogTypeHelper;
/**
* The audience for the science log: this accepts all the logs having
* the audience set to SciLog and a level of NOT... | {
"content_hash": "a5e97d4f613654f53a01d58f26655c07",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 71,
"avg_line_length": 23.355555555555554,
"alnum_prop": 0.7155090390104663,
"repo_name": "csrg-utfsm/acscb",
"id": "9a4a40f5b07f4a9ea250d7c1d50cf5beed6f88ac",
"size": "194... |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<TextView
android:id="@+id/testua"
android:layou... | {
"content_hash": "d993250dbb31db3e53222129ba7920a1",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 74,
"avg_line_length": 36.666666666666664,
"alnum_prop": 0.6690909090909091,
"repo_name": "CarlosIribarren/Ejemplos-Examples",
"id": "dd1c2d4d3a123539cbaa7faf7c477b747132f1a4... |
"""
>>> pingpong = thriftpy.load("pingpong.thrift")
>>>
>>> class Dispatcher(object):
>>> def ping(self):
>>> return "pong"
>>> server = make_server(pingpong.PingPong, Dispatcher())
>>> server.listen(6000)
>>> client = ioloop.IOLoop.current().run_sync(
lambda: make_client(pingpong.PingPong, '127.0.0.1'... | {
"content_hash": "7d43dff99f6b05eb3c59060b6ffc9307",
"timestamp": "",
"source": "github",
"line_count": 225,
"max_line_length": 93,
"avg_line_length": 36.80888888888889,
"alnum_prop": 0.6108427915962328,
"repo_name": "importcjj/thriftpy",
"id": "2006823ae30b6ece48853c1f2e70f48ee9877c80",
"size": "8... |
/**
* @fileoverview Load native app or move to install page
*/
'use strict';
var defineClass = require('tui-code-snippet/defineClass/defineClass');
var extend = require('tui-code-snippet/object/extend');
var sendHostname = require('tui-code-snippet/request/sendHostname');
var UAParser = require('ua-parser-js');
va... | {
"content_hash": "88ae5bbbc7b31e9388216dba1e27d06e",
"timestamp": "",
"source": "github",
"line_count": 224,
"max_line_length": 139,
"avg_line_length": 27.178571428571427,
"alnum_prop": 0.5827858081471747,
"repo_name": "nhnent/fe.component-m-app-loader",
"id": "be75ca8c6e5831b3debe2b86b504c8ab6653d63... |
define({
"productVersion": "Produktversion: ",
"kernelVersion": "Kerneversion: ",
"_widgetLabel": "Om"
}); | {
"content_hash": "43b64fd69a301ead99a7b7ec008ae8e1",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 39,
"avg_line_length": 22.4,
"alnum_prop": 0.6428571428571429,
"repo_name": "tmcgee/cmv-wab-widgets",
"id": "9b29457e249cf7263a007c3ebbddd3c2be804843",
"size": "112",
"bin... |
package aQute.bnd.build;
public interface ErrorDetails {
}
| {
"content_hash": "611a79d923b3c379e4e3c0b064618dc0",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 31,
"avg_line_length": 12.2,
"alnum_prop": 0.7704918032786885,
"repo_name": "psoreide/bnd",
"id": "e13e860c2ddf8ca96fbd21090c96cd6668ed4e1a",
"size": "61",
"binary": false... |
package com.izhbg.typz.sso.auth.dao;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.springframework.security.core.GrantedAuthority;
import org.spri... | {
"content_hash": "bb4c7a2c7de85f66311fb938cd2dac3f",
"timestamp": "",
"source": "github",
"line_count": 182,
"max_line_length": 153,
"avg_line_length": 39.0989010989011,
"alnum_prop": 0.6693367060146149,
"repo_name": "izhbg/typz",
"id": "11bc6df59827229c7f7847bf09c77fe8738352af",
"size": "7232",
... |
#include "SkImage_Base.h"
#include "SkImagePriv.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkData.h"
#include "SkDecodingImageGenerator.h"
#include "SkMallocPixelRef.h"
class SkImage_Raster : public SkImage_Base {
public:
static bool ValidArgs(const Info& info, size_t rowBytes) {
const int ... | {
"content_hash": "d8709f5e4e174416a770eb0320469c11",
"timestamp": "",
"source": "github",
"line_count": 222,
"max_line_length": 99,
"avg_line_length": 30.2972972972973,
"alnum_prop": 0.6196848052334225,
"repo_name": "xin3liang/platform_external_chromium_org_third_party_skia",
"id": "a7e4e009e5c2fd2d9... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_UTIL_H
#define BITCOIN_UTIL_H
#include "uint256.h"
#include <stda... | {
"content_hash": "d091fb7fac09e30c96827b53fd954173",
"timestamp": "",
"source": "github",
"line_count": 586,
"max_line_length": 143,
"avg_line_length": 27.74061433447099,
"alnum_prop": 0.6668307086614174,
"repo_name": "bitcapital/populacecoins",
"id": "2add90a68deccfe84ddfe267360a4cbf38db976d",
"si... |
CREATE TABLE RM_ENVIRONMENT(
ID INTEGER,
NAME VARCHAR2(128) NOT NULL,
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (ID),
UNIQUE (NAME, TENANT_ID)
)
/
CREATE SEQUENCE RM_ENVIRONMENT_SEQ START WITH 1 INCREMENT BY 1 NOCACHE
/
CREATE OR REPLACE TRIGGER RM_ENVIRONMENT_TRIGGER
BEFORE INSERT
... | {
"content_hash": "a64d2325f4bf44af18ef2f06ee3f34ab",
"timestamp": "",
"source": "github",
"line_count": 245,
"max_line_length": 88,
"avg_line_length": 33.57142857142857,
"alnum_prop": 0.6111854103343465,
"repo_name": "wso2/carbon-storage-management",
"id": "a06552fb0258cddb30efc4f403abec1a9fe5d009",
... |
/**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highstock]]
*/
package com.highstock.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript... | {
"content_hash": "a13a19203e8e728ee8ad4b28145f7a55",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 255,
"avg_line_length": 43.68421052631579,
"alnum_prop": 0.744578313253012,
"repo_name": "Karasiq/scalajs-highcharts",
"id": "788efd504aba6566052dab9b06d2436107996d20",
"si... |
module Holidays
# This file is generated by the Ruby Holidays gem.
#
# Definitions loaded: data/vi.yaml
#
# To use the definitions in this file, load it right after you load the
# Holiday gem:
#
# require 'holidays'
# require 'holidays/vi'
#
# All the definitions are available at https://githu... | {
"content_hash": "5a6476b60d475fa810e2db821da10518",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 84,
"avg_line_length": 28.096774193548388,
"alnum_prop": 0.5809414466130884,
"repo_name": "seanhandley/holidays",
"id": "ef7a7d536b23178d70a6f98f762b154160c0703a",
"size": ... |
A D-Bus implementation for .NET Core.
Design goals:
* Be asynchronous at the heart
* Favor code generation over runtime reflection
* Fast, lean, blah, blah :)
| {
"content_hash": "3a7e5455381075970f3404e44c866a20",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 47,
"avg_line_length": 26.833333333333332,
"alnum_prop": 0.7453416149068323,
"repo_name": "Tragetaschen/DbusCore",
"id": "0aaa2887713c4521224f17a1bfba31e72b090daa",
"size": ... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2017 Red Hat, Inc. and/or its affiliates.
~
~ 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/l... | {
"content_hash": "f902bbb17fdbf1db62c6056eb0a12480",
"timestamp": "",
"source": "github",
"line_count": 237,
"max_line_length": 108,
"avg_line_length": 31.11392405063291,
"alnum_prop": 0.6642256577163005,
"repo_name": "romartin/kie-wb-common",
"id": "f7c8f3f180a6cc40cc94542283586e33efee9205",
"size... |
package org.apache.ambari.serviceadvisor;
// TODO, use this class instead of org.apache.ambari.server.api.services.stackadvisor.commands.StackAdvisorCommandType
public enum ServiceAdvisorCommandType {
RECOMMEND_COMPONENT_LAYOUT("recommend-component-layout"),
VALIDATE_COMPONENT_LAYOUT("validate-component-layo... | {
"content_hash": "3208ca19e6461627401b765cd08a17c5",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 118,
"avg_line_length": 26.23404255319149,
"alnum_prop": 0.7234387672343877,
"repo_name": "radicalbit/ambari",
"id": "f067668e754e5f7ac8ffb0189551221b53b52041",
"size": "20... |
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone... | {
"content_hash": "3e647a67bf8ceabb79b193d18ee227ed",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 44,
"avg_line_length": 25.857142857142858,
"alnum_prop": 0.6574585635359116,
"repo_name": "django-girls/best-blog-in-the-world",
"id": "454a89829dcf659184ad6d1c86d40bd8e34fc0... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Shi... | {
"content_hash": "6cc1d076e3547b173881c5358f4711ec",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 38.72222222222222,
"alnum_prop": 0.7482065997130559,
"repo_name": "goshippo/shippo-csharp-client",
"id": "e11055a80e42208dc9e5f1332cad5d61f68311d8",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.