text stringlengths 2 1.04M | meta dict |
|---|---|
/*
* This file is programmatically sanitized for style:
* astyle --style=1tbs -f -p -H -j -U t_go_generator.cc
*
* The output of astyle should not be taken unquestioningly, but it is a good
* guide for ensuring uniformity and readability.
*/
#include <fstream>
#include <iostream>
#include <limits>
#include <st... | {
"content_hash": "46e4c335dcb4cd41ff6ce1d96f4f9e8a",
"timestamp": "",
"source": "github",
"line_count": 3622,
"max_line_length": 158,
"avg_line_length": 36.65571507454445,
"alnum_prop": 0.539139997137843,
"repo_name": "tanmaykm/thrift",
"id": "6cce32bcc4b0132db7690cbb61bdae24b31e1f88",
"size": "133... |
@implementation PDDataSource
- (id)init
{
self = [super init];
if (self) {
_energyEnhancer = @"Spinach";
_energyEnhancer2 = @"Mushroom";
_energyEnhancer3 = @"Potion";
_enhancers = @[@"Spinach", @"Mushroom", @"Potion", @"Star", @"Flower", @"Shell", @"Berry"];
}
r... | {
"content_hash": "271ba20118b4e584d6556d1cffdf80ad",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 99,
"avg_line_length": 21.25,
"alnum_prop": 0.5264705882352941,
"repo_name": "MosheBerman/demo-passing-data",
"id": "d9fd66cd4b3ab29dc3a9c35392a85e48602a7161",
"size": "509... |
#ifndef BONES_CORE_ROOT_MANAGER_H_
#define BONES_CORE_ROOT_MANAGER_H_
#include "root.h"
#include <vector>
namespace bones
{
class Root;
class RootManager
{
public:
~RootManager();
Root * getRoot(int index) const;
size_t getRootCount() const;
void add(Root * root);
void remove(Root * root);
... | {
"content_hash": "bce50ee920970e2cb5e0917e3c48a5b8",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 37,
"avg_line_length": 12.696969696969697,
"alnum_prop": 0.6443914081145584,
"repo_name": "bonescreater/bones",
"id": "437e131a5898c9d96587e170e02d3392bebd47b7",
"size": "4... |
package com.thirdpart.widget;
import android.R.integer;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathEffect;
import android.util.AttributeSe... | {
"content_hash": "396f1d8a750471472357da4908b37a3a",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 57,
"avg_line_length": 26.76086956521739,
"alnum_prop": 0.6125101543460602,
"repo_name": "cdut007/PMS_TASK",
"id": "5200dca8d31b31fa8a64a26adf23e142155e981c",
"size": "1231... |
<div data-element="editor-languages" ng-controller="Umbraco.Editors.Languages.OverviewController as vm" class="clearfix">
<umb-editor-view footer="false">
<umb-editor-header name="vm.page.name"
name-locked="true"
hide-icon="true"
... | {
"content_hash": "0cade4a9c7e35a13720162e4a7fef3b2",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 144,
"avg_line_length": 44.901234567901234,
"alnum_prop": 0.39318119329117407,
"repo_name": "elmahio/elmah.io.umbraco",
"id": "15a9c84367dde75849de33d3bc0a2300ac84f3fb",
"s... |
class AddIndexToDictionaries < ActiveRecord::Migration
def change
add_index :dictionaries, :name, :unique => true
end
end
| {
"content_hash": "2533bf0373ad8e9c95c29b1dd589d72c",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 54,
"avg_line_length": 26,
"alnum_prop": 0.7461538461538462,
"repo_name": "gwinbleidd/parser",
"id": "6858272732d7dbf0e79b3552f66d26b50ebbb5a1",
"size": "130",
"binary": f... |
<?php
namespace OCP\Files\Mount;
/**
* Interface IMountManager
*
* Manages all mounted storages in the system
* @since 8.2.0
*/
interface IMountManager {
/**
* Add a new mount
*
* @param \OCP\Files\Mount\IMountPoint $mount
* @since 8.2.0
*/
public function addMount(IMountPoint $mount);
/**
* Re... | {
"content_hash": "cc0a0f37bcd4c4ec3f1f2bd1ecc3375a",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 49,
"avg_line_length": 16.655172413793103,
"alnum_prop": 0.621808143547274,
"repo_name": "phil-davis/core",
"id": "79a1cec2164b4bb56d35e7c413c90380dc642341",
"size": "2239"... |
action="$1"
shift
extra_args="$*"
project_dir=$(dirname $(dirname $(readlink -f $0)))
cd $project_dir
[ -e .env ] && . .env
run_ansible()
{
playbook="$1"
./scripts/update-secrets.sh
cd ansible
ansible-playbook plays/$playbook.yml $extra_args
cd ..
}
migrate_db()
{
python manage.py makemigrations --noinpu... | {
"content_hash": "0a3777b1963ef57ee35c3d82cc3fe687",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 105,
"avg_line_length": 21.602150537634408,
"alnum_prop": 0.649079143852663,
"repo_name": "ivandeex/dz",
"id": "9a105abaff5051362a360196ba7a80191df4e031",
"size": "2021",
... |
#include <stdio.h>
#include "as.h"
#include "safe-ctype.h"
#include "subsegs.h"
#include "symcat.h"
#include "opcodes/fr30-desc.h"
#include "opcodes/fr30-opc.h"
#include "cgen.h"
/* Structure to hold all of the different components describing
an individual instruction. */
typedef struct
{
const CGEN_INSN * ins... | {
"content_hash": "b1531922b58264ee563bad7170fb9cec",
"timestamp": "",
"source": "github",
"line_count": 480,
"max_line_length": 86,
"avg_line_length": 26.33125,
"alnum_prop": 0.6105704565234591,
"repo_name": "shaotuanchen/sunflower_exp",
"id": "34c9f42e4bb9c25f17943d7b4d3a151d843427c0",
"size": "13... |
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('GET_EDIT_TEMPLATES', 'newpm,insertpm,showpm');
define('THIS_SCRIPT', 'private');
define('CSRF_PROTECTION', t... | {
"content_hash": "29b06a104a1926ceb75d163e427ae8e7",
"timestamp": "",
"source": "github",
"line_count": 2349,
"max_line_length": 272,
"avg_line_length": 34.371647509578544,
"alnum_prop": 0.5902971302592304,
"repo_name": "jessadayim/findtheroom",
"id": "381e6fb8b6057ea4dfe56580030c7bc678ca96a6",
"si... |
package org.apache.ignite.loadtests.communication;
import java.io.IOException;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Map;
import java.util.Random;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownL... | {
"content_hash": "ea56d20abc5a7bb38f2223bd1e4df3cc",
"timestamp": "",
"source": "github",
"line_count": 331,
"max_line_length": 120,
"avg_line_length": 31.92749244712991,
"alnum_prop": 0.557437547312642,
"repo_name": "NSAmelchev/ignite",
"id": "0ab8246fccc01489a8bc0a4236259c6dadbfb223",
"size": "11... |
#region License
// Copyright (c) 2007 - 2014, Northwestern University, Vladimir Kleper, Skip Talbot
// and Pattanasak Mongkolwat.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// Redi... | {
"content_hash": "887ef15a021befc6e36756fa9ea89ac5",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 83,
"avg_line_length": 48.4375,
"alnum_prop": 0.7772043010752688,
"repo_name": "NCIP/annotation-and-image-markup",
"id": "4849fe5fb766bff653a7e193912d53ebb5e2c3f6",
"size":... |
package edu.usc.corral.db.sqlite;
import edu.usc.corral.db.sql.SQLSiteDAO;
public class SQLiteSiteDAO extends SQLSiteDAO
{
public SQLiteSiteDAO(SQLiteDatabase db)
{
super(db);
}
}
| {
"content_hash": "d9587bc6e052578a9f9d03ae3dcb5492",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 45,
"avg_line_length": 15.75,
"alnum_prop": 0.7566137566137566,
"repo_name": "juve/corral",
"id": "a263736c9f754e47adc40cfc003a5d04aa457fa8",
"size": "816",
"binary": fal... |
import copy
import collections
from nose.tools import assert_equal, assert_raises, assert_true
from voluptuous import (
Schema, Required, Optional, Extra, Invalid, In, Remove, Literal,
Url, MultipleInvalid, LiteralInvalid, NotIn, Match, Email,
Replace, Range, Coerce, All, Any, Length, FqdnUrl, ALLOW_EXTRA,... | {
"content_hash": "603925de09f9d0f92e54bfba6933d271",
"timestamp": "",
"source": "github",
"line_count": 785,
"max_line_length": 120,
"avg_line_length": 30.947770700636944,
"alnum_prop": 0.5983782003786944,
"repo_name": "SimplyKnownAsG/voluptuous",
"id": "6b320ef2ee3d1898467f318f9f9dfeb22f641079",
"... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectTasksOptions">
<TaskOptions isEnabled="true">
<option name="arguments" value="--no-color $FileName$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" value="Compiles .less files int... | {
"content_hash": "9c3f39ea51797a09b61c62e01d53c2a6",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 97,
"avg_line_length": 44.32258064516129,
"alnum_prop": 0.6135371179039302,
"repo_name": "SebastianCorrea96/SebastianCorrea96.github.io",
"id": "d7750ffa19b63e1da2d8a1ff57e29... |
<%#
Copyright 2013-2018 the original author or authors from the JHipster project.
This file is part of the JHipster project, see http://www.jhipster.tech/
for more information.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You ma... | {
"content_hash": "cb6283e05a57e8171a1678a9e69ff2c2",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 96,
"avg_line_length": 37.18032786885246,
"alnum_prop": 0.7442680776014109,
"repo_name": "gzsombor/generator-jhipster",
"id": "67f6e0ae6aee401dfc2a1091b1e8302b69af6ccc",
"... |
namespace base {
const SyncSocket::Handle SyncSocket::kInvalidHandle = kInvalidPlatformFile;
SyncSocket::SyncSocket() = default;
SyncSocket::SyncSocket(Handle handle) : handle_(handle) {}
SyncSocket::SyncSocket(ScopedHandle handle) : handle_(std::move(handle)) {}
SyncSocket::~SyncSocket() = default;
SyncSocket::S... | {
"content_hash": "f970f2e82e2d6680f6543a08f7ab8ed1",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 75,
"avg_line_length": 26.16,
"alnum_prop": 0.7599388379204893,
"repo_name": "nwjs/chromium.src",
"id": "8ed46ae811c08e1257dcb54f39b5405b08f4d702",
"size": "829",
"binary... |
import {SelectorMatcher} from "angular2/src/core/compiler/selector";
import {CssSelector} from "angular2/src/core/compiler/selector";
import {StringWrapper, Math} from 'angular2/src/facade/lang';
import {ListWrapper} from 'angular2/src/facade/collection';
import {getIntParameter, bindAction} from 'angular2/src/test_lib... | {
"content_hash": "a70a35048f80e49033354ab4abe32e62",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 81,
"avg_line_length": 26.270588235294117,
"alnum_prop": 0.6502463054187192,
"repo_name": "caitp/angular",
"id": "846b1885fedb83b29adc0037e96d919c24d3629d",
"size": "2233",... |
// ----------------------
// xTask Framework
// ----------------------
// Copyright (c) Jeremy W. Kuhne. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace XTask.Tests.Logging
{
using System;
using FluentAssertions;
usin... | {
"content_hash": "023970144b64530f5809006e371b0103",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 101,
"avg_line_length": 30.131147540983605,
"alnum_prop": 0.5826985854189336,
"repo_name": "JeremyKuhne/XTask",
"id": "ba7f2b13829219d94e41808d738476844613dbf5",
"size": "1... |
namespace WhoSol.Contracts
{
public class BootstrapperStartInfo
{
public string ServiceName { get; set; }
public string[] Dependencies { get; set; }
public string LogFile { get; set; }
public bool ConsoleLog { get; set; }
public bool EventLog { get; set; }
... | {
"content_hash": "8a2388d6712bb40701206277fffe46af",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 54,
"avg_line_length": 21.55,
"alnum_prop": 0.6078886310904872,
"repo_name": "whosol/AppBootstrap",
"id": "d329d05a1e3ff880702578f8c4e90f2a2a56f350",
"size": "433",
"bina... |
import unittest
from django.test import TestCase
from django.test.client import Client
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from onadata.apps.main.views import profile
class TestUserProfile(TestCase):
def setup(self):
self.client = Client()
se... | {
"content_hash": "ee68b3b3f5671990e9ad00e3f8607fe7",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 79,
"avg_line_length": 34.7032967032967,
"alnum_prop": 0.5595313489550349,
"repo_name": "awemulya/fieldsight-kobocat",
"id": "a924d9c7b32847e14dd7894b8d2f406387b7b23b",
"si... |
package com.google.cloud.teleport.v2.templates;
import com.google.cloud.teleport.metadata.Template;
import com.google.cloud.teleport.metadata.TemplateCategory;
import com.google.cloud.teleport.metadata.TemplateParameter;
import com.google.cloud.teleport.v2.cdc.sources.DataStreamIO;
import com.google.cloud.teleport.v2... | {
"content_hash": "3b8d60877960ff6086a05f30ceb06fb0",
"timestamp": "",
"source": "github",
"line_count": 375,
"max_line_length": 172,
"avg_line_length": 37.72266666666667,
"alnum_prop": 0.67990951505726,
"repo_name": "GoogleCloudPlatform/DataflowTemplates",
"id": "7fbb65298113a669687ab8b0dfca07f86ec32... |
"""Django settings for FinSL-signbank, base settings shared by all settings files."""
from __future__ import unicode_literals
from __future__ import print_function
import os
import sys
from django.utils.translation import ugettext_lazy as _
try:
# settings_secret.py is imported in this settings file, you should ... | {
"content_hash": "e07e16ae455870909778bc1693d7c970",
"timestamp": "",
"source": "github",
"line_count": 167,
"max_line_length": 120,
"avg_line_length": 39.10179640718563,
"alnum_prop": 0.7134762633996937,
"repo_name": "Signbank/FinSL-signbank",
"id": "1339410ffe0fa10aa46c79c519e9a589e678e815",
"siz... |
static int check_failures = 0;
#define CHECK(cond) do { \
if (!(cond)) { \
puts("Check failed: " #cond); \
++check_failures; \
} \
} while (0)
// We need to do some "n... | {
"content_hash": "68c821d8d9b80cbfe77e431758c4dec3",
"timestamp": "",
"source": "github",
"line_count": 345,
"max_line_length": 79,
"avg_line_length": 37.344927536231886,
"alnum_prop": 0.6248059608817138,
"repo_name": "madscientist/google-coredumper",
"id": "8c54a1cdeb09d2f4e3025827943b0d9a1dbe11ba",... |
import remoteFileObjToLocal from '@uppy/utils/lib/remoteFileObjToLocal'
export default class SharedHandler {
constructor (plugin) {
this.plugin = plugin
this.filterItems = this.filterItems.bind(this)
this.toggleCheckbox = this.toggleCheckbox.bind(this)
this.recordShiftKeyPress = this.recordShiftKeyPr... | {
"content_hash": "a50b886ecc20f0dd0c010a350f32ec07",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 90,
"avg_line_length": 35.01,
"alnum_prop": 0.6663810339902885,
"repo_name": "transloadit/uppy",
"id": "e7af174116c3641fef01789c1a3830c382f6117c",
"size": "3501",
"binar... |
define(function (require) {
var settings = require("settings");
var updateBPM = function (args) {
var bpm = parseInt(args.bpm, 10);
var newBPM;
if (isNaN(bpm))
newBPM = settings.bpmDefault;
else if (bpm < settings.bpmMinimum)
newBPM = settings.bpmMinimum;
else if (bpm > settings.bpmMaximum)
newBP... | {
"content_hash": "6dc18dedcb8a9eabdf2fcb570a624bcd",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 37,
"avg_line_length": 20.523809523809526,
"alnum_prop": 0.6774941995359629,
"repo_name": "stuartkeith/webaudiosequencer",
"id": "e0eb2d596d4ad1087147363fee9b4eeb59080ccc",
... |
from . import animator
from . import movingfft
from . import widgets
| {
"content_hash": "83be7d64c4f8390e54dfb6676935c707",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 23,
"avg_line_length": 23,
"alnum_prop": 0.782608695652174,
"repo_name": "twoodford/audiovisualizer",
"id": "c2ff3144d26107e81f19ad76d0a1a4b3504b36a0",
"size": "589",
"bin... |
module RailsDatatables
def datatable(columns, opts={})
sort_by = opts[:sort_by] || nil
additional_data = opts[:additional_data] || {}
search = opts[:search].present? ? opts[:search].to_s : "true"
search_label = opts[:search_label] || "Search"
processing = opts[:processing] || "Processing"
pers... | {
"content_hash": "16af2c2dcce683d8f5de075e35284079",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 106,
"avg_line_length": 35.876543209876544,
"alnum_prop": 0.5399174122505161,
"repo_name": "phronos/rails_datatables",
"id": "68bc52d9b82b5bc5f95af8a9aab27b1df48b734e",
"si... |
"""
Script to run benchmarks (used by regression tests)
"""
import os
import os.path
import sys
import csv
from LogManager import LoggingManager
def printf(format, *args):
sys.stdout.write(format % args)
_log = LoggingManager.get_logger(__name__)
def isexec (fpath):
if fpath == None: return False
return... | {
"content_hash": "773405931d27a3c55ff6541881237599",
"timestamp": "",
"source": "github",
"line_count": 171,
"max_line_length": 68,
"avg_line_length": 27.280701754385966,
"alnum_prop": 0.5592711682743837,
"repo_name": "sav-tools/covenant",
"id": "1a50fd35406fe0a005a7dc367e0b64072e649352",
"size": "... |
/*! core engine; version: 20130725 */
;(function($) {
"use strict";
var version = '20130725';
$.fn.cycle = function( options ) {
// fix mistakes with the ready state
var o;
if ( this.length === 0 && !$.isReady ) {
o = { s: this.selector, c: this.context };
$.fn.cycle.log('requeuing slide... | {
"content_hash": "a4e640254c831ed26f33fc385e96cb99",
"timestamp": "",
"source": "github",
"line_count": 1504,
"max_line_length": 124,
"avg_line_length": 31.465425531914892,
"alnum_prop": 0.5062547544586257,
"repo_name": "jhernani/laurente_goj_godez_canete",
"id": "381011b80507b353d3876e4e5977c2a5e7da... |
package org.onvif.ver10.schema;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.ToStrin... | {
"content_hash": "2cd830bd4e566b8bd734296c7cf6aff7",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 127,
"avg_line_length": 29,
"alnum_prop": 0.6547569588699627,
"repo_name": "fpompermaier/onvif",
"id": "9d8b37747d83dbdfbba461ee18c5558739252382",
"size": "2407",
"binary... |
<PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://localhost:8080/source/schemas/poSource/xsd/purchaseOrder.xsd">
<Reference>LSMITH-20021009123337323PDT</Reference>
<Actions>
<Action>
<User>KPARTNER</User>
</Action>
</Actions>
... | {
"content_hash": "50e15a9c736db7a3c7307be0f39f307c",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 169,
"avg_line_length": 40.15702479338843,
"alnum_prop": 0.6056801811072237,
"repo_name": "kengardiner/db-sample-schemas",
"id": "8aa847b7617798c4bd1b183827c620ea46a57211",
... |
<!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_45) on Sat Sep 19 17:53:03 EDT 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface com.thinka... | {
"content_hash": "df39d3467e4da8ce2c6d93300b8d225f",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 442,
"avg_line_length": 45.61764705882353,
"alnum_prop": 0.6548033526756931,
"repo_name": "nelmiux/CarnotKE",
"id": "e04a92da478f8a2d00cec8cc0fc663892f19887f",
"size": "77... |
package project.fantalk.api.fanfou;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import project.fantalk.api.Ut... | {
"content_hash": "4467ac8347acbe8f6c419037c201bd3f",
"timestamp": "",
"source": "github",
"line_count": 235,
"max_line_length": 89,
"avg_line_length": 26.43404255319149,
"alnum_prop": 0.5695428203477141,
"repo_name": "cndoublehero/FanTalk",
"id": "6ed0caee2809605353b534705a7aa6a9733b466d",
"size": ... |
package me.ilbba.blog.util;
import java.util.ArrayList;
import java.util.List;
/**
* 类型枚举类
*
* @author liangbo
* @date 2016/4/1 22:45
*/
public class TypeEnum {
/**
* 内容表可以扩展出来的类型
*
* post(文章) draft(草稿) page(页面) link(链接) attachment(文件)
*/
public enum ContentType {
post("p... | {
"content_hash": "7528685b00e222d87c6880abc0f06e9f",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 78,
"avg_line_length": 19.243243243243242,
"alnum_prop": 0.4948501872659176,
"repo_name": "amuguelove/blog",
"id": "23fa46e0bab21cdfb3bc58971b3a097a8bfc26b1",
"size": "223... |
import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
db = SQLAlchemy(app)
# Set secret key for sessions
app.secret_key = os.environ.get('SECRET_KEY')
import calm_temple_8514.index
| {
"content_hash": "977456f10a219c71e46847ac68ae3d35",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 45,
"avg_line_length": 20.545454545454547,
"alnum_prop": 0.7566371681415929,
"repo_name": "LauriKauhanen/calm-temple-8514",
"id": "fb81bfd8132a11b2fa3c26edaf1e174cbbeea7e9",
... |
server-http: server-http.c
gcc server-http.c -o server-http
web-get: webget.c
gcc webget.c -o webget
server-tcp: server-tcp.c
gcc server-tcp.c -o server-tcp
client-tcp: client-tcp.c
gcc client-tcp.c -o client-tcp
server-udp: server-udp.c
gcc server-udp.c -o server-udp
client-udp: client-udp.c
gcc client-udp.... | {
"content_hash": "39ff7121871fa19197b63c08e34a5709",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 48,
"avg_line_length": 18.761904761904763,
"alnum_prop": 0.7284263959390863,
"repo_name": "zhangwei1984/adv-net-samples",
"id": "468b93877e221840d3f1806d4317d32b1bbda435",
... |
class AuthTokenVerifier
attr_reader :errors
def initialize(token, member)
@token = token
@errors = []
@member = member
end
def verify
if no_matching_authentication
@errors << I18n.t('confirmation_mailer.follow_up_page.account_not_found')
else
check_authentication
end
s... | {
"content_hash": "9d1e37b89096be2cbabefed45f35ad38",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 87,
"avg_line_length": 19.146341463414632,
"alnum_prop": 0.6840764331210191,
"repo_name": "SumOfUs/Champaign",
"id": "fe1166a019d207377e950a1fe0a1b8412c343fee",
"size": "81... |
#ifndef SHADOWFLARE_MPQ_API_INCLUDED
#define SHADOWFLARE_MPQ_API_INCLUDED
#include <windows.h>
#ifndef SFMPQ_STATIC
#ifdef SFMPQAPI_EXPORTS
#define SFMPQAPI __declspec(dllexport)
#else
#define SFMPQAPI __declspec(dllimport)
#endif
#else
#define SFMPQAPI
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef stru... | {
"content_hash": "14cbca1936ede4e7c6a1e44398902f38",
"timestamp": "",
"source": "github",
"line_count": 300,
"max_line_length": 231,
"avg_line_length": 56.91,
"alnum_prop": 0.7770163415919874,
"repo_name": "actboy168/wc3mapmax",
"id": "7fe313d3438da68c84fbc662c45a5cf7fa50a59e",
"size": "24198",
"... |
<?php
namespace WalmartApiClient\Entity\Collection;
/**
* @SuppressWarnings(PHPMD)
*/
class AbstractCollectionTest extends \PHPUnit_Framework_TestCase
{
/**
* @test
* @covers WalmartApiClient\Entity\Collection\AbstractCollection::__construct
*/
public function testConstruct()
{
... | {
"content_hash": "ec4199524f18e14c7b570887a5ecda41",
"timestamp": "",
"source": "github",
"line_count": 190,
"max_line_length": 136,
"avg_line_length": 32.11578947368421,
"alnum_prop": 0.6184857423795477,
"repo_name": "Gadoma/walmart-api-php-client",
"id": "7357dbbfeab42d0c9e31a357f44ee24f76654e4c",
... |
//
// CVKHierarchySearcher.h
// CVKHierarchySearcher
//
// Created by Romans Karpelcevs on 12/10/14.
// Copyright (c) 2014 Romans Karpelcevs. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CVKHierarchySearcher : NSObject
/**
* 顶层controller
*/
@property (nonatomic, readonly) UIViewController *top... | {
"content_hash": "96e261eac6a330bacbf8baa4db1798cc",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 84,
"avg_line_length": 19.258064516129032,
"alnum_prop": 0.7537688442211056,
"repo_name": "YANGWW-512113110/JWCategory",
"id": "e0277229878024339d95d1d7204f0fbb57b7d5a2",
"... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>表单设计器 - 清单</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" >
<link rel="stylesheet" href... | {
"content_hash": "9c4cb3142be0795aff8818c93557489c",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 117,
"avg_line_length": 45.36585365853659,
"alnum_prop": 0.6483870967741936,
"repo_name": "ppcxy/cyfm",
"id": "8ff1ea7e5f5dfd692f997b40416db8300c5483c2",
"size": "1942",
... |
/* Listing 47-10 */
/* binary_sems.c
Implement a binary semaphore protocol using System V semaphores.
*/
#include <sys/types.h>
#include <sys/sem.h>
#include "semun.h" /* Definition of semun union */
#include "binary_sems.h"
Boolean bsUseSemUndo = FALSE;
Boolean bsRetryOnEintr = TRUE;
int ... | {
"content_hash": "793ae6077e3fca5050a06d933a9aa14c",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 75,
"avg_line_length": 23.1875,
"alnum_prop": 0.601078167115903,
"repo_name": "andrestc/linux-prog",
"id": "c85b80ced87bce283754837c2595ae64255b792b",
"size": "2167",
"bi... |
package org.limmen.mystart.importer;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.... | {
"content_hash": "49a8f392588f7eb16fe7a23894236a3c",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 122,
"avg_line_length": 31.135135135135137,
"alnum_prop": 0.7083333333333334,
"repo_name": "IvoLimmen/mystart",
"id": "b19be9a94d98a734f86a3a2a2154f812df52d796",
"size": "1... |
package com.helger.graph.impl;
import java.util.function.Consumer;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.concurrent.NotThreadSafe;
import com.helger.commons.ValueEnforcer;
import com.helger.commons.annotation.ReturnsMutableCopy;
import com.helger.commons.collecti... | {
"content_hash": "0600e580fab482cbe2e95ba3a730caa7",
"timestamp": "",
"source": "github",
"line_count": 324,
"max_line_length": 140,
"avg_line_length": 32.873456790123456,
"alnum_prop": 0.7053797765468032,
"repo_name": "phax/ph-commons",
"id": "c9e066b7abb6015e565addf7679480c556a7134a",
"size": "11... |
package gospy
import (
"errors"
"fmt"
"github.com/cfmobile/gmock"
"reflect"
)
type ArgList []interface{}
type CallList []ArgList
type GoSpy struct {
calls CallList
mock *gmock.GMock
}
func Spy(targetFuncPtr interface{}) *GoSpy {
spy := createSpy(targetFuncPtr)
defaultFn := spy.getDefaultFn()
spy.setTarge... | {
"content_hash": "b825e1e5851efa50aade469e1618c644",
"timestamp": "",
"source": "github",
"line_count": 171,
"max_line_length": 145,
"avg_line_length": 25.573099415204677,
"alnum_prop": 0.7212439972558884,
"repo_name": "cfmobile/gospy",
"id": "4c976ac6e71354a14af87150aa61e1dac3ad1a88",
"size": "437... |
//
// Copyright 2018 SenX S.A.S.
//
// 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... | {
"content_hash": "7a02fe0f6cdd5ba5f019f8b6a53a9ec9",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 107,
"avg_line_length": 30.80392156862745,
"alnum_prop": 0.732017823042648,
"repo_name": "hbs/warp10-platform",
"id": "bdb3329d48f9e7ad4e86f0bc02fe8aa9afecaeca",
"size": "1... |
body{padding-top:50px;padding-bottom:20px}
.panel-heading a:after{font-family:'Glyphicons Halflings';content:"\e114";float:right;color:grey}
.panel-heading a.collapsed:after{content:"\e080"}
#node-to-load{font-size:2em}
#node-to-load input{width:2.5em;text-align:left} | {
"content_hash": "bca74a71b32d1a6b39406b61d857ddf3",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 97,
"avg_line_length": 53.6,
"alnum_prop": 0.7761194029850746,
"repo_name": "legovaer/headless-drupal-angular",
"id": "f29d46ec8df4ae3a39f8577b6864219a3bcb0fa2",
"size": "26... |
function [accuracy, sumCM, runTime] = ABClassify(numLearns)
format long;
format compact;
load partitions;
numClasses = length(getlevels(fileClassLabel));
ABCM = zeros(numClasses, numClasses, cvParts.NumTestSets);
runTime = zeros(2,cvParts.NumTestSets);
allClassLabelDouble = mat2cell(Y,repmat(1997... | {
"content_hash": "6071d39cd1a9c8a68d11a3aa1e2c0651",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 124,
"avg_line_length": 32.0625,
"alnum_prop": 0.6978557504873294,
"repo_name": "rohit21122012/Acoustic-Scenes",
"id": "cfb48551320d53d5bd41d689fac5bc50a07d706f",
"size": "... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Folia geobot. phytotax. 21(2): 211 (1986)
#### Original name
Logilvia Vezda
### Remarks
null | {
"content_hash": "8e379dd36456ca3c7ae90fb52bbcd347",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 41,
"avg_line_length": 13.923076923076923,
"alnum_prop": 0.7016574585635359,
"repo_name": "mdoering/backbone",
"id": "dfc3a188117639b61336af317f4c7587f0792e26",
"size": "21... |
"""
:author: David Siroky (siroky@dasir.cz)
:license: MIT License (see LICENSE.txt or
U{http://www.opensource.org/licenses/mit-license.php})
Picklers must have functions C{loads()}, C{dumps()} and base exception
C{PickleError}.
"""
import traceback
import pickle
import threading
import uuid
import warnings
... | {
"content_hash": "406506f8b2798aacaee5fba0c1652db1",
"timestamp": "",
"source": "github",
"line_count": 492,
"max_line_length": 87,
"avg_line_length": 34.959349593495936,
"alnum_prop": 0.4669186046511628,
"repo_name": "dsiroky/snakemq",
"id": "754360b78f6566a00c5a5bc24d56cf5b30885c20",
"size": "172... |
package model
import (
"net/http"
"regexp"
)
const (
GroupSourceLdap GroupSource = "ldap"
GroupSourceCustom GroupSource = "custom"
GroupNameMaxLength = 64
GroupSourceMaxLength = 64
GroupDisplayNameMaxLength = 128
GroupDescriptionMaxLength = 1024
GroupRemoteIDMaxLength = 48
)
type GroupSour... | {
"content_hash": "4803e8ecde360fe867fcb11b584fde9e",
"timestamp": "",
"source": "github",
"line_count": 228,
"max_line_length": 191,
"avg_line_length": 28.50438596491228,
"alnum_prop": 0.7044160640098477,
"repo_name": "42wim/matterircd",
"id": "428c431a676d230ec236b459b804a734cd965795",
"size": "66... |
/* ___ _ ___ _ _ *\
** / __| |/ (_) | | The SKilL Generator **
** \__ \ ' <| | | |__ (c) 2013 University of Stuttgart **
** |___/_|\_\_|_|____| see LICENSE ... | {
"content_hash": "3a7011d40e6cb5942ee281fba0a477de",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 110,
"avg_line_length": 40.71666666666667,
"alnum_prop": 0.5931232091690545,
"repo_name": "XyzNobody/skill",
"id": "e98063d5d8a82f21f284a9b72350dd200cd1566c",
"size": "2443... |
'use strict';
const arrayFrom = require('./util').arrayFrom;
/**
* [reduce description]
* @param {Array|Iterable} iterable Array, iterator, or anything with a compliant `Symbol.iterator` or `@@iterator` property
* @param {function} reducer Reducer that takes the same argument profile as Array#reduce
* @param {... | {
"content_hash": "2508509c4f1a67ff7874e0edaedf8e64",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 125,
"avg_line_length": 35.34615384615385,
"alnum_prop": 0.6833514689880305,
"repo_name": "jaawerth/swear",
"id": "7ecad81d2f4bf88131383061e7dcd94fcacbd6f2",
"size": "919",... |
<!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_111) on Thu Nov 02 14:33:41 CDT 2017 -->
<title>Uses of Class lx4p.LXHueInterface</title>
<meta name="date" content="2017-11-02">
<link rel="st... | {
"content_hash": "f7339e3b88379f88d2dfa6d941f33f33",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 112,
"avg_line_length": 32.31147540983606,
"alnum_prop": 0.6212582445459158,
"repo_name": "claudeheintz/LXforProcessing",
"id": "c737ef957fcd9450e72d2605e7f510405636bd0d",
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddLastUsedAtToTagsTable extends Migration
{
use SchemaBuilder;
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
S... | {
"content_hash": "27530a872e3562bdad45f931c9021927",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 60,
"avg_line_length": 24.93103448275862,
"alnum_prop": 0.5228215767634855,
"repo_name": "adam-boduch/coyote",
"id": "4552dc480c85e236acae31fe61d857059f429bd5",
"size": "14... |
/**
* @module Sysmanager
*/
/**
* Panelwidget which lists all sysmanager modules
*
* @class SysmanagerModules
* @namespace Todoyu.Ext.sysmanager.PanelWidget
*/
Todoyu.Ext.sysmanager.PanelWidget.SysmanagerModules = {
/**
* Reference to extension
*
* @property ext
* @type Object
*/
ext: Todoyu.Ex... | {
"content_hash": "401eb970fcb2404c9c309d6e3b4cdea8",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 56,
"avg_line_length": 14,
"alnum_prop": 0.6233082706766917,
"repo_name": "JoAutomation/todo-for-you",
"id": "e9af109bc1befe8c7a59b5704cf4cf498ca0dee3",
"size": "2147",
"... |
from django.template.defaulttags import register
import pytz
import json
@register.filter
def get_item(dictionary, key):
return dictionary.get(key)
| {
"content_hash": "fc59701d852146d231c89bc1d2c114d4",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 48,
"avg_line_length": 19.25,
"alnum_prop": 0.7922077922077922,
"repo_name": "FabianWe/foodle",
"id": "7046b60d0eae28130c8e2ab173a744a992892026",
"size": "1306",
"binary":... |
<?php
return [
[
"./tests/vulntestsuite/CWE_862_Fopen__GET__ternary_white_list__fopen.php", []
],
[
"./tests/vulntestsuite/CWE_862_Fopen__GET__whitelist_using_array__fopen.php", []
],
[
... | {
"content_hash": "3dadfdc4a07208772c5a57c6bc2e0111",
"timestamp": "",
"source": "github",
"line_count": 6378,
"max_line_length": 173,
"avg_line_length": 35.71135152085293,
"alnum_prop": 0.4730843361856634,
"repo_name": "designsecurity/progpilot",
"id": "ed7cd555ab2f241ec868110ce1925391984dda9c",
"s... |
function dateAutomater($compile) {
"ngInject";
return {
transclude: true,
template: require('./dateAutomater.html'),
restrict: 'AE',
link: function ($scope, element, attrs) {
$scope.dateInfo = $scope.dateInfo || {};
var dateInfo = $scope.dateInfo,
... | {
"content_hash": "defa60929f925208e441caf71befb852",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 80,
"avg_line_length": 38.75675675675676,
"alnum_prop": 0.500697350069735,
"repo_name": "fredyrsam/quipuUtil_front",
"id": "f23c80c53bccb1352c168d5603367cad92badbde",
"size... |
export { default } from './PluginCard.container'
| {
"content_hash": "73879a4ee11087d79463fabe7b6f2878",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 48,
"avg_line_length": 49,
"alnum_prop": 0.7346938775510204,
"repo_name": "Zenika/MARCEL",
"id": "de46ba6ab477024db51129c6df625816953fee00",
"size": "49",
"binary": false,... |
@implementation MenuCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)anima... | {
"content_hash": "3ce4dfa29f28e2c2ebb8068fe60d39c7",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 95,
"avg_line_length": 29.659574468085108,
"alnum_prop": 0.6994261119081779,
"repo_name": "blakebrannon/OEAM",
"id": "889c9ad9d2ce2a65dbca11055e1dc11c9629f8a9",
"size": "15... |
package com.resmed.refresh.model.json;
import com.google.gson.annotations.*;
public class SynopsisData
{
@SerializedName("BinSleepScoreDeep")
private int BinSleepScoreDeep;
@SerializedName("BinSleepScoreLight")
private int BinSleepScoreLight;
@SerializedName("BinSleepScoreOnset")
private int BinSleepScoreOnset;... | {
"content_hash": "3a7d50828767cd0e03916d4d5ff08d2c",
"timestamp": "",
"source": "github",
"line_count": 298,
"max_line_length": 74,
"avg_line_length": 24.75503355704698,
"alnum_prop": 0.7907008268944015,
"repo_name": "Venryx/LucidLink",
"id": "9b96ebcbd1bd971416b2306f1e7e2ea65f49ba1f",
"size": "737... |
package factory.factorymethod;
public class ChicagoStyleVeggiePizza extends Pizza {
public ChicagoStyleVeggiePizza() {
name = "Chicago Deep Dish Veggie Pizza";
dough = "Extra Thick Crust Dough";
sauce = "Plum Tomato Sauce";
toppings.add("Shredded Mozzarella Cheese");
toppings.add("Black Olives");
topp... | {
"content_hash": "4ac139ab40f9cce78c5c5bdfbecc3831",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 61,
"avg_line_length": 23.94736842105263,
"alnum_prop": 0.7142857142857143,
"repo_name": "miguelalba89/HFDP",
"id": "758c25034547b775ca0d45569a5ce3cbe65aa791",
"size": "455... |
@include('votes.comment')
<div id="comment-modal" class="modal fade" role="dialog">
<div class="modal-dialog" style="margin:80px auto">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&... | {
"content_hash": "78b5abb0d196099aa671931b9224bcae",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 146,
"avg_line_length": 46.04761904761905,
"alnum_prop": 0.5077559462254395,
"repo_name": "okgreece/Alignment",
"id": "665cc65d9a674d8db74e0551dd278d63ebc8abae",
"size": "9... |
<?php
include_once ('../../includes/session.inc');
if ($_sql == '') {
$_sql = "SELECT " .
"user_prof_nm," .
"CASE user_prof_status WHEN 'A' THEN \"Activo\" WHEN 'D' THEN \"Desactivado\" END AS state," .
"user_prof_cd " .
" FROM user_profile
WHERE
user_prof_lang='SP' AND
user_prof_... | {
"content_hash": "006cbc7fe0182889fa61ab835f015fdc",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 217,
"avg_line_length": 34.324561403508774,
"alnum_prop": 0.600306670074112,
"repo_name": "carlosrojaso/websms",
"id": "2dea3c855cf3ce27a9c6600a18232170cdb92297",
"size": ... |
package com.intel.analytics.bigdl.dllib.keras.layers
import com.intel.analytics.bigdl.dllib.nn.{AddConstant => BAddConstant}
import com.intel.analytics.bigdl.dllib.keras.layers.{AddConstant => ZAddConstant}
import com.intel.analytics.bigdl.dllib.tensor.Tensor
import com.intel.analytics.bigdl.dllib.utils.Shape
import... | {
"content_hash": "a5f6d9e012d6abc6c105261341d06cd6",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 81,
"avg_line_length": 37.476190476190474,
"alnum_prop": 0.7147395171537484,
"repo_name": "intel-analytics/BigDL",
"id": "21d57a0b5b5af8b655d52a6212d0cf45ac9a4854",
"size":... |
ig.module(
'game.entities.shadowship'
)
.requires(
'game.entities.mover'
)
.defines(function(){
EntityShadowship=EntityMover.extend({
followMinDis: 170,
name: 'Shadowship',
size: {x:400,y:400},
offset:{x:0,y:0},
maxVel: {x: 3000, y : 3000},
zIndex: 0,
collides: ig.Entity.COLLIDES.NEVER,
in... | {
"content_hash": "279565cb6385070bbb9b4ce7b933b506",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 96,
"avg_line_length": 22.163265306122447,
"alnum_prop": 0.6012891344383057,
"repo_name": "SabunMacTavish/CTF-Platform",
"id": "a84eb79522c46e08d791a075885b98b552a14c45",
"... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/black"/>
</selector> | {
"content_hash": "c3d05bea4e6a371e110ebf198e5ccff4",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 69,
"avg_line_length": 43,
"alnum_prop": 0.7093023255813954,
"repo_name": "androidroadies/AndroidUtils",
"id": "5b6d8cbc43a9ca3bf4bbc298bacc69d886c01fc4",
"size": "172",
"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>verdi: 3 m 43 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styl... | {
"content_hash": "28cd04f795fa36e17be4e2b764975fc3",
"timestamp": "",
"source": "github",
"line_count": 299,
"max_line_length": 157,
"avg_line_length": 71.04013377926421,
"alnum_prop": 0.6116002071465562,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "6d6e3fa9c2384fe337f18e536be329a1dffa3073",
... |
from datetime import datetime
from functools import reduce
from os import makedirs, remove
from os.path import join, exists, isdir
def song_exists(song_title, playlist_name, music_base_path, special_playlist):
song_path = join(get_song_path(playlist_name, music_base_path, special_playlist), song_title)
to_rem... | {
"content_hash": "554bfe78613284ab62d6528b812b3cd9",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 97,
"avg_line_length": 32.23529411764706,
"alnum_prop": 0.5717761557177615,
"repo_name": "zsoman/youtube-downloader",
"id": "3d99ae6195cb1221165198452b3b50fe4fed5fde",
"siz... |
namespace SpiceToken
{
TokenNode::TokenNode(TokenType tokenType, std::string tokenData, int lineNumber, int characterNumber)
{
_nodeType = tokenType;
_nodeData = tokenData;
_lineNumber = lineNumber;
_characterNumber = characterNumber;
};
TokenType TokenNode::GetType()
... | {
"content_hash": "e35502348c04a4b2ce994adc69fe9662",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 105,
"avg_line_length": 19.866666666666667,
"alnum_prop": 0.6006711409395973,
"repo_name": "cbycraft/CarlRepo",
"id": "7313645c1021013d08d4f9b8935271263b57ac8e",
"size": "9... |
<?php
class WCML_Aurum{
function __construct(){
add_filter( 'wcml_multi_currency_ajax_actions', array( $this,'add_ajax_action' ) );
}
function add_ajax_action( $actions ){
$actions[] = 'lab_wc_add_to_cart';
return $actions;
}
}
| {
"content_hash": "8a0b830396381c256bc4b103bd1ec4c5",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 91,
"avg_line_length": 17.176470588235293,
"alnum_prop": 0.5308219178082192,
"repo_name": "tedc/castadiva-deploy",
"id": "b0752b9d75a35eede51f62a1c3369a11ffffb6ab",
"size":... |
package storm.kafka.trident;
import com.google.common.base.Objects;
import storm.kafka.Broker;
import storm.kafka.Partition;
import java.io.Serializable;
import java.util.*;
public class GlobalPartitionInformation implements Iterable<Partition>, Serializable {
private Map<Integer, Broker> partitionMap;
p... | {
"content_hash": "37ffe7d36ee9b2bd0a84e57d5dd368b1",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 97,
"avg_line_length": 27.5609756097561,
"alnum_prop": 0.602212389380531,
"repo_name": "Aloomaio/incubator-storm",
"id": "76bec9e4385d6dffd21910040ac92583b9f092b6",
"size":... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// 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... | {
"content_hash": "8b69eff6f58856cfeeb33408d1321c98",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 84,
"avg_line_length": 38.26470588235294,
"alnum_prop": 0.760184473481937,
"repo_name": "Xamarians/Samples",
"id": "6b7236db47bc24c412c47dc83c08670bff4640c7",
"size": "1304... |
package main
import (
"fmt"
"io"
"os"
"strings"
"time"
"gopkg.in/lxc/go-lxc.v2"
"github.com/lxc/lxd/shared"
log "gopkg.in/inconshreveable/log15.v2"
)
// Helper functions
func containerPath(name string, isSnapshot bool) string {
if isSnapshot {
return shared.VarPath("snapshots", name)
}
return shared.... | {
"content_hash": "4b0b7db2d2f87c4c8aebdde4653dea5d",
"timestamp": "",
"source": "github",
"line_count": 642,
"max_line_length": 124,
"avg_line_length": 21.23208722741433,
"alnum_prop": 0.6702369598708825,
"repo_name": "dustinkirkland/lxd",
"id": "87dd19d3700be0f6e231bfeccd676fb251e0f88a",
"size": "... |
package at.mchris.popularmovies;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest {
} | {
"content_hash": "8ceb146acdbf5d8f0c09718f16dee733",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 93,
"avg_line_length": 24.2,
"alnum_prop": 0.7727272727272727,
"repo_name": "ChristianMoesl/popular-movies",
"id": "28a09a2fc98b387a70b98360069bcc62b5e893ee",
"size": "242"... |
<?php
namespace MPWAR\Module\Question\Application\Service;
use MPWAR\Module\Question\Contract\Exception\QuestionNotExistsException;
use MPWAR\Module\Question\Contract\Response\QuestionResponse;
use MPWAR\Module\Question\Domain\QuestionId;
use MPWAR\Module\Question\Domain\QuestionRepository;
final class QuestionFinde... | {
"content_hash": "b09ca8f27fcf46a12b2e17f7e83f53a2",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 126,
"avg_line_length": 26.903225806451612,
"alnum_prop": 0.6918465227817746,
"repo_name": "ninina31/portal-examenes",
"id": "27026ec9d6e1874ea0ddfeaabda5876041f61d40",
"si... |
/*
* 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 u... | {
"content_hash": "fa7dd1a612751ec69782a85a283c32ee",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 103,
"avg_line_length": 36.20338983050848,
"alnum_prop": 0.7551498127340824,
"repo_name": "szhem/camel-osgi",
"id": "27b1bf15ba66ec45b9bf4579ef062fe4f28bbd23",
"size": "213... |
{%extends "base.html" %}
{% block title %}
olaletter
{% endblock %}
{% block cust_right %}
<div class="right_box">
<div class="navRightHead">olaletter</div>
<div class="navRightContent" style="text-align:center;">
<img src="{{ MEDIA_URL }}greenstyle/gfx/olaletter.jpg" alt="olaletter" style="width:141px;height:88px;"/... | {
"content_hash": "1a46ffe9ee148b47dbf5ecf0b4984710",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 105,
"avg_line_length": 28.714285714285715,
"alnum_prop": 0.6990049751243781,
"repo_name": "pocketone/django-shoppy",
"id": "7bd44f554180add676c5e3bd920ea5e170a1d08e",
"siz... |
Helm 2.1.0 introduced the concept of a client-side Helm _plugin_. A plugin is a
tool that can be accessed through the `helm` CLI, but which is not part of the
built-in Helm codebase.
Existing plugins can be found on [related](related.md#helm-plugins) section or by searching [Github](https://github.com/search?q=topic%3... | {
"content_hash": "c588fa61a03ff988d0ad33506d02b05a",
"timestamp": "",
"source": "github",
"line_count": 172,
"max_line_length": 168,
"avg_line_length": 40.7093023255814,
"alnum_prop": 0.7502142245072836,
"repo_name": "kdada/helm",
"id": "72e78c25ef397093a7a2621aff0ca063ffe0a032",
"size": "7028",
... |
#pragma once
#include <QtWidgets/QDialog>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QSplitter>
#include <QtWidgets/QTextBrowser>
#include <QtWidgets/QTreeWidget>
#include <QtWidgets/QCheckBox>
#include "uitypes.h"
/*!
\ingroup uiapi
*/
clas... | {
"content_hash": "d1243295cf7059531396abe519094e7b",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 67,
"avg_line_length": 24.272727272727273,
"alnum_prop": 0.7835205992509363,
"repo_name": "Vector35/binaryninja-api",
"id": "90ce495d86029d82f141c27fc69c09d33a97e324",
"siz... |
package betterframework;
import java.util.LinkedList;
import java.util.List;
import battlecode.common.GameActionException;
import battlecode.common.RobotController;
public class ComputerHandler extends BaseRobotHandler {
protected ComputerHandler(RobotController rc) {
super(rc);
}
@Override
public List<Actio... | {
"content_hash": "edf22689d2a31239c26bda0cbc4ee8d6",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 65,
"avg_line_length": 20.45,
"alnum_prop": 0.7970660146699267,
"repo_name": "djkeyes/battlecode2015bot",
"id": "118ea9f7b63f74f94029767e6340dbdd0db15543",
"size": "409",
... |
from django import template
register = template.Library()
def dereference(value, arg):
return value[arg]
register.filter('dereference', dereference)
| {
"content_hash": "dc2372b0f608ab4fda8f056b052bb2fc",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 43,
"avg_line_length": 15.8,
"alnum_prop": 0.7531645569620253,
"repo_name": "trawick/edurepo",
"id": "26496162b89a9b21ac4e489f168cbbb5519465c2",
"size": "158",
"binary": ... |
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="ivy-report.xsl"?>
<ivy-report version="1.0">
<info
organisation="default"
module="summingbird-build"
revision="0.1-SNAPSHOT"
extra-sbtVersion="0.13"
extra-scalaVersion="2.10"
conf="plugin"
confs="compile, runtime, test, provide... | {
"content_hash": "94382abdb17808db8ee831d8cfc04d43",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 143,
"avg_line_length": 33.13333333333333,
"alnum_prop": 0.7122736418511066,
"repo_name": "sengt/summingbird-batch",
"id": "9ee63b91ef8bf8026cd7ccd181dca1ff577a14d9",
"size... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace NAudioWpfDemo.DrumMachineDemo
{
public class DrumPattern
{
private byte[,] hits;
private List<string> noteNames;
public DrumPattern(IEnumerable<string> ... | {
"content_hash": "5da9c7f8d97860cf480b491fa1b63973",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 86,
"avg_line_length": 25.416666666666668,
"alnum_prop": 0.49754098360655735,
"repo_name": "skor98/DtWPF",
"id": "be232a021d3b60f83331d64428d2f7bbc25a45b1",
"size": "1222",... |
package com.dcjet.${ddata.solution.solutionName}.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.LinkedHashMap;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.StringUtil... | {
"content_hash": "345a3911271e188b78b754e46d5f9055",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 131,
"avg_line_length": 35.7557251908397,
"alnum_prop": 0.7540563620836892,
"repo_name": "aceunlonely/ggenerator-web",
"id": "7c162e54076f343a95c8a0017fc891da332503a9",
"s... |
CoreOS is currently in heavy development and actively being tested.
These instructions will bring up a single CoreOS instance under QEMU,
the small Swiss Army knife of virtual machine and CPU emulators.
If you need to do more such as [configuring networks][qemunet]
differently refer to the [QEMU Wiki][qemuwiki] and [Us... | {
"content_hash": "bd7e0b348d22a137161471a8891d3848",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 320,
"avg_line_length": 36.32258064516129,
"alnum_prop": 0.7362344582593251,
"repo_name": "mjg59/docs",
"id": "427450a57eb95cc8c4daf4a40b06f34692626842",
"size": "6782",
... |
package br.beholder.memelang.model.language;
// Generated from .\Memelang.g4 by ANTLR 4.7
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
* This class provides an empty implementation of {@link MemelangVisitor},
* which can be extended to create a visitor which only needs to handle a subset
* of the... | {
"content_hash": "9ccba7e02f71f4c9f3befd63a94f7020",
"timestamp": "",
"source": "github",
"line_count": 295,
"max_line_length": 122,
"avg_line_length": 35.46440677966102,
"alnum_prop": 0.6991970942458421,
"repo_name": "BeholderDEV/MemeLang",
"id": "f48a5022ad58dfe01be1aaa9495821f32ea53c1f",
"size":... |
"use strict";
import chai = require("chai");
import StringCase = require("../../strings/StringCase");
var asr = chai.assert;
suite("StringCase", function StringCaseTest() {
test("isCamelCase()", function isCamelCase() {
camelCase.forEach((str) => asr.isTrue(StringCase.isCamelCase(str)));
camelCa... | {
"content_hash": "96ed56d356ec339d3a5d274d9c05b753",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 164,
"avg_line_length": 51.88059701492537,
"alnum_prop": 0.6070195627157653,
"repo_name": "TeamworkGuy2/ts-code-generator",
"id": "0f512da0c2badbd7ba265da8aa33a1e6cedbba2c",
... |
"""Convert SEW checkpoint."""
import argparse
import json
import os
import fairseq
import torch
from fairseq.data import Dictionary
# Register SEW's fairseq modules
from sew_asapp import tasks # noqa: F401
from transformers import (
SEWConfig,
SEWForCTC,
SEWModel,
Wav2Vec2CTCTokenizer,
Wav2Vec2... | {
"content_hash": "0cd23775e734753287a4a7436ff00f24",
"timestamp": "",
"source": "github",
"line_count": 291,
"max_line_length": 119,
"avg_line_length": 41.7147766323024,
"alnum_prop": 0.6250102973885823,
"repo_name": "huggingface/transformers",
"id": "58c0338a850d0f8cd4aa13660453bb8805c6af9a",
"siz... |
/*
* The Oxygen Webhelp plugin redistributes this file under the terms of the MIT license.
* The full license terms of this license are available in the file MIT-License.txt
* located in the same directory as the present file you are reading.
*/
.cleditorMain {border:1px solid #999; padding:0 1px 1px; b... | {
"content_hash": "b3a7d4b3c6674468990a32b2cd857709",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 152,
"avg_line_length": 56.5,
"alnum_prop": 0.7522123893805309,
"repo_name": "WgStreamsets/datacollector",
"id": "ef8938ddb73eba8ab0923b7dddd3d383b11c0634",
"size": "1695",... |
#include <aws/core/client/AWSError.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/s3/S3Errors.h>
using namespace Aws::Client;
using namespace Aws::S3;
using namespace Aws::Utils;
static const int NO_SUCH_BUCKET_HASH = HashingUtils::HashString("NoSuchBucket");
static const int OBJECT_ALREADY_IN_ACTIVE_TIER... | {
"content_hash": "94b07d5030de2a84551e794619e308ad",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 113,
"avg_line_length": 34.421052631578945,
"alnum_prop": 0.7456676860346585,
"repo_name": "kahkeng/aws-sdk-cpp",
"id": "376869e96b303ba0b6960576c7184ee4593650bf",
"size": ... |
::
:: a batch script for converting classified, buffered, LiDAR tiles
:: into a number of raster products with a tile-based multi-core
:: batch pipeline
::
::
:: specify parameters
::
:: allows you to run the script from other folders
set PATH=%PATH%;C:\Users\Public\lastools\bin;
:: here we specify the ... | {
"content_hash": "593aefb6bef2c8634d803ee11dba5c2f",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 80,
"avg_line_length": 28.94736842105263,
"alnum_prop": 0.6709090909090909,
"repo_name": "strummerTFIU/TFG-IsometricMaps",
"id": "5a6d0ee3a456a42b6a01d4d41f653924fdb4aa64",
... |
"""Support for the (unofficial) Tado API."""
import asyncio
from datetime import timedelta
import logging
from PyTado.interface import Tado
from requests import RequestException
import requests.exceptions
from homeassistant.components.climate.const import PRESET_AWAY, PRESET_HOME
from homeassistant.config_entries imp... | {
"content_hash": "323c0c62a772d21d2e0be92d3402abc6",
"timestamp": "",
"source": "github",
"line_count": 301,
"max_line_length": 117,
"avg_line_length": 30.461794019933556,
"alnum_prop": 0.5987566801177882,
"repo_name": "adrienbrault/home-assistant",
"id": "094465d38aaaba79ca0c50db3d1623b501aa5425",
... |
package org.elasticsearch.index.query;
import org.apache.lucene.search.BooleanQuery;
import org.apache.lucene.search.IndexOrDocValuesQuery;
import org.apache.lucene.search.MatchNoDocsQuery;
import org.apache.lucene.search.PointRangeQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.TermQue... | {
"content_hash": "e38e463a82e7248e1428aa958d9b6518",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 138,
"avg_line_length": 44.41379310344828,
"alnum_prop": 0.5844979296066253,
"repo_name": "gfyoung/elasticsearch",
"id": "fd722ef0c77af632150831668e2489047e484a34",
"size"... |
namespace AutoUpdaterDotNET
{
partial class DownloadUpdateDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
//... | {
"content_hash": "9927851501839146ec77e6cb5be1737e",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 152,
"avg_line_length": 42.43181818181818,
"alnum_prop": 0.5940010712372791,
"repo_name": "ravibpatel/AutoUpdater.NET",
"id": "ec655db78725d9c6b14ec180d55ad4c4ede2f580",
"s... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeRunConfigurationManager" shouldGenerate="true" shouldDeleteObsolete="true">
<generated>
<config projectName="ReverseVowelsOfAString" targetName="ReverseVowelsOfAString" />
</generated>
</component>
<component name="CM... | {
"content_hash": "85c2dca43f955b77ebe53eaa1c8a8fa7",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 315,
"avg_line_length": 47.83448275862069,
"alnum_prop": 0.6646482122260668,
"repo_name": "busebd12/InterviewPreparation",
"id": "ce7424b7cd707c94d135ca7a61535101bff24e18",
... |
line1=Opcje konfiguracyjne,11
lease_sort=Uporządkuj dzierżawy wg,1,0-Kolejności w pliku,1-Adresów IP,2-Nazw hostów
hostnet_list=Pokaż podsieci i hosty jako,1,0-Ikony,1-Listę
dhcpd_nocols=Ilość ikon w wierszu,0
lease_tz=Pokazuj czas dzierżawy wg,1,0-GMT,1-Czasu lokalnego
lease_refresh=Sekund pomiędzy odświeżaniem listy ... | {
"content_hash": "dc37896fa4e279944164ab1aabcf945f",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 133,
"avg_line_length": 62.13636363636363,
"alnum_prop": 0.825164594001463,
"repo_name": "nawawi/webmin",
"id": "e4fddd97110d1373b2930e37dd2e99711cbda21d",
"size": "1403",
... |
title: pterosaurs
layout: redirect
author: pterosaurs link
tags: site pterosaurs
redirect: http://www.pteros.com/pterosaurs.html
---
| {
"content_hash": "2afa66a614182cfa9b68305f98e6ca57",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 47,
"avg_line_length": 22.166666666666668,
"alnum_prop": 0.7894736842105263,
"repo_name": "jsikucom/jsikucom.github.io",
"id": "226e3e876763dcbedb9dcd735abb84c2ea0a016a",
"s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.