text stringlengths 2 1.04M | meta dict |
|---|---|
<?xml version="1.0" encoding="UTF-8" ?>
<http-response statusCode="503">
<annotation name="Server unavailable response"
host="example.com"
port="80"
scheme="http"
uri-path="/users/u10391"
request-method="GET">This is the description for this mock r... | {
"content_hash": "34e8c74f6b10c861da92cc8aa6709e6b",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 95,
"avg_line_length": 35.2,
"alnum_prop": 0.5928030303030303,
"repo_name": "evanspa/PEHateoas-Client",
"id": "e24bc61023acb758051c46d00d7c38a4b4791c17",
"size": "528",
"... |
#include <iterator>
#include <string>
#include <vector>
#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h"
#include "tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h"
#include "tensorflow/contrib/lite/toco/model.h"
#include "tensorflow/contrib/lite/toco/tooling... | {
"content_hash": "bce0c446c61e1097adb916dc5ffe7c45",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 85,
"avg_line_length": 35.06315789473684,
"alnum_prop": 0.7211047733413389,
"repo_name": "dendisuhubdy/tensorflow",
"id": "88ea0945e7dd15ba325d34ea3fdbf34ff7d91381",
"size"... |
int main(int argc, char **argv)
{
struct sockaddr_l2 loc_addr = { 0 }, rem_addr = { 0 };
char buf[1024] = { 0 };
int s, client, bytes_read;
unsigned int opt = sizeof(rem_addr);
// allocate socket
s = socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP);
// bind socket to port 0x... | {
"content_hash": "ad4a36ca1b12515f8ee31eff0afa4225",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 60,
"avg_line_length": 27.225,
"alnum_prop": 0.5821854912764004,
"repo_name": "bearlin/study_bluetooth_socket",
"id": "82c3832cbbe2d44927b4301bbd2dfb932f40a320",
"size": "1... |
'''Get columns by name from SQL query'''
# sqlite3
import sqlite3
db = sqlite3.connect(':memory:')
db.row_factory = sqlite3.Row
# psycopg2
import psycopg2
from psycopg2.extras import DictCursor
db = psycopg2.connect('my-dbn-string')
cur = db.cursor(cursor_factory=DictCursor)
# Then
cur.execute('select * from people'... | {
"content_hash": "36c74a8242098b66f0d386a8a0857026",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 42,
"avg_line_length": 21.235294117647058,
"alnum_prop": 0.7285318559556787,
"repo_name": "tebeka/pythonwise",
"id": "b11593a35df06409b877497022f719e131f10a16",
"size": "36... |
@protocol GMGridViewDataSource;
@protocol GMGridViewActionDelegate;
@protocol GMGridViewSortingDelegate;
@protocol GMGridViewTransformationDelegate;
@protocol GMGridViewLayoutStrategy;
typedef enum
{
GMGridViewStylePush = 0,
GMGridViewStyleSwap
} GMGridViewStyle;
/////////////////////////////////////////////... | {
"content_hash": "b44c9a7c3e5778165955b9b84e8bf2dd",
"timestamp": "",
"source": "github",
"line_count": 150,
"max_line_length": 163,
"avg_line_length": 45.973333333333336,
"alnum_prop": 0.7054814385150812,
"repo_name": "111minutes/GMGridView-CSFork",
"id": "5ee4fddc3692bca75b0a0c771251801fb687250f",
... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">sample2</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
</resources>
| {
"content_hash": "881c5a8d998495607f0a98aefa9756ac",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 52,
"avg_line_length": 27.125,
"alnum_prop": 0.6728110599078341,
"repo_name": "rahulpareek2440/AndroidPrograms",
"id": "d244be14c24fe75ec911cb0c4529d792522cf704",
"size": "2... |
// +k8s:defaulter-gen=TypeMeta
// +groupName=kubeadm.k8s.io
// +k8s:deepcopy-gen=package
// +k8s:conversion-gen=k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm
// Package v1beta1 defines the v1beta1 version of the kubeadm config file format, that is a big step
// forward the objective of graduate kubeadm config to be... | {
"content_hash": "7cf4dccaec8f4f23d36c7e3075600df5",
"timestamp": "",
"source": "github",
"line_count": 253,
"max_line_length": 162,
"avg_line_length": 39.84189723320158,
"alnum_prop": 0.7003968253968254,
"repo_name": "clairew/kubernetes",
"id": "e9c3843d93c9af9e73c660f6743f8cc7105438bb",
"size": "... |
from disassemblers.libdisassemble.opcode86 import regs
from copy import deepcopy
legal_integers = ['rdi', 'rsi', 'rdx', 'rcx', 'r8', 'r9']
legal_sse = ['xmm0', 'xmm1', 'xmm2', 'xmm3', 'xmm4', 'xmm5', 'xmm6', 'xmm7']
legal_other = ['rax']
def reg_normalize(reg):
'''
Normalize a register to a form independent o... | {
"content_hash": "e71d6c13d99c45458564c2ff7fc62909",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 100,
"avg_line_length": 35.365591397849464,
"alnum_prop": 0.4843417452113104,
"repo_name": "drx/ocd",
"id": "9bdf7391faee11d28a56157d67d40566ac4a3762",
"size": "3289",
"b... |
//
// STRootViewController.m
// Stacks
//
// Created by Max Luzuriaga on 6/21/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "STRootViewController.h"
#import <QuartzCore/QuartzCore.h>
#import "STStackDetailViewController.h"
#import "StacksAppDelegate.h"
#import "STStack.h"
#import "STC... | {
"content_hash": "973cef73096287720fd13682ac00b8ce",
"timestamp": "",
"source": "github",
"line_count": 404,
"max_line_length": 357,
"avg_line_length": 41.881188118811885,
"alnum_prop": 0.7314420803782505,
"repo_name": "maxluzuriaga/Stacks",
"id": "3d023396769bb08ba8c141e4d7e0d6627ee9be85",
"size":... |
namespace IO {
class Accelerometer {
public:
API virtual ~Accelerometer() = default;
typedef Toast::Memory::Shared::IO::AccelRange Range;
API virtual void set_range(Range range) = 0;
API virtual float x() = 0;
API virtual float y() = 0;
API virtual float z() = 0;
};
class BuiltInAccelerometer : public... | {
"content_hash": "c4f1746a0074eb842a5f4eda091306b3",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 54,
"avg_line_length": 22.90909090909091,
"alnum_prop": 0.6884920634920635,
"repo_name": "JacisNonsense/ToastCPP",
"id": "52c4192ae8f3a1657d3c30225ac513b61263c3d2",
"size":... |
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// // Override point for customization after application launch.
// self.window.backgroun... | {
"content_hash": "e1829319d31af78e4aa774c13796923c",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 281,
"avg_line_length": 51.87179487179487,
"alnum_prop": 0.7800296589223925,
"repo_name": "kevinkwon/KKUIKitStudy",
"id": "54838b0860946d12c34241732d87b7d33e1ca9f8",
"size"... |
package org.apache.isis.viewer.restfulobjects.tck;
import org.junit.Test;
import org.apache.isis.viewer.restfulobjects.applib.Rel;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public class RelTest_matches {
@Test
public void whenDoes() throws Exception {
assert... | {
"content_hash": "4c142f4b39ea372bb59939f3e64b8831",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 84,
"avg_line_length": 24.90909090909091,
"alnum_prop": 0.694647201946472,
"repo_name": "howepeng/isis",
"id": "72808e422303a9e943b3907e536198bf5a8968a3",
"size": "1647",
... |
require('path-compat')
-- imports
local class = require("pl.class")
local Set = require("pl.Set")
local test = require("pl.test")
local pretty = require("pl.pretty")
local Util = require("Util")
-- module
local Data = class()
function Data:_init(categories, examples)
self.categories = categories or {}
self.exa... | {
"content_hash": "ee602f3457f807781bbdc1b3f21cc3e4",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 83,
"avg_line_length": 21,
"alnum_prop": 0.6411804158283032,
"repo_name": "henfredemars/random-forest",
"id": "f31d52fffee5b8ee745f3acd1251b4f032181419",
"size": "1501",
... |
Requests for PHP
================
[](https://travis-ci.org/rmccue/Requests)
[](http://codecov.io/github/rmccue/Requests?branch=master)
Requests is a HTTP libr... | {
"content_hash": "f9eaa9cdecbb5f4f45e562faf9cf2893",
"timestamp": "",
"source": "github",
"line_count": 152,
"max_line_length": 140,
"avg_line_length": 32.96052631578947,
"alnum_prop": 0.700998003992016,
"repo_name": "mwendakith/eid_dashboard",
"id": "c4455394e6cadddf0348461d42790d5fd29c13fe",
"siz... |
import functools
import logbook
import math
import numpy as np
import numpy.linalg as la
from six import iteritems
import pandas as pd
from . import risk
from . risk import (
alpha,
check_entry,
downside_risk,
information_ratio,
sharpe_ratio,
sortino_ratio,
)
log = logbook.Logger('Risk Peri... | {
"content_hash": "ab1e8d2290ff7dc0a9623ba9778e1dee",
"timestamp": "",
"source": "github",
"line_count": 306,
"max_line_length": 79,
"avg_line_length": 35.11437908496732,
"alnum_prop": 0.5617496510004654,
"repo_name": "wilsonkichoi/zipline",
"id": "b4af1288984ded1f8d7aca8ee7f7a7f4e7a457c3",
"size": ... |
print("\nExercise 10.11\n")
#
# Question 1
# 1. Two words are a "reverse pair" if each is the reverse of the other. Write
# a program that finds all the reverse pairs in the word list.
#
import bisect
fin = open('words.txt')
wlist = []
def word_list(word):
for line in fin:
word = line.strip()
w... | {
"content_hash": "5e0febdf620398a579206a3ff31d75de",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 79,
"avg_line_length": 21.210526315789473,
"alnum_prop": 0.609181141439206,
"repo_name": "ITSE-1402/git-classworkspace",
"id": "add225b50c298df78e7190f3eef22d72e42dc8b9",
"... |
package license
//go:generate counterfeiter . DirReader
type DirReader interface {
Read(string) (*License, error)
}
| {
"content_hash": "1f75dbfcb14f4ae0ac3abcdab957eb12",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 39,
"avg_line_length": 17,
"alnum_prop": 0.7563025210084033,
"repo_name": "cf-platform-eng/aws-pcf-quickstart",
"id": "b39fb9624fb5a02ecf3a4377203cde36543531b0",
"size": "11... |
class CreateSites < ActiveRecord::Migration
def self.up
create_table :spree_sites do |t|
t.string :name
t.string :domain
t.timestamps
end
end
def self.down
drop_table :spree_sites
end
end
| {
"content_hash": "8a22743e52d17ffc6e0ddf4ab5a891e2",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 43,
"avg_line_length": 16.285714285714285,
"alnum_prop": 0.6447368421052632,
"repo_name": "qinghe/spree_multi_site",
"id": "d1ef0f79b370543dbf5515311cd1f01489c0c730",
"size... |
.class Landroid/webkit/WebSelectDialog$1;
.super Ljava/lang/Object;
.source "WebSelectDialog.java"
# interfaces
.implements Landroid/view/ViewTreeObserver$OnComputeInternalInsetsListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/webkit/WebSelectDialog;
.end annotation
... | {
"content_hash": "3b1ddf436ad095cff62c6d24f9b0aab3",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 135,
"avg_line_length": 33.98850574712644,
"alnum_prop": 0.7747717281028069,
"repo_name": "baidurom/devices-n7108",
"id": "1f3a1b7ac56f4d636db24e4071f38a1a4881989e",
"size"... |
<?php
namespace Lexik\Bundle\CurrencyBundle\Adapter;
/**
* @author Yoann Aparici <y.aparici@lexik.fr>
* @author Cédric Girard <c.girard@lexik.fr>
*/
class DoctrineCurrencyAdapter extends AbstractCurrencyAdapter
{
/**
* {@inheritdoc}
*/
public function attachAll()
{
// nothing here
... | {
"content_hash": "48067486595251b458d76c2f02230f42",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 61,
"avg_line_length": 16.821428571428573,
"alnum_prop": 0.5944798301486199,
"repo_name": "marcelohg/NasajonWebTeamplateProject",
"id": "067b3ac80fd369180d432a6303cf7ddda1218... |
#include "lib.h"
#include "mail-storage.h"
#include "mail-types.h"
#include "push-notification-drivers.h"
#include "push-notification-events.h"
#include "push-notification-event-messageread.h"
#include "push-notification-txn-msg.h"
#define EVENT_NAME "MessageRead"
static void push_notification_event_messageread_... | {
"content_hash": "de9ada5a96f2ee311cddb86c9aa87f63",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 77,
"avg_line_length": 28.637931034482758,
"alnum_prop": 0.6730885009030705,
"repo_name": "dscho/dovecot",
"id": "870f894d1682d751c124f1d3c3c917f4da6fded7",
"size": "1732",... |
require 'pavlov'
require 'pavlov/alpha_compatibility'
require 'pavlov/helpers'
module PavlovSupport
def stub_classes(*classnames)
classnames.each do |classname|
stub_const classname, Class.new
end
end
def expect_validating(hash)
hash[:pavlov_options] ||= {}
hash[:pavlov_options][:ability] ... | {
"content_hash": "e16e3f3ca9d3450130808d6676bf2cd8",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 66,
"avg_line_length": 22.40909090909091,
"alnum_prop": 0.6744421906693712,
"repo_name": "Factlink/pavlov",
"id": "2cc25fae74ee06746e36074061c3a652b477462d",
"size": "986",... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.resolvePath = exports.default = undefined;
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n =... | {
"content_hash": "f20e44709911080fd156fd5c8eda2d50",
"timestamp": "",
"source": "github",
"line_count": 196,
"max_line_length": 664,
"avg_line_length": 30.852040816326532,
"alnum_prop": 0.5703654704812303,
"repo_name": "jakegornall/MeatFestWebsite",
"id": "6f556369d49a0a4017263fa8de979feb79af4ef8",
... |
package pt.ist.recplay.inspector.util;
import pt.utl.ist.rfidtoys.recplay.SerializableSessionObject;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
public class Deserializer {
private final String currentPath = System.getProperty("user.dir");
private static Deserializer instance = null;
... | {
"content_hash": "080184b3b3a3d9def23100bda30b858b",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 122,
"avg_line_length": 28.102564102564102,
"alnum_prop": 0.6624087591240876,
"repo_name": "mvpgomes/cloud4things",
"id": "65483834d11a52956b281e266adfcede8ddecab6",
"size"... |
#import "Base.h"
#import "MBGSocialRemoteNotification.h"
@interface common_RemoteNotification_base : Base
@end
| {
"content_hash": "f552eb69b04b4bef6108651bae3eeece",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 48,
"avg_line_length": 16.285714285714285,
"alnum_prop": 0.7807017543859649,
"repo_name": "DeNADev/ANE4MobageNativeSDK",
"id": "e98c17acdc579c06c567ee3daa4930781b1531fd",
"s... |
"use strict"
const wrapCPS = (fn, options) => {
if (typeof fn !== "function") throw new Error("fn is not a function")
return function() {
const args = Array.from(arguments)
return new Promise((resolve, reject) => {
args.push(function() {
const resultArgs = Array.from(arguments)
const... | {
"content_hash": "d0c9b6ca8489e7c0761436e77ed135ce",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 76,
"avg_line_length": 25.93103448275862,
"alnum_prop": 0.5571808510638298,
"repo_name": "BenoitZugmeyer/pass-web",
"id": "7af27256566ce2eb650fb7ee7f46f91f0eaea506",
"size"... |
This repository contains the source code of the tools needed for our gradle framework that aims at deriving a multilinear tongue model from a given MRI data set.
Have a look at [our paper][1] to learn more about the background.
## Installation
You can install each tool individually by using the cmake files in the res... | {
"content_hash": "7cf688187a1082017c9b08879976fb25",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 161,
"avg_line_length": 28.73404255319149,
"alnum_prop": 0.7089966679007775,
"repo_name": "m2ci-msp/mri-shape-tools",
"id": "ab63984090118a2fae51f5920dc7c83dda56304a",
"siz... |
module.exports = function removeFilterString (str) {
var filterReg = /filter\[(.+)]/g;
var match = filterReg.exec(str);
if (match) {
return match[1];
}
return str;
};
| {
"content_hash": "a4cd2d23ed34f4355e4de56a645aacac",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 52,
"avg_line_length": 20.22222222222222,
"alnum_prop": 0.6208791208791209,
"repo_name": "TheScienceMuseum/collectionsonline",
"id": "e189e8290c5c8cbd71e5642fa9a8aefcc459d064"... |
@implementation NSLayoutConstraint (AutoLayout)
+ (id)constraintsWithVisualFormats:(NSArray *)visualFormats options:(NSLayoutFormatOptions)options metrics:(NSDictionary *)metrics views:(NSDictionary *)views {
NSMutableArray *result = [NSMutableArray array];
for (NSString *visualFormat in visualFormats) {
NSArray *... | {
"content_hash": "eb06cb1e1af48c5258dfe2343c7b2b61",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 160,
"avg_line_length": 45.27272727272727,
"alnum_prop": 0.8112449799196787,
"repo_name": "jmcd/evidence",
"id": "9e8b50a2fbb96adcf8f5a230b50051d1df623162",
"size": "541",
... |
import pytest
import six
from kafka.partitioner import Murmur2Partitioner
from kafka.partitioner.default import DefaultPartitioner
def test_default_partitioner():
partitioner = DefaultPartitioner()
all_partitions = list(range(100))
available = all_partitions
# partitioner should return the same parti... | {
"content_hash": "eb7f1bee78063ac5a85c6dcc80c1a13f",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 84,
"avg_line_length": 32.23255813953488,
"alnum_prop": 0.7027417027417028,
"repo_name": "zackdever/kafka-python",
"id": "52b6b81d138e96b9019f1ab44f0a99f1d5c83060",
"size":... |
import json
from ..utils import check_resource, minimum_version
class NetworkApiMixin(object):
@minimum_version('1.21')
def networks(self, names=None, ids=None):
filters = {}
if names:
filters['name'] = names
if ids:
filters['id'] = ids
params = {'filt... | {
"content_hash": "0520858d9994317981f5dcf0dd0a062d",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 73,
"avg_line_length": 31.05,
"alnum_prop": 0.5743424584004294,
"repo_name": "rhatdan/docker-py",
"id": "ce3f51119cd2f7fc6d655a03593ed910d8f7912d",
"size": "1863",
"binar... |
using System;
using System.Threading.Tasks;
using Windows.Security.Cryptography;
using Windows.Security.Cryptography.DataProtection;
namespace NavigationMenuSample.Common
{
public static class AlphaGain
{
public static async Task<string> GeneralRevil(this string clearText, string scope = "LOCAL=user")
{
if (... | {
"content_hash": "a243103e5e443870ce7c8a695349730b",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 101,
"avg_line_length": 35.483870967741936,
"alnum_prop": 0.7836363636363637,
"repo_name": "shirothin/KunappUniversalApp",
"id": "874db5b2783f423945b0519faa88927143121645",
... |
#include <boost/spirit/include/classic_scanner.hpp>
#include <boost/utility/addressof.hpp>
#include "symbols.hpp"
typedef char char_type;
typedef char const* iterator;
char_type data_[] = "whatever";
iterator begin = data_;
iterator end =
data_ +
sizeof(data_) / sizeof(char_type); // Yes, this is an intent... | {
"content_hash": "6b72d659ed9a6c62b91ce36e0ad0882b",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 76,
"avg_line_length": 23.724137931034484,
"alnum_prop": 0.684593023255814,
"repo_name": "fceller/arangodb",
"id": "0be8ab1e58b34c821b0f1257434b337e951e648a",
"size": "1110... |
#ifndef BOOST_FUSION_ADAPTED_ADT_ADAPT_ASSOC_ADT_HPP
#define BOOST_FUSION_ADAPTED_ADT_ADAPT_ASSOC_ADT_HPP
#include <boost/fusion/support/config.hpp>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/empty.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#include <boost/type_traits/add_refe... | {
"content_hash": "eecebb0c464e8d42cf8a3bd81a1891fa",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 82,
"avg_line_length": 63.91011235955056,
"alnum_prop": 0.41543600562587907,
"repo_name": "ycsoft/FatCat-Server",
"id": "526a307c03a908fe5fd28ff2ac4c13d44c272480",
"size": ... |
function storage(AppSettings, $window) {
'ngInject';
function Storage() {
this.storage = AppSettings.storage || 'sessionStorage';
}
Storage.prototype.get = function (key) {
return $window[this.storage].getItem(key);
}
Storage.prototype.set = function (key, value) {
$window[this.storage].setItem... | {
"content_hash": "cda30f3a65d52d503569f40b6297215b",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 59,
"avg_line_length": 23.227272727272727,
"alnum_prop": 0.6653620352250489,
"repo_name": "tungptvn/tungpts-ng-blog",
"id": "50cf48f5b50fe0e5b3f1492c6e2fe12b88f6acea",
"siz... |
from unittest import TestCase, mock
from airflow.providers.google.marketing_platform.hooks.campaign_manager import GoogleCampaignManagerHook
from tests.providers.google.cloud.utils.base_gcp_mock import mock_base_gcp_hook_default_project_id
API_VERSION = "v3.3"
GCP_CONN_ID = "google_cloud_default"
REPORT_ID = "REPORT... | {
"content_hash": "fa50197dd19c501d4c15508185a464d9",
"timestamp": "",
"source": "github",
"line_count": 289,
"max_line_length": 110,
"avg_line_length": 36.89273356401384,
"alnum_prop": 0.6519414743950478,
"repo_name": "lyft/incubator-airflow",
"id": "9eae66a9cf21d7d5c2598228d9bd59a8c41effea",
"size... |
using namespace boost::interprocess;
typedef list<int, allocator<int, managed_heap_memory::segment_manager> >
MyList;
int main ()
{
//We will create a buffer of 1000 bytes to store a list
managed_heap_memory heap_memory(1000);
MyList * mylist = heap_memory.construct<MyList>("MyList")
... | {
"content_hash": "04aaa31180fc74c1b78b04cb8bf8f779",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 91,
"avg_line_length": 26.109375,
"alnum_prop": 0.6307600239377619,
"repo_name": "arangodb/arangodb",
"id": "a0c090e46c6bd4ffd1ac21c7b94d5fd7bee18df3",
"size": "2357",
"b... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Security.Claims;
using System.Threading;
using System.Threading.Tasks;
using System.Transactions;
using Abp.Authorization.Roles;
using Abp.Dependency;
using Abp.Domain.Repositories;
using Abp.Domain.Uow;
using Ab... | {
"content_hash": "063b72379c2ab693fde01b9dd94c4214",
"timestamp": "",
"source": "github",
"line_count": 1289,
"max_line_length": 200,
"avg_line_length": 50.86501163692785,
"alnum_prop": 0.6475711126363151,
"repo_name": "ilyhacker/module-zero",
"id": "66f12989b15d60d1627572d34fa5d05aee0b5136",
"size... |
export class LocalStorageHelper {
public static ReadLocalStorageValue(key: string, defaultValue: number) {
if (typeof Storage !== "undefined" && localStorage.getItem(key) !== null) {
return parseInt(localStorage.getItem(key)!);
}
return defaultValue;
}
}
| {
"content_hash": "9bc2492199ac3e2cfce664eabd0988a0",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 83,
"avg_line_length": 34.333333333333336,
"alnum_prop": 0.6245954692556634,
"repo_name": "RaananW/Babylon.js",
"id": "d646452448412cc225c657badd749ff43989e40c",
"size": "30... |
This application makes use of the following third party libraries:
## SlidingTabbarController
Copyright (c) 2016 Yunus Eren Guzel <exculuber@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Sof... | {
"content_hash": "d27ac4fab1f4a141cab22c2a886f1fc1",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 77,
"avg_line_length": 49,
"alnum_prop": 0.8048979591836735,
"repo_name": "yunuserenguzel/SlidingTabbarController",
"id": "7a12f193709334a1b4841330685d3755d3c9ddea",
"size"... |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | {
"content_hash": "e13d732cce8c44be4a690802c9e8d99d",
"timestamp": "",
"source": "github",
"line_count": 240,
"max_line_length": 562,
"avg_line_length": 40.30416666666667,
"alnum_prop": 0.5742789207071229,
"repo_name": "kuhlenh/port-to-core",
"id": "62e43d150e513d3fadd81064b4394b60f47397a2",
"size":... |
import {Bounds} from '../../geometry/Bounds';
import {LatLng} from '../LatLng';
import {LatLngBounds} from '../LatLngBounds';
import * as Util from '../../core/Util';
/*
* @namespace CRS
* @crs L.CRS.Base
* Object that defines coordinate reference systems for projecting
* geographical points into pixel ... | {
"content_hash": "991c90191a5204ae220b0a92903d301a",
"timestamp": "",
"source": "github",
"line_count": 139,
"max_line_length": 101,
"avg_line_length": 37.992805755395686,
"alnum_prop": 0.6877485324749101,
"repo_name": "equinton/prototypephp",
"id": "bfbdae6ac9da4f9af94ac24edbea9b46f8a2e5cf",
"size... |
import java.awt.*;
import java.awt.event.*;
/**
* This class implements both the view and the controller for the
* cat chasing application. Pay particular attention to
* How the model is registered with this class so that the
* controller code can notify the model about the mouse and
* so that the model can notif... | {
"content_hash": "990a0f784b76303f964743c5de085389",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 86,
"avg_line_length": 37.922330097087375,
"alnum_prop": 0.7145417306707629,
"repo_name": "HintonBR/scratch",
"id": "6ad86989a4cca3b97543992f9c65e7e7c60304bc",
"size": "39... |
<div class="modal" ng-controller="FlowableEscalationDefinitionsPopupCtrl">
<div class="modal-dialog modal-wide">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">×</button>... | {
"content_hash": "5c0c821163b6e81dcee287a92dbde7af",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 258,
"avg_line_length": 49.83673469387755,
"alnum_prop": 0.5184275184275184,
"repo_name": "flowable/flowable-engine",
"id": "b90a3a547ec06e5623f905d709d6934a664bd646",
"siz... |
package com.gs.fw.common.mithra.attribute;
import java.util.*;
import com.gs.fw.common.mithra.*;
import com.gs.fw.common.mithra.extractor.*;
import com.gs.fw.common.mithra.finder.*;
import com.gs.fw.common.mithra.util.*;
public class TupleAttributeImpl implements TupleAttribute
{
private Attribu... | {
"content_hash": "c830247406e61daa1e343b8597df96d7",
"timestamp": "",
"source": "github",
"line_count": 247,
"max_line_length": 141,
"avg_line_length": 36.927125506072876,
"alnum_prop": 0.5768007893871286,
"repo_name": "goldmansachs/reladomo",
"id": "d4b931b533b3a70fb47994fc2aeb076fde495d6f",
"size... |
<<<<<<< HEAD
Litecoin integration/staging tree
================================
http://www.litecoin.org
Copyright (c) 2009-2014 Bitcoin Developers
Copyright (c) 2011-2014 Litecoin Developers
What is Litecoin?
----------------
Litecoin is a lite version of Bitcoin using scrypt as a proof-of-work algorithm.
- 2.5 mi... | {
"content_hash": "91ec0daf564035ed67cc49a98ad20fb1",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 139,
"avg_line_length": 37.817567567567565,
"alnum_prop": 0.7530820082186885,
"repo_name": "koharjidan/litecoin",
"id": "3e3562d627698c0013b7fa13cb10c796882f7549",
"size":... |
/**
* Polifill environment with missing functionality.
*/
define(function() {
// Fix safari
if (Number.isNaN === undefined)
Number.isNaN = isNaN;
if (Array.isArray === undefined) {
Array.isArray = function(vArg) {
// Taken from MDN.
return Object.prototype.toString.call(vArg) === '[object A... | {
"content_hash": "5606bc289cda7a3651efc6d066dfb35e",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 71,
"avg_line_length": 21.5,
"alnum_prop": 0.6133720930232558,
"repo_name": "SebastianGlonner/messaging",
"id": "bd00b889aef3fbdbe980ed443564e6ef22e49631",
"size": "344",
... |
/* $NetBSD: kern_stub.c,v 1.38 2013/12/09 18:06:27 pooka Exp $ */
/*-
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistri... | {
"content_hash": "9b7fe7a2e12e0a7d9629881c56db9e94",
"timestamp": "",
"source": "github",
"line_count": 291,
"max_line_length": 81,
"avg_line_length": 28.054982817869416,
"alnum_prop": 0.7272170504654581,
"repo_name": "execunix/vinos",
"id": "79dbaa6396e7c8a906e62b197a3747fc4dc0d3de",
"size": "8164... |
/**
* This example demonstrates how to use [`PuppeteerCrawler`](/docs/api/puppeteer-crawler)
* in combination with [`RequestQueue`](/docs/api/request-queue) to recursively scrape the
* [Hacker News website](https://news.ycombinator.com) using headless Chrome / Puppeteer.
* The crawler starts with a single URL, find... | {
"content_hash": "9ad727dab1f988b885b81f9dcff3b859",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 148,
"avg_line_length": 45.37931034482759,
"alnum_prop": 0.6208206686930091,
"repo_name": "Apifier/apify-runtime-js",
"id": "f5bafde7e4f3523d8db933599592893aeb9a4cb6",
"siz... |
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 CM202MTest {
@Test
public void test() throws E... | {
"content_hash": "345dcb008fade966728890889bc8aad5",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 77,
"avg_line_length": 30.11111111111111,
"alnum_prop": 0.8062730627306273,
"repo_name": "uwol/cobol85parser",
"id": "1ae81fd86374254bd667c35fb375edb164c1f3c0",
"size": "54... |
<?php
/**
* Base class that represents a row from the 'membresia' table.
*
*
*
* @package propel.generator.feetcent_feetcenter.om
*/
abstract class BaseMembresia extends BaseObject implements Persistent
{
/**
* Peer class name
*/
const PEER = 'MembresiaPeer';
/**
* The Peer class.... | {
"content_hash": "10427f77d67fa13dc19ea6cc9ccf21af",
"timestamp": "",
"source": "github",
"line_count": 2378,
"max_line_length": 164,
"avg_line_length": 36.8448275862069,
"alnum_prop": 0.5908784824862755,
"repo_name": "dcastanedob/feetcenter",
"id": "82f289053307a083ccf6c07d5e8c40f51ce71b59",
"size... |
package com.github.rapid.security.admin.mapper;
import com.github.rapid.security.admin.entity.Element;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
/**
*
* @author sun-abel
* @create 2017-10-23 下午6:38
**/
public interface ElementMapper extends Mapper<E... | {
"content_hash": "48c7e3443a7e341f32a0218a79c95a97",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 121,
"avg_line_length": 35.333333333333336,
"alnum_prop": 0.7814465408805031,
"repo_name": "TokenSoftware/Rapid-Security",
"id": "2988206305efc6e747d20bf086f8f1e0dcfb1539",
... |
/* Includes ------------------------------------------------------------------*/
#include "stm32f30x_pwr.h"
#include "stm32f30x_rcc.h"
/** @addtogroup STM32F30x_StdPeriph_Driver
* @{
*/
/** @defgroup PWR
* @brief PWR driver modules
* @{
*/
/* Private typedef --------------------------------------------... | {
"content_hash": "c8defb3f1b6c3b9a770a1e3411c97073",
"timestamp": "",
"source": "github",
"line_count": 506,
"max_line_length": 109,
"avg_line_length": 35.75296442687747,
"alnum_prop": 0.5779669448897242,
"repo_name": "KitSprout/MicroMultimeter",
"id": "41b95de0985987c2b40f7000ac12248b77aa4522",
"s... |
.. extension-writing:
****************************
Tutorial: Extension writing
****************************
MathJax is designed in a way that makes it easy to write extensions.
Examples can be found in the `MathJax third party
extensions <https://github.com/mathjax/MathJax-third-party-extensions>`__
repository; see a... | {
"content_hash": "a056e792d936b8b07dfcfda568363821",
"timestamp": "",
"source": "github",
"line_count": 394,
"max_line_length": 132,
"avg_line_length": 36.1497461928934,
"alnum_prop": 0.6749280348241241,
"repo_name": "GerHobbelt/MathJax-docs",
"id": "b775c8e33a7e2360273f39a52088b3e559470756",
"size... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package tf.gpx.edit.extension;
/**
*
* @author thomas
*/
public interface IGPXExtension {
String getName();
String getNames... | {
"content_hash": "988ab51c5be287e0f7cf308125c49b99",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 79,
"avg_line_length": 25.423076923076923,
"alnum_prop": 0.6399394856278366,
"repo_name": "ThomasDaheim/GPXEditor",
"id": "3f1c306aeec2a264219c63b6f4a13ce541234895",
"size"... |
import scrapy
class ProxySpiderItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| {
"content_hash": "74319ec5f646bd5e191c3817d50e847d",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 48,
"avg_line_length": 19.714285714285715,
"alnum_prop": 0.6884057971014492,
"repo_name": "arthurmmm/hq-proxies",
"id": "dfa18d041543dda43e82bfb1c64c0d23bbe3f4d3",
"size": "... |
ros1_pytemplate package
=======================
Submodules
----------
ros1_pytemplate.lib_module module
---------------------------------
.. automodule:: ros1_pytemplate.lib_module
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: ros1_pytemplate
:members... | {
"content_hash": "3a861c76647d02bacb45fe86f830996b",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 42,
"avg_line_length": 16.59090909090909,
"alnum_prop": 0.5452054794520548,
"repo_name": "pyros-dev/ros1_template",
"id": "a4bb0df8060ab2e14abc4dfa1d4dd404acd7b0f6",
"size"... |
<!DOCTYPE html >
<html>
<head>
<title>MatchSucceeded - ScalaTest 3.0.4 - org.scalatest.matchers.MatchSucceeded</title>
<meta name="description" content="MatchSucceeded - ScalaTest 3.0.4 - org.scalatest.matchers.MatchSucceeded" />
<meta name="keywords" content="MatchSucceeded ScalaT... | {
"content_hash": "e389364c8b3962b0d2033ded917d0224",
"timestamp": "",
"source": "github",
"line_count": 545,
"max_line_length": 544,
"avg_line_length": 52.7302752293578,
"alnum_prop": 0.5953441436425638,
"repo_name": "scalatest/scalatest-website",
"id": "435429ba70e1098e5b1caa49487fbd08eaef7f35",
"... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/container/v1/cluster_service.proto
package com.google.container.v1;
/**
*
*
* <pre>
* ListOperationsResponse is the result of ListOperationsRequest.
* </pre>
*
* Protobuf type {@code google.container.v1.ListOperationsResponse}
*/
p... | {
"content_hash": "842ce4d90c3c2462de9fb714b2b5e63f",
"timestamp": "",
"source": "github",
"line_count": 1193,
"max_line_length": 100,
"avg_line_length": 31.79798826487846,
"alnum_prop": 0.64286279161724,
"repo_name": "googleapis/java-container",
"id": "3cf7a437b96ce56227daaba6316ba4a6eb1bacd7",
"si... |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
ELMO.Views.BroadcastsView = class BroadcastsView extends ELMO.Views.FormView {
get el() { return '.broadcast_form'; }
... | {
"content_hash": "2e614ac159001637f17dc21a4cd08afe",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 141,
"avg_line_length": 36.02127659574468,
"alnum_prop": 0.6467808623744832,
"repo_name": "thecartercenter/elmo",
"id": "5259a7ca3f12ad464ab1677cf5ee7f9de9644489",
"size": ... |
package com.blazebit.persistence.impl.function.jsonset;
import com.blazebit.persistence.impl.function.jsonget.AbstractJsonGetFunction;
import com.blazebit.persistence.spi.FunctionRenderContext;
import java.util.List;
/**
* @author Moritz Becker
* @since 1.5.0
*/
public class OracleJsonSetFunction extends Abstrac... | {
"content_hash": "970dc92ba76aba6dc4f026c835b09609",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 329,
"avg_line_length": 42.31304347826087,
"alnum_prop": 0.584669132757912,
"repo_name": "Blazebit/blaze-persistence",
"id": "9405bcb5aad647dbfd33be1c237fa840c7667b94",
"s... |
#!/usr/bin/env php
<?php
// This is the base directory of the SimpleSAMLphp installation
$baseDir = dirname(dirname(dirname(dirname(__FILE__))));
// Add library autoloader.
require_once($baseDir . '/lib/_autoload.php');
/* Initialize the configuration. */
$configdir = SimpleSAML\Utils\Config::getConfigDir();
Simple... | {
"content_hash": "249622c9edd62fc1253b2ae4228a5eac",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 81,
"avg_line_length": 20.462365591397848,
"alnum_prop": 0.5880189174986863,
"repo_name": "RKathees/is-connectors",
"id": "37578856b2dc07b38383b06893d9e4f12b49f264",
"size"... |
FROM balenalib/asus-tinker-edge-t-debian:buster-build
ENV GO_VERSION 1.16.14
RUN mkdir -p /usr/local/go \
&& curl -SLO "https://storage.googleapis.com/golang/go$GO_VERSION.linux-arm64.tar.gz" \
&& echo "5e59056e36704acb25809bcdb27191f27593cb7aba4d716b523008135a1e764a go$GO_VERSION.linux-arm64.tar.gz" | sha256sum -... | {
"content_hash": "0b23938173bb750bc9e346c75031c57d",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 675,
"avg_line_length": 64.12903225806451,
"alnum_prop": 0.7263581488933601,
"repo_name": "resin-io-library/base-images",
"id": "9f1f8872b4cf787343d05a5e673f2aa715733c43",
... |
class ScenarioController < ApplicationController
before_action :load_response, only: [:get, :post]
def index
@cards = Card.all
end
def timeout
sleep((params[:time] || 5).to_i)
@example_url = timeout_scenario_url(time: rand(1..60))
end
def not_found
render file: 'public/404.html', status:... | {
"content_hash": "5bdabc299c0361c23ea633c77ac3718a",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 95,
"avg_line_length": 21.177777777777777,
"alnum_prop": 0.664218258132214,
"repo_name": "jnormington/mimiq",
"id": "277b7c324ed941f8fcb180acf9ed0752a958832e",
"size": "953... |
<!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_151) on Thu Dec 05 05:02:04 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SslSessionConsumer (BOM: *... | {
"content_hash": "10d9095a5cbe2ccc2781323796886162",
"timestamp": "",
"source": "github",
"line_count": 248,
"max_line_length": 646,
"avg_line_length": 45.068548387096776,
"alnum_prop": 0.6534848349288718,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "fb50656b1cb339b1dec1eb431e7f86e2c87... |
import qctests.CSIRO_wire_break
import util.testingProfile
import numpy
##### CSIRO_wire_break_test ---------------------------------------------------
def test_CSIRO_wire_break():
'''
Spot-check the nominal behavior of the CSIRO wire break test.
'''
# too cold at the bottom of xbt profile
p = ut... | {
"content_hash": "2c94c1bab47385e9fda3d3818decb406",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 103,
"avg_line_length": 43.44642857142857,
"alnum_prop": 0.6588573777229757,
"repo_name": "BillMills/AutoQC",
"id": "c617d6dbeba3014f3450b02e08c7e71af2a23380",
"size": "243... |
/*
Author: James Fraser
Date: June 10th
Purpose: Simple Structure for testing.
University of Guelph, 2016.
CIS*2520 (DE) S16
*/
#ifndef SIMPLE_TEST_STRUCTURE_
#define SIMPLE_TEST_STRUCTURE_
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
/* Simple structure simpilar to that of an ar... | {
"content_hash": "cfcb7136e201be4597497965d2fbfbaf",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 103,
"avg_line_length": 25.164556962025316,
"alnum_prop": 0.7283702213279678,
"repo_name": "ian-james/IFS",
"id": "e2d8a845aa990ae4218fd7549b8bff34fc79b5c5",
"size": "1988"... |
START_ATF_NAMESPACE
namespace vc_attributes
{
namespace atl
{
template<>
struct rdxAttribute
{
const char *key;
const char *valuename;
const char *regtype;
};
}; // end namespace atl
}; //... | {
"content_hash": "b479f4996d5008aee5570b09cdf74e4b",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 38,
"avg_line_length": 24.466666666666665,
"alnum_prop": 0.47956403269754766,
"repo_name": "goodwinxp/Yorozuya",
"id": "f6aed6836dc6b0871496a276aa446ca8c8dd0960",
"size": "... |
from __future__ import print_function
import os
import numpy as np
import pandas as pd
import scipy.stats as sps
import matplotlib.pyplot as plt
import seaborn as sns
from statsmodels.stats.multicomp import pairwise_tukeyhsd
from shelve import DbfilenameShelf
from contextlib import closing
from collections import d... | {
"content_hash": "05a00e6c8133e81f86224e55d6bff1d4",
"timestamp": "",
"source": "github",
"line_count": 135,
"max_line_length": 98,
"avg_line_length": 37.37777777777778,
"alnum_prop": 0.6266349583828775,
"repo_name": "rileymcdowell/genomic-neuralnet",
"id": "bb99ed02b2320b769b94b87eec7311b89c06aa43",... |
<project name="common-build" basedir="." xmlns:ac="antlib:net.sf.antcontrib">
<description>Common Build File</description>
<dirname property="current.dir" file="${ant.file.common-build}"/>
<property name="root.dir" location="${current.dir}/../"/>
<property name="tmp.dir" location="${root.dir}/output/tmp/"/>... | {
"content_hash": "df72edfc547b18c0dcf5a9b2be926652",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 110,
"avg_line_length": 29.06140350877193,
"alnum_prop": 0.5553878659824932,
"repo_name": "wedteam/qwrap",
"id": "b3eed0dd0a171d52607a4ff97d265129bb02ace7",
"size": "3435"... |
#pragma once
namespace clockwork {
/**
* Returns true if two floating-point values are equal.
*/
bool fequal(const double& a, const double& b);
} // namespace clockwork
| {
"content_hash": "1f0e6ed7c3f984e2109c801e022427c9",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 55,
"avg_line_length": 15.909090909090908,
"alnum_prop": 0.7028571428571428,
"repo_name": "supranove/clockwork",
"id": "d05619c65b88707f83e35b40881468b3c37d4efc",
"size": "... |
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| {
"content_hash": "c13611858126250e125caf553cf54339",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 60,
"avg_line_length": 16.857142857142858,
"alnum_prop": 0.7796610169491526,
"repo_name": "kaushalkantawala/blood-sugar-simulator",
"id": "f85d921853411a3029f5154646228c07632d... |
class Answer < ActiveRecord::Base
acts_as_votable
belongs_to :question
belongs_to :user
validates :content, presence: true
after_create :answer_mailer
private
def answer_mailer
AnswerMailer.answer_notification(self).deliver
end
end
| {
"content_hash": "b112caef963fbab4cb5a8edcd26ff272",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 50,
"avg_line_length": 16.933333333333334,
"alnum_prop": 0.7480314960629921,
"repo_name": "ankawiecorek/challenge_app",
"id": "05cdf43c9116f59d19a1fc876d192eec213ed98a",
"s... |
\hypertarget{exclusion__recursive__mutex_8h}{\section{exclusion\-\_\-recursive\-\_\-mutex.\-h File Reference}
\label{exclusion__recursive__mutex_8h}\index{exclusion\-\_\-recursive\-\_\-mutex.\-h@{exclusion\-\_\-recursive\-\_\-mutex.\-h}}
}
exclusion object \-: mutex which can be called recursively.
{\ttfamily \#i... | {
"content_hash": "675f6b1837c90f4baf8e20ce69b3649b",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 298,
"avg_line_length": 50.28,
"alnum_prop": 0.7597454256165473,
"repo_name": "hiroyuki-seki/hryky-codebase",
"id": "f0d8795f7fcad3050655adfe62a2cce822adab90",
"size": "251... |
package com.google.cloud;
import static com.google.common.base.Preconditions.checkNotNull;
import com.google.api.core.BetaApi;
import com.google.api.gax.retrying.ResultRetryAlgorithm;
import com.google.api.gax.retrying.TimedAttemptSettings;
import com.google.common.annotations.VisibleForTesting;
import com.google.c... | {
"content_hash": "ec1f77fbec8b38266c7d24f843e16444",
"timestamp": "",
"source": "github",
"line_count": 291,
"max_line_length": 99,
"avg_line_length": 35.48453608247423,
"alnum_prop": 0.7086964942862677,
"repo_name": "shinfan/gcloud-java",
"id": "70d6cd49bbeaa9b9049449b454fe02c33d414a27",
"size": "... |
(function(){
'use strict';
/**
* @class Global.core.Array
* Wrapper class for Array
* @extends Global.core.BaseClass
* @alternateClassName Global.Arra
* @singleton
*
*/
Global.define('Global.core.Array',{
alias: 'Global.Array',
singleton: true,
... | {
"content_hash": "c7783a3c40f6feb6102a699452978cc1",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 89,
"avg_line_length": 28.17829457364341,
"alnum_prop": 0.43191196698762035,
"repo_name": "kashiro/GlobalJS",
"id": "a5ca542b60ff2214e24258434d9331aede81013f",
"size": "36... |
/**
* $Id: XMLUTF8Transcoder.cpp 1662882 2015-02-28 02:07:25Z scantor $
*/
// ---------------------------------------------------------------------------
// Includes
// ---------------------------------------------------------------------------
#include <xercesc/util/TranscodingException.hpp>
#include <xercesc/ut... | {
"content_hash": "75425d647ad325081ae02506a8e498db",
"timestamp": "",
"source": "github",
"line_count": 541,
"max_line_length": 122,
"avg_line_length": 38.613678373382626,
"alnum_prop": 0.4572044040210627,
"repo_name": "JLUCPGROUP/cuda8_sac",
"id": "2af68a2cdb8b43b2f075edfea2eb37d2c38bed79",
"size"... |
package com.hp.alm.ali.idea.services;
import com.hp.alm.ali.ServerVersion;
import com.hp.alm.ali.idea.IntellijTest;
import com.hp.alm.ali.idea.entity.EntityAdapter;
import com.hp.alm.ali.idea.entity.EntityListener;
import com.hp.alm.ali.idea.entity.EntityRef;
import com.hp.alm.ali.idea.model.Entity;
import com.hp.al... | {
"content_hash": "2b381c32c24d69a60374d37a2779e7b5",
"timestamp": "",
"source": "github",
"line_count": 223,
"max_line_length": 172,
"avg_line_length": 41.300448430493276,
"alnum_prop": 0.6770901194353963,
"repo_name": "janotav/ali-idea-plugin",
"id": "aa0a29842920252813fedb857bd9dd5acf182a9a",
"si... |
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Symmetry")]
[assembly: AssemblyDescription("The fundamental abstractions that Microsoft forgot to... | {
"content_hash": "1003b041dc5f2c5b8480c85cc188b44a",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 97,
"avg_line_length": 39.03703703703704,
"alnum_prop": 0.7514231499051234,
"repo_name": "kullbom/Symmetry",
"id": "f123c1eadcdd68c31fa42658e22a787714f059e4",
"size": "1054... |
package hypervisor
import (
"fmt"
"strings"
"sync"
"github.com/hyperhq/runv/api"
hyperstartapi "github.com/hyperhq/runv/hyperstart/api/json"
"github.com/hyperhq/runv/hypervisor/network"
)
const (
MAX_NIC = int(^uint(0) >> 1) // Eth is network card, while lo is alias, what's the maximum for each? same?
// let... | {
"content_hash": "1cafd8d7bddc0392cb2abb1487bbf4e2",
"timestamp": "",
"source": "github",
"line_count": 439,
"max_line_length": 133,
"avg_line_length": 25.660592255125284,
"alnum_prop": 0.6561917443408788,
"repo_name": "gao-feng/hyper",
"id": "bf07a936351e0d272962c19a7f846480dea3b593",
"size": "112... |
package Interface;
import BuilderPattern.Reservation;
import FactoryMethod.Customer;
import FactoryMethod.CustomerFactory;
import FactoryMethod.TravelAgencyMain;
import Iterator.Collection;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util... | {
"content_hash": "f3114b737cef9539a4d260f8ebca451d",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 322,
"avg_line_length": 43.69945355191257,
"alnum_prop": 0.6252344629235963,
"repo_name": "levisjani/java",
"id": "d4363dbe1ba615f83308d05124cd047b0685a052",
"size": "7997... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin Developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2013 NeoGulden Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licens... | {
"content_hash": "398357c67481c8caaa9792ca0666c2cf",
"timestamp": "",
"source": "github",
"line_count": 468,
"max_line_length": 114,
"avg_line_length": 28.363247863247864,
"alnum_prop": 0.6030586108181407,
"repo_name": "neogulden/neogulden",
"id": "e49bacdba5d6ed92fc43df2a80f06488c47e461b",
"size":... |
#ifndef QOEMBED_PHOTO_H
#define QOEMBED_PHOTO_H
#include "qoembed_global.h"
#include "response.h"
namespace qoembed {
class PhotoPrivate;
class QOEMBEDSHARED_EXPORT Photo : public Response
{
public:
Photo();
Photo(const Photo &other);
~Photo();
Photo &operator=(const Photo &rhs);
virtual QStr... | {
"content_hash": "7eebd57a727a5ce4bb3185a9b75bc53b",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 50,
"avg_line_length": 16.289473684210527,
"alnum_prop": 0.6801292407108239,
"repo_name": "cloose/qoembed",
"id": "38c7e6c97aa8f3c7f05e2c5046e5d51fd1525b21",
"size": "1988"... |
This module includes some scikit-learn style transformers that perform basis expansions on a feature `x` for use in regression. A basis expansions for the feature `x` is
a collection of functions
f_0, f_1, f_2, ...
that are meant to be applied to the feature to construct derived features in a
regression model. T... | {
"content_hash": "d79de557014fafe4028fe1b682cb5e8e",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 235,
"avg_line_length": 37.33980582524272,
"alnum_prop": 0.6653666146645866,
"repo_name": "madrury/basis-expansions",
"id": "f6078197186862c93b67a6bca220acf866ab30d5",
"si... |
<?php
return create_function('$params', 'return include "lambda.php";');
| {
"content_hash": "ade3fddb2fe1d2698da374f340280cb0",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 66,
"avg_line_length": 24.666666666666668,
"alnum_prop": 0.6891891891891891,
"repo_name": "lokothodida/php-lambda-5.2",
"id": "cd9038721957d4f720bf9b83b10b4e56376bdf49",
"si... |
from __future__ import absolute_import
from os.path import dirname
from tml.api.mock import File
FIXTURES_PATH = '%s/fixtures' % dirname(dirname(__file__))
URLS = [('projects/current/definition', None),
('projects/current/definition', {'locale': 'en'}),
('projects/2/definition', None),
('langu... | {
"content_hash": "9ed2235d51ed6cfad229a3e710e64809",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 101,
"avg_line_length": 38.32258064516129,
"alnum_prop": 0.6254208754208754,
"repo_name": "translationexchange/tml-python",
"id": "5e2201024a9509c456695d668d6b21b6867225e6",
... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.6">
<link rel="stylesheet" type="text/css" href="search.c... | {
"content_hash": "d647bf8ed66283fa89edf17de3910ab5",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 121,
"avg_line_length": 39.42307692307692,
"alnum_prop": 0.7092682926829268,
"repo_name": "kirapoetica974/M1ALMA-semestre2-SolfHelp",
"id": "ba4065defb941d535185a9846c9487369... |
title: Dialog
desc: The QDialog component provides a UI for modals with functionalities like positioning, styling, maximizing and more.
keys: QDialog
related:
- /quasar-plugins/dialog
- /vue-directives/close-popup
- /vue-components/card
- /vue-components/popup-proxy
---
The QDialog component is a great way to ... | {
"content_hash": "abcb3b04c55e43c8cf36915785d2be33",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 285,
"avg_line_length": 36.631147540983605,
"alnum_prop": 0.7229805325576192,
"repo_name": "rstoenescu/quasar-framework",
"id": "8e338c8a35ef02f8acf498921185e0bd78acd26f",
... |
module Authlogic
# This allows you to scope your authentication. For example, let's say all users belong to an account, you want to make sure only users
# that belong to that account can actually login into that account. Simple, just do:
#
# class Account < ActiveRecord::Base
# authenticates_many :user_... | {
"content_hash": "e9cda89ccb5489b775ed4a595fc0d2e1",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 232,
"avg_line_length": 58.31481481481482,
"alnum_prop": 0.6865671641791045,
"repo_name": "bioritmo/authlogic",
"id": "4ac019b3c0c9deed2b086e2d80f4cf1e9b7d8b97",
"size": "3... |
<textarea <?php echo $view['form']->block($form, 'attributes') ?>><?php echo htmlspecialchars($value) ?></textarea>
<?php if ($enable) : ?>
<?php if ($autoload) : ?>
<script type="text/javascript">
var CKEDITOR_BASEPATH = "<?php echo $view['ivory_ckeditor']->renderBasePath($base_path); ?>";
... | {
"content_hash": "d91af648838fc3f8766ee12c8422bec0",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 125,
"avg_line_length": 41.94736842105263,
"alnum_prop": 0.5457967377666249,
"repo_name": "markusmichel/IvoryCKEditorBundle",
"id": "b9f9987a07e03d3f89871671d4050cc30f37f5b5"... |
<?xml version="1.0" encoding="UTF-8"?>
<sponge xmlns="https://sponge.openksavi.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://sponge.openksavi.org https://sponge.openksavi.org/schema/config.xsd">
<properties>
<property name="sponge.home">.</property>
<pro... | {
"content_hash": "5d0e5d2d716b181605641f53b1933c50",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 123,
"avg_line_length": 41.6875,
"alnum_prop": 0.6896551724137931,
"repo_name": "softelnet/sponge",
"id": "058b1a10d3eed02033a75b934304a1134877ec5d",
"size": "667",
"bina... |
'use strict';
// Configuring the Articles module
angular.module('graphtypes').run(['Menus',
function(Menus) {
// Set top bar menu items
Menus.addMenuItem('topbar', 'Graphtypes', 'graphtypes', 'dropdown', '/graphtypes(/create)?', false, ['admin']);
Menus.addSubMenuItem('topbar', 'graphtypes', 'List Graphtypes', ... | {
"content_hash": "01efbb53fcc7218a370ddde1b6d612b1",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 113,
"avg_line_length": 38.81818181818182,
"alnum_prop": 0.6955503512880562,
"repo_name": "amirsaber/DeepDepth",
"id": "a326a98e97e4243e8d47b235cb6d71682adc203e",
"size": "... |
export default class ImportStatement {
constructor({id, moduleName, members}){
this.moduleName = moduleName;
this.members = members;
this.id = id;
}
} | {
"content_hash": "37070579403b12788559e8975adbb703",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 41,
"avg_line_length": 23.714285714285715,
"alnum_prop": 0.6807228915662651,
"repo_name": "RikardLegge/modulin",
"id": "3c07c2edabd5a4d21b8eab0192fd8c25b32530e4",
"size": "1... |
package flex.messaging.io.amf.translator.decoder;
/**
* Decode a java.lang.String or java.lang.Character to
* a java.lang.Character instance.
* <p>
* Note that a String must be non-zero length and only the first
* character in the String will be used.
* </p>
*
*
*/
public class CharacterDecoder extends Actio... | {
"content_hash": "4c7359f970758885dedbd1517f98f877",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 86,
"avg_line_length": 23.541666666666668,
"alnum_prop": 0.5681415929203539,
"repo_name": "apache/flex-blazeds",
"id": "b58c37f6a5016f3e1691d77c44a4f08b80c3216c",
"size": "... |
package org.apache.ignite.loadtests.hashmap;
import org.apache.ignite.cache.store.*;
import org.apache.ignite.configuration.*;
import org.apache.ignite.internal.processors.cache.*;
import org.apache.ignite.internal.processors.cache.datastructures.*;
import org.apache.ignite.internal.processors.cache.dr.*;
import org... | {
"content_hash": "8a8df4e8e2aeab1d431e70a910680d49",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 81,
"avg_line_length": 37.18181818181818,
"alnum_prop": 0.6621841890790546,
"repo_name": "kidaa/incubator-ignite",
"id": "9a883b301b5989ca80ec3c6c4f34eedaa59858a5",
"size":... |
<?php
/**
* @file
* Contains \Drupal\forum\Tests\Migrate\d7\MigrateForumSettingsTest.
*/
namespace Drupal\forum\Tests\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
/**
* Tests migration of Forum's variables to configuration.
*
* @group forum
*/
class MigrateForumSettingsTest extends ... | {
"content_hash": "0b5aca22ce8c3f3049a0c2b7825c665e",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 69,
"avg_line_length": 25.01923076923077,
"alnum_prop": 0.6633358954650269,
"repo_name": "edwardchan/d8-drupalvm",
"id": "f702b9a9e7ed77b8ea40d31c90361d51c43d9125",
"size":... |
package com.onboard.domain.model.type;
import java.util.List;
import com.onboard.domain.model.Attachment;
/**
* 可添加附件的对象
*
* @author yewei
*
*/
public interface Attachable extends BaseProjectItem {
List<Attachment> getAttachments();
void setAttachments(List<Attachment> attachments);
List<Attac... | {
"content_hash": "dcc5c1ee5b98242360d5c177a23da307",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 61,
"avg_line_length": 18.130434782608695,
"alnum_prop": 0.7410071942446043,
"repo_name": "ruixie/onboard",
"id": "5f2fd507aa153ba7ad9ff30ae1667dfbc5dd139b",
"size": "1215"... |
import os
import time
from tornado.testing import ExpectLog, AsyncTestCase, gen_test
from remoteappmanager.tests.temp_mixin import TempMixin
from remoteappmanager.tests.utils import mock_coro_factory
from unittest.mock import Mock, patch
from remoteappmanager.jupyterhub.auth import GitHubWhitelistAuthenticator
cl... | {
"content_hash": "937e271dbec370c577267e5ff850d4bc",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 74,
"avg_line_length": 34.310344827586206,
"alnum_prop": 0.5974874371859297,
"repo_name": "simphony/simphony-remote",
"id": "b933661ed2019d51caf8f68ee6c63f67cd01dd32",
"si... |
class FdoSpatialContextMismatchException : public FdoException
{
protected:
/// Constructs a default instance of an FdoSpatialContextMismatchException.
FDO_API FdoSpatialContextMismatchException();
/// Constructs an instance of an FdoSpatialContextMismatchException using the specified
/// arguments.
... | {
"content_hash": "54e6b464b68770fe5d11361ed3766910",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 116,
"avg_line_length": 32.65,
"alnum_prop": 0.7299642674834099,
"repo_name": "SuperMap/Fdo_SuperMap",
"id": "ade2c0a7d127369a0c2e213dd910d8265b1053f7",
"size": "3267",
"... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<me.panpf.sketch.sample.widget.SampleImageView
android:id="@+id/image_gaussian... | {
"content_hash": "b1403b9ba7769dcf59118349f4a1062a",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 72,
"avg_line_length": 35.53488372093023,
"alnum_prop": 0.637434554973822,
"repo_name": "xiaopansky/Sketch",
"id": "2a93661c53ab7e396061530f5fa56bc3f209456d",
"size": "1536... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.