text stringlengths 2 1.04M | meta dict |
|---|---|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>buffer (24 of 28 overloads)</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_asio... | {
"content_hash": "9a8e72bf3d3c8ab246f93fc1983d4436",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 451,
"avg_line_length": 78.58666666666667,
"alnum_prop": 0.6511706820495419,
"repo_name": "calvinfarias/IC2015-2",
"id": "6237d2db908818b1a42b51de315bab783a0da94a",
"size":... |
<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!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"/>
<title>Member... | {
"content_hash": "53f57ee38cc90ecfb80b7bb6079f7042",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 957,
"avg_line_length": 63,
"alnum_prop": 0.665976535541753,
"repo_name": "madratman/riss_bingham",
"id": "87592bcb6e25a73bd4670d13de88314cdefcd80e",
"size": "4347",
"bin... |
#ifndef UDP_TESTS_H
#define UDP_TESTS_H
#include "../test_params.h"
#include "mbed_trace.h"
#define TRACE_GROUP "GRNT"
NetworkInterface *get_interface();
void drop_bad_packets(UDPSocket &sock, int orig_timeout);
nsapi_version_t get_ip_version();
bool check_oversized_packets(nsapi_error_t error, int &size);
void fi... | {
"content_hash": "c2d62691143d9661ddbb56f81adcf2f0",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 105,
"avg_line_length": 27.614285714285714,
"alnum_prop": 0.7537506466632178,
"repo_name": "andcor02/mbed-os",
"id": "ed5bba5821d55df5c5b5a544f426b28352ac4747",
"size": "25... |
define(['jquery', 'findTableName'], function($, findTableName) {
//找到当前选中的table,返回tablename
function convert2table() {
var tablename;
var leftitemsname = $(".clear-backend").children("input.focused").next().text();
tablename = findTableName(leftitemsname);
return tablename;
}... | {
"content_hash": "77270f5b8ea25945bc0fe6c622d94c7b",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 88,
"avg_line_length": 35,
"alnum_prop": 0.6485714285714286,
"repo_name": "xiangsongtao/jikexueyuan_Homework",
"id": "5bb57557fe43b24e3ae0cde376a80ad20ca6f77d",
"size": "37... |
using System.Web;
using System.Web.Optimization;
namespace WebRoleSample
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new Scr... | {
"content_hash": "a92653e1aa6a8707e4d629e3e41b4f75",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 112,
"avg_line_length": 40.064516129032256,
"alnum_prop": 0.5740740740740741,
"repo_name": "qinxgit/azure-ssl-configure",
"id": "2be986231a27ddcc5e50e032b1926dfce5758c76",
... |
<?php
namespace spec\PhpSpec\Event;
use PhpSpec\ObjectBehavior;
use PhpSpec\Event\ExampleEvent as Example;
use PhpSpec\Loader\Suite;
class SuiteEventSpec extends ObjectBehavior
{
function let(Suite $suite)
{
$this->beConstructedWith($suite, 10, Example::FAILED);
}
function it_is_an_event()
... | {
"content_hash": "ea06e3148bbe4003a7d5ef81039aa471",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 79,
"avg_line_length": 23.892857142857142,
"alnum_prop": 0.6442451420029895,
"repo_name": "Harrisonbro/phpspec",
"id": "87c13c345cb0c0289977ea32ee7eec1a5882503b",
"size": "... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>buffered_write_stream::async_write_some</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../.... | {
"content_hash": "4641ea85a8cec090a0fb046c34ebed79",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 455,
"avg_line_length": 70.33928571428571,
"alnum_prop": 0.6567656765676567,
"repo_name": "c72578/poedit",
"id": "d215da695755c80bb0112a4a5dbdfc1da7097ca5",
"size": "3939",... |
layout: page
title: Shadow Music Award Ceremony
date: 2016-05-24
author: Lori Barnes
tags: weekly links, java
status: published
summary: Sed eu risus tellus. Proin.
banner: images/banner/meeting-01.jpg
booking:
startDate: 01/10/2019
endDate: 01/13/2019
ctyhocn: YQGCNHX
groupCode: SMAC
published: true
---
Fusce ... | {
"content_hash": "74be392cdbc636831e2f3518a01bc818",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 595,
"avg_line_length": 99.71428571428571,
"alnum_prop": 0.8089780324737345,
"repo_name": "KlishGroup/prose-pogs",
"id": "4bb092e5af4dfe4859889a3e59774f5877c5b64d",
"size":... |
package util
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"io/ioutil"
"net/url"
"os"
"strings"
"time"
"k8s.io/kubernetes/pkg/api"
kerrors "k8s.io/kubernetes/pkg/api/errors"
"k8s.io/kubernetes/pkg/api/meta"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/apimachinery/registered"... | {
"content_hash": "8b88dc2c97f83a70270702669835bfd4",
"timestamp": "",
"source": "github",
"line_count": 713,
"max_line_length": 293,
"avg_line_length": 33.23141654978962,
"alnum_prop": 0.7127120790073437,
"repo_name": "f-higashi/dashboard",
"id": "01e34a64edf14b360715032ff81b4d1d59e31e31",
"size": ... |
// Generated by CoffeeScript 1.7.1
/*
TouchController (stick + buttons) for touch devices
Based on the touch demo by Seb Lee-Delisle <http://seb.ly/>
@class bkcore.controllers.TouchController
@author Thibaut 'BKcore' Despoulain <http://bkcore.com>
*/
(function() {
var TouchController, Vec2, exports, _ba... | {
"content_hash": "9dce981922eb5d780c4f49ba671faef6",
"timestamp": "",
"source": "github",
"line_count": 188,
"max_line_length": 84,
"avg_line_length": 24.81382978723404,
"alnum_prop": 0.5562700964630225,
"repo_name": "BKcore/HexGL",
"id": "d8e7f1578b0021d81663622645ebe7a410b0a2cb",
"size": "4665",
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;
using System.Threadin... | {
"content_hash": "e91a096b6d2a6c72dfee654955b07b1d",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 143,
"avg_line_length": 48.31896551724138,
"alnum_prop": 0.6603033006244424,
"repo_name": "agocke/roslyn",
"id": "10e1645fb8c5b9d0026ba7342d3372ee6637fd02",
"size": "5607"... |
// This file has been automatically generated by goFB and should not be edited by hand
// Compiler written by Hammond Pearce and available at github.com/kiwih/goFB
// This file represents the implementation of the Composite Function Block for FlexPRET
#include "FlexPRET.h"
//When running a composite block, note that ... | {
"content_hash": "fbae10d531f7024632d3ade403e39e7b",
"timestamp": "",
"source": "github",
"line_count": 324,
"max_line_length": 146,
"avg_line_length": 34.82716049382716,
"alnum_prop": 0.7479617157036512,
"repo_name": "kiwih/goFB",
"id": "67f084e5ebc2bf98a0e03c9364d9a52263365ebb",
"size": "11284",
... |
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection()
# Installs the Android package. Notice that this method returns a boolean, so you can test
# to see if the installation worked.
device.installPack... | {
"content_hash": "418732af8f97a9a2ab958fb6c523943a",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 90,
"avg_line_length": 30.8,
"alnum_prop": 0.7813852813852814,
"repo_name": "d53dave/DSLFY-Android",
"id": "b9374572e102990fb5735a85b1c956380dcf5865",
"size": "980",
"bin... |
Docker image of [ADAM](https://github.com/bigdatagenomics/adam) built with [Linuxbrew](http://brew.sh/linuxbrew/).
* docker pull [heuermh/adam](https://registry.hub.docker.com/u/heuermh/adam/) | {
"content_hash": "c83238ba7fd95054cd3190d8a13d0f4b",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 114,
"avg_line_length": 64.66666666666667,
"alnum_prop": 0.7474226804123711,
"repo_name": "heuermh/docker-linuxbrew-bio",
"id": "2c4a22274bf079243f8468d9c8b48473fd987828",
"... |
package com.codingpan.leetcode.todo;
import java.util.TreeSet;
/**
* [220. Contains Duplicate III](https://leetcode.com/problems/contains-duplicate-iii/description/)
* Given an array of integers, find out whether there are two distinct indices i and j in the array
* such that the absolute difference between nums[i... | {
"content_hash": "3d8d906d34f13a9b7922c35171ac31d4",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 99,
"avg_line_length": 33.490566037735846,
"alnum_prop": 0.5464788732394367,
"repo_name": "wszdwp/AlgorithmPractice",
"id": "a7cb5d3aa682e28530d86e765e2ecafe73cd59ab",
"siz... |
package org.kuali.rice.kew.api.doctype;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.kuali.rice.core.api.CoreConstants;
import org.kuali.rice.core.api.mo.AbstractDataTransferObject;
import org.kuali.rice.core.api.mo.ModelBuilder;
import org.kuali.rice.k... | {
"content_hash": "a8584e18c091378ae689c80eab598c31",
"timestamp": "",
"source": "github",
"line_count": 594,
"max_line_length": 128,
"avg_line_length": 33.42087542087542,
"alnum_prop": 0.6600342534757203,
"repo_name": "kuali/rice-playground",
"id": "6b7da5132b06b23c3c88881b0bc9f355f700babd",
"size"... |
package co.cask.cdap.data2.transaction.stream;
import co.cask.cdap.api.flow.flowlet.StreamEvent;
import co.cask.cdap.data2.queue.ConsumerConfig;
import co.cask.cdap.data2.queue.DequeueResult;
import co.cask.cdap.proto.Id;
import co.cask.tephra.Transaction;
import java.io.IOException;
import java.util.Collection;
imp... | {
"content_hash": "d5739c6eb672475dbe63ffb093a048c5",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 105,
"avg_line_length": 23.0625,
"alnum_prop": 0.7224932249322493,
"repo_name": "chtyim/cdap",
"id": "5e7c6f86c20183971e30f463dc7e8d2256629440",
"size": "2442",
"binary":... |
package main // import "github.com/hashicorp/consul/connect/certgen"
import (
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"github.com/hashicorp/consul/agent/connect"
"github.com/hashicorp/consul/agent/structs"
"github.com/mitchellh/go-testing-interface"
)
func main() {
var numCAs = 2
var services = []string{"web",... | {
"content_hash": "3dd2f39a6314c7ea5944e09628494d8b",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 70,
"avg_line_length": 24.46551724137931,
"alnum_prop": 0.6525722339675828,
"repo_name": "mhausenblas/burry.sh",
"id": "89c424576199943dee9fb91818bfadc59e30fd97",
"size": "... |
namespace Nancy.Templates.CSharp.AspNetHost
{
using Nancy;
public class IndexModule : NancyModule
{
public IndexModule()
{
Get["/"] = parameters => {
return View["index"];
};
}
}
} | {
"content_hash": "bb548290627b55ae594b1fec04f35d7a",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 44,
"avg_line_length": 19.642857142857142,
"alnum_prop": 0.4618181818181818,
"repo_name": "tparnell8/Nancy.Templates",
"id": "7cb2bc5aaca018a153213f9e2da274fe03027392",
"si... |
/* eslint-disable import/extensions */
const request = require('request')
const helpers = require('../../../lib/test_helpers.js')
describe('cyclecounter', () => {
// The only thing that changes is the form attribute, so why not just re-use the object
const fieldsToCheckFor = ['DayCount', 'YearCount', 'Time', 'Date... | {
"content_hash": "82272f756d1e875dd9fa161593aa811b",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 89,
"avg_line_length": 42.5,
"alnum_prop": 0.7142857142857143,
"repo_name": "apis-is/apis",
"id": "a3bf1a1ef04b8d0846b2b4e0ef2a0fbc40e7eda4",
"size": "595",
"binary": fal... |
#import "TiProxy.h"
#ifdef USE_TI_UIIPAD
// if we use a split window, we need to include the ipad popover
#ifdef USE_TI_UIIPADSPLITWINDOW
#ifndef USE_TI_UIIPADPOPOVER
#define USE_TI_UIIPADPOPOVER
#endif
#endif
#ifdef USE_TI_UIIPADPOPOVER
#import "TiUIiPadPopoverProxy.h"
#endif
#ifdef USE_TI_UIIPADSPLITWINDOW
#imp... | {
"content_hash": "2fdf07dced9e95c00a8dae85d8887765",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 72,
"avg_line_length": 21.67924528301887,
"alnum_prop": 0.7928633594429939,
"repo_name": "AppWerft/KrickelKrake",
"id": "1b74f61459908cbcc0239b595e1bc040757ea2fd",
"size": ... |
mysql_error()
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
include "connect.inc";
$tmp = NULL;
$link = NULL;
if (false !== ($tmp = @mysql_error()))
printf("[001] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
if (NULL !== ($tmp = @mysql_... | {
"content_hash": "32db5ffe75d4618e1b9b8e21668dfcda",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 141,
"avg_line_length": 33.470588235294116,
"alnum_prop": 0.6221441124780316,
"repo_name": "anindoasaha/php_nginx",
"id": "a2cf7e003430ae5385c0b225511d10b591141eec",
"size"... |
import sys
number = 0
while number >= 0:
print "Enter number:"
number = float(sys.stdin.readline())
if number >= 0:
if number % 2 == 0:
print "Even"
else:
print "Odd"
print "Bye"
| {
"content_hash": "82e55ed33e6b245aa18d90b9fe6c3a65",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 40,
"avg_line_length": 19.333333333333332,
"alnum_prop": 0.5129310344827587,
"repo_name": "nathano/Perl_to_Python_Converter",
"id": "6adfe6c6e9ace17ee4fbdb2e555bacf164d19366"... |
content::RegisterIPCLogger(msg_id, logger)
#include "content/shell/common/shell_messages.h"
#endif
#if defined(OS_ANDROID)
#include "base/posix/global_descriptors.h"
#include "content/shell/android/shell_descriptors.h"
#endif
#if defined(OS_MACOSX)
#include "base/mac/os_crash_dumps.h"
#include "components/crash/a... | {
"content_hash": "8599341047f23893ef94be370280495e",
"timestamp": "",
"source": "github",
"line_count": 302,
"max_line_length": 80,
"avg_line_length": 35.794701986754966,
"alnum_prop": 0.7147086031452359,
"repo_name": "mou4e/zirconium",
"id": "ee1878ce1a7bad22e42cd6ab38c42dd5c3137ad7",
"size": "126... |
Goal: Show how to use Beam Notebooks for interactive development of pipelines and use the Dataframes API
## Demo Setup and Notes
To set up this demo, you will need to create a Dataflow Notebooks environment and clone the training-data-analyst repo. This can be done in advance of the demo for the sake of time, but sho... | {
"content_hash": "3ae434b2a5030ee9bc85bad9fe9ad96f",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 338,
"avg_line_length": 58.285714285714285,
"alnum_prop": 0.7640931372549019,
"repo_name": "GoogleCloudPlatform/training-data-analyst",
"id": "d57b6716ca42f7df309751d7ae2e3ac... |
require 'spec_helper'
describe RailsTemplater::Templater do
let(:group) { 'sample' }
its(:fixture_replacement) { should be_kind_of(RailsTemplater::FixtureReplacement) }
its(:javascript_framework) { should be_kind_of(RailsTemplater::JavaScriptFramework) }
its(:orm) { should be_kind_of(RailsTemplater::Orm) }
... | {
"content_hash": "e4f2370e2466ceed29e876ac66caa1ae",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 109,
"avg_line_length": 26.83076923076923,
"alnum_prop": 0.6863532110091743,
"repo_name": "kfaustino/rails-templater",
"id": "dc578c19f315a076a2abd5f98ec9186445e7d94e",
"si... |
<resources>
<string name="app_name">Device ID</string>
</resources>
| {
"content_hash": "3d565d4d5bd4ff465f3b8c97e013d9b6",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 46,
"avg_line_length": 24,
"alnum_prop": 0.6805555555555556,
"repo_name": "joststricker/device-id",
"id": "36e9ddfb4251fe99ad759afd49e6d968efafb4f7",
"size": "72",
"binary... |
"""
Snap7 client used for connection to a siemens 7 server.
"""
import re
import logging
from ctypes import byref, create_string_buffer, sizeof
from ctypes import Array, c_byte, c_char_p, c_int, c_int32, c_uint16, c_ulong, c_void_p
from datetime import datetime
from typing import List, Optional, Tuple, Union
from .com... | {
"content_hash": "c8014c09a10026ef6a60ab84dddf21b5",
"timestamp": "",
"source": "github",
"line_count": 1566,
"max_line_length": 142,
"avg_line_length": 33.577905491698594,
"alnum_prop": 0.5620637848734382,
"repo_name": "gijzelaerr/python-snap7",
"id": "103d5e553222560b908d12bd0b5935cab020fe73",
"s... |
<?xml version='1.0' encoding='UTF-8'?>
<Document>
<Header>
<SchemaName>Location</SchemaName>
<Identifier>location_geonames_2748074</Identifier>
<DocumentState>public</DocumentState>
<TimeStamp>1390753461702</TimeStamp>
<SummaryFields>
<Title>NL > North Brabant > Bergeijk > Rijt</Tit... | {
"content_hash": "5e98e70d058a06cb6fc50a1a9dfc3999",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 83,
"avg_line_length": 31.482758620689655,
"alnum_prop": 0.664841182913472,
"repo_name": "delving/oscr-data",
"id": "3699bd03d56c1668c8158393571dbd3eebb1fbca",
"size": "913... |
package main
import (
"fmt"
"log"
"net/http"
"runtime"
"strings"
"text/template"
"github.com/studygolang/mux"
)
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
func main() {
router := initRouter()
http.Handle("/", router)
log.Fatal(http.ListenAndServe(":9999", nil))
}
// TODO:多人同时请求不同的包,验证可能会失败
va... | {
"content_hash": "688c858e802db1cca5938a529f54cd10",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 89,
"avg_line_length": 15.633802816901408,
"alnum_prop": 0.6342342342342342,
"repo_name": "xiexingguang/studygolang",
"id": "b3d5c919012db7c22933e982c5ddd6e399013318",
"siz... |
'use strict';
/**
* Class representing a AccessPolicyCreateOrUpdateParameters.
*/
class AccessPolicyCreateOrUpdateParameters {
/**
* Create a AccessPolicyCreateOrUpdateParameters.
* @member {string} [principalObjectId] The objectId of the principal in
* Azure Active Directory.
* @member {string} [des... | {
"content_hash": "ddad45f908fef0996eb6a835efc01d00",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 79,
"avg_line_length": 26.333333333333332,
"alnum_prop": 0.5476059438635112,
"repo_name": "xingwu1/azure-sdk-for-node",
"id": "077d725860f9e2008f6997b6883f9b22d9b4d8ce",
"s... |
var fs = require('fs');
/**
* Mock Data
*/
var _tags = 'dev misc etc hello world thoughts'.split(' ');
var _lorem = 'Non eram nescius Brute cum quae summis ingeniis exquisitaque'
+ ' doctrina philosophi Graeco sermone tractavissent ea Latinis litteris mandaremus'
+ ' fore ut hic noster labor in varias reprehensi... | {
"content_hash": "398094a02bfe6cb38731332da27f5ebf",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 84,
"avg_line_length": 40.412213740458014,
"alnum_prop": 0.6885153003400075,
"repo_name": "chjj/dilated",
"id": "660d321968af3a8c46daff356f566c08ce7a7f43",
"size": "5383",... |
{% extends 'base.html' %}
{% block content %}
<h2>Register success!</h2>
{% endblock %} | {
"content_hash": "f4c0727f0bb83d88c4dd3e63c5f321ec",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 27,
"avg_line_length": 13,
"alnum_prop": 0.5934065934065934,
"repo_name": "jussi-kalliokoski/paul",
"id": "6e98667bdd99d9d2216c84ea005413b7ccf1fe50",
"size": "91",
"binary... |
package io.druid.segment.realtime.appenderator;
import com.google.common.base.Supplier;
import io.druid.data.input.InputRow;
import javax.annotation.Nullable;
/**
* Result of {@link AppenderatorDriver#add(InputRow, String, Supplier, boolean)}. It contains the identifier of the
* segment which the InputRow is ad... | {
"content_hash": "5d0ddfc279a78ec4c2380705926288ca",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 127,
"avg_line_length": 26.675675675675677,
"alnum_prop": 0.7689969604863222,
"repo_name": "winval/druid",
"id": "4838d58a227fcb6f90d9eaac16c98ee99152fd91",
"size": "2779",... |
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/exec.h>
#include <sys/fcntl.h>
#include <sys/imgact.h>
#include <sys/imgact_aout.h>
#include <sys/imgact_elf.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/module.h>
#incl... | {
"content_hash": "3da574bd6121674bf89fe4be596baf91",
"timestamp": "",
"source": "github",
"line_count": 1135,
"max_line_length": 78,
"avg_line_length": 28.01762114537445,
"alnum_prop": 0.6517295597484277,
"repo_name": "jrobhoward/SCADAbase",
"id": "ab46672b9d87c6874ec8d2de888c48fdd91827b2",
"size":... |
import { dirname, join, normalize } from '@angular-devkit/core';
import {
Rule,
SchematicContext,
SchematicsException,
Tree,
chain,
noop,
schematic,
} from '@angular-devkit/schematics';
import { Schema as ComponentOptions } from '../component/schema';
import * as ts from '../third_party/github.com/Micros... | {
"content_hash": "2358f50847501bb1d1f9ebc7574969dc",
"timestamp": "",
"source": "github",
"line_count": 323,
"max_line_length": 108,
"avg_line_length": 34.90402476780186,
"alnum_prop": 0.684761397906688,
"repo_name": "hansl/angular-cli",
"id": "a2d661abf5659c4ed69d6008336911264069cb06",
"size": "11... |
package tests.integration.Trees.cartesianTree;
import org.junit.Assert;
import org.junit.Test;
import SLPs.SLPExtractor;
import cartesianTree.CartesianTreeManagerFactory;
import cartesianTree.slpBuilders.CartesianSlpTreeBuilder;
import cartesianTree.slpBuilders.ICartesianSlpTreeBuilder;
import commons.settings... | {
"content_hash": "3e8a5e11dcde3581c2ba1e4eade8d277",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 206,
"avg_line_length": 44.193548387096776,
"alnum_prop": 0.7905109489051095,
"repo_name": "jaamal/overclocking",
"id": "40bd889ece914f1060f9cf78df92e1163e112d93",
"size": ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tlc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | {
"content_hash": "cdb245e7ad78e70d7fd86994c76abb7a",
"timestamp": "",
"source": "github",
"line_count": 167,
"max_line_length": 159,
"avg_line_length": 39.616766467065865,
"alnum_prop": 0.5309854897218863,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "6ea18b7501c7391743f77e2cf3293e4cef9349fe",... |
from django.forms.models import ModelForm, model_to_dict
from moderation.models import MODERATION_STATUS_PENDING,\
MODERATION_STATUS_REJECTED
from django.core.exceptions import ObjectDoesNotExist
class BaseModeratedObjectForm(ModelForm):
def __init__(self, *args, **kwargs):
instance = kwargs.get('ins... | {
"content_hash": "f68dac2c244a621c7676c08e9ea49ee8",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 79,
"avg_line_length": 38.8,
"alnum_prop": 0.6113402061855671,
"repo_name": "ebrelsford/django-moderation",
"id": "c352b6d4d92d1064992910fab7f8c068c1bcc264",
"size": "970",... |
layout: guide
---
React exports a handful of utility types that may be useful to you when typing
advanced React patterns. In previous sections we have seen a few of them. The
following is a complete reference for each of these types along with some
examples for how/where to use them.
Table of contents:
- [`React.Nod... | {
"content_hash": "83954184c09dd018cb0d0180595d925c",
"timestamp": "",
"source": "github",
"line_count": 344,
"max_line_length": 353,
"avg_line_length": 36.901162790697676,
"alnum_prop": 0.7271151725224515,
"repo_name": "claudiopro/flow",
"id": "8b7e81b4f830bb676b0fe3bc7454b2a9b8914c33",
"size": "12... |
package org.apache.flink.graph.asm.degree.filter.undirected;
import org.apache.flink.graph.Graph;
import org.apache.flink.graph.asm.AsmTestBase;
import org.apache.flink.graph.asm.dataset.ChecksumHashCode.Checksum;
import org.apache.flink.graph.library.metric.ChecksumHashCode;
import org.apache.flink.test.util.TestBa... | {
"content_hash": "e425fa81f62cdca2e3a3a515f25b3e4b",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 91,
"avg_line_length": 25.433333333333334,
"alnum_prop": 0.7077326343381389,
"repo_name": "zohar-mizrahi/flink",
"id": "51e7712f5893a69cd25e25c847f63d898600102f",
"size": "... |
package org.waveprotocol.wave.client.common.util;
import com.google.gwt.core.client.GWT;
/**
* Collection of constants defining various browser quirky behaviours.
*
* Each constant should be accompanied by a detailed comment, and a "Tested:"
* section detailing which browsers and operating systems the quirk ha... | {
"content_hash": "fa423acbcc89249022d3b60bc13e642d",
"timestamp": "",
"source": "github",
"line_count": 384,
"max_line_length": 95,
"avg_line_length": 34.802083333333336,
"alnum_prop": 0.6865459443280455,
"repo_name": "somehume/wavefu",
"id": "378e93dd7a84e003936436baac38f0a7c5d86609",
"size": "139... |
import {IStructure} from "./_structure";
import {StructureNode, StatementNode} from "../../nodes";
import {INode} from "../../nodes/_inode";
import {IStatement, MacroCall, NativeSQL} from "../../2_statements/statements/_statement";
import {IStructureRunnable} from "./_structure_runnable";
import {IMatch} from "./_match... | {
"content_hash": "18a079d86682e0cfd7c6afaf37e74223",
"timestamp": "",
"source": "github",
"line_count": 373,
"max_line_length": 124,
"avg_line_length": 25.353887399463808,
"alnum_prop": 0.5945860209368722,
"repo_name": "larshp/abapOpenChecksJS",
"id": "85cc92a8a9ecf8f54d32dc9eafc877a7111200d3",
"si... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Generated by Apache Maven Doxia at Jul 16, 2012 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=... | {
"content_hash": "fb96d09adce5646e907d26b1263690ae",
"timestamp": "",
"source": "github",
"line_count": 443,
"max_line_length": 387,
"avg_line_length": 51.59367945823928,
"alnum_prop": 0.5402957647882394,
"repo_name": "hemingwang0902/mochasoft-framework",
"id": "b6b30c4af90b070641f7ce7c2c98473b0c3042... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package p_ServidorUDP;
import java.net.InetAddress;
/**
* Clase creada para almacenar la informacion de cada cliente, en la lista de... | {
"content_hash": "0aba2c4f4ebdf411bdda45da690cd1be",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 88,
"avg_line_length": 20.653846153846153,
"alnum_prop": 0.6154562383612663,
"repo_name": "Joselluchp/ARC_Sesiones",
"id": "665ea49f38721f5cf1757a79372091d5beb39f16",
"size... |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | {
"content_hash": "05d2f683ca967b6f0ae7111a037b42ec",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 130,
"avg_line_length": 31.240384615384617,
"alnum_prop": 0.6398891966759003,
"repo_name": "googleads/googleads-java-lib",
"id": "4102578b90189f55b134d4e7db6025a208ef0d63",
... |
<?php
namespace Dashboard;
use ManageComponent\Model\DepartmentTable;
use ManageComponent\Model\DesignationTable;
use ManageComponent\Model\SkillTable;
use ManageComponent\Model\TopicTable;
class Module
{
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
... | {
"content_hash": "7b57e9823f674fd03a5c1e0cf876433c",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 73,
"avg_line_length": 25.868852459016395,
"alnum_prop": 0.5716096324461344,
"repo_name": "narwaria/test",
"id": "a3d8dfd79913ed0c58e142940400e09b60812951",
"size": "1578",... |
Your program should display the outputs shown in this table for the given
inputs provided:
| Input | Output |
| ------------- | --------------------- |
| 50184385 | Valid product code! |
| 036000241457 | Valid product code! |
| 50174385 | Invalid product code! |
| 9330462119318 | ... | {
"content_hash": "1086d8e2a477689f42014c7f6ac27755",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 73,
"avg_line_length": 38.90909090909091,
"alnum_prop": 0.5934579439252337,
"repo_name": "uccser/cs-unplugged",
"id": "2bd4cb463ba882817ca7fc9c039702f9d817b1d0",
"size": "5... |
/**
* This file is provided by Facebook for testing and evaluation purposes
* only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICUL... | {
"content_hash": "3531d720fb0fb232f0c2e6ef92d686c1",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 77,
"avg_line_length": 26.26388888888889,
"alnum_prop": 0.6351136964569011,
"repo_name": "chentsulin/relay-chat",
"id": "d1aefcd5c21eecfec244e6a423f24c4ac2fe0733",
"size": ... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<script src="https://ajax.googleapis.com... | {
"content_hash": "46f1010f61482492ba0b18df389def62",
"timestamp": "",
"source": "github",
"line_count": 181,
"max_line_length": 133,
"avg_line_length": 41.54696132596685,
"alnum_prop": 0.542686170212766,
"repo_name": "danasselin/line-cook",
"id": "841ecbc5431dd96113011f482168753441ff0049",
"size": ... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package org.opencv.samples.myarm;
public final class R {
public static final class attr {
}
public static final class drawabl... | {
"content_hash": "41add641502c7f7b4cfc12273ab258ec",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 77,
"avg_line_length": 36.58974358974359,
"alnum_prop": 0.6951646811492642,
"repo_name": "SWJTUyuhui/RoboticArm-",
"id": "aeb09dbdeb4a8db7fc8f5e9b5f7f76580c20bf75",
"size":... |
"""Helper classes that list&validate all attributes to serialize to SavedModel."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import abc
import six
from tensorflow.python.keras.saving.saved_model import json_utils
from tensorflow.python.training.track... | {
"content_hash": "4894553db2e3400db1fac952867dc151",
"timestamp": "",
"source": "github",
"line_count": 158,
"max_line_length": 100,
"avg_line_length": 34.56962025316456,
"alnum_prop": 0.7226290735994141,
"repo_name": "gunan/tensorflow",
"id": "0065e6d786e95bed952abb1ca730c3f3cd19ff56",
"size": "61... |
using EPiServer.Cms.UI.AspNetIdentity;
using EPiServer.Core;
using EPiServer.Reference.Commerce.Shared.Identity;
using EPiServer.Reference.Commerce.Site.Features.Login.Services;
using EPiServer.Reference.Commerce.Site.Features.Shared.Extensions;
using EPiServer.Web;
using EPiServer.Web.Mvc;
using System.Collections.Ge... | {
"content_hash": "24f4fa896b050fd146aca9f33929d1da",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 183,
"avg_line_length": 34.573170731707314,
"alnum_prop": 0.6373897707231041,
"repo_name": "Geta/SEO.Sitemaps",
"id": "dc64570daa4aaf9e7a8376dd61444d6bde3151cf",
"size": "2... |
<?php $this->load->view('admin/header'); ?>
<div id="content">
<div class="inner">
<div class="topcolumn">
<div class="logo"></div>
<ul id="shortcut">
<li> <a href="<?php echo base_url('admin/dashboard'); ?>" title="Back To home"> <img src="<?php echo base_url('stati... | {
"content_hash": "bd6f9d0f3c241a3b57bb84295d54207c",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 221,
"avg_line_length": 78,
"alnum_prop": 0.558974358974359,
"repo_name": "Arkeon-net/bandung",
"id": "09ae422dd194c596a6840abec97db6d35016f8fd",
"size": "1170",
"binary"... |
package com.blazebit.persistence.view.impl.objectbuilder;
import com.blazebit.persistence.view.impl.collection.PluralObjectFactory;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.uti... | {
"content_hash": "700081c16d471ae04abad83d0ddc9789",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 158,
"avg_line_length": 30.757142857142856,
"alnum_prop": 0.6758012076172782,
"repo_name": "Blazebit/blaze-persistence",
"id": "95b9c145058da039febaf09ae341234f1cb046ff",
"... |
.class public final enum Lcom/android/internal/telephony/PhoneConstants$State;
.super Ljava/lang/Enum;
.source "PhoneConstants.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/internal/telephony/PhoneConstants;
.end annotation
.annotation system Ldalvik/annotation/In... | {
"content_hash": "f58daa5634023bef791593085f494a35",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 137,
"avg_line_length": 31.15,
"alnum_prop": 0.7418023389130933,
"repo_name": "Liberations/Flyme5_devices_base_cm",
"id": "283a0b7bf4e63744946e88148b84a3c59b6600c9",
"size... |
/*
* 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
* distributed u... | {
"content_hash": "85b49924674b04d009b36289f5c05af5",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 104,
"avg_line_length": 41.62376237623762,
"alnum_prop": 0.6527117031398668,
"repo_name": "franz1981/JCTools",
"id": "9a581f5992eed880e2018ac27f153f5fc2538b6b",
"size": "4... |
extern crate sdl2;
fn main() {
// start sdl2
let ctx = sdl2::init().unwrap();
let video_ctx = ctx.video().unwrap();
let mut timer = ctx.timer().unwrap();
// Create a window
let mut window = match video_ctx.window("eg01", 640, 480).position_centered().opengl().build() {
Ok(window) => ... | {
"content_hash": "2959eeec69ef058b34199f6e96faa826",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 100,
"avg_line_length": 22.136363636363637,
"alnum_prop": 0.5749486652977412,
"repo_name": "jdeseno/rs-sdl2-examples",
"id": "fb4c7489358083ffad8e590f63ac6f74d9e2b31f",
"si... |
import numpy as np
import os
import sys
import matplotlib.pyplot as plt
import json
from mpl_toolkits.mplot3d import Axes3D
#sys.path.append(os.path.join(os.path.dirname(__file__),"../"))
from crowdsourcing.interfaces.mechanical_turk import *
from crowdsourcing.interfaces.local_webserver import *
from crowdsourcing.ut... | {
"content_hash": "f5401d1cf82b1db8149333eb79cd82be",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 675,
"avg_line_length": 73.37142857142857,
"alnum_prop": 0.7610981308411215,
"repo_name": "sbranson/online_crowdsourcing",
"id": "9353ada9e3fba211f9f107c0a3fd4e8811908e3a",
... |
if VERSION < v"0.4.0-dev"
Base.copy{T,A,uplo}(t::Triangular{T,A,uplo}) = Triangular(copy(t.data), uplo)
typealias AbstractTriangular Triangular
typealias UpperTriangular{T,M} Triangular{T,M,:U,false}
set_zero_subnormals(yes::Bool) = ccall(:jl_zero_subnormals, Bool, (Bool,), yes)
else
import Base.Lin... | {
"content_hash": "cfbd5a0a273bc7ea5e858504eea5b5f7",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 180,
"avg_line_length": 59,
"alnum_prop": 0.7046004842615012,
"repo_name": "tkelman/GaussianMixtures.jl",
"id": "a58ec080d64c601d0f7041c7465f2efa0c8b84ae",
"size": "863",
... |
name 'test_java'
maintainer 'test cookbook'
license 'All rights reserved'
description 'A test cookbook to land testing jar for java cookbook'
version '0.1.0'
| {
"content_hash": "7f40aca32c6a717fffb2dd37942a2dea",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 72,
"avg_line_length": 39.8,
"alnum_prop": 0.6180904522613065,
"repo_name": "kruzda/elasticsearch",
"id": "38d8b72fa1ac7dcc683d022218ffde2fd8dcc7bf",
"size": "199",
"binar... |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Web;
namespace AThousandCounts.Models
{
public class CountContext : DbContext
{
public CountContext() : base("AzureSqlConnection... | {
"content_hash": "6f65cdc27e0c094aa28c5121598ba9fd",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 78,
"avg_line_length": 25.782608695652176,
"alnum_prop": 0.6677908937605397,
"repo_name": "erooijak/athousandcounts",
"id": "6ff77c6adbc3a13c527ddf46738b508ca5e5f217",
"siz... |
#ifndef INTEGRATOR_HPP
#define INTEGRATOR_HPP
#include "../rhs/rhs.h"
#include "../engine/item.h"
#include "engine/item_dim.h"
#include "utils/vartype.hpp"
#include "utils/ptr_passer.hpp"
//!This class defines the integration base class
/*!
* This class defines the base integration class, the interface that is used b... | {
"content_hash": "c95a92a0a1f70bade563ba61515c98e8",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 110,
"avg_line_length": 37,
"alnum_prop": 0.6597051597051597,
"repo_name": "UW-Kutz-Lab/lilac",
"id": "820433e12a89c3c1ebc46a4792870efc10fa613f",
"size": "3182",
"binary"... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Glonium lineare f. angustissimum De Not.
### Remarks
null | {
"content_hash": "00393e36c4e82decc610cf73c0a1942e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 40,
"avg_line_length": 11.153846153846153,
"alnum_prop": 0.7103448275862069,
"repo_name": "mdoering/backbone",
"id": "968522aecc2984e7dadb2b6795606621df8fdbe0",
"size": "20... |
/*global loadFixtures: true, waits:true, beforeEach: true, it: true, expect: true, describe:true, spyOn: true, white: true, vars: true, jQuery:true, $:true*/
/*jslint browser: true, devel: true, bitwise: true, debug: true, nomen: true, sloppy: false, indent: 2*/
describe("Array Prototypes", function () {
"use strict... | {
"content_hash": "c6ff425494a960bf6eeb0aabb7d196a8",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 157,
"avg_line_length": 36.2,
"alnum_prop": 0.6740331491712708,
"repo_name": "dperrymorrow/lil-p",
"id": "edf7b361e3644c0faa4f90df3e6b718024325d1a",
"size": "362",
"binar... |
"""This application demonstrates how to perform basic operations with the
Google Cloud Translate API
For more information, the documentation at
https://cloud.google.com/translate/docs.
"""
import argparse
from google.cloud import translate
import six
def detect_language(text):
"""Detects the text's language.""... | {
"content_hash": "bd15ed9ab28536f5318f5c3b79b14878",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 79,
"avg_line_length": 33.109375,
"alnum_prop": 0.6882963662104766,
"repo_name": "sharbison3/python-docs-samples",
"id": "91aef63d5c849f7a804e892742b330c9f01bb9c3",
"size"... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.ablx</groupId>
<artifactId>currency-ws-client</artifactId>
<ve... | {
"content_hash": "75a801e5599a3be338953096c6a791da",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 104,
"avg_line_length": 31.582417582417584,
"alnum_prop": 0.6826722338204593,
"repo_name": "mikrethor/samples",
"id": "6e174aa096010865942bb233fec7c8c81a034330",
"size": "2... |
package com.google.common.util.concurrent;
public abstract class AbstractExecutionThreadService
implements com.google.common.base.Service
{
// Constructors
public AbstractExecutionThreadService(){
}
// Methods
protected abstract void run() throws java.lang.Exception;
public java.lang.String toString... | {
"content_hash": "50df6f1026bc4887f44bfbbe02e40c0b",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 89,
"avg_line_length": 29.282608695652176,
"alnum_prop": 0.7371937639198218,
"repo_name": "Orange-OpenSource/matos-profiles",
"id": "1f2bb7e1fc31ba25fc35810a390e9fa12ed78bff"... |
// Code generated by client-gen. DO NOT EDIT.
package v1
import (
"context"
"time"
v1 "k8s.io/api/admissionregistration/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
scheme "k8s.io/client-go/kubernetes/scheme"
rest "k8s.io/clie... | {
"content_hash": "52ab2347163b5c082364c71705f2bd57",
"timestamp": "",
"source": "github",
"line_count": 154,
"max_line_length": 217,
"avg_line_length": 42.91558441558441,
"alnum_prop": 0.7999697382357391,
"repo_name": "davidz627/kubernetes",
"id": "e9787bf408f5894ebea978d3b665f50b13fc4119",
"size":... |
require 'torch'
require 'nn'
require 'nngraph'
require 'optim'
require('pl.stringx').import()
require 'pl.seq'
require 'utils/SymbolsManager'
include "../utils/utils.lua"
local MinibatchLoader = require 'utils.MinibatchLoader'
function transfer_data(x)
if opt.gpuid>=0 then
return x:cuda()
end
return x
end
f... | {
"content_hash": "dea0ef40c5c80bfb01d99445f98ab85b",
"timestamp": "",
"source": "github",
"line_count": 399,
"max_line_length": 120,
"avg_line_length": 33.576441102756895,
"alnum_prop": 0.6396954542061656,
"repo_name": "donglixp/lang2logic",
"id": "d61e61f232e71ad77f96b1a76b22260c766203d0",
"size":... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_72) on Wed Nov 05 20:55:19 EST 2014 -->
<title>Cassandra.AsyncClient.get_indexed_slices_call (apache-cassandra API)</title>
<meta name=... | {
"content_hash": "9d39e4d6a0e88423540367452e91b370",
"timestamp": "",
"source": "github",
"line_count": 348,
"max_line_length": 754,
"avg_line_length": 48.27298850574713,
"alnum_prop": 0.6555747365914638,
"repo_name": "anuragkapur/cassandra-2.1.2-ak-skynet",
"id": "7b2ced2e0993c6052bcca2cedb0779b25e0... |
package engine.gui;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.TitledBorder;
import engine.GameEngine;
import model.unit.Unit;
pu... | {
"content_hash": "fe185e13a62ce059ff218b1f0c9b9d5a",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 119,
"avg_line_length": 26,
"alnum_prop": 0.790521978021978,
"repo_name": "bradleysykes/game_leprechaun",
"id": "c2278be8fd9a779d991fd4a84c56128f1ee03294",
"size": "1456",
... |
var
Garam = require(process.cwd()+'/server/lib/Garam')
, _ = require('underscore')
,BaseTransaction = require(process.cwd()+'/server/lib/BaseTransaction');
module.exports = BaseTransaction.extend({
pid:'ServerLoginWorkerStatusRes',
create : function() {
this._packet = {
st... | {
"content_hash": "88ddb97b2c6f81f7683ebe2ba9af9abe",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 79,
"avg_line_length": 19,
"alnum_prop": 0.5894736842105263,
"repo_name": "ssdosso/garam",
"id": "f9b36224a44be9a92fbfca2ca286d0849e07cba7",
"size": "707",
"binary": fals... |
package com.plugin.content;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import com.plugin.util.LogUtil;
import android.app.Application;
import android.content.Context;
import dalvik.system.DexClassLoader;
/**
* <Pre>
* @author cailiming
* </Pre>
*/
public class PluginDescr... | {
"content_hash": "6bcc5204bff1e1d96af098b2fb5d967a",
"timestamp": "",
"source": "github",
"line_count": 279,
"max_line_length": 121,
"avg_line_length": 23.774193548387096,
"alnum_prop": 0.7227498869289914,
"repo_name": "GKerison/Android-Plugin-Framework",
"id": "d1e5e69e2bca4084e9820d0ac3d3912fa25fcc... |
namespace Springboard.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
public sealed partial class ForeignKeyFix : IMigrat... | {
"content_hash": "fa535f7193835d84ffe02da899e16335",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 96,
"avg_line_length": 28.571428571428573,
"alnum_prop": 0.6225,
"repo_name": "CSC394-Springboard/Springboard",
"id": "ea4b9cdb9ab29bc45c2f852c967e90b12661583a",
"size": "8... |
"""
Collects Web IDL definitions in IDL files into a Python object per Blink
component.
Collected IDL definitions are parsed into ASTs and saved into a file with
a label of Blink component.
"""
import optparse
import utilities
import web_idl
from idl_parser import idl_parser
from idl_parser import idl_lexer
_VALID... | {
"content_hash": "8fe1a96a4840617d3ed484177499ecac",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 78,
"avg_line_length": 28.846153846153847,
"alnum_prop": 0.6544,
"repo_name": "nwjs/chromium.src",
"id": "750304dd2492835f6e3dd81d4720935ff21b54d9",
"size": "2037",
"bina... |
require 'spec_helper'
describe Target do
# pending "add some examples to (or delete) #{__FILE__}"
end
| {
"content_hash": "9f765ef31ad41371a4fe65b508964129",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 58,
"avg_line_length": 21,
"alnum_prop": 0.6857142857142857,
"repo_name": "TonFw/Pinger",
"id": "7e366835b9ecd180aed4fc8f8763c250ccfa3e33",
"size": "105",
"binary": false,... |
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Today - Sunny - 83/63"
android:id="@+id/list_item_forecast_textview"
android:minHeigh... | {
"content_hash": "9265d79f23d54a96c95fd26d031c1363",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 68,
"avg_line_length": 49.625,
"alnum_prop": 0.672544080604534,
"repo_name": "voxelgenesis/Sunshine-Version-2",
"id": "5f59cdcb942ed933c103d52ef483d10a408195ce",
"size": "39... |
set `planner.slice_target`=1;
select cast(t.data.p_partkey as varchar) from schema_change_empty_batch_part t order by t.data.p_partkey limit 5;
reset `planner.slice_target`;
| {
"content_hash": "b75e04f12f23a10d053f99bad06bf143",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 113,
"avg_line_length": 58,
"alnum_prop": 0.7701149425287356,
"repo_name": "cchang738/drill-test-framework",
"id": "f87b6560d83521c88dc03c82177813b310228e8d",
"size": "174",... |
module Rails
module Paths
# This object is an extended hash that behaves as root of the <tt>Rails::Paths</tt> system.
# It allows you to collect information about how you want to structure your application
# paths by a Hash like API. It requires you to give a physical path on initialization.
#
# ... | {
"content_hash": "ec5c596f2ebe1653d2b43ce6225fb8a5",
"timestamp": "",
"source": "github",
"line_count": 218,
"max_line_length": 95,
"avg_line_length": 26.58256880733945,
"alnum_prop": 0.5287316652286453,
"repo_name": "tijwelch/rails",
"id": "10925de8b20407ac876bd9dde7e2d8514ba46e50",
"size": "5795"... |
namespace bookmarks {
class BookmarkModel;
}
// ChromeHistoryBackendClient implements history::HistoryBackendClient interface
// to provides access to embedder-specific features.
class ChromeHistoryBackendClient : public history::HistoryBackendClient {
public:
explicit ChromeHistoryBackendClient(bookmarks::Bookmark... | {
"content_hash": "32adcf1541bb7e077d3a75c42a5ffb8a",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 80,
"avg_line_length": 40.82857142857143,
"alnum_prop": 0.7739678096571029,
"repo_name": "Samsung/ChromiumGStreamerBackend",
"id": "7d689f5db35d7f7a9e9a0000eaa622ce3d51255b",... |
package com.intuit.ipp.serialization.custom;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.intuit.ipp.data.DeliveryErrorTypeEnum;
/**
* Custom JsonSerializer for... | {
"content_hash": "015346fc514be18fa793dba6a4d92dd6",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 121,
"avg_line_length": 26.64,
"alnum_prop": 0.8063063063063063,
"repo_name": "intuit/QuickBooks-V3-Java-SDK",
"id": "a0f6f84cac94053666c5e80deca598e8b37a4e86",
"size": "14... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<style>
body {font: normal 12px arial;}
td, th {padding: 5px 15px 5px 5px; border: 1px solid #eee; font: normal 12px arial; text-align: left;}
td {vertical-align: top;}
input[type=text] {width: 120px;}
textarea {width: 100%; height: 500px;}
a {text-decoration:... | {
"content_hash": "825443092445b76e7d5c7fe7598b5c97",
"timestamp": "",
"source": "github",
"line_count": 1182,
"max_line_length": 152,
"avg_line_length": 33.423857868020306,
"alnum_prop": 0.5116814741691346,
"repo_name": "MikaCaldera/AListApart",
"id": "f2647fed117780e7fc57a9f42719d098d522ec1e",
"si... |
<!DOCTYPE html>
<html>
<head>
<title>Logging in...</title>
</head>
<body>
<script>
var token = window.location.toString().replace(/.+token=/, '');
window.opener.postMessage({token: token}, window.location);
window.close();
</script>
</body>
</html>
| {
"content_hash": "8d956a8ad69edbe578367bf3fa112f23",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 63,
"avg_line_length": 19.923076923076923,
"alnum_prop": 0.640926640926641,
"repo_name": "macropodhq/gitr-client",
"id": "57ebcc5c62ee758b9e2f6dd6aae3ee575920a7ba",
"size":... |
module ActiveRecord
module Associations
# = Active Record Has One Association
class HasOneAssociation < SingularAssociation #:nodoc:
include ForeignAssociation
def handle_dependency
case options[:dependent]
when :restrict_with_exception
raise ActiveRecord::DeleteRestrict... | {
"content_hash": "c3375d607f982c929df90a6cfd5df30b",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 109,
"avg_line_length": 32.815384615384616,
"alnum_prop": 0.5745428973277075,
"repo_name": "vipulnsward/rails",
"id": "d25f0fa55a863229370bf549fd094e0fe8dbf9c1",
"size": "... |
<div class="product">
<img src="image/test.jpg">
<p>this is product named <?php echo $name; ?></p>
</div> | {
"content_hash": "fd9b2093c2da9a9514bc711aaa4d3c59",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 53,
"avg_line_length": 28.25,
"alnum_prop": 0.5929203539823009,
"repo_name": "darkty2009/html-layout-tool",
"id": "2843462baf3098aecea0cee0bd979682e0d5e14b",
"size": "113",
... |
package uk.co.yottr.model;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class SailingPurposeTest {
@Test
public void testGetDisplayName() throws Exception {
assertEquals("Cruising", SailingPurpose.CRUISING.getDisplayName());
assertEquals("Racing", SailingPurpos... | {
"content_hash": "7f68c136f0c2ea1fc42fd5833f638a3c",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 77,
"avg_line_length": 32.27777777777778,
"alnum_prop": 0.7314974182444062,
"repo_name": "mikehartley/yottr",
"id": "3a85d37d2cc97c99c5aac9faf594963a54d5c91c",
"size": "661... |
package com.sri.ai.praise.core.representation.interfacebased.factor.api;
import java.util.List;
public interface Variable {
List<? extends Object> getValues();
} | {
"content_hash": "fdb76751c883fb9a20b7954c0b503d4c",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 72,
"avg_line_length": 20.625,
"alnum_prop": 0.7818181818181819,
"repo_name": "aic-sri-international/aic-praise",
"id": "583a176fc17d123c05ad2517681d6eb3152977c5",
"size": "... |
package org.sleuthkit.autopsy.commonfilessearch;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.io.F... | {
"content_hash": "640e7e7c365dc8539f34d66bc3158003",
"timestamp": "",
"source": "github",
"line_count": 522,
"max_line_length": 185,
"avg_line_length": 48.024904214559385,
"alnum_prop": 0.6756551916709881,
"repo_name": "millmanorama/autopsy",
"id": "e4d6ae5dd8597e59fa3afb8f4999c3d2a4d43114",
"size"... |
using System;
namespace Structural.Facade
{
public interface IAuthorization
{
Guid Authorize(string userName, string password);
void SignOut(Guid userToken);
}
} | {
"content_hash": "c5f062082d318d900afa58712f44feb2",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 57,
"avg_line_length": 19.1,
"alnum_prop": 0.680628272251309,
"repo_name": "pavelekNET/DesignPatterns",
"id": "321e013e7338766c451f7d8c2338dccb5f852639",
"size": "193",
"... |
<?php
namespace Mautic\Api;
/**
* Contacts Context
*/
class Contacts extends Api
{
/**
* Contact unsubscribed themselves.
*/
const UNSUBSCRIBED = 1;
/**
* Contact was unsubscribed due to an unsuccessful send.
*/
const BOUNCED = 2;
/**
* Contact was manually unsubscri... | {
"content_hash": "8075adab8822aabdc1afcf749d877d83",
"timestamp": "",
"source": "github",
"line_count": 314,
"max_line_length": 149,
"avg_line_length": 23.75796178343949,
"alnum_prop": 0.4957104557640751,
"repo_name": "mandino/nu",
"id": "41587d68a198b859857739917335f8f1b2b9f070",
"size": "7656",
... |
<!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_26) on Sat May 04 06:14:39 PDT 2013 -->
<TITLE>
org.jivesoftware.smackx.workgroup.ext.forms (Smack 3.3.0 Documentation)
</TITLE>
<META NAME="date" C... | {
"content_hash": "3ff797ffa72d1e1610d6992781adf497",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 173,
"avg_line_length": 34.55882352941177,
"alnum_prop": 0.6987234042553192,
"repo_name": "UzxMx/java-bells",
"id": "83b42b32e1272c43a38b590792a23f249aedfe8d",
"size": "117... |
package org.skk.tide;
/**
* The runtime exception thrown when a registered handler does handle the specified event.
*
* When a handler registers for an event, the handle method needs to be annotated with {@link org.skk.tide.HandleEvent}.
* If it does not, {@link org.skk.tide.HandlerMethodNotFoundException} is thr... | {
"content_hash": "831899a8b0b467a3b55a5882cd7df452",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 217,
"avg_line_length": 41.791666666666664,
"alnum_prop": 0.7367896311066799,
"repo_name": "abyu/tide",
"id": "df6690bc9a06635cbefb55511b35f6b911214d17",
"size": "1003",
... |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:agui="http://schemas.agui.com/apk/res/agui"
agui:layout_width="wrap_content"
agui:layout_height="wrap_content"
agui:background="@drawable/test"
>
<TextView agui:id="@agui:id/agui_message"
agui:layout_width="wrap_content"
agui:layout_heig... | {
"content_hash": "53ea7912c8b8f2f131dd84af9e62f49a",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 51,
"avg_line_length": 26.5,
"alnum_prop": 0.6729559748427673,
"repo_name": "thahn0720/agui_framework",
"id": "f237b824e8e0bb11647c2741b018e9be63eb4e44",
"size": "795",
"... |
<link rel="import" href="../bower_components/polymer/polymer.html">
<dom-module id="pixabay-img">
<template>
<style>
:host {
display: block;
line-height: 0px;
}
img {
min-width: 100%;
height: auto;
}
</style>
<img src="[[_src]]">
</template>
</dom-module>
<scri... | {
"content_hash": "e46e019ae1fcd352794b9909bde0010d",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 95,
"avg_line_length": 23.169642857142858,
"alnum_prop": 0.5302504816955684,
"repo_name": "tjsavage/canvas2",
"id": "0580cd1538618fa7b28e8ab843416c5e270d47ba",
"size": "25... |
DISTNAME= ctime-${VERSION}
VERSION?= 0.1.0
# PKGREVISION?= 1
CATEGORIES= nanobox
MASTER_SITES= github.com/glinton/ctime
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= github.com/glinton/ctime
COMMENT= A touch-like utility to trigger filesystem events
LICENSE= MIT
WRKSRC= ${WRKDIR}/ctime
USE_LANGUAGE... | {
"content_hash": "15a1d079313a205e3cfab62a8d1b4389",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 59,
"avg_line_length": 22.37037037037037,
"alnum_prop": 0.706953642384106,
"repo_name": "pagodabox/nanobox-pkgsrc-base",
"id": "d67cb05e1b41574d2d9536ca1ee5e092fa082e0d",
"... |
<!--
OsmAnd Batch Creation Config Template.
Determines where the OBF creation process is staged
and configures the export process.
-->
<batch_process>
<process_attributes mapZooms="" renderingTypesFile="" zoomWaySmoothness="" osmDbDialect="sqlite" mapDbDialect="sqlite"/>
<!-- zoomWaySmoothness - 1-4, typ... | {
"content_hash": "18a2f66e71df2f85123fd03c9839911a",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 377,
"avg_line_length": 69.54545454545455,
"alnum_prop": 0.7568627450980392,
"repo_name": "dodobas/osm-export-tool2",
"id": "f7770a98d8c891cb37ae7b5ab6ab29c0554ba15a",
"siz... |
package com.gemstone.gemfire.internal.cache.execute;
import com.gemstone.gemfire.cache.execute.ResultSender;
/**
*
* @author ymahajan
*
*/
public interface InternalResultSender extends ResultSender<Object> {
public void enableOrderedResultStreming(boolean enable);
public boolean isLocallyExecuted();
pu... | {
"content_hash": "2c20ce8612d195c991ab690d1b900413",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 68,
"avg_line_length": 20.15,
"alnum_prop": 0.7741935483870968,
"repo_name": "sshcherbakov/incubator-geode",
"id": "4fd50fb9dcd3d87f49824e3d1656f0929bb8b5f0",
"size": "1205... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test delegated mouse events</title>
<meta name="viewport" content="width=570">
<style>
@import "../../dojo/resources/dojo.css";
@import "../css/skins/claro.css";
.heading {
font-weight: bold;
padding-bottom: 0.25em;
}
.dgrid {
... | {
"content_hash": "ca00013aa146c423023d4fcd2c6bab4f",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 200,
"avg_line_length": 39.70192307692308,
"alnum_prop": 0.6386534269798982,
"repo_name": "aguadev/aguadev",
"id": "1e3b1800a1d773202e60608220367ecccf335541",
"size": "412... |
/// <reference path="../app/service/router.ts" />
/// <reference path="../app/service/storage.ts" />
/// <reference path="../basecontroller.ts" />
module sap.sbo.ng4c.header {
import BaseController = sap.sbo.ng4c.BaseController;
import Storage = sap.sbo.ng4c.app.service.Storage;
import Router = sap.sbo.ng4... | {
"content_hash": "8c64fdf2e2767139e4b6ba47bd190f84",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 119,
"avg_line_length": 33.96,
"alnum_prop": 0.6171967020023557,
"repo_name": "JackieWei/fiori",
"id": "0677e309de387186942053a4d55217210f0a8b54",
"size": "1700",
"binary... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.