text stringlengths 2 1.04M | meta dict |
|---|---|
package nl.ru.ai.hci.paint;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
public class Window extends JFrame {
private static final long serialVersionUID = 1L;
public Window() {
// super calls a function inherited from the parent class ( JF... | {
"content_hash": "97076eeb8eaaef1bb5aee5d5827dc989",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 73,
"avg_line_length": 30,
"alnum_prop": 0.7342592592592593,
"repo_name": "MelleStarke/Paint",
"id": "6d6c58aa9ebb400df7a2432c819872b666d179e1",
"size": "1080",
"binary":... |
A Python package to ease writing tables to Excel
================================================
|Status| |Docs|
Documentation here: https://xltable.readthedocs.org/en/latest
xltable is an API for writing tabular data and charts to Excel. It is not a replacement for other Excel writing
packages such as xlsxwriter, ... | {
"content_hash": "bca2af20b0213b57bda9fa31b6fb02f4",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 115,
"avg_line_length": 45.63793103448276,
"alnum_prop": 0.7313940309784662,
"repo_name": "fkarb/xltable",
"id": "cec65cf9b90240997533aedac2f4d85c27667857",
"size": "2647",... |
import oslo_messaging
from oslo_messaging import serializer as oslo_serializer
DEFAULT_URL = "__default__"
TRANSPORTS = {}
def setup():
oslo_messaging.set_transport_defaults('ceilometer')
def get_transport(conf, url=None, optional=False, cache=True):
"""Initialise the oslo_messaging layer."""
global TR... | {
"content_hash": "0e3e502815c35563cd5e1da0f04db3d6",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 75,
"avg_line_length": 34.375,
"alnum_prop": 0.6658585858585858,
"repo_name": "ityaptin/ceilometer",
"id": "8f8211bede290ed64d648585d49f09841e24affd",
"size": "3104",
"bi... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>make_zero</title>
<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../../index.html" titl... | {
"content_hash": "74a791e14c99f36202b2059f78fb0a85",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 467,
"avg_line_length": 49.59310344827586,
"alnum_prop": 0.5664024475038242,
"repo_name": "keichan100yen/ode-ext",
"id": "b1eaa977d31b9e7196a3eb322b99294c20d21385",
"size"... |
void CommonUiController::onDebugInputAction(const InputActionCallbackValues &values)
{
if (values.performed)
{
auto &game = values.game;
auto &options = game.getOptions();
// Increment or wrap profiler level.
const int oldProfilerLevel = options.getMisc_ProfilerLevel();
const int newProfilerLevel = (oldPro... | {
"content_hash": "e4d589567488cd2e9d639cec6dd0dbc8",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 135,
"avg_line_length": 36.38461538461539,
"alnum_prop": 0.7632135306553911,
"repo_name": "afritz1/OpenTESArena",
"id": "91c7922a1f376565b2810ce6b5fc7f10bebeec0c",
"size": ... |
#pragma once
#include "precompiled.h"
// This should be defined in the project file of the plug-in that exports symbols
#if defined(CodeReview_EXPORTS)
#define CODEREVIEW_API Q_DECL_EXPORT
#else
#define CODEREVIEW_API Q_DECL_IMPORT
#endif
| {
"content_hash": "3d4234029516f007e52c5f28663db61c",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 81,
"avg_line_length": 20.416666666666668,
"alnum_prop": 0.7673469387755102,
"repo_name": "lukedirtwalker/Envision",
"id": "a0e8d32587b2407a6420f5c38a1179dfa216b25d",
"size... |
<?xml version="1.0" encoding="utf-8"?>
<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=".MainActivity">
<item
android:id="@+id/action_search"
android:orderIn... | {
"content_hash": "5194f6af25a84029799ba14d3002d839",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 64,
"avg_line_length": 36.61538461538461,
"alnum_prop": 0.657563025210084,
"repo_name": "sbhachu/Android",
"id": "1905b1e8778febf0cc1e31d3391a73a14804c17f",
"size": "476",
... |
This sample Android app demonstrates
parsing an XML resource in the background, using RxJava and RxAndroid.
This app is covered in
[the chapter on the data binding framework](https://commonsware.com/Android/previews/the-data-binding-framework)
in [*The Busy Coder's Guide to Android Development*](https://commonsware.c... | {
"content_hash": "0f186e828aa94cf6659a37467e268672",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 112,
"avg_line_length": 47.857142857142854,
"alnum_prop": 0.7940298507462686,
"repo_name": "commonsguy/cw-omnibus",
"id": "8a5930542cf40afcb2086d01a63879bd6aa078d5",
"size":... |
module.exports = function (source, destination, done) {
this.browser
.dragAndDrop(source, destination, this.noError)
.call(done);
};
| {
"content_hash": "f5ea0852429db98a10b56f325b57e7f5",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 55,
"avg_line_length": 30.6,
"alnum_prop": 0.6535947712418301,
"repo_name": "DDoS/ECSE-428-Project",
"id": "63dfe38f65e37788b7125b758a03f22502f1d0dc",
"size": "153",
"bina... |
RSpec.describe HTTP::FormData do
describe ".create" do
subject { HTTP::FormData.create params }
context "when form has no files" do
let(:params) { { :foo => :bar } }
it { is_expected.to be_a HTTP::FormData::Urlencoded }
end
context "when form has at least one file param" do
let(:ge... | {
"content_hash": "5584db7b294a7087a95882f739304b8a",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 67,
"avg_line_length": 29.583333333333332,
"alnum_prop": 0.576056338028169,
"repo_name": "rosberglinhares/IISLogMonitor",
"id": "980790f78642955cd60abbdd52c896de42204df2",
... |
using System;
using Xamarin.Forms;
namespace BugSweeper
{
class Board : AbsoluteLayout
{
// Alternative sizes make the tiles a tad small.
const int COLS = 9; // 16
const int ROWS = 9; // 16
const int BUGS = 10; // 40
Tile[,] tiles = new Tile[ROWS... | {
"content_hash": "804b923f49adc7a3e70b8945ff09a73e",
"timestamp": "",
"source": "github",
"line_count": 235,
"max_line_length": 88,
"avg_line_length": 30.73191489361702,
"alnum_prop": 0.42273608418720576,
"repo_name": "praeclarum/Ooui",
"id": "33b395024c963ef569fb0e1f351d2002ba21d8e6",
"size": "722... |
import smtplib
def sendMail(mail_executor,to_address,message):
"""mails the report of sysbench test"""
logging=mail_executor.logging
#configuring sender's login
from_address='smtplibpython@gmail.com'
from_password='smtpprotocol'
#sending mail to specified to_addresses
logging.info("Maili... | {
"content_hash": "85cdfadd7ff30c301bc1447d634dcd25",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 52,
"avg_line_length": 29.82608695652174,
"alnum_prop": 0.6953352769679301,
"repo_name": "pcrews/kewpie",
"id": "4acd8cfb68ebf70739fc2d221eb8c0465ba8caae",
"size": "1549",
... |
package com.github.obsidianarch.gvengine.core;
import org.lwjgl.BufferUtils;
import org.magicwerk.brownies.collections.primitive.FloatGapList;
import java.nio.FloatBuffer;
import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL15.*;
/**
* A simplified version of the OpenGL VertexBufferObject, hand... | {
"content_hash": "509fa92a37de11c7cd041e1b7274cfda",
"timestamp": "",
"source": "github",
"line_count": 476,
"max_line_length": 177,
"avg_line_length": 24.75420168067227,
"alnum_prop": 0.5572434863786812,
"repo_name": "donofanne/gvengine",
"id": "ea653c4acce5b7437a6da7b53b8667d1f787310f",
"size": "... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Wed Apr 09 19:17:42 EEST 2014 -->
<title>R.color</title>
<meta name="date" content="2014-04-09">
<link rel="stylesheet" type="te... | {
"content_hash": "0eb4a94ddf41f91848c30ea9b3007c8c",
"timestamp": "",
"source": "github",
"line_count": 423,
"max_line_length": 200,
"avg_line_length": 39.174940898345156,
"alnum_prop": 0.6583187496228351,
"repo_name": "apps8os/trafficsense",
"id": "dbc2b141e429f4d1416cf08bbde6d53f39ca841d",
"size"... |
<?php
namespace Twitogram\Client;
use Twitogram\Client\Exception\Exception;
abstract class TwitterClient implements TwitterClientInterface
{
/**
* Return the next max_id of given tweets, i.e. the smallest one from the current page
* @param stdClass[] $tweets
* @return int|null
*/
public ... | {
"content_hash": "40668f2a21bfba65fcd33c9fbeeb6847",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 90,
"avg_line_length": 22.26829268292683,
"alnum_prop": 0.5826944140197152,
"repo_name": "joec4i/twitogram",
"id": "b2fa2f7f005ca0902ae9ca57991e1bec522d9bd6",
"size": "913"... |
/* @test
* @bug 4927640
* @summary Tests the SCTP protocol implementation
* @author chegar
*/
import java.io.IOException;
import java.util.Set;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.util.List;
import java.util.Arrays;
import java.util.Iterator;
import java.nio.channels.Clo... | {
"content_hash": "2f249455f3e26f5f6cc3e0d6d9026436",
"timestamp": "",
"source": "github",
"line_count": 197,
"max_line_length": 94,
"avg_line_length": 42.15736040609137,
"alnum_prop": 0.5859121011438893,
"repo_name": "rokn/Count_Words_2015",
"id": "2ab14ac5b148931a02c59930cbf8de9d6ea356f2",
"size":... |
#ifndef __UILABELBMFONT_H__
#define __UILABELBMFONT_H__
#include "../BaseClasses/UIWidget.h"
NS_CC_EXT_BEGIN
/**
* @js NA
* @lua NA
*/
class UILabelBMFont : public UIWidget
{
public:
/**
* Default constructor
*/
UILabelBMFont();
/**
* Default destructor
... | {
"content_hash": "841953906a4e24ab37bc22f6d35a0053",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 75,
"avg_line_length": 22.68421052631579,
"alnum_prop": 0.608662026295437,
"repo_name": "tsuyoshi89/cocos2d-x-sample",
"id": "5fe2886ea9007a45d1c669ade29a59315b9aea94",
"si... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape
android:shape="rectangle">
<corners
android:radius="3sp"
/>
<stroke
android:width="1px"
androi... | {
"content_hash": "40c8bfe19b120154008c407f35f8aa6b",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 69,
"avg_line_length": 20.274193548387096,
"alnum_prop": 0.5290373906125696,
"repo_name": "kuc/bankdroid",
"id": "311e21813af9fba45a7ed481462b9cdfa11b0ae0",
"size": "1257",... |
> Parse a gitignore file into an array of patterns. Comments and empty lines are stripped.
## Install with [npm](npmjs.org)
```bash
npm i parse-gitignore --save
```
## Usage
```js
var gitignore = require('parse-gitignore');
// pass a string
var str = fs.readFileSync('.gitignore', 'utf8');
gitignore(str);
//=> ['*.... | {
"content_hash": "846e7cfcf5d22b51c3106b168126bd70",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 190,
"avg_line_length": 23.830188679245282,
"alnum_prop": 0.7015043547110056,
"repo_name": "jlinglue/vertexSDK",
"id": "daf13f32cf849258ec966ee3976b70109f9d920b",
"size": "... |
<?php
/**
* This file is part of the Slim 3 framework skeleton.
*
* @link https://github.com/ansas/slim-skeleton
*/
use Slim\App;
// Check for built-in PHP server
if (PHP_SAPI === 'cli-server' && $_SERVER['SCRIPT_FILENAME'] !== __FILE__) {
return false;
}
$rootPath = dirname(__DIR__);
// Check if system is ... | {
"content_hash": "71604a36b41730df68964d4a79e9e1c5",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 76,
"avg_line_length": 27.303030303030305,
"alnum_prop": 0.6548279689234184,
"repo_name": "ansas/slim-skeleton",
"id": "c268426d823e7c83729144a203f321995dd71431",
"size": "... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Qt 4.3: main.cpp Example File (opengl/textures/main.cpp)</title>
<link href="classic.css" rel="styleshee... | {
"content_hash": "ef1300c6b218d6de169cc24ca1d00701",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 562,
"avg_line_length": 58.69444444444444,
"alnum_prop": 0.6587789872219593,
"repo_name": "misizeji/StudyNote_201308",
"id": "272b7dc932d4c826ffb9f87f05e65bee8ede2f74",
"si... |
package org.codehaus.mojo.appassembler;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repository.ArtifactRepository;
i... | {
"content_hash": "a882b97a4a4cb7e82ddc4c46ae67ea5f",
"timestamp": "",
"source": "github",
"line_count": 419,
"max_line_length": 138,
"avg_line_length": 37.30310262529833,
"alnum_prop": 0.5789507357645554,
"repo_name": "nkasvosve/beyondj",
"id": "e8534efef54d7ace8e1a43f0871807f21812c03a",
"size": "1... |
<div class="page-header">
<h2><?= t('Application settings') ?></h2>
</div>
<form method="post" action="<?= $this->url->href('ConfigController', 'save', array('redirect' => 'application')) ?>" autocomplete="off">
<?= $this->form->csrf() ?>
<fieldset>
<?= $this->form->label(t('Application URL'), 'app... | {
"content_hash": "eed8b848e2767e84baf7ba282ea5351b",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 136,
"avg_line_length": 49.7,
"alnum_prop": 0.5804828973843058,
"repo_name": "Busfreak/kanboard",
"id": "d3d8c8588ca12b17bac4521dbb7b743fc25aea25",
"size": "1988",
"binar... |
namespace blink {
class GraphicsContext;
class LayoutObject;
class LayoutObjectDrawingRecorder {
public:
LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, DisplayItem::Type displayItemType, const LayoutRect& clip)
: m_drawingRecorder(context, layoutObject, displayItem... | {
"content_hash": "ff6b3d101806f410c156b8cccdc1b41c",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 150,
"avg_line_length": 40.36,
"alnum_prop": 0.7829534192269574,
"repo_name": "kurli/blink-crosswalk",
"id": "dcf0ed1ed2176d3e352b49621f1e52851429dc6e",
"size": "1474",
"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coq-in-coq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | {
"content_hash": "ae94ae09ee582a2de94416fe5d66d451",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 159,
"avg_line_length": 40.57738095238095,
"alnum_prop": 0.5368930614639871,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "1d9a1909d975293e38c71fc01032d5c352a26fdc",
... |
{% extends "base.html" %}
{% load i18n %}
{% load sorturl %}
{% load comments %}
{% load staticfiles %}
{% block extra_head %}
<script type="text/javascript" src="{% static 'js/member_list.js' %}"></script>
{% endblock %}
{% block content %}
{% if header %}<h2>{{ header }}</h2>{% endif %}
{% include "membership/pa... | {
"content_hash": "a18cfc347bda017dc159994e184d8d47",
"timestamp": "",
"source": "github",
"line_count": 139,
"max_line_length": 195,
"avg_line_length": 31.964028776978417,
"alnum_prop": 0.5714607247355391,
"repo_name": "AriMartti/sikteeri",
"id": "c23b8843e651dc8a2bf046795d42d90f2dfd80f7",
"size": ... |
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('go to Sign Up form');
$I->amOnPage('/');
$I->see('Please fill out the following fields to login:');
$I->click('Signup', '.wrap');
$I->see('Please fill out the following fields to signup:');
$I->wantTo('sign up with incorrect data');
$I->fillField('SignupForm[use... | {
"content_hash": "6839d8e3a347bbc1d33621327e1a9df5",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 64,
"avg_line_length": 38.7027027027027,
"alnum_prop": 0.6773743016759777,
"repo_name": "antonkolb/WebDev2_Projekt",
"id": "847194118a2f958eb32519cf855d3b21f5633f3c",
"size... |
<?xml version="1.0" encoding="utf-8"?>
<locale>
<Backend>
<Profiles>
<item type="label" name="Active">
<translation language="nl"><![CDATA[actief]]></translation>
<translation language="en"><![CDATA[active]]></translation>
<translation language="it"><![CDATA[attivo]]></translation>
... | {
"content_hash": "0198b71d9ec4439968dbe247cf1589d9",
"timestamp": "",
"source": "github",
"line_count": 954,
"max_line_length": 264,
"avg_line_length": 76.16037735849056,
"alnum_prop": 0.6601703896389887,
"repo_name": "riadvice/forkcms",
"id": "11da06438cbe9870dffe11c0c401d38d90cb4782",
"size": "76... |
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
# read data
#
reader = vtk.vtkGenericEnSightReader()
# M... | {
"content_hash": "0ed836f036d535c0c0ff1e5f284e349f",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 81,
"avg_line_length": 35.872727272727275,
"alnum_prop": 0.811454637607704,
"repo_name": "gram526/VTK",
"id": "22183c080d3db2e86ee82945b23e63b3282d9896",
"size": "1995",
... |
int main(void) {
printf("Give me an integer: ");
int x = GetInt();
printf("Give me another integer: ");
int y = GetInt();
printf("The sum of %i and %i is %i!\n", x, y, x + y);
} | {
"content_hash": "e2db7f7b71be663a7e6706d578da6cf8",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 54,
"avg_line_length": 23,
"alnum_prop": 0.5706521739130435,
"repo_name": "anjerodesu/cs50",
"id": "75b4118ed10a5da0ac1cf2a0a22dd2f10e3ec3cb",
"size": "357",
"binary": fal... |
include NodeJs::Helper
use_inline_resources
action :install do
execute "install NPM package #{new_resource.name}" do
cwd new_resource.path
command "npm install #{npm_options}"
user new_resource.user
group new_resource.group
environment npm_env_vars
not_if { package_installed? }
end
end
ac... | {
"content_hash": "657f1ace718b2ccdd397b6e1e3378a49",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 135,
"avg_line_length": 26.265625,
"alnum_prop": 0.7085068411659726,
"repo_name": "chandrasekh/learning-chef",
"id": "f8a407d1b826dd2e9a89a3aeb1511ce585b3cd70",
"size": "16... |
#ifndef __CCSKIN_H__
#define __CCSKIN_H__
#include "cocostudio/CCArmatureDefine.h"
#include "cocostudio/CCBone.h"
#include "renderer/CCQuadCommand.h"
namespace cocostudio {
class Skin : public cocos2d::Sprite
{
public:
static Skin *create();
static Skin *createWithSpriteFrameName(const std::string& pszSpri... | {
"content_hash": "4bfaf8d0cea0487b99b3078e5dafc221",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 86,
"avg_line_length": 22.81967213114754,
"alnum_prop": 0.6637931034482759,
"repo_name": "kobakei/CCLocalNotification",
"id": "e0f255e70d47dbabf7cad8fbf319b09e0dcc4914",
"s... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Documenting GetName-->
<head>
<meta http-equiv="Content-Language" content="en-ca" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<... | {
"content_hash": "579dfddc86c41af753ef040b6e2b6ed7",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 336,
"avg_line_length": 46.88235294117647,
"alnum_prop": 0.5803011292346298,
"repo_name": "spring-projects/spring-net-codeconfig",
"id": "9a44423942bbb4b5fdc080b655ae36743067... |
package azkaban.reportal.util.tableau;
/**
* Result enum stores resulting information from
* the Tableau refresh
*/
public enum Result {
SUCCESS("SUCCESS"), FAIL("FAILURE"), TIMEOUT("TIMEOUT");
private final String message;
Result(final String resultMessage) {
this.message = "The refresh finished with s... | {
"content_hash": "234a9bbc8780a7def00ab002b86d46f1",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 79,
"avg_line_length": 22.142857142857142,
"alnum_prop": 0.6817204301075269,
"repo_name": "chengren311/azkaban",
"id": "9034d38268311bb00ff8d52439e529fff87e7b74",
"size": "... |
package play.core.server
import java.io._
import java.nio.file.FileAlreadyExistsException
import java.nio.file.Files
import java.nio.file.StandardOpenOption
import scala.concurrent.Future
import akka.Done
import akka.actor.CoordinatedShutdown
import play.api._
/**
* Used to start servers in 'prod' mode, the mod... | {
"content_hash": "e005d485bb10e10c960088d71065be5f",
"timestamp": "",
"source": "github",
"line_count": 155,
"max_line_length": 115,
"avg_line_length": 37.52903225806452,
"alnum_prop": 0.6678700361010831,
"repo_name": "playframework/playframework",
"id": "8376c25e8c1bae30648f40d5d400d0ecf6be0a96",
... |
package mark.quinn.security;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler;
import org.springframework.stereotype.Component;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequ... | {
"content_hash": "3bec22d511a7973a39b616fb8087aaa1",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 113,
"avg_line_length": 38.75,
"alnum_prop": 0.8,
"repo_name": "markquinn12/springBoot-JHipster-AJP-Port",
"id": "389fe0db9fae12e3e2d3d8d7349ea745018e38ef",
"size": "930",
... |
set -eu -o pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
readonly SCRIPT_DIR
# shellcheck disable=SC1091
. "$SCRIPT_DIR"/colored_echo.sh
if [[ $# -ne 3 ]]; then
echo_error "Usage: check_for_new_release.sh software_name repository current_release"
exit 1
fi
readonly SOFTWARE_NAME=$1
readonly REPOSITORY=$2
... | {
"content_hash": "1fe657acd155716b3d96e330bdef2012",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 111,
"avg_line_length": 29.53846153846154,
"alnum_prop": 0.69140625,
"repo_name": "shakiyam/bbs",
"id": "dddc35e31686c434f026257ef3fbb7e32b61ddef",
"size": "780",
"binary... |
git archive --format=tar.gz -o pandacoin.tar.gz --prefix=/pandacoin/ HEAD .
| {
"content_hash": "f0ed83c742c668a60b0206d3ed265315",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 75,
"avg_line_length": 38.5,
"alnum_prop": 0.7142857142857143,
"repo_name": "DigitalPandacoin/pandacoin",
"id": "de869d36a3a43db0c93720dcfe42884c3d7b6c74",
"size": "94",
"... |
set -o errexit # Exit on most errors (see the manual)
set -o errtrace # Make sure any error trap is inherited
set -o nounset # Disallow expansion of unset variables
set -o pipefail # Use last non-zero exit code in a pipeline
#set -o xtrace # Trace the execution of the script (... | {
"content_hash": "f4fa4e8687341dd9816aab80cc980333",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 68,
"avg_line_length": 35.27272727272727,
"alnum_prop": 0.6675257731958762,
"repo_name": "ben01189998819991197253/dotfiles",
"id": "0816b7dab9de14882e19771ae795eaedc00a29ac",... |
package hello;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan
@EnableAutoConfiguration
public class Application {
//
public static void main(String[] args){
Spring... | {
"content_hash": "a1f37049419ae11fe17d9472c5587d6d",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 70,
"avg_line_length": 26.214285714285715,
"alnum_prop": 0.8256130790190735,
"repo_name": "yangboz/drunken-happiness",
"id": "8281b07684ade363062ac1ddb1b47991147e0329",
"si... |
package config
import (
"fmt"
"net"
"net/url"
"strconv"
"strings"
clientcmdapi "github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd/api"
"github.com/openshift/origin/pkg/cmd/util"
)
// TODO should be moved upstream
func RelativizeClientConfigPaths(cfg *clientcmdapi.Config, base string) (err error) ... | {
"content_hash": "454e9d5e3a1bb12d0a2cd7818f2596f9",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 111,
"avg_line_length": 27.058252427184467,
"alnum_prop": 0.6706135629709364,
"repo_name": "hingstarne/origin",
"id": "27a2620ab531a5a145412814b9de4900525b80e3",
"size": "... |
var dir_fda2d6be1ee76f54e0d2d9958d0474eb =
[
[ "FlowRuleManagerTest.java", "FlowRuleManagerTest_8java.html", [
[ "FlowRuleManagerTest", "classorg_1_1onosproject_1_1net_1_1flow_1_1impl_1_1FlowRuleManagerTest.html", "classorg_1_1onosproject_1_1net_1_1flow_1_1impl_1_1FlowRuleManagerTest" ],
[ "TestApplicat... | {
"content_hash": "3a22e104dd23b5dfa04fc6135041ba0f",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 222,
"avg_line_length": 76,
"alnum_prop": 0.7650375939849624,
"repo_name": "onosfw/apis",
"id": "7dba5bf36fd870cd14f4ac6abbce47420e1b0a8b",
"size": "532",
"binary": false,... |
package native
import (
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
"strings"
"sync"
"syscall"
"time"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/daemon/execdriver"
"github.com/docker/docker/pkg/parsers"
"github.com/docker/docker/pkg/reexec"
sysinfo "github.com/docker/docker/pkg/system"
"githu... | {
"content_hash": "15cccaac79e57e39a25b943a5c4022e7",
"timestamp": "",
"source": "github",
"line_count": 442,
"max_line_length": 141,
"avg_line_length": 23.67873303167421,
"alnum_prop": 0.6730364991400726,
"repo_name": "nghiant2710/test-docker",
"id": "afc3f1e45ee4fdb8402f5353ecc9ffe9632b7ff9",
"siz... |
var fs = require('fs');
var FILES_DIR = __dirname + '/../../public/img';
module.exports = {
createDir: function(path, dirName) {
dirName = dirName || '';
fs.mkdirSync(FILES_DIR + path + dirName);
},
saveFile: function(file, path, fileName) {
if (!fs.existsSync(FILES_DIR + path)) {
... | {
"content_hash": "e55ce33e6d06565fe20af213dbc86e84",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 72,
"avg_line_length": 26.333333333333332,
"alnum_prop": 0.5590717299578059,
"repo_name": "StefanSinapov/TelerikAcademy",
"id": "81f8c169e8daa5d96a86c19a4aa712138084b0a9",
... |
package com.suscipio_solutions.consecro_mud.Races;
import java.util.List;
import java.util.Vector;
import com.suscipio_solutions.consecro_mud.Areas.interfaces.Area;
import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg;
import com.suscipio_solutions.consecro_mud.Common.interfaces.CharState;
import com.sus... | {
"content_hash": "fc05aa0aa7f5fd1ff72503cbdd851c51",
"timestamp": "",
"source": "github",
"line_count": 207,
"max_line_length": 140,
"avg_line_length": 35.15458937198068,
"alnum_prop": 0.7295588841555586,
"repo_name": "ConsecroMUD/ConsecroMUD",
"id": "c4369fdef2891d913a5a94e8cda24629a65d30cc",
"siz... |
#include "cpu/testers/directedtest/InvalidateGenerator.hh"
#include "base/trace.hh"
#include "cpu/testers/directedtest/DirectedGenerator.hh"
#include "cpu/testers/directedtest/RubyDirectedTester.hh"
#include "debug/DirectedTest.hh"
namespace gem5
{
InvalidateGenerator::InvalidateGenerator(const Params &p)
: Di... | {
"content_hash": "85b9b400096087bba55288ff0df7918c",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 81,
"avg_line_length": 30.72566371681416,
"alnum_prop": 0.6229838709677419,
"repo_name": "gem5/gem5",
"id": "33330713e80763337f3ade328ff05b56139c4017",
"size": "5100",
"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>corn: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | {
"content_hash": "13656a08d120586acdf7624ac8eddaca",
"timestamp": "",
"source": "github",
"line_count": 226,
"max_line_length": 159,
"avg_line_length": 39.41150442477876,
"alnum_prop": 0.5893117772538453,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "a020f5037bfe4c13b035efb5c421fde2806f07c2",
... |
using System;
namespace VimeoDotNet.Models
{
/// <summary>
/// Watch later
/// </summary>
[Serializable]
public class WatchLater
{
/// <summary>
/// Added
/// </summary>
public bool added { get; set; }
/// <summary>
/// Added time
/// </s... | {
"content_hash": "1eae896d703b8e12ab5d7c5244f62753",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 48,
"avg_line_length": 20.208333333333332,
"alnum_prop": 0.4618556701030928,
"repo_name": "needham-develop/vimeo-dot-net",
"id": "983d647308812348f2c8f461f7933b9b0b60c421",
... |
package com.dtolabs.rundeck.core.cli.jobs;
/*
* TestJobsTool.java
*
* User: Greg Schueler <a href="mailto:greg@dtosolutions.com">greg@dtosolutions.com</a>
* Created: Mar 29, 2010 4:21:29 PM
* $Id$
*/
import com.dtolabs.client.services.DeleteJobResultImpl;
import com.dtolabs.client.services.StoredJobImpl;
import com... | {
"content_hash": "b56d0271181073f00bd4d05a4e84979d",
"timestamp": "",
"source": "github",
"line_count": 779,
"max_line_length": 122,
"avg_line_length": 48.599486521181,
"alnum_prop": 0.646292823370929,
"repo_name": "variacode95/rundeck",
"id": "ab7ce21c54eaa0f59cc58528b242e42e6816a7dd",
"size": "38... |
"""El Nino dataset, 1950 - 2010"""
__docformat__ = 'restructuredtext'
COPYRIGHT = """This data is in the public domain."""
TITLE = """El Nino - Sea Surface Temperatures"""
SOURCE = """
National Oceanic and Atmospheric Administration's National Weather Service
ERSST.V3B dataset, Nino 1+2
http://www.cpc... | {
"content_hash": "6e83baf30308b95dcae1bdda65f5e091",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 79,
"avg_line_length": 24.37837837837838,
"alnum_prop": 0.6624168514412417,
"repo_name": "bert9bert/statsmodels",
"id": "35b0bcc1b7b2acdaa95dcdb07dcf2f2c24e75390",
"size": ... |
package com.orientechnologies.orient.core.storage;
import com.orientechnologies.common.concur.lock.OLockManager;
import com.orientechnologies.orient.core.config.OGlobalConfiguration;
import com.orientechnologies.orient.core.id.ORID;
/**
* Record lock manager.
*
* @author Luca Garulli (l.garulli--at--or... | {
"content_hash": "46ca055d235da026d2069bb71581434a",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 92,
"avg_line_length": 29.125,
"alnum_prop": 0.7582260371959942,
"repo_name": "nengxu/OrientDB",
"id": "6158c24ae30bf5bd341ea14641e665cd72e9c7b8",
"size": "1352",
"binary... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ConvFMML.Data.Intermediate.Event;
using ConvFMML.Data.MML.Command.PMD;
namespace ConvFMML.Modifier
{
public class PMDMusicDataModifier : MusicDataModifier
{
protected override Chan... | {
"content_hash": "d92e81599ec246bdb4a1ffa8b936db2f",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 101,
"avg_line_length": 30.727272727272727,
"alnum_prop": 0.6834319526627219,
"repo_name": "rerrahkr/ConvFMML",
"id": "2f26d059a539b5ae05ff91a95e8f569537c88cc5",
"size": "1... |
> js & disabled right click & disabled right menu
https://www.cnblogs.com/xgqfrms/p/12275284.html
```js
window.addEventListener('DOMContentLoaded', (event) => {
console.log('DOM fully loaded and parsed');
document.body.oncontextmenu =
document.body.ondragstart =
document.body.onselectstart =
document.b... | {
"content_hash": "4f1452c2b99b088e01d96266b0f46c7c",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 56,
"avg_line_length": 21.541666666666668,
"alnum_prop": 0.6924564796905223,
"repo_name": "xgqfrms/cdn",
"id": "1fc7e74c7188d43a612d0f532d96fd7f2ba3cd13",
"size": "529",
... |
package eu.atos.sla.service.rest;
import java.util.List;
import java.util.Map;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Resp... | {
"content_hash": "cf9fd7a0a17022a4a4b4487d682b9bc9",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 100,
"avg_line_length": 34.707070707070706,
"alnum_prop": 0.7619324796274738,
"repo_name": "SeaCloudsEU/sla-core",
"id": "ca51db1802c1069d971726d8c3ebe465dda01045",
"size":... |
package service;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import service.exception.AplicacaoException;
import carga.*;
/**
* Esse service é responsavel por chamar as cargas do sistema
* Para isso é preciso:
*
* Instanciar... | {
"content_hash": "a3ceac18ac795e86934e2b4db1d9fb1e",
"timestamp": "",
"source": "github",
"line_count": 201,
"max_line_length": 124,
"avg_line_length": 33.353233830845774,
"alnum_prop": 0.7203162291169452,
"repo_name": "dayse/gesplan",
"id": "a7d14e5c7964edad1f6cd44cdd281920946b45ac",
"size": "6948... |
/**
*
* @see https://www.reddit.com/r/node/comments/26f3ld/express_middleware_with_async_initialization/
*
*
* var swaggerTools = require('swagger-tools');
* var promise = new Promise(function (resolve, reject) {
*
* swaggerTools.initializeMiddleware(swaggerDoc, function (middleware) {
* resolve(midd... | {
"content_hash": "d1167745e2fd28a627f75d21e1397eb5",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 99,
"avg_line_length": 20.61111111111111,
"alnum_prop": 0.6159029649595688,
"repo_name": "tilleps/node-devstack",
"id": "10fbf9b80a9639474594bc40b495ca275e84b4a5",
"size": ... |
<?xml version="1.0" encoding="UTF-8"?>
<chapter version="5.0" xml:id="schema"
xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:m="http://www.w3.org/1998/Ma... | {
"content_hash": "bb23bb2b1d34ac2ebc7e1f925220e5bc",
"timestamp": "",
"source": "github",
"line_count": 906,
"max_line_length": 589,
"avg_line_length": 61.33995584988963,
"alnum_prop": 0.698096232050959,
"repo_name": "francisliu/hbase_namespace",
"id": "765a8f7ddb7d5d4a3420104ca27aef702ab93cd4",
"s... |
function Model(doc) {
this.attributes = doc;
}
Model.collection = null;
Model.prototype.defaults = {};
Model.prototype.attributes = {};
Model.prototype.changedAttributes = {};
Model.prototype.idAttribute = '_id';
Model.prototype.set = function(path, val, options) {
};
Model.prototype.get = function(path) {
... | {
"content_hash": "4193e7cbe6217029afa804149897cb3d",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 59,
"avg_line_length": 16.51923076923077,
"alnum_prop": 0.6461001164144354,
"repo_name": "ahmautom/mondo",
"id": "d7d3ecd5e3ae521e62a1006844caa59cbb5e7df5",
"size": "859",
... |
The GTFS Editor (or Editor) allows users to edit GTFS feeds imported from the Data Manager (see [Loading Feed Versions into Editor](../../user/managing-projects-feeds/#loading-feed-versions-into-editor)) or create GTFS feeds completely from scratch.
## Saving in the Editor
When editing routes, stop, calendars, and an... | {
"content_hash": "3dcfcfaa52209c3fad0580019d769d25",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 250,
"avg_line_length": 65.95,
"alnum_prop": 0.7600454890068233,
"repo_name": "conveyal/datatools-manager",
"id": "aa130a8cd6f7d1479e267ca620309fd430d2416e",
"size": "2677"... |
/**
* Provides the Play framework's publicly accessible Java API.
*
* <h2>Play</h2>
*
* <a href="http://www.playframework.com">http://www.playframework.com</a>
*/
package play;
| {
"content_hash": "e2926ed6fbf5ddd8956905d897320839",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 74,
"avg_line_length": 18.5,
"alnum_prop": 0.654054054054054,
"repo_name": "playframework/playframework",
"id": "81ccbd2bc6ed761e91c204575e7e8e8057d35f4f",
"size": "339",
... |
package org.xdi.model;
/**
* Hold IMAP Data configuration
*
* @author Shekhar L
*/
public class GluuIMAPData implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 216941324769217751L;
private String imaphost;
private ImapPassword imapPassword;
pr... | {
"content_hash": "ab70e44211e8dc6861932acc2fd27a27",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 69,
"avg_line_length": 18.575757575757574,
"alnum_prop": 0.6443719412724307,
"repo_name": "madumlao/oxCore",
"id": "39d93f67bd31c3cbe956d5b38c43bed137aa6cdf",
"size": "1226... |
package com.ashman.fivehundredpx;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.android.volley.Response;
import com.android.volley.VolleyEr... | {
"content_hash": "6dfbe31cf3e30a0360112bec8b8465e5",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 98,
"avg_line_length": 37.01428571428571,
"alnum_prop": 0.646854496333462,
"repo_name": "marc-ashman/500px",
"id": "2895453db7a49e88d1c47dd393174884f8e7c438",
"size": "518... |
/*
* This file is a part of B Support Libraries (bsl),
* component: Futures and Promises (bsl-futures).
*/
// Self-include:
#include <bsl/detail/Context.h>
// Bsl includes:
#include <bsl/Executor.h>
// Std includes:
#include <cassert>
using namespace bsl::futures_detail;
ContextNtBase::ContextNtBase()
... | {
"content_hash": "64ec25b65a385a814a6c2ee7bab2e3e7",
"timestamp": "",
"source": "github",
"line_count": 209,
"max_line_length": 89,
"avg_line_length": 24,
"alnum_prop": 0.6146331738437002,
"repo_name": "kanje/bsl",
"id": "604cecbc52a5832f4306cdb2c37654304a2e9022",
"size": "5016",
"binary": false,... |
#pragma once
#ifndef ZORBA_JSONIQ_SCANNER_H
#define ZORBA_JSONIQ_SCANNER_H
// Flex expects the signature of yylex to be defined in the macro YY_DECL, and
// the C++ parser expects it to be declared. We can factor both as follows.
#ifdef YY_DECL
#undef YY_DECL
#endif
#define YY_DECL ... | {
"content_hash": "05eac3a85205e7e03ac485e4fe100111",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 125,
"avg_line_length": 27.98913043478261,
"alnum_prop": 0.6885436893203883,
"repo_name": "cezarfx/zorba",
"id": "d404e5b5c77efcd003b11d11e3f6b6362341226b",
"size": "3180",... |
package net.fortuna.ical4j.model.component;
import net.fortuna.ical4j.model.ComponentFactory;
import net.fortuna.ical4j.model.ComponentList;
import net.fortuna.ical4j.model.Content;
import net.fortuna.ical4j.model.PropertyList;
import net.fortuna.ical4j.model.property.Method;
import net.fortuna.ical4j.validate.Compon... | {
"content_hash": "ba41d22ad5250763c594e19b86a6f8ab",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 113,
"avg_line_length": 27.9375,
"alnum_prop": 0.6208053691275168,
"repo_name": "ical4j/ical4j",
"id": "829e87e9524f2fa5adc080b2182b214fce91feab",
"size": "5143",
"binar... |
package model
// DmHistoryParams .
type DmHistoryParams struct {
Bsp *BasicSearchParams
Oid int64 `form:"oid" params:"oid" default:"-1"`
States []int64 `form:"states,split" params:"states"`
CtimeFrom string `form:"ctime_from" params:"ctime_from"`
CtimeTo string `form:"ctime_to" params:"ctime_... | {
"content_hash": "fcbae5c0503f4d77d0d48cf99d01e0fd",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 58,
"avg_line_length": 32.7,
"alnum_prop": 0.6788990825688074,
"repo_name": "LQJJ/demo",
"id": "ee8033a469a04eca5fd80e74b3ebcbfb3442212a",
"size": "327",
"binary": false,... |
<?php
require_once __DIR__ . '/../bootstrap.php';
/*
* Some setup and helpers. Real example below. ;)
*/
class ExampleCommandHandler extends Broadway\CommandHandling\CommandHandler
{
public function handleExampleCommand(ExampleCommand $command)
{
}
public function handleExampleFailureCommand(Exampl... | {
"content_hash": "1264c7a8b1759a21ee39c5d5ce227f08",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 126,
"avg_line_length": 28.135135135135137,
"alnum_prop": 0.7348703170028819,
"repo_name": "tPl0ch/broadway",
"id": "7d64768bbbd8754f24407d6f7777df979720d8b7",
"size": "208... |
@class NSColor, NSIndexPath, NSMenu, UXCollectionView, UXCollectionViewLayout;
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, UITableViewStyle) {
UITableViewStylePlain, // regular table view
UITableViewStyleGrouped // preferences style table view
};
typedef NS_ENUM(NSInteger, UITableView... | {
"content_hash": "1038fa2566b965ebb500e32c1ed86107",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 190,
"avg_line_length": 41.056451612903224,
"alnum_prop": 0.808681987821646,
"repo_name": "simonmitchell/Mac-ThunderTable",
"id": "1a79cfe6916300d8d650ce91970d5497b7a965e4",... |
package git4idea.log;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.diagnostic.Attachment;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.util.text.StringUtil;
import com.i... | {
"content_hash": "210b48100699a0241f24afeb340e2e96",
"timestamp": "",
"source": "github",
"line_count": 605,
"max_line_length": 139,
"avg_line_length": 41.15702479338843,
"alnum_prop": 0.6760240963855422,
"repo_name": "jk1/intellij-community",
"id": "63b432571d2f42e1f3fc5eb3e9cea9f8075bebd1",
"size... |
package org.apache.isis.core.metamodel.facets.properties.renderunchanged;
import org.apache.isis.core.metamodel.facets.SingleValueFacet;
/**
* Whether a property should NOT be re-rendered (because it is unchanged) even if other properties of a domain object
* have changed.
*/
public interface UnchangingFacet ext... | {
"content_hash": "812352890b3e6894f15a42135f2a97c7",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 117,
"avg_line_length": 27.384615384615383,
"alnum_prop": 0.7921348314606742,
"repo_name": "incodehq/isis",
"id": "549b8d1f9f21164e271c597cce2485b832961f06",
"size": "1181"... |
from __future__ import unicode_literals
import re
import json
from .common import InfoExtractor
from ..utils import (
int_or_none,
ExtractorError,
sanitized_Request,
)
class VeohIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?veoh\.com/(?:watch|iphone/#_Watch)/(?P<id>(?:v|e|yapi-)[\da-zA-Z]+)'
... | {
"content_hash": "cc9504fdbe68b2083050bc1dd5b0e64e",
"timestamp": "",
"source": "github",
"line_count": 127,
"max_line_length": 270,
"avg_line_length": 37.78740157480315,
"alnum_prop": 0.5384455094811419,
"repo_name": "C00kiie/Youtube-Mp3-telegram-bot",
"id": "b20dddc5c4eb1307e02da56efc6bff35c603933c... |
package fr.javatronic.blog.massive.annotation2;
import fr.javatronic.blog.processor.Annotation_002;
@Annotation_002
public class Class_606 {
}
| {
"content_hash": "ddbc0da56104933cd13258aae4b65400",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 51,
"avg_line_length": 20.714285714285715,
"alnum_prop": 0.8068965517241379,
"repo_name": "lesaint/experimenting-annotation-processing",
"id": "fed576bce3422067f96e71b5a74a724... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_92) on Thu Feb 23 11:39:40 CET 2017 -->
<title>WebdavCredentials (Xenon-release 1.2.0 API for Xenon developers)</title>
<meta name="date" conte... | {
"content_hash": "d3c7fbc69e883dfca8950d97b4254333",
"timestamp": "",
"source": "github",
"line_count": 502,
"max_line_length": 524,
"avg_line_length": 56.03386454183267,
"alnum_prop": 0.678801237157382,
"repo_name": "NLeSC/Xenon",
"id": "e55cab39a45b7500808b7324e35602f90fd5fb4d",
"size": "28129",
... |
#include "learnuv.h"
void idle_cb(uv_idle_t* handle) {
static int64_t count = -1;
count++;
if ((count % 10000) == 0) log_report(".");
if (count >= 50000) uv_idle_stop(handle);
}
int main() {
uv_idle_t idle_handle;
/* 1. create the event loop */
/* 2. initialize an idle handler for the loop */
/* 3.... | {
"content_hash": "316b601d447b26543f5b3e9c177b5fe6",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 57,
"avg_line_length": 19.045454545454547,
"alnum_prop": 0.6014319809069213,
"repo_name": "scopevale/gs-nodeschool",
"id": "85c1640f778c0f9f2397ce3852bd57b28be9b4dc",
"size... |
<!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "dd6f13a1f24481cf3a5e1d5cada28043",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 660,
"avg_line_length": 48.2111801242236,
"alnum_prop": 0.6949239886627158,
"repo_name": "mlperf/training_results_v0.6",
"id": "a6bc6e169e0202a1a015131232a9cfe72791b1e1",
... |
package org.apache.synapse.commons.evaluators;
import org.apache.axiom.om.OMElement;
import org.apache.synapse.commons.evaluators.config.ConditionFactory;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.Log;
import java.util.Iterator;
import java.util.List;
import java.util.ArrayList... | {
"content_hash": "8b43292e8997e76605635b92c7a67e3e",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 95,
"avg_line_length": 33.62698412698413,
"alnum_prop": 0.6082133585083785,
"repo_name": "Niranjan-K/carbon-apimgt",
"id": "abb11b2ad55855aaebf0c60b34b8a55f15eba9bd",
"siz... |
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications;
public class PartialViewCreatingNotification : CreatingNotification<IPartialView>
{
public PartialViewCreatingNotification(IPartialView target, EventMessages messages)
: base(target, messages)
{
... | {
"content_hash": "ec34e8a95496f6f905cf9df0275c2321",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 87,
"avg_line_length": 27.083333333333332,
"alnum_prop": 0.7815384615384615,
"repo_name": "abjerner/Umbraco-CMS",
"id": "d53b4eb1c88dcc06e861bd702f967f700bc01ddc",
"size": ... |
IF(MSVC)
SET(PRE lib)
ENDIF(MSVC)
if (KLU_LIBRARY)
get_filename_component(KLU_LIBRARY_DIR ${KLU_LIBRARY} PATH)
else (KLU_LIBRARY)
# SGS TODO Assumption here that all of SparseSuite is in the same dir
# SGS TODO Not sure why this is convoluted.
set(KLU_LIBRARY_NAME klu)
# find library path us... | {
"content_hash": "17800418aea8daa24e67c2d7b9b54bde",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 91,
"avg_line_length": 32.51190476190476,
"alnum_prop": 0.6799707067008421,
"repo_name": "liuqx315/Sundials",
"id": "fb386f2c7965efba16da5ca42ec9413e6ad35b28",
"size": "331... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... | {
"content_hash": "d452414d29aad055e0113582712378a6",
"timestamp": "",
"source": "github",
"line_count": 513,
"max_line_length": 83,
"avg_line_length": 35.407407407407405,
"alnum_prop": 0.5459700506496367,
"repo_name": "msliman/adala2",
"id": "13748adbf340c984447ba31e2b66a86e05d81184",
"size": "1816... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Grupo_Avaria_Conteiner_Model extends CI_Model {
private $table = "tb_grupo_avaria_conteiner";
public function __construct(){
parent::__construct();
}
public function query($query){
$registros = $this->db->query($query);
... | {
"content_hash": "328c94f998123dbbd0d6195d843b2adf",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 69,
"avg_line_length": 22.29032258064516,
"alnum_prop": 0.6078147612156295,
"repo_name": "AndrePantano/terminal",
"id": "9c6addd914a35ebf2637f9bf7c835b621843a183",
"size": ... |
module Watchman
class UserNotSet < RuntimeError; end
class Proxy
# An accessor to the winning strategy
# :api: private
attr_accessor :winning_strategy
# An accessor to the rack env hash, the proxy owner and its config
# :api: public
attr_reader :env, :manager, :config, :winning_strategies
... | {
"content_hash": "4bb4cb038f7fa5b3136ece36198a7c66",
"timestamp": "",
"source": "github",
"line_count": 352,
"max_line_length": 242,
"avg_line_length": 33.24715909090909,
"alnum_prop": 0.6495770315303768,
"repo_name": "hazah/watchman",
"id": "e6ad8c036ea5b036c1710149aa147aa511167fef",
"size": "1172... |
Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.
Return the quotient after dividing dividend by divisor.
The integer division should truncate toward zero.
## Example 1:
```
Input: dividend = 10, divisor = 3
Output: 3
```
## Example 2:
```
Input: di... | {
"content_hash": "1a7beca58deae48255a98d18ff29555f",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 244,
"avg_line_length": 30.58823529411765,
"alnum_prop": 0.632051282051282,
"repo_name": "hanleilei/leetcode",
"id": "5b6272d714abb10caf137c017c7d912131cee215",
"size": "16... |
export LC_ALL=C
if [ $# -gt 1 ]; then
cd "$2" || exit 1
fi
if [ $# -gt 0 ]; then
FILE="$1"
shift
if [ -f "$FILE" ]; then
INFO="$(head -n 1 "$FILE")"
fi
else
echo "Usage: $0 <filename> <srcroot>"
exit 1
fi
git_check_in_repo() {
! { git status --porcelain -uall --ignored "$@" 2>/d... | {
"content_hash": "3e1b40ca8d9d3c9c91ca06deab63ba97",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 186,
"avg_line_length": 29.895833333333332,
"alnum_prop": 0.5860627177700348,
"repo_name": "PIVX-Project/PIVX",
"id": "ee1e6b88d2c55b0d38c01e26c1f7a1076ede7297",
"size": "1... |
module Sandbox where
import Prelude (Bool (True))
import Universum hiding (Bool (True), show)
foo :: Bool
foo = True
| {
"content_hash": "858425d9a9e4af76d2e6ac8327851ded",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 53,
"avg_line_length": 20.142857142857142,
"alnum_prop": 0.6099290780141844,
"repo_name": "serokell/importify",
"id": "4e5e04308a0a42b2019a1cae967456c653954c05",
"size": "14... |
package com.stevesoltys.owl.controller.component;
import com.stevesoltys.owl.controller.OwlComponentRestController;
import com.stevesoltys.owl.model.OwlComponent;
import com.stevesoltys.owl.repository.OwlComponentRepository;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.sp... | {
"content_hash": "6179d690089fa3e635938ac9d1d7284a",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 118,
"avg_line_length": 38.17045454545455,
"alnum_prop": 0.7249181303959512,
"repo_name": "stevesoltys/owl",
"id": "b747542943fc823bf5c09ff632f50504880a49bc",
"size": "3359... |
require 'multi_json'
require 'forwardable'
require 'fileutils'
require 'optparse'
require 'yaml'
require 'uri'
require 'net/http'
require 'time'
require 'base64'
class DocDownloader
extend Forwardable
attr_accessor :weight, :strategy
attr_reader :original_url, :extract_title, :title, :slug
def_delegators :@st... | {
"content_hash": "85bf3622d0cf1e24f31ddfc70a24a3d3",
"timestamp": "",
"source": "github",
"line_count": 291,
"max_line_length": 108,
"avg_line_length": 25,
"alnum_prop": 0.6024742268041237,
"repo_name": "erlend-sh/learndiscourse",
"id": "f977a6d243e6f3699283a57c9d743f975b910104",
"size": "7331",
... |
import sys
from stop_words import stopword
import os
from nltk import stem
class gram:
def __init__(self,file_name,input_folder,output_folder,complete_file_name,max_gram,pos_filter_file,gram_ext):
self.doc_name=complete_file_name
#print self.doc_name
self.grams={}
f=open(self.doc_name,"r")
self.max_gram=max_... | {
"content_hash": "cb2e963f78f8f8ce31ac7402db56823a",
"timestamp": "",
"source": "github",
"line_count": 162,
"max_line_length": 119,
"avg_line_length": 26.666666666666668,
"alnum_prop": 0.6583333333333333,
"repo_name": "amudalab/concept-graphs",
"id": "3c615cfc24a30d5b0ecfc31cf31c25736eebbc41",
"si... |
<?php
/* @var $this yii\web\View */
/* @var $user common\models\User */
$resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]);
?>
Hello <?= $user->username ?>,
Follow the link below to reset your password:
<?= $resetLink ?> | {
"content_hash": "ee9ad3cd08ef7839963a8aea8f36ac42",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 119,
"avg_line_length": 29,
"alnum_prop": 0.6620689655172414,
"repo_name": "LysenkoA/yii2-basic",
"id": "1375eeb4803436d9b6b7d7988b422862c9231ebc",
"size": "290",
"binary... |
var wait = function () {
var dtd = $.Deferred();
var task = function () {
console.log('执行完毕');
dtd.resolve('complete!!!');
}
window.setTimeout(task, 2000);
return dtd.promise();
}
$.Deferred(wait).done(function (data) {
console.log(data);
});
// $.when(wait(dtd)).then(function(... | {
"content_hash": "29f7e7e67d08ebf8cf1046b5e6dc1dcd",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 64,
"avg_line_length": 22.74074074074074,
"alnum_prop": 0.5635179153094463,
"repo_name": "SnowsonZ/interview",
"id": "c209852d8c9424acb74a709235d436a3f85fb07d",
"size": "62... |
import pytest
import os
from csv import Sniffer
from natural_bm import callbacks
from natural_bm import optimizers
from natural_bm import training
from natural_bm.models import Model
from natural_bm.datasets import random
from natural_bm.utils_testing import nnet_for_testing
#%%
@pytest.mark.parametrize('sep', [',',... | {
"content_hash": "df1a91763d904a61b9608c9f38f3619e",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 79,
"avg_line_length": 28.38095238095238,
"alnum_prop": 0.5838926174496645,
"repo_name": "alexhunterlang/natural_bm",
"id": "4d9730f5aef0bd8d322583a08360223da84a5f3c",
"siz... |
(function(){
angular.module("app")
.factory("search", searchService);
function searchService(api) {
var search = {
results: [],
search: search
};
return search;
function search(query) {
api.get(api.URL + "/search?q=" + query, function(data, status) {
// console.log(status);
console.lo... | {
"content_hash": "b6db2ec556a90c5b5e2dacfb039b26b9",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 67,
"avg_line_length": 13.137931034482758,
"alnum_prop": 0.5826771653543307,
"repo_name": "CodingCarlos/hackathon-web-app",
"id": "8af3f6443ef623f95235261d3e81e716ab7b2437",
... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
"http://www.netbeans.org/dtds/module-status-1_0.dtd">
<module name="org.apache.commons.codec">
<param name="autoload">true</param>
<param name="eager">false</param>
<param name="ja... | {
"content_hash": "7808ddc5193293069ead767acbd8fb67",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 77,
"avg_line_length": 46.77777777777778,
"alnum_prop": 0.6484560570071259,
"repo_name": "samini/gort-public",
"id": "bc3076c930bcb386840116e800b80c849d3e2fe3",
"size": "421... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>AnalisisRangoModularArgumento</name>
<source-roots>
... | {
"content_hash": "01b7f7c6c2292fa3267341852c30e844",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 64,
"avg_line_length": 34.8,
"alnum_prop": 0.5517241379310345,
"repo_name": "1dawm161715/Ejercicios-1-DAW",
"id": "96ce3de352df9815506ed5ce7d4875fe4e774d64",
"size": "522",... |
Puppet::Type.type(:package).provide :urpmi, :parent => :rpm, :source => :rpm do
desc "Support via `urpmi`."
commands :urpmi => "urpmi", :urpmq => "urpmq", :rpm => "rpm", :urpme => "urpme"
defaultfor :operatingsystem => [:mandriva, :mandrake]
has_feature :versionable
def install
should = @resource.shoul... | {
"content_hash": "da2cc317e92eef811186f1ea6601fa86",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 92,
"avg_line_length": 26.854545454545455,
"alnum_prop": 0.6364251861882194,
"repo_name": "jorgemancheno/boxen",
"id": "4954d17ba86f2cfca5d69c69f87a31a3c8fdf6dc",
"size": "... |
Gibbon::API.new(ENV["MAILCHIMP_API_KEY"])
| {
"content_hash": "6e0478f6c3be357f5dcba9f88a355529",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 41,
"avg_line_length": 42,
"alnum_prop": 0.7142857142857143,
"repo_name": "prairie-io/prairie-io",
"id": "6faf953ac9a7eb7c7c6e13ae07c416ae2e6d1209",
"size": "42",
"binary"... |
using namespace mshadow;
// this namespace contains all operator overloads
using namespace mshadow::expr;
// user defined unary operator addone
struct addone {
// map can be template function
template<typename DType>
MSHADOW_XINLINE static DType Map(DType a) {
return a + static_cast<DType>(1);
}
};
// use... | {
"content_hash": "4a61312810533aa5a6b810c12038bb8c",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 77,
"avg_line_length": 28.955555555555556,
"alnum_prop": 0.6546431312356101,
"repo_name": "larroy/mxnet",
"id": "8aa1b5c8f371095a885c0f68a96ec07210dc34d9",
"size": "1436",
... |
export OOZIE_CONFIG=/etc/oozie/conf
export OOZIE_DATA=/var/lib/oozie
export OOZIE_LOG=/var/log/oozie
export OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
export CATALINA_TMPDIR=/var/lib/oozie
export CATALINA_PID=/var/run/oozie/oozie.pid
export CATALINA_BASE=/usr/lib/oozie/oozie-server
| {
"content_hash": "12e4037d92c07fee28b4b3e020a91451",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 49,
"avg_line_length": 40.42857142857143,
"alnum_prop": 0.8056537102473498,
"repo_name": "markgrover/bigtop-rvs",
"id": "dd051f706356c0247924a2ddf25ac44f1d8b9464",
"size": "... |
#include "../GUI/Graph.h"
#include "../chapter13/ch13_tools.h"
using namespace Graph_lib;
// Ex 1 - Smiley, Frowny
struct Smiley : Circle {
Smiley(Point p, int r);
void draw_lines () const;
private:
int r; // radius
Circle left; // left eye
Circle right; // right eye
Arc mouth... | {
"content_hash": "e8da80427434a0dcbcae90cde33e3c2b",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 56,
"avg_line_length": 17.48905109489051,
"alnum_prop": 0.578881469115192,
"repo_name": "Chrinkus/learn-cpp",
"id": "99bbe77b8c6f5eb808b790d98b29bcdbebc896a2",
"size": "23... |
var assert = require("assert"),
vows = require("vows"),
databank = require("databank"),
URLMaker = require("../lib/urlmaker").URLMaker,
modelBatch = require("./lib/model").modelBatch,
Databank = databank.Databank,
DatabankObject = databank.DatabankObject;
var suite = vows.describe("remotereques... | {
"content_hash": "9eeceb3ac7725609fade0c8624d449f3",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 86,
"avg_line_length": 28.125,
"alnum_prop": 0.6792592592592592,
"repo_name": "grdryn/pump.io",
"id": "6b411a24bc88060ea2aad9e351106a1ce3b86410",
"size": "2025",
"binary"... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"https://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FreeType-2.9 API Reference</title>
<style type="text/css">
a:link { color: #0000EF; }
a:visited { color: #51188E; }
a:hov... | {
"content_hash": "0d0bc1eb98e082301a987d2455aaf66a",
"timestamp": "",
"source": "github",
"line_count": 149,
"max_line_length": 398,
"avg_line_length": 42.07382550335571,
"alnum_prop": 0.5702663901738715,
"repo_name": "ColinGilbert/noobwerkz-engine",
"id": "f8f735c38e37d8702d6941a354868c782ec66089",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.