text stringlengths 2 1.04M | meta dict |
|---|---|
import React, {Component} from 'react';
import {Route} from 'react-router-dom';
import PropTypes, {connect} from '../PropTypes.js';
import * as loginActions from '../../actions/userActions.js';
import {paperStyle} from './Login.js';
import PlayerAutoComplete from '../players/PlayerAutoComplete.js';
import TextField f... | {
"content_hash": "0c0308e5954de7678eb71e49c0ccbed8",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 103,
"avg_line_length": 25.743589743589745,
"alnum_prop": 0.5806772908366534,
"repo_name": "TTCErembodegem/TTC-React-Front",
"id": "8a8dd5a6c98a597528bab6382aaa98798ccabb62"... |
import org.telegram.telegrambots.api.objects.Update;
import org.telegram.telegrambots.bots.TelegramLongPollingBot;
public class TelegramBot extends TelegramLongPollingBot {
@Override
public void onUpdateReceived(Update update) {
System.out.println(update.getMessage());
if(update.hasChannelPost()){
... | {
"content_hash": "8fa2725cd3c38cbbcb3ee2e18688fdc6",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 61,
"avg_line_length": 23.083333333333332,
"alnum_prop": 0.7111913357400722,
"repo_name": "slgphantom/yearyearyear",
"id": "cfb371edc3613f116a67191f6feb882fdaff4ac1",
"size... |
<Type Name="DictionaryModelCache<T>" FullName="Hyena.Data.DictionaryModelCache<T>">
<TypeSignature Language="C#" Value="public abstract class DictionaryModelCache<T> : Hyena.Data.ModelCache<T> where T : ICacheableItemnew()" />
<AssemblyInfo>
<AssemblyName>Hyena</AssemblyName>
<Assemb... | {
"content_hash": "c4001e9b0e9faf540f9a3d26d0c423c5",
"timestamp": "",
"source": "github",
"line_count": 138,
"max_line_length": 156,
"avg_line_length": 35.507246376811594,
"alnum_prop": 0.6275510204081632,
"repo_name": "mono-soc-2011/banshee",
"id": "afc5b48dbd79a50f13a31c2fa77975e1095e4474",
"size... |
# Usage examples
## Wildcards
In this example, running `grunt jshint:all` (or `grunt jshint` because `jshint` is a [multi task](http://gruntjs.com/configuring-tasks#task-configuration-and-targets)) will lint the project's Gruntfile as well as all JavaScript files in the `lib` and `test` directories and their subdirect... | {
"content_hash": "07943781284a0ad40f7f4ab38e00ba5f",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 328,
"avg_line_length": 31.138461538461538,
"alnum_prop": 0.6526679841897233,
"repo_name": "FungusHumungus/ToadSeq",
"id": "cce5d036e196412f684adf86f13ef21e3e567dfc",
"size... |
import {SymbolShim} from '../util/SymbolShim';
/**
* rxSubscriber symbol is a symbol for retreiving an "Rx safe" Observer from an object
* "Rx safety" can be defined as an object that has all of the traits of an Rx Subscriber,
* including the ability to add and remove subscriptions to the subscription chain and
* ... | {
"content_hash": "c944d3418c37c6a6b7e22052251823f3",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 90,
"avg_line_length": 51.55555555555556,
"alnum_prop": 0.7586206896551724,
"repo_name": "justinwoo/RxJS",
"id": "2eb5a9abe8b0d1b076e8bbd1e5861a22d04d15fe",
"size": "464",
... |
#include "coders/coders-private.h"
#define MagickCIPHeaders
#define MagickCIPAliases
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
MagickCoderExports(CIP)
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif | {
"content_hash": "feb08ab509891b5196b18e197ef94166",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 47,
"avg_line_length": 14.117647058823529,
"alnum_prop": 0.7375,
"repo_name": "Danack/ImageMagick",
"id": "3a381995e2f65ded298d8a1c5b3b4630bac5fda2",
"size": "866",
"bina... |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Line(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "barpolar.marker"
_path_str = "barpolar.marker.line"
_valid_props = {
"autocolorscale",... | {
"content_hash": "4ade4ed07457c3e1f05211092d9ff4ae",
"timestamp": "",
"source": "github",
"line_count": 658,
"max_line_length": 87,
"avg_line_length": 37.8951367781155,
"alnum_prop": 0.5664327250852216,
"repo_name": "plotly/plotly.py",
"id": "1fc6461876505d4027f5a4265d8ada980129c241",
"size": "2493... |
package org.kuali.rice.kim.framework.identity;
import org.kuali.rice.kim.api.identity.CodedAttributeContract;
public interface EntityTypeContractEbo extends CodedAttributeContract { }
| {
"content_hash": "847b06b217ee5fe9d91b75d58e183e55",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 73,
"avg_line_length": 26.857142857142858,
"alnum_prop": 0.8404255319148937,
"repo_name": "ricepanda/rice-git2",
"id": "39c8b60fb6c5c303897dbea982ccdba2dae934ea",
"size": "8... |
#include <modules/base/io/datvolumewriter.h>
#include <inviwo/core/util/filesystem.h>
#include <inviwo/core/datastructures/volume/volumeram.h>
#include <inviwo/core/io/datawriterexception.h>
namespace inviwo {
DatVolumeWriter::DatVolumeWriter() : DataWriterType<Volume>() {
addExtension(FileExtension("dat", "Inv... | {
"content_hash": "0490a6965e8366f9c33385a687b9cfde",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 100,
"avg_line_length": 40.5679012345679,
"alnum_prop": 0.6701156421180767,
"repo_name": "Sparkier/inviwo",
"id": "2205e22cff4acd88f34881d6663080de3b5af8e4",
"size": "4869"... |
import { IContainerExtensions, IFilters } from "../shared/shared.interfaces";
export interface ISourceResponse extends IContainerExtensions {
container: ISourceContainer;
}
export interface ISourceContainer extends IFilters {
sources: ISource[];
}
export interface ISource {
id: number;
realtime_start: string... | {
"content_hash": "f8859ad84246831f97e7e9c69f3a8b68",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 77,
"avg_line_length": 21.166666666666668,
"alnum_prop": 0.7559055118110236,
"repo_name": "rcapel/FRED-API-Toolkit",
"id": "028c88a2ddc24f30fd4ad052b027a48372472663",
"size... |
/***********************************************
* ZQRunLoop.cpp
*
* @author: zyq
* @date: 17/2/22
* @Description:
*
***********************************************/
#include "ZQRunLoop.h"
#include "cocos2d.h"
#include "scripting/lua-bindings/manual/CCLuaEngine.h"
using namespace zq;
ZQRunLoop* ZQRunLoop::getInstanc... | {
"content_hash": "bdc64102267706e999910964f305875b",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 70,
"avg_line_length": 20.64485981308411,
"alnum_prop": 0.5391579900407424,
"repo_name": "tianxiawuzhei/cocos-quick-cpp",
"id": "096a8dad76403e6961e10d611349d3f115c72f40",
... |
'use strict';
let _ = require('lodash');
let cli = require('heroku-cli-util');
function Apps (heroku) {
this.heroku = heroku;
}
Apps.prototype = {
getApp: function* (app) {
try {
return yield this.heroku.get(`/apps/${app}`);
} catch(err) {
if (err.statusCode === 404) {
console.error... | {
"content_hash": "8b16b173ff74e9bf6d0b034301ea6b43",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 122,
"avg_line_length": 29.2,
"alnum_prop": 0.5693493150684932,
"repo_name": "Confkins/CloudComputing",
"id": "a4a548c3d94160875659200618a995824267d29d",
"size": "3504",
... |
@interface ViewController ()
@property(nonatomic, weak) IBOutlet UILabel *statusLabel;
@property(nonatomic, weak) IBOutlet UIProgressView *progressView;
@end
@implementation ViewController
#pragma mark - UITextFieldDelegate
- (BOOL)textFieldShouldClear:(UITextField *)textField
{
textField.text = @"";
return [sel... | {
"content_hash": "ac852bf6c717c5cb36e2c0263f5a5801",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 137,
"avg_line_length": 36.9375,
"alnum_prop": 0.7774957698815567,
"repo_name": "laiso/PWStrength",
"id": "b7408f72315266ac17b6fe482df09df8e69d6135",
"size": "1292",
"bin... |
using MatterHackers.Agg.UI;
using MatterHackers.Localizations;
using MatterHackers.MatterControl.DataStorage;
using MatterHackers.VectorMath;
using System;
using System.Collections.Generic;
namespace MatterHackers.MatterControl.SlicerConfiguration
{
public class SlicePresetsWindow : SystemWindow
{
public EventH... | {
"content_hash": "582ccb1aa2ba2c92e50247558bf1072d",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 144,
"avg_line_length": 28.97345132743363,
"alnum_prop": 0.7519853390348198,
"repo_name": "CodeMangler/MatterControl",
"id": "6f960f7d6a0b2ea3d4336b9150ddd5a6b3e88262",
"s... |
package org.jivesoftware.sparkplugin.ui.transfer;
import org.jivesoftware.spark.plugin.phone.resource.PhoneRes;
import org.jivesoftware.sparkplugin.ui.TelephoneTextField;
import org.jivesoftware.smack.roster.Roster;
import org.jivesoftware.smack.roster.RosterGroup;
import org.jivesoftware.spark.SparkManager;
import ... | {
"content_hash": "d3dcbc5bdb5debdeb440acc6ca922cca",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 155,
"avg_line_length": 34.31927710843374,
"alnum_prop": 0.6561348077935756,
"repo_name": "speedy01/Spark",
"id": "a18eedd5434213d4a66ef67a41aa2f1c72c120fd",
"size": "6325... |
def count (base,&block)
if base >50
raise "max reached"
elsif yield base
1
else
1+count(base+1,&block)
end
end
| {
"content_hash": "16845f4e7af54f3b1b5048a76dfad597",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 24,
"avg_line_length": 12.2,
"alnum_prop": 0.6639344262295082,
"repo_name": "melvin0008/learningruby",
"id": "d82063b083b5e07c84230a73d4b39c43038eaee7",
"size": "122",
"b... |
"""Positive-Semidefinite Kernel library utilities."""
import numpy as np
import tensorflow.compat.v2 as tf
from tensorflow_probability.python.internal import dtype_util
from tensorflow_probability.python.internal import prefer_static as ps
from tensorflow_probability.python.internal import tensorshape_util
__all__ =... | {
"content_hash": "bd5126ba8d55da5a0185ad58ca5d5a9b",
"timestamp": "",
"source": "github",
"line_count": 298,
"max_line_length": 80,
"avg_line_length": 41.25167785234899,
"alnum_prop": 0.6494753111526885,
"repo_name": "tensorflow/probability",
"id": "5df436b56ea006d8d274fa588828e3702bef0ebf",
"size"... |
package org.jboss.weld.environment.se.events;
/**
* An abstract Weld SE container event.
*
* @author Martin Kouba
*/
public abstract class WeldContainerEvent {
private final String containerId;
public WeldContainerEvent(String containerId) {
this.containerId = containerId;
}
public Stri... | {
"content_hash": "cb57aab2b35cd07e2d22337effe005df",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 96,
"avg_line_length": 21.08,
"alnum_prop": 0.6698292220113852,
"repo_name": "manovotn/core",
"id": "e8c48086497cb3df80c41e5212df325520079a64",
"size": "1302",
"binary": ... |
namespace net {
namespace tools {
QuicServerSession::QuicServerSession(const QuicConfig& config,
QuicConnection* connection,
QuicServerSessionVisitor* visitor)
: QuicSession(connection, config),
visitor_(visitor),
bandwidth_estim... | {
"content_hash": "d20e1a7509b0019b4dd4fabb25c45310",
"timestamp": "",
"source": "github",
"line_count": 192,
"max_line_length": 80,
"avg_line_length": 38.0625,
"alnum_prop": 0.7108648056923919,
"repo_name": "fujunwei/chromium-crosswalk",
"id": "7336ca4c9386e3ad84ba9e02ec2a375086ced6d8",
"size": "77... |
import { module, isDefined, ILogService } from 'angular';
replace.$inject = ['$log'];
function replace($log: ILogService): Function {
return (str: string, regExStr: string, replaceValue: string) => {
if (!isDefined(regExStr)) {
$log.debug(`Did not supply regex string for 'replace' filter.`);
return s... | {
"content_hash": "484395ae47834ad30cad45e330f35788",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 75,
"avg_line_length": 35.421052631578945,
"alnum_prop": 0.6612184249628529,
"repo_name": "duftler/deck",
"id": "b152dfd5188ced15915a87a2ca78d792c5989214",
"size": "673",
... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* representation of media list... | {
"content_hash": "ba0e2b4e02a2266640ff1aa0e3b33d15",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 80,
"avg_line_length": 32.63978494623656,
"alnum_prop": 0.6997199802338988,
"repo_name": "sergecodd/FireFox-OS",
"id": "8538201de5874d549c6f08ba64549f83b5b199e0",
"size": ... |
<?php
namespace app\core\http;
class NoArgumentException extends HttpException {
public function __construct($key) {
parent::__construct($key . " - argument not set", 400);
}
} | {
"content_hash": "883413d8e1a1b0d1e9f668dadf1274cf",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 63,
"avg_line_length": 19.5,
"alnum_prop": 0.6564102564102564,
"repo_name": "pldin601/musicloud",
"id": "b81e6dc473ee470b77bee77e03ef35546b3bfd9a",
"size": "195",
"binary... |
@import url(Styles/accordion-ui.min.css);
@keyframes roll {
0% {
transform: rotate(0); }
100% {
transform: rotate(360deg); } }
.JSFaq {
/* Custom Styles */
/*BOOTSTRAP RE-STYLING */ }
.JSFaq * {
-webkit-box-sizing: border-box !important;
-moz-box-sizing: border-box !important;
-o-box-siz... | {
"content_hash": "e3e48118fcd5804283a5aaf7a88b5cd0",
"timestamp": "",
"source": "github",
"line_count": 1214,
"max_line_length": 464,
"avg_line_length": 43.650741350906095,
"alnum_prop": 0.6143568840579711,
"repo_name": "JoopSoft/JSFAQ",
"id": "ad4bc6ea61e92cf97d73cfcd79221f72d493bd05",
"size": "52... |
`Daylilog` `Listenning Audiobook` `javascript ninja course`
# Things I'll Do Today:
- [x] Watch & Practice [`Javascript Ninja Course`](https://github.com/wgoulaart/course-javascript-ninja)
- [x] Add new **Dailylog**
- [x] Listenning Audiobook - *The Hound of the Baskervilles (Sherlock Holmes)* - *Conan Doyle*
## Mu... | {
"content_hash": "4c566ebf3427c527d401e3963abd9800",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 130,
"avg_line_length": 51.45454545454545,
"alnum_prop": 0.7279151943462897,
"repo_name": "wgoulart/dailylog",
"id": "098a3bd8c5fdfcfcf8ddd927334dc53e53edd76e",
"size": "59... |
<section class="comment">
<!-- baidu JIA -->
<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a><a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a><a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a... | {
"content_hash": "7f1989625fb1ffa14a398c5b10ffece7",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 417,
"avg_line_length": 59.61538461538461,
"alnum_prop": 0.6348387096774194,
"repo_name": "CC213/cc213.github.io",
"id": "1e1341a4cae2b3bba6f91fde73e6d76038a1a6a3",
"size":... |
namespace sync_sessions {
TabNodePool::TabNodePool() : max_used_tab_node_id_(kInvalidTabNodeID) {}
// static
// We start vending tab node IDs at 0.
const int TabNodePool::kInvalidTabNodeID = -1;
TabNodePool::~TabNodePool() = default;
void TabNodePool::AddTabNode(int tab_node_id) {
DCHECK_GT(tab_node_id, kInvalidT... | {
"content_hash": "5fedf2f0e0a77f508834537fd4e7930d",
"timestamp": "",
"source": "github",
"line_count": 176,
"max_line_length": 79,
"avg_line_length": 33.19318181818182,
"alnum_prop": 0.6576514892160219,
"repo_name": "nwjs/chromium.src",
"id": "09b7cd94c61a8d9a7f81b8fe9f356bf114ed1760",
"size": "62... |
namespace UniqueCreator
{
namespace Graphics
{
class RangedParametrizedGeometry::Impl
{
public:
RangedParametrizedGeometry::Impl() {}
};
}
}
| {
"content_hash": "617abb8c1346fd0b4865accfac30b1ae",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 49,
"avg_line_length": 14.571428571428571,
"alnum_prop": 0.5392156862745098,
"repo_name": "UniqueCreator/UCEngine",
"id": "5289495cfa2d3e828ce6966faace3a072bd349a6",
"size"... |
package org.apache.activemq.artemis.tests.integration.paging;
public class NettyPagingSendTest extends PagingSendTest
{
@Override
protected boolean isNetty()
{
return true;
}
}
| {
"content_hash": "2936e157e62970289aa3c10f9d1d7ed9",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 61,
"avg_line_length": 17.90909090909091,
"alnum_prop": 0.7360406091370558,
"repo_name": "jbertram/activemq-artemis-old",
"id": "2f38d5b0e96a6e9a4d199d6fabb067f71971a8f5",
... |
package org.apache.camel.issues;
import org.apache.camel.ContextTestSupport;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.Test;
public class MockExpectedHeadersIssueTest extends ContextTestSupport {
@Test
public void testHeaders() throws... | {
"content_hash": "67ca997a74d0d03cc295861e42c1b1ff",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 102,
"avg_line_length": 31.47826086956522,
"alnum_prop": 0.6602209944751382,
"repo_name": "Fabryprog/camel",
"id": "c62e2a58637fc51f09293b417c1e9b5568a17e0d",
"size": "2250... |
package org.unitime.timetable.util;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.unitime.commons.Debug;
import org.unitime.timetable.defaults.ApplicationProperty;
import org.unitime.timetable.interfaces.RoomAvailabilityInterface;
import org.unitime.timetable.model.DatePattern;
imp... | {
"content_hash": "cd87c4eb4cf62dd3335526b06410dfc3",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 165,
"avg_line_length": 50.0989010989011,
"alnum_prop": 0.6615485852160562,
"repo_name": "zuzanamullerova/unitime",
"id": "1d96a6f9bc14e81d2a40685aa2f1b4fdd33049b1",
"size"... |
package org.apache.hadoop.hbase.net;
import java.net.InetSocketAddress;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.apache.yetus.audience.InterfaceAudience;
import org.apache.hbase.thirdparty.com.google.common.base.Splitter;
import org.apache.hbase.thirdp... | {
"content_hash": "cc964c839606a85da2f31dbaf7338764",
"timestamp": "",
"source": "github",
"line_count": 127,
"max_line_length": 100,
"avg_line_length": 28.818897637795274,
"alnum_prop": 0.680327868852459,
"repo_name": "HubSpot/hbase",
"id": "ef3520b31c7854a85902fe5de964700387f743ca",
"size": "4465"... |
package rest
import (
"crypto/rand"
"crypto/rsa"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/http/cookiejar"
"net/http/httptest"
"net/url"
"reflect"
"regexp"
"strings"
"testing"
"time"
"github.com/couchbase/sync_gateway/auth"
"github.com/couchbase/sync_gateway/base"
"github.com/gorilla/mux"
... | {
"content_hash": "652b0a5d8e8549aab47cde641b6b31c2",
"timestamp": "",
"source": "github",
"line_count": 2172,
"max_line_length": 231,
"avg_line_length": 41.43139963167587,
"alnum_prop": 0.7371456511351387,
"repo_name": "couchbaselabs/sync_gateway",
"id": "d7c12056337e7c43366dec12bbc0c8db801c0aad",
... |
module Proxeze
module ClassHooks
def hooks
@hooks ||= {:after => {}, :after_all => {}, :before => {}, :before_all => {}}
end
# The after hook will receive 3 arguments:
# target, result, and any arguments to the
# method that was called.
def after mid, *args, &blk
insert_into_c... | {
"content_hash": "aff702b2925ce8a26350392f550760e6",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 91,
"avg_line_length": 32.808510638297875,
"alnum_prop": 0.5933852140077821,
"repo_name": "jacaetevha/proxeze",
"id": "22bd63288010073d89f2980cdda67563df0605eb",
"size": "1... |
// 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.
/*============================================================
**
**
** PURPOSE: Helpers for XML input & output
**... | {
"content_hash": "f8b5d8af7e528c11b5e0a09baae1a007",
"timestamp": "",
"source": "github",
"line_count": 435,
"max_line_length": 155,
"avg_line_length": 40.07816091954023,
"alnum_prop": 0.49254330618331993,
"repo_name": "neurospeech/coreclr",
"id": "3a1aaa3b0984c2365c8f0af5e27b71ad0f9234c0",
"size":... |
package hudson.security;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.Extension;
import hudson.model.Descriptor;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.Filter;
import javax.servlet.FilterConfig;
import org.jenkinsci.Symbol;
import org.kohsuke.accmod.Restri... | {
"content_hash": "f51ace575f4972aafde8e955c33bf6ea",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 124,
"avg_line_length": 32.66304347826087,
"alnum_prop": 0.7101497504159734,
"repo_name": "rsandell/jenkins",
"id": "91ea25f3142822d8562be3a2c2a85a45e0ea1c67",
"size": "419... |
/*global describe, beforeEach, it*/
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
describe('colorme generator', function () {
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
return done(err)... | {
"content_hash": "66fa8ad69283eda766fdf684c84792fe",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 74,
"avg_line_length": 27.829268292682926,
"alnum_prop": 0.5898334794040315,
"repo_name": "roblevintennis/generator-colorme",
"id": "a797bf65faa222d91f1a592e343faa2aad1b760b"... |
package com.logimethods.connector.nats.to_spark;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.io.Serializable;
import org.apache.commons.lang3.SerializationUtils;
import org.apache.spark.storage.StorageLevel;
import org.junit.Test;
import io.nats.streaming.SubscriptionOptions... | {
"content_hash": "9eb41468a11ac7bb2a506dcad4b566e3",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 145,
"avg_line_length": 41.604166666666664,
"alnum_prop": 0.8022033049574362,
"repo_name": "Logimethods/nats-connector-spark",
"id": "6c63b9abace8ec0fe0e082972af74e49162feead... |
package service
import java.util.concurrent._
import java.util.{ Collections, Properties }
import com.epidata.lib.models.util.JsonHelpers
import com.fasterxml.jackson.databind.JsonMappingException
import models.SensorMeasurement
import play.api.Logger
import play.api.libs.json._
// import kafka.consumer.KafkaStream... | {
"content_hash": "0dfb8a70058276b800445c14063c7a2b",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 141,
"avg_line_length": 36.4025974025974,
"alnum_prop": 0.708169818052087,
"repo_name": "epidataio/epidata-community",
"id": "d3b6fc2b0f7f36700738749b0498020bef83da29",
"si... |
<?php
declare(strict_types=1);
namespace CQRSTest\EventHandling;
use CQRS\Domain\Message\GenericEventMessage;
use CQRS\EventHandling\EventExecutionFailed;
use CQRS\EventHandling\EventHandlerLocatorInterface;
use CQRS\EventHandling\SynchronousEventBus;
use CQRSTest\Stubs\DummyCallableContainer;
use Exception;
use PHP... | {
"content_hash": "a86da315694482320f51baae0414a0f4",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 90,
"avg_line_length": 30.057971014492754,
"alnum_prop": 0.7087753134040502,
"repo_name": "pauci/cqrs",
"id": "eccbb5fdf2627128e50d8010f2228d24acfe9a4f",
"size": "2074",
... |
package com.database;
/**
* 数据库模型,Secondary_Type(固定资产小类)表,用作增删改查的Where模型
* Created by li_rz on 2016/7/14.
*/
import java.sql.Types;
/**
* main_type => INT
* type_name => NVARCHAR
*/
public class Secondary_Type extends DataBase{
/**
* 初始化
*
* @param keys - 键值
* @param values - 值
... | {
"content_hash": "1b9b6743b05716015edf64a6f4cf571d",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 91,
"avg_line_length": 20.553571428571427,
"alnum_prop": 0.579496090356212,
"repo_name": "lfkdsk/PracticeCode",
"id": "c41ef544f9373a9b2b753e794721ba5945d37447",
"size": "1... |
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | {
"content_hash": "501962d23e31e2674beefda6aa241af4",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 100,
"avg_line_length": 42.09316770186335,
"alnum_prop": 0.7165412424376568,
"repo_name": "googleads/googleads-java-lib",
"id": "dcc00e417d1284ba66a3bdac7548be5e5c532d60",
... |
"""
Slack connections.
TODO: Substitute all this for the slackclient?
"""
import json
import logging
import requests
import asyncio
import websockets
log = logging.getLogger(__name__)
def is_direct_channel(channel_id):
if channel_id is None:
return False
if not channel_id:
return False
... | {
"content_hash": "8b39f1545c4463f32903748afa3bab4d",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 86,
"avg_line_length": 28.629032258064516,
"alnum_prop": 0.5712676056338029,
"repo_name": "PythonSanSebastian/pyper_the_bot",
"id": "ec93bd0be11a14a6e7489cf29363595a38073706... |
'use strict';
var Compiler = require('./compiler');
var defaults = require('./defaults');
var TemplateError = require('./error');
var debugRender = function debugRender(error, options) {
options.onerror(error, options);
var render = function render() {
return '{Template Error}';
};
render.mapp... | {
"content_hash": "a67780dbf86d52966836c063dfb4a615",
"timestamp": "",
"source": "github",
"line_count": 136,
"max_line_length": 89,
"avg_line_length": 23.595588235294116,
"alnum_prop": 0.5244624493611717,
"repo_name": "cdnjs/cdnjs",
"id": "05d8281ecbabc2671297705190c9caf4474c015b",
"size": "3307",
... |
package fakes
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"time"
"github.com/Sirupsen/logrus"
"github.com/emc-advanced-dev/layerx/layerx-core/layerx_brain_client"
"github.com/emc-advanced-dev/layerx/layerx-core/layerx_rpi_client"
"github.com/emc-advanced-dev/layerx/layerx-core/layerx_tpi_client"
"... | {
"content_hash": "62a130dfdbf85974b605522e3159dc65",
"timestamp": "",
"source": "github",
"line_count": 626,
"max_line_length": 131,
"avg_line_length": 27.536741214057507,
"alnum_prop": 0.6581970066132962,
"repo_name": "emc-advanced-dev/layerx",
"id": "6affbad9da80f87baeeb83ae2d6b59093b7f50a5",
"si... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "a46fc684c8b5d1e1907fe291726466a8",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "6083904f3d95b84d8c5aa8ee41e43d5c3c2104e7",
"size": "19... |
package io.github.mzmine.modules.io.import_rawdata_zip;
import java.io.File;
import java.util.List;
import io.github.mzmine.parameters.Parameter;
import io.github.mzmine.parameters.impl.SimpleParameterSet;
import io.github.mzmine.parameters.parametertypes.filenames.FileNamesParameter;
import io.github.mzmine.util.Ex... | {
"content_hash": "749400495416075b76527656c00a9265",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 79,
"avg_line_length": 30.943396226415093,
"alnum_prop": 0.7225609756097561,
"repo_name": "mzmine/mzmine3",
"id": "840911e385a97025bb47af280993a529441f9b2d",
"size": "2785"... |
#include <aws/m2/model/DataSetImportTask.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MainframeModernization
{
namespace Model
{
DataSetImportTask::DataSetImportTask() :
m_status(DataSetTaskLifec... | {
"content_hash": "4fa4bd194672240427d7dc46a29e2c06",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 105,
"avg_line_length": 19.091954022988507,
"alnum_prop": 0.720048163756773,
"repo_name": "aws/aws-sdk-cpp",
"id": "020252599c80f0443079c2111c770249db96741c",
"size": "1780... |
NS_CC_BEGIN
//
// InstantAction
//
bool ActionInstant::isDone() const
{
return true;
}
void ActionInstant::step(float dt) {
CC_UNUSED_PARAM(dt);
float updateDt = 1;
#if CC_ENABLE_SCRIPT_BINDING
// if (_scriptType == kScriptTypeJavascript)
// {
// if (ScriptEngineManager::sendActionEventToJS(th... | {
"content_hash": "d64cc54359924191f3eb105fcdb50d2d",
"timestamp": "",
"source": "github",
"line_count": 412,
"max_line_length": 95,
"avg_line_length": 16.475728155339805,
"alnum_prop": 0.5932527990571597,
"repo_name": "babyliynfg/cross",
"id": "f89d6c8a01706c528ccbec723433bdb60290ed08",
"size": "71... |
class Profile;
namespace apps {
// Interface implemented by app providers.
class AppFetcher {
public:
virtual ~AppFetcher() = default;
virtual void GetApps(ResultCallback callback) = 0;
virtual base::CallbackListSubscription RegisterForAppUpdates(
RepeatingResultCallback callback);
virtual void GetIco... | {
"content_hash": "9f36b4b8f0c60df063a2b50e73fdf72f",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 75,
"avg_line_length": 29.791666666666668,
"alnum_prop": 0.7188811188811188,
"repo_name": "chromium/chromium",
"id": "959ce798d25b3534cd229bf39277c57cc985c828",
"size": "18... |
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// OpenpitrixDescribeRuntimesResponse openpitrix describ... | {
"content_hash": "08dcb23b18881afa0511789b37d09100",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 86,
"avg_line_length": 26.26,
"alnum_prop": 0.7722772277227723,
"repo_name": "openpitrix/openpitrix",
"id": "899409ba4140dcd9accc320d93a79143d6855a71",
"size": "1360",
"b... |
package com.thingtrack.konekti.dao.sensor.api;
import com.thingtrack.konekti.dao.template.Dao;
import com.thingtrack.konekti.domain.sensor.CaptureLocation;
public interface CaptureLocationDao extends Dao<CaptureLocation, Integer> {
}
| {
"content_hash": "2624993995f61e527b4624c0094bcde4",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 75,
"avg_line_length": 29.625,
"alnum_prop": 0.8312236286919831,
"repo_name": "thingtrack/konekti",
"id": "9bcd103abbfd2acb3bb541199821173f618d66b4",
"size": "237",
"binar... |
// Copyright (c) Zolution Software Ltd. All rights reserved.
// Licensed under the MIT License, see LICENSE.txt in the solution root for license information
using System;
using System.Reflection;
namespace Rezolver
{
/// <summary>
/// Represents a binding (i.e. like that produced by <see cref="IMemberBindin... | {
"content_hash": "01dc7f80ad157144de0cae6eb2028835",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 119,
"avg_line_length": 47.765957446808514,
"alnum_prop": 0.6512249443207127,
"repo_name": "ZolutionSoftware/Rezolver",
"id": "35c8a7192e15dd899328ee86153ece538d42b3eb",
"s... |
"""Part of the Keras training engine related to plain array data.
"""
# pylint: disable=protected-access
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from tensorflow.python.framework import errors
from tensorflow.python.keras import ba... | {
"content_hash": "9f51a0e3f0a526a5b6dfb85e7321be44",
"timestamp": "",
"source": "github",
"line_count": 443,
"max_line_length": 79,
"avg_line_length": 35.25056433408578,
"alnum_prop": 0.6141777663934426,
"repo_name": "ZhangXinNan/tensorflow",
"id": "e2c458c65f27c5802acd9186e9bcedd4062e5a2a",
"size"... |
export * from './debounce';
export * from './OrderedSet';
export * from './math';
export * from './utils';
| {
"content_hash": "ea1caba021486cf495b323b959e43fb2",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 29,
"avg_line_length": 26.75,
"alnum_prop": 0.6261682242990654,
"repo_name": "Caleydo/lineupjs",
"id": "7888b1086718e0f95da39e1dc2378a9a933ccd7e",
"size": "107",
"binary":... |
DELETE FROM `comment`;
DELETE FROM `article`;
DELETE FROM `author`;
-- Article
INSERT INTO `article` (`id`, `name`, `unique_key`, `url`, `deleted`)
VALUES (888888, 'Test Article 1', '12345678', 'http://www.baidu.com', 0);
INSERT INTO `article` (`id`, `name`, `unique_key`, `url`, `deleted`)
VALUES (999999, 'Test Arti... | {
"content_hash": "2a10f55cb643fb8cff2e43616dafa685",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 135,
"avg_line_length": 49.607142857142854,
"alnum_prop": 0.652267818574514,
"repo_name": "syhily/gossip",
"id": "bba738a31a533d5a19b1f9c24d225b44fb129a72",
"size": "1447",... |
// Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.
define('ipython3_widget_button', [
'ipython3_widget'
], function (widget) {
var ButtonView = widget.DOMWidgetView.extend({
render : function(){
/**
* Called when view is render... | {
"content_hash": "795a647f138fc414dd99311d2ad196d5",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 88,
"avg_line_length": 32.80821917808219,
"alnum_prop": 0.48768267223382045,
"repo_name": "vital-ai/beaker-notebook",
"id": "f8dad98e704d7944696b9d821539cc2ad7b25928",
"siz... |
<!--
The project.xml generates build environments for:
* android
* autotool
* cmake
* mingw32
* cygwin
* vs2008
* vs2010
* vs2012
* vs2013
Classes are automatically added to all build environments. Further as you
add new classes to y... | {
"content_hash": "99418551b7b0f48efde69bcdd22ed3c6",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 99,
"avg_line_length": 35.12837837837838,
"alnum_prop": 0.6064627813040969,
"repo_name": "gbonnefille/malc",
"id": "42917dde6bf27106b743558ed0d98e8e84a9b8a7",
"size": "519... |
This package provides a flask + sqlalchemy interface to the `update_checker`
package. It is responsible for the actual package checking, and logging of
client info for uniqueness purposes.
| {
"content_hash": "91a1472f4359aa5b6fb32e08323e0bc0",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 76,
"avg_line_length": 63,
"alnum_prop": 0.8148148148148148,
"repo_name": "bboe/update_checker_app",
"id": "48beb16a7bbe7b82e595a722af5aef152d49c74f",
"size": "211",
"bina... |
<li>
<a href="{% if use_edit_links %}{% url 'timeslots_commitment_edit' pattern.id %}{% else %}{{ pattern.get_absolute_url }}{% endif %}">
<span class="pattern-display">{% if use_edit_links %}Edit: {% endif %}{{ pattern }}</span>
</a>
{% if show_subtle_edit_links %}
<a class="editlink subtlelink" href="{{ ... | {
"content_hash": "08dd3ed0760d2a3a8a646ea67d0e94f4",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 134,
"avg_line_length": 47.625,
"alnum_prop": 0.6141732283464567,
"repo_name": "CharityAdmin/CharityAdmin",
"id": "9c8c8fe5c687d41c061ce4544b44d67242d012b2",
"size": "381",
... |
title=Выпуск 94 - Квазар/Пульсар с Русланом и Павлом
audio.url=https://scalalaz.ru/mp3/scalalaz-podcast-94.mp3
audio.length=143116992
page=https://scalalaz.ru/series-94.html
date=2021-01-24
----

* 00:03:22 - Patrons
* 00:05:44 - гости
* 00:09:03 - как пришли к скале... | {
"content_hash": "cfb3212bfd6f4957b40e4c27fb4f4e8c",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 126,
"avg_line_length": 40.44642857142857,
"alnum_prop": 0.7532008830022076,
"repo_name": "scalalaz-podcast/scalalaz-gen",
"id": "6a0d6ca7889da85fd9d1060da3be7e6c07e2cc8d",
... |
<?php
return array(
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use ... | {
"content_hash": "c5f77eeb4ac831d8472b082ce442c352",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 76,
"avg_line_length": 32,
"alnum_prop": 0.45625,
"repo_name": "wtdragon/xxzypy",
"id": "df26e245632863ab9cbd36246786cf7c5bbc2763",
"size": "4480",
"binary": false,
"c... |
id: 5900f3911000cf542c50fea4
title: 'Problem 37: Truncatable primes'
challengeType: 5
forumTopicId: 302031
dashedName: problem-37-truncatable-primes
---
# --description--
The number 3797 has an interesting property. Being prime itself, it is possible to continuously remove digits from left to right, and remain prime ... | {
"content_hash": "4a8932073f3f64944ec846354a994839",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 247,
"avg_line_length": 19.553846153846155,
"alnum_prop": 0.7049567269866247,
"repo_name": "FreeCodeCamp/FreeCodeCamp",
"id": "7cac6e4ddb32ef499cb0354d85291baa2ab93a01",
"s... |
package config_test
import (
"errors"
"log"
"os"
. "github.com/fische/gaoler/config"
"github.com/fische/gaoler/config/formatter/modules"
"github.com/fische/gaoler/project"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Config", func() {
var (
err error
cfg *Config
)
Descri... | {
"content_hash": "25ff38a5fc0a58bb66356a5c53897539",
"timestamp": "",
"source": "github",
"line_count": 238,
"max_line_length": 75,
"avg_line_length": 19.613445378151262,
"alnum_prop": 0.534490145672665,
"repo_name": "fische/gaoler",
"id": "9364842322fbdaf9bdfaddb0a40f0db312cc382c",
"size": "4668",... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Mirrored from bvs.wikidot.com/forum/t-3934950/items:smashed-pocketwatch by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 10... | {
"content_hash": "ee732eb4a38439cf526b7f75cfa5e1e0",
"timestamp": "",
"source": "github",
"line_count": 637,
"max_line_length": 328,
"avg_line_length": 44.09419152276295,
"alnum_prop": 0.5970521219025918,
"repo_name": "tn5421/tn5421.github.io",
"id": "8109a78ddd701cea65bef98e0abb83b1c0d1e975",
"siz... |
package firestore // import "cloud.google.com/go/firestore/apiv1beta1"
import (
"context"
"runtime"
"strings"
"unicode"
"google.golang.org/grpc/metadata"
)
func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context {
out, _ := metadata.FromOutgoingContext(ctx)
out = out.Copy()
for _, md := ... | {
"content_hash": "cad7c4fc35dcd83b9b99244794aaebf4",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 95,
"avg_line_length": 22.602941176470587,
"alnum_prop": 0.6499674690956408,
"repo_name": "pushbullet/engineer",
"id": "4601ea330bcf67b8c538476612812661bad3d334",
"size": "... |
using System;
using System.Management.Automation;
using System.Management.Automation.SecurityAccountsManager;
using System.Management.Automation.SecurityAccountsManager.Extensions;
using Microsoft.PowerShell.LocalAccounts;
#endregion
namespace Microsoft.PowerShell.Commands
{
/// <summary>
/// The Rename-Loca... | {
"content_hash": "67333320efff876993d665b22b88c298",
"timestamp": "",
"source": "github",
"line_count": 229,
"max_line_length": 86,
"avg_line_length": 29.724890829694324,
"alnum_prop": 0.5049214044366094,
"repo_name": "TravisEz13/PowerShell",
"id": "e6b1297a7d5465ae44b1bafd6d0e1b86c5cc6d3a",
"size"... |
/*# sourceMappingURL=kendo.dataviz.blueopal.min.css.map */
| {
"content_hash": "91a0ba88e2bbf12020a2250fc205d29f",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 58,
"avg_line_length": 30,
"alnum_prop": 0.75,
"repo_name": "imangit/Advertise",
"id": "28c5c3864a28b5dc87968bf4ae62f7182b920f05",
"size": "4274",
"binary": false,
"copi... |
package uk.co.datumedge.redislauncher;
import java.util.Collection;
import java.util.HashSet;
import org.apache.commons.exec.ProcessDestroyer;
final class ExecutionProcessDestroyer implements ProcessDestroyer {
private final Collection<Process> processes = new HashSet<Process>();
@Override
public boolean add(Pro... | {
"content_hash": "3f68b3ce26c09234415d62550db7236b",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 70,
"avg_line_length": 20.096774193548388,
"alnum_prop": 0.7463884430176565,
"repo_name": "hertzsprung/redis-launcher",
"id": "4b78e3ccecb8d81d0a7a8b4fd517d9bb4069b9e7",
"s... |
/*!
* Vue.js v2.7.1
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/
var emptyObject = Object.freeze({});
var isArray = Array.isArray;
// These helpers produce better VM code in JS engines due to their
// explicitness and function inlining.
function isUndef(v) {
return v === undefined || v ===... | {
"content_hash": "ac286126710ccda1dfeb0a3144632eae",
"timestamp": "",
"source": "github",
"line_count": 11684,
"max_line_length": 681,
"avg_line_length": 36.027815816501196,
"alnum_prop": 0.5265340932036897,
"repo_name": "cdnjs/cdnjs",
"id": "82e1d14a27f97b06f0d0535e72cc0b002392c315",
"size": "4209... |
package at.salzburgresearch.vgi.vgianalyticsframework.activityanalysis.persistence.impl;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.L... | {
"content_hash": "c53e844145d314064c65d44489e6f4a9",
"timestamp": "",
"source": "github",
"line_count": 656,
"max_line_length": 157,
"avg_line_length": 41.09146341463415,
"alnum_prop": 0.7419498441905327,
"repo_name": "SGroe/vgi-analytics-framework",
"id": "a1f77e875d69c53941f4046c816727a10957acab",
... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Fi... | {
"content_hash": "a70244c2c1e791753109d1981899bd11",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 38.75,
"alnum_prop": 0.7448028673835125,
"repo_name": "sholev/SoftUni",
"id": "d74c1ea1a7399632365853283c8526d3c14a1f77",
"size": "1398",
"binary":... |
<?php
namespace ABC\RspBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use ABC\RspBundle\Entity\Resourceperson;
use ABC\RspBundle\Form\ResourcepersonType;
use Symfony\Component\HttpFoundation\Request;
class RspController extends Controller
{
// creates a form to be rendered to add Rsp... | {
"content_hash": "4755c9838542ce6f25ebeb20d9351a6d",
"timestamp": "",
"source": "github",
"line_count": 188,
"max_line_length": 117,
"avg_line_length": 34.1436170212766,
"alnum_prop": 0.5354416575790621,
"repo_name": "AlectaInfo/Inkambo",
"id": "5d0d7828d72fafdb325ac90bca2c557261c4e3d8",
"size": "6... |
package org.apache.mina.common.support;
import org.apache.mina.common.IoAcceptorConfig;
/**
* A base implementation of {@link IoAcceptorConfig}.
*
* @author The Apache Directory Project (mina-dev@directory.apache.org)
* @version $Rev$, $Date$
*/
public abstract class BaseIoAcceptorConfig extends BaseIoServiceC... | {
"content_hash": "92b9b607109cf8e08a4bf94d2f2409f2",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 74,
"avg_line_length": 26.11111111111111,
"alnum_prop": 0.7276595744680852,
"repo_name": "sarvex/MINA",
"id": "1ef37f11f6d107592015f6050084f6c002a50d61",
"size": "1536",
... |
This is a colection of demos from DevNexus 2013 for my talk "Consuming Rest services with Android"
Slides at : <http://www.rvl.io/secondsun/restful-webservices-on-android/>
| {
"content_hash": "109f31257d3e73af58c887d0dc66b81e",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 98,
"avg_line_length": 58,
"alnum_prop": 0.7816091954022989,
"repo_name": "secondsun/devnexus2013demo",
"id": "711342e2194509fcef4f3d61d09241b52a1c7723",
"size": "174",
"b... |
package network.message;
import qora.transaction.Transaction;
import qora.transaction.TransactionFactory;
import com.google.common.primitives.Bytes;
public class TransactionMessage extends Message{
private Transaction transaction;
public TransactionMessage(Transaction transaction)
{
super(TRANSACTION_TYPE); ... | {
"content_hash": "8e16d7fe1e76ed30cd569d4fbdd42e34",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 74,
"avg_line_length": 20.176470588235293,
"alnum_prop": 0.7376093294460642,
"repo_name": "Bitcoinsulting/Qora",
"id": "bc14c1eb433924e774fcabaacbada3672b415033",
"size": "... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using LanguageExt;
using SJP.Schematic.Core;
using SJP.Schematic.Core.Comments;
using SJP.Schematic.Core.Extensions;
using SJP.Schematic.Oracle.Comments;
using SJP.Schematic.Oracle.Queries;
namespa... | {
"content_hash": "0ca3da77c8f8b9938dd1896dcedefd55",
"timestamp": "",
"source": "github",
"line_count": 443,
"max_line_length": 182,
"avg_line_length": 31.957110609480814,
"alnum_prop": 0.5905205905205905,
"repo_name": "sjp/Schematic",
"id": "b5425fced8dcc252dafc07a24a8afe776ea650d3",
"size": "1415... |
(function() {
gamesoup.namespace('gamesoup.games.dialogHandlers');
var gs = gamesoup;
var mod = gamesoup.games.dialogHandlers;
mod.ConfigureObject = Class.create({
initialize: function(node, options) {
this._node = $(node);
this._objectID = this._node.getAttribute('objectID');
this._options = {objectID: this._... | {
"content_hash": "43e359395e0d23a146637a4887a74c58",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 93,
"avg_line_length": 38.13793103448276,
"alnum_prop": 0.683996383363472,
"repo_name": "ktonon/GameSoup",
"id": "39119282f8c276f6df1b2e1e0d190cf5b5291f57",
"size": "2212",... |
{template '_header'}
<div class="page-heading">
<span class='pull-right'>
{ifp 'qa.question.add'}
<a class="btn btn-primary btn-sm" href="{php echo webUrl('qa/question/add')}"><i class="fa fa-plus"></i> 添加问题</a>
{/if}
</span>
<h2>问题管理 <small>(总数: {$total})</small></h2>
</div>
<fo... | {
"content_hash": "e41cfd4edd9acbff966c9c64ff7ab488",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 241,
"avg_line_length": 53.45454545454545,
"alnum_prop": 0.49058084772370486,
"repo_name": "Broomspun/shanque",
"id": "c0d669b8b1ae63165920c7a965cb928cb7859a16",
"size": "... |
package com.gs.collections.impl.lazy.parallel.set.sorted;
import com.gs.collections.api.annotation.Beta;
import com.gs.collections.api.block.function.Function;
import com.gs.collections.api.block.predicate.Predicate;
import com.gs.collections.api.block.procedure.Procedure;
import com.gs.collections.impl.lazy... | {
"content_hash": "1af3ee40c8aada03e4d0b2010717b00d",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 123,
"avg_line_length": 37.31147540983606,
"alnum_prop": 0.7051845342706503,
"repo_name": "xingguang2013/gs-collections",
"id": "565fffd3654bbf3856dc6ce34ce7e1bf4a426b63",
... |
context.fillStyle = "#ff0000";
context.fillRect(10, 10, 50, 50);
// set composite operation
context.globalCompositeOperation = "destination-over";
// draw a blue rectangle
context.fillStyle = "rgba(0,0,255,1)";
context.fillRect(30, 30, 50, 50);
| {
"content_hash": "f8512ef64c196d9f42cc42b9a0f21b39",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 54,
"avg_line_length": 35,
"alnum_prop": 0.7306122448979592,
"repo_name": "msfrisbie/pjwd-src",
"id": "7b29e0fa7d6a99cffcd396829ff51a18b31f7263",
"size": "269",
"binary": ... |
/*
Creates a MIDIAccess instance:
- Creates MIDIInput and MIDIOutput instances for the initially connected MIDI devices.
- Keeps track of newly connected devices and creates the necessary instances of MIDIInput and MIDIOutput.
- Keeps track of disconnected devices and removes them from the inputs and/or outputs... | {
"content_hash": "826c4fce93c36bd6a4d3c1acc31b2f6c",
"timestamp": "",
"source": "github",
"line_count": 229,
"max_line_length": 135,
"avg_line_length": 26.034934497816593,
"alnum_prop": 0.6699094263669909,
"repo_name": "Elfhir/audioapp",
"id": "38d3c6d69f742ea9978c7b13416da9b1b73f2cb6",
"size": "59... |
package com.android.datetimepicker.time;
import android.animation.ObjectAnimator;
import android.app.ActionBar.LayoutParams;
import android.app.DialogFragment;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.os.Bundle;
import android.uti... | {
"content_hash": "fe76ba211fb94e1d8ec6364c37a2d249",
"timestamp": "",
"source": "github",
"line_count": 971,
"max_line_length": 105,
"avg_line_length": 39.91658084449022,
"alnum_prop": 0.5919657369901185,
"repo_name": "JuudeDemos/android-sdk-20",
"id": "feb9a8a8ba3fd49fdbfd3d427e577e04e02916a0",
"s... |
from nova import db
from nova import exception
from nova import objects
from nova.objects import base as obj_base
from nova.objects import fields
FLOATING_IP_OPTIONAL_ATTRS = ['fixed_ip']
# TODO(berrange): Remove NovaObjectDictCompat
class FloatingIP(obj_base.NovaPersistentObject, obj_base.NovaObject,
... | {
"content_hash": "b533c5a28cb1d318c678a8b08418360b",
"timestamp": "",
"source": "github",
"line_count": 220,
"max_line_length": 79,
"avg_line_length": 40.86818181818182,
"alnum_prop": 0.5796908019130241,
"repo_name": "affo/nova",
"id": "1b5fb98ce4575d2712454477990f375dfadbd2c9",
"size": "9600",
"... |
package org.kuali.kra.common.committee.lookup.keyvalue;
import org.kuali.kra.common.committee.bo.CommitteeDecisionMotionType;
import org.kuali.kra.infrastructure.KraServiceLocator;
import org.kuali.kra.krad.migration.FormViewAwareUifKeyValuesFinderBase;
import org.kuali.rice.core.api.util.ConcreteKeyValue;
import org... | {
"content_hash": "aec8ae7824915c0fae4bd9878aba2b63",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 127,
"avg_line_length": 34.40384615384615,
"alnum_prop": 0.7255449972051425,
"repo_name": "vivantech/kc_fixes",
"id": "669ba59ed9521461e77db7bd509eaa62fbcb97e5",
"size": "2... |
<!DOCTYPE html>
<html class="no-js css-menubar" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="description" content="bootstrap admin template">
<meta ... | {
"content_hash": "14e854555e0c161769a729a7047f0228",
"timestamp": "",
"source": "github",
"line_count": 164,
"max_line_length": 197,
"avg_line_length": 50.25609756097561,
"alnum_prop": 0.48616840572676534,
"repo_name": "hariririski/gudang_online",
"id": "ef1966579447735c12fda0cb0771e8219d56a18c",
"... |
package picard.metrics;
import htsjdk.samtools.SAMRecord;
import htsjdk.samtools.metrics.MetricBase;
import htsjdk.samtools.reference.ReferenceSequence;
/** Defines a MultilevelPerRecordCollector using the argument type of SAMRecord so that this doesn't have to be redefined for each subclass of MultilevelPerRecordCol... | {
"content_hash": "cfb82ccac175bb792c474f661f9f1e75",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 174,
"avg_line_length": 43.857142857142854,
"alnum_prop": 0.8094462540716613,
"repo_name": "alecw/picard",
"id": "14c99683446d1d4f7500c3f563713650649d3a3f",
"size": "614",
... |
namespace SkylineToolkit.Debugging.Commands
{
public interface ICommandContext
{
string[] Arguments { get; }
char[] Flags { get; }
string RawCommand { get; }
bool VerifyArgsCount(int minArgs, int maxArgs);
bool HasFlag(char flag);
void SendOutput(string mes... | {
"content_hash": "c97ab070089efbc7449f738bc747f801",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 55,
"avg_line_length": 18.61111111111111,
"alnum_prop": 0.608955223880597,
"repo_name": "DlkGames/SkylineToolkit",
"id": "dd71088194d46c51d537653c34830c5b072ff0f6",
"size":... |
<!--
Copyright 2004-2014 The Kuali Foundation
Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
Unless r... | {
"content_hash": "411ce4ccc52ffc2cff24875abe368feb",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 148,
"avg_line_length": 45.421052631578945,
"alnum_prop": 0.6210892236384704,
"repo_name": "kuali/kpme",
"id": "8487d79fd4a98474fd20513d347daa5baa10adce",
"size": "2589",
... |
class ChangePresentColumnNull < ActiveRecord::Migration[5.1]
def change
change_column_null :diagnoses, :present, true
end
end
| {
"content_hash": "bd6b264f9a0c5a4d1802d88703eb578b",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 60,
"avg_line_length": 26.8,
"alnum_prop": 0.7611940298507462,
"repo_name": "kamillamagna/NMF_Tool",
"id": "ddeae673d75d8bf744ad6e00f2ac1d1f73d97725",
"size": "134",
"bina... |
Decimal128: [basx683] Zeros
--DESCRIPTION--
Generated by scripts/convert-bson-corpus-tests.php
DO NOT EDIT THIS FILE
--FILE--
<?php
require_once __DIR__ . '/../utils/basic.inc';
$canonicalBson = hex2bin('180000001364000000000000000000000000000000403000');
$canonicalExtJson = '{"d" : {"$numberDecimal" : "0"}}';
$dege... | {
"content_hash": "de7928d46237131c3f62a0cdea6302ff",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 77,
"avg_line_length": 28.428571428571427,
"alnum_prop": 0.7316582914572864,
"repo_name": "jmikola/mongo-php-driver",
"id": "79e6ac6f92f53da7766949002ed8e11ff6b0c390",
"siz... |
using System.IO;
using UnityEngine;
using UDBase.Utils;
namespace UDBase.EditorTools {
public static class UDBaseInfo {
const string RepositoryLink = "https://github.com/KonH/UDBase";
const string ExamplesLink = "https://github.com/KonH/UDBaseExample";
const string AssetsDir = "Assets";
const st... | {
"content_hash": "5a2968cb2eef9c2796c9fb3d3bc78415",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 74,
"avg_line_length": 26.137931034482758,
"alnum_prop": 0.649736147757256,
"repo_name": "KonH/UDBase",
"id": "367ee98bd176980c772f7765aeb71575e82544a4",
"size": "1518",
... |
@class MKMapView;
@interface ABMapViewActionsIntention : NSObject
@property (weak, nonatomic) IBOutlet MKMapView *mapView;
- (IBAction)setMapTypeStandard:(id)sender;
- (IBAction)setMapTypeHybrid:(id)sender;
- (IBAction)setMapTypeSatellite:(id)sender;
- (IBAction)setMapTypeNext:(id)sender;
- (IBAction)setUsertrackin... | {
"content_hash": "1432ef1fc581fb9748e3574a0b4e0b43",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 60,
"avg_line_length": 29.823529411764707,
"alnum_prop": 0.8007889546351085,
"repo_name": "k06a/ABIntentions",
"id": "28ed6c635e5178f865c6d0120cf21f9ad33b2348",
"size": "70... |
@interface TinFile : NSObject
@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSString *mimeType;
@property (nonatomic, retain) NSData *data;
+ (id)fileWithData:(NSData *)aData;
+ (id)fileWithImage:(UIImage *)image;
+ (id)fileWithImageNamed:(NSString *)imageName;
+ (id)fileWithPNGImage:(U... | {
"content_hash": "243e6899cd266813cfbce4e9534a7ab1",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 98,
"avg_line_length": 35.526315789473685,
"alnum_prop": 0.7748148148148148,
"repo_name": "Inferis/IIResidenceStore",
"id": "51969165a323450450af31c4ffa34dbcfa757570",
"siz... |
<?php
namespace Flarum\Tests\integration\extenders;
use Flarum\Extend;
use Flarum\Testing\integration\TestCase;
class ThemeTest extends TestCase
{
/**
* @test
*/
public function theme_extender_override_import_doesnt_work_by_default()
{
$response = $this->send($this->request('GET', '/'... | {
"content_hash": "c010e59b367792bc43149637e7e71d11",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 114,
"avg_line_length": 33.49230769230769,
"alnum_prop": 0.5718879191548002,
"repo_name": "flarum/core",
"id": "ba8e50e0b6aa035cf3ffad8e34684830cdfee56f",
"size": "4522",
... |
package org.apache.samza.operators.impl;
import java.util.Collection;
import java.util.Collections;
import java.util.Set;
import org.apache.samza.context.Context;
import org.apache.samza.context.MockContext;
import org.apache.samza.job.model.TaskModel;
import org.apache.samza.metrics.Counter;
import org.apache.samza.... | {
"content_hash": "2fa75481c1942cfaebf9b8b4ffa9112c",
"timestamp": "",
"source": "github",
"line_count": 227,
"max_line_length": 115,
"avg_line_length": 39.43171806167401,
"alnum_prop": 0.7649424645291029,
"repo_name": "bharathkk/samza",
"id": "d5d7f3d38872e0ed160c5eca379ad0836306828d",
"size": "975... |
using GenFx.Validation;
using System;
using Xunit;
namespace GenFx.Components.Tests
{
/// <summary>
/// Contains unit tests for the <see cref="BooleanValidator"/> class.
/// </summary>
public class BooleanValidatorTest
{
/// <summary>
/// Tests that the ctor initializes the state c... | {
"content_hash": "1502d9691582d9d9094698ce38e7b3c9",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 131,
"avg_line_length": 35.6140350877193,
"alnum_prop": 0.6044334975369459,
"repo_name": "mthalman/GenFx",
"id": "d61f698900cc7b3c570e240efadb0f73aeef78f7",
"size": "2032",... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__char_connect_socket_ofstream_72a.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-72a.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: connect_socket Read dat... | {
"content_hash": "f927b785d1125050a950d25ec3183fa7",
"timestamp": "",
"source": "github",
"line_count": 199,
"max_line_length": 124,
"avg_line_length": 28.100502512562816,
"alnum_prop": 0.5820815450643777,
"repo_name": "maurer/tiamat",
"id": "22723636459b39a04374a3fb14c5c6b79313a225",
"size": "5592... |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="40dp"
android:height="40dp"
android:viewportWidth="40"
android:viewportHeight="40"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M17.708,37.542 ... | {
"content_hash": "37678e057a73156210bdc7af6c6cce0e",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 96,
"avg_line_length": 38.8,
"alnum_prop": 0.6958762886597938,
"repo_name": "google/material-design-icons",
"id": "6db401f2553f657099f67d734206e18691bc322f",
"size": "388",... |
require 'terminal-table'
require 'spaceship'
require 'fastlane_core/provisioning_profile'
require 'fastlane_core/print_table'
require_relative 'module'
require_relative 'storage'
require_relative 'encryption'
module Match
class Nuke
attr_accessor :params
attr_accessor :type
attr_accessor :certs
a... | {
"content_hash": "00ef102dedeffe7a09f6038cd1c03676",
"timestamp": "",
"source": "github",
"line_count": 307,
"max_line_length": 145,
"avg_line_length": 36,
"alnum_prop": 0.6163590300398119,
"repo_name": "brbulic/fastlane",
"id": "2c54ef25a3ddce923ce9c4e085abbb6a75523d4b",
"size": "11076",
"binary... |
[](https://circleci.com/gh/Alxmerino/my-finance)
A small app used to handle my finaces
| {
"content_hash": "7a9eb60d7c5c0005ae0a55d3aff55931",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 119,
"avg_line_length": 53,
"alnum_prop": 0.7610062893081762,
"repo_name": "Alxmerino/my-finance",
"id": "d50da83814f6dddfa167d2c7b39fa886bc3aaf8b",
"size": "173",
"binary... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.