text stringlengths 2 1.04M | meta dict |
|---|---|
package br.com.wmixvideo.sped.leiaute.blococ;
import br.com.wmixvideo.sped.enums.SFIndicadorPeriodo;
import br.com.wmixvideo.sped.enums.SFMovimentacaoFisica;
import org.junit.Assert;
import org.junit.Test;
import java.math.BigDecimal;
public class SFC170ItemDocumentoTest {
@Test
public void deveGerarLinhaCo... | {
"content_hash": "854183857c03f5ed4e2e649904e74caf",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 279,
"avg_line_length": 56.5,
"alnum_prop": 0.6709275647328745,
"repo_name": "wmixlabs/sped",
"id": "fa9206f23641db62000fb0b032d8d523bedc4dad",
"size": "3051",
"binary": ... |
WampSharp
=========
[![NuGet Version][NuGetImgMaster]][NuGetLinkMaster]
A C# implementation of [WAMP (The Web Application Messaging Protocol)][WampLink]
The implementation supports WAMPv2 and includes both Json and MsgPack support, and both Router (Broker and Dealer roles) and Client (Publisher/Subscriber and Callee/... | {
"content_hash": "a90a6c3de211e822fe96fc1a88d1108d",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 226,
"avg_line_length": 48.79032258064516,
"alnum_prop": 0.7755371900826447,
"repo_name": "jmptrader/WampSharp",
"id": "14baa9ab1d7489212eb4dc6657f51081efbf28c7",
"size": "... |
#pragma once
// Automatically generated header file
#include "lwm2m/objects.h"
namespace KnownObjects {
namespace id3339 {
// Custom, overrideable types for Opaque and String resources
#ifndef Clip3339
class ClipType : public Opaque<30> {};
#endif
#ifndef Trigger3339
class TriggerType : publi... | {
"content_hash": "7d7d7400c5f3063d80e607cb5101ed37",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 107,
"avg_line_length": 36.16161616161616,
"alnum_prop": 0.7041899441340782,
"repo_name": "Openhab-Nodes/libWakaamaEmb",
"id": "03217d4b0e994611058ae65e02d80e6afbb3bc77",
"... |
<?php
namespace MyApp\UserBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class RegistrationUserOneController extends Controller
{
public function registerAction()
{
return $this->container
->get('pugx_multi_user.registration_manager')
... | {
"content_hash": "9425ef9d807d852ffa70ea62e832d048",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 66,
"avg_line_length": 25.2,
"alnum_prop": 0.6798941798941799,
"repo_name": "Mehrezlabidi/Mehrez",
"id": "bbcf6cfd5fab4c65c588074e37d3c81226d5c1a2",
"size": "378",
"binar... |
"use strict";
let config = require('./server_config'),
Search = require('bing.search'),
search = new Search(config.bing.accountKey);
module.exports = function(req, cb) {
search.images(
req.query.query,
{
top: 1,
skip: req.query.index
},
function(err,... | {
"content_hash": "410efb2b00028ff3d84b2d8c13a3df54",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 75,
"avg_line_length": 22.166666666666668,
"alnum_prop": 0.4830827067669173,
"repo_name": "mjhasbach/material-qna",
"id": "62624357aec8c38454e09f5599dbce821ffb004e",
"size"... |
<?php
class Ticket587TestCase extends PradoGenericSelenium2Test
{
function testKeyPress()
{
$base = 'ctl0_Content_';
$this->url('tickets/index.php?page=Ticket587_reopened');
$this->assertEquals($this->title(), "Verifying Ticket 587_reopened");
$this->assertText($base."label1", "Label 1");
$this->select($b... | {
"content_hash": "85dcf9c74a7801089eb989a5ae6160ed",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 71,
"avg_line_length": 30.886363636363637,
"alnum_prop": 0.6298749080206034,
"repo_name": "mmauri04/prado",
"id": "cb42c3433406d474e9159c980c9b37be987e9911",
"size": "1359"... |
<?php
class validate_reseller {
/*
Validator function to check if a given cron command is in correct form (url only).
*/
function limit_client($field_name, $field_value, $validator) {
global $app;
if($field_value <= 0) {
return $app->tform->lng('limit_client_error_positive');... | {
"content_hash": "4e23faca05547754d077755ce6ff5a4f",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 90,
"avg_line_length": 17.142857142857142,
"alnum_prop": 0.5805555555555556,
"repo_name": "TR-Host/THConfig",
"id": "b04adb3cd34bae360700b9167a5b38eb991d2ca0",
"size": "189... |
// AssemblyInfo.cs
// (c) Copyright Cirrious Ltd. http://www.cirrious.com
// MvvmCross is licensed using Microsoft Public License (Ms-PL)
// Contributions and inspirations noted in readme.md and license.txt
//
// Project Lead - Stuart Lodge, @slodge, me@slodge.com
using System.Reflection;
using System.Runtime.Intero... | {
"content_hash": "c78f8a373d75a6ba18a4c553e834978a",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 84,
"avg_line_length": 36.73913043478261,
"alnum_prop": 0.7449704142011835,
"repo_name": "MatthewSannes/MvvmCross-Plugins",
"id": "318651ec5a97cd5975c7aa5f031a488710ca20f3",
... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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 Software without restriction, including
// without limitation the rights to use, copy, modi... | {
"content_hash": "04ac29d3d80e969465d7ff023a0da1ca",
"timestamp": "",
"source": "github",
"line_count": 1591,
"max_line_length": 80,
"avg_line_length": 28.898177247014456,
"alnum_prop": 0.6225286556321639,
"repo_name": "RPGOne/Skynet",
"id": "62d0abd032ea735ff1b6eed747ace018a6fcf5d1",
"size": "4597... |
package org.saiku.olap.discover;
import org.saiku.datasources.connection.IConnectionManager;
import org.saiku.olap.dto.*;
import org.saiku.olap.util.ObjectUtil;
import org.saiku.olap.util.SaikuCubeCaptionComparator;
import org.saiku.olap.util.SaikuDimensionCaptionComparator;
import org.saiku.olap.util.exception.Saiku... | {
"content_hash": "cfd4a2c486a35a50260d38e31da5ae1a",
"timestamp": "",
"source": "github",
"line_count": 454,
"max_line_length": 116,
"avg_line_length": 35.68502202643172,
"alnum_prop": 0.6354546015678044,
"repo_name": "witcxc/saiku",
"id": "912ab8b6eafc76aedc01e7c7df905961140355f2",
"size": "16788"... |
FROM node:latest
RUN mkdir -p /portal /home/nodejs && \
groupadd -r nodejs && \
useradd -r -g nodejs -d /home/nodejs -s /sbin/nologin nodejs && \
chown -R nodejs:nodejs /home/nodejs
WORKDIR /portal
COPY package.json typings.json /portal/
RUN npm install --unsafe-perm=true
COPY . /portal
RUN chown -R node... | {
"content_hash": "3bfd55fcd4b8b5613ff720c60d57f01b",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 69,
"avg_line_length": 22.8125,
"alnum_prop": 0.7013698630136986,
"repo_name": "IoTitude/Portal",
"id": "385f379d70f4510751fec21a123ab5bb042be70b",
"size": "488",
"binary... |
namespace Google.Cloud.Dlp.V2.Snippets
{
// [START dlp_v2_generated_DlpService_CreateInspectTemplate_async_flattened_resourceNames2]
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Dlp.V2;
using System.Threading.Tasks;
public sealed partial class GeneratedDlpServiceClientSnippets
{
... | {
"content_hash": "b32ff3c185e3302815dc058185fc8d5b",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 114,
"avg_line_length": 45.51851851851852,
"alnum_prop": 0.6956875508543532,
"repo_name": "jskeet/gcloud-dotnet",
"id": "bf812369c624b124e1523947593f42376bcec222",
"size": ... |
from msrest.serialization import Model
class Error(Model):
"""Error.
:param code:
:type code: str
:param message:
:type message: str
:param target:
:type target: str
:param details:
:type details: list[~azure.mgmt.network.v2017_11_01.models.ErrorDetails]
:param inner_error:
... | {
"content_hash": "7c3d57a56aab0be6a9a813120fa858e7",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 134,
"avg_line_length": 30.303030303030305,
"alnum_prop": 0.564,
"repo_name": "lmazuel/azure-sdk-for-python",
"id": "89d6608d7bacd683f82f57470c55594e00321be7",
"size": "147... |
package abi42_0_0.expo.modules.contacts.models;
import android.content.ContentValues;
import android.database.Cursor;
import android.provider.ContactsContract;
import static android.provider.ContactsContract.*;
public class ImAddressModel extends BaseModel {
@Override
public String getContentType() {
... | {
"content_hash": "760125566b64d1254b4b829bce32e5b3",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 118,
"avg_line_length": 30.083333333333332,
"alnum_prop": 0.6459833795013851,
"repo_name": "exponentjs/exponent",
"id": "4fe78eb4982faa84b4a94861d962538e1c51b7e3",
"size": ... |
package com.vivifram.second.hitalk;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Message;
/**
* Created by zuowei on 17-3-19.
*/
public class HitalkMonitor extends HandlerThread{
public static final int LOOP_TIME = 5000;
public static final int LOOP_IMMEDIATE = 500;
pu... | {
"content_hash": "51223d3ca9cc75cf85c651d3dc9c19b1",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 98,
"avg_line_length": 31.88888888888889,
"alnum_prop": 0.5149825783972125,
"repo_name": "zuoweitan/Hitalk",
"id": "10e0882566062c6887080e89efe2ba75ce13ab35",
"size": "2870... |
package com.moac.android.interceptordemo.api;
public class ApiConst {
// Endpoints
public static final String TRACKS_ENDPOINT = "/tracks";
// Query parameters
public static final String CLIENT_ID_QUERY_PARAM = "client_id";
public static final String GENRES_QUERY_PARAM = "genres";
public stati... | {
"content_hash": "a847603dd5591f2715412dd5837c0f23",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 67,
"avg_line_length": 28.23076923076923,
"alnum_prop": 0.7138964577656676,
"repo_name": "peter-tackage/okhttp-interceptors-demo",
"id": "342c298d96b49cb61674c80669db36d43d5e... |
const config = Object.assign({}, require("./webpack.config.js"));
config.output.publicPath = "http://localhost:8000/assets";
config.devServer = {
port: 8000,
};
config.devtool = "inline-sourcemap";
module.exports = config; | {
"content_hash": "2282b653316148b8566afcd9c9a6ce1f",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 65,
"avg_line_length": 25.333333333333332,
"alnum_prop": 0.7017543859649122,
"repo_name": "jroitgrund/hideapic",
"id": "32bad3322ab4422811183236e92332b872bb35fd",
"size": "2... |
//
// RFStatistics.m
// RFStatistics
//
// Created by wiseweb on 28/11/16.
// Copyright © 2016 wiseweb. All rights reserved.
//
#import "RFStatistics.h"
#import <objc/runtime.h>
#import <objc/message.h>
@implementation RFStatistics
+ (instancetype)sharedInstance
{
static RFStatistics *_sharedInstance = nil;
... | {
"content_hash": "6d35b665856fd0d1107bc85a5b0d2d9b",
"timestamp": "",
"source": "github",
"line_count": 562,
"max_line_length": 153,
"avg_line_length": 39.412811387900355,
"alnum_prop": 0.6809480812641083,
"repo_name": "DuRofei/SDK-RFStatistics",
"id": "b70bdb2e32b913d3f9718a43f3a2df3e724b87c7",
"s... |
A starter application for student projects in Bloc's [Frontend Web Development Course](https://www.bloc.io/frontend-development-bootcamp).
## Configuration
Start by cloning the repository:
```
$ git clone https://github.com/Bloc/bloc-frontend-project-starter.git <your-frontend-project-name>
```
The project uses Gru... | {
"content_hash": "a33d9042455834a7ed263aed9903d842",
"timestamp": "",
"source": "github",
"line_count": 162,
"max_line_length": 411,
"avg_line_length": 41.401234567901234,
"alnum_prop": 0.7000149097957358,
"repo_name": "sannylin/bloc-jams-angular",
"id": "c41ee07aeab29e254788e0d5151e3a64eaab701a",
... |
package com.benny.library.autoadapter;
import android.os.Handler;
import android.view.View;
import android.view.ViewGroup;
import com.benny.library.autoadapter.listener.AdapterPagingCompleteListener;
import com.benny.library.autoadapter.listener.AdapterPagingListener;
import com.benny.library.autoadapter.viewcreator.... | {
"content_hash": "4fc6fe857d6b4f2ac8c4dfe82a5a536b",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 142,
"avg_line_length": 31.926829268292682,
"alnum_prop": 0.6818181818181818,
"repo_name": "BennyWang/AutoAdapter",
"id": "37a78302f53f34e13e79bc430f1ec23083e3e3f4",
"size"... |
using System;
using System.Collections.Generic;
namespace Napack.Server.Utils
{
/// <summary>
/// Defines an <see cref="IComparer{T}"/> that can compute comparisons using a lambda instead of interface implementation.
/// </summary>
/// <typeparam name="T">The type being compared.</typeparam>
inter... | {
"content_hash": "19dd1369fe7b6470e5ffce438b50c907",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 193,
"avg_line_length": 34.392857142857146,
"alnum_prop": 0.6220145379023884,
"repo_name": "GuMiner/napack",
"id": "655b665fd1deaa00b0a0b522f1d2bf008dc8b424",
"size": "965"... |
import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import PosterThumbnail from './PosterThumbnail';
describe('PosterThumbnail', () => {
const url = '/path/to/image/src.png';
const altText = 'image alt text';
describe('component structure', () => {
it('should contain a... | {
"content_hash": "5bb9899dd2eedf7e4bd01be6004050ec",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 77,
"avg_line_length": 28.9375,
"alnum_prop": 0.6231101511879049,
"repo_name": "ajames72/MovieDBReact",
"id": "69312b641896f26e0eadbbe0745146c9e4c4cd8d",
"size": "926",
"... |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInita9dbd243450ee3cab94fe11450e5dff3::getLoader();
| {
"content_hash": "8ecfdc8fd6406c12d7a481cfd007a73a",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 75,
"avg_line_length": 26.142857142857142,
"alnum_prop": 0.7595628415300546,
"repo_name": "LybeAB/Lybe_Budbee",
"id": "697bc1d21c7a4a51b1e4ba2d83746ec598ab7bee",
"size": "18... |
CKEDITOR.plugins.setLang( 'justify', 'pt', {
block: 'Justificado',
center: 'Alinhar ao Centro',
left: 'Alinhar à Esquerda',
right: 'Alinhar à Direita'
} );
| {
"content_hash": "c5f81176cdb9e1d47ab84004675ae0b3",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 44,
"avg_line_length": 24.142857142857142,
"alnum_prop": 0.6390532544378699,
"repo_name": "Kunstmaan/BootstrapCK4-Skin",
"id": "eb148cae7b9eb763337fda87a4b2690f15e30789",
"s... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Sokoke pipit factsheet on ARKive - Anthus sokokensis</title>
... | {
"content_hash": "98189dec296ffc45b7385ac5b405a544",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 837,
"avg_line_length": 69.5,
"alnum_prop": 0.6651406147809026,
"repo_name": "andrewedstrom/cs638project",
"id": "2f2e645d18137b984533555256944fd7b7f292d4",
"size": "3060",... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "4fef1389040aa36fe47db9120438d826",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 121,
"avg_line_length": 36.546875,
"alnum_prop": 0.6438648995297136,
"repo_name": "TabitaPL/Pasjans",
"id": "700cbc1937a1780957804e80fa4f61f02064f090",
"size": "2339",
"b... |
import { IDisposable } from './disposable';
export interface ICommandable extends IDisposable {
name: string;
// tslint:disable-next-line:no-any
command(...args: Array<any>): any;
} | {
"content_hash": "ff3183c0e2a7ea7f0898296b0fd09abe",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 51,
"avg_line_length": 27.714285714285715,
"alnum_prop": 0.6907216494845361,
"repo_name": "Silvenga/vscode-edi-x12-support",
"id": "6089fe544892abdeebbf1ded7abd24c0f53a3ab6",
... |
/*
* Copyright 2001-2006 The Apache Software Foundation.
*
* 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 ap... | {
"content_hash": "7cb5940cc0b154f637aa2d1e9bb92c67",
"timestamp": "",
"source": "github",
"line_count": 293,
"max_line_length": 79,
"avg_line_length": 32.37542662116041,
"alnum_prop": 0.5386885937170567,
"repo_name": "wapalxj/Java",
"id": "ff07499f7f536e054e35eecd57e6efebcac78699",
"size": "9641",
... |
TestTableModel::TestTableModel(int row_count)
: row_count_(row_count), observer_(nullptr) {}
TestTableModel::~TestTableModel() = default;
int TestTableModel::RowCount() {
return row_count_;
}
std::u16string TestTableModel::GetText(int row, int column_id) {
return base::ASCIIToUTF16(base::NumberToString(row) ... | {
"content_hash": "698da05251ba2578cae268b67995aa6f",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 68,
"avg_line_length": 29.375,
"alnum_prop": 0.7063829787234043,
"repo_name": "ric2b/Vivaldi-browser",
"id": "99642e30e0a76e052d7698fb192a5db62871a72f",
"size": "1210",
"... |
package layerfs
import (
"errors"
"os"
"strings"
)
const (
//PathSeparator is used to join path into database keys. Bolt stores values in a bucket in byte-order, choosing a unicode code point all the way at the end allows us to make assumptions when we use a cursor to iterate over directory entries
PathSeparator... | {
"content_hash": "909f93fc0d6f27119c6a40239d060aee",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 241,
"avg_line_length": 27.09090909090909,
"alnum_prop": 0.7244127516778524,
"repo_name": "cellstate/treedb",
"id": "cfafaf8ffef2ccba0129181199d6f68a0e86a6df",
"size": "238... |
<HTML><HEAD>
<TITLE>Review for Rage: Carrie 2, The (1999)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0144814">Rage: Carrie 2, The (1999)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy... | {
"content_hash": "efb58f254c1df5af4a61942574a955df",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 199,
"avg_line_length": 69.48780487804878,
"alnum_prop": 0.7523692523692523,
"repo_name": "xianjunzhengbackup/code",
"id": "4196c3e7bb4518c0c3c07f3f32b2818023fad820",
"size... |
"""
.. _tutorial-deploy-model-on-rasp:
Deploy the Pretrained Model on Raspberry Pi
===========================================
**Author**: `Ziheng Jiang <https://ziheng.org/>`_, \
`Hiroyuki Makino <https://makihiro.github.io/>`_
This is an example of using Relay to compile a ResNet model and deploy
it on ... | {
"content_hash": "52d2a043394559cc2c64cecf5223c511",
"timestamp": "",
"source": "github",
"line_count": 209,
"max_line_length": 115,
"avg_line_length": 35.68421052631579,
"alnum_prop": 0.6268436578171092,
"repo_name": "mlperf/training_results_v0.7",
"id": "d19805bdc2fbfabbf24f227cf9d75faa37cb1170",
... |
<?php namespace Phaza\LaravelPostgis\Connectors;
use PDO;
use Phaza\LaravelPostgis\PostgisConnection;
class ConnectionFactory extends \Bosnadev\Database\Connectors\ConnectionFactory
{
/**
* @param string $driver
* @param \Closure|PDO $connection
* @param string $database
* @param s... | {
"content_hash": "0d7e0e3e759ee1764847101932d12b7a",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 106,
"avg_line_length": 34.57142857142857,
"alnum_prop": 0.6270661157024794,
"repo_name": "rogue780/laravel-postgis",
"id": "715c2ccf2f85f0ce28502cadea098876df15a0e9",
"siz... |
var ChannelModule = require("./module");
var Poll = require("../poll").Poll;
const TYPE_NEW_POLL = {
title: "string",
timeout: "number,optional",
obscured: "boolean",
opts: "array"
};
const TYPE_VOTE = {
option: "number"
};
function PollModule(channel) {
ChannelModule.apply(this, arguments);
... | {
"content_hash": "50685a2cac4b8eec772ea0566c41c7b6",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 96,
"avg_line_length": 28.693548387096776,
"alnum_prop": 0.6010867528574105,
"repo_name": "jasonbio/tubesynch",
"id": "f699132775022d3030d83574434010d285ac5209",
"size": "... |
SELECT
Bestelling.id bestelling,
Product.id product,
FORMAT(Product.prijs, 2) prijs,
Vertaling.inhoud inhoud,
CategorieVertaling.inhoud categorienaam
FROM
Bestelling
JOIN
Product
ON
Bestelling.product = Product.id
JOIN
Vertaling
ON
Product.naam = Vertaling.betekenis
JOIN
Prod... | {
"content_hash": "b8a97b7dbb2e9a1843e091755558b7da",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 59,
"avg_line_length": 22.214285714285715,
"alnum_prop": 0.7347266881028939,
"repo_name": "strandtentje/megalan",
"id": "233cda5ff5434f8962fbe2ec448bed0eeb30fde2",
"size": ... |
package jais.messages.binaryaddressed;
import jais.messages.AISMessageDecoder;
import jais.AISPacket;
import jais.exceptions.AISException;
import jais.messages.BinaryAddressedMessageBase;
import jais.messages.enums.FieldMap;
import jais.messages.enums.BinaryAddressedMessageType;
import org.apache.logging.l... | {
"content_hash": "f4eae1f277f54e5871e35767ee995090",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 97,
"avg_line_length": 24.392156862745097,
"alnum_prop": 0.5498392282958199,
"repo_name": "vermicious/jais",
"id": "e7fd42990422daf58bc0823e47a8557c4fa10447",
"size": "314... |
var express = require('express'),
openport = require('openport'),
request = require('request'),
assert = require('assert'),
testServer = require('./test-server')
session = require('../lib/middleware');
var port;
var host;
var server;
before(function(done) {
testServer({
secret: 't... | {
"content_hash": "be2c8091a661e7e78333d812e5759a91",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 121,
"avg_line_length": 35.635714285714286,
"alnum_prop": 0.5123271196632592,
"repo_name": "mindcandy/lazy-sessions",
"id": "26cd9c6cb2ed27845a5de0bf413f9a1c8e14d09c",
"si... |
//
// XPathQuery.m
// FuelFinder
//
// Created by Matt Gallagher on 4/08/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import "XPathQuery.h"
#import <libxml/tree.h>
#import <libxml/parser.h>
#import <libxml/HTMLparser.h>
#import <libxml/xpath.h>
#import <libxml/xpathInternals.h>
NSDictionary ... | {
"content_hash": "e9f9746e9f89e0746c9d6e4cfc28749d",
"timestamp": "",
"source": "github",
"line_count": 197,
"max_line_length": 166,
"avg_line_length": 28.512690355329948,
"alnum_prop": 0.645896385971159,
"repo_name": "eiffelqiu/appjam",
"id": "c4bedc580b69b21584ef2fe080626f70b045116c",
"size": "56... |
package eu.bcvsolutions.idm.acc.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.ZonedDateTime;
import java.time.LocalDate;
import eu.bcvsolutions.idm.core.api.domain.DefaultFieldLengths;
/**
* Entity for test co... | {
"content_hash": "faddc70c7940818a11d536a9fa3f12d6",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 72,
"avg_line_length": 21.162650602409638,
"alnum_prop": 0.7369769427839453,
"repo_name": "bcvsolutions/CzechIdMng",
"id": "4382c8c5f6d1c103a259b8f1cd1c34b886cfa295",
"siz... |
<?php
require_once 'My/ShantyMongo/Student.php';
class My_ShantyMongo_ArtStudent extends My_ShantyMongo_Student
{
} | {
"content_hash": "8d7ed293d3cb554d534010c1e6151a91",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 62,
"avg_line_length": 14.75,
"alnum_prop": 0.7796610169491526,
"repo_name": "coen-hyde/Shanty-Mongo",
"id": "11772905fdd173930b072fc72c7127d23a4f4fb3",
"size": "118",
"bi... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... | {
"content_hash": "24baa0c4bd0b5398f04aa6d6d9df57b5",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 94,
"avg_line_length": 32.79338842975206,
"alnum_prop": 0.6784274193548387,
"repo_name": "GoogleCloudPlatform/java-docs-samples",
"id": "329edf1b37d6b9b655da1290a8e5b1c9874e... |
/*
* net/sched/sch_cbq.c Class-Based Queueing discipline.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*... | {
"content_hash": "d3fb073836c808c583cc90e3c41a23fe",
"timestamp": "",
"source": "github",
"line_count": 2085,
"max_line_length": 83,
"avg_line_length": 23.4378896882494,
"alnum_prop": 0.6294507653270034,
"repo_name": "andrewjylee/omniplay",
"id": "611d5e9c913183e0b34e2f7789170bef8615c8da",
"size": ... |
package org.ocpsoft.rewrite.servlet.config;
import static org.junit.Assert.assertThat;
import org.apache.http.client.methods.HttpGet;
import org.hamcrest.Matchers;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.spec.WebArchive;... | {
"content_hash": "c3558f4b0b4196b6ec4e75c1ee62b044",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 98,
"avg_line_length": 33.54237288135593,
"alnum_prop": 0.7261243052046488,
"repo_name": "ocpsoft/rewrite",
"id": "d2b08fe25487fdbd48f10bfde1a99311ee530dde",
"size": "2626"... |
<?php
namespace Altumo\Validation;
/**
* This class contains functions for boolean validation.
* These functions will return the sanitized data too.
*
* @author Steve Sperandeo <steve.sperandeo@altumo.com>
*/
class Booleans{
/**
* Determines if this is a boolean value ... | {
"content_hash": "648a9cc1dbc47e48783125120fea0657",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 83,
"avg_line_length": 24.795454545454547,
"alnum_prop": 0.38359303391384053,
"repo_name": "homer6/altumo",
"id": "4de49f06ed1410113a571f3797473878a470308f",
"size": "2469"... |
package com.mongodb.jvm.json.nashorn;
import org.bson.BsonTimestamp;
import com.threecrickets.jvm.json.JsonImplementation;
import com.threecrickets.jvm.json.JsonTransformer;
import jdk.nashorn.internal.objects.NativeNumber;
import jdk.nashorn.internal.runtime.ScriptObject;
/**
* Transforms a Nashorn {@link Scrip... | {
"content_hash": "44f0815bbc988e5a6cdf5c51744d5ca9",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 91,
"avg_line_length": 27,
"alnum_prop": 0.7142857142857143,
"repo_name": "tliron/mongodb-jvm",
"id": "6c090a93e22d266dbdf93be611c6c670c4c7c463",
"size": "1716",
"binary"... |
set -o errexit -o nounset -o xtrace
export ANSIBLE_INVENTORY_PLUGINS=./
export ANSIBLE_INVENTORY_ENABLED=test_inventory
# check default values
ansible-inventory --list -i ./config_without_parameter.yml --export | \
env python -c "import json, sys; inv = json.loads(sys.stdin.read()); \
assert se... | {
"content_hash": "edd7c1d2292da4de13dc592f2bd537fd",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 128,
"avg_line_length": 48.857142857142854,
"alnum_prop": 0.6461988304093568,
"repo_name": "thaim/ansible",
"id": "119a073ac58abb3e668f125780dc7511e3ea0fa0",
"size": "705",... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRelationshipsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('relations... | {
"content_hash": "71ebf0072cf7278360f78fbc5cb3190e",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 69,
"avg_line_length": 22.257142857142856,
"alnum_prop": 0.5622593068035944,
"repo_name": "hossamhasanin/transformer",
"id": "a78d8c4cf25e82a73dbfb0c73e08017d84207009",
"si... |
package com.github.krr.mongodb.aggregate.support.beans;
import com.github.krr.mongodb.aggregate.support.nonreactive.annotations.MongoId;
/**
* Created by rkolliva
* 1/21/17.
*/
public class TestBucketBean extends AbstractTestAggregateBean {
@MongoId
private String oid;
private String make;
private St... | {
"content_hash": "ef952d9d64f8daccf30abbe6b87083db",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 80,
"avg_line_length": 14.703125,
"alnum_prop": 0.6556854410201913,
"repo_name": "krraghavan/mongodb-aggregate-query-support",
"id": "039a1a26434d18abd31cd6916d86627bcc6c24fc... |
Configuration SCCM_2012
{
Param(
)
Import-DscResource -ModuleName xNetworking, `
PSDesiredStateConfiguration, `
xWebAdministration,
cNtfsAccessControl,
xCert... | {
"content_hash": "0fc2ac0906cb5404965adeb7cbd798df",
"timestamp": "",
"source": "github",
"line_count": 1604,
"max_line_length": 105,
"avg_line_length": 34.67456359102244,
"alnum_prop": 0.48779172210435473,
"repo_name": "randorfer/RunbookExample",
"id": "6f0bcd11c79834c342ca19a9fad63e06193d6197",
"... |
// @flow
/* eslint-env mocha */
import assert from 'power-assert'
import addMilliseconds from '.'
describe('addMilliseconds', function() {
it('adds the given number of milliseconds', function() {
var result = addMilliseconds(
new Date(2014, 6 /* Jul */, 10, 12, 45, 30, 0),
750
)
assert.deepE... | {
"content_hash": "12561b4b8d5ee042fc18de7d6371d915",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 79,
"avg_line_length": 31.421875,
"alnum_prop": 0.6066633515663848,
"repo_name": "js-fns/date-fns",
"id": "8919bef4378232012c3612caa57f96f9c64fc3dd",
"size": "2011",
"bin... |
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tds.Engine.Exceptions;
using Tds.Interfaces;
using Tds.Interfaces.Model;
using Tds.Types;
namespace Tds.Engine.Core
{
class MaintenanceTask
{
private IRepository sou... | {
"content_hash": "a47c1507b2cd798b39abcaa1d72024bb",
"timestamp": "",
"source": "github",
"line_count": 218,
"max_line_length": 140,
"avg_line_length": 33.65137614678899,
"alnum_prop": 0.5502998909487459,
"repo_name": "istvantako/TDS",
"id": "8d2fff257c62054376180f33fd8775bf777c81d7",
"size": "7338... |
<a title='Build Status' href="https://travis-ci.org/RafaelCasuso/backbone.mastermind">
<img src='https://travis-ci.org/RafaelCasuso/backbone.mastermind.svg?branch=master' />
</a>
[](https://coveralls.io/r/RafaelCasu... | {
"content_hash": "e544b263a21af4ce53c0b251687ed3a9",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 176,
"avg_line_length": 89.5,
"alnum_prop": 0.7793296089385475,
"repo_name": "RafaelCasuso/backbone.mastermind",
"id": "e17cf70eb2c7ee7af38248de3fbe9d65bac7f1f7",
"size": "3... |
void* alloc(size_t size);
double symbolsToSecondS(double syms);
uint64_t secondsToTicks(double secs);
uint64_t symbolsToTicks(double syms);
double jiffiesToSeconds(double jiffies);
uint64_t jiffiesToTicks(double jiffies);
double secondsToJiffies(double seconds);
double ticksToSeconds(uint64_t ticks);
double ticksToJiff... | {
"content_hash": "1ebdc5b45af068b2e868430b705ba0da",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 40,
"avg_line_length": 33.5,
"alnum_prop": 0.8084577114427861,
"repo_name": "fresskarma/tinyos-1.x",
"id": "b73724db54a25ca8eadc5cdd4aebae55030444a7",
"size": "667",
"bin... |
// Define DEBUG symbol to enable Debug.WriteLine to work even when Prism is compiled in Release-mode for Nuget-feed.
#define DEBUG
using System;
using System.Diagnostics;
using System.Globalization;
using Prism.Properties;
namespace Prism.Logging
{
/// <summary>
/// Implementation of <see cref="ILoggerFacade"... | {
"content_hash": "845a55e888b1cb78b7492c853861a8b7",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 128,
"avg_line_length": 39.758620689655174,
"alnum_prop": 0.6487424111014745,
"repo_name": "cbordeman/gameofgo",
"id": "d06a8cfa870bc5b4b42dea0b2267631ca2d3cad9",
"size": "... |
.. meta::
:description lang=en: Collect useful snippets of SQLAlchemy
:keywords: Python, Python3, SQLAlchemy Cheat Sheet
==========
SQLAlchemy
==========
.. contents:: Table of Contents
:backlinks: none
Set a database URL
-------------------
.. code-block:: python
from sqlalchemy.engine.url import... | {
"content_hash": "9c4dbe6fa035a5d7085e55ab097665f2",
"timestamp": "",
"source": "github",
"line_count": 1874,
"max_line_length": 106,
"avg_line_length": 25.51120597652081,
"alnum_prop": 0.5759914658634538,
"repo_name": "crazyguitar/pysheeet",
"id": "282ae1fa5e208bca6bad2af95629fa6c9d89ec07",
"size"... |
package camelinaction.timeout;
import java.util.Map;
import org.apache.camel.Endpoint;
import org.apache.camel.impl.UriEndpointComponent;
public class TimeoutComponent extends UriEndpointComponent {
public TimeoutComponent() {
super(TimeoutEndpoint.class);
}
@Override
protected Endpoint cre... | {
"content_hash": "5a663c884057a3d2308fbf093810536c",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 118,
"avg_line_length": 27.2,
"alnum_prop": 0.7352941176470589,
"repo_name": "sprklinginfo/camelinaction2",
"id": "b6578f746b3fa00dcaf063b8dd8ebef81b8b7fed",
"size": "544",... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Models
{
// 3.2.1.5.1 Predictions about the future performance/value of funds will be available, using existing prediction algorithms. (This is the fund projector which does the ca... | {
"content_hash": "4b35c606f3256661d1078ff8825d00e8",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 208,
"avg_line_length": 36.864197530864196,
"alnum_prop": 0.5656396517079705,
"repo_name": "edegraff/FundTracker",
"id": "ba891a3edaa43cc8ae3ad1ed72f3e500dc1bdc41",
"size":... |
<html>
<head>
<title>
Standing up against Iraq sanctions
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>
</head>
<body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0">
<tab... | {
"content_hash": "3a517db44aab0c51bd3b72a3ab7bd5f3",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 388,
"avg_line_length": 73.03846153846153,
"alnum_prop": 0.7332806740389679,
"repo_name": "ISO-tech/sw-d8",
"id": "8efbfe3fa7fce381dcb487295e5c3a95f5bd0989",
"size": "3798"... |
#include <iostream>
using namespace std;
#include <cstdlib>
#include "randomindex.h"
MTRand RandomIndex::mtrand_(0x12345); // Constant seed so that experiments can be repeated
RandomIndex::RandomIndex(unsigned dims, unsigned *datarange, unsigned *numrind)
: dims_(dims), datasat_(0), datanumel_(1), distnumel_(1),... | {
"content_hash": "4e2107e6cbaf824888674d1d15545985",
"timestamp": "",
"source": "github",
"line_count": 224,
"max_line_length": 92,
"avg_line_length": 32.370535714285715,
"alnum_prop": 0.545579920011033,
"repo_name": "fresan/nri",
"id": "137bd4501b84c54c262df98a4b049aa136b0ca0e",
"size": "7443",
... |
package com.danimaniarqsoft.asterix.commands;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.shell.core.CommandMarker;
import com.danimaniarqsoft.asterix.core.operations.AbstractCommandOperation;
import com.danimaniarqsoft.asterix.validators.MavenLayerValidator;
public abstr... | {
"content_hash": "11126f124b579835b0d630e7927b4622",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 76,
"avg_line_length": 39.416666666666664,
"alnum_prop": 0.8710359408033826,
"repo_name": "danimaniarqsoft/asterix-gen",
"id": "f24bef80634f5e748235add0bc0104d80c2e9676",
"... |
class Browser;
namespace content {
class WebContentsDelegate;
}
// Listens for media devices attached to the system. When such are detected,
// translates the notification into a Web Intents dispatch.
// The intent payload is:
// action = "chrome-extension://attach"
// type = "chrome-extension://filesystem"
// ... | {
"content_hash": "86b571f8a78e6acc725ca8e487207d35",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 76,
"avg_line_length": 34.333333333333336,
"alnum_prop": 0.7419093851132686,
"repo_name": "keishi/chromium",
"id": "96fd51caa5c3a458ad63c085a42be1fb76847d3a",
"size": "1584... |
<?xml version="1.0" encoding="utf-8"?>
<Addin
id="Banshee.Dap.MassStorage"
version="1.0"
compatVersion="1.0"
copyright="Copyright 2008 Novell Inc., Copyright 2009 Jeff Wheeler. Licensed under the MIT X11 license."
name="Mass Storage Media Player Support"
category="Device Support"
descriptio... | {
"content_hash": "dd1b710469e09c487a4a8fefae51afdb",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 121,
"avg_line_length": 52.923809523809524,
"alnum_prop": 0.704876732049667,
"repo_name": "Dynalon/banshee-osx",
"id": "9735d33d6d66bfa0b465e9ca1047fcc8bc67cc5f",
"size": ... |
<p>Persian calendar</p>
<ngb-datepicker #dp [(ngModel)]="model"
(navigate)="date = $event.next"
[firstDayOfWeek]="6">
</ngb-datepicker>
<hr/>
<button class="btn btn-sm btn-outline-primary mr-2" (click)="selectToday()">Select Today</button>
<button class="btn btn-sm btn-outline-primary... | {
"content_hash": "a18d14631bcf4b4414ac2c09ae217113",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 121,
"avg_line_length": 35.11764705882353,
"alnum_prop": 0.6331658291457286,
"repo_name": "ktriek/ng-bootstrap",
"id": "f57bda1e1e0187f357fb15c0797084a37707040c",
"size": "... |
ACCEPTED
#### According to
Interim Register of Marine and Nonmarine Genera
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "0e95632abc0f97516aef4e3efb7784f4",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 47,
"avg_line_length": 10.923076923076923,
"alnum_prop": 0.7183098591549296,
"repo_name": "mdoering/backbone",
"id": "154692ca25cdf11afb862f968f89ae11ebacaea0",
"size": "19... |
<?php
function my_login_logo() { ?>
<style type="text/css">
body.login{color: #95a1c2;background-color: #162834;}
body.login div#login h1 a {
background-image: url(<?php echo get_bloginfo( 'template_directory' ) ?>/images/logo-flat.png);
padding-bottom: 30px;
}
... | {
"content_hash": "c4341ebcecafa23cabd78ea39fa364b3",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 107,
"avg_line_length": 32.851851851851855,
"alnum_prop": 0.6381059751972943,
"repo_name": "freepod/Freepod-Web",
"id": "bba662982e3e2f46eb37064078c308a65ae7d605",
"size": ... |
<?php
use yii\db\Schema;
use yii\db\Migration;
class m150330_223353_amilna_yes_sku extends Migration
{
public function safeUp()
{
$this->addColumn( $this->db->tablePrefix.'yes_product', 'sku', Schema::TYPE_STRING . '(65)' );
}
public function safeDown()
{
echo "m150330_223353_amilna_yes... | {
"content_hash": "ed963df844b685df1e92910935005624",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 96,
"avg_line_length": 18.6,
"alnum_prop": 0.600358422939068,
"repo_name": "amilna/yes",
"id": "2baf8a4a243d367b4f1e25994a3d1bf03fb6afab",
"size": "558",
"binary": false,... |
define(['modules/converters/MusicCSLJson/src/BarModel_CSLJson', 'modules/core/src/BarModel'], function(BarModel_CSLJson, BarModel) {
return {
run: function() {
test("BarModel_CSLJson", function(assert) {
var bar = new BarModel();
var t = BarModel_CSLJson.exportToMusicCSLJSON(bar);
assert.deepEqual(t, ... | {
"content_hash": "f85e5ae87dee04660d3d4701f2754cdc",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 132,
"avg_line_length": 29.930232558139537,
"alnum_prop": 0.6317016317016317,
"repo_name": "dmmz/LeadsheetJS",
"id": "9386d19291b30cd46043e323dc2ed1567c450f7a",
"size": "12... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>PMD 5.5.1 Reference Package net.sourceforge.pmd.lang.dfa.pathfinder</title>
... | {
"content_hash": "3564ac1fbf685d16fd3f2b8734ecd6ea",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 121,
"avg_line_length": 34.875,
"alnum_prop": 0.5385304659498208,
"repo_name": "jasonwee/videoOnCloud",
"id": "dd9a87a7ae3758e3c04dbb21dc44f5d0d1ee6c44",
"size": "1117",
... |
/*
* Camera Following
*
* Author: Booil Ted Joung
* Email : tedfromskyy@gmail.com
*
* */
using UnityEngine;
using System.Collections;
public class CameraBehaviour
: MonoBehaviour
{
public GameObject target;
// Update is called once per frame
void Update ()
{
this.transform.position = this.target.tran... | {
"content_hash": "2a05d52f9ef0137c2858181bdc422a97",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 133,
"avg_line_length": 21.82608695652174,
"alnum_prop": 0.7191235059760956,
"repo_name": "booiljoung/unitywallclimb",
"id": "427d0883dfeac314bb7a9507f454b3711f10bd9b",
"si... |
from django.db import models
from ourplaylists.app.adapters import NETWORKS
class PlaylistItem(models.Model):
id = models.AutoField(primary_key=True)
network_id = models.CharField(max_length=20)
title = models.CharField(max_length=300)
url = models.CharField(max_length=300, null=True)
playlist = ... | {
"content_hash": "32df78d8b31d1b63f1bcac9da0c9af89",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 103,
"avg_line_length": 39.61538461538461,
"alnum_prop": 0.7398058252427184,
"repo_name": "m-vdb/ourplaylists",
"id": "a06b26e2cbdda771a4d0355aac6ca8b7ad2d6be2",
"size": "5... |
'use strict';
/**
* Checks to see if a given object is a binary search tree. The binary search
* tree must be used with .left, .right, and .value where the left and right
* properties are nodes and value is a Number
*
* @param {Node} root
* @return {Boolean}
*/
function isBst(root) {
if (!root || root.value =... | {
"content_hash": "24b2ba610163515c3351ff81ea29fcf9",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 77,
"avg_line_length": 25,
"alnum_prop": 0.632,
"repo_name": "ksmithut/problems-and-examples",
"id": "09e3436fd8a7c0ca3f93e8a51909c491807edea4",
"size": "625",
"binary": ... |
package dao;
import java.util.List;
import model.ActivityRecord;
public interface ActivityRecordDao {
public void add(ActivityRecord activityRecord);
public void update(ActivityRecord activityRecord);
public void delete(ActivityRecord activityRecord);
public List<ActivityRecord> getActivityRecordList(S... | {
"content_hash": "bf24abd87175963182479eb30afc80d4",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 80,
"avg_line_length": 31.307692307692307,
"alnum_prop": 0.800982800982801,
"repo_name": "Boykilotherm/HealthClub",
"id": "ca574910c8f379d89620504acd967f5aea31b77c",
"size"... |
// This may look like C code, but it's really -*- C++ -*-
#ifndef EXT_LAYOUT_ITEM_IMPL_H_
#define EXT_LAYOUT_ITEM_IMPL_H_
#include "Wt/WLayoutItemImpl"
#include "Wt/WObject"
namespace Wt {
class WWidget;
class DomElement;
namespace Ext {
class Container;
class LayoutImpl;
class LayoutItemImpl : publi... | {
"content_hash": "c30b0743a04381e08d1b3e95751e52fa",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 74,
"avg_line_length": 23.294117647058822,
"alnum_prop": 0.7188552188552189,
"repo_name": "sanathkumarv/RestAPIWt",
"id": "8da75a9b21cfd19d5822ed967a461288a352eec6",
"size"... |
package org.gradle.api.internal.changedetection.changes;
import org.gradle.StartParameter;
import org.gradle.api.InvalidUserCodeException;
import org.gradle.api.NonNullApi;
import org.gradle.api.internal.TaskInternal;
import org.gradle.api.internal.changedetection.TaskExecutionMode;
import org.gradle.api.internal.ch... | {
"content_hash": "45d69d7dd7758b01367f067fa972326d",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 151,
"avg_line_length": 38.644067796610166,
"alnum_prop": 0.7197368421052631,
"repo_name": "blindpirate/gradle",
"id": "d23f9cfa2ecf58ed5507df500221c612ef925b52",
"size": "... |
HTTP Server
===========
Overview
--------
The HTTP Server component provides an ability for running a lightweight web server on ESP32. Following are detailed steps to use the API exposed by HTTP Server:
* :cpp:func:`httpd_start`: Creates an instance of HTTP server, allocate memory/resources for it depending upon... | {
"content_hash": "8dc183457905465feb2df2482724615e",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 672,
"avg_line_length": 39.93835616438356,
"alnum_prop": 0.599382610186932,
"repo_name": "mashaoze/esp-idf",
"id": "9016574e1459030a463e61b25d7fd5dc422d9aad",
"size": "583... |
.slide.map-canvas { height:600px; border:1px solid #EEEEEE;}
.iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap}
.iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word}
.pop .center, .pop... | {
"content_hash": "a471c61105a3b213b4607c44b8153f91",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 188,
"avg_line_length": 54.0625,
"alnum_prop": 0.7283236994219653,
"repo_name": "leon776/ci",
"id": "305edd33895840cf769ff2bb79c540af8d6b03fd",
"size": "2595",
"binary": ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Prasanna Balaprakash" />
<meta name="description" content="Personal web page">
<... | {
"content_hash": "f37136dd2942b3e1b66e6a4281ca1704",
"timestamp": "",
"source": "github",
"line_count": 291,
"max_line_length": 454,
"avg_line_length": 42.955326460481096,
"alnum_prop": 0.71368,
"repo_name": "pbalapra/pbalapra.github.io",
"id": "70f0ce86fc81f892e59371a3e742b7e2d6b755a3",
"size": "1... |
package com.conveyal.r5.profile;
import com.conveyal.r5.api.util.Stats;
import java.util.Collection;
import java.util.stream.IntStream;
/**
* This is used in Modeify. "Stats" summarize the travel time for a set of similar paths, giving the minimum,
* maximum, and average travel and wait over all those paths, over ... | {
"content_hash": "cdbcf7c5a47be8f0febff040d339f321",
"timestamp": "",
"source": "github",
"line_count": 97,
"max_line_length": 124,
"avg_line_length": 41.103092783505154,
"alnum_prop": 0.6037120642086782,
"repo_name": "conveyal/r5",
"id": "53807e1175d994f9dfe8f67acb0cc5d2aa0aad13",
"size": "3987",
... |
import React, {PropTypes} from 'react';
import {addTask} from '../redux/actions/task-actions';
import {connect} from 'react-redux';
class TodoForm extends React.Component {
constructor(props) {
super(props);
this.handleFormSubmit = this.handleFormSubmit.bind(this);
}
handleFormSubmit(e){
e.preventD... | {
"content_hash": "0d6bfb158b1d1b14847564579968d856",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 74,
"avg_line_length": 24.176470588235293,
"alnum_prop": 0.6338199513381995,
"repo_name": "veenedu/ReactReduxTodo",
"id": "a1f02b982d197e79954ba3e640e054a0a34de391",
"size"... |
package com.cloud.utils.nicira.nvp.plugin;
import org.apache.log4j.Logger;
import com.cloud.maint.Version;
public class NiciraNvpApiVersion {
private static final Logger s_logger = Logger.getLogger(NiciraNvpApiVersion.class);
private static String niciraApiVersion;
public static synchronized void setNi... | {
"content_hash": "f0cd9fdd99d260e895377326a1266987",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 110,
"avg_line_length": 31.5,
"alnum_prop": 0.724053724053724,
"repo_name": "resmo/cloudstack",
"id": "4dfd4e2b62a5c9c794d195ce694fec90d7ac5b0e",
"size": "1627",
"binary"... |
TC.each = function(collection, callback) {
$.each(collection, callback);
}
TC.now = function() {
return $.now();
}
| {
"content_hash": "4b91e1f2c10eb85be0f8f7c9efdaaceb",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 42,
"avg_line_length": 17.714285714285715,
"alnum_prop": 0.6129032258064516,
"repo_name": "lleirborras/tc",
"id": "e95c185e3c64c538c25e29191587743d3f9a9cac",
"size": "124",
... |
<?php $this->layout = 'default2';
echo("<div class=\"row\">");
echo("<div class=\"span12\">");
//titre
echo("<h1 style=\"margin-top: 10%;\">");
echo __("Mot de passe oublié");
echo("</h1>");
//zone de texte où l'utilisateur doit rentrer son email pour pouvoir recevoir un lien vers un nouveau mot de pass... | {
"content_hash": "b4e20ceb584df39a5ba7f60c376301a4",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 115,
"avg_line_length": 34.166666666666664,
"alnum_prop": 0.591869918699187,
"repo_name": "Cyanodroid/Projet_web",
"id": "2c4d73b419a2810a0efb2ae5d72de01cdbe25bba",
"size":... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "c05c895f131e6c836a1ecc6470819f04",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "ecd57bd522ecd1d39801679197d727569920e255",
"size": "196... |
package com.esri.gdb
import scala.collection.mutable
/**
*/
class GDBTableScanWithNullValues(dataBuffer: DataBuffer, fields: Seq[Field], maxRows: Int, startID: Int = 0)
extends Iterator[Map[String, Any]] with Serializable {
val numFieldsWithNullAllowed = fields.count(_.nullable)
val nullValueIndicators = new... | {
"content_hash": "04a5ce2e8511722fbe55db0ad3496061",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 108,
"avg_line_length": 27.682926829268293,
"alnum_prop": 0.6370044052863436,
"repo_name": "mraad/spark-gdb",
"id": "db7649dacc1478f6477d10a5ec6ed83426036689",
"size": "113... |
package io.enmasse.controller;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Arrays;
import org.junit.jupiter.api.Test;
import io.enmasse.address.model.AddressSpac... | {
"content_hash": "95e2e52742c73d2848cc76e8a83f27bc",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 94,
"avg_line_length": 29.29824561403509,
"alnum_prop": 0.6646706586826348,
"repo_name": "jenmalloy/enmasse",
"id": "a7a50f071eadf9268dbbd3f51fba002729599c03",
"size": "181... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Publ. Puget Sound Biol. Sta. Univ. Wash. 4: 368 (1925)
#### Original name
Puccinia neurophila Grognot, 1863
### Remarks
null | {
"content_hash": "ff8dbc1e40f1e5a8b2f2b974758326ce",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 54,
"avg_line_length": 16.307692307692307,
"alnum_prop": 0.7075471698113207,
"repo_name": "mdoering/backbone",
"id": "d6a542dbe5d0f983bb73955650f9ce5985f831e1",
"size": "27... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_17) on Thu Jan 14 02:04:14 PST 2010 -->
<TITLE>
Uses of Class gov.nasa.worldwind.applications.sar.PositionTable (NASA World Wind)
</TITLE>
<META NAM... | {
"content_hash": "e0f85530d604d6bee96e41b67bfde8c6",
"timestamp": "",
"source": "github",
"line_count": 262,
"max_line_length": 402,
"avg_line_length": 53.55343511450382,
"alnum_prop": 0.6606086522699737,
"repo_name": "caadxyz/Macro-Thinking-Micro-action",
"id": "436d2162dd4d106c2c577cb847be3b3199dc1... |
<?php
require_once 'vendor/autoload.php';
use App\Models\Dvd;
// use \Symfony\Component\HTTPFoundation\Session\Session;
// $session = new Session();
// $session->start();
?>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>DVD Search</title>
<link rel="stylesheet" href="https://m... | {
"content_hash": "3b0f064b5f8d7de52cbfc57f7fc232a9",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 104,
"avg_line_length": 23.873015873015873,
"alnum_prop": 0.6023936170212766,
"repo_name": "erikamjoh/itp405-spring2015-mvc",
"id": "585c9ef71be1ec7943b38543a66c079dfdb4cd26"... |
class Todo
include Mongoid::Document
include Mongoid::Versioning
max_versions 0
field :title
field :completed, :type => Boolean
field :created_at, :type => Time
validates_presence_of :title
before_create :set_defaults
def set_defaults
self.created_at = Time.now.iso8601
self.completed = 0 ... | {
"content_hash": "1acd90bdbecace6dcb45fda4f6be62a5",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 68,
"avg_line_length": 20.833333333333332,
"alnum_prop": 0.704,
"repo_name": "acrookston/our_todo",
"id": "d1f65df31ecb6451b50ce080ddc9527a6939d778",
"size": "375",
"bina... |
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Ver... | {
"content_hash": "b91046c5e90853cc325b9a82b2267899",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 105,
"avg_line_length": 42.93846153846154,
"alnum_prop": 0.6857757076316733,
"repo_name": "l-dobrev/zxing",
"id": "34656d013f2829f34299d71e94479f7e250166d7",
"size": "2791"... |
<!--
~ Copyright (c) Meta Platforms, Inc. and affiliates.
~
~ 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 requi... | {
"content_hash": "26bf4d136f10b487c9a7164139f04d4b",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 76,
"avg_line_length": 37.416666666666664,
"alnum_prop": 0.7149220489977728,
"repo_name": "facebook/litho",
"id": "eab531589f97901d3ff9e444bb9abd038aae2846",
"size": "898",... |
package sphero
import (
"bytes"
"encoding/binary"
"fmt"
)
// Represents a command response.
type Response struct {
Sop1 byte
Sop2 byte
Mrsp byte
Seq uint8
Dlen uint8
Data []byte
Chk uint8
}
// Returns the appropriate error from the message response (MRSP) field, if any.
func (r *Response) Error() (err er... | {
"content_hash": "f063a85bf19095283c011f0dd949c849",
"timestamp": "",
"source": "github",
"line_count": 164,
"max_line_length": 89,
"avg_line_length": 25.079268292682926,
"alnum_prop": 0.7201556041818624,
"repo_name": "FreeFlow/sphero",
"id": "37a1b9e1321f506574735eb69a397b36affbf898",
"size": "411... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "123f623033800694b3bce928ad9d5289",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "685101776e8f7803ac9c5499ab5b78ce70ae371a",
"size": "19... |
goTo.file("/a.tsx");
verify.codeFix({
index: 0,
description: [ts.Diagnostics.Import_0_from_1.message, "React", "react"],
applyChanges: true,
newFileContent:
`import React from "react";
<Text></Text>;`
});
verify.codeFix({
index: 0,
description: [ts.Diagnostics.Add_import_from_0.message, "react... | {
"content_hash": "97aaa65fb4c2160606c4d4974240dd28",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 76,
"avg_line_length": 21.85,
"alnum_prop": 0.6498855835240275,
"repo_name": "weswigham/TypeScript",
"id": "95dc5ff6d1bdb7df89d6045ba2326bbaa2615fc0",
"size": "908",
"bin... |
<?php
/**
* Widget for inserting an ad into your sidebar
*
* @since 4.5.0
*/
class WordAds_Sidebar_Widget extends WP_Widget {
private static $allowed_tags = array( 'mrec', 'wideskyscraper' );
private static $num_widgets = 0;
function __construct() {
parent::__construct(
'wordads_sidebar_widget',
/** ... | {
"content_hash": "cd0323cccf21f549245e4b62dc2cc442",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 155,
"avg_line_length": 27.973913043478262,
"alnum_prop": 0.5725831520049736,
"repo_name": "sifonsecac/capitalino-errante",
"id": "782c2dcd04e65ba3b16c4dcfb7b8b282d52c1a58",... |
from django.test.utils import override_settings
from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
from .provider import GlobusProvider
class GlobusTests(OAuth2TestsMixin, TestCase):
provider_id = GlobusProvider.id
@override_settings(SOCIALACCOUNT_QU... | {
"content_hash": "34426ad3009bf5f4ec2119949f076830",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 74,
"avg_line_length": 34.625,
"alnum_prop": 0.6630565583634176,
"repo_name": "lukeburden/django-allauth",
"id": "3cd7a42d8eaa39cd60565cde6198c3ea9570ea8b",
"size": "831",
... |
import * as fs from "fs";
import yaml from "js-yaml";
import validator from "is-my-json-valid";
import extend from "extend";
type Schema = any;
interface ValidationError extends Error {
_validationErrors?: validator.ValidationError[];
}
export class ConfigValidator {
/**
* Construct a validator of YAM... | {
"content_hash": "c813fc21fbfe73865e92aaef7f5817ef",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 94,
"avg_line_length": 32.70967741935484,
"alnum_prop": 0.6050295857988166,
"repo_name": "matrix-org/matrix-appservice-bridge",
"id": "60f1c570d5f06e404da97c7218b8fb64ac4edcf... |
PartiallySignedTransaction::PartiallySignedTransaction(
const CMutableTransaction &txIn)
: tx(txIn) {
inputs.resize(txIn.vin.size());
outputs.resize(txIn.vout.size());
}
bool PartiallySignedTransaction::IsNull() const {
return !tx && inputs.empty() && outputs.empty() && unknown.empty();
}
bool Par... | {
"content_hash": "28145140691636b4d983e5497a13a179",
"timestamp": "",
"source": "github",
"line_count": 309,
"max_line_length": 80,
"avg_line_length": 29.789644012944983,
"alnum_prop": 0.6089082020640956,
"repo_name": "cculianu/bitcoin-abc",
"id": "23e13d489506186c3c8e012d6e21e75f593469ea",
"size":... |
#include "test-tool.h"
#include "cache.h"
#include "string-list.h"
/*
* Parse an argument into a string list. arg should either be a
* ':'-separated list of strings, or "-" to indicate an empty string
* list (as opposed to "", which indicates a string list containing a
* single empty string). list->strdup_string... | {
"content_hash": "c09349d4c14fd9b797dc8ea692983b8f",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 72,
"avg_line_length": 24.868217054263567,
"alnum_prop": 0.6234413965087282,
"repo_name": "astabschneider/astabschneider.github.io",
"id": "2123dda85bf10033dcbf0d801028b3705... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v12/resources/invoice.proto
package com.google.ads.googleads.v12.resources;
/**
* <pre>
* An invoice. All invoice information is snapshotted to match the PDF invoice.
* For invoices older than the launch of InvoiceService, ... | {
"content_hash": "cfbc89ff4fe24b17442d028879a67914",
"timestamp": "",
"source": "github",
"line_count": 10581,
"max_line_length": 263,
"avg_line_length": 38.14280313769965,
"alnum_prop": 0.6380352289086174,
"repo_name": "googleads/google-ads-java",
"id": "9071b6fd3f3fcbebf1ddf32f5f11faf7ac86e7ef",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.