text stringlengths 2 1.04M | meta dict |
|---|---|
require('dotenv').config();
const { docClient } = require('../server/src/aws');
const queryParams = {
TableName: 'assignments',
KeyConditionExpression: 'classCode = :classCode',
ExpressionAttributeValues: {
':classCode': 'cst334',
},
};
docClient.query(queryParams, (err, { Items }) => {
if (err) {
... | {
"content_hash": "34b0168b06473cd4e20efae75caa9373",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 89,
"avg_line_length": 24.557142857142857,
"alnum_prop": 0.518324607329843,
"repo_name": "ziel5122/autograde",
"id": "4d401d47023fd87ce578f53040048104993531d2",
"size": "17... |
import codecs, logging, os, random
import GlobalStore
logger = logging.getLogger('DideRobot')
def isAllowedPath(path):
#This function checks whether the provided path is inside the bot's data folder
# To prevent people adding "../.." to some bot calls to have free access to the server's filesystem
if not os.path... | {
"content_hash": "7a8e3ea905d49ea7ef3eb33226b9a3b9",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 119,
"avg_line_length": 36.896103896103895,
"alnum_prop": 0.7504399859204506,
"repo_name": "Didero/DideRobot",
"id": "0ebfa0a20369797d933d3b201c2f1fb26d45ee43",
"size": "28... |
package com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Views.Component.Actions;
import java.awt.Window;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import com.google.security.zynamics.binnavi.Gui.MainWindow.Implementations.CViewFunctions;
import com.google.security... | {
"content_hash": "725724fb42f39d75e66f2a7542fd9f07",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 102,
"avg_line_length": 24.75862068965517,
"alnum_prop": 0.7200557103064067,
"repo_name": "AmesianX/binnavi",
"id": "1c37154964970aa0d272c0380829f92d88f68341",
"size": "201... |
package com.google.android.vending.expansion.downloader;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.Messenger;
import android.os.RemoteException;
import com.google.android.vending.expansion.downloader.impl.DownloaderService;
/... | {
"content_hash": "5ab0f2fcdec49804839c8420160dc88b",
"timestamp": "",
"source": "github",
"line_count": 167,
"max_line_length": 93,
"avg_line_length": 30.772455089820358,
"alnum_prop": 0.5800739443471492,
"repo_name": "cclink/ObbDownloadHelper",
"id": "079d37a1c9a7a48340f52ddde2c0d93827e1bd96",
"si... |
package water.util;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class CountdownTest {
private static long short_sleep() {
long start = System.currentTimeMillis();
try {
Thread.sleep(100);
} catch (InterruptedException ignored) {
Thread.current... | {
"content_hash": "ccefb20504828eb850bfa9db1d4f20b8",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 84,
"avg_line_length": 26.16393442622951,
"alnum_prop": 0.6372180451127819,
"repo_name": "h2oai/h2o-3",
"id": "7f23c24c7be94e102d2b71ebdd341e9f678a858d",
"size": "3192",
... |
// 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.
/******************************************************************************
* This file is auto-generated from ... | {
"content_hash": "9c9ce4b0974c5b8ce9048e46cffae41d",
"timestamp": "",
"source": "github",
"line_count": 585,
"max_line_length": 190,
"avg_line_length": 42.34017094017094,
"alnum_prop": 0.5745488312002907,
"repo_name": "cshung/coreclr",
"id": "6c138b8db264bf2992a1fc38645457956cfd85c7",
"size": "2476... |
package com.salesmanager.core.business.configuration.events.products;
import org.springframework.context.ApplicationEvent;
import com.salesmanager.core.model.catalog.product.Product;
public abstract class ProductEvent extends ApplicationEvent {
private static final long serialVersionUID = 1L;
private Product pro... | {
"content_hash": "f58e6544a3d1f3deac17815d0a94ae58",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 69,
"avg_line_length": 22.09090909090909,
"alnum_prop": 0.7880658436213992,
"repo_name": "shopizer-ecommerce/shopizer",
"id": "0034a7dbd3acfbd931f84495fe78d585b5a60707",
"s... |
void pMR::Connection::connect(Target const &target)
{
if(target.isNull())
{
connectNull(target);
return;
}
if(target.isSelf())
{
connectSelf(target);
return;
}
connectCMA(target);
}
| {
"content_hash": "bfc94ad4d4370484df377ff313826180",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 51,
"avg_line_length": 15.25,
"alnum_prop": 0.5368852459016393,
"repo_name": "pjgeorg/pMR",
"id": "a68f16ec1b3a3c160e2278f5e236cabca81bd2dc",
"size": "904",
"binary": fal... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>node_modules\cassproject\src\com\eduworks\schema\ebac\EbacContactGrant.js - CASS Javascript Library</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../... | {
"content_hash": "7be868500d5663597d67317580956fdb",
"timestamp": "",
"source": "github",
"line_count": 1223,
"max_line_length": 146,
"avg_line_length": 89.66721177432542,
"alnum_prop": 0.4819036502740213,
"repo_name": "Eduworks/CASS",
"id": "e6d46b2ca3fc441efc605a5f286668bd632e31dc",
"size": "1096... |
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.Debugger.Interop;
using MICore;
using System.Diagnostics;
using System.Globalization;
// This file contains the various event objects that are sent to the debugger from the sample engine via IDebugEventCallback2::Event.
// ... | {
"content_hash": "de7a929a87665f2f03f3fc89a8b67122",
"timestamp": "",
"source": "github",
"line_count": 604,
"max_line_length": 202,
"avg_line_length": 34.609271523178805,
"alnum_prop": 0.6445656333716036,
"repo_name": "rajkumar42/MIEngine",
"id": "4970edabc51306a26c7daf78c7b9ca3042659821",
"size":... |
package hr.fer.zemris.vhdllab.platform.ui;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.SwingUtilities;
public class MouseClickAdapter extends MouseAdapter {
@Override
public void mouseClicked(MouseEvent e) {
if (SwingUtilities.isLeftMouseButton(e) && e.g... | {
"content_hash": "a866b7854585e80c077f67c2435d6577",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 76,
"avg_line_length": 22.31578947368421,
"alnum_prop": 0.6096698113207547,
"repo_name": "mbezjak/vhdllab",
"id": "ce8f3ccaa97164325b0f4919e42d9a214e75e049",
"size": "1679"... |
package org.elasticsearch.action.search;
import org.elasticsearch.action.ActionRequest;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.IndicesRequest;
import org.elasticsearch.action.support.IndicesOptions;
import org.elasticsearch.common.Nullable;
import org.elasti... | {
"content_hash": "0c2e5e7b3a99f0bc754834d1eb2d4036",
"timestamp": "",
"source": "github",
"line_count": 325,
"max_line_length": 127,
"avg_line_length": 29.96923076923077,
"alnum_prop": 0.6436344969199178,
"repo_name": "sreeramjayan/elasticsearch",
"id": "1973e4c756d85886739cedf1d5ea50febe650468",
"... |
#include <aws/ec2/model/AcceleratorCount.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Utils::Xml;
using namespace Aws::Utils;
namespace Aws
{
namespace EC2
{
namespace Model
{... | {
"content_hash": "272cc60f08159c87f1c7f3313e4ee957",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 135,
"avg_line_length": 22.40909090909091,
"alnum_prop": 0.6526369168356998,
"repo_name": "cedral/aws-sdk-cpp",
"id": "5e119eb02d4b405d1c0bf26e03d0d27e1a2913da",
"size": "2... |
package org.ayo.rx.sample;
import android.util.Log;
import org.reactivestreams.Publisher;
import java.util.List;
import io.reactivex.BackpressureStrategy;
import io.reactivex.Flowable;
import io.reactivex.FlowableEmitter;
import io.reactivex.FlowableOnSubscribe;
import io.reactivex.android.schedulers.AndroidSchedul... | {
"content_hash": "d19e560b3f88e9bb1f42abe036b4d451",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 79,
"avg_line_length": 35.46491228070175,
"alnum_prop": 0.5127380657927282,
"repo_name": "cowthan/Ayo2022",
"id": "fb387559d4b9a20895f69493e098726571c48d22",
"size": "4135... |
#import "TiDataStream.h"
@implementation TiDataStream
@synthesize data, mode;
#pragma mark Internals
-(id)init
{
if (self = [super init]) {
data = nil;
mode = TI_READ;
position = 0;
}
return self;
}
-(void)_destroy
{
RELEASE_TO_NIL(data);
[super _destroy];
}
#pragma ma... | {
"content_hash": "09addf8b1e9f4fe897afb99638167baa",
"timestamp": "",
"source": "github",
"line_count": 243,
"max_line_length": 258,
"avg_line_length": 40.218106995884774,
"alnum_prop": 0.6455540775606262,
"repo_name": "AppWerft/SunTracker",
"id": "bf1536efc3268abafd6a627f597fd05a6b5aabd3",
"size":... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (1.8.0_191) on Mon Oct 29 18:19:16 CET 2018 -->
<title>IntegerRangeValidator (esoco-business 1.3.0 API)</title>
<meta name="date" content="2018-... | {
"content_hash": "bc6d140401edbc077bbb01d3210104a4",
"timestamp": "",
"source": "github",
"line_count": 382,
"max_line_length": 391,
"avg_line_length": 38.1282722513089,
"alnum_prop": 0.6332303467215928,
"repo_name": "esoco/esoco-business",
"id": "8c868a2dc29ba99d2bd653239d1b4ca0e8bdf103",
"size": ... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project
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/license... | {
"content_hash": "e38cb7f5a5b6ae89cfd2efcb4c5f175f",
"timestamp": "",
"source": "github",
"line_count": 516,
"max_line_length": 136,
"avg_line_length": 51.1124031007752,
"alnum_prop": 0.7037233639190111,
"repo_name": "ltxms/Practice",
"id": "90a748691d819210eb4e3c71f0793396df0d4297",
"size": "26374... |
module.exports = function(app, passport) {
var entities = app.get('entities');
// normal routes ===============================================================
// show the home page (will also have our login links)
app.get('/', function(req, res) {
res.render('index.ejs', {
auth: req.isAuthenticat... | {
"content_hash": "5140cb36bd6b69620346844c3f562a62",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 100,
"avg_line_length": 29.503649635036496,
"alnum_prop": 0.5145967342899554,
"repo_name": "astrellon/hart",
"id": "3652512151c9b174d3126fbf7e28215ef9b91c2c",
"size": "404... |
dev:
pkill -f http-server &
echo "Make sure to install http-server with npm i -g http-server"
elm-make Main.elm --output=example/elm.js --debug
(http-server ./example/ -p 8081 -c-1 &) && open "http://127.0.0.1:8081"
release:
elm-make Main.elm --output=example/elm.js
mkdir -p docs/stable
cp -r example/ docs/stab... | {
"content_hash": "c4416e25fa7e9a2983754db78cb93f42",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 199,
"avg_line_length": 30.941176470588236,
"alnum_prop": 0.6756653992395437,
"repo_name": "wende/elchemy",
"id": "a0c14c7cda137695c002d593606b912dc24141f1",
"size": "2630"... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "695bcf2f61ab5cb861448dbadd4c394b",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "6c119895c625b8a3d5cba804d0cfb810d2cf0073",
"size": "210... |
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<resources>
<dimen name="visit_item_remove_button_lateral_padding">18dp</dimen>
<dimen name="related_search_chip_list_chip_spacin... | {
"content_hash": "cbafc7576b038145c5f70a51366c709b",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 71,
"avg_line_length": 36.642857142857146,
"alnum_prop": 0.7153996101364523,
"repo_name": "nwjs/chromium.src",
"id": "6a2fdee2933974b0996747e141ec3805533d9f0e",
"size": "51... |
/**
* Gets URI that identifies the test.
* @return uri identifier of test
*/
function getTargetURI() {
return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/documentadoptnode10";
}
var docsLoaded = -1000000;
var builder = null;
//
// This function is called by the testing framewor... | {
"content_hash": "7c012c715c6d279246667f46eb51d55f",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 93,
"avg_line_length": 22.91743119266055,
"alnum_prop": 0.6180944755804644,
"repo_name": "lordmos/blink",
"id": "e36daec40461045b02f00ab669f94bc6720f8175",
"size": "2991",... |
package org.apache.logging.log4j.core.appender.rolling;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import org.apache.logging.log4j.Logger;
import org.apache.logging.... | {
"content_hash": "49081c02752ecf1bf8f569c4e5a2e056",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 147,
"avg_line_length": 35.40384615384615,
"alnum_prop": 0.7126561651276481,
"repo_name": "apache/logging-log4j2",
"id": "6d3b299f89e0de98b2d5cc930d26956865fb68c0",
"size":... |
#include <iostream>
using namespace std;
int option_filter_main(istream &input, ostream &output);
| {
"content_hash": "112d3b5a7a3793607133febd82e500bf",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 56,
"avg_line_length": 20,
"alnum_prop": 0.76,
"repo_name": "kit-transue/software-emancipation-discover",
"id": "af00056d1a8ea763e73ede31962f532f45b8e2e8",
"size": "2124",
... |
package org.apache.cloudstack.framework.sampleserver;
import java.util.Timer;
import java.util.TimerTask;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.apache.cloudstack.framework.messagebus.MessageBus;
import org.apache.cloudstack.framework.messagebus.MessageDispatcher;
import org.a... | {
"content_hash": "d4629524c8819c8a53e57a0690c4e86c",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 90,
"avg_line_length": 29.135802469135804,
"alnum_prop": 0.7699152542372881,
"repo_name": "mufaddalq/cloudstack-datera-driver",
"id": "d59fe42d5ea28d7a85ac07dafa5e8c2b85bc21f... |
<!DOCTYPE html >
<html>
<head>
<title>ResultOfInOrderOnlyApplication - ScalaTest 3.0.2 - org.scalatest.words.ResultOfInOrderOnlyApplication</title>
<meta name="description" content="ResultOfInOrderOnlyApplication - ScalaTest 3.0.2 - org.scalatest.words.ResultOfInOrderOnlyApplication" />
... | {
"content_hash": "ce1e111f4f9df2e5e18fa14a02b5b6d4",
"timestamp": "",
"source": "github",
"line_count": 557,
"max_line_length": 335,
"avg_line_length": 51.78456014362657,
"alnum_prop": 0.5947510747469145,
"repo_name": "scalatest/scalatest-website",
"id": "5b4f0564039fae71424f6d597add82a41537d62c",
... |
package com.juanan.pocs.companies.web.controller;
import javax.servlet.http.HttpSession;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.... | {
"content_hash": "ed3372374394421856c068e20022eab5",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 160,
"avg_line_length": 36.26027397260274,
"alnum_prop": 0.7850396675481678,
"repo_name": "JuananIBM/WebCompanies",
"id": "562ef59055304ae75e5de440f63363d31be155d8",
"size"... |
<?php
namespace Acme\DemoBundle\Doctrine;
use Doctrine\Common\Persistence\ManagerRegistry;
class SmartManagerRegistry implements ManagerRegistry
{
protected $registries = [];
/**
* {@inheritdoc}
*/
public function getDefaultManagerName()
{
throw new \LogicException('Not smart enou... | {
"content_hash": "df6d1c2d31b7ec0d9604a2e7f9db695a",
"timestamp": "",
"source": "github",
"line_count": 133,
"max_line_length": 94,
"avg_line_length": 20.586466165413533,
"alnum_prop": 0.5573411249086925,
"repo_name": "juliensnz/batch-bundle-experimentation",
"id": "138759ac4fc2aac6422fc0b04a2c65ada8... |
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://www.mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.elvea.platform.core.oauth.mapper.AuthorizationMapper">
</mapper>
| {
"content_hash": "7f079a04deda32593fab0c199a464ecf",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 111,
"avg_line_length": 59.75,
"alnum_prop": 0.7238493723849372,
"repo_name": "elveahuang/platform",
"id": "b587d7f0523c983f9625013d837d5547efd6ebd5",
"size": "239",
"bina... |
{-# LANGUAGE FlexibleContexts #-}
module Persistent where
import Control.Monad.State (MonadState)
import Control.Monad.State (StateT)
import Control.Monad.State (execStateT)
import Control.Monad.State (get)
import Control.Monad.State (gets)
import Control.Monad.State (modify)
import Control.Monad.Trans (liftIO)
data... | {
"content_hash": "99f5f06b077a0269cbf3aadf3f88c82a",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 65,
"avg_line_length": 24.0126582278481,
"alnum_prop": 0.5940959409594095,
"repo_name": "notae/haskell-exercise",
"id": "01e263bd5c450efbcb2c4000b0079c120dd37267",
"size": ... |
package com.thoughtworks.xstream.io;
import com.thoughtworks.xstream.io.xml.CompactWriter;
import junit.framework.TestCase;
import java.io.IOException;
import java.io.StringWriter;
/**
* @author Jörg Schaible
*/
public class StatefulWriterTest extends TestCase {
private StatefulWriter writer;
priv... | {
"content_hash": "966d0cc62362290b4d687950774a1ce2",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 82,
"avg_line_length": 33.234939759036145,
"alnum_prop": 0.5776690230197571,
"repo_name": "jenkinsci/xstream",
"id": "716765f1f1c47563f69a066acda77acfb1721bf5",
"size": "5... |
package mesos
import (
"crypto/tls"
"errors"
"fmt"
"io"
"sort"
"sync"
"time"
log "github.com/Sirupsen/logrus"
"github.com/docker/swarm/cluster"
"github.com/docker/swarm/cluster/mesos/queue"
"github.com/docker/swarm/scheduler"
"github.com/docker/swarm/scheduler/node"
"github.com/docker/swarm/scheduler/str... | {
"content_hash": "919958930c6d21403e92ee1e490cd431",
"timestamp": "",
"source": "github",
"line_count": 457,
"max_line_length": 160,
"avg_line_length": 26.12691466083151,
"alnum_prop": 0.6887772194304858,
"repo_name": "abronan/swarm",
"id": "2a0a9d0da52bfeee9c000c693101f4196dae8d20",
"size": "11942... |
(function() {
var app = angular.module('weather', []);
app.controller('WeatherController', ['$http', function($http) {
var weather = this;
weather.forecast = 'Looking out the window...';
$http.get('/weather').then(function(res) {
weather.morning = res.data.morning;
weather.low = res.data.l... | {
"content_hash": "c2c7a66b81f7af4e21ffe45e6a42c3b6",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 65,
"avg_line_length": 28.733333333333334,
"alnum_prop": 0.6102088167053364,
"repo_name": "nhashmi/top-of-the-morning",
"id": "7a8f45f5eb9ee2855a68d8f9593cb2b670652f58",
"s... |
/* eslint-env jest */
const { query } = require('../lib');
const {
seedDatabase,
dropDatabase,
generateDatabaseName,
ConnectionFactory,
} = require('./setup-database');
describe('queryExplain()', () => {
const database = generateDatabaseName();
let conn;
beforeAll(seedDatabase(database));
afterAll(dr... | {
"content_hash": "c6ceece7a095ea461cc90b34ca428356",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 71,
"avg_line_length": 24.833333333333332,
"alnum_prop": 0.610738255033557,
"repo_name": "Complexible/stardog.js",
"id": "82b740e51d8258ba919b41b7c6d9c29f7e35e1b3",
"size":... |
module DateTimeHelper
# Format the time by time ago
def timeago time, options = {}
options[:title] = options[:title] == false ? nil : l(time)
options[:datetime] = time.to_s
content_tag(:abbr, "#{time_ago_in_words(time).capitalize} ago", options) if time
end
# Facny date
def fancy_date date
d... | {
"content_hash": "6fd6af60241af341989d4021bf7e7140",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 84,
"avg_line_length": 24.9,
"alnum_prop": 0.6305220883534136,
"repo_name": "johnkoht/frontie",
"id": "4b6dc4efed642694c82f405dd7851812107acb5c",
"size": "498",
"binary":... |
package io.requery.proxy;
import io.requery.meta.Attribute;
import io.requery.meta.Type;
import io.requery.util.function.Supplier;
/**
* Proxies a builder class that has attributes that can be set yielding a final constructed entity
* using {@link #build()}.
*
* @param <B> type of the builder
* @param <E> type... | {
"content_hash": "94318e97369a18eef37b3e4f32ac4678",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 98,
"avg_line_length": 33.81318681318681,
"alnum_prop": 0.6857328566785831,
"repo_name": "sakuna63/requery",
"id": "2223fc59d0f66a24d11adf54230bd8360e7e5fb8",
"size": "3670... |
#include "gtest/gtest.h"
#include <fcntl.h>
#include "native_client/src/include/nacl_compiler_annotations.h"
#include "native_client/src/shared/platform/nacl_host_desc.h"
#include "native_client/src/shared/platform/nacl_log.h"
#include "native_client/src/shared/utils/types.h"
#include "native_client/src/trusted/des... | {
"content_hash": "cc12715bca645e53906c87697d29e9ba",
"timestamp": "",
"source": "github",
"line_count": 400,
"max_line_length": 78,
"avg_line_length": 31.435,
"alnum_prop": 0.7074916494353428,
"repo_name": "wilsonianb/nacl_contracts",
"id": "106fa7a6d6323e7a21b61ec03dc3b858ac3b2b1e",
"size": "12754... |
module CdmMigrator
class Engine < ::Rails::Engine
initializer :append_migrations do |app|
unless app.root.to_s.match root.to_s
config.paths["db/migrate"].expanded.each do |expanded_path|
app.config.paths["db/migrate"] << expanded_path
end
end
end
#isolate_namespace ... | {
"content_hash": "0a59e9d224f0d208126f9bdedd926cb3",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 80,
"avg_line_length": 24.75862068965517,
"alnum_prop": 0.5988857938718662,
"repo_name": "UVicLibrary/cdm_migrator",
"id": "7082f20835320b25f00ea5197e0700e6de77f4f4",
"size... |
"use strict";
ace.define("ace/snippets/vhdl", ["require", "exports", "module"], function (require, exports, module) {
"use strict";
exports.snippetText = undefined;
exports.scope = "vhdl";
}); | {
"content_hash": "63324adfa21e6824c291dc8b195f80d6",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 103,
"avg_line_length": 25,
"alnum_prop": 0.665,
"repo_name": "IonicaBizau/arc-assembler",
"id": "87e0298801816a04850df8d97948a6795f366f84",
"size": "200",
"binary": false... |
require 'rack/protection'
require 'securerandom'
require 'openssl'
require 'base64'
module Rack
module Protection
##
# Prevented attack:: CSRF
# Supported browsers:: all
# More infos:: http://en.wikipedia.org/wiki/Cross-site_request_forgery
#
# This middleware only accepts requests ... | {
"content_hash": "2ce966436d3a0e6af7ebffc3e0eb0b99",
"timestamp": "",
"source": "github",
"line_count": 249,
"max_line_length": 143,
"avg_line_length": 31.51004016064257,
"alnum_prop": 0.5599031353555952,
"repo_name": "jkowens/sinatra",
"id": "2f5634e051d273479a3fb4f2ea5182b3f5fa9a1a",
"size": "784... |
set -eou pipefail
# If the variable `$DEBUG` is set, then print the shell commands as we execute.
if [ -n "${DEBUG:-}" ]; then set -x; fi
readonly pcio_root="https://packages.chef.io/files"
export HAB_LICENSE="accept-no-persist"
main() {
# Use stable Bintray channel by default
channel="stable"
# Set an empty v... | {
"content_hash": "1dc0f591e50e15aea557f8b92c418ddc",
"timestamp": "",
"source": "github",
"line_count": 368,
"max_line_length": 104,
"avg_line_length": 25.559782608695652,
"alnum_prop": 0.5933446736125877,
"repo_name": "rsertelon/habitat",
"id": "22b511bb00af0c7598ffe7ba38fb4b5e9ca2c71c",
"size": "... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Jan 16 10:54:26 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Package org.wildfly... | {
"content_hash": "97a9580ef5f8209d990342649cd5e5f1",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 282,
"avg_line_length": 36.161490683229815,
"alnum_prop": 0.6331157677773961,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "4d8e3fa10093518d02e2123229420d8bceb... |
#import <Foundation/Foundation.h>
#import "RCTDefines.h"
typedef NS_ENUM(NSUInteger, RCTPLTag) {
RCTPLScriptDownload = 0,
RCTPLScriptExecution,
RCTPLNativeModuleInit,
RCTPLNativeModuleInjectConfig,
RCTPLTTI,
RCTPLSize
};
void RCTPerformanceLoggerStart(RCTPLTag tag);
void RCTPerformanceLoggerEnd(RCTPLTa... | {
"content_hash": "f90a4402ea2c77bc6a4b8cc9db5583e2",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 45,
"avg_line_length": 20.61111111111111,
"alnum_prop": 0.8005390835579514,
"repo_name": "marlonandrade/react-native",
"id": "8285f061571ac89b69144d644b2b379d6b142888",
"si... |
echoerr() { echo "$@" 1>&2; }
[[ -z $VARIABLES_FILE ]] && VARIABLES_FILE="$HOME/.nlp_install_rc"
[[ ! -f $VARIABLES_FILE ]] && touch $VARIABLES_FILE
source $VARIABLES_FILE
STARTING_DIR=`pwd`
echoerr "*** STARTING installation of MALT parser"
######################################################
NAME="maltparser-1.7... | {
"content_hash": "068b7cf2435ab7bd23ce40d05a30d5d2",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 72,
"avg_line_length": 25.897435897435898,
"alnum_prop": 0.6435643564356436,
"repo_name": "stanojevic/NLP-installation-scripts",
"id": "c51b4de749463ebbf924f788dd43d56fdeee8c... |
<!--
Copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
-->
<!-- boost-no-inspect -->
<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www... | {
"content_hash": "f340825493ec153372c747e8df7dd464",
"timestamp": "",
"source": "github",
"line_count": 149,
"max_line_length": 234,
"avg_line_length": 42.16778523489933,
"alnum_prop": 0.6700620722584752,
"repo_name": "arangodb/arangodb",
"id": "563beb0c06f0f66edd06ac3cc011b2bc7debbdc6",
"size": "6... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CloudsdaleWin7.lib.Models
{
public enum Status
{
Online = 0,
Away = 1,
Busy = 2,
Offline = 3
}
}
| {
"content_hash": "44d3e5e5cb1f0aca5d760166a855e669",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 35,
"avg_line_length": 16.8125,
"alnum_prop": 0.6245353159851301,
"repo_name": "cloudsdaleapp/cloudsdale-win7",
"id": "1b1bb9f1d9ee85a0fd6e94fdfffb2c5d63a7f800",
"size": "2... |
package org.pointstone.cugappplat.base.cusotomview.swipeview;
/**
* Created by Yan Zhenjie on 2016/7/26.
*/
public interface OnSwipeMenuItemClickListener {
/**
* Invoke when the menu item is clicked.
*
* @param closeable closeable.
* @param adapterPosition adapterPosition.
* @pa... | {
"content_hash": "841c4908cc095eac0297a030c0d842a4",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 197,
"avg_line_length": 34.8,
"alnum_prop": 0.7327586206896551,
"repo_name": "HelloChenJinJun/TestChat",
"id": "1300256079d3c35df562962a5f09a1f034543710",
"size": "1291",
... |
[](https://travis-ci.org/salmonhabitat/calculator)
calculator
==========
Project the costs of installing an open-bottom arch culvert in Downeast Maine.
| {
"content_hash": "509b210bb1d2e4e3878f612410f0c625",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 131,
"avg_line_length": 39.166666666666664,
"alnum_prop": 0.7617021276595745,
"repo_name": "salmonhabitat/calculator",
"id": "59cc98c20b34d24c8c164909753fe0fcf4f5df6c",
"siz... |
package org.drools.compiler.test;
import org.kie.api.definition.type.Position;
public abstract class Person {
@Position(0)
private String name;
public Person() {
super(); //To change body of overridden methods use File | Settings | File Templates.
}
public Person(String name) {
... | {
"content_hash": "4975dd356aa641bd6297e98e526f38e5",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 96,
"avg_line_length": 19.28,
"alnum_prop": 0.6099585062240664,
"repo_name": "bxf12315/drools",
"id": "5b536ef3633bb0e47a16543785f93424760dc373",
"size": "482",
"binary":... |
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* iron-flex-layout-classes.html
*/
/// <reference path="../polymer/types/polymer.d.ts" />
| {
"content_hash": "4047be1a9b52948d413ebd2046d6efcf",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 59,
"avg_line_length": 23.166666666666668,
"alnum_prop": 0.6762589928057554,
"repo_name": "endlessm/chromium-browser",
"id": "139911b8f40bb187a0e506a90beeaf3271939b2a",
"si... |
<?php
declare(strict_types=1);
namespace spec\Sylius\Component\Order\Factory;
use PhpSpec\ObjectBehavior;
use Sylius\Component\Order\Factory\AdjustmentFactoryInterface;
use Sylius\Component\Order\Model\AdjustmentInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
final class AdjustmentFactorySpec e... | {
"content_hash": "bfd81f3595d7d552edeb415fc8a41682",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 93,
"avg_line_length": 31.19607843137255,
"alnum_prop": 0.6907605279698303,
"repo_name": "loic425/Sylius",
"id": "487271870600b6fb3673871562bf014acc6392a5",
"size": "1802",... |
local docs = {}
local lfs = require "lfs"
local current_version = '0.5'
local sailor = require 'sailor'
local function render_doc_md(page,file_name,last_update)
local version = page.GET.v or current_version
local path = 'docs/'..version..'/'..file_name..'.md'
local f=io.open(sailor.path.."/"..path,"r")
if f~=... | {
"content_hash": "3048f225f27a43eabe4d5fc6f09c6741",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 100,
"avg_line_length": 21.42718446601942,
"alnum_prop": 0.7381060262800181,
"repo_name": "Etiene/sailor_website",
"id": "3f34f3be299cb531cadc02da29e461d4292a48c9",
"size"... |
require 'stringio'
require 'rubygems'
require 'optparse'
require "ostruct"
TOP_SRC_DIR = File.join(File.dirname(__FILE__), "..") unless
defined?(TOP_SRC_DIR)
$:.unshift File.join(TOP_SRC_DIR, "ext")
$:.unshift File.join(TOP_SRC_DIR, "lib")
$:.unshift File.join(TOP_SRC_DIR, "cli")
def debug_program(options)
# Ma... | {
"content_hash": "7e00f0d852c7937e8fad7e33554da677",
"timestamp": "",
"source": "github",
"line_count": 248,
"max_line_length": 94,
"avg_line_length": 29.411290322580644,
"alnum_prop": 0.6621880998080614,
"repo_name": "gfowley/ruby-debug",
"id": "2eb97a2885793c8ecb537a89ef7e476ca1227ea5",
"size": "... |
Originally published: 2012-04-12 07:38:27
Last updated: 2012-04-18 06:13:25
Author: Thomas Lehmann
**Why?**
* There are many recipes but nearly all cover the global singleton only.
* I need a singleton which can handle things in a specific context (environment).
**The final singleton is a combination of... | {
"content_hash": "879eaa301ba9537e0cd50e646b323169",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 158,
"avg_line_length": 42.21052631578947,
"alnum_prop": 0.726932668329177,
"repo_name": "ActiveState/code",
"id": "62281c604940bf7f1237f1c76afa12f1b356ade8",
"size": "835"... |
<head>
{% if page.summary %}
{% assign desc = page.summary | xml_escape %}
{% else %}
{% assign desc = site.description | xml_escape %}
{% endif %}
{% if page.title %}
{% assign title = page.title | xml_escape %}
{% else %}
{% assign title = site.title | xml_escape %}
{% ... | {
"content_hash": "5c127b97b720511c9a70db5b73111af3",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 125,
"avg_line_length": 44.96875,
"alnum_prop": 0.6028492008339125,
"repo_name": "yan-foto/oddball",
"id": "bf999d579b14fdc664e983690942e8b418b8a13e",
"size": "2878",
"bi... |
export * from './CanvasSpriteRenderer';
import './Sprite';
| {
"content_hash": "ba7a5eceb018a6f163822b27eecc20c0",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 39,
"avg_line_length": 20,
"alnum_prop": 0.7,
"repo_name": "GoodBoyDigital/pixi.js",
"id": "ce41400ce4c0138f9f544f852caf441975fcd32d",
"size": "60",
"binary": false,
"co... |
<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<htm... | {
"content_hash": "d7c86c7698f780633b6dfc93d839c423",
"timestamp": "",
"source": "github",
"line_count": 359,
"max_line_length": 721,
"avg_line_length": 61.00278551532033,
"alnum_prop": 0.6694520547945205,
"repo_name": "ashleynolan/dg-blog",
"id": "f6463dbb9feff9914c2c63bebf3fa62017422556",
"size": ... |
package com.example.android.miwok;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import java.ut... | {
"content_hash": "948568481974851e91e5c7aff4b8e421",
"timestamp": "",
"source": "github",
"line_count": 207,
"max_line_length": 135,
"avg_line_length": 49.091787439613526,
"alnum_prop": 0.6156268451092305,
"repo_name": "jensgreiner/Miwok",
"id": "6f549466861532bf3eb5ab495a0a00cf5f7b6a23",
"size": "... |
<?php
namespace Q\PvBundle\Resources\Lib;
/**
* Description of Query
*
* @author Isaac
*/
class QueryInsert
{
private $conn;
function __construct($conn)
{
$this->conn = $conn;
}
public function insertProducto($data,$userId)
{
// Hacemos dos... | {
"content_hash": "9c70824ee7a238bc6a2925161090f975",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 95,
"avg_line_length": 32.97435897435897,
"alnum_prop": 0.45204769310523585,
"repo_name": "limonazzo/wpv",
"id": "93d268c1ebaf968882832d1ecc8f72c60a152939",
"size": "3858"... |
.alignCenter {
text-align: center;
}
.alignRight {
text-align: right;
}
.alignLeft {
text-align: left;
}
.alignTop {
vertical-align: top;
}
.alignMiddle {
vertical-align: middle;
}
.alignLeftTop {
text-align: left;
vertical-align: top;
}
.alignBottom {
vertical-ali... | {
"content_hash": "1f1712851e09dff26d95dffcaa3cc911",
"timestamp": "",
"source": "github",
"line_count": 361,
"max_line_length": 79,
"avg_line_length": 17.87534626038781,
"alnum_prop": 0.6135130946846428,
"repo_name": "diedertimmers/oxTrust",
"id": "c3d2644607abf1cf6f60e5f4bb1df103fea4215a",
"size":... |
<link rel="stylesheet" href="apps/about/etc/about.css" type="text/css" />
<div id="about">
<div id="logo_tile">
<img src="apps/about/etc/logo.png" width="335" height="85" alt="oxygen webos" class="logo">
</div>
<p><strong>Copyright (c) 2008 Ionuț Colceriu</strong></p>
<p>
MIT license.
</p>
</div>... | {
"content_hash": "9087c59a2fa0ee7f13b4caa6164ea69d",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 95,
"avg_line_length": 21.4,
"alnum_prop": 0.616822429906542,
"repo_name": "ghinda/oxygenos",
"id": "201c95ff65a6496f8e1122485eca248bb32705de",
"size": "322",
"binary": f... |
import Pipe from "./pipe.js";
import ActiveFilter from "./activeFilter.js";
import OutputPipe from "./pipe2.js;"
import PipeActive from "./pipeActive.js"
import FilterPassive from "./filterPassive.js"
export default class ExampleRun2 {
constructor() {
this.dataSource = "https://lively-kernel.org/lively4/swd21... | {
"content_hash": "17335854e4a5a386f67953a9d2089764",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 128,
"avg_line_length": 29.57758620689655,
"alnum_prop": 0.6356747303993004,
"repo_name": "LivelyKernel/lively4-core",
"id": "bcdba169b4375685a81c2d34def5f75e751da41d",
"s... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2012, The Android Open Source Project
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/licens... | {
"content_hash": "9b9445edc6459a6fd5c31e4d94b3a452",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 90,
"avg_line_length": 46.68421052631579,
"alnum_prop": 0.713641488162345,
"repo_name": "jameliu/Camera2",
"id": "63e78860b01b9172776630dc4fa48ff28f3a8ab1",
"size": "887",
... |
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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:/... | {
"content_hash": "7a9e3fced1ed24f41bf498042f4fdf38",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 87,
"avg_line_length": 27.02247191011236,
"alnum_prop": 0.6952182952182953,
"repo_name": "alxhh/piratenluci",
"id": "510a025d5ba8f3b1a0a01aac3aa8eeec206e1f39",
"size": "48... |
/***
* A Resizer plugin that can be used to auto-resize a grid and/or resize with fixed dimensions.
* When fixed height is defined, it will auto-resize only the width and vice versa with the width defined.
* You can also choose to use the flag "enableAutoSizeColumns" if you want to the plugin to
* automatically ca... | {
"content_hash": "2031890f73c6c9d6f0ab7ddda12c7213",
"timestamp": "",
"source": "github",
"line_count": 305,
"max_line_length": 156,
"avg_line_length": 39.21311475409836,
"alnum_prop": 0.6377090301003344,
"repo_name": "cdnjs/cdnjs",
"id": "53c0bedcaa8694dbe062e72bfb6413248f5ac2c5",
"size": "11960",... |
<?php
namespace JMS\SerializerBundle\Annotation;
/**
* @Annotation
* @Target("PROPERTY")
*/
final class Since extends Version
{
} | {
"content_hash": "8b715adcab08508694974ef64961e0b4",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 42,
"avg_line_length": 10.461538461538462,
"alnum_prop": 0.6911764705882353,
"repo_name": "tribal-mlearning/omlet-web",
"id": "10dc05a9691512989e700e1690db305749c48cc1",
"s... |
package com.amazonaws.services.connectcampaign.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.connectcampaign.model.*;
import com.amazonaws.transform.Marshaller;
impor... | {
"content_hash": "f57a864b58eb7125828633a75dda3674",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 152,
"avg_line_length": 40.80392156862745,
"alnum_prop": 0.7664584334454589,
"repo_name": "aws/aws-sdk-java",
"id": "262908a340ab44ea60987acf9601db7dba0f8f20",
"size": "266... |
/*=========================================================================
*
* Portions of this file are subject to the VTK Toolkit Version 3 copyright.
*
* Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
*
* For complete copyright, license and disclaimer of warranty information
* please refer to t... | {
"content_hash": "8de05400dc8974ae5ee4df516520d5bd",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 80,
"avg_line_length": 32.116279069767444,
"alnum_prop": 0.6788559015206372,
"repo_name": "PlutoniumHeart/ITK",
"id": "1e28669849eabd31398d6f67f29affa7911ab56c",
"size": "3... |
import logging
import unittest
from nose.plugins.attrib import attr
from tests.cook import cli, util
@attr(cli=True)
@unittest.skipUnless(util.multi_cluster_tests_enabled(),
'Requires setting the COOK_MULTI_CLUSTER environment variable')
class MultiCookCliTest(unittest.TestCase):
_multiproc... | {
"content_hash": "ad3e5ef246e63db99ff9cbe002ae979c",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 98,
"avg_line_length": 40.630434782608695,
"alnum_prop": 0.599250936329588,
"repo_name": "m4ce/Cook",
"id": "d389c95c8036836394a5b243b68a0f4e7eb561af",
"size": "1869",
"b... |
<?php
namespace Admingenerator\DoctrineOrmDemoBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
/**
* This is the class th... | {
"content_hash": "d52a9ee7a7998880e35d70df8be9b59c",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 91,
"avg_line_length": 30.84,
"alnum_prop": 0.7600518806744487,
"repo_name": "symfony2admingenerator/symfony2-admingenerator-demo-edition",
"id": "ec1b6653f1c561d3dc7b0de099b... |
<?php
namespace Oro\Bundle\NoteBundle\Migration;
use Doctrine\DBAL\Schema\Schema;
use Oro\Bundle\MigrationBundle\Migration\Migration;
use Oro\Bundle\MigrationBundle\Migration\QueryBag;
class RemoveNoteConfigurationScopeMigration implements Migration
{
/**
* {@inheritdoc}
*/
public function up(Sche... | {
"content_hash": "edc25dca44d2e93acebf08d5975938d3",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 72,
"avg_line_length": 23.05263157894737,
"alnum_prop": 0.7420091324200914,
"repo_name": "Djamy/platform",
"id": "fa83b3ec6fbbc47e1a8ebde2492308acb6d19e1f",
"size": "438",
... |
package crypto
import (
"bytes"
"crypto"
"crypto/ecdsa"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"errors"
"fmt"
"io/ioutil"
"math/big"
mathrand "math/rand"
"net"
"os"
"path/filepath"
"strconv"
"sync"
"time"
"github.com/golang/glog"
"k8s.io/apimachi... | {
"content_hash": "ac5deee127a3bb7f30980f0574a1fa38",
"timestamp": "",
"source": "github",
"line_count": 804,
"max_line_length": 161,
"avg_line_length": 29.55597014925373,
"alnum_prop": 0.7109371712325885,
"repo_name": "smarterclayton/origin",
"id": "635d2e526d327e147e9f900a8a096d05281fc52b",
"size"... |
package types
import (
"encoding/json"
"errors"
"unicode"
)
const (
LinuxCapabilitiesRetainSetName = "os/linux/capabilities-retain-set"
LinuxCapabilitiesRevokeSetName = "os/linux/capabilities-remove-set"
LinuxNoNewPrivilegesName = "os/linux/no-new-privileges"
LinuxSeccompRemoveSetName = "os/linux/se... | {
"content_hash": "423c3a3317e6c70e6bba34d1eee9931a",
"timestamp": "",
"source": "github",
"line_count": 309,
"max_line_length": 103,
"avg_line_length": 22.601941747572816,
"alnum_prop": 0.718069873997709,
"repo_name": "squeed/rkt",
"id": "6cb9a86730edc3b4290d362de1e06ca555d98fad",
"size": "7578",
... |
var Spasm = Spasm || {};
Spasm.RenderMeshStagePart = function (stagePart)
{
Spasm.assertValid(stagePart);
this.stagePart = stagePart;
var shader = stagePart.shader;
var staticTextures = shader ? shader.static_textures : null;
var staticTextureCount = staticTextures && staticTextures.length ? staticT... | {
"content_hash": "8ee6edb77aa99c6ab8ab16735d47cba9",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 94,
"avg_line_length": 29.424242424242426,
"alnum_prop": 0.7445932028836252,
"repo_name": "DestinyDevs/BungieNetPlatform",
"id": "e23c0fe515e594e1032f2be90de226f8f30549d1",
... |
package java.util.zip;
/**
* The Adler32 class is used to compute the Adler32 Checksum from a set of data.
*/
public class Adler32 implements java.util.zip.Checksum {
private long adler = 1;
/**
* Returns the Adler32 checksum for all input received
*
* @return The checksum for this instance
*/
publi... | {
"content_hash": "f020373dfbef7cfe47cd9a3b48ca98cc",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 80,
"avg_line_length": 22.136986301369863,
"alnum_prop": 0.619430693069307,
"repo_name": "freeVM/freeVM",
"id": "2e4e2addc0981f5c170b544034d1da217d4aadcc",
"size": "2420",
... |
import React from 'react';
import personalInfo from '../../../src/info';
import {Col, Row} from 'react-bootstrap';
import ScrollToTopOnMount from '../commons/ScrollToTopOnMount';
const HomePage = () => {
return (
<div>
<ScrollToTopOnMount/>
<div id="homePageTitle">
... | {
"content_hash": "468d379fd45e2d0329bdde9bbc88404b",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 121,
"avg_line_length": 33.12,
"alnum_prop": 0.5120772946859904,
"repo_name": "liutongchen/liutong-chen-website",
"id": "fea7375647730b6079fa2be1f16e7904713b8b77",
"size": ... |
<!--
Copyright SemanticBits, Northwestern University and Akaza Research
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/caaers/LICENSE.txt for details.
-->
<?xml version="1.0" encoding="UTF-8"?><project>
<parent>
<artifactId>parent</artifactId>
<groupId>ctmscaaers<... | {
"content_hash": "06317d2f4dc6ad25772298eac7e3922b",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 74,
"avg_line_length": 29.32967032967033,
"alnum_prop": 0.6350693143499438,
"repo_name": "NCIP/caaers",
"id": "6995c13ae01b818cefb995eccf2e238d74034920",
"size": "2669",
... |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.Enums
(KeyType(..), PToJSVal, ToJSVal, PFromJSVal, FromJSVal,
js_KeyTypeSecret, js_KeyTypePublic, js_KeyTypePrivate,
KeyUsage(..), js_KeyUsageEncrypt, js_KeyUsageDecrypt,
js_KeyUsage... | {
"content_hash": "d42b014f61b4cd07264c7b8da5d0382f",
"timestamp": "",
"source": "github",
"line_count": 771,
"max_line_length": 137,
"avg_line_length": 39.011673151750976,
"alnum_prop": 0.7019083715672585,
"repo_name": "manyoo/ghcjs-dom",
"id": "c1612af099dc8a55c9d1bb930cd3027207d70010",
"size": "3... |
<?php
namespace Omnipay\PayZen\Message;
use Omnipay\Common\Message\AbstractResponse;
/**
* PayZen Complete Purchase Response
*/
class CompletePurchaseResponse extends AbstractResponse implements CardCreationResponseInterface
{
use GetCardInformationTrait;
use GetMetadataTrait;
public function isSucce... | {
"content_hash": "77ecb17ad8ff4d8aa459c56191497ad5",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 97,
"avg_line_length": 25.745454545454546,
"alnum_prop": 0.632768361581921,
"repo_name": "ubitransports/omnipay-payzen",
"id": "103de2eadf3c77d54f726c269efd25233292544f",
"... |
from __future__ import absolute_import
from sentry.api.bases.avatar import AvatarMixin
from sentry.api.bases.organization import OrganizationEndpoint
from sentry.models import OrganizationAvatar
class OrganizationAvatarEndpoint(AvatarMixin, OrganizationEndpoint):
object_type = "organization"
model = Organiza... | {
"content_hash": "ee2097682b4dd47f5240d9b04bccde58",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 68,
"avg_line_length": 33.92857142857143,
"alnum_prop": 0.7768421052631579,
"repo_name": "mvaled/sentry",
"id": "2114eb459d196bdd07fc1d4438babc58668fb9c6",
"size": "475",
... |
package cn.liuyb.app.common.utils.json;
/**
* Convert a web browser cookie specification to a JSONObject and back.
* JSON and Cookies are both notations for name/value pairs.
* @author JSON.org
* @version 2
*/
public class Cookie {
/**
* Produce a copy of a string in which the characters ... | {
"content_hash": "a809b514d00aa6e67f4f0bd4f05b0595",
"timestamp": "",
"source": "github",
"line_count": 147,
"max_line_length": 79,
"avg_line_length": 37.204081632653065,
"alnum_prop": 0.5068568294020844,
"repo_name": "liuyb4016/model_project",
"id": "7f0a12d7e52f0d3bae44cc6e74921b41daebb845",
"siz... |
package ru.job4j.foodstorage.storage;
/**
* Class Warehouse | Implement FoodStorage [#852]
* @author Aleksey Sidorenko (mailto:sidorenko.aleksey@gmail.com)
* @since 26.09.2019
*/
public class Warehouse extends Storage {
private static Storage storage;
private Warehouse() {
}
/**
* Get singl... | {
"content_hash": "88a8a91e653c148fe7bbf58c5858a251",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 65,
"avg_line_length": 22.04,
"alnum_prop": 0.6279491833030852,
"repo_name": "AlekseySidorenko/aleksey_sidorenko",
"id": "3545226185d3a696238430556784a02b5e93fab4",
"size":... |
from __future__ import unicode_literals
import os.path
import sys
import tempfile
import types
import unittest
from contextlib import contextmanager
from django.template import Context, TemplateDoesNotExist
from django.template.engine import Engine
from django.test import SimpleTestCase, ignore_warnings, override_set... | {
"content_hash": "179063ea53a9448a197053d73c8c3924",
"timestamp": "",
"source": "github",
"line_count": 387,
"max_line_length": 98,
"avg_line_length": 37.917312661498705,
"alnum_prop": 0.6332969878697016,
"repo_name": "rynomster/django",
"id": "11f20c6debffd098311ecefe18885fff1ef04d3f",
"size": "14... |
// .NAME vtkPolyData - concrete dataset represents vertices, lines, polygons, and triangle strips
// .SECTION Description
// vtkPolyData is a data object that is a concrete implementation of
// vtkDataSet. vtkPolyData represents a geometric structure consisting of
// vertices, lines, polygons, and/or triangle strips. ... | {
"content_hash": "53b20197191530a040b74071fc13a5d7",
"timestamp": "",
"source": "github",
"line_count": 579,
"max_line_length": 97,
"avg_line_length": 36.870466321243526,
"alnum_prop": 0.7119636499906314,
"repo_name": "cjh1/vtkmodular",
"id": "a8c056dc0026e35a1e6494c7db179488cd5addce",
"size": "219... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
namespace Cheer.JsonVisualizer.CoreServices.Helpers
{
public static class StringHelper
{
public static string MakeSafe(this string s, bool trim = false) =>
string.IsNullOrEmpt... | {
"content_hash": "a2a801ba59d207e8202cabb80e118554",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 85,
"avg_line_length": 37.1578947368421,
"alnum_prop": 0.7067988668555241,
"repo_name": "cheer-cheer/json-visualizer",
"id": "08818acea8c2af883a36b3caa25d7bc4e3dea9e9",
"si... |
module NRSER
module Described
# Definitions
# =======================================================================
# Interface for description hierarchies, which manage the collection of
# {Described::Base} instances available.
#
# ### Semantics
#
# {Hierarchy} presents an {::Enumerable} collection interface, w... | {
"content_hash": "a2c8b2c9d2c3857f3672e0761e8d453f",
"timestamp": "",
"source": "github",
"line_count": 216,
"max_line_length": 80,
"avg_line_length": 28.97685185185185,
"alnum_prop": 0.623422271928423,
"repo_name": "nrser/nrser-ruby",
"id": "ca2d5653c70d05d06a4a332bfdfe5d77df320452",
"size": "6396... |
#include "internal/_deprecated_header_message_guard.h"
#if !defined(__TBB_show_deprecation_message_recursive_mutex_H) && defined(__TBB_show_deprecated_header_message)
#define __TBB_show_deprecation_message_recursive_mutex_H
#pragma message("TBB Warning: tbb/recursive_mutex.h is deprecated. For details, please see D... | {
"content_hash": "ee32cc65027f65fee0d59baaca9a1518",
"timestamp": "",
"source": "github",
"line_count": 234,
"max_line_length": 150,
"avg_line_length": 29.00854700854701,
"alnum_prop": 0.6317030053034767,
"repo_name": "01org/tbb",
"id": "3a3f9794262ba6f70fd3c475424f80720d799ff0",
"size": "7400",
... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
J. Proc. Linn. Soc. , Bot. 3:136. 1859
#### Original name
null
### Remarks
null | {
"content_hash": "d8ed8a2676d6f0ed5a13ae71264b4d1e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 12.923076923076923,
"alnum_prop": 0.6666666666666666,
"repo_name": "mdoering/backbone",
"id": "4cb87525410039e27aa92c8cc3592d9f4654fc38",
"size": "21... |
const Stream = require('mithril/stream');
const _ = require('lodash');
const s = require('helpers/string-plus');
const sparkRoutes = require('helpers/spark_routes');
const AjaxHelper = require('helpers/ajax_helper');
const EnvironmentVariables = r... | {
"content_hash": "b8382ac7a4f86a3082c8fae61c84d4a6",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 121,
"avg_line_length": 30.465753424657535,
"alnum_prop": 0.6510791366906474,
"repo_name": "stevem999/gocd",
"id": "e99111ea8d4ad7fbad7a84c0780cc7b38d0668df",
"size": "2825... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Umbraco.Cms.Core.Models.Validation;
namespace Umbraco.Cms.Core.Models.ContentEditing
{
[DataContract(Name = "entity", Namespace = "")]
public clas... | {
"content_hash": "d53d542c47bdac19a6d83ada70ae8005",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 123,
"avg_line_length": 32.357142857142854,
"alnum_prop": 0.583664459161148,
"repo_name": "KevinJump/Umbraco-CMS",
"id": "772da930e9d3c3867126565af39bc19b499887bb",
"size":... |
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:1.9.0.77
// SpecFlow Generator Version:1.9.0.0
// Runtime Version:4.0.30319.42000
//
// Changes to this... | {
"content_hash": "360bf98975683043ee33329cc12cf2ca",
"timestamp": "",
"source": "github",
"line_count": 256,
"max_line_length": 240,
"avg_line_length": 47.7734375,
"alnum_prop": 0.56443172526574,
"repo_name": "hbulzy/Orchard",
"id": "bb3a5ec7483f1b687def2fde60237e43ee040f72",
"size": "12232",
"bi... |
package builder::MyBuilder;
use strict;
use warnings;
use utf8;
use 5.008_001;
use parent qw(Module::Build);
# Module:::Build's share_dir handling is not good for me.
# We need to install 'tmpl' directories to '$DIST_DIR/tmpl'. But M::B doesn't support it.
sub ACTION_code {
my $self = shift;
my $share_prefix =... | {
"content_hash": "b92f302e1171c92f9d290ad90220418d",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 106,
"avg_line_length": 28.807692307692307,
"alnum_prop": 0.5727636849132176,
"repo_name": "mono0x/ranking.sucretown.net",
"id": "8171c508dcfaeaaa26143e64fdbef84bf5269ae2",
... |
import os
def _get_cache_dir_path():
return os.path.join(os.path.expanduser('~/.local/share'), 'atcoder-tools')
def get_cache_file_path(filename: str):
return os.path.join(_get_cache_dir_path(), filename)
| {
"content_hash": "31529f4de921e0bb536da085185d76b6",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 78,
"avg_line_length": 24.11111111111111,
"alnum_prop": 0.6866359447004609,
"repo_name": "kyuridenamida/atcoder-tools",
"id": "5222f6e99f08b87739e3450139424954dbca207f",
"si... |
(function($) {
$(document).ready(function() {
function optionsframework_add_file(event, selector) {
var upload = $(".uploaded-file"), frame;
var $el = $(this);
event.preventDefault();
// If the media frame already exists, reopen it.
if ( frame ) {
frame.open();
return;
}
// Create... | {
"content_hash": "0a2a11efb5a44a77b70c86c1a720c0b0",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 157,
"avg_line_length": 33.92307692307692,
"alnum_prop": 0.6228269085411943,
"repo_name": "chenp-fjnu/ygyjws",
"id": "d949b7ae2313b5fab8a5e33a4c0d855181efa80e",
"size": "26... |
<?php
namespace Chamilo\Libraries\Test\Unit\Translation;
use Chamilo\Libraries\Architecture\Test\TestCases\ChamiloTestCase;
use Chamilo\Libraries\File\Filesystem;
use Chamilo\Libraries\Translation\PackagesTranslationResourcesFinder;
use Chamilo\Libraries\Translation\TranslationResourcesFinderInterface;
use Chamilo\Lib... | {
"content_hash": "32f8a652f2cd314bcaffa2e04113f4a0",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 119,
"avg_line_length": 33.4,
"alnum_prop": 0.6635063206919495,
"repo_name": "forelo/cosnics",
"id": "b6b43d7aa38f84521fcc9ce1a75ab2afa3e014ae",
"size": "6012",
"binary"... |
<?php
namespace Native5\Core\Ftp;
class FtpConfig {
private $_host;
private $_port;
private $_user;
private $_privateKey;
private $_publicKey;
public function getHost() {
return $this->_host;
}
public function setHost($host) {
$this->_host = $host;
}
public ... | {
"content_hash": "d26d5184e09d022b0107fc9d106467a5",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 48,
"avg_line_length": 17.51851851851852,
"alnum_prop": 0.5623678646934461,
"repo_name": "native5/native5-sdk-common-php",
"id": "a519cd3d2bf8c8451020096ce152a6b00ca53bdf",
... |
package org.semanticweb.elk.reasoner.saturation.rules.subsumers;
import org.semanticweb.elk.reasoner.indexing.model.IndexedClassExpression;
import org.semanticweb.elk.reasoner.saturation.conclusions.model.ClassConclusion;
import org.semanticweb.elk.reasoner.saturation.conclusions.model.SubClassInclusion;
import org.... | {
"content_hash": "35531055cfaebcc764835aeec516eb66",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 84,
"avg_line_length": 38.19230769230769,
"alnum_prop": 0.8167170191339376,
"repo_name": "liveontologies/elk-reasoner",
"id": "4f9992cb63bbbb7e6585c2416b106ad16dcec7f8",
"s... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE193_wchar_t_declare_memcpy_82_goodG2B.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE193.label.xml
Template File: sources-sink-82_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
... | {
"content_hash": "76d3fc959a8534b43faa940852cac337",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 105,
"avg_line_length": 36.94444444444444,
"alnum_prop": 0.6992481203007519,
"repo_name": "maurer/tiamat",
"id": "4284f5c7d77074239cdf70c8436f08fca36963ff",
"size": "1330",... |
#include <argz.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lib/util_base.h"
#include "lib/util_libc.h"
#include "lib/util_list.h"
#include "lib/util_panic.h"
#include "lib/util_prg.h"
#include "lib/util_rec.h"
/*
* Field structure containing the ... | {
"content_hash": "77474c91ad97276290f90fe8900de4bd",
"timestamp": "",
"source": "github",
"line_count": 615,
"max_line_length": 80,
"avg_line_length": 22.320325203252033,
"alnum_prop": 0.6214759233627158,
"repo_name": "ibm-s390-tools/s390-tools",
"id": "c216cf95606a6982af8a4f9c8cb68a1efb61a9ae",
"s... |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>Lewis.SST.SQLMethods</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN... | {
"content_hash": "61fcb84b0504dc013c8278726f558eed",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 129,
"avg_line_length": 36.45569620253165,
"alnum_prop": 0.50625,
"repo_name": "lslewis901/SqlSchemaTool",
"id": "516ccd6fcd91fa6c3a75b77b42b75f472b16251f",
"size": "2880",... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.