text stringlengths 2 1.04M | meta dict |
|---|---|
chenxinlong translating
Who needs a GUI? How to live in a Linux terminal
=================================================

### The best Linux shell apps for handling common functions
Ever consider the idea of living entirely... | {
"content_hash": "3fbab0cb3e941ff1f28f14719ba081ac",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 558,
"avg_line_length": 72.0091743119266,
"alnum_prop": 0.7537265893744426,
"repo_name": "jiajia9linuxer/TranslateProject",
"id": "148d75821693d7404412d0bf0999547c4cdacde1",... |
package chatty.bot.commands;
import chatty.bot.Matchpreview.PreviewBot;
public class CmdTurnNotifications extends Cmd{
private boolean mode;
public CmdTurnNotifications(boolean mode){
this.mode = mode;
}
@Override
public void CallPreviewBot(PreviewBot pb) {
pb.TurnNotifications(super.getName()... | {
"content_hash": "b141dea8d86174aa77e0fc1888d35823",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 46,
"avg_line_length": 18.2,
"alnum_prop": 0.6967032967032967,
"repo_name": "Jolicost/ChattyTpp",
"id": "b9184b7d3a262d8d16e97da91f2cbeb45926af77",
"size": "455",
"binary... |
<?xml version='1.0'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | {
"content_hash": "4bfad5f952480b0f2b4de865388887f5",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 201,
"avg_line_length": 38.867924528301884,
"alnum_prop": 0.5740291262135923,
"repo_name": "paulgallagher75/activemq-artemis",
"id": "a3842868b59504e33bc775db9a1e2a268895195... |
'use strict';
/**
* @ngdoc overview
* @name digitalCasefileApp
* @description
* # digitalCasefileApp
*
* Main module of the application.
*/
angular
.module('digitalCasefileApp', [
'ngCookies',
'ngAnimate',
'ngAria',
'ngMessages',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch'... | {
"content_hash": "506808b79db0fbe3463326cfbd1106b2",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 66,
"avg_line_length": 22.163636363636364,
"alnum_prop": 0.5972108285479901,
"repo_name": "cleargif/digital-casefile-frontend",
"id": "3bbd0647eaef07cbb82c27e1885069ea5dae248... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title><?php print $cabecalho_title;?></title>
<link href="https://fonts.googleapis.com/css?family=PT+Sans|Bad+Script" rel="stylesheet"> <!--Importano a font do site do google-->
<link rel="stylesheet" href="css/reset.css">
<!--Cad... | {
"content_hash": "811dc213506f097bcfb52e7020098680",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 147,
"avg_line_length": 38.645833333333336,
"alnum_prop": 0.477088948787062,
"repo_name": "ValeriaNiceria/ApostilaCaelum",
"id": "40e63f3e468344710b1f96a2948b92caf2f1730a",
... |
package control;
import jdbc.UpdateCopy;
import vo.Copy;
public class CopyControl {
public static int newCopy(Copy copy) {
if (!UpdateCopy.newCopy(copy.getDocument().getId(), copy.getBranch().getId(), copy.getPosition())) {
return Constant.EXCEPTION;
}
return Constant.SUCCESSFUL;
}
}
| {
"content_hash": "f6be9c17000fdb5d0c1e49fbd507be3d",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 102,
"avg_line_length": 23.923076923076923,
"alnum_prop": 0.6977491961414791,
"repo_name": "rs843/CS631Phase3",
"id": "f8714a3074a4b4c65f191baed611341d0f837d8f",
"size": "3... |
Pi is responsible for sending the beats at the appropriate rate. It sends a column
Note a recent change, to make this easier to implement in PXT which has comparisons
but not positional indexing in strings
on radio rx:
if string matches “A” + “,” + myX + “,” + myY + “1”
etc
# Changelog
0.2
* Add the provisi... | {
"content_hash": "2a7d5a16828970bc83d44c3dd9b18213",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 96,
"avg_line_length": 19.35135135135135,
"alnum_prop": 0.6218575418994413,
"repo_name": "whaleygeek/tonematrix",
"id": "ada009c24d74021c4051d6b916a59c89450f576c",
"size":... |
package org.apache.jmeter.report.dashboard;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Map;
import java.util.TimeZone;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import org.apache.commons.io.FileUtils;
import org.apache.commons.la... | {
"content_hash": "17878b6cd60788e40d5309313ccee195",
"timestamp": "",
"source": "github",
"line_count": 467,
"max_line_length": 117,
"avg_line_length": 43.28051391862955,
"alnum_prop": 0.62363942212547,
"repo_name": "d0k1/jmeter",
"id": "6a9dfb7b1f882100fa92bd8195ed4bae76de3017",
"size": "21014",
... |
package org.apache.nutch.scoring;
import java.util.Collection;
import java.util.List;
import java.util.Map.Entry;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.io.Text;
import org.apache.nutch.crawl.CrawlDatum;
import org.apache.nutch.crawl.Inlinks;
... | {
"content_hash": "1b312c9c4da10dbccd99bf540f4210f8",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 81,
"avg_line_length": 33.922330097087375,
"alnum_prop": 0.7069261591299371,
"repo_name": "nhahv/apache-nutch-1.x",
"id": "5bad78f6024882aebe6477b8c952d3ebe231e0e2",
"size... |
namespace NuGetFeed.Infrastructure.Repositories
{
public interface IRepository<T>
{
void Insert(T obj);
void Save(T obj);
}
} | {
"content_hash": "9e4f38e14830b695442d8b6bb7207514",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 47,
"avg_line_length": 18,
"alnum_prop": 0.5987654320987654,
"repo_name": "NuGetFeed/NuGetFeed",
"id": "a82cf26d435e726c2a325839b977c530e1e3ea9a",
"size": "162",
"binary":... |
<?php
class Google_Service_CloudTasks_Task extends Google_Model
{
protected $appEngineHttpRequestType = 'Google_Service_CloudTasks_AppEngineHttpRequest';
protected $appEngineHttpRequestDataType = '';
public $createTime;
public $dispatchCount;
protected $firstAttemptType = 'Google_Service_CloudTasks_Attempt'... | {
"content_hash": "50de804c8d19ccef0757af8f49b01512",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 111,
"avg_line_length": 23.458715596330276,
"alnum_prop": 0.7008212749315604,
"repo_name": "moometric/GSuiteSignatureManager",
"id": "1735c8e5449f0c275913c6af8e9994fe20cb844... |
<div class="commune_descr limited">
<p>
Couargues est
un village
géographiquement positionné dans le département de Cher en Centre. Elle comptait 224 habitants en 2008.</p>
<p>Le nombre d'habitations, à Couargues, était réparti en 2011 en six appartements et 149 maisons soit
un marché plutôt équilibré.... | {
"content_hash": "3c7ba96ed4750e55b91cfcac2292c04a",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 166,
"avg_line_length": 74.3529411764706,
"alnum_prop": 0.7333860759493671,
"repo_name": "donaldinou/frontend",
"id": "1ab743c4a1bacaebcfcf211248f8b718256743ff",
"size": "1... |
"""
Save media files.
"""
from __future__ import (absolute_import, division,
print_function, unicode_literals)
import os
import tarfile
from django.core.management.base import CommandError
from django.core.files.storage import get_storage_class
from ._base import BaseDbBackupCommand, make_opti... | {
"content_hash": "7d23474dc9085ecbf6e66ac087a705b0",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 92,
"avg_line_length": 38,
"alnum_prop": 0.5852245292129407,
"repo_name": "django-dbbackup/django-dbbackup",
"id": "542f3ff014e3a254f4898d58cd96c67827a0716d",
"size": "414... |
<!DOCTYPE html>
<html>
<head>
<title>Dave Raskin</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.96.1/css/materialize.min.css">
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/0.9.4/angular-material.min.css">
<link rel="stylesheet" h... | {
"content_hash": "cbdbf2123ba1d3e4d1da95173099b4b8",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 121,
"avg_line_length": 55.42857142857143,
"alnum_prop": 0.6851374570446735,
"repo_name": "daveraskin/daveraskin.github.io",
"id": "2ef99da88ad01572cce9692eaa7c5fade4097a90",... |
#ifndef _SECTION_CONFIG_H_
#define _SECTION_CONFIG_H_
#include "basic_types.h"
#include "platform_autoconf.h"
#define RAM_VECTOR_TABLE1_SECTION \
SECTION(".ram_vector_table1")
#define RAM_VECTOR_TABLE2_SECTION \
SECTION(".ram_vector_table2")
#define RAM_VECTOR_TABLE3_SECTION ... | {
"content_hash": "b2197886957d7476993f7e9889b76029",
"timestamp": "",
"source": "github",
"line_count": 211,
"max_line_length": 103,
"avg_line_length": 28.744075829383885,
"alnum_prop": 0.609563066776587,
"repo_name": "sunghan-chang/TizenRT",
"id": "8d074c045273c129b295239a489402c9ec357c41",
"size"... |
import numpy as np
import theano
import theano.tensor as T
def floatX(arr):
"""Converts data to a numpy array of dtype ``theano.config.floatX``.
Parameters
----------
arr : array_like
The data to be converted.
Returns
-------
numpy ndarray
The input array in the ``floatX... | {
"content_hash": "a97f8867c1001d11af3c8ba87943db84",
"timestamp": "",
"source": "github",
"line_count": 302,
"max_line_length": 79,
"avg_line_length": 31.026490066225165,
"alnum_prop": 0.6050160085378868,
"repo_name": "gabortakacs/Lasagne",
"id": "aae5a6a78423ae0ea0ea6775d4e118012dd0beaf",
"size": ... |
class Goblin : public Enemy
{
public:
Goblin(Dungeon &dungeon, int x, int y, int score, int exp);
~Goblin();
void levelUp();
};
#endif // RUOEG_GAMEOBJECTS_ENEMIES_GOBLIN_H_ | {
"content_hash": "e1ae8fb5abdd528ebf37f3a565b1e39d",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 60,
"avg_line_length": 17.8,
"alnum_prop": 0.6853932584269663,
"repo_name": "SanchezSobrino/Ruoeg",
"id": "4cb6da3934ed578a4558f9a412b62018e955ee24",
"size": "342",
"bina... |
package interpreter.interpreter;
import interpreter.ast.Node;
/**
* Created by Thomas on 2-3-2015.
*/
public interface Interpreter {
public void interpret(final Node node);
}
| {
"content_hash": "9bf85508282d1c734c655edb85e78d8b",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 43,
"avg_line_length": 15.416666666666666,
"alnum_prop": 0.7243243243243244,
"repo_name": "yakkiesc/lua-interpreter",
"id": "a5887b060c14b50cb867d04c27c74c8c0ef4c792",
"siz... |
void IfSearch::doSimilarity(void)
{
if (ffdBusy)
{
INFO("[SEARCH] ffdBusy");
if (--searchTimeout <= 0)
return searchError("Timeout");
QTimer::singleShot(100, this, SLOT(doSearch()));
return;
}
PROGRESS("[SEARCH] Started for Similarity");
searchResults.clea... | {
"content_hash": "5caa4556cdbfbf0e1605fb39835afe85",
"timestamp": "",
"source": "github",
"line_count": 144,
"max_line_length": 84,
"avg_line_length": 35.6875,
"alnum_prop": 0.6137380813387818,
"repo_name": "eirTony/INDI1",
"id": "9008883d883620c91fc29786fa44202415732df4",
"size": "5602",
"binary... |
import { create } from '@storybook/theming/create';
export default create({
base: 'light',
/*colorPrimary: 'hotpink',
colorSecondary: 'deepskyblue',
// UI
appBg: 'white',
appContentBg: 'silver',
appBorderColor: 'grey',
appBorderRadius: 4,
*/
// Typography
fontBase: '"Open Sans", sans-serif',
fo... | {
"content_hash": "3b13e92d30b2f75db375813c9402184d",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 51,
"avg_line_length": 21.435897435897434,
"alnum_prop": 0.6614832535885168,
"repo_name": "wfp/ui",
"id": "3e082438a8464e89267c0a83f576ed025b23f329",
"size": "836",
"bina... |
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".ui.activity.HomeActivity">
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
... | {
"content_hash": "6405483e82b783a892d24015996848a7",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 64,
"avg_line_length": 40.6,
"alnum_prop": 0.6625615763546798,
"repo_name": "jeremiahespinosa/ToDoList",
"id": "d588a165ef32b704aabb6878c4b9dd8fef56e43b",
"size": "406",
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace SharpGL
{
public partial class OpenGL
{
/// <summary>
/// Determines whether a named extension function is supported.
/// </summary>
... | {
"content_hash": "a28076559ca76fe41fdcd5ef9b3cda4f",
"timestamp": "",
"source": "github",
"line_count": 5918,
"max_line_length": 642,
"avg_line_length": 53.117945251774245,
"alnum_prop": 0.6182146129180027,
"repo_name": "LittleFox94/sharpgl",
"id": "542f0cb4621616528564f8fbedb413fa7498d5cf",
"size"... |
package com.java110.report.bmo.reportFeeMonthStatistics;
import com.java110.po.reportFeeMonthStatistics.ReportFeeMonthStatisticsPo;
import org.springframework.http.ResponseEntity;
public interface IDeleteReportFeeMonthStatisticsBMO {
/**
* 修改费用月统计
* add by wuxw
* @param reportFeeMonthStatisticsPo
... | {
"content_hash": "b5c3317bf80dd274ecfa5beebc0f06aa",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 89,
"avg_line_length": 25.705882352941178,
"alnum_prop": 0.7780320366132724,
"repo_name": "java110/MicroCommunity",
"id": "2ab5ae9c6811bb29670d4ca6b79f293e01197173",
"size"... |
The package provides probability distributions.
## [Documentation][doc]
[doc]: http://godoc.org/github.com/ready-steady/probability/distribution
| {
"content_hash": "480a6af0e477c289c0cd527b4ffc083b",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 72,
"avg_line_length": 29.4,
"alnum_prop": 0.7891156462585034,
"repo_name": "ready-steady/probability",
"id": "4a79120db360dd84d7262fcce6cdc6dd4cd06c41",
"size": "163",
"b... |
/**
* @file
* IIR filter interface
*/
#ifndef AVCODEC_IIRFILTER_H
#define AVCODEC_IIRFILTER_H
#include "avcodec.h"
struct FFIIRFilterCoeffs;
struct FFIIRFilterState;
enum IIRFilterType{
FF_FILTER_TYPE_BESSEL,
FF_FILTER_TYPE_BIQUAD,
FF_FILTER_TYPE_BUTTERWORTH,
FF_FILTER_TYPE_CHEBYSHEV,
FF_FI... | {
"content_hash": "54e091afc7cb76a5887193aa910fcf41",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 101,
"avg_line_length": 30.883495145631066,
"alnum_prop": 0.6598553913863565,
"repo_name": "fillest/rtmp_load",
"id": "bc65a96b59bd67782c0799024f4bee207066cc38",
"size": "... |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:... | {
"content_hash": "72ae9df3e4c54c6b35d61b857a9b03df",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 74,
"avg_line_length": 33,
"alnum_prop": 0.6106346483704974,
"repo_name": "psuwgipgf/BaseAndroid",
"id": "3d634462a7ef7196c761512150c3da93f0b39b82",
"size": "1757",
"bina... |
package org.apache.maven.repository.metadata;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import javax.inject.Inject;
import org.apache.maven.artifact.ArtifactScopeEnum;
import org.codehaus.plexus.testing.PlexusTest;
import org.junit.jupi... | {
"content_hash": "c6fa8632d22ccd179643b772cd26c0cb",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 116,
"avg_line_length": 42.144444444444446,
"alnum_prop": 0.5557606116530451,
"repo_name": "apache/maven",
"id": "536b4bb552ec132eaa19445c4eca0e8c69e346a1",
"size": "8393"... |
class sACNListener;
class sACNSentUniverse;
enum StreamingACNProtocolVersion
{
sACNProtocolUnknown = 0,
sACNProtocolDraft,
sACNProtocolRelease,
};
class sACNSource : public QObject
{
Q_OBJECT
public:
explicit sACNSource();
CID src_cid;
bool src_valid;
quint8 lastseq;
ttimer active... | {
"content_hash": "e5db6b968a3230a90ffc17694cf6f32b",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 108,
"avg_line_length": 30.623853211009173,
"alnum_prop": 0.7043139604553625,
"repo_name": "marcusbirkin/sacnview",
"id": "54571416540185aef2a563a5e763d65288553ae0",
"size... |
public class Test {
public static void main(String[] args) {
System.out.println("Hi!");
}
}
| {
"content_hash": "8d78761c32b36ba0a9c69d4b8668beff",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 44,
"avg_line_length": 21.6,
"alnum_prop": 0.5833333333333334,
"repo_name": "dcos-labs/dcos-maven-plugin",
"id": "c35ad141f6ab7664e05c0df648cf6f29caa01466",
"size": "109",
... |
FactoryBot.define do
factory :part_payment do
application
expires_at { rand(3..7).days.from_now }
factory :part_payment_part_outcome do
outcome { 'part' }
end
factory :part_payment_none_outcome do
outcome { 'none' }
end
factory :part_payment_return_outcome do
outcome {... | {
"content_hash": "fa3e40b2d465f5ec0eca033a3d5f853f",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 47,
"avg_line_length": 21.103448275862068,
"alnum_prop": 0.6209150326797386,
"repo_name": "ministryofjustice/fr-staffapp",
"id": "da8915c2f0abe9a454f88231ba4c257f8df02beb",
... |
The following instructions apply to
the
[Raspberry Pi 2 Model B v1.2](https://www.raspberrypi.org/products/raspberry-pi-2-model-b/).
Other models may work just fine but YMMV.
## Preparing the Raspberry Pi
You will need:
* 4GB or bigger microSD card
* USB drive adapter or other way to flash microSD
* (Optional) 802.1... | {
"content_hash": "5a3a80455535a4d14d7c22ae298176b4",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 100,
"avg_line_length": 28.36842105263158,
"alnum_prop": 0.7541743970315399,
"repo_name": "endlessm/chromium-browser",
"id": "d19af05f5d222baa496678cb8a8f882964a41d61",
"si... |
title: "Gradle Sync task is not incremental"
date: 2016-09-21 12:09
classes: wide
categories: dev
---
While this may seem obvious to some it came as a surprise to learn that Gradle's
[Sync](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Sync.html) task
will copy the entire source even if only one file has ch... | {
"content_hash": "c40f43ddb645e7c3c5db29f9196c04f2",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 80,
"avg_line_length": 23.791044776119403,
"alnum_prop": 0.6800501882057717,
"repo_name": "ftclausen/ftclausen.github.io",
"id": "67216f0837dc32a099743bb0e37423f4543cd441",
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-fingroup: 1 m 47 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | {
"content_hash": "d394b2d36c2525f5fe2c984415c8dee5",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 554,
"avg_line_length": 58.3551912568306,
"alnum_prop": 0.5862908512032962,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "ee7ffd36faf961c1211290f19e2485e9f0501c6f",
... |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:id="@+id/fragment_container" >
</LinearLayout> | {
"content_hash": "ea8896cde2b29a0e5ec59270972c5092",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 72,
"avg_line_length": 37.375,
"alnum_prop": 0.7324414715719063,
"repo_name": "india-rose/old-indiarose",
"id": "7a2d6d787dccf9ec795998d4f896eb1660893f31",
"size": "299",
... |
/* * * This file was autogenerated by Styler at 02:02 on 02/15/2003 * * */
/***********************************************************
* SCRIPT-SUPPORTING STYLES
***********************************************************/
/* Defines the userData cache persistence mechanism. */
.userDataStyle... | {
"content_hash": "a2857892c8e0820afa673ed5eec42c75",
"timestamp": "",
"source": "github",
"line_count": 1115,
"max_line_length": 184,
"avg_line_length": 18.60627802690583,
"alnum_prop": 0.5983804106815772,
"repo_name": "jozefizso/sandcastle-presentation",
"id": "79834734dd1e99dbd9b8b82a35ec5612ea9832... |
class TamlJSONReader
{
public:
TamlJSONReader( Taml* pTaml ) :
mpTaml( pTaml )
{}
virtual ~TamlJSONReader() {}
/// Read.
SimObject* read( FileStream& stream );
private:
Taml* mpTaml;
typedef HashMap<SimObjectId, SimObject*> typeObjectReferenceHash;
typeObjectReferenceHash mOb... | {
"content_hash": "aa92f8ae7e605bec0414f34d4b2d551d",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 162,
"avg_line_length": 39.42857142857143,
"alnum_prop": 0.7427536231884058,
"repo_name": "RichardRanft/Torque2D",
"id": "bf201a0d09ae1eba2c354688d6931b0699c3a218",
"size":... |
package framework
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"math/rand"
"net"
"net/http"
"net/url"
"os"
"os/exec"
"path"
"path/filepath"
"regexp"
"sort"
"strconv"
"strings"
"sync"
"syscall"
"text/tabwriter"
"time"
"github.com/golang/glog"
"golang.org/x/crypt... | {
"content_hash": "fda25d82df7cf4bef1601843e0574d3b",
"timestamp": "",
"source": "github",
"line_count": 5246,
"max_line_length": 195,
"avg_line_length": 35.18051849027831,
"alnum_prop": 0.7079872342961795,
"repo_name": "krousey/kubernetes",
"id": "19e090e4be9818011124adb14a02afb32b76caea",
"size": ... |
"""Support for (EMEA/EU-based) Honeywell TCC climate systems.
Such systems include evohome, Round Thermostat, and others.
"""
from datetime import datetime as dt, timedelta
import logging
import re
from typing import Any, Dict, Optional, Tuple
import aiohttp.client_exceptions
import evohomeasync
import evohomeasync2
... | {
"content_hash": "9c1f973b9503bbef2b1bfded43f1e59f",
"timestamp": "",
"source": "github",
"line_count": 703,
"max_line_length": 88,
"avg_line_length": 36.173541963015644,
"alnum_prop": 0.6075108139992135,
"repo_name": "mKeRix/home-assistant",
"id": "e436268db63ef26bb9d8b2b17eff881a33a4f239",
"size"... |
// JSmol.js -- Jmol pure JavaScript version
// author: Bob Hanson, hansonr@stolaf.edu 4/16/2012
// author: Takanori Nakane biochem_fan 6/12/2012
// BH 6/12/2015 6:08:08 AM image loading from PNGJ file bytes using data uri not working
// BH 3/28/2015 6:18:33 AM refactoring to generalize for non-Jmol-related SwingJ... | {
"content_hash": "e81e325b8abf5e925a6a3ac2f4c0b34d",
"timestamp": "",
"source": "github",
"line_count": 516,
"max_line_length": 177,
"avg_line_length": 35.28294573643411,
"alnum_prop": 0.603757003185763,
"repo_name": "ekimb/esperite",
"id": "4d383fd8f59f29ddad46e6665e749c74eddd5027",
"size": "18206... |
typedef struct _oparam
{
std::string alias;
s32 index;
u8 is_fp16;
} oparam;
class CFPParser : public CParser
{
public:
CFPParser();
virtual ~CFPParser();
virtual int Parse(const char *str);
private:
void ParseInstruction(struct nvfx_insn *insn,opcode *opc,const char *param_str);
void ParseMaskedDstReg(const... | {
"content_hash": "8c6c952b668bf040b3ecaefdf7d68440",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 81,
"avg_line_length": 25.428571428571427,
"alnum_prop": 0.75,
"repo_name": "ps3dev/PSL1GHT",
"id": "b15cc37eca46abfc188e63ea24059fba37bdf937",
"size": "1221",
"binary": ... |
import frappe
def get_data():
return frappe._dict({
"dashboards": get_dashboards(),
"charts": get_charts(),
"number_cards": None,
})
def get_dashboards():
return [{
"name": "Website",
"dashboard_name": "Website",
"charts": [
{ "chart": "Website Analytics", "width": "Full" }
]
}]
def get_charts()... | {
"content_hash": "115e2031de955b6c06db47589f4eb089",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 152,
"avg_line_length": 23.833333333333332,
"alnum_prop": 0.5897435897435898,
"repo_name": "mhbu50/frappe",
"id": "1ac7ca60ec7c208335158a83aa4b932e60e091ce",
"size": "858",... |
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import javax.imageio.ImageIO;
import net.... | {
"content_hash": "34d6a3e6a045ae5b78430f06df21083e",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 150,
"avg_line_length": 32.505050505050505,
"alnum_prop": 0.7675574891236793,
"repo_name": "darciopacifico/omr",
"id": "5fa1a6e00daebedb1e29774e5e3ce35c67396c10",
"size": "... |
"use strict";
var error = require("./../../error");
var Util = require("./../../util");
var user = module.exports = {
user: {}
};
(function() {
/** section: github
* user#getFrom(msg, callback) -> null
* - msg (Object): Object that contains the parameters and their values to be sent to the ... | {
"content_hash": "7aba414dd088f5bb49e6249c4093bb54",
"timestamp": "",
"source": "github",
"line_count": 734,
"max_line_length": 148,
"avg_line_length": 36.85422343324251,
"alnum_prop": 0.4907766810838786,
"repo_name": "smwhit/technotes",
"id": "23a9991d0475b591288ac36ef1b1690737a3111c",
"size": "27... |
NRML="$(tput sgr0)"
RED="$(tput setaf 1)"
BLUE="$(tput setaf 4)"
GREEN="$(tput setaf 2)"
DIR="`pwd`"
declare -A platforms=(
["ingress-ice-linux32"]="https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-i686.tar.bz2"
["ingress-ice-linux64"]="https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.... | {
"content_hash": "0d40bf57ec6fd9fb43068593e1c09453",
"timestamp": "",
"source": "github",
"line_count": 125,
"max_line_length": 149,
"avg_line_length": 25.376,
"alnum_prop": 0.6560529634300126,
"repo_name": "wposada/ingress-ice",
"id": "a90c980ce4ae8b7a2ce6f510f1c71b58fc078b4e",
"size": "3211",
"... |
using System.Collections.Generic;
using System.Text;
namespace PicasaDatabaseReader.Fields
{
internal class StringField : FieldBase, IField
{
public StringField(string fieldFilepath) : base(fieldFilepath)
{
Type = typeof (string);
}
public override object ReadValue... | {
"content_hash": "b421ca4a68c15d3817cd4b64f3adffdb",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 70,
"avg_line_length": 23,
"alnum_prop": 0.4827586206896552,
"repo_name": "jabacrack/Picasa-database-reader",
"id": "dd668e70d105c2a516defa7912e84a6da0e1e82a",
"size": "669... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.tsa.regime_switching.markov_autoregression.MarkovAutoregression.fit — statsmodels v0.10.2 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<... | {
"content_hash": "274318f3a5fff487bf221859c5a6c9ea",
"timestamp": "",
"source": "github",
"line_count": 232,
"max_line_length": 961,
"avg_line_length": 54.814655172413794,
"alnum_prop": 0.6855390422269403,
"repo_name": "statsmodels/statsmodels.github.io",
"id": "df8bb486d493458765836b5617fd8c4c57e1c2... |
/**
* Created by ben on 2/2/16.
*/
export class App {
configureRouter(config, router) {
config.title = 'Aurelia';
//config.map([
// { route: ['', 'welcome'], name: 'welcome', moduleId: 'welcome', nav: true, title: 'Welcome' },
// { route: 'users', name: 'use... | {
"content_hash": "32e3ad30e315b2c24048652522e066c9",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 123,
"avg_line_length": 37.93333333333333,
"alnum_prop": 0.5043936731107206,
"repo_name": "weagle08/aurelia-cordova-test",
"id": "266508540fae4de9c6c0ee483757ca166c009c31",
... |
<?php defined('SYSPATH') or die('No direct script access.');
class Model_Catstate extends Model {
public function fetch_all()
{
return DB::select('id', 'name')
->from('cat_state')
->order_by('name', 'ASC')
->execute();
}
} | {
"content_hash": "8b1461b0d72136b4873db2b3fff7934d",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 60,
"avg_line_length": 18.46153846153846,
"alnum_prop": 0.6125,
"repo_name": "rjsteinert/taktaktak",
"id": "796357ddb09f9589619402d44d05583f23f69d18",
"size": "240",
"bin... |
var express = require('express');
var passport = require('passport');
var Account = require('../models/account');
var router = express.Router();
router.get('/', function(req, res) {
res.render('index', {
user: req.user
});
});
router.get('/register', function(req, res) {
res.render('register', {})... | {
"content_hash": "45e2317a83180bd988638b6e817034eb",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 74,
"avg_line_length": 22.423076923076923,
"alnum_prop": 0.5600343053173242,
"repo_name": "moodpo/Plucked",
"id": "388b46a35a7732c3af0a6525f1b95dbd9154f602",
"size": "1166"... |
/*************************************************************************/
/* navigation_server_2d.h */
/*************************************************************************/
/* This file is part of: */
/* ... | {
"content_hash": "f442e4597ad491a415567b65b57010ba",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 136,
"avg_line_length": 43.48235294117647,
"alnum_prop": 0.648538961038961,
"repo_name": "vnen/godot",
"id": "7350eeb5b16b98a887d07c0eba38fa8b5d7a844f",
"size": "7392",
... |
<?php
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
// Load the view framework
if(!class_exists('VmViewAdmin'))require(VMPATH_ADMIN.DS.'helpers'.DS.'vmviewadmin.php');
// Load some common models
if(!class_exists('VirtueMartModelCustomfields')) require(VMPATH_ADM... | {
"content_hash": "d8d84b7053c3b34277cb96f61c9a6942",
"timestamp": "",
"source": "github",
"line_count": 207,
"max_line_length": 207,
"avg_line_length": 38.56521739130435,
"alnum_prop": 0.6104221470625079,
"repo_name": "mssnaveensharma/venison-jaqui",
"id": "8c2cce62aebe34098b6548fd1e4f847fc15c067c",
... |
package org.openqa.selenium;
import junit.extensions.TestSetup;
import junit.framework.Test;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import org.openqa.selenium.internal.CommandLine;
import org.openqa.selenium.internal.PortProber;
import static org.openqa.selenium.int... | {
"content_hash": "13cd254a77e1ab0a38fa149426a27e87",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 92,
"avg_line_length": 26.493150684931507,
"alnum_prop": 0.6685625646328852,
"repo_name": "hugs/selenium",
"id": "dfb1b8699f4090589eec5af02ebf80a36dc5e4df",
"size": "1934",... |
set -e -x
ls
cd ${PKG_NAME}-*/
./configure --prefix="${PKG_DIR}" \
--libdir=${PKG_DIR}/lib --with-sysdeps=/lib/skalibs/sysdeps \
--disable-shared --enable-static-libc
make $MAKE_JOBS
make $MAKE_JOBS install DESTDIR="${PKG_INSTDIR}"
| {
"content_hash": "56bfd2bc6ad981d6c904549477bd6fde",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 65,
"avg_line_length": 30,
"alnum_prop": 0.6541666666666667,
"repo_name": "FreakyPenguin/static-distro",
"id": "51e728c80ba87fffbba5ae65b95202993486b234",
"size": "250",
"... |
@interface PPNetworkHelper ()
@property PPSDK *sdk;
@property PPReachability *reachability;
@end
@implementation PPNetworkHelper
-(instancetype)initWithSDK:(PPSDK *)sdk {
if (self = [super init]) {
self.sdk = sdk;
}
return self;
}
- (void) startNotifier {
[[NSNotificationCenter defaultCente... | {
"content_hash": "6e4f5a68d382ac3ab121102af721a3d4",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 150,
"avg_line_length": 32.82258064516129,
"alnum_prop": 0.685995085995086,
"repo_name": "PPMESSAGE/ppcom-ios-sdk",
"id": "0f1757a936f29cc323bd83d4874cb2d86218850b",
"size"... |
var request = require('..')
, https = require('https')
, fs = require('fs')
, path = require('path')
, should = require('should')
, express = require('express');
describe('request(url)', function(){
it('should be supported', function(done){
var app = express();
app.get('/', function(req, res){
... | {
"content_hash": "bbf89e40c3fdbacf15bf3cd7d146a3e3",
"timestamp": "",
"source": "github",
"line_count": 557,
"max_line_length": 116,
"avg_line_length": 22.978456014362656,
"alnum_prop": 0.5012110321118838,
"repo_name": "wenjoy/homePage",
"id": "3713701a391bea86c66c6af512ffd8ed0013094b",
"size": "12... |
namespace HaloOnline.Server.Core.Http.Model.User
{
public class ApplyOfferListRequest
{
}
}
| {
"content_hash": "1e6571782e932e9fc231fc65ad908100",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 49,
"avg_line_length": 17.5,
"alnum_prop": 0.7047619047619048,
"repo_name": "Atvaark/Emurado",
"id": "0e7e3739fd1995129cf688f2556d55d4630b114a",
"size": "107",
"binary": f... |
<?php
require_once dirname(dirname(__DIR__)) . "/classes/autoloader.php";
require_once dirname(dirname(__DIR__)) . "/lib/xsrf.php";
require_once("/etc/apache2/capstone-mysql/encrypted-config.php");
/**
* controller/api for the listing type class
*
* @author Bradley Brown <tall.white.ninja@gmail.com>
* @author Tamr... | {
"content_hash": "e6c3c3cd5593eb48ba93dc8c32912ed8",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 122,
"avg_line_length": 32.17460317460318,
"alnum_prop": 0.6697089294523927,
"repo_name": "brbrown59/bread-basket",
"id": "6437261da874537041c37881ed11411e37ee53b2",
"size... |
/* fast file-to-file copy */
/* p0=input fno, p1=output fno, p2=inputskip, p3=output skip, p4=dur */
#include "ugens.h"
#include "sfheader.h"
#include <stdio.h>
#include <unistd.h>
/* these are all defined in sound.c */
extern int sfd[NFILES]; /* soundfile descriptors */
extern char *sndbuf[NFILES]; ... | {
"content_hash": "9137282768c885812d59b5436e9a9bf7",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 90,
"avg_line_length": 26.467741935483872,
"alnum_prop": 0.6404631322364412,
"repo_name": "RTcmix/RTcmix",
"id": "81d08723693c625de06fe456c8ea4b4d04f051b1",
"size": "1641",... |
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE & ~8192);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile$ - $Revision: 31381 $');
// #################### PRE-CACHE TEMPLATES AND DATA ###... | {
"content_hash": "6c0bb53aee8f1248012f63d2c445aad4",
"timestamp": "",
"source": "github",
"line_count": 548,
"max_line_length": 218,
"avg_line_length": 30.490875912408757,
"alnum_prop": 0.5558680950386019,
"repo_name": "monkeyboz/coachella",
"id": "b7c0a0ae7d6d0f71fb7be76bba5c94ab681f9c61",
"size":... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `XTriangle` type in crate `x11_dl`.">
<meta name="keywords"... | {
"content_hash": "d5eef4499a967444a699bf97a32051bc",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 237,
"avg_line_length": 37.0990099009901,
"alnum_prop": 0.5230851347744863,
"repo_name": "mcanders/bevy",
"id": "d0dee8570942c8ed80c8f09d7775fe132aa4e635",
"size": "3747",... |
using Autofac.Features.AttributeFilters;
using Common;
using Common.Log;
using Lykke.Job.EthereumCore.Contracts.Enums.LykkePay;
using Lykke.Job.EthereumCore.Contracts.Events.LykkePay;
using Lykke.JobTriggers.Triggers.Attributes;
using Lykke.JobTriggers.Triggers.Bindings;
using Lykke.Service.EthereumCore.Core;
using Ly... | {
"content_hash": "94956301c9d9a0954a685d25653630b4",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 134,
"avg_line_length": 38.46363636363636,
"alnum_prop": 0.6064760103994328,
"repo_name": "LykkeCity/EthereumApiDotNetCore",
"id": "bf44dcbf1a56b431807fef1ab9b793e3ecaec14e"... |
<!--
Copyright (C) 2015 The Gravitee team (http://gravitee.io)
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 re... | {
"content_hash": "b037b3c8a7bf87235b54f5e0f5365e8f",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 111,
"avg_line_length": 41.5,
"alnum_prop": 0.6997991967871486,
"repo_name": "gravitee-io/gravitee-management-webui",
"id": "10c72b0bf3b7fc6ed879a2e1f48982975132d152",
"siz... |
void buildBoxMesh(Kray::Prototyper& prot,Kray::MeshSymbol& msh){
Kray::VertexMapSymbol vmap(prot,3); // create vertex map
vmap.data(0,Kray::Vector(-1,-1,-1)); // fill vertex map with cube vertex positions
vmap.data(1,Kray::Vector(-1,-1, 1));
vmap.data(2,Kray::Vector(-1, 1,-1));
vmap.data(3,Kray::Vector(-1, 1, 1... | {
"content_hash": "2fed7036d4e717d2c55aa6a661d7ade0",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 154,
"avg_line_length": 50.27272727272727,
"alnum_prop": 0.6948462929475587,
"repo_name": "haggi/OpenMaya",
"id": "b83a3f1bdd1580cef8c80fecd822f3eee3b2e0e1",
"size": "2240"... |
package com.seovic.maven.plugins.npm;
import java.io.File;
import java.io.IOException;
import org.apache.commons.exec.CommandLine;
import org.apache.commons.exec.DefaultExecutor;
import org.apache.commons.exec.ExecuteException;
import org.apache.commons.exec.PumpStreamHandler;
import org.apache.maven.plugin.Abstract... | {
"content_hash": "37c1efcb653fb48d3347ab539232e6c0",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 96,
"avg_line_length": 27.566265060240966,
"alnum_prop": 0.5509178321678322,
"repo_name": "aseovic/npm-maven-plugin",
"id": "2e223a6c2190b4b7b16a60a5df7f1589cc63e88b",
"si... |
package com.github.anba.es6draft.runtime.types.builtins;
import static com.github.anba.es6draft.runtime.internal.Errors.newTypeError;
import static com.github.anba.es6draft.runtime.types.Null.NULL;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodHandles.Look... | {
"content_hash": "e527ab90c196fa7a58853ca593e42340",
"timestamp": "",
"source": "github",
"line_count": 437,
"max_line_length": 101,
"avg_line_length": 31.08695652173913,
"alnum_prop": 0.6193595877806404,
"repo_name": "rwaldron/es6draft",
"id": "40ee8cc1f384a71419beeb57cb874e4cfe60c627",
"size": "1... |
import java.util.concurrent.ThreadLocalRandom;
public class GenerateLargeIntArray {
static int min = 1;
static int max = 1000000;
static int mult = 1;
static int size = 25;
public static void main(String[] args) {
//~ try {
//~ min = Integer.parseInt(args[0]);
//~ max = Integer.parseInt(args[1]);
... | {
"content_hash": "e3427909440b4efe9c9cb5124795cb3c",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 92,
"avg_line_length": 25,
"alnum_prop": 0.6302702702702703,
"repo_name": "tiagopnoliveira/programming",
"id": "0a502a99cc44ec6e38d91d06e8c0ae0ef15c51c7",
"size": "925",
... |
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persis... | {
"content_hash": "92399c3c06dde500145b3a4d39fec1fb",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 100,
"avg_line_length": 52.61764705882353,
"alnum_prop": 0.7272219116825042,
"repo_name": "searchisko/searchisko",
"id": "2a65b05ae0c87d7a39c702a31432d1a1696a2f7d",
"size":... |
using System;
using System.ComponentModel;
using System.Security.Cryptography.X509Certificates;
using DocaLabs.Http.Client.Configuration;
using DocaLabs.Test.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DocaLabs.Http.Client.Tests.Configuration
{
[TestClass]
public class when_finding_ce... | {
"content_hash": "f128054d00ddb18616e2f2deadc9fb71",
"timestamp": "",
"source": "github",
"line_count": 108,
"max_line_length": 141,
"avg_line_length": 47.861111111111114,
"alnum_prop": 0.7250918939833624,
"repo_name": "alexey-kadyrov/DocaLabs.Http.Client",
"id": "f62a52372ab61d4934e0704768f5ea70e274... |
package com.sksamuel.elastic4s
import com.sksamuel.elastic4s.ElasticDsl._
import org.scalatest.FlatSpec
import org.scalatest.mock.MockitoSugar
import scala.concurrent.duration._
/** @author Stephen Samuel */
class BulkTest extends FlatSpec with MockitoSugar with ElasticSugar {
implicit val duration: Duration = 10... | {
"content_hash": "605bdcb78b175e8520f8eb2b85d0a860",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 75,
"avg_line_length": 27.492537313432837,
"alnum_prop": 0.6416938110749185,
"repo_name": "alexander-svendsen/elastic4s",
"id": "6574c30046be3b1037c1ca6149299f808645a58e",
... |
<!--
Write your names here:
1. Andrew Crowley
2. Julia Giraldi
We spent [1.5] hours on this challenge.
-->
<!-- This challenge uses HTML5 syntax that may not be available in all browsers (It works in Chrome and Safari, from my testing. (<details> and<summary>). -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta ... | {
"content_hash": "a5873b4988e301192ccafc6116fe5152",
"timestamp": "",
"source": "github",
"line_count": 284,
"max_line_length": 450,
"avg_line_length": 35.78169014084507,
"alnum_prop": 0.5959456799842551,
"repo_name": "AndyVegas/phase-0",
"id": "a717132066e9513a18ae0bbca86ed26f2c49d517",
"size": "1... |
from py_bing_search import PyBingWebSearch
import os
import codecs
def getResultsList(word,numResults):
bing_web = PyBingWebSearch('cdos0agEe4I2roLpBVQC6WHZErUb3ih4sU75CvxOlDI', word, web_only=True)
results= bing_web.search(limit=numResults, format='json')
return results
def getResultsDescriptionList(word... | {
"content_hash": "b2c6cc50bf67dcdc7e837434ce289bfa",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 98,
"avg_line_length": 36,
"alnum_prop": 0.580952380952381,
"repo_name": "CesarCardam/CesarCardam.github.io",
"id": "e0ed9549561d797ad4fbdb45787079ed9768bc7e",
"size": "130... |
/*
* Definitions etc. for regexp(3) routines.
*
* Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
* not the System V one.
*/
/* Refs count, struct rstr * and prototypes added by GBH */
#define NSUBEXP 10
typedef struct regexp {
int refs;
struct rstr *rs;
char *startp[NSUBEXP];
... | {
"content_hash": "418db9082d3479d82d00277ab9ce3a7e",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 72,
"avg_line_length": 26.482758620689655,
"alnum_prop": 0.6627604166666666,
"repo_name": "tibbetts/vaportalk",
"id": "df01c5641e02c5f046ae2828097d9d0345379589",
"size": "7... |
package partition;
import static gblib.Util.downCast;
import java.lang.reflect.Array;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import partition.Util.Pair;
/**
* A symmetric weighed adjacency matrix for undirected graph.
*
* @param <T> weight value type.
* @author gburdell... | {
"content_hash": "02d95b11449bd3c18a40a41f64e5cf60",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 80,
"avg_line_length": 28.884615384615383,
"alnum_prop": 0.5102529960053263,
"repo_name": "gburdell/partition",
"id": "2b0c24b4529f3c514d92822952947345965560fa",
"size": "... |
use rocks::prelude::*;
fn main() {
let opt = Options::default().map_db_options(|db_opt| db_opt.create_if_missing(true));
let db = DB::open(opt, "./data").unwrap();
assert!(db.put(WriteOptions::default_instance(), b"hello", b"world").is_ok());
match db.get(ReadOptions::default_instance(), b"hello") {
... | {
"content_hash": "c0e4c38faa060500644927e11c0f9351",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 89,
"avg_line_length": 38.84615384615385,
"alnum_prop": 0.5881188118811881,
"repo_name": "bh1xuw/rust-rocks",
"id": "46e02d319c437c13aadc38fc6d3645a2527dd065",
"size": "505... |
var wrench = require('wrench'),
colors = require('colors'),
packageInfo = require('./package.json'),
fs = require('fs');
var emojiCommands = module.exports = function(hexo) {
emojiCommands.hexo = hexo;
emojiCommands.emojiConfig = hexo.config.emojis || false;
emojiCommands.emojiImageDir = emojiC... | {
"content_hash": "f8e0c682fb598ca6a27ef2105ad1ba9a",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 134,
"avg_line_length": 34.146067415730336,
"alnum_prop": 0.6344192168476472,
"repo_name": "sergiolepore/hexo-tag-emojis",
"id": "c9794929697562985a63e92321e5f24bfe2abe62",
... |
namespace {
MONITORINFO GetMonitorInfoForMonitor(HMONITOR monitor) {
MONITORINFO monitor_info = { 0 };
monitor_info.cbSize = sizeof(monitor_info);
GetMonitorInfo(monitor, &monitor_info);
return monitor_info;
}
gfx::Display GetDisplay(MONITORINFO& monitor_info) {
// TODO(oshima): Implement ID and Observer.
... | {
"content_hash": "f51fcf3c4eb8e1976f7ccb95da847ef9",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 80,
"avg_line_length": 26.452830188679247,
"alnum_prop": 0.7325249643366619,
"repo_name": "junmin-zhu/chromium-rivertrail",
"id": "072f47a6458165233752b1f5e6dec5b7f9de32f8",... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace com.newsarea.search.settings.source {
public interface ISettings : IDictionary<String, StringValue> {
void Add(String key, String value);
}
}
| {
"content_hash": "c2175c31260b00ea8ec92719bc6e6fc7",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 67,
"avg_line_length": 18.571428571428573,
"alnum_prop": 0.7269230769230769,
"repo_name": "RBernhardt/unisono",
"id": "f57e05eec0033da5ac782e013010e42c05c80170",
"size": "2... |
const int cListenBacklog = 5; // maximum length of the queue of pending connections
const int cMaxConcurrentRequests = min(4095,cMaxServiceInsts * cMaxNumSessions); // can process at most this many concurrent service requests over all session instances independent of service type
const int cMaxReqID = cMaxConcurre... | {
"content_hash": "12e01108a022d5eb965c37ffd6327eb9",
"timestamp": "",
"source": "github",
"line_count": 449,
"max_line_length": 221,
"avg_line_length": 67.97550111358575,
"alnum_prop": 0.7541692605091577,
"repo_name": "ste69r/Biokanga",
"id": "9163ee933453df97554f774aec61d47992906b48",
"size": "305... |
<?php
declare(strict_types=1);
namespace Symplify\MultiCodingStandard\PhpCsFixer\Factory;
use PhpCsFixer\Config;
use PhpCsFixer\Console\ConfigurationResolver;
use PhpCsFixer\Fixer\FixerInterface;
final class FixerFactory
{
/**
* @return FixerInterface[]
*/
public function createFromLevelsFixersA... | {
"content_hash": "4052098ab3a6ca3a2094fe353e11d539",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 117,
"avg_line_length": 27.30392156862745,
"alnum_prop": 0.6157989228007181,
"repo_name": "Symplify/MultiCodingStandard",
"id": "7b9559e0da1ce64e35e91fc003bee1dd2fa036ad",
... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "44cf0b4edfe1357eaca90313c2916578",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "f7c1bdfbb1e13d4225b1c73a0b5b572470f2d4bd",
"size": "191... |
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.banana.banana.MissionPopupActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="1... | {
"content_hash": "10fdbea670dcd53c812592b19d8e1745",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 64,
"avg_line_length": 34.666666666666664,
"alnum_prop": 0.6778846153846154,
"repo_name": "Limjunghwa/wholeba_android",
"id": "787f36a891630b7e8e1e866a1780978f7cbe9513",
"s... |
package org.derkani.sight;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.XYPlot;
import org.jfree.data.xy.XYDataset;
/**
* @author Masih Hajiarabderkani (mh638@st-andrews.ac.uk)
*/
public class ChartMergeUtils {
public static JFreeChart merge(JFreeChart... ch... | {
"content_hash": "3dbbd4ae4f30bc45ab4b54f1629f70a2",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 62,
"avg_line_length": 24.027027027027028,
"alnum_prop": 0.545556805399325,
"repo_name": "masih/sight",
"id": "c8eab5c152a8c6001b8c9e48b79a71b51a39a019",
"size": "2468",
... |
define("p3/widget/JobsGrid", [
"dojo/_base/declare", "./PageGrid", "dojo/store/JsonRest", "dgrid/extensions/DijitRegistry",
"dgrid/Keyboard", "dgrid/Selection", "./formatter", "dgrid/extensions/ColumnResizer", "dgrid/extensions/ColumnHider",
"dgrid/extensions/DnD", "dojo/dnd/Source", "dojo/_base/Deferred", "dojo/asp... | {
"content_hash": "392461f81247cd3d6b1b88d844d9aab1",
"timestamp": "",
"source": "github",
"line_count": 190,
"max_line_length": 295,
"avg_line_length": 27.026315789473685,
"alnum_prop": 0.6216163583252191,
"repo_name": "aswarren/p3_web",
"id": "d82fa6306949db2490a92a3373a3de14c835946d",
"size": "51... |
Gauges - SAP Lumira visualization extension
=================================================
* By [Andrew Jabbitt](http://scn.sap.com/people/andrew.jabbitt01)
Files
-----------
* `ucs.viz.ext.gauge.zip` - SAP Lumira extension, packaged with SAP WebIDE
Resources
-----------
* Blog post - [SAP Lumira Extension - Taki... | {
"content_hash": "6fcb922a596fb8593a544a96c3aade60",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 180,
"avg_line_length": 41.63636363636363,
"alnum_prop": 0.6419213973799127,
"repo_name": "ganchengyuan1990/lumira-extension-viz",
"id": "6264e9939f236c91f97251a32d7d0e1c448e... |
require "docker/model"
module Docker
class Container < Model
map_attribute "ID", :id
map_attribute "Image", :image
map_attribute "NetworkSettings", :network_settings
def ip
network_settings["IPAddress"] if network_settings
end
def env
return {} unless config["Env"]
Hash[co... | {
"content_hash": "6266fef4075ef3698e10d8122fbb4e7b",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 58,
"avg_line_length": 17.973684210526315,
"alnum_prop": 0.5900439238653001,
"repo_name": "dynport/dockland",
"id": "458d3893f5f1e5f8f57ac94c179894ab02844c32",
"size": "683... |
<?php
/**
* The Template for displaying all single passports.
*
* @package Listify
*/
get_header(); ?>
<?php //Passports with featured image
if ( has_post_thumbnail() ){ ?>
<div
<?php
echo apply_filters(
'listify_cover', 'page-cover page-cover--large badge-image', array( // WPCS: XSS ok.
'size' => 'fu... | {
"content_hash": "ecae0f27993b95b607496e31be07a85c",
"timestamp": "",
"source": "github",
"line_count": 544,
"max_line_length": 327,
"avg_line_length": 59.887867647058826,
"alnum_prop": 0.6109150065993432,
"repo_name": "Badges4Languages/B4L-Listify-Child",
"id": "fcd5d26f356dfed3f4637e412179adc2f0e4c... |
thrift -out server --gen py tthrift/tclog.thrift
thrift -out client/clog_client --gen py tthrift/tclog.thrift
| {
"content_hash": "38c3da68c2d7e5264692148bdd26a61f",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 60,
"avg_line_length": 55,
"alnum_prop": 0.7818181818181819,
"repo_name": "iamsudip/he-clog",
"id": "6ba1f586324a5e1d786c80515c220797805a430d",
"size": "110",
"binary": fa... |
/*
-- clMAGMA (version 1.3.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@precisions normal z -> s d c
*/
#include "common_magma.h"
/* ////////////////////////////////////////////////////////////////////////////
... | {
"content_hash": "bfee0bcf841e0c53e78baee15169873a",
"timestamp": "",
"source": "github",
"line_count": 251,
"max_line_length": 104,
"avg_line_length": 37.16334661354582,
"alnum_prop": 0.5060034305317325,
"repo_name": "kjbartel/clmagma",
"id": "e680d49fca8a8109ff765bd883dd311d2b582c2f",
"size": "93... |
package com.orientechnologies.orient.core.sql.operator;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import com.orientechnologies.orient.core.command.OCommandContext;
import com.orientechnologies.orient.core.db.record.OIdentifiable;
import com.orientechnologies.orient.co... | {
"content_hash": "6c025cefd26a9724c0221044c13f5b49",
"timestamp": "",
"source": "github",
"line_count": 171,
"max_line_length": 135,
"avg_line_length": 37.16374269005848,
"alnum_prop": 0.7024390243902439,
"repo_name": "wuman/orientdb-android",
"id": "bad3272c8175ffe89d8b9307622112db28a975df",
"size... |
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Exam.Models
{
public class ApplicationUser : User
{
}
}
| {
"content_hash": "d897d8755c2318c925e6480523b94cbe",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 49,
"avg_line_length": 17.571428571428573,
"alnum_prop": 0.7601626016260162,
"repo_name": "niki-funky/Telerik_Academy",
"id": "61bceb9f7e94d3657b0ef3f58f7489706031a4d2",
"s... |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>NcmSplineRBF: ... | {
"content_hash": "c41ab39131484f72f36acd6133ad7cc7",
"timestamp": "",
"source": "github",
"line_count": 376,
"max_line_length": 926,
"avg_line_length": 54.92553191489362,
"alnum_prop": 0.6922816192136355,
"repo_name": "NumCosmo/NumCosmo.github.io",
"id": "b1bf7716b1c319770627c625306155c428196422",
... |
@class GHCommits;
@interface IOCCommitsController : IOCCollectionController
- (id)initWithCommits:(GHCommits *)commits;
@end | {
"content_hash": "98f81a597734d8eebb63f3c81234d025",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 57,
"avg_line_length": 25,
"alnum_prop": 0.816,
"repo_name": "iCrany/ioctocat",
"id": "c91f38d8aa016f48e86be042e44993107d1f9b08",
"size": "162",
"binary": false,
"copies... |
package com.sheplu.blackjack.test.card;
import static org.junit.Assert.*;
import org.junit.Test;
public class Card {
@Test
public void test() {
fail("Not yet implemented");
}
}
| {
"content_hash": "23a88a6b055b270a07b446e665ac8b58",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 39,
"avg_line_length": 13.357142857142858,
"alnum_prop": 0.7005347593582888,
"repo_name": "sheplu/BlackJack",
"id": "c91ea012cf60c44b82e449022497a6ba98c4afc0",
"size": "187... |
import React from 'react';
import ReactDOM from 'react-dom';
import Dotdotdot from 'react-dotdotdot'
class App extends React.Component {
render() {
return (
<div>
<div>
This page is clamped version of: <a href="https://codepen.io/carolynmcneillie/pen/Lewxrm" target="_blank">Codepen</a>
... | {
"content_hash": "fe2bfddc31639f3cc9f676a844492958",
"timestamp": "",
"source": "github",
"line_count": 164,
"max_line_length": 720,
"avg_line_length": 94.85975609756098,
"alnum_prop": 0.6667095198303015,
"repo_name": "CezaryDanielNowak/React-dotdotdot",
"id": "90ed79acebd7088990d934aa5a2f85dcc7b2f6f... |
package com.wangyin.alarm.emit.impl;
import com.wangyin.alarm.emit.Sender;
import com.wangyin.alarm.third.EmailUtils;
import com.wangyin.alarm.third.SmsUtils;
import com.wangyin.common.Contact;
import com.wangyin.common.Message;
import com.wangyin.mq.IMQ;
import org.springframework.stereotype.Component;
import javax.... | {
"content_hash": "ec3e146b0b8c037367a94c50966d4867",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 62,
"avg_line_length": 24.5,
"alnum_prop": 0.7510204081632653,
"repo_name": "cncduLee/alarm-platform",
"id": "f0d8f47b598e235046e1c783888951f248eee0f0",
"size": "735",
"b... |
package ru.otus.l62.b1.command;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
/**
* Created by tully.
*/
public class Main {
private Queue<Command> commandQueue = new ConcurrentLinkedQueue<>();
public static void main(String[] args) {
Main main = new Main();
mai... | {
"content_hash": "079a49d6e47ba9a2c363307d9c4bd126",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 72,
"avg_line_length": 24.393939393939394,
"alnum_prop": 0.6372670807453417,
"repo_name": "vitaly-chibrikov/otus_java_2017_06",
"id": "715be5aad99992fcf3cf78a8e5b942bd1455fc0... |
import "core-js/es6/promise";
import "core-js/es6/array"
import "core-js/es6/set"
import {IObservable} from "./interfaces/observable";
import {IObservableEvent} from "./interfaces/observable-event";
import {IObserver, ObserverCallback} from "./interfaces/observer";
import {IObserverItem} from "./interfaces/obervable-i... | {
"content_hash": "9fab7243dddb19f8af1e53695a7810da",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 119,
"avg_line_length": 32.47107438016529,
"alnum_prop": 0.5627386103334182,
"repo_name": "FlareMind/typescript-observable",
"id": "59f8ef65b68b5bbea0c5727310411dadc6ec0f53"... |
module FinApps
module REST
class DocumentsOrdersNotifications < FinAppsCore::REST::Resources
def create(id, params = [])
not_blank(id, :id)
path = "documents/orders/#{ERB::Util.url_encode(id)}/notify"
super params, path
end
end
end
end
| {
"content_hash": "91596c5bfa63b7eedb70309a8cf446f2",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 69,
"avg_line_length": 23.75,
"alnum_prop": 0.6280701754385964,
"repo_name": "finapps/ruby-client",
"id": "0c99ac97c82e5c680e6520195e916f1497d64cfa",
"size": "316",
"bina... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Pertusaria nivea G. Merr.
### Remarks
null | {
"content_hash": "5c7aa13ce948a65c22c48f982326bf54",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 25,
"avg_line_length": 10,
"alnum_prop": 0.6923076923076923,
"repo_name": "mdoering/backbone",
"id": "3072b98a27c49e90972fc0ca37ddfa434b501f99",
"size": "179",
"binary": ... |
<?php
/**
* Created by PhpStorm.
* User: noushi
* Date: 18/7/16
* Time: 5:09 PM
*/
defined('BASEPATH') OR exit('No direct script access allowed');
class Check_Logged extends CI_Controller
{
public $logged = '';
public function __construct()
{
parent::__construct();
$this->load->librar... | {
"content_hash": "14129ce0c61e3ae1f065e52573f51e86",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 63,
"avg_line_length": 19.11111111111111,
"alnum_prop": 0.5537790697674418,
"repo_name": "Noushid/Dashboard",
"id": "11699d534a3d67e17afe40071dfa3b7fc87b176a",
"size": "688... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.