text stringlengths 2 1.04M | meta dict |
|---|---|
fugu_cookbook Cookbook
======================
TODO: Enter the cookbook description here.
e.g.
This cookbook makes your favorite breakfast sandwich.
Requirements
------------
TODO: List your cookbook requirements. Be sure to include any requirements this cookbook has on platforms, libraries, other cookbooks, packages,... | {
"content_hash": "685f262092f04f5f71d37f3267e1a771",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 168,
"avg_line_length": 22.11764705882353,
"alnum_prop": 0.6622340425531915,
"repo_name": "enriko-iskandar/chef",
"id": "783cc506242c2b0eac53f42116b862cfa02b5a4f",
"size": ... |
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using JetBrains.Annotations;
namespace AspNetHttpLogger
{
public class LogEvent
{
[PublicAPI] public readonly string AbsoluteUrl;
[PublicAPI] public readonl... | {
"content_hash": "0c3cf83bad63be2c2b0c3b0274ea55ef",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 117,
"avg_line_length": 39.07017543859649,
"alnum_prop": 0.6171980242478671,
"repo_name": "anjdreas/AspNetHttpLogger",
"id": "dab3df898874a5a8b2c222042a9570237e5be2f9",
"s... |
class SmaChart
def initialize
@all_vidyas = {}
@all_dates = {}
@all_vdevs = {}
end
def plot(record, file_path)
soks = Sok.joins(:company).where('companies.code = ? and date >= ? and date <= ?',
record.code,
record.from - ... | {
"content_hash": "a2c10ed576f3a265cccbdf45dec57ed6",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 100,
"avg_line_length": 30.546875,
"alnum_prop": 0.5626598465473146,
"repo_name": "Traver1/sok",
"id": "93ca00d4d0752b624769fdf49990ffd071a21ca8",
"size": "1955",
"binary... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015 StreamSets Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required ... | {
"content_hash": "3c8ce1be3cd4cd0100246f5911bfd3d8",
"timestamp": "",
"source": "github",
"line_count": 127,
"max_line_length": 108,
"avg_line_length": 32.196850393700785,
"alnum_prop": 0.6720469552457814,
"repo_name": "WgStreamsets/datacollector",
"id": "0b5dd0a56261188521774896bf3c39ab1373a3c1",
... |
import {
Meteor
} from 'meteor/meteor';
import {
Mongo
} from 'meteor/mongo';
import {
check
} from 'meteor/check';
export const Tasks = new Mongo.Collection('tasks');
if (Meteor.isServer) {
// This code only runs on the server
Meteor.publish('tasks', function tasksPublication() {
return T... | {
"content_hash": "e56778da3246e9955f2b94524e2db586",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 80,
"avg_line_length": 17.7734375,
"alnum_prop": 0.5006593406593407,
"repo_name": "ankaimer/meteor",
"id": "56a2c67e3ace0b3fa7a37a50371d11470bb87fb8",
"size": "2275",
"b... |
#import <UIKit/UIColor.h>
// Not exported
@interface UIPlaceholderColor : UIColor
{
}
- (void)dealloc;
- (_Bool)retainWeakReference;
- (_Bool)allowsWeakReference;
- (oneway void)release;
- (unsigned long long)retainCount;
- (id)retain;
- (id)autorelease;
@end
| {
"content_hash": "21603c49dc9064b27ae0bace88d05e23",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 39,
"avg_line_length": 14,
"alnum_prop": 0.7105263157894737,
"repo_name": "matthewsot/CocoaSharp",
"id": "472e12bd77fe71a638f5b86ab58c5353dea4e15f",
"size": "406",
"binar... |
module API
class Templates < Grape::API
include PaginationParams
GLOBAL_TEMPLATE_TYPES = {
gitignores: {
klass: Gitlab::Template::GitignoreTemplate,
gitlab_version: 8.8
},
gitlab_ci_ymls: {
klass: Gitlab::Template::GitlabCiYmlTemplate,
gitlab_version: 8.9
... | {
"content_hash": "17c8de5c17710b336ee9046af5b21a81",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 101,
"avg_line_length": 33.432432432432435,
"alnum_prop": 0.6383724063594718,
"repo_name": "t-zuehlsdorff/gitlabhq",
"id": "f70bc0622b766c11c8e5e190a268226d1a073906",
"siz... |
package com.alibaba.dubbo.rpc.listener;
import com.alibaba.dubbo.rpc.Invoker;
import com.alibaba.dubbo.rpc.InvokerListener;
import com.alibaba.dubbo.rpc.RpcException;
/**
* InvokerListenerAdapter
*
* @author william.liangf
*/
public abstract class InvokerListenerAdapter implements InvokerListener {
... | {
"content_hash": "9f50a6451f69fe46535495ff9809b0e4",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 73,
"avg_line_length": 21.80952380952381,
"alnum_prop": 0.7183406113537117,
"repo_name": "mingbotang/dubbo",
"id": "298b7b91f22681d53279939c01f0901ffaaa1d32",
"size": "1081... |
package com.grndctl.model.station;
import javax.xml.bind.annotation.*;
/**
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder = {"visibility", "weather", "meta", "temp","wind"})
@XmlRootElement(name = "weather")
public class FaaWeather {
@XmlElement
private int visibility;
@XmlEl... | {
"content_hash": "06421d43686cdfb36c98455a2914e1be",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 70,
"avg_line_length": 21.17105263157895,
"alnum_prop": 0.5276569297700435,
"repo_name": "mdisalvo/grndctl",
"id": "bde1849a79d88c8d3ab70116f6573552ab20da5d",
"size": "2761... |
"""Helper functions for Quantity.
In particular, this implements the logic that determines scaling and result
units for a given ufunc, given input units.
"""
from fractions import Fraction
import numpy as np
from .core import (UnitsError, UnitConversionError, UnitTypeError,
dimensionless_unscaled,... | {
"content_hash": "6e07aa85d640f0ee451976a8c885d4f2",
"timestamp": "",
"source": "github",
"line_count": 719,
"max_line_length": 79,
"avg_line_length": 39.30876216968011,
"alnum_prop": 0.6146905848636026,
"repo_name": "DougBurke/astropy",
"id": "c2f6b8a7b8101ea8960da1e6777a77cf335f5a2d",
"size": "28... |
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| {
"content_hash": "dd851c71d5fbaab5983d65d8dfb29850",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 60,
"avg_line_length": 16.857142857142858,
"alnum_prop": 0.7796610169491526,
"repo_name": "aa88bb/xiaomage_iOS",
"id": "09e5837503e76ff9da9e0c80c55a765a4d812718",
"size": "2... |
page_type: sample
products:
- office-sp
languages:
- csharp
extensions:
contentType: samples
createdDate: 7/26/2014 7:08:15 PM
---
# Patterns and Practices #
> **ARCHIVED** - Notice that many of the samples in this repository are for legacy add-in model. You should be using [SharePoint Framework](https://aka.ms/sp... | {
"content_hash": "836937f7ceb58c9bac15ae9d37b26097",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 552,
"avg_line_length": 70.04,
"alnum_prop": 0.7692747001713307,
"repo_name": "OfficeDev/PnP",
"id": "4a31893fd50e35c37ca200f3da795c72fe3126a8",
"size": "1755",
"binary":... |
using System;
using System.IO;
namespace NuGet {
internal static class PackageUtility {
internal static bool IsManifest(string path) {
return Path.GetExtension(path).Equals(Constants.ManifestExtension, StringComparison.OrdinalIgnoreCase);
}
}
}
| {
"content_hash": "d7bfadd77cc436ea5593d25eb687d689",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 115,
"avg_line_length": 29.3,
"alnum_prop": 0.6825938566552902,
"repo_name": "grendello/nuget",
"id": "c82bf42896c6b965baff9e1a40c533f9ae4c38ad",
"size": "295",
"binary":... |
+function ($) { "use strict";
// TAB CLASS DEFINITION
// ====================
var Tab = function (element) {
this.element = $(element)
}
Tab.prototype.show = function () {
var $this = this.element
var $ul = $this.closest('ul:not(.dropdown-menu)')
var selector = $this.data('target... | {
"content_hash": "9c01d2620b0225a789d839f6aac28462",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 101,
"avg_line_length": 21.39830508474576,
"alnum_prop": 0.5354455445544555,
"repo_name": "N00bface/Real-Dolmen-Stage-Opdrachten",
"id": "ae1dbd3cec6a39b0ffa2c280314b1802e12... |
/**
* Created by jayachandranj on 2/14/17.
*/
angular.module('F1FeederApp.services', [])
.factory('ergastAPIservice', function($http) {
var ergastAPI = {};
ergastAPI.getDrivers = function() {
return $http({
method: 'JSONP',
url: 'http://ergast.com/api... | {
"content_hash": "fb7ff48977bba31c977376d86d822434",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 113,
"avg_line_length": 29.09375,
"alnum_prop": 0.518796992481203,
"repo_name": "Jaya83/AngularJS",
"id": "436b805ad89a03845c119f7a8391485bb22981de",
"size": "931",
"bina... |
package com.smartdevicelink.test.rpc.enums;
import com.smartdevicelink.proxy.rpc.enums.AudioType;
import junit.framework.TestCase;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* This is a unit test class for the SmartDeviceLink library project class :
* {@link com.smartdevicelin... | {
"content_hash": "278987ba5ae7ca475e3f8ad5d3755272",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 100,
"avg_line_length": 30.12121212121212,
"alnum_prop": 0.6524144869215291,
"repo_name": "smartdevicelink/sdl_android",
"id": "714265d3a9656e79be7a2cce1bbc26e36c90d424",
"... |
<?xml version="1.0" encoding="utf-8"?>
<item>
<version>1.0.0.1</version>
<url></url>
<changelog>https://raw.githubusercontent.com/realGhostGamerE/ExploFinity/master/ChangeLog</changelog>
</item>
| {
"content_hash": "103f8134ea187a8e6712e8c16c61a733",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 101,
"avg_line_length": 32.5,
"alnum_prop": 0.7333333333333333,
"repo_name": "realGhostGamerE/ExploFinity",
"id": "858ea198c85f1dcf9c5f44d5b94e936aa9118a0e",
"size": "195",
... |
import { Bounds, Coordinates, RequestOptions } from '../types';
import { arrayToString, boundsToString, coordinatesToString } from '../utils';
import { fetchGet } from '../fetch';
export interface AutosuggestResponse {
suggestions: {
country: string;
nearestPlace: string;
words: string;
distanceToFoc... | {
"content_hash": "2e30c6b028ab3515ad7de6c23608fc7c",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 79,
"avg_line_length": 32.27710843373494,
"alnum_prop": 0.6700261291526689,
"repo_name": "OpenCageData/js-geo-what3words",
"id": "ea3c51ed387e07488b1e2605d1324aa93c7dd92e",
... |
require_relative './hw6graphics'
# class responsible for the pieces and their movements
class Piece
# creates a new Piece from the given point array, holding the board for
# determining if movement is possible for the piece, and gives the piece a
# color, rotation, and starting position.
def in... | {
"content_hash": "c5bedbfe9144559d325723677578fdad",
"timestamp": "",
"source": "github",
"line_count": 405,
"max_line_length": 88,
"avg_line_length": 29.580246913580247,
"alnum_prop": 0.5737061769616026,
"repo_name": "ltongues/programming-languages-coursera",
"id": "9a1885ca7016f00b98eb1511e9b4db504... |
// Type: Highsoft.Web.Mvc.Charts.PlotOptionsBoxplotStatesHover
using System.Collections;
using Newtonsoft.Json;
namespace Highsoft.Web.Mvc.Charts
{
public class PlotOptionsBoxplotStatesHover : BaseObject
{
public PlotOptionsBoxplotStatesHover()
{
this.Animation = this.Animation_D... | {
"content_hash": "91913c85868a40a3c021e623cf9cdf4d",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 89,
"avg_line_length": 37.06741573033708,
"alnum_prop": 0.603819339193695,
"repo_name": "pmrozek/highcharts",
"id": "091760192af0b0aa07225707fe8db3c17e51525e",
"size": "330... |
// Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | {
"content_hash": "26d1e923910694aaec979b5f68eee4ae",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 82,
"avg_line_length": 32.61363636363637,
"alnum_prop": 0.7634146341463415,
"repo_name": "googleapis/google-cloud-cpp",
"id": "8381397b89c42ad91e5e3f511294c6ba9ea5da18",
"s... |
__pragma(warning(push)); \
__pragma(warning(disable \
: x))
#define DISABLE_WARNING_POP __pragma(warning(pop))
#define ATL_ADD_LIBRARY(x) __pragma(comment(lib, x))
#define _WIN32_WINNT 0x0600 // minimum Windows Vista
#include <sdkddkver.h>
#define _ATL_APARTMENT_THREADED
#define _ATL_NO_AUTOMATIC_NAMESP... | {
"content_hash": "3f08653a3a51d4b98e9c06fcc7f78042",
"timestamp": "",
"source": "github",
"line_count": 172,
"max_line_length": 79,
"avg_line_length": 21.040697674418606,
"alnum_prop": 0.7325227963525835,
"repo_name": "mechasource/mechcommander2",
"id": "138efb73c133d2255885220962bc3be21a9b2385",
"... |
extern crate amqp;
extern crate env_logger;
use amqp::{Session, Options, Table, Basic, protocol, Channel};
use amqp::protocol::basic;
use std::default::Default;
fn consumer_function(channel: &mut Channel, deliver: protocol::basic::Deliver, headers: protocol::basic::BasicProperties, body: Vec<u8>){
println!("[func... | {
"content_hash": "78fdc64593b09ab5897927e305dc3c76",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 150,
"avg_line_length": 46.67605633802817,
"alnum_prop": 0.6472540736270368,
"repo_name": "Ryanl92/rust-amqp",
"id": "d708ba89ad96b7306719a5fa396e2c4e8a68b2d2",
"size": "33... |
from typing import Dict, List, Tuple, TYPE_CHECKING
import cirq
if TYPE_CHECKING:
import cirq_google
EDGE = Tuple[cirq.GridQubit, cirq.GridQubit]
def above(qubit: cirq.GridQubit) -> cirq.GridQubit:
"""Gives qubit with one unit less on the second coordinate.
Args:
qubit: Reference qubit.
... | {
"content_hash": "a694fd13858b3f58d5b6a229871072f6",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 78,
"avg_line_length": 23.695121951219512,
"alnum_prop": 0.6345856922285126,
"repo_name": "quantumlib/Cirq",
"id": "90d8755ff213d0a32454ec01f8b3977775c20d97",
"size": "2528... |
This addon provides a component for changing the title of the page you're on.
### Installing via ember-cli
If inside an ember-cli project, you can install the component as an addon:
```bash
ember install:addon ember-document-title
```
### Usage
To start, let's add a root title for your application. This goes in `... | {
"content_hash": "c764b706e39e2f4950a8a67c4a61c4ab",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 216,
"avg_line_length": 28.683333333333334,
"alnum_prop": 0.7234166182452063,
"repo_name": "knownasilya/ember-document-title",
"id": "1350da67aa523b54d85e5371d972f5a8790e8baf... |
<?php
namespace App\Base\Models;
use Illuminate\Database\Eloquent\Model;
class Attachment extends Model
{
}
| {
"content_hash": "738f1f9466b7d868fbb3aa3b1914ae28",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 39,
"avg_line_length": 12.333333333333334,
"alnum_prop": 0.7747747747747747,
"repo_name": "iluminar/goodwork",
"id": "e6a307c5412c24b3959951eeb7bd6de9a6ea77a8",
"size": "111... |
<?php
/**
* Contains the Property meta class.
*
* @author Lukas Rezek <lukas@miratronix.com>
* @license MIT
* @filesource
* @version GIT: $Id$
*/
namespace LRezek\Arachnid\Meta;
use LRezek\Arachnid\Exception;
/**
* Defines meta for a Property.
*
* This is a meta class that defines the meta for a Property. I... | {
"content_hash": "346ad8164303cf63a1ede91618347eea",
"timestamp": "",
"source": "github",
"line_count": 351,
"max_line_length": 147,
"avg_line_length": 27.085470085470085,
"alnum_prop": 0.5365520143052488,
"repo_name": "lrezek/Arachnid",
"id": "cb2571120a96ec488ca80983ebd38b78e7bfefaa",
"size": "95... |
package gov.nist;
import java.io.File;
import io.proleap.cobol.preprocessor.CobolPreprocessor.CobolSourceFormatEnum;
import io.proleap.cobol.runner.CobolParseTestRunner;
import io.proleap.cobol.runner.impl.CobolParseTestRunnerImpl;
import org.junit.Test;
public class IX119ATest {
@Test
public void test() throws E... | {
"content_hash": "f892d9f61033e103d38ccf53a5210b1e",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 77,
"avg_line_length": 30.11111111111111,
"alnum_prop": 0.8062730627306273,
"repo_name": "uwol/cobol85parser",
"id": "43a000db508db5941607eaea7e4ab36927440c33",
"size": "54... |
<header>Cluster Firewall Servers</header>
Met deze pagina kunt u uw firewall configuratie in 1 keer naar diverse andere
systemen tegelijk invoeren, zodat u een cluster met firewall systemen vanaf een enkel
systeem kunt beheren.
Voordat een server kan worden toegevoegd aan deze pagina moet u controleren dat die
m... | {
"content_hash": "446caad1202b8a88affbaef4550dbcfc",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 92,
"avg_line_length": 49.166666666666664,
"alnum_prop": 0.7898305084745763,
"repo_name": "xtso520ok/webmin",
"id": "9c176b6935f2ad23fa5bacfa9ce2d51c7a73aa3b",
"size": "594... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">API Demos</string>
<string name="sign_up_already_login">You are currently logged in, register will cause login as another user.</string>
<string name="sign_up_desc">Kii Cloud allows users to register with username, email and phone n... | {
"content_hash": "4793b1201ea0c2e197e86166fa3be4fd",
"timestamp": "",
"source": "github",
"line_count": 164,
"max_line_length": 246,
"avg_line_length": 64.01829268292683,
"alnum_prop": 0.7232117344509,
"repo_name": "firstfan/KiiDemo_Notepad",
"id": "615069de6fac9a142503c2f6281c343de0e4f03e",
"size"... |
//
// BBCell.h
// CircleView
//
// Created by Bharath Booshan on 6/8/12.
// Copyright (c) 2012 Bharath Booshan Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@interface BBCell : UITableViewCell
{
UILabel *mCellTtleLabel;
CALayer *mImageLayer;
}
-(void)setCellTitl... | {
"content_hash": "e0733f080644d21df05a0275ec59ddb9",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 64,
"avg_line_length": 16.434782608695652,
"alnum_prop": 0.6931216931216931,
"repo_name": "bharath2020/UITableViewTricks",
"id": "7ab437794834755380d784dec972637edb57568b",
... |
package org.jetbrains.plugins.scala.worksheet.settings
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.psi.PsiFile
import org.jetbrains.plugins.scala.lang.psi.api.ScalaFile
import org.jetbrains.plu... | {
"content_hash": "d5eb93467f36e6f3efe7c98c34d5eb93",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 114,
"avg_line_length": 38.43269230769231,
"alnum_prop": 0.7755816862646985,
"repo_name": "jastice/intellij-scala",
"id": "be9a9084bcb53e7e5f81db40fe00f24229497d13",
"size... |
Change Log
==========
## Version 2.0.1
* Removed unused code related to WebView
## Version 2.0.0
* Replaced WebView usage with Custom Tabs since Google and Facebook Login no longer support WebViews for authenticating users.
* Removed AuthorizationClient#clearCookies method from the API. Custom Tabs use the cookies fro... | {
"content_hash": "0518e0b380afe740da59f50275137901",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 126,
"avg_line_length": 30.5,
"alnum_prop": 0.7749627421758569,
"repo_name": "spotify/android-sdk",
"id": "0e6581f0e52c42759a3cf9843a450b4005c21dc5",
"size": "1342",
"bin... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ramsey: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | {
"content_hash": "8bd287de2d345b9c9cc89c8dacec822e",
"timestamp": "",
"source": "github",
"line_count": 194,
"max_line_length": 159,
"avg_line_length": 44.21649484536083,
"alnum_prop": 0.5855677314059221,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "68182790935edab7df3cc8da5b5e5737d280fc4a",
... |
Cu.import("resource://gre/modules/PlacesUtils.jsm");
Cu.import("resource://gre/modules/Log.jsm");
Cu.import("resource://services-sync/engines.js");
Cu.import("resource://services-sync/engines/bookmarks.js");
Cu.import("resource://services-sync/service.js");
Cu.import("resource://services-sync/util.js");
Cu.import("re... | {
"content_hash": "a85cfa605ce05674186d9ce09b8fa9d7",
"timestamp": "",
"source": "github",
"line_count": 234,
"max_line_length": 91,
"avg_line_length": 34.098290598290596,
"alnum_prop": 0.6780298282992856,
"repo_name": "GaloisInc/hacrypto",
"id": "4e9b2834dd0ae092af542a1589c03516af84809d",
"size": "... |
require 'rails_helper'
RSpec.describe GoalsController, type: :controller do
let(:user) { create(:user) }
let(:current_user) { user }
before do
allow(controller).to receive(:current_user).and_return(current_user)
end
describe '#create' do
let(:project) { create(:project, user_id: current_user.id) }
... | {
"content_hash": "b0a92b3a359fce4a59b0c393c06ac3ab",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 97,
"avg_line_length": 27.217391304347824,
"alnum_prop": 0.6437699680511182,
"repo_name": "catarse/catarse",
"id": "1d44ff05f7ba7097d564bd210ab44f77705cc187",
"size": "674"... |
<?php
namespace ChrisNoden\Facebook\Exception;
/**
* Class DuplicateObjectException
* Thrown if the object already exists in the target collection or array
*
* @category Graph\Exception
* @package facebook-graph
* @author Chris Noden <chris.noden@gmail.com>
* @license http://www.apache.org/licenses/LICENS... | {
"content_hash": "bc26d41667b9e51d0efbcffc7919af6d",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 83,
"avg_line_length": 25.157894736842106,
"alnum_prop": 0.7510460251046025,
"repo_name": "chrisnoden/facebook-utils",
"id": "1d7bc80ebb802154fcd853e9f3b2a0a6054f27be",
"si... |
CREATE OR REPLACE FUNCTION "_central"."site__init_schema"()
RETURNS TRIGGER
LANGUAGE plpgsql
AS $$
DECLARE
"v_site_id" INTEGER;
BEGIN
SELECT "id"
INTO "v_site_id"
FROM "_central"."site"
WHERE "schema" = (
SELECT "valu... | {
"content_hash": "57d2c31da59f9b9eb56e0a6429a5cb68",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 80,
"avg_line_length": 32.52571428571429,
"alnum_prop": 0.35260014054813776,
"repo_name": "webriq/multisite",
"id": "20df14b52c4d7f508e4dd0aae4b3c29ac7df07cf",
"size": "59... |
FROM mcr.microsoft.com/vscode/devcontainers/repos/microsoft/vscode:0-0
# ** [Optional] Uncomment this section to install additional packages. **
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>
| {
"content_hash": "7c421a154f92fcd414058e9018eba9ba",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 76,
"avg_line_length": 48,
"alnum_prop": 0.75,
"repo_name": "glenngillen/dotfiles",
"id": "00ff7256ec621222e28245d64f9b7207febad4cf",
"size": "472",
"binary": false,
"co... |
package example
import spray.http.StatusCodes._
import spray.httpx.encoding.Gzip
import spray.routing.HttpService
import spray.routing.directives.CachingDirectives._
import scala.concurrent.duration.Duration
trait LiveDocService extends HttpService with ClientAuthentication{
val simpleCache = routeCache(maxCapaci... | {
"content_hash": "8b8e0020aa4e1de67649b9acbf20fb21",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 83,
"avg_line_length": 27.12280701754386,
"alnum_prop": 0.593143596377749,
"repo_name": "johanprinsloo/akka-cassandra-cluster-test",
"id": "0cabb975bbc5426e6b8d0af7ef4ee22ade... |
package com.AppointmentSystem.controller.restApi;
import com.AppointmentSystem.dto.DoctorLoginDto;
import com.AppointmentSystem.model.Appointment;
import com.AppointmentSystem.model.Doctor;
import com.AppointmentSystem.model.Document;
import com.AppointmentSystem.model.Patient;
import com.AppointmentSystem.service.*;
... | {
"content_hash": "fab6eda11f036dc700506c9afb97613c",
"timestamp": "",
"source": "github",
"line_count": 138,
"max_line_length": 98,
"avg_line_length": 39.06521739130435,
"alnum_prop": 0.6735299573363013,
"repo_name": "ruzalsh/AppointmentSystem",
"id": "1e1fbc0510dab4c26177f9df6c5ebb345a08d614",
"si... |
from .related import RelatedResource
| {
"content_hash": "a3c3e71cad2cd9a1833f85e0e8bda521",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 36,
"avg_line_length": 37,
"alnum_prop": 0.8648648648648649,
"repo_name": "callowayproject/django-resources",
"id": "2fcc4e2e39e0d45f0b81cc2f1b2e1b6e5019136c",
"size": "37",... |
package com.alibaba.csp.sentinel.dashboard.discovery;
import static org.junit.Assert.*;
import org.junit.Test;
import com.alibaba.csp.sentinel.dashboard.config.DashboardConfig;
/**
* @author Jason Joo
*/
public class MachineInfoTest {
@Test
public void testHealthyAndDead() {
System.setProperty(D... | {
"content_hash": "1532fef3bfe8e832eb98784dc7dfff56",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 88,
"avg_line_length": 32.411764705882355,
"alnum_prop": 0.7132486388384754,
"repo_name": "alibaba/Sentinel",
"id": "bb526b9e83bfc1862afd869273360587064fcced",
"size": "171... |
def extractWeissnoveltranslationWordpressCom(item):
'''
Parser for 'weissnoveltranslation.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('The School Prince is a Girl', 'Th... | {
"content_hash": "6d01bbc2153de359c9e179627d49eb15",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 110,
"avg_line_length": 36.26315789473684,
"alnum_prop": 0.6560232220609579,
"repo_name": "fake-name/ReadableWebProxy",
"id": "db852ddd8a93f2aeee5f7769aad64fd6e961ceab",
"s... |
<!--
********************************************************************************
WARNING:
DO NOT EDIT "redmine/README.md"
IT IS AUTO-GENERATED
(from the other files in "redmine/" combined with a set of templates)
********************************************************************************
--... | {
"content_hash": "2dff8cbe042d4508a6a8a23ad2d010e1",
"timestamp": "",
"source": "github",
"line_count": 255,
"max_line_length": 630,
"avg_line_length": 66.53725490196078,
"alnum_prop": 0.7576471975010314,
"repo_name": "31z4/docs",
"id": "1ba4b793c333b394abffda354b16fdf61fc1c59b",
"size": "16967",
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0) on Fri Nov 02 12:25:57 PDT 2012 -->
<TITLE>
dblook (Apache Derby 10.8 API Documentation)
</TITLE>
<META NAME="date" CONTENT="2012-11-02">
... | {
"content_hash": "c800ac6613512355e6ac0d373ae87346",
"timestamp": "",
"source": "github",
"line_count": 556,
"max_line_length": 202,
"avg_line_length": 37.23381294964029,
"alnum_prop": 0.6152545647763501,
"repo_name": "mminella/jsr-352-ri-tck",
"id": "db973a4e2faa6f740e885690642964bc1d6b9b36",
"siz... |
module Role
class Diviner < GenericRole
def initialize
super
@name = "占い師"
@night_action_name = '占う'
@player_list_f = :player_list_with_selections
@night_action_direct = true
end
def execute_actions
if @action_queue.last then
divine = @action_queue.last.divine... | {
"content_hash": "909775d49193edc030bcee9d3dbfc267",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 51,
"avg_line_length": 21.17391304347826,
"alnum_prop": 0.5770020533880903,
"repo_name": "tomoyat1/yawg",
"id": "db08167ac9f7fd0a6820366db7180b74007284c2",
"size": "545",
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Sylius package.
(c) Paweł Jędrzejewski
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
-->
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping" ... | {
"content_hash": "4402a57dcee94d0525ff0b87e42db4c7",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 267,
"avg_line_length": 44.46666666666667,
"alnum_prop": 0.5835082458770615,
"repo_name": "Sylius/Sylius",
"id": "0e09fc77cb737e76152d6a441f962c8570fc4595",
"size": "3337",... |
using BaseClients.Architecture;
using GAAPICommon.Architecture;
using SchedulingClients.Core.ServicingServiceReference;
using System;
namespace SchedulingClients.Core
{
/// <summary>
/// Monitors and completes service requests.
/// </summary>
public interface IServicingClient : ICallbackClient
{
... | {
"content_hash": "7e47f09cd260c5ffcc0f0d5e7b418185",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 78,
"avg_line_length": 32.41935483870968,
"alnum_prop": 0.6487562189054726,
"repo_name": "GuidanceAutomation/SchedulingClients",
"id": "78259a490864b1478aaf1671cf390a232fb4e6... |
{% extends "base_email.html" %}
{% block content %}
<p>Please verify the following blogpost to complete your submission.</p>
<p><a href="http://{{ site }}{% url publisher_authorize code=code %}" target="_blank">Verify and complete this submission</a></p>
<hr />
<h3>{{ post.title }}</h3>
{{ post.body|safe|linebreaks }}
... | {
"content_hash": "f2b51035a62756efc52000c5bcf8d45e",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 129,
"avg_line_length": 28.210526315789473,
"alnum_prop": 0.6511194029850746,
"repo_name": "charlesmastin/django-wordpress-publisher",
"id": "9d266c2937758a0344bad6eea79352d2... |
<?php
/* @var $this TblHerdSetupController */
/* @var $model TblHerdSetup */
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/assets/js/customer.js');
Yii::app()->clientScript->registerCoreScript('jquery-ui-1.10.2.custom');
$this->breadcrumbs=array(
'Other'=>array('admin'),
'Herd Setup'=>array('a... | {
"content_hash": "3b6b25aee51888b31963241b6e5b8115",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 173,
"avg_line_length": 29.436507936507937,
"alnum_prop": 0.6133728767861958,
"repo_name": "jntd11/yiitest",
"id": "9f1f0eaf7aecf44e0edcf00e9dc56b7656057710",
"size": "370... |
#pragma once
#include <cstdint>
#include <list>
#include <string>
#include "envoy/common/platform.h"
#include "envoy/config/core/v3/address.pb.h"
#include "envoy/network/connection.h"
#include "envoy/network/listener.h"
#include "absl/strings/string_view.h"
namespace Envoy {
namespace Network {
/**
* Utility clas... | {
"content_hash": "ff618338b230f716ac158a105690a0cc",
"timestamp": "",
"source": "github",
"line_count": 412,
"max_line_length": 100,
"avg_line_length": 41.15291262135922,
"alnum_prop": 0.6800353877912121,
"repo_name": "lyft/envoy",
"id": "d042d130071f6517302e3cd3be347aa55bb11918",
"size": "16955",
... |
void thingo(void);
#endif | {
"content_hash": "710a689b0374ca3354d0a230ad4ead65",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 18,
"avg_line_length": 8.666666666666666,
"alnum_prop": 0.7307692307692307,
"repo_name": "uozuAho/doit_helpers",
"id": "34a615a18fe60869dd5d28ded2f26413772f95df",
"size": "5... |
#if !defined (LOCKMANAGER_LOCKMGR_INTERNAL_WINDOWS_H)
#define LOCKMANAGER_LOCKMGR_INTERNAL_WINDOWS_H
// Windows defines some macros that interfere with regular C++
// source. We use this header to include windows.h and undefine such
// conflicting macros.
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
... | {
"content_hash": "4695aabc2cff1a7da8ff88c3205a7687",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 68,
"avg_line_length": 26.5,
"alnum_prop": 0.7429245283018868,
"repo_name": "wilx/lockmgr",
"id": "7049b86701f826cbc0f24bf458d10be507c8a1f9",
"size": "1851",
"binary": fa... |
//
// RNSharedElementNode.m
// react-native-shared-element
//
#import <UIKit/UIKit.h>
#import <React/RCTView.h>
#import "RNSharedElementNode.h"
#import "RNSharedElementContent.h"
#import <QuartzCore/QuartzCore.h>
@interface RNSharedElementNodeResolvedSource : NSObject
@property (nonatomic, readonly) UIView* view;
@... | {
"content_hash": "5bb186e7c8c8198d448fc8544b4d16bb",
"timestamp": "",
"source": "github",
"line_count": 408,
"max_line_length": 398,
"avg_line_length": 34.345588235294116,
"alnum_prop": 0.7199743095696853,
"repo_name": "exponent/exponent",
"id": "09ecc2695c6ae09a993461ac53a05afb6c487888",
"size": "... |
#ifndef BOOST_PROTO_FUSION_HPP_EAN_11_04_2006
#define BOOST_PROTO_FUSION_HPP_EAN_11_04_2006
#include <boost/config.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/long.hpp>
#include <boost/mpl/sequence_tag_fwd.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/fus... | {
"content_hash": "2a28adbfc4d856d7db814f8feae981e7",
"timestamp": "",
"source": "github",
"line_count": 687,
"max_line_length": 104,
"avg_line_length": 28.48471615720524,
"alnum_prop": 0.47452603607746946,
"repo_name": "pennwin2013/netsvr",
"id": "ec638a0407497a406e4f163c52cf106ff67ae51d",
"size": ... |
<?php
/**
* @file
* Contains \Drupal\system\Tests\Theme\TwigDebugMarkupTest.
*/
namespace Drupal\system\Tests\Theme;
use Drupal\simpletest\WebTestBase;
/**
* Tests for Twig debug markup.
*
* @group Theme
*/
class TwigDebugMarkupTest extends WebTestBase {
/**
* Modules to enable.
*
* @var array
... | {
"content_hash": "7a5246c78a4ad992f1271766e1eedbc4",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 593,
"avg_line_length": 54.04545454545455,
"alnum_prop": 0.6421362489486964,
"repo_name": "fian005/asiavia_dev",
"id": "1b330d0d37f78a11a9cc0c2bf252dcf260ce5299",
"size": "... |
require 'rails_helper'
RSpec.describe Hyrax::EtdsController do
it "has tests" do
skip "Add your tests here"
end
end
| {
"content_hash": "596fcdccba2c2fb278622849607eefa8",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 39,
"avg_line_length": 17.857142857142858,
"alnum_prop": 0.72,
"repo_name": "RepoCamp/JabaJc",
"id": "f97b0710ec675c729852889dbd4c90e407fdf59c",
"size": "176",
"binary": f... |
using FrameworkLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using System.Web.UI.WebControls;
namespace WebApplication.Admin.Controls.Fields
{
public class ControlsHolder
{
public Panel AdminPanel { get; s... | {
"content_hash": "7206ccb7a232bc5eb882c7e93ef1cce0",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 198,
"avg_line_length": 30.821782178217823,
"alnum_prop": 0.6061676839061998,
"repo_name": "MacdonaldRobinson/FlexDotnetCMS",
"id": "d7e5779a6455af7c1789ccfe6bc176bfd9f38cfd... |
"""iriot URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | {
"content_hash": "d6d8f53400122bcfcf7d7d1393d1f4f7",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 79,
"avg_line_length": 42.03846153846154,
"alnum_prop": 0.6797804208600183,
"repo_name": "j-windsor/iRiot-WebApp",
"id": "3b91e82aed9113eb96847b2b20aab02c5eb2c5ff",
"size":... |
%make evenly spaced points on the color circle
hue=0:.002:1;
%calculate the difference in hue between all the points
%setup matrices with values of hue1 and hue2
[h1,h2]=meshgrid(hue,hue);
%calculate the absolute difference
dhue=abs(h1-h2);
%for hues more than .5 apart, take the complement distance which is smaller
ba... | {
"content_hash": "c4a4039cf21d60054e81db1393069a8d",
"timestamp": "",
"source": "github",
"line_count": 316,
"max_line_length": 137,
"avg_line_length": 25.876582278481013,
"alnum_prop": 0.6683380212791977,
"repo_name": "Upward-Spiral-Science/the-fat-boys",
"id": "91da7cb872996f54556e49a950fd524f87718... |
namespace chainerx {
namespace internal {
BackpropId GetArrayBackpropId(const Array& array, const absl::optional<BackpropId>& backprop_id);
Array MakeArray(const Shape& shape, const Strides& strides, Dtype dtype, Device& device, std::shared_ptr<void> data, int64_t offset = 0);
inline const std::shared_ptr<ArrayBody>... | {
"content_hash": "26aa95dbfbba0c0c42e93af537de346c",
"timestamp": "",
"source": "github",
"line_count": 332,
"max_line_length": 137,
"avg_line_length": 42.8433734939759,
"alnum_prop": 0.6936164229471317,
"repo_name": "niboshi/chainer",
"id": "cc16a6d6c4544d0b079187082cf9727603d8ff76",
"size": "1491... |
<?php
namespace support;
/**
* Class Request
* @package support
*/
class Request extends \Webman\Http\Request
{
} | {
"content_hash": "11e37c0da9d2783031e97fb528e95513",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 42,
"avg_line_length": 9.23076923076923,
"alnum_prop": 0.675,
"repo_name": "goldeagle/think-builder",
"id": "e3f6ac370d58c41579a2a6f93944c71fbee0cc35",
"size": "548",
"bi... |
<!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": "74751b1e436f597a02aa488086598fce",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 170,
"avg_line_length": 47.385245901639344,
"alnum_prop": 0.66476388168137,
"repo_name": "v8-dox/v8-dox.github.io",
"id": "febad18547eb6c53f8036d9f59130c6a34846e38",
"size... |
from ConfigParser import ConfigParser
from cStringIO import StringIO
import unittest
from nose.tools import assert_true, assert_equals, assert_raises, assert_false
def test_import_config_enhance ():
import config_enhance
buildout_inherit_cfg ='''\
[base]
alpha = 1.0
beta = 2.0
[derived]
<= base
beta = 5.0
gamma... | {
"content_hash": "7e142940d04335ee4f6bc9b90379c300",
"timestamp": "",
"source": "github",
"line_count": 201,
"max_line_length": 78,
"avg_line_length": 22.46268656716418,
"alnum_prop": 0.6002214839424141,
"repo_name": "zillow/config-enhance",
"id": "52e03a4631bbc5951c11edfff1710ca1125ca92f",
"size":... |
'use strict';
angular.module('realizeChangeApp')
.config(function ($stateProvider) {
$stateProvider
.state('admin', {
url: '/admin',
templateUrl: 'app/admin/admin.html',
controller: 'AdminCtrl'
});
}); | {
"content_hash": "3a41013e1bcb2be4caaf096f67010ede",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 44,
"avg_line_length": 22.363636363636363,
"alnum_prop": 0.5813008130081301,
"repo_name": "gemfarmer/realize-change-revisited",
"id": "8d8c773aa8007752c8ef145cec05d1d698fff43... |
package ucar.nc2.ui.image;
/*
* SourcePictureListener.java: interface for notification
*
* Copyright (C) 2002 Richard Eigenmann.
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either... | {
"content_hash": "c21cb2b907635adbd3f20d705315ede2",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 98,
"avg_line_length": 31.477272727272727,
"alnum_prop": 0.7436823104693141,
"repo_name": "Unidata/netcdf-java",
"id": "c52f080c55c71d6bf28b08c717eb3ae25ac26f1a",
"size": "... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//Formulae from: http://en.wikipedia.org/wiki/Normal_distribution
public class NormalDistribution
{
public double Expectation { get; private set; }
public double Variance { get; private set; }
... | {
"content_hash": "a532aacadb59538eff11bf96ac98ab49",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 93,
"avg_line_length": 28.65671641791045,
"alnum_prop": 0.5697916666666667,
"repo_name": "DynamoDS/designscript-archive",
"id": "f0a52f28e46d2abfba024378459236b348182702",
... |
package test.junit;
import org.testng.annotations.Test;
public class SetUpExceptionTest extends test.BaseTest {
@Test
public void setUpFailingShouldCauseMethodsToBeSkipped() {
addClass("test.junit.SetUpExceptionSampleTest");
setJUnit(true);
run();
String[] passed = {};
String[] failed = {"set... | {
"content_hash": "4440fa7fb80e54b82709ba74a0f65a0f",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 59,
"avg_line_length": 28.473684210526315,
"alnum_prop": 0.6931608133086876,
"repo_name": "cbeust/testng",
"id": "f9e20e1da2c9d8e678ab6a8af7430b434fe183cc",
"size": "541",
... |
using System;
using System.Runtime.InteropServices;
namespace SharpVk.Interop.Intel
{
/// <summary>
///
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public unsafe partial struct PhysicalDeviceShaderIntegerFunctions2Features
{
/// <summary>
/// The type of this structure... | {
"content_hash": "1d0691f04ddea8e1621c3874eb8a084d",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 78,
"avg_line_length": 24,
"alnum_prop": 0.5648148148148148,
"repo_name": "FacticiusVir/SharpVk",
"id": "eecc1a8ef29d2b161f2d8a6855d7e359ab1626b4",
"size": "1885",
"binar... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
<module fileurl="file://$PROJECT_DIR$/bluetoothtest2.iml" filepath="$PROJECT_DIR$/bluetoothtest2.iml... | {
"content_hash": "027f67925a611a4c3c0dc635e896c481",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 110,
"avg_line_length": 40.55555555555556,
"alnum_prop": 0.6684931506849315,
"repo_name": "lucky-code/Practice",
"id": "bfb98da9f6c8a761aa8ebbaa23e555aea2953030",
"size": "3... |
FROM balenalib/intel-nuc-ubuntu:bionic-run
# remove several traces of debian python
RUN apt-get purge -y python.*
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# install python dependencies
RUN apt-get up... | {
"content_hash": "b69e9adc0160ef4c0ce40c73d4c1b1cd",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 724,
"avg_line_length": 51.94871794871795,
"alnum_prop": 0.7070582428430404,
"repo_name": "resin-io-library/base-images",
"id": "6fc370d5558a06c66c77a8be2e1ed6721c41196c",
... |
Gamestorm re-analysis of Superfoods data set
================================================
Script to explore, reanalyze and depict Superfoods data.
Originally shown at [http://www.informationisbeautiful.net/visualizations/snake-oil-superfoods/]
and data available [publically](https://docs.google.com/spreadsheet/cc... | {
"content_hash": "c9284d48302c38610cbbfc1bf8f0ed57",
"timestamp": "",
"source": "github",
"line_count": 280,
"max_line_length": 358,
"avg_line_length": 50.15357142857143,
"alnum_prop": 0.4588050986256498,
"repo_name": "UserR-Burlington/Superfoods",
"id": "3e5970e686982d08e27197ff9a160e4aa1f7c687",
... |
<!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_112) on Fri Jun 16 09:55:06 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RandomElectionPolicyConsume... | {
"content_hash": "b88b4e59cc236d4578c6021673110af8",
"timestamp": "",
"source": "github",
"line_count": 248,
"max_line_length": 852,
"avg_line_length": 49.91129032258065,
"alnum_prop": 0.6749878817256423,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "8cc91894c74f36fbc5846a34d65754bfde1f... |
DOUBTFUL
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "b79eef4addbbd82b0831894f4895ccb6",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "b13a3462eebdd1cadb4d628933147b75eb2f2c1d",
"size": "21... |
package com.cloudhopper.commons.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Locale;
import java.util.Properties;
import java.util.StringTokenizer;
/**
* A set of String utilities.
*
* @author joelauer (twitter: @jjlauer or <a href="http://twitter.com/jjlauer" target=window>htt... | {
"content_hash": "be9eabf7cdf5cb64c1a0194af6d33421",
"timestamp": "",
"source": "github",
"line_count": 969,
"max_line_length": 158,
"avg_line_length": 37.21362229102167,
"alnum_prop": 0.5712423738214087,
"repo_name": "nkasvosve/beyondj",
"id": "58a9ca04ff3c1b1c0b3b571ded42bf502c3e99a0",
"size": "3... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Empleado;
/**
* EmpleadoSearch represents the model behind the search form about `app\models\Empleado`.
*/
class EmpleadoSearch extends Empleado
{
/**
* @inheritdoc
*/
public function rules()
... | {
"content_hash": "a8c11c97f17fea5122655565503d8d97",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 121,
"avg_line_length": 29.225,
"alnum_prop": 0.5598802395209581,
"repo_name": "kevin2335/liquidacion",
"id": "8ced2c73701fdc20e997372a7290fe2bc042de36",
"size": "2338",
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_22) on Wed May 30 16:48:30 EEST 2012 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
org.apache.wicket.datetime (Wick... | {
"content_hash": "12fc19835de654a58ba56551a2f9cf59",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 132,
"avg_line_length": 34.567567567567565,
"alnum_prop": 0.7044566067240031,
"repo_name": "afiantara/apache-wicket-1.5.7",
"id": "4a3788990c277bf5bdd7985c0da4e6e0ecd5db06",
... |
return require 'lib/couv'
| {
"content_hash": "5d53ebea40ade4811c0be95fba056b79",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 25,
"avg_line_length": 26,
"alnum_prop": 0.7692307692307693,
"repo_name": "hnakamur/couv",
"id": "20d62c46e80301249d38962103247e216311cd1f",
"size": "26",
"binary": false,... |
#ifndef __MATMUL_H__
#define __MATMUL_H__
#include <stdint.h>
#include <pal.h>
#define _Score 16 // side size of per-core sub-submatrix (max 32)
#define _Smtx 512 // side size of operand matrix
#define _Nbanks 4 // Num of SRAM banks on core
#define _BankP 0
#d... | {
"content_hash": "7166b10e26007e921a452647fcb2d6de",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 82,
"avg_line_length": 27.686567164179106,
"alnum_prop": 0.6226415094339622,
"repo_name": "parallella/pal",
"id": "08b84d78b23cccefe78596a223b3ac3ce331b4f5",
"size": "2615"... |
namespace Esri
{
namespace ArcGISRuntime
{
class Map;
class MapQuickView;
}
}
#include <QObject>
class ControlTimeExtentTimeSlider : public QObject
{
Q_OBJECT
Q_PROPERTY(Esri::ArcGISRuntime::MapQuickView* mapView READ mapView WRITE setMapView NOTIFY mapViewChanged)
public:
explicit ControlTimeExtentTimeSlider... | {
"content_hash": "3cd080b377a8849a61af57d173f3c59b",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 108,
"avg_line_length": 20.457142857142856,
"alnum_prop": 0.7681564245810056,
"repo_name": "Esri/arcgis-runtime-samples-qt",
"id": "9692e3ae898df88521cedfcd9be1002eaa059f3b",... |
package com.ait.lienzo.client.core.shape;
import com.ait.lienzo.client.core.Attribute;
import com.ait.lienzo.client.core.Context2D;
import com.ait.lienzo.client.core.shape.json.IFactory;
import com.ait.lienzo.client.core.shape.json.validators.ValidationContext;
import com.ait.lienzo.client.core.shape.json.validators... | {
"content_hash": "118f6bd5a4ec0dcfc17f5f7bf8bda54c",
"timestamp": "",
"source": "github",
"line_count": 215,
"max_line_length": 117,
"avg_line_length": 24.330232558139535,
"alnum_prop": 0.6067673484993309,
"repo_name": "psiroky/dashbuilder",
"id": "320ed8d4cb96b6e7e26b6fdae9ffdb1a3391824a",
"size":... |
<?php
/**
* RockSolid Custom Elements DCA
*
* @author Martin Auswöger <martin@madeyourday.net>
*/
use Contao\Config;
if (!empty($GLOBALS['TL_DCA']['tl_templates']['config']['validFileTypes'])) {
$GLOBALS['TL_DCA']['tl_templates']['config']['validFileTypes'] .= ',php';
}
if (!empty($GLOBALS['TL_DCA']['tl_templa... | {
"content_hash": "1234e9d8c63354579ebf962c76c2aa61",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 80,
"avg_line_length": 25.941176470588236,
"alnum_prop": 0.6394557823129252,
"repo_name": "madeyourday/contao-rocksolid-custom-elements",
"id": "d4c11dcb7e9e95016676efaa7e554... |
<composition id="hashtagfinder" app_id="app_hashtagfinder">
<general>
<clock type="wall" />
</general>
<install>
<threadpool id="src_thread" num_threads="1"/>
<threadpool id="finder_thread" num_threads="1"/>
<block id="src" type="TweetReader" invocation="async" threadpool="src_thread">
... | {
"content_hash": "f0ad16ec2351b49442bba53ff1849ef0",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 96,
"avg_line_length": 33.25806451612903,
"alnum_prop": 0.5965082444228904,
"repo_name": "cnplab/blockmon",
"id": "ef178ff04e03b9fb00dbe8dd2b5dcabee6149d42",
"size": "1031"... |
echo "Starting video conversion"
for video in static/*.webm; do
mp4_video="$(echo "$video" | sed 's/\.webm$/.mp4/')"
daemonize -c $PWD /usr/bin/ffmpeg -nostats -nostdin -i "$video" "$mp4_video" #</dev/null &>/dev/null
done
| {
"content_hash": "1142fdab49f595ab5d15888a35698e84",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 104,
"avg_line_length": 38.666666666666664,
"alnum_prop": 0.6379310344827587,
"repo_name": "google/it-cert-automation",
"id": "d7896f9ce9411cb18d3d5f87c0a27606e9942a85",
"si... |
typedef void(^ZLDropDownMenuAnimateCompleteHandler)(void);
@implementation ZLIndexPath
- (instancetype)initWithColumn:(NSInteger)column row:(NSInteger)row {
self = [super init];
if (self) {
_column = column;
_row = row;
}
return self;
}
+ (instancetype)indexPathWithColumn:(NSInteger)co... | {
"content_hash": "c7c7008c5148da2d692f0ffb88bfbc25",
"timestamp": "",
"source": "github",
"line_count": 313,
"max_line_length": 229,
"avg_line_length": 43.78913738019169,
"alnum_prop": 0.68787392382898,
"repo_name": "hanweiqi9/ALine0fPurchase",
"id": "405397d44ea4251175072cde853c6f0971801f73",
"siz... |
package net.narusas.tools.deplor.domain.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType... | {
"content_hash": "b91fe57ba0081b65bb75348e40865e0e",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 87,
"avg_line_length": 24.135135135135137,
"alnum_prop": 0.7497200447928332,
"repo_name": "narusas/deplor-ui",
"id": "1d782f20c1cf36188795c98d7b5a2747f28bec80",
"size": "17... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media... | {
"content_hash": "392ab1c525994027ed5e2b432f29a80b",
"timestamp": "",
"source": "github",
"line_count": 209,
"max_line_length": 297,
"avg_line_length": 43.92822966507177,
"alnum_prop": 0.5097483934211959,
"repo_name": "dcarda/aba.route.validator",
"id": "1cade8199315fc39d90c3d77ed287d56abc50d3a",
"... |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#c4c0be" />
<corners
android:bottomLeftRadius="10dp"
android:bottomRightRadius="10dp"
android:topLeftRadius="10dp"
android:topRightRadiu... | {
"content_hash": "65e1ea5f93b96a0b7ad1a65c561b5dce",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 66,
"avg_line_length": 34.1,
"alnum_prop": 0.6891495601173021,
"repo_name": "hkh412/OneTwoThree_Deprecated",
"id": "c12fff6e26f17af92690ac7db5953acd0d106b25",
"size": "341"... |
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE mixture PUBLIC "-//ghmm.org//DOCUMENT ghmm V1.0//EN" "http://ghmm.sourceforge.net/xml/1.0/ghmm.dtd">
<mixture version="1.0" noComponents="1">
<HMM name="" type="discrete">
<alphabet id="0">
<symbol code="0">A</symbol>
<symbol code="1">C</symbol>
<symbol ... | {
"content_hash": "f78c65ea9d0d99e52ae3c8107c383f82",
"timestamp": "",
"source": "github",
"line_count": 1020,
"max_line_length": 110,
"avg_line_length": 31.66470588235294,
"alnum_prop": 0.6738807356492662,
"repo_name": "asntech/jaspar",
"id": "672248d43aa3acb7e690aead3f9f0b6a9911516d",
"size": "322... |
import os
import sys
import logging
import math
import pandas as pd
import pytz
import bt
import matplotlib.pyplot as plt
from scipy.signal import find_peaks, medfilt, wiener, hilbert
import talib
try:
from . import module_loader
except:
import module_loader
sys.dont_write_bytecode = True
stock_data_prov... | {
"content_hash": "8e29d497e86d9ed1bd63485218a000ac",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 167,
"avg_line_length": 26.789473684210527,
"alnum_prop": 0.6208251473477406,
"repo_name": "stonewell/learn-curve",
"id": "efb8d470e0e95133bed4a7b0f23c1fce37ea1ce3",
"size"... |
package org.libgit2.jagged;
import org.libgit2.jagged.core.Lazy;
import org.libgit2.jagged.core.NativeMethods;
public class GlobalSettings {
/* Prevent instantiation */
private GlobalSettings()
{
}
private static final Lazy<BuiltInFeatures> features = new Lazy<BuiltInFeatures>()
{
@Override
... | {
"content_hash": "ace8970b76a75531643dab21857f7a80",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 85,
"avg_line_length": 22,
"alnum_prop": 0.6510263929618768,
"repo_name": "ethomson/jagged",
"id": "9503db6c82478769208c1b0843d37b6a8cf64603",
"size": "682",
"binary": fa... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>almost-full: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | {
"content_hash": "7ac01b4726d7607b755cf8c5a619506d",
"timestamp": "",
"source": "github",
"line_count": 172,
"max_line_length": 159,
"avg_line_length": 41.36046511627907,
"alnum_prop": 0.5565082935057633,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "082313c8092bb5309cb4692dd9a26eee5f7150fa",
... |
package org.drools.base.accumulators;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.Serializable;
import org.kie.runtime.rule.AccumulateFunction;
/**
* An implementation of an accumulator capable of calculating average values
*/... | {
"content_hash": "0e632773e1397a50641c6dd505def74e",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 103,
"avg_line_length": 28.107843137254903,
"alnum_prop": 0.6410882455528427,
"repo_name": "yurloc/drools",
"id": "03fd5b4d4f02eb3a138a8e981d6e185ae240b6fd",
"size": "3460... |
// Copyright 2012 Traceur Authors.
//
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | {
"content_hash": "71c167c4c15f459d7b1c18f6bebd97cc",
"timestamp": "",
"source": "github",
"line_count": 206,
"max_line_length": 75,
"avg_line_length": 23.20873786407767,
"alnum_prop": 0.6841664923656139,
"repo_name": "rwaldron/traceur-todomvc",
"id": "42e1016b55f09612b48e767f39761ef7684770a2",
"siz... |
Website development
| {
"content_hash": "4679d922767c584a53848c73eecb4508",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 19,
"avg_line_length": 20,
"alnum_prop": 0.9,
"repo_name": "joehbenti/kips",
"id": "e0b605c2fd60b007c5b002fe6f8b683e872807df",
"size": "27",
"binary": false,
"copies": "... |
import { Component, Optional } from '@angular/core';
import { MdDialog, MdDialogRef, MdSnackBar } from '@angular/material';
import { OverlayContainer } from '@angular/material';
@Component({
selector: 'app-demo',
templateUrl: './demo.component.html',
styleUrls: ['./demo.component.css']
})
export class DemoCompo... | {
"content_hash": "7b8405926d45088a6ef5102df68cacec",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 118,
"avg_line_length": 25.714285714285715,
"alnum_prop": 0.6361111111111111,
"repo_name": "kmui2/Giphy-Flashcards-with-Angular-Materials",
"id": "edfabb981ef6ec45bb9ca000827... |
package com.zaren.hometeachinghelper.data;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.squareup.sqlbrite.SqlBrite;
import com.zaren.hometeachinghelper.model.HomeTeacher;
import java.io.IOException;
import java.sql.SQLDataException;
i... | {
"content_hash": "9c77fa537ffa7e5cf54ed2c45e52b9d6",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 163,
"avg_line_length": 35.13333333333333,
"alnum_prop": 0.5317836812144212,
"repo_name": "zaren678/android-HomeTeachingHelper",
"id": "cd8e96ca66c3790bf25592fe0e9267a993bd9... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>nfix: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | {
"content_hash": "8631b069704754e6379c4a7a283ec15a",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 159,
"avg_line_length": 41.13609467455621,
"alnum_prop": 0.5395569620253164,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "e4c4c6a4592f6c518695dd549b9afe37d81c76bd",
... |
import { join } from 'path';
import { SeedConfig } from './seed.config';
// import { ExtendPackages } from './seed.config.interfaces';
/**
* This class extends the basic seed configuration, allowing for project specific overrides. A few examples can be found
* below.
*/
export class ProjectConfig extends SeedConfi... | {
"content_hash": "d105122299203fe105c4b9992ab4cdf0",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 120,
"avg_line_length": 34.36363636363637,
"alnum_prop": 0.6306878306878307,
"repo_name": "jimmybillings/wazee",
"id": "a1e7d7245e9c21940c6f0115324b2a1ff8ff514b",
"size": "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.