text stringlengths 2 1.04M | meta dict |
|---|---|
NSString *RELPathForDocument(NSString *name, NSString *type);
@class ReadingList;
@interface ReadingListStore : NSObject
+ (instancetype)storeWithName:(NSString *)storeName;
- (instancetype)initWithStoreName:(NSString *)storeName;
- (ReadingList *)fetchedReadingList;
- (void)saveReadingList:(ReadingList *)readingLi... | {
"content_hash": "c012963a98c0f9112a359d140831b8b4",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 61,
"avg_line_length": 25.384615384615383,
"alnum_prop": 0.7878787878787878,
"repo_name": "AboutObjectsTraining/ios-objc-comp-reston-2016-08",
"id": "ffd15a96aaeeee9a349aefa4... |
from decimal import Decimal
class Order(object):
last_id = -1
@classmethod
def new_id(cls):
cls.last_id = cls.last_id + 1
return cls.last_id
def __init__(self,
ins,
buysell,
quantity,
stop_loss,
take_profit,
issue_date,
expiry_date = None,
trader_id = None,
t... | {
"content_hash": "c6ed1b2884413d372722a8cb42b751e0",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 53,
"avg_line_length": 20.58,
"alnum_prop": 0.5636540330417882,
"repo_name": "davidbarkhuizen/simagora",
"id": "0057b543ed76a422e325ffa3999d6d0e8d61f411",
"size": "1029",
... |
package io.appium.java_client.appium.element.generation.ios;
import static io.appium.java_client.MobileBy.AccessibilityId;
import static org.junit.Assert.assertTrue;
import static org.openqa.selenium.By.id;
import static org.openqa.selenium.By.name;
import static org.openqa.selenium.By.partialLinkText;
import io.appi... | {
"content_hash": "e77508368761893d333d42294b49d67b",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 103,
"avg_line_length": 45.89230769230769,
"alnum_prop": 0.6803553469661414,
"repo_name": "saikrishna321/java-client",
"id": "2e5dd944b13d470ae2bb031497316a35b41f3953",
"s... |
//////////////////////////////////////////////////////////////////////////////
//
// Copyright 2020, Cornutum Project
// www.cornutum.org
//
//////////////////////////////////////////////////////////////////////////////
package org.cornutum.tcases.openapi.resolver;
impo... | {
"content_hash": "9fde1dc8a596b32eab6893ca127d580d",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 105,
"avg_line_length": 24.64814814814815,
"alnum_prop": 0.5567242674680691,
"repo_name": "Cornutum/tcases",
"id": "48107de06d7c72820b7bd5b2ab7d8121e236434e",
"size": "1331... |
require 'faker'
FactoryGirl.define do
factory :package do
name Faker::App.name
section Faker::Lorem.word
homepage Faker::Internet.url
summary Faker::Lorem.paragraph
end
end
| {
"content_hash": "4f26f30ad871dbadee94aace8ee7d6f8",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 34,
"avg_line_length": 19.4,
"alnum_prop": 0.7216494845360825,
"repo_name": "upd89/controlcenter",
"id": "7694f4e0000fe0e74066408bdd2cb48cddd5c4bf",
"size": "194",
"binar... |
<h2>Edit My Ride</h2>
<h3>Here is where you can make changes.</h3>
<form>
<div class="form-group">
<label>Date</label>
<!-- TODO: Hook up this form to our JS for submitting -->
<input type="text" class="form-control" placeholder="" ng-model="editRide.start_datetime | date"/>
</div>
<div class="for... | {
"content_hash": "7d4d4a8f9749da66c7e22f99a23f874b",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 125,
"avg_line_length": 33.945454545454545,
"alnum_prop": 0.6657739689341189,
"repo_name": "wierje/c17-capstone",
"id": "b27f06cee342e5b319c08cb481bd95c4396e333d",
"size": ... |
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <assert.h>
static const char *image;
static pthread_barrier_t barrier;
static char *argv1 = "go away";
static void *
thread_execler (void *arg)
{
int i;
pthread_barrier_wait (&barrier);
/* Exec ourselves again. */
if (execl (image, ima... | {
"content_hash": "fb1e20c6fd1f56228ddde33ab676e915",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 70,
"avg_line_length": 18.16883116883117,
"alnum_prop": 0.6032880629020729,
"repo_name": "execunix/vinos",
"id": "d38a1781d7306d265785fb8dec5aedc0b2ebd4a6",
"size": "2151",... |
<div class="navbar-spacer"></div>
<nav class="navbar">
<div class="container">
<ul class="navbar-list">
<li class="navbar-item">
<a class="navbar-link smooth" href="#" data-popover="#Services"
>Services</a
>
<div id="Services" class="popover">
<ul class="popover-l... | {
"content_hash": "a535ded78b1af27aca00f2b7d52aac9f",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 78,
"avg_line_length": 32.16279069767442,
"alnum_prop": 0.47288503253796094,
"repo_name": "nerdyfactory/nerdyfactory.github.io",
"id": "ab425363d46b309220545bfb0917cf87907c0b... |
# SocialAlloy
This repository contains a clone of the Episerver Alloy sample application, which has been extended to demonstrate the features of Episerver Social. The goals for this project are twofold:
* To provide a simple application demonstrating Episerver Social features and capabilities
* To provide developers l... | {
"content_hash": "36f205a415c884c96075933cd852f3f2",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 513,
"avg_line_length": 83.89887640449439,
"alnum_prop": 0.7976429623677515,
"repo_name": "episerver/SocialAlloy",
"id": "67a0b93b8421b0eb5980b53eb23ae0aca2b91e4d",
"size":... |
import os
import re
import sys
import copy
import zlib
import time
import shlex
import shutil
import fnmatch
import tarfile
import argparse
import platform
import datetime
import tempfile
import posixpath
import subprocess
from build.common import *
from build.config import *
from build.build import *
pythonExecutabl... | {
"content_hash": "adc4047bd7970593b8d10f515110d10f",
"timestamp": "",
"source": "github",
"line_count": 514,
"max_line_length": 148,
"avg_line_length": 33.45136186770428,
"alnum_prop": 0.7046062579969757,
"repo_name": "googlestadia/VK-GL-CTS",
"id": "c480e0edf01efa47dfec3364a2d8e15bff073f63",
"size... |
package AsposeCellsExamples.Data;
import com.aspose.cells.Workbook;
import AsposeCellsExamples.Utils;
public class AddingDataToCells {
public static void main(String[] args) throws Exception {
// The path to the documents directory.
String dataDir = Utils.getSharedDataDir(AddingDataToCells.class) + "... | {
"content_hash": "c4aa94471f5ddc5e576e0a62d7dd0b9f",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 82,
"avg_line_length": 28.30188679245283,
"alnum_prop": 0.69,
"repo_name": "asposecells/Aspose_Cells_Java",
"id": "4460f35586846a4a70ebd03e4a44196ea7f2dbeb",
"size": "1500"... |
"""empty message
Revision ID: 34b0ac3fe0c7
Revises: 2bdf1e80a9be
Create Date: 2014-03-20 04:07:04.967000
"""
# revision identifiers, used by Alembic.
revision = '34b0ac3fe0c7'
down_revision = '2bdf1e80a9be'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | {
"content_hash": "beba60f5589b5214381f795871eaced7",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 63,
"avg_line_length": 19.46153846153846,
"alnum_prop": 0.6877470355731226,
"repo_name": "micknh/EdFirst",
"id": "8afca731f0eb37a67dfc404f3282956d9f1803f8",
"size": "506",
... |
/**
*
*/
package gg.riotapichallenge.riotapi.models;
/**
* @author Enivri
*
*/
public class ParticipantIdentity {
/**
* For use with Match API
*
*/
private int participantID; // participant id
private Player player; // player info
public ParticipantIdentity() {
this.partic... | {
"content_hash": "1c118c57e9b2afb130256f2b5a1ea802",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 62,
"avg_line_length": 17.02127659574468,
"alnum_prop": 0.63375,
"repo_name": "enivri/riotapichallenge",
"id": "26aef51aee038a261a77d79f38e5a431574fb158",
"size": "800",
... |
import codegenNativeComponent from '../Utilities/codegenNativeComponent';
import type {HostComponent} from '../Renderer/shims/ReactNativeTypes';
import type {
WithDefault,
DirectEventHandler,
Int32,
} from '../Types/CodegenTypes';
import type {ViewProps} from '../Components/View/ViewPropTypes';
type Orientati... | {
"content_hash": "8a1225d2a660f57dfbf24cbbcc4f87d0",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 114,
"avg_line_length": 27.709923664122137,
"alnum_prop": 0.6909090909090909,
"repo_name": "janicduplessis/react-native",
"id": "69fef94afd8c0700acae6c37b8712a70caf5099a",
... |
'use strict';
module.exports = require('./is-implemented')()
? String.prototype.normalize
: require('./shim');
| {
"content_hash": "5c9010ed5937b582e196bb90bd281c99",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 46,
"avg_line_length": 23.8,
"alnum_prop": 0.6470588235294118,
"repo_name": "rowanmiller/Demo-MVADec14",
"id": "e77d31dacd8b8d94bb69009d79fc5237b53ba4ba",
"size": "119",
"... |
var args = arguments[0] || {};
var lib=require("mhjLib");
$.navbar.getView('titlelabel').text="我的收藏";
$.navbar.getView('backimage').addEventListener('click',function(e){
Alloy.Globals.Navigator.pop();
});
var HTTP=require("mhjHttpMethod");
var toast=Alloy.createWidget("net.beyondlink.toast");
$.mycollectback.add(toa... | {
"content_hash": "f4a99bb1cf49612e5ec3416f7350276c",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 81,
"avg_line_length": 23.11111111111111,
"alnum_prop": 0.5325443786982249,
"repo_name": "titanium-forks/siroccoicode.aiyou-mhj-master",
"id": "0f58b907f52a13524f98434356e61... |
#include "RtmpDemuxer.h"
#include "Extension/Factory.h"
namespace mediakit {
bool RtmpDemuxer::loadMetaData(const AMFValue &val){
bool ret = false;
try {
int audiosamplerate = 0;
int audiochannels = 0;
int audiosamplesize = 0;
const AMFValue *audiocodecid = nullptr;
... | {
"content_hash": "ecef9de2b3014113f8975e08e96281af",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 127,
"avg_line_length": 31.03174603174603,
"alnum_prop": 0.5179028132992327,
"repo_name": "xiongziliang/ZLMediaKit",
"id": "53ce4c872ae90700cd3c22450b9a44b06a2b8cc1",
"siz... |
package dms_enterprise
//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 to in writing, software
... | {
"content_hash": "b36c7c9f24d6f3e2f62b151660e81cba",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 84,
"avg_line_length": 44.55555555555556,
"alnum_prop": 0.7206982543640897,
"repo_name": "aliyun/alibaba-cloud-sdk-go",
"id": "36fdeb9bd5a92e15364e3fe968d773a7ec76aba8",
"s... |
// @flow
import Button, { ButtonGroup } from '@atlaskit/button';
import Modal, { ModalFooter } from '@atlaskit/modal-dialog';
import _ from 'lodash';
import React, { Component } from 'react';
import { translate } from '../../../i18n/functions';
import type { DialogProps } from '../../constants';
/**
* The ID to be... | {
"content_hash": "16f4124faee392ed30c1ce6d0ea0c4b2",
"timestamp": "",
"source": "github",
"line_count": 321,
"max_line_length": 80,
"avg_line_length": 26.45482866043614,
"alnum_prop": 0.5231983042863871,
"repo_name": "bgrozev/jitsi-meet",
"id": "5507520842423b86cebf14e303a66516e011e15b",
"size": "8... |
// version 1.6.2
// http://welcome.totheinter.net/columnizer-jquery-plugin/
// created by: Adam Wulf @adamwulf, adam.wulf@gmail.com
(function($){
$.fn.columnize = function(options) {
this.cols =[];
this.offset= 0;
this.before=[];
this.lastOther=0;
this.prevMax =0;
this.debug=0;
this.setColumnStart =null... | {
"content_hash": "01fb75ad011c19449d1293851ad6a5f0",
"timestamp": "",
"source": "github",
"line_count": 889,
"max_line_length": 154,
"avg_line_length": 33.9955005624297,
"alnum_prop": 0.6151809939778969,
"repo_name": "hutzelknecht/ukebook",
"id": "b63a410fd70900a5fe20abc8e2617ddbb02e98c4",
"size": ... |
// Initialize HTML editor
function rcmail_editor_init(config)
{
var ret, conf = {
mode: 'textareas',
editor_selector: 'mce_editor',
apply_source_formatting: true,
theme: 'advanced',
language: config.lang,
content_css: config.skin_path + '/editor_content.css',
theme_advanced... | {
"content_hash": "134e0fc311620c3f091358c346d4bfd8",
"timestamp": "",
"source": "github",
"line_count": 159,
"max_line_length": 218,
"avg_line_length": 33.100628930817614,
"alnum_prop": 0.6606498194945848,
"repo_name": "yorickdewid/qpanel",
"id": "df3d41240aa05d28b512a4ae75bafd9449e7d056",
"size": ... |
package org.shikato.infodumper.dump;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.telephony.TelephonyManager;
import com.facebook.stetho.dumpapp.DumpException;
import java.util.LinkedHashMap;
import java.util.List;
public class TelDumper implement... | {
"content_hash": "f906470f271987d5c2b120ac11bf5ccd",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 124,
"avg_line_length": 34.45283018867924,
"alnum_prop": 0.7141292442497261,
"repo_name": "shikato/info-dumper",
"id": "0d9a05f6b8cb0c71b9a6b22a18ebc6eef079d95b",
"size": "... |
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function _typeof(obj) {
return typeof obj;
};
} else {
_typeof = function _typeof(obj) {
return obj && typeof Symbol === "function" && obj.constructor ==... | {
"content_hash": "66652ad5012b6c0a47c7d8043c3aeb80",
"timestamp": "",
"source": "github",
"line_count": 413,
"max_line_length": 595,
"avg_line_length": 39.27845036319613,
"alnum_prop": 0.6123782517568733,
"repo_name": "cdnjs/cdnjs",
"id": "731a653620f89e61279080b97d110027d06bbb17",
"size": "16222",... |
from contextlib import contextmanager
from collections import defaultdict
from itertools import count
from functools import wraps
from .decorators import singleton
def disambiguate(label, taken):
"""If necessary, add a suffix to label to avoid name conflicts
:param label: desired label
:param taken: set... | {
"content_hash": "d33f48184f0769272f8f2f34ec6781bd",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 79,
"avg_line_length": 27.451327433628318,
"alnum_prop": 0.5947775628626693,
"repo_name": "bsipocz/glue",
"id": "148166ed138465b5d67fd0fd58c87727679ddfff",
"size": "3102",... |
using System.Web;
using System.Web.Optimization;
namespace NumericSequenceCalculator
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles... | {
"content_hash": "463e9c9bf5b190adb8f3417d8936d3bb",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 112,
"avg_line_length": 40.45161290322581,
"alnum_prop": 0.5781499202551834,
"repo_name": "hackerg/NumericSequenceCalculator",
"id": "92c0460088e1d79799000c8700cca5d1ecb4ccd2... |
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#float {
float: right;
width: 100px; height: 100px;
background-color: blue;
}
#static {
margin-bottom: 40px;
height: 20px;
background-color: green;
}
#clear {
margin-top: 40px;
clear: both;
height: 20px;
background-color: green;
}
</style>
</head>
<body>
<... | {
"content_hash": "910455cd1f27f3db079145ea3e7dcb79",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 29,
"avg_line_length": 14.464285714285714,
"alnum_prop": 0.6419753086419753,
"repo_name": "sergecodd/FireFox-OS",
"id": "08037c1ea4757d9205593a355fc1c5d5e04d16a5",
"size": ... |
env response cache positive with env message
--SKIPIF--
<?php include "skipif.inc"; ?>
--GET--
dummy=1
--FILE--
<?php
$e = new http\Env\Request;
$e->setHeader("If-Modified-Since", "Fri, 13 Feb 2009 23:31:32 GMT");
$r = new http\Env\Response;
$r->setEnvRequest($e);
$r->setBody(new http\Message\Body(fopen(__FILE__,"rb"))... | {
"content_hash": "8a4f96649224133f4fc9f53b1d2e2309",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 82,
"avg_line_length": 28.47826086956522,
"alnum_prop": 0.6748091603053435,
"repo_name": "m6w6/ext-http",
"id": "45e2f6e7971c6cc5b96b1d7354e9b43c7462f906",
"size": "664",
... |
@interface PodsDummy_Pods_YTPageController_Tests : NSObject
@end
@implementation PodsDummy_Pods_YTPageController_Tests
@end
| {
"content_hash": "0ae076c8f6b632d290bcd0f8786828be",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 59,
"avg_line_length": 31,
"alnum_prop": 0.8467741935483871,
"repo_name": "yeatse/YTPageController",
"id": "d1ed862e079b6ce376c751c13c40091b1e25e228",
"size": "158",
"bina... |
package bookshop2.supplier.client.reserveBooks;
import org.aries.bean.Proxy;
import org.aries.tx.service.rmi.RMIProxy;
public class ReserveBooksProxyForRMI extends RMIProxy implements Proxy<ReserveBooks> {
private ReserveBooksInterceptor reserveBooksInterceptor;
public ReserveBooksProxyForRMI(String serviceI... | {
"content_hash": "beba828105eb2e5c917d8e8b5b31ec83",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 86,
"avg_line_length": 22.75,
"alnum_prop": 0.7880690737833596,
"repo_name": "tfisher1226/ARIES",
"id": "2ee9a4086573f6386998fd2dbbb758b3eecbd2d9",
"size": "637",
"binary... |
package ae3.service.experiment;
import com.google.common.base.Supplier;
import com.google.common.collect.Multimap;
import com.google.common.collect.Multimaps;
import java.util.*;
/**
* Atlas Experiment API query container class. Can be populated StringBuilder-style and converted to SOLR query string
*
* @autho... | {
"content_hash": "354faf30adab9f4016964597ac3233fb",
"timestamp": "",
"source": "github",
"line_count": 182,
"max_line_length": 139,
"avg_line_length": 29.692307692307693,
"alnum_prop": 0.6134344929681718,
"repo_name": "gxa/gxa",
"id": "f59ac7deaa78f54091cc09246b3f3553c03190e8",
"size": "6221",
"... |
import time
import pyrabbit
from pika.adapters.tornado_connection import TornadoConnection
from pika.channel import Channel
from tornado.testing import AsyncTestCase
from testfixtures import LogCapture
from pikachewie.agent import ConsumerAgent
from pikachewie.broker import Broker
from pikachewie.consumer import Cons... | {
"content_hash": "107080e448331f8317f5faabb9217d3f",
"timestamp": "",
"source": "github",
"line_count": 190,
"max_line_length": 77,
"avg_line_length": 35.33684210526316,
"alnum_prop": 0.6072386058981233,
"repo_name": "bdeeney/PikaChewie",
"id": "0962942f3ae4e623faa59c2081f8f24cbedc75b2",
"size": "6... |
typedef amici::realtype realtype;
#include <cmath>
using namespace amici;
namespace amici {
namespace model_model_neuron_o2{
void w_model_neuron_o2(realtype *w, const realtype t, const realtype *x, const realtype *p, const realtype *k, const realtype *h, const realtype *tcl) {
w[0] = x[0]*(2.0/2.5E1);
w[1] = w... | {
"content_hash": "29c42d89b0bc82149a66254a724b06c0",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 152,
"avg_line_length": 21.77777777777778,
"alnum_prop": 0.6887755102040817,
"repo_name": "FFroehlich/AMICI",
"id": "4f49da479be81079381f7f53909cc088a25ac921",
"size": "480... |
/* $Id: sph_sha1.h 216 2010-06-08 09:46:57Z tp $ */
/**
* SHA-1 interface.
*
* SHA-1 is described in FIPS 180-1 (now superseded by FIPS 180-2, but the
* description of SHA-1 is still included and has not changed). FIPS
* standards can be found at: http://csrc.nist.gov/publications/fips/
*
* @warning A theoreti... | {
"content_hash": "7fb2ac6c6e0448b600af1acd71f41271",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 78,
"avg_line_length": 33.67857142857143,
"alnum_prop": 0.6943796394485684,
"repo_name": "galaxycash/galaxycash",
"id": "34c8787a4a5a896f8e2bf23198f83fab6c31f471",
"size":... |
namespace urde {
class CCharacterFactory;
class CAnimRes;
class CCharacterFactoryBuilder {
public:
class CDummyFactory : public IFactory {
public:
CFactoryFnReturn Build(const SObjectTag&, const CVParamTransfer&, CObjectReference* selfRef) override;
void BuildAsync(const SObjectTag&, const CVParamTransfer&... | {
"content_hash": "710c21c67a6cc666d94831f9b46b1268",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 120,
"avg_line_length": 43.08108108108108,
"alnum_prop": 0.7314930991217063,
"repo_name": "RetroView/PathShagged",
"id": "38eebb02621d1f2c2d002796698d10ccdedc8f5d",
"size":... |
FROM balenalib/beaglebone-black-ubuntu:bionic-build
# 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
# key 63C7CC90: public key "Simon M... | {
"content_hash": "ccadceb52592157f7daebd89dcc26ae7",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 711,
"avg_line_length": 50.68421052631579,
"alnum_prop": 0.704257528556594,
"repo_name": "resin-io-library/base-images",
"id": "f8a856a18b6b84cd4b8b96abea8e3da01026c2cc",
"... |
import rospy
import tf
from gazebo_msgs.msg import ModelStates
from visualization_msgs.msg import Marker
from geometry_msgs.msg import Quaternion, Pose
from gazebo_msgs.msg import LinkStates
import tf_conversions.posemath as pm
from tf.transformations import *
from nav_msgs.msg import Odometry
from conversions import ... | {
"content_hash": "266348ddac32f6643d829e2aa5a7b29c",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 157,
"avg_line_length": 44.17791411042945,
"alnum_prop": 0.6194972920427718,
"repo_name": "francisc0garcia/autonomous_bicycle",
"id": "08ac7adbd9ad948da5e7c580aa56ff881d74b8... |
using System;
using System.Collections.Specialized;
using System.Web;
using System.Web.Helpers;
using System.Web.Routing;
namespace RestfulRouting
{
public class RestfulHttpMethodConstraint : HttpMethodConstraint
{
public RestfulHttpMethodConstraint(params string[] allowedMethods)
: ba... | {
"content_hash": "10cee8072d183aa255074ef7571a6f2a",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 161,
"avg_line_length": 35.94230769230769,
"alnum_prop": 0.49919743178170145,
"repo_name": "restful-routing/restful-routing",
"id": "a415dbfeafccc9a4590ff2be64fac21fd93dd661"... |
namespace mx
{
namespace core
{
MX_FORWARD_DECLARE_ELEMENT( Volume )
inline VolumePtr makeVolume() { return std::make_shared<Volume>(); }
inline VolumePtr makeVolume( const Percent& value ) { return std::make_shared<Volume>( value ); }
inline VolumePtr makeVolume( Percent&& value ) { retur... | {
"content_hash": "eca5c6d6acabc2ee9457cf9ac131e32e",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 119,
"avg_line_length": 34.878787878787875,
"alnum_prop": 0.6020851433536055,
"repo_name": "Webern/MusicXML-Class-Library",
"id": "3ed29012ee87e0573e82fd4c3083246f93b7a12a",
... |
package com.example.stream.core.wechat;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.example.stream.core.network.RestClient;
import com.example.stream.core.network.callback.IError;
import com.example.stream.core.network.callback.IFailure;
import com.example.stream.core.network.c... | {
"content_hash": "c06e308edfca9b3a524b4f4ceff02326",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 105,
"avg_line_length": 36.48039215686274,
"alnum_prop": 0.5549583445310401,
"repo_name": "streamj/JX",
"id": "c2eaa444970076360d03f08fb00461c040784b42",
"size": "3783",
... |
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... | {
"content_hash": "b1e021888fa15b6d68df113ce21075de",
"timestamp": "",
"source": "github",
"line_count": 1302,
"max_line_length": 80,
"avg_line_length": 34.824116743471585,
"alnum_prop": 0.6847886019276151,
"repo_name": "dmincu/IOC",
"id": "a50e97fb91ff9e9824c6156c25b5b12ea263207e",
"size": "45341",... |
<?php if(!defined('SYSTEM')) die('no access');
class Page_admin_edit_user{
public function __construct() {
$this->auth = get_instance(AUTH_CLASS);
}
function index(){
if(isset($_GET['user_id']) && !$data['user'] = $this->auth->get_user($_GET['user_id']))
{
set_error_msg('This user does... | {
"content_hash": "4919344f7bba0513b7304e17bebe4ff9",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 109,
"avg_line_length": 26.78,
"alnum_prop": 0.5698282300224048,
"repo_name": "jasekz/simple-app-for-php",
"id": "492fcf81decf6914c69b37f7d0e591d26e894ded",
"size": "1339",... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using Moq.Behaviors;
namespace Moq
{
internal static class HandleWellKnownMethods
{
private static Dictionary<string, Func<Invocation, Mock, bool>> specialMethods = new Dictionary<string, Fun... | {
"content_hash": "6bf9d06cf58b89afb244364eb92beeda",
"timestamp": "",
"source": "github",
"line_count": 296,
"max_line_length": 143,
"avg_line_length": 28.97635135135135,
"alnum_prop": 0.7007112043838172,
"repo_name": "Moq/moq4",
"id": "35f618ed058a46b78f5903400f899c780ee7671a",
"size": "8758",
"... |
.class Landroid/media/SoundPool$SoundPoolImpl$EventHandler;
.super Landroid/os/Handler;
.source "SoundPool.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/media/SoundPool$SoundPoolImpl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = ... | {
"content_hash": "c7c6d43afeee37852ad049c0a61188b6",
"timestamp": "",
"source": "github",
"line_count": 144,
"max_line_length": 164,
"avg_line_length": 29.54861111111111,
"alnum_prop": 0.7309048178613397,
"repo_name": "hexiaoshuai/Flyme_device_ZTE_A1",
"id": "1ec91bd55eb84c953be5c51c3397805eb19b5d38"... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "3aca67c2badd50a9a74526bbcec55f7a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "af04b1c0c1f0970df83787652a9eef9e192c2794",
"size": "192... |
ionic-webpack
=============
Ionic Webpack Starter
## Quick Start
Clone the repository
```bash
$ git clone https://github.com/cmackay/ionic-webpack.git
```
Install the dependencies
```bash
$ npm install
```
Watch Mode (this will run the webpack dev server)
```bash
$ gulp watch
```
Adding Cordova Plugins
```bas... | {
"content_hash": "491b41b63fbd8e11065027ba798e5b39",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 88,
"avg_line_length": 12.1875,
"alnum_prop": 0.6957264957264957,
"repo_name": "cmackay/ionic-webpack",
"id": "56fd042f7d962a9d76aa8962b2e362232ded6be7",
"size": "585",
"... |
package com.amazonaws.services.identitymanagement.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
*/
public class ListPoliciesRequest extends AmazonWebServiceRequest implements
Serializable, Cloneable {
/**
* <p>
* The scope to use for filtering the ... | {
"content_hash": "725820a6344c09ae32d89eb8102c27b0",
"timestamp": "",
"source": "github",
"line_count": 626,
"max_line_length": 83,
"avg_line_length": 39.56869009584665,
"alnum_prop": 0.5931772305207913,
"repo_name": "trasa/aws-sdk-java",
"id": "a1131d8ff3dc4d746984b9c59d786a2920f0a96b",
"size": "2... |
def merge_sort(m):
#The base case is if m is empty or a single element. Then the list is sorted.
if len(m)<=1:
return m
#split the original list up into left and right halves somehow. Shouldn't really matter how
left=[]
right=[]
for i,x in enumerate(m):
if i%2==1:
... | {
"content_hash": "9f9b8c892d99a7a5851d6b953d7e0bf8",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 178,
"avg_line_length": 30.068181818181817,
"alnum_prop": 0.6281179138321995,
"repo_name": "alexcasgarcia/CCI",
"id": "f13995405c79b224d5b0cb7eaa07a8a9f7ec3fa0",
"size": "1... |
AWS Lambda Microframework
## About AWS Wave
AWS Wave is a microframework that makes it easier to develop rest api's using AWS Lambda Functions and API Gateway. It attempts to make the develpment faster by easing common tasks, such as:
- Exception handling
- Request body deserialization
- Response body serializatio... | {
"content_hash": "2920ed0403454bd23cb7fba5b783edd3",
"timestamp": "",
"source": "github",
"line_count": 258,
"max_line_length": 258,
"avg_line_length": 30.368217054263567,
"alnum_prop": 0.7144862795149968,
"repo_name": "it-gorillaz/aws-wave",
"id": "3a58c5d3b91c1f35554f0367f5df7ad708a5b348",
"size"... |
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... | {
"content_hash": "3279240b473e8baa5e1ba747072532bd",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 184,
"avg_line_length": 47.95402298850575,
"alnum_prop": 0.5407478427612655,
"repo_name": "JalenMoorer/Triumph-of-the-Nerds",
"id": "9c14d07917dd110ced27b37f3b8d70b4f041ccfa"... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace NicoNico.Net.Entities.Search
{
public class Suggestion
{
[JsonProperty("candidates")]
public string[] Candidates { get; set; }
}
}
| {
"content_hash": "7c226ac47b762478a38537d3b584eff0",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 48,
"avg_line_length": 20.666666666666668,
"alnum_prop": 0.7064516129032258,
"repo_name": "drasticactions/niconico.net",
"id": "378dc42e973ec2d90b474cbf2d24dc84e76adb5d",
"... |
"""BAA URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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 v... | {
"content_hash": "b48625b0ccdae8ae3ca01fcc312ab3b3",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 77,
"avg_line_length": 30.94736842105263,
"alnum_prop": 0.6785714285714286,
"repo_name": "jumbocodespring2017/bostonathleticsassociation",
"id": "fbb00f91e4fa24bcdc6a679a7c2f... |
permalink: /enWhile
redirect: /
layout: redirect
sitemap: false
--- | {
"content_hash": "c6a1ab051ead15b6891070ee1ab625be",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 19,
"avg_line_length": 13.4,
"alnum_prop": 0.746268656716418,
"repo_name": "sunnankar/wucorg",
"id": "197a97b81e49754db732fd46b3f8e2f10b4b4878",
"size": "71",
"binary": fa... |
/**
* @module node-zk-treecache
*/
/** */
import { validatePath } from "./PathUtils"
import { Client, ACL, Id, CreateMode, Exception } from "node-zookeeper-client"
const PATH_SEPARATOR = "/"
const ANYONE_ID_UNSAFE = new Id("world", "anyone")
const OPEN_ACL_UNSAFE = [new ACL(31, ANYONE_ID_UNSAFE)]
const EMPTY_CALLB... | {
"content_hash": "8a9fca5a5e454e717f09eb0161f84eb0",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 112,
"avg_line_length": 26.418181818181818,
"alnum_prop": 0.6782518926359257,
"repo_name": "fmonniot/node-zookeeper-treecache",
"id": "8e521852fd71206fecd2d6288a883e41ce747a... |
export function isCommented(cm, nLine, match) {
let token = cm.getTokenAt({ line: nLine, ch: match.index });
if (token && token.type) {
return token.type === 'comment';
}
return false;
}
export function isLineAfterMain(cm, nLine) {
let totalLines = cm.getDoc().size;
let voidRE = new Reg... | {
"content_hash": "f313190f12675e552983b414b10c52c5",
"timestamp": "",
"source": "github",
"line_count": 127,
"max_line_length": 98,
"avg_line_length": 29.094488188976378,
"alnum_prop": 0.516914749661705,
"repo_name": "MagnusThor/demolished",
"id": "a74f0eec2a20726361f87218923c8fca79019e28",
"size":... |
require_relative '../../spec_helper'
require_relative 'shared/include'
require 'set'
describe "Set#===" do
it_behaves_like :set_include, :===
it "is an alias for include?" do
set = Set.new
set.method(:===).should == set.method(:include?)
end
end
| {
"content_hash": "b22f37afdf49bcd022c90c0801bb3a5d",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 52,
"avg_line_length": 21.833333333333332,
"alnum_prop": 0.6412213740458015,
"repo_name": "nobu/rubyspec",
"id": "70d392a27dc5f6bc5df60bd2765fbe20e7caaae6",
"size": "262",
... |
/**
* The `Matter.Pairs` module contains methods for creating and manipulating collision pair sets.
*
* @class Pairs
*/
var Pairs = {};
module.exports = Pairs;
var Pair = require('./Pair');
var Common = require('../core/Common');
(function() {
/**
* Creates a new pairs structure.
* @method create
... | {
"content_hash": "690fa120477ec9651a684991b55d8fbd",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 95,
"avg_line_length": 29.023076923076925,
"alnum_prop": 0.5163000265041081,
"repo_name": "BeanSeed/phaser",
"id": "2c62cd366730e3c36f3fab0b9e12a6dfaa02723c",
"size": "377... |
using System;
namespace IHomer.GenericRepository.Attributes
{
[AttributeUsageAttribute(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
public class ParentAttribute : Attribute
{
}
}
| {
"content_hash": "5c9493ba90bd49a2e34011db6b7312af",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 97,
"avg_line_length": 24.555555555555557,
"alnum_prop": 0.751131221719457,
"repo_name": "WimAtIHomer/GenericRepository",
"id": "e440f931cbd46d9a5c70b6d4e8cd93073055c14e",
"... |
import React from "react"
import styled from 'styled-components';
import Header from "../../components/Header"
import FullscreenSlide from "../../components/FullscreenSlide/index"
import TeamContent from "./components/TeamContent"
import {PALETTE} from "../../services/styleTools"
const TeamStyl = styled.div`
backg... | {
"content_hash": "8f3beec368bd4d79fcc3539844f958aa",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 68,
"avg_line_length": 17.5,
"alnum_prop": 0.6775510204081633,
"repo_name": "michalsindelar/generace",
"id": "cf903ff9d6f52ac62153e4b9e3ed154304c9206b",
"size": "499",
"b... |
package example
import (
"fmt"
"time"
"github.com/dshil/gometer"
)
func ExampleWriteToFile() {
metrics := gometer.New()
metrics.SetFormatter(gometer.NewFormatter("\n"))
gometer.StartFileWriter(gometer.FileWriterParams{
FilePath: "test_file",
UpdateInterval: time.Second,
ErrorHandler: func(err erro... | {
"content_hash": "5a354325342fcec6e1b20ab4cd878375",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 50,
"avg_line_length": 17.285714285714285,
"alnum_prop": 0.6942148760330579,
"repo_name": "dshil/gometer",
"id": "28e0672a78e077df0813a80c6fb7e9e8101c69d2",
"size": "363",
... |
namespace persistence
{
namespace op
{
template <> StreamableType getStreamableType<hotel::Hotel>() { return StreamableType::Hotel; }
template <> StreamableType getStreamableType<hotel::Reservation>() { return StreamableType::Reservation; }
template <> StreamableType getStreamableType<hotel::Person>() {... | {
"content_hash": "9bf46db407a27fc6365c7ab155837e80",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 110,
"avg_line_length": 35.72222222222222,
"alnum_prop": 0.6905132192846034,
"repo_name": "decden/hotel",
"id": "9607278d66ac3f6cf27a606b7a5d5a3457525d18",
"size": "683",
... |
package ru.besttuts.stockwidget.sync;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import retrofit2.Call;
import r... | {
"content_hash": "67ee3895d6173c3feba2702056a78a02",
"timestamp": "",
"source": "github",
"line_count": 218,
"max_line_length": 307,
"avg_line_length": 41.04587155963303,
"alnum_prop": 0.6357845328565043,
"repo_name": "romanchekashov/currency-and-stock-widget",
"id": "f63321659e02ada3eb3c043aed48dd6b... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>quickchick: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | {
"content_hash": "329ff903fccd78161e08d8571dc03aeb",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 157,
"avg_line_length": 39.73888888888889,
"alnum_prop": 0.5434083601286174,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "63c6a81652c286d823b8512fab5a0188dfb9ccd8",
... |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
<chang... | {
"content_hash": "ae4d69324e8161e2240a1f08072ff5ab",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 254,
"avg_line_length": 54.53846153846154,
"alnum_prop": 0.6784203102961918,
"repo_name": "ghiringh/Wegas",
"id": "0250cbd67ba93ef360a8696c86e42d9f4b3b13d6",
"size": "709",... |
namespace engine
{
class ISimulationManager: virtual public IManager
{
public:
static constexpr IdType TypeId = "ISimulationManager";
public:
virtual physx::PxPhysics& physics() = 0;
virtual physx::PxScene& scene() = 0;
virtual void update() = 0;
};
using ISimulationManagerRef = std::shared_ptr<ISimulationMana... | {
"content_hash": "0375ab2e7a0aa93b32e9c00b1c6c8943",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 68,
"avg_line_length": 22,
"alnum_prop": 0.7583732057416268,
"repo_name": "DDJV-INF740/GameEngine-src",
"id": "7d8d9b187cbb00bfb43e5fd5013f56beeb493bab",
"size": "546",
"... |
<!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:11 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.s... | {
"content_hash": "781466a203069446dce61d6a4aedbbe6",
"timestamp": "",
"source": "github",
"line_count": 282,
"max_line_length": 624,
"avg_line_length": 72.5,
"alnum_prop": 0.6861824406945464,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "6eda0a0e3f907fbd85b80147f20765e1a132901b",
"siz... |
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'givemecode.core.views.home', name='home'),
url(r'^admin/', include(admin.site.urls)),
)
| {
"content_hash": "a07b68a3848a3f5a70b579f6046ec733",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 58,
"avg_line_length": 24.4,
"alnum_prop": 0.6967213114754098,
"repo_name": "givemecode/givemecode-project",
"id": "ff5b52db29976fa3d997246f5f4077ea5bd462bf",
"size": "260"... |
module EventWorld
class InstallGenerator < Rails::Generators::Base
source_root File.expand_path('../templates', __FILE__)
desc "Copies faye.ru file"
def install
copy_file "faye.ru", "faye.ru"
end
end
end
| {
"content_hash": "48162772cee7cd3c5eccf59473fac7d4",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 58,
"avg_line_length": 23.1,
"alnum_prop": 0.658008658008658,
"repo_name": "lukkry/event_world",
"id": "3329adf1e9c4daaf351f54bb98307a46c177fb4d",
"size": "231",
"binary"... |
use proc_macro2::{Ident, TokenStream};
use syn::{
parenthesized,
parse::{Parse, Parser},
Attribute, LitStr,
};
use crate::conversion::{
api::{CppVisibility, DeletedOrDefaulted, Layout, References, SpecialMemberKind, Virtualness},
convert_error::{ConvertErrorWithContext, ErrorContext},
ConvertEr... | {
"content_hash": "34868a139e345293d3de483e60620e3f",
"timestamp": "",
"source": "github",
"line_count": 197,
"max_line_length": 97,
"avg_line_length": 34.4263959390863,
"alnum_prop": 0.557800058979652,
"repo_name": "chromium/chromium",
"id": "63a47010a2645de37d952fcdd2d96f5d39797971",
"size": "7117... |
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18N... | {
"content_hash": "bf3f8ed4fb09c65f124a0aac09ce9a26",
"timestamp": "",
"source": "github",
"line_count": 190,
"max_line_length": 79,
"avg_line_length": 26.821052631578947,
"alnum_prop": 0.6970172684458399,
"repo_name": "trela/qikify",
"id": "6ab379ff98346612d43035c9574e1ac03b93ca7d",
"size": "5096",... |
<?php
namespace PagesBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function menuAction(){
$em = $this->getDoctrine()->getEntityManager();
$pages = $em->getRepository('PagesBundle:Pages')->findAll();
return... | {
"content_hash": "43cd98d36324f2582d60e6ce4882b156",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 106,
"avg_line_length": 32.11538461538461,
"alnum_prop": 0.665868263473054,
"repo_name": "medali1990/BoutiqueInformatique",
"id": "4e3f6ca3e30ebbbe3a315d6698c1c2d29309bd9c",
... |
namespace IGCS::MessageHandler
{
void addNotification(const string& notificationText)
{
NamedPipeManager::instance().writeNotification(notificationText);
}
void logDebug(const char* fmt, ...)
{
#ifdef _DEBUG
va_list args;
va_start(args, fmt);
const string formattedArgs = Utils::formatStringVa(fmt, args... | {
"content_hash": "3173cfb5a1a9e7836093be5a80733ee3",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 72,
"avg_line_length": 21.558139534883722,
"alnum_prop": 0.703344120819849,
"repo_name": "FransBouma/InjectableGenericCameraSystem",
"id": "4838fff5b60eafb26d3d61ab29de7f550f... |
using System;
namespace Mono.Facebook.Platform
{
public class Photos
{
#region "Member Variables"
#endregion
#region "Constructors"
public Photos()
{
}
#endregion
}
}
| {
"content_hash": "a0cae9983ea38c00cbd7a4c4758587b9",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 34,
"avg_line_length": 14.8125,
"alnum_prop": 0.5316455696202531,
"repo_name": "simpleverso/facebook-sharp",
"id": "2dac46a0c90dad01b943785d377fdbeba4944ca5",
"size": "237"... |
% Chapter X
\chapter{Learning model parameters from data} % Chapter title
\label{Learning model parameters from data} % For referencing the chapter elsewhere, use
Figaro provides support for learning model parameters from data. In this section, a special type of compound element will be presented which allows a dis... | {
"content_hash": "af8fbadaf87ca6a7622ca96f74a4c415",
"timestamp": "",
"source": "github",
"line_count": 223,
"max_line_length": 777,
"avg_line_length": 58.99103139013453,
"alnum_prop": 0.7700494108703915,
"repo_name": "wkretschmer/figaro",
"id": "0fb8d3d8346b0efbacdea446aa358dc3513c93aa",
"size": "... |
package com.web.common.web.common.util.pay;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import com.web.common.web.common.util.MD5Util;
/**
* Created by Cyan on 2015/8/20.
*/
public class Signature {
/**
* 签名算法
* @param o 签名对象... | {
"content_hash": "f32d446b1b0134f1e45e28edd68e3e99",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 74,
"avg_line_length": 26.44705882352941,
"alnum_prop": 0.5591637010676157,
"repo_name": "wind-clothes/web-common",
"id": "2f5cff55177a3c3a1ae9115f5b44787305407606",
"size"... |
var orm = require('orm');
/**
* Default options
*/
var defaults = {
table: 'sessions',
maxAge: 1000 * 60 * 60 * 24 * 14 // even session cookies should be destroyed, eventually
};
function noop() {}
module.exports = function(session) {
"use strict";
var Store = session.Store || session.session && session.ses... | {
"content_hash": "4ba86d5704c196a4bb47bebd48b4e8d0",
"timestamp": "",
"source": "github",
"line_count": 158,
"max_line_length": 89,
"avg_line_length": 20.39873417721519,
"alnum_prop": 0.6109215017064846,
"repo_name": "kapouer/connect-orm",
"id": "8683eaf7de57516f6af9b54aa719dd7b114f27bc",
"size": "... |
class MySortFilterProxyModel;
class QCheckBox;
class QStandardItemModel;
class DVAPI TMessageRepository : public QObject
{
QStandardItemModel *m_sim;
Q_OBJECT
public:
static TMessageRepository *instance();
TMessageRepository();
QStandardItemModel *getModel() const { return m_sim; }
void clear();
public slots:
... | {
"content_hash": "1303d23bd6feab709f50cb082870103a",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 125,
"avg_line_length": 24.634146341463413,
"alnum_prop": 0.7059405940594059,
"repo_name": "JosefMeixner/opentoonz",
"id": "c703f2d0b5f5ac02c049a5f8566e9c5b9c5aa9a5",
"size... |
"""Basic tests."""
from __future__ import absolute_import, print_function
from os.path import dirname, join
import pytest
from babel.support import NullTranslations, Translations
from flask_babelex import Babel, get_locale
from invenio_i18n.babel import MultidirDomain, set_locale
def test_init():
"""Test init... | {
"content_hash": "6e5c686169384b51b9c63047dd7509b8",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 88,
"avg_line_length": 30.170454545454547,
"alnum_prop": 0.6406779661016949,
"repo_name": "inveniosoftware/invenio-i18n",
"id": "37ec64e136bbcf79bb1d776e8c3aca725bc6ed97",
... |
class Command
attr_reader :shell_capture
# capture system calls on all commands
def `(cmd)
capture_shell!(cmd)
end
def system(cmd)
capture_shell!(cmd)
end
private def capture_shell!(cmd)
@shell_capture = cmd
# make sure $? is set
Kernel::system("echo", "\\c")
"mock output"
end
... | {
"content_hash": "f6e875af19be9f9f4666ee08853e78e6",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 40,
"avg_line_length": 17.09090909090909,
"alnum_prop": 0.6312056737588653,
"repo_name": "mttkay/replicant",
"id": "b24cc62588f3b952c73737ad3dd3c0d7851000fb",
"size": "564"... |
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace Model
{
/// <summary>
///
/// </summary>
[DataContract]
public class Snapshots : IEquatable<Snap... | {
"content_hash": "09298fcef96f69962e9ce1e45b43fd21",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 77,
"avg_line_length": 29.69090909090909,
"alnum_prop": 0.49071239028373137,
"repo_name": "profitbricks/profitbricks-sdk-net",
"id": "a4db6274e7ce3fe80dff6f92a470cf314199f7c... |
require 'bootstrap/colorpicker2/rails/engine'
| {
"content_hash": "e885b738ba4e47936bcf637e84ef565f",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 45,
"avg_line_length": 46,
"alnum_prop": 0.8478260869565217,
"repo_name": "slabounty/bootstrap-colorpicker2-rails",
"id": "5964e7ba9e6cddb8b855f1c5a4dc26018a87a395",
"size":... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "6c472b6ca0c6a2285ecba12b4df1e42f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "7b1f9f1c3aa1e557ea13d79b6881237ded1305b8",
"size": "182... |
#include "Talkers.h"
// talkers
#include "AdServerTalker.h"
#include "GoogleTalker.h"
#include "QypeTalker.h"
namespace Talkers {
void setupTalkers( TalkerMap& talkerMap, Talkers& talkers ) {
// Setup Google talker
Talkers::iterator newTalker = talkers.insert(
talkers.end(), new GoogleTalker() );
t... | {
"content_hash": "f6020a04e09621aa7b80b5e3b934e7b6",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 69,
"avg_line_length": 25.692307692307693,
"alnum_prop": 0.6976047904191617,
"repo_name": "wayfinder/Wayfinder-Server",
"id": "e2e103b94ffab4d09ea2c6d50e34330893372d97",
"s... |
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title" ng-bind="logBundleTitle"></h4>
</div>
<div class="panel-body">
<div class="col-sm-12">
<label ng-bind="previewFacilityLabel"></label>
<span>: {{ previewBundle.facilityName }}</span>
... | {
"content_hash": "3ca2264dd7412ee26362e5f19e088271",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 150,
"avg_line_length": 44.675,
"alnum_prop": 0.46698377168438726,
"repo_name": "musamusa/move",
"id": "3377b996809e06d4adb7f3e0ba85b144cfc6bac6",
"size": "3574",
"binary... |
<?php
namespace Xcore\Generator\Tests\Data\AssertMapping\Url;
use Doctrine\ORM\Mapping as ORM;
/**
* Author
*
* @ORM\Table()
* @ORM\Entity
*/
class Author
{
use AuthorTrait;
}
| {
"content_hash": "36cf894c1e74f43a49521d66317e83f7",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 55,
"avg_line_length": 10.555555555555555,
"alnum_prop": 0.6578947368421053,
"repo_name": "XcoreCMS/Generator",
"id": "00c4a3946a71bcb4476f9e32c31d7a66bfd36020",
"size": "1... |
package com.hazelcast.core;
import java.util.EventListener;
/**
* Listener object for listening to lifecycle events of the Hazelcast instance
*
* @see com.hazelcast.core.LifecycleEvent
* @see HazelcastInstance#getLifecycleService()
*
*/
public interface LifecycleListener extends EventListener {
/**
*... | {
"content_hash": "2b2c733d3433eca0cc43890d207b75ac",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 93,
"avg_line_length": 25.15,
"alnum_prop": 0.7375745526838966,
"repo_name": "lmjacksoniii/hazelcast",
"id": "5490d1f44c037b926940af7dfa39d702f56b68a8",
"size": "1128",
"... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>basic_stream_socket::get_option</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../../boost_... | {
"content_hash": "a11d6a2ad568d554303cd199cc8592b0",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 451,
"avg_line_length": 85.03571428571429,
"alnum_prop": 0.6535069298614028,
"repo_name": "djsedulous/namecoind",
"id": "7a4791b7a68ca89549ca677a0bdc1fec9062f503",
"size": ... |
function votes100_fetch100(p)
local map100 = {}
local qh = dbQuery(handlerConnect, "SELECT * FROM `mapstop100`")
local map100_sql = dbPoll(qh,-1)
if not map100_sql then return false end
for _,row in ipairs(map100_sql) do
local name = tostring(row.mapname)
local author = tostring(row.author)
... | {
"content_hash": "02c71cb841f3c7eb0dc591d6943a98b5",
"timestamp": "",
"source": "github",
"line_count": 149,
"max_line_length": 197,
"avg_line_length": 40.12751677852349,
"alnum_prop": 0.6920889780899816,
"repo_name": "JarnoVgr/Mr.Green-MTA-Resources",
"id": "950e11e4b45efac65ff2264d2b99588d770f126c"... |
<!--
Copyright 2014 The Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE fil
-->
rate-monitor
============
[](https://travis-ci.org/joshlf13/rate-monitor)
A simple ra... | {
"content_hash": "b2509bd9c3303f6c2acca9d2e7376828",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 137,
"avg_line_length": 34.42857142857143,
"alnum_prop": 0.6441908713692946,
"repo_name": "synful/rate-monitor",
"id": "c25ebcf6851a3b5ce9defa928b0cde2ba90e337a",
"size": "... |
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block breadcrumbs %}
<ul class="breadcrumb">
<li><a href="{% url 'admin:index' %}">{% trans 'Home' %}</a></li>
<li>{% trans 'Password reset complete' %}</a>
</ul>
{% endblock %}
{% block title %}{% trans 'Password reset complete' %}{% endblock %}
{% b... | {
"content_hash": "37cc5bd54551086e4aa28c01615ac5c8",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 110,
"avg_line_length": 33.1,
"alnum_prop": 0.5861027190332326,
"repo_name": "The-Akatsuki/thirdp",
"id": "c00acbb54de2265597a646f4168d1c4546ccd9b5",
"size": "662",
"bina... |
package com.github.btrekkie.reductions.pokemon;
import java.util.Arrays;
import java.util.List;
import com.github.btrekkie.reductions.planar.Point;
/** A junction gadget for PokemonProblem, as in I3SatPlanarGadgetFactory.createJunction(). */
public class PokemonJunctionGadget extends PokemonGadget {
@Override
... | {
"content_hash": "2d619767f77af40b10f9b4c22ecccfdf",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 97,
"avg_line_length": 27.416666666666668,
"alnum_prop": 0.6063829787234043,
"repo_name": "btrekkie/reductions",
"id": "27c428e903e6ad3687dedeb4de076489259335ce",
"size": "... |
module Lita::Handlers::Karma::Upgrade
class Decay
extend Lita::Handler::EventRouter
namespace "karma"
on :loaded, :decay
def decay(payload)
return unless decay_enabled? && !decay_already_processed?
log.debug "Upgrading data to include karma decay."
populate_current
all_te... | {
"content_hash": "7b48946d8c371ee6eb41237ef13bb7c7",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 79,
"avg_line_length": 23.776699029126213,
"alnum_prop": 0.6124948958758677,
"repo_name": "erikogan/lita-karma",
"id": "533d820d744e3e58ff389985fdac5573c36d3f88",
"size": ... |
date: '2016-10-14 16:34 +0200'
published: true
title: 'Node Version Manager '
category:
- Node
---
## Installation
First you'll need to make sure your system has a c++ compiler. For OS X, Xcode will work, for Ubuntu, the build-essential and libssl-dev packages work.
On OS X, if you have/had a "system" node install... | {
"content_hash": "488b26e5654791fbf99450a04e8ff010",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 264,
"avg_line_length": 29.067307692307693,
"alnum_prop": 0.7290770757525636,
"repo_name": "develdoe/develdoe.github.io",
"id": "93ace2d2789b08078f60105c9fa3c7de75305d1f",
... |
*,
*::after,
*::before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html,
body {
height: 100%;
width: 100%;
font-family: 'Poiret One', cursive;
overflow: hidden;
background-color: #000000;
}
html * {
text-shadow: 1px 1px 1px rgba(0, 0, 0,... | {
"content_hash": "023d42706ad33d054951f8e357fd0ec8",
"timestamp": "",
"source": "github",
"line_count": 1068,
"max_line_length": 146,
"avg_line_length": 20.510299625468164,
"alnum_prop": 0.6073955717872632,
"repo_name": "manojpandey/msitmun",
"id": "a5378adf890b10f323051ea835d150e0f9ba99f3",
"size"... |
from __future__ import print_function, division, absolute_import
import os
__version__ = "1.11.0dev" # sciserver release version
class SciServerConfig(object):
''' Global configuration for SciServer
The sciserver.config contains important parameters for the correct functioning of the
SciServer ... | {
"content_hash": "b20b03999f69ec965103f3f9f19b016c",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 118,
"avg_line_length": 41.35353535353536,
"alnum_prop": 0.6548607718612603,
"repo_name": "havok2063/SciScript-Python",
"id": "02984451d97925ff59ed8cd5639eda5a59141109",
"s... |
require 'spec_helper'
class Disabling
include Singleton
include CanTango::Config::Permits::Disabling
end
class CanTango::Permit::Mine < CanTango::Permit::UserType
end
CanTango.config do |c|
c.permits.register_permit CanTango::Permit::Mine
end
describe CanTango::Config::Permits::Disabling do
subject { Dis... | {
"content_hash": "ed52c11f442546fdc56b67b6ca2cb781",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 57,
"avg_line_length": 18.236842105263158,
"alnum_prop": 0.6897546897546898,
"repo_name": "kristianmandrup/cantango-permits",
"id": "620814f9fda1fd029a01cdf461ad83e785cd1ae8"... |
import exportDialogTemplate
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph as pg
import pyqtgraph.exporters as exporters
class ExportDialog(QtGui.QWidget):
def __init__(self, scene):
QtGui.QWidget.__init__(self)
self.setVisible(False)
self.setWindowTitle("Export")
self.sho... | {
"content_hash": "79660ee7fb7295fe37503bebdfb5b034",
"timestamp": "",
"source": "github",
"line_count": 125,
"max_line_length": 114,
"avg_line_length": 35.184,
"alnum_prop": 0.5904956798544793,
"repo_name": "robertsj/poropy",
"id": "72809d448eecd2e5388ebc7aef477e4c47b8d5ec",
"size": "4398",
"bina... |
#ifndef _LINUX_ACPI_H
#define _LINUX_ACPI_H
#include <linux/errno.h>
#include <linux/ioport.h> /* for struct resource */
#include <linux/device.h>
#ifdef CONFIG_ACPI
#ifndef _LINUX
#define _LINUX
#endif
#include <linux/list.h>
#include <linux/mod_devicetable.h>
#include <acpi/acpi.h>
#include <acpi/acpi_bus.h>
#... | {
"content_hash": "014eb456e4e5dd6afde64d7def007e39",
"timestamp": "",
"source": "github",
"line_count": 605,
"max_line_length": 82,
"avg_line_length": 30.512396694214875,
"alnum_prop": 0.7252437703141928,
"repo_name": "lokeshjindal15/pd-gem5",
"id": "1151a1dcfe41d950339bef27d8f9b12fa40d5c68",
"size... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/list_view"
android:layout_width="match_parent"
... | {
"content_hash": "1a55b39bf0d605e1df9fcdc30c2f1cd3",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 72,
"avg_line_length": 33.53846153846154,
"alnum_prop": 0.6788990825688074,
"repo_name": "yuitang/First-Code",
"id": "7b971b334cfc924ef2d6bad65028b286e3e42d06",
"size": "43... |
function indexedGetter(obj, index) {
if (index < 0) index = Math.max(0, index + obj.length);
return obj[index];
}
module.exports = (Bluebird) => {
Bluebird.prototype.get = function get(prop) {
return Bluebird.resolve((async () => {
const value = await this;
const isIndex = (typeof... | {
"content_hash": "dda7261447f5df5ce21d6f624a84b233",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 74,
"avg_line_length": 29.5,
"alnum_prop": 0.5322033898305085,
"repo_name": "benjamingr/bluebird-api",
"id": "e0a6ed09afcc131f24a4cfab93353b5f5f229490",
"size": "590",
"b... |
from __future__ import unicode_literals
from indico.modules.events.management.views import WPEventManagement
from indico.modules.events.views import WPConferenceDisplayBase, WPSimpleEventDisplayBase
from indico.web.views import WPJinjaMixin
class WPManageSurvey(WPEventManagement):
template_prefix = 'events/surve... | {
"content_hash": "c8b1513eb086e1e51896c6462cc9d819",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 89,
"avg_line_length": 32.72222222222222,
"alnum_prop": 0.764855687606112,
"repo_name": "mic4ael/indico",
"id": "725e0d47bf85430486820914991f9f2ad4ddc735",
"size": "1392",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.