text stringlengths 2 1.04M | meta dict |
|---|---|
package com.sksamuel.elastic4s.requests.delete
import com.sksamuel.elastic4s.fields.TextField
import com.sksamuel.elastic4s.requests.common.RefreshPolicy
import com.sksamuel.elastic4s.testkit.DockerTests
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
import scala.util.Try
cla... | {
"content_hash": "8146a1540f702f9b0c381d28a0a2a48f",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 97,
"avg_line_length": 30.426966292134832,
"alnum_prop": 0.6617429837518464,
"repo_name": "sksamuel/elastic4s",
"id": "29fe1c3c50c9fc7a97cb42b0ae5071b8eb9ead1a",
"size": "2... |
function [] = pde_visualizer(u, model, tlist, state_id, plot_title)
% takes any pde u (soln), model, tlist and visualizes accordingly
% colormap choices: 'jet', 'cool', 'gray', 'bone', 'copper'
% can also specify contour levels
% might be useful to have average value at a timepoint labelled
% extract pde solution par... | {
"content_hash": "c39e8cc4b77dacc2eac954fa943a7b3a",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 85,
"avg_line_length": 28.9,
"alnum_prop": 0.6288927335640139,
"repo_name": "mattsmart/biomodels",
"id": "05487ce4e70f36385487bf9dbf4a35a6bfa46928",
"size": "1156",
"bina... |
// Disable autolinking for unit tests.
#if !defined(BOOST_ALL_NO_LIB)
#define BOOST_ALL_NO_LIB 1
#endif // !defined(BOOST_ALL_NO_LIB)
// Test that header file is self-contained.
#include <boost/asio/windows/stream_handle.hpp>
#include <boost/asio/io_service.hpp>
#include "../unit_test.hpp"
//-----------... | {
"content_hash": "8a8fd58daa3db6751045f2be53d02124",
"timestamp": "",
"source": "github",
"line_count": 125,
"max_line_length": 80,
"avg_line_length": 28.896,
"alnum_prop": 0.6323366555924695,
"repo_name": "cpascal/af-cpp",
"id": "45f0c805575de290e8b69476c0851f7f663de0a5",
"size": "3907",
"binary... |
namespace Ui {
class MainWindow;
}
namespace RobotTest {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
QDir directory;
QString filename;
RobotWorld world;
SmartPointer<RobotTestBackend> backend;
... | {
"content_hash": "d50c94e48cffa5278374e46feb3ea3b0",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 51,
"avg_line_length": 22.0327868852459,
"alnum_prop": 0.6837797619047619,
"repo_name": "YilunZhou/Klampt",
"id": "96e8434b337038aeb25467902daa6e4e043a5959",
"size": "1549"... |
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
*/
package javax.xml.crypto.test.dsig;
import java.io.File;
import java.io.FileInputStream;
import java.security.KeyStore;
import java.security.Security;
import javax.xml.crypto.KeySelector;
import javax.xml.crypto.URIDereferencer;
import javax.xml.cry... | {
"content_hash": "4b6358d108e22dc4f05963672f7be9fc",
"timestamp": "",
"source": "github",
"line_count": 225,
"max_line_length": 98,
"avg_line_length": 37.38666666666666,
"alnum_prop": 0.6702330004755112,
"repo_name": "Legostaev/xmlsec-gost",
"id": "830daa1f95da445ba60c7e862e7b3404f101c6cf",
"size":... |
package crackingcoding.arraysandstrings;
import java.util.Arrays;
/**
* Cracking the Coding Interview
* @author liujian
*
* Arrays and Strings
*
* 1.3 Given two strings, write a method to decide if one is a permutation of the other
*
* 字母区分大小写, 空格也算字符里面
*
*/
public class OtherPermutation {
/**
* So... | {
"content_hash": "a8a9e946beb961d77aec5bb5d91c64ab",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 87,
"avg_line_length": 17.603448275862068,
"alnum_prop": 0.6346718903036239,
"repo_name": "TwentySevenC/Algorithms",
"id": "e2758066e59490bdc4a8f643ef07f376d7c439d4",
"size... |
> 原文链接:http://dailyjs.com/post/js101-this-binding
Last week we looked at `this`, and how it can be assigned and manipulated. The example I gave showed that a function inside another function (or method) will resolve `this` to the global object, and I used `var self = this` to reference the intended object.
Reader n1k... | {
"content_hash": "c69410d980fcff45764f3d53d9b51266",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 381,
"avg_line_length": 39.22222222222222,
"alnum_prop": 0.7106123338417956,
"repo_name": "7anshuai/js101",
"id": "cc72b5890b07256db66a4f9611d837e0251645f5",
"size": "4631... |
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('filmfestival', '0011_auto_20150610_1401'),
]
operations = [
migrations.AddField(
model_name='day',
name='run... | {
"content_hash": "33a19bab7b911e11f7347d3833e23e7a",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 95,
"avg_line_length": 25.08,
"alnum_prop": 0.580542264752791,
"repo_name": "thanos/mykonosbiennale.org",
"id": "fad72f8faa66e765ddac919ab55354f1b3bba08c",
"size": "651",
... |
<?xml version="1.0" encoding="utf-8"?>
<CrawlItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Text>Pljeskavica s kajmakom i ramstek su jedni od boljih koje sam jeo. Meso kvalitetno i dobro pečeno. Dostava na vrijeme. Izvrsno! Naručit ću opet sigurno.</Text>
... | {
"content_hash": "d37b0d179350f1af906a8b078cedf316",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 166,
"avg_line_length": 69.16666666666667,
"alnum_prop": 0.7325301204819277,
"repo_name": "Tweety-FER/tar-polarity",
"id": "ef055722fb4ca7d168270e7fc16c4ff2276db5a2",
"size"... |
GEOPM IOGROUP TUTORIAL
======================
This directory contains a tutorial on how to extend the available
signals and controls in GEOPM by creating an IOGroup. In general,
signals are used to read platform (hardware and OS) information while
controls are used to write to and change behavior of the platform. An... | {
"content_hash": "09922e1d1ef3be8f309b991b50453bf9",
"timestamp": "",
"source": "github",
"line_count": 220,
"max_line_length": 83,
"avg_line_length": 40.70454545454545,
"alnum_prop": 0.7498604131769961,
"repo_name": "cmcantalupo/geopm",
"id": "f5933d54381d5f5c50f0c8566c230bfc7b571f8e",
"size": "89... |
<!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.6.0_27) on Thu Jan 23 20:13:25 EST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>org.apache.lucene.q... | {
"content_hash": "1fb2b9486fe00d31e3005e0219420998",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 183,
"avg_line_length": 78.48780487804878,
"alnum_prop": 0.745183343691734,
"repo_name": "OrlandoLee/ForYou",
"id": "c85d501806767c28df257f20d6bab68d262f9a2e",
"size": "321... |
package integration
import (
"bytes"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
"log"
"math/big"
"net/http"
"time"
"github.com/fullsailor/pkcs7"
)
const instanceDocument = `{
"devpayProductCodes" : null,
"availabilityZone" : "xx-test-1b",
"privateIp" : "10.1.2.3... | {
"content_hash": "e1ba40c44a81fdc18acd63ef5d2ff2d2",
"timestamp": "",
"source": "github",
"line_count": 251,
"max_line_length": 117,
"avg_line_length": 39.581673306772906,
"alnum_prop": 0.5124308002013085,
"repo_name": "hairyhenderson/gomplate",
"id": "0ea29ac169580b80944078d247378d477537e760",
"si... |
<?php
declare(strict_types=1);
namespace DiContainerBenchmarks\Fixture\C;
class FixtureC341
{
public function __construct(FixtureC340 $dependency)
{
}
}
| {
"content_hash": "ac28eb0c19fd334a255abc4923ad3218",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 56,
"avg_line_length": 14,
"alnum_prop": 0.7142857142857143,
"repo_name": "kocsismate/php-di-container-benchmarks",
"id": "f602b2302785ee2c16d452770cb92bf4a7c952c6",
"size"... |
#pragma once
#include <QtCore/qglobal.h>
#include <QtCore/QString>
#include <QtCore/QStringList>
namespace trikGui {
/// Class which contains program from programming widget.
class ScriptHolder
{
public:
/// Deleted
ScriptHolder(ScriptHolder const&) = delete;
/// Deleted
ScriptHolder& operator=(ScriptHolder c... | {
"content_hash": "ee8639c74632286b8e066bc03958d0e8",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 60,
"avg_line_length": 20.714285714285715,
"alnum_prop": 0.7261083743842365,
"repo_name": "trikset/trikRuntime",
"id": "f83f1b26af717c060268150fcfc8da3ed10b4b65",
"size": "... |
const SET_PROJECT_CHANGED = 'scratch-gui/project-changed/SET_PROJECT_CHANGED';
const initialState = false;
const reducer = function (state, action) {
if (typeof state === 'undefined') state = initialState;
switch (action.type) {
case SET_PROJECT_CHANGED:
return action.changed;
default:
... | {
"content_hash": "8dc0b04569c8837ef07f9a0346365257",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 78,
"avg_line_length": 23.392857142857142,
"alnum_prop": 0.6687022900763359,
"repo_name": "LLK/scratch-gui",
"id": "c59f6a107ea4cc9b7ec6cb0c4c403fb29a41fbf5",
"size": "655"... |
package v6fakes
import (
sync "sync"
cfnetworkingaction "code.cloudfoundry.org/cli/actor/cfnetworkingaction"
v6 "code.cloudfoundry.org/cli/command/v6"
)
type FakeNetworkPoliciesActor struct {
NetworkPoliciesBySpaceStub func(string) ([]cfnetworkingaction.Policy, cfnetworkingaction.Warnings, error)
network... | {
"content_hash": "b9dd7433fa182f2c9c00b3d7ea43bfb2",
"timestamp": "",
"source": "github",
"line_count": 205,
"max_line_length": 181,
"avg_line_length": 40.40487804878049,
"alnum_prop": 0.823252444766389,
"repo_name": "odlp/antifreeze",
"id": "4581d29f1e1042123bcc5c6f3c6f261bf57141cf",
"size": "8332... |
.. 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, Version 2.0 (the "License"); you may no... | {
"content_hash": "420549392aa025ffa21f16fc0f34a46f",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 79,
"avg_line_length": 21.508474576271187,
"alnum_prop": 0.681639085894405,
"repo_name": "vmamidi/trafficserver",
"id": "40526f1a385b1a42df7814cf70f917d0233e599f",
"size":... |
The key points of this chapter are:
- You can annotate declarations just as you use modifiers such as public or static.
- You can also annotate types that appear in declarations, casts, instanceof
checks, or method references.
- An annotation starts with a @ symbol and may contain key/value pairs called ... | {
"content_hash": "550e837e6be73066c0f259e5b68d1ead",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 91,
"avg_line_length": 32.891891891891895,
"alnum_prop": 0.772391125718981,
"repo_name": "sdcuike/book-reading",
"id": "dd276ecb8148072226cd380dc4615af98cb59fbf",
"size": "... |
package org.apache.streams.kafka;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.typesafe.config.Config;
import kafka.consumer.Consumer;
import kafka.consumer.ConsumerConfig;
import kafka.consumer.KafkaStream;
import kafka.consumer.Whitelist;
import kafka.javaapi.consumer.ConsumerConnector;
import ka... | {
"content_hash": "5523fbd4d65c3f15f71341386705de21",
"timestamp": "",
"source": "github",
"line_count": 144,
"max_line_length": 132,
"avg_line_length": 30.22222222222222,
"alnum_prop": 0.7182904411764706,
"repo_name": "steveblackmon/incubator-streams",
"id": "7d31d41571d686c7da4e2e5666b8b64614d9ae1b"... |
package com.amazonaws.services.robomaker.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/BatchDescribeSimulationJob"
* target="_top">AWS API Documentation</... | {
"content_hash": "3e38073f6102c8c027568419cbc1d1a7",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 129,
"avg_line_length": 29.62937062937063,
"alnum_prop": 0.6042010856738258,
"repo_name": "aws/aws-sdk-java",
"id": "ba3d9af70051c80feb18dab35e212df88231641a",
"size": "48... |
from __future__ import unicode_literals
from django import template
from django.contrib.contenttypes.models import ContentType
from classytags.core import Options
from classytags.arguments import Argument
from classytags.helpers import AsTag
from taggit_templatetags2 import settings
register = template.Library()
... | {
"content_hash": "574baf189f0d37c6eb1b8dfc50199f5d",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 68,
"avg_line_length": 28.24074074074074,
"alnum_prop": 0.6098360655737705,
"repo_name": "danirus/blognajd",
"id": "da022f6ac0ebb2214c0075bac427b9a4114c0c73",
"size": "1525... |
<?xml version="1.0" encoding="utf-8"?>
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="kernel.root_dir">... | {
"content_hash": "20d334ddab6819c970d5b11a27bd42be",
"timestamp": "",
"source": "github",
"line_count": 2372,
"max_line_length": 228,
"avg_line_length": 57.53161888701518,
"alnum_prop": 0.6716960392774705,
"repo_name": "guillaumecedille/Symfony2",
"id": "180eaa38b2663301e6c44e610559f6c8d2c2aa5d",
"... |
<div class="wrapper">
<div class="tryinfo-box">
<div class="azure-logo-wrapper">
<img src="image/azure-logo.svg">
</div>
<div>{{ 'tryNow_trialTimeRemaining' | translate }} <span id="timer-text">{{timerText}}</span></div>
<div class="free-trial-wrapper">
<a [to... | {
"content_hash": "2bd3a673264a9ee58ba817b6d0ab0122",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 158,
"avg_line_length": 45.869565217391305,
"alnum_prop": 0.5364928909952607,
"repo_name": "chunye/azure-functions-ux",
"id": "7d240717bc7e2ba96cbefc710ffcf95f0949017b",
"s... |
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8InspectorOverlayHost.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/V8DOMConfiguration.h"
#include "bindings/core/v8/V8ObjectConstructor.h"
#include "core/dom/ContextFeatu... | {
"content_hash": "1fed907f88c14699900849fbcc52a9d2",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 570,
"avg_line_length": 43.93010752688172,
"alnum_prop": 0.7558438379635296,
"repo_name": "zero-rp/miniblink49",
"id": "30e5372265dd5c8fba83f05f09d023ab93247aa8",
"size": ... |
require 'net_buildpack/runtime'
module NETBuildpack::Util
# A class representing the size of a category of memory.
class MemorySize
include Comparable
# Creates a memory size based on a memory size string including a unit of 'K', 'M', or 'G'.
#
# @param [String] size a memory size including a uni... | {
"content_hash": "17ddd30acc1dbfc3d481ee732a088d7d",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 119,
"avg_line_length": 28.675862068965518,
"alnum_prop": 0.6005291005291006,
"repo_name": "Hitakashi/.net-buildpack",
"id": "6f5141c36a9eaafbf5da703fd9daa34b79054040",
"s... |
package uk.ac.ebi.pride.utilities.data.exporters;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import uk.ac.ebi.pride.jmztab.model.MZTabFile;
import uk.ac.ebi.pride.jmztab.utils.MZTabFileConverter;
import uk.ac.ebi.pride.utilities.data.controller.impl.ControllerImpl.MzIdentMLControllerImpl;
... | {
"content_hash": "e8068958f85bde6dd5c883f4839ec249",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 201,
"avg_line_length": 53.42028985507246,
"alnum_prop": 0.7278893109061313,
"repo_name": "PRIDE-Utilities/ms-data-core-api",
"id": "c8ea768a32439751daf17f076fb7fe5116264508"... |
source /etc/profile.d/globals.sh
printf "Installing xrdp **********************************************************************"
$screen_cmd "${apt} install -y xrdp ${assess_update_errors}"
grok_error
sudo sed -e 's/^new_cursors=true/new_cursors=false/g' \
-i /etc/xrdp/xrdp.ini
sudo systemctl enable xrdp
sudo sy... | {
"content_hash": "950da53858a9fde61869967f10eb44ac",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 95,
"avg_line_length": 31.428571428571427,
"alnum_prop": 0.6909090909090909,
"repo_name": "ninp0/csi",
"id": "9c517bcb2403828a0e72257c635c2bdc34e2be48",
"size": "680",
"b... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>otway-rees: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | {
"content_hash": "7100ff677df7c83b36f1428a2e9637a4",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 159,
"avg_line_length": 41.26589595375722,
"alnum_prop": 0.54671522622216,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "cf9d1a99a0f689c093008f0a2ad84aa90cc7e551",
... |
<?php
namespace PHPExiftool\Driver\Tag\FujiFilm;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class ExposureCompensation extends AbstractTag
{
protected $Id = 58;
protected $Name = 'ExposureCompensation';
protected $FullName = ... | {
"content_hash": "100cb9ad2034154f68c23329569a6d91",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 53,
"avg_line_length": 16.973684210526315,
"alnum_prop": 0.6852713178294574,
"repo_name": "bburnichon/PHPExiftool",
"id": "6de13ab02f5107fa1e3f797083f9302ab7138fca",
"size"... |
from __future__ import annotations
import pytest
from airflow import settings
from airflow.exceptions import AirflowException, PoolNotFound
from airflow.models.pool import Pool
from airflow.models.taskinstance import TaskInstance as TI
from airflow.operators.empty import EmptyOperator
from airflow.utils import timezo... | {
"content_hash": "a92af14cc0c723483051b638df9dbf1a",
"timestamp": "",
"source": "github",
"line_count": 212,
"max_line_length": 100,
"avg_line_length": 32.91981132075472,
"alnum_prop": 0.5582461670726465,
"repo_name": "cfei18/incubator-airflow",
"id": "fecd76b7145e6121e9c32334c5833c4105edd2b9",
"si... |
<?php
include('classes/cache.class.php');
include('classes/base.class.php');
/*!
* Define the caching engine to be used.
* Supports: apc, memcached, xcache, disk
*/
define('CACHE_ENGINE', 'apc');
/*!
* Define the account details.
* You can add multiple accounts, or just one.
*/
$accounts = arr... | {
"content_hash": "ed5568e9b7a9035a46eb221d58855e0c",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 65,
"avg_line_length": 22.78846153846154,
"alnum_prop": 0.6,
"repo_name": "gavinblair/xbox-achievements",
"id": "04e63516952e7144ae3545a08bdce4e6a69782a0",
"size": "2086",
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--Autogenerated by Cloudera Manager-->
<configuration>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:///mnt/sdb1/dfs/nn</value>
</property>
<property>
<name>dfs.namenode.servicerpc-address</name>
<value>name-node1:8022</value>
</property>
<... | {
"content_hash": "21e2c3615b8e30579c0e66593b535faf",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 59,
"avg_line_length": 24.942028985507246,
"alnum_prop": 0.652527600232423,
"repo_name": "tophua/spark1.52",
"id": "487f04fd1f904531ead41fb4e93f7cf959e2ec8d",
"size": "1721... |
/*
* Brandon Russeau
*/
public class MaxVal extends Thread {
static int max;
public MaxVal(int[] num) {
max = maxVal(num);
}
public void run() {
System.out.println("The maximum value is " + max);
}
// calculate the maximum value of a series of numbers
private int maxVal(int[] num) {
max = num[0];
fo... | {
"content_hash": "ae30abe20745cbe0be85d3020e12ba37",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 54,
"avg_line_length": 16.192307692307693,
"alnum_prop": 0.5938242280285035,
"repo_name": "brusseau25/Winter_2016",
"id": "c9ae447c9ce52e470e18ef4e07a1d7cdb99d3e8c",
"size"... |
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmat... | {
"content_hash": "48550db46195576fd31376b71bcbb9d9",
"timestamp": "",
"source": "github",
"line_count": 279,
"max_line_length": 154,
"avg_line_length": 49.44086021505376,
"alnum_prop": 0.7417717848339858,
"repo_name": "Nerdman4U/sude",
"id": "461788d4e427467d0bad67e087ea27fead54fdae",
"size": "1379... |
! { dg-do compile }
! { dg-options "-fgnu-tm" }
! { dg-require-effective-target fgnu_tm }
program foo
real x
end program foo
| {
"content_hash": "feae5c6b3876f53ada61b3aa3da68e31",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 41,
"avg_line_length": 21.833333333333332,
"alnum_prop": 0.6412213740458015,
"repo_name": "the-linix-project/linix-kernel-source",
"id": "f02dfaf352394e43320dfeec4d35e9ee096cb... |
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<title>Section Object</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<!-- build:css css/ui.css -->
<link rel="stylesheet" href="css/main.css">
<!-- endbuild -->
<style>
/* styles f... | {
"content_hash": "a1dce452c2169beb5215c6eb58b54a02",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 90,
"avg_line_length": 26.333333333333332,
"alnum_prop": 0.6363636363636364,
"repo_name": "cdlib/dash-ui",
"id": "76bcf8aa1223eb553e6b9ae7257e6e1d18fb0d1d",
"size": "869",
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2013 Evolveum
~
~ 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... | {
"content_hash": "5fbcd21e5c412606df7fcd4d1982d65e",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 194,
"avg_line_length": 80.87058823529412,
"alnum_prop": 0.6998836194355542,
"repo_name": "sabriarabacioglu/engerek",
"id": "31a6f624dff0afdd5950262ec0432d4f2ca2ded2",
"siz... |
<?php
require_once 'model/ArticleManager.php';
class Article
{
private $id;
private $title;
private $chapo;
private $content;
private $author;
private $created;
private $updated;
public function __construct($datas = [])
{
if (!empty($datas))
{
... | {
"content_hash": "75abfefd1bad113d9edbc604bd063b05",
"timestamp": "",
"source": "github",
"line_count": 108,
"max_line_length": 46,
"avg_line_length": 16.87962962962963,
"alnum_prop": 0.4843664289632474,
"repo_name": "Maxxxiimus92/p5_blog",
"id": "f3ab904007dbf5c519656ab83ed4a9e72e908a60",
"size": ... |
module Onboarding
class ClusteringController < BaseController
before_action only: [:new, :create] do
redirect_if_event(:onboarding_user_created, new_onboarding_school_details_path(@school_onboarding))
end
def new
end
def create
@school_onboarding.update!(created_user: current_user)
... | {
"content_hash": "1d9ea63c509d22ba93059cc69ba02084",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 105,
"avg_line_length": 30.1875,
"alnum_prop": 0.7204968944099379,
"repo_name": "BathHacked/energy-sparks",
"id": "e90a3b9fecc9a548f7c37603baef2298b45450f0",
"size": "483",... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Users Database</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https:////netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css">
... | {
"content_hash": "0ac1be7839f9106fe80ce0591d645a5a",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 126,
"avg_line_length": 48.175,
"alnum_prop": 0.610275038920602,
"repo_name": "1Evgeny/java-a-to-z",
"id": "abcac2f96d45452d8e0f5e5042bd00392db7ec4b",
"size": "1927",
"bi... |
0. [Unpacking your DC2](#0-unpacking-your-dc2)
1. [Power up your DC2](#1-power-up-your-dc2)
2. [Find the DC2 on your network](#2-find-the-dc2-on-your-network)
3. [Configure the DC2](#3-configure-the-dc2)
4. [Add the DC2 as a docker machine](#4-setup-dc2-as-a-docker-machine)
5. [Assemble the DC2](#5-dc2-assembly)
6. [FA... | {
"content_hash": "c8b7dcddd7ad81ca1c9e3ed35227fd02",
"timestamp": "",
"source": "github",
"line_count": 455,
"max_line_length": 588,
"avg_line_length": 38.032967032967036,
"alnum_prop": 0.6963305403062698,
"repo_name": "hardtware/DC2",
"id": "0d1aef8aff83ab385c453d96ddaf6216751a6348",
"size": "1731... |
<!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_91) on Tue Dec 29 12:44:11 AEDT 2015 -->
<title>SigPolicyQualifiers (Bouncy Castle Library 1.54 API Specification)</title>
<meta name="... | {
"content_hash": "ee48d1c81d57f38e196970d6ef0b0dc6",
"timestamp": "",
"source": "github",
"line_count": 333,
"max_line_length": 613,
"avg_line_length": 42.207207207207205,
"alnum_prop": 0.6614727854855923,
"repo_name": "GaloisInc/hacrypto",
"id": "cc00e6452a43c3c8d10ef9f6393223fd11ce9520",
"size": ... |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (SymbianOS/9.4; U; Series60/5.0 Nokia5235/12.6.092; Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materializ... | {
"content_hash": "019050689a183430643285673fc54d34",
"timestamp": "",
"source": "github",
"line_count": 1157,
"max_line_length": 801,
"avg_line_length": 40.89109766637856,
"alnum_prop": 0.5326879584029084,
"repo_name": "ThaDafinser/UserAgentParserComparison",
"id": "a5df2098caaaa6371c9cc2db37936a7b23... |
/**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highmaps]]
*/
package com.highmaps.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript n... | {
"content_hash": "8ed4f737dfc0cffe9652cf252e0d9f03",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 443,
"avg_line_length": 71.015625,
"alnum_prop": 0.7350935093509351,
"repo_name": "Karasiq/scalajs-highcharts",
"id": "9c48bb79fac965d97545e9bc1a8f0b6034451a38",
"size": "... |
from settings.base import *
import sys
import urlparse
DEBUG = False
TEMPLATE_DEBUG = DEBUG
SERVE_MEDIA = True
INSTALLED_APPS += ['gunicorn']
CACHE_TIMEOUT = 60 * 60 * 24
urlparse.uses_netloc.append('postgres')
urlparse.uses_netloc.append('mysql')
try:
if os.environ.has_key('DATABASE_URL'):
url = urlpar... | {
"content_hash": "afae716cdd95613f6fadaec6fdb6042a",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 144,
"avg_line_length": 28.57943925233645,
"alnum_prop": 0.6742969260954872,
"repo_name": "audreyr/opencomparison",
"id": "5e21f1f4b4812e3a85b78b1fb48897012ff2b282",
"size... |
namespace More.Windows.Data
{
using More.ComponentModel;
using System;
using System.ComponentModel;
using System.Diagnostics.Contracts;
using static System.String;
using static System.Text.RegularExpressions.Regex;
using static System.Text.RegularExpressions.RegexOptions;
/// <summary>... | {
"content_hash": "0e3c7588f91bb9e1b2710f55d43bec84",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 96,
"avg_line_length": 34.7,
"alnum_prop": 0.5884726224783862,
"repo_name": "commonsensesoftware/More",
"id": "d4b7dfc456d234dad56cc6cbcb4571c23e4d03f3",
"size": "1737",
... |
AbsDecpackModule::AbsDecpackModule(const char* name, const char* title)
: AppModule(name,title),
_modeval(0),
_mode("mode", this, 0)
{
commands( )->append( &_mode );
_mode.addDescription("mode: 0 - default, generator fills hepevt; 1 - QQ fills hepevt from hepg");
}
//_________________________________... | {
"content_hash": "d4f5112bbd0420244fb2598283885fa4",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 100,
"avg_line_length": 26.104477611940297,
"alnum_prop": 0.5180102915951973,
"repo_name": "iamaris/CDFCodes",
"id": "c9f7dda9a1e16109e40ad2f3f5fb8d6fde45a5b5",
"size": "24... |
package com.hjhrq1991.tool.Util;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import static android.content.Context.INPUT_METHOD_SERVICE;
/**
* Keyboard utilities
*/
public class Keyboard {
/**
* Hide soft input method manager
*
* @param view
* @return ... | {
"content_hash": "febfc44ad0624aa5abcdaa63647a67c4",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 71,
"avg_line_length": 22.214285714285715,
"alnum_prop": 0.6929260450160771,
"repo_name": "hjhrq1991/C-Car",
"id": "5666dd7d040e2dd878ae18dac0623fe4511a5eab",
"size": "622"... |
'use strict'
const https = require('https')
var userName = process.argv[2]
var accessKey = process.argv[3]
var tunnelName = process.argv[4]
function removeTunnel () {
const requestPath = `/rest/v1/${userName}/tunnels`
console.log(requestPath)
callSauce(requestPath, 'GET', function (error, result) {
if (err... | {
"content_hash": "830aeb157f5a049711f14d31d15a69b2",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 91,
"avg_line_length": 26.37837837837838,
"alnum_prop": 0.6142418032786885,
"repo_name": "serapath-contribution/browser-solidity",
"id": "4490a586383b971f8ded4442340637287587... |
import { browser, element, by } from 'protractor';
export class EventforcePage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
}
| {
"content_hash": "8d1783d45657a0e623b381460ca5ae88",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 52,
"avg_line_length": 19.545454545454547,
"alnum_prop": 0.6372093023255814,
"repo_name": "sean-perkins/eventforce",
"id": "73bcf82307e5fca8bfde3bce72a8e1ee3b637c63",
"size... |
package ru.job4j.loop;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
*Test.
*
*@author akulabuhov (mailto:jkulabuha@yandex.ru)
*@version $ld$
*@since 0.1
*/
public class CounterTest {
/**
* Test counter.
*/
@Test
public void whenSumEvenNumbersF... | {
"content_hash": "871499a2acf347ea6026cdcdd623f6c9",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 60,
"avg_line_length": 18.5,
"alnum_prop": 0.6959459459459459,
"repo_name": "jkulabuha/akulabuhov",
"id": "6e97fb0d98e24e83ea4fb99e32d790faca2d1298",
"size": "444",
"bina... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_char_realloc_41.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml
Template File: sources-sinks-41.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Man... | {
"content_hash": "b69993bb5908474c0564042e839d8bb5",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 136,
"avg_line_length": 26.907563025210084,
"alnum_prop": 0.6533416614615865,
"repo_name": "maurer/tiamat",
"id": "59fc87e1e48075e312d5fda0c29d7cb1dce41f8a",
"size": "3202... |
ALTER TABLE replication_policy ADD COLUMN IF NOT EXISTS copy_by_chunk boolean;
CREATE TABLE IF NOT EXISTS job_queue_status (
id SERIAL NOT NULL PRIMARY KEY,
job_type varchar(256) NOT NULL,
paused boolean NOT NULL DEFAULT false,
update_time timestamp with time zone NOT NULL DEFAULT CURRE... | {
"content_hash": "ff128452cd4358907239a65d965ff68b",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 80,
"avg_line_length": 40.55555555555556,
"alnum_prop": 0.7013698630136986,
"repo_name": "wy65701436/harbor",
"id": "377ab11b1e82c4f69491f7481ce6516fce2f74bf",
"size": "365"... |
using System;
using System.Runtime.InteropServices;
namespace SharpVk
{
/// <summary>
///
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct PhysicalDeviceExternalImageFormatInfo
{
/// <summary>
///
/// </summary>
public SharpVk.External... | {
"content_hash": "06ac07aac009cceda0e54757853f25fe",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 102,
"avg_line_length": 26.15,
"alnum_prop": 0.5334608030592735,
"repo_name": "FacticiusVir/SharpVk",
"id": "3160fdab8bd39ee18539abedc10438bdfbd9526b",
"size": "2283",
"b... |
Wallet Tools
---------------------
### [SpendFrom](/contrib/spendfrom) ###
Use the raw transactions API to send coins received on a particular
address (or addresses).
Repository Tools
---------------------
### [Developer tools](/contrib/devtools) ###
Specific tools for developers working on this repository.
Contain... | {
"content_hash": "87ffc929d5453c95bcbdffddd6d1f37c",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 293,
"avg_line_length": 37.607142857142854,
"alnum_prop": 0.7255460588793922,
"repo_name": "BurningMan44/SprintCoin",
"id": "22a534610d23713dd72d4fae717ee0a52cd9ad52",
"siz... |
namespace lslboost { namespace mpl {
namespace aux {
template< bool >
struct resolve_arg_impl
{
template<
typename T, typename U1, typename U2, typename U3
, typename U4, typename U5
>
struct result_
{
typedef T type;
};
};
template<>
struct resolve_arg_impl<true>
{
... | {
"content_hash": "08b5e845c63b18663379021fc800d30d",
"timestamp": "",
"source": "github",
"line_count": 578,
"max_line_length": 78,
"avg_line_length": 22.86159169550173,
"alnum_prop": 0.5768881489329499,
"repo_name": "gazzlab/LSL-gazzlab-branch",
"id": "171abbf0c0ae01b307e1a73b100b48a59151856b",
"s... |
require "google/cloud/iot/v1"
##
# Example demonstrating basic usage of
# Google::Cloud::Iot::V1::DeviceManager::Client#bind_device_to_gateway
#
def bind_device_to_gateway
# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Iot::V1::DeviceManager::Client.new
# Create a... | {
"content_hash": "d1254baae13b41928d6acf9d476e7154",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 87,
"avg_line_length": 35.7,
"alnum_prop": 0.7591036414565826,
"repo_name": "googleapis/google-cloud-ruby",
"id": "a4f85789ab7c024ab9548f37eb1ff90b0ad2ec1c",
"size": "1448"... |
package com.google.javascript.jscomp;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
import com.google.javascript.jscomp.NodeTraversal.AbstractPostOrderCallback;
import com.google.javascript.rhino.JSDocInfo;
import com.google.javascrip... | {
"content_hash": "db7c84ff5d9d270268fd63a339cc8203",
"timestamp": "",
"source": "github",
"line_count": 268,
"max_line_length": 100,
"avg_line_length": 34.832089552238806,
"alnum_prop": 0.615532940546331,
"repo_name": "vobruba-martin/closure-compiler",
"id": "8cd3b9cb9ec7862ab4984b1ac0f3763062b36275"... |
using System.Windows.Media;
using Cirrious.CrossCore.UI;
namespace MvvmCross.Plugins.Color.WindowsPhone
{
public class MvxWindowsPhoneColor : IMvxNativeColor
{
public object ToNative(MvxColor mvxColor)
{
var color = ToNativeColor(mvxColor);
return new SolidColorBrush(col... | {
"content_hash": "65a137eb08ec565c2c57b14822677a65",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 111,
"avg_line_length": 31.6,
"alnum_prop": 0.6044303797468354,
"repo_name": "MatthewSannes/MvvmCross-Plugins",
"id": "6df3a7b4b9a932b18de2b799f5396267536e314a",
"size": "9... |
/**
* @constructor
* @param {string} className
* @param {!Element=} parentElement
*/
WebInspector.Toolbar = function(className, parentElement)
{
/** @type {!Array.<!WebInspector.ToolbarItem>} */
this._items = [];
this._reverse = false;
this.element = parentElement ? parentElement.createChild("div"... | {
"content_hash": "1de1264c83ce854e0235e5d916f64338",
"timestamp": "",
"source": "github",
"line_count": 961,
"max_line_length": 146,
"avg_line_length": 27.04786680541103,
"alnum_prop": 0.5997768630015774,
"repo_name": "danakj/chromium",
"id": "9bc2472583d0c977f23a787057085c696870f9fb",
"size": "275... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "0df953540c493624bfbfe796e47eb044",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "4b5dba8ad57edb269948ee1c65e44b563c8522a4",
"size": "207... |
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/power_supply.h>
#include <linux/platform_device.h>
static enum power_supply_property fish_battery_properties[] = {
POWER_SUPPLY_PROP_STATUS,
POWER_SUPPLY_PROP_HEALTH,
POWER_SUPPLY_PROP_PRESENT,
POWE... | {
"content_hash": "e3f4f99268b4204512b9736c91fbf60f",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 66,
"avg_line_length": 22.870229007633586,
"alnum_prop": 0.687917222963952,
"repo_name": "michelborgess/RealOne-Victara-Kernel",
"id": "19fbb91fe83ae6f43aa2927cd74389817c1e3... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | {
"content_hash": "553879d8074e7f4b8298b6abd0a15c4a",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 150,
"avg_line_length": 45.233333333333334,
"alnum_prop": 0.630066322770818,
"repo_name": "wakuwaku3/cbn.sample",
"id": "aedc288d1c42fbd5a27263bbf12c2f9e54430c84",
"size": ... |
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<link href="example.css" type="text/css" rel="stylesheet" />
<script src="../../dist/react-collectionview-standalone.js"></script>
</head>
<body>
<div id="reactContainer"></div>
<script src="cellFactory.js"></script>... | {
"content_hash": "74dcdd10fa467bbd575c9cf504ab51e4",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 73,
"avg_line_length": 24.941176470588236,
"alnum_prop": 0.6132075471698113,
"repo_name": "davidmfreese/React-CollectionView",
"id": "86572e49da57c735f0bc2eef17cd57debc917483... |
module("About Regular Expressions (topics/about_regular_expressions.js)");
test("exec", function() {
var numberFinder = /(\d).*(\d)/;
var results = numberFinder.exec("what if 6 turned out to be 9?");
ok(results.equalTo(["6 turned out to be 9", "6", "9"]), 'what is the value of results?');
});
test("test... | {
"content_hash": "881b05226ce457bae88cec3db8f240e2",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 129,
"avg_line_length": 37.13333333333333,
"alnum_prop": 0.6095152603231598,
"repo_name": "yuliya5/JavaScript-Koans-Answers",
"id": "feb4da6b7189cb6d2c6d2924c50c6896ebe50697"... |
google-site-verification: googlecbf335ea83016e9c.html | {
"content_hash": "717d4406559957be3d7856c131928bc9",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 53,
"avg_line_length": 53,
"alnum_prop": 0.9056603773584906,
"repo_name": "justan0therdave/static",
"id": "c272e488810b55bab01d4776d67b0fd27bfced8c",
"size": "53",
"binary... |
import logging
from swiftclient.exceptions import ClientException
from swiftclient.service import SwiftService
logging.basicConfig(level=logging.ERROR)
logging.getLogger("requests").setLevel(logging.CRITICAL)
logging.getLogger("swiftclient").setLevel(logging.CRITICAL)
logger = logging.getLogger(__name__)
with SwiftS... | {
"content_hash": "c238582188ba280ed4dc3cac7cf5ed9e",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 59,
"avg_line_length": 32.45,
"alnum_prop": 0.7164869029275809,
"repo_name": "jeseem/python-swiftclient",
"id": "024ad6f57ab32c6f0d02c8cdcc7c177c46a77523",
"size": "649",
... |
package mc.sel.exception;
import mc.sel.token.Token;
/**
* Thrown when the input tokens are not grammatically correct.
*
* @author Milan Crnjak
*/
public class ParserException extends RuntimeException {
private Token token;
public ParserException(String message, Token token) {
super(message);
... | {
"content_hash": "a53fa300306483e67a436d39dc81daf1",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 62,
"avg_line_length": 18.772727272727273,
"alnum_prop": 0.6658595641646489,
"repo_name": "mcrnjak/sel",
"id": "bd3d24187b83b65e5aec1d74e94ba1c06dbbafa4",
"size": "413",
... |
<?php
/**
* pp_authors actions.
*
* @package sf_sandbox
* @subpackage pp_authors
* @author Your name here
* @version SVN: $Id: actions.class.php 5125 2007-09-16 00:53:55Z dwhittle $
*/
class pp_authorsActions extends autopp_authorsActions
{
}
| {
"content_hash": "ee17dfa06f2b8facc751a5b8de045a34",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 79,
"avg_line_length": 20.076923076923077,
"alnum_prop": 0.6666666666666666,
"repo_name": "serg-smirnoff/symfony-pposter",
"id": "b2c18672efcd1d793815fdf003c3947e5cdcfee2",
... |
'use strict';
const TAG = 'FormatUtils:: ';
/**
* convert a key/value object into a query string
*
* @param keyValueObject a key/value object
*
* @returns {String} a query string
*/
export function objectToQueryString(keyValueObject) {
var value = null;
var res = '';
let keyValue;
... | {
"content_hash": "30d4b02bb395f80d2063017e101ad670",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 93,
"avg_line_length": 22.5,
"alnum_prop": 0.5432098765432098,
"repo_name": "HendrixString/node-okhttp",
"id": "84697a95618a9de3ce8708ec24d0701dae7fd998",
"size": "1620",
... |
package com.carmanager.controllers;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframew... | {
"content_hash": "6f755ea75460817574d89994d2f19333",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 89,
"avg_line_length": 32.46511627906977,
"alnum_prop": 0.7879656160458453,
"repo_name": "yuqirong/CarManager",
"id": "8165fc4109c1bb2d9ec810c8c8ab331b8d4eeea6",
"size": "1... |
package org.apache.spark.sql.catalyst.analysis
import org.apache.spark.sql.AnalysisException
import org.apache.spark.sql.catalyst.expressions.{Attribute, AttributeReference, AttributeSet, CurrentDate, CurrentTimestamp, MonotonicallyIncreasingID}
import org.apache.spark.sql.catalyst.expressions.aggregate.AggregateExp... | {
"content_hash": "7f4f99bea87a0959555bc1e60ec5ac9e",
"timestamp": "",
"source": "github",
"line_count": 375,
"max_line_length": 152,
"avg_line_length": 44.48,
"alnum_prop": 0.6357913669064749,
"repo_name": "debugger87/spark",
"id": "5ced1ca200daa1e030c3e4b143480d55ee63f1d0",
"size": "17480",
"bin... |
// @formatter:off
package com.spike.giantdataanalysis.benchmark.tools.jmh.samples;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.infra.Blackhole;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.ru... | {
"content_hash": "4e1334cfaac6a04b0d699054ffb49440",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 108,
"avg_line_length": 41.48245614035088,
"alnum_prop": 0.581306830196659,
"repo_name": "zhoujiagen/giant-data-analysis",
"id": "2de83e9d832f934cb9422eabc7a51d8c21b6db6f",
... |
require 'spec_helper'
require 'stringio'
require 'yaml'
describe XXhash do
hash32 = YAML.load(IO.read "spec/results32.yaml")
hash64 = YAML.load(IO.read "spec/results64.yaml")
hash32.each do |key, value|
it 'returns correct hash' do
expect(XXhash.xxh32(key[0], key[1])).to eq(value)
end
end
has... | {
"content_hash": "792376a1ef4f6779e97ab0c3072917bd",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 78,
"avg_line_length": 27.68807339449541,
"alnum_prop": 0.6252485089463221,
"repo_name": "justinwsmith/ruby-xxhash",
"id": "4d0dd16059a8a9e546482d28e646f385e48894c2",
"siz... |
const path = require('path');
const assert = require('assert');
module.exports = {
description: 'bundle.modules includes dependencies (#903)',
bundle(bundle) {
const modules = bundle.modules.map(module => {
return {
id: path.relative(__dirname, module.id),
dependencies: module.dependencies.map(id => pat... | {
"content_hash": "de35494060a7bc875e82a914a459feb9",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 77,
"avg_line_length": 20.372093023255815,
"alnum_prop": 0.5844748858447488,
"repo_name": "corneliusweig/rollup",
"id": "389ce982ba35d95c29ebb27f27f0286d8799ae8d",
"size": ... |
package asyncassertion_test
import (
. "github.com/gopkg/database/leveldb/internal/ginkgo"
. "github.com/gopkg/database/leveldb/internal/gomega"
"testing"
)
func TestAsyncAssertion(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "AsyncAssertion Suite")
}
| {
"content_hash": "d81f915f105294e638da4d3cf2762bef",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 54,
"avg_line_length": 20.692307692307693,
"alnum_prop": 0.7657992565055762,
"repo_name": "gopkg/database",
"id": "fd67f0d31ef36b9403a316eac407c0db90a58e9c",
"size": "269",... |
package org.cloudfoundry.uaa.authorizations;
import org.immutables.value.Value;
/**
* The request payload for authorize by open id with an id token operation
*/
@Value.Immutable
abstract class _AuthorizeByOpenIdWithIdTokenRequest extends AbstractAuthorizationRequest {
}
| {
"content_hash": "d17800d36b02e7eeb03300acf7b7644e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 90,
"avg_line_length": 21.384615384615383,
"alnum_prop": 0.8057553956834532,
"repo_name": "cloudfoundry/cf-java-client",
"id": "aa3d1e91e3aa685a7f5060441746615d03f5d236",
"... |
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/joey/Documents/Projects/rcTest")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/joey/Documents/Projects/rcTest/build")
# Force unix paths in dependencies.
set(CMAKE_FORCE_UNIX_PATHS 1)
# The C and CXX include file regular expressions for this directory.
set(CMAKE_C_INCLUDE_REGEX_... | {
"content_hash": "978fc1c715e22baf886f99a4e1294582",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 80,
"avg_line_length": 42.5,
"alnum_prop": 0.7666666666666667,
"repo_name": "tongnalin/retinacheck",
"id": "257f9b4788d933056021fe120518905082b2a99d",
"size": "653",
"bin... |
package eu.the5zig.mod.server;
/**
* An abstract class that represents a server game mode. Override to store custom values for each specific game mode.
*/
public abstract class GameMode {
/**
* Stores a unix time stamp that is either used to display the remaining time or current time, depending
* on the {@li... | {
"content_hash": "af866fc9535be6c90cc64ef93b8508a2",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 117,
"avg_line_length": 18.990384615384617,
"alnum_prop": 0.6941772151898734,
"repo_name": "5zig/The-5zig-API",
"id": "f93a683e3f357d7e0d4cb79cffbdf7388a82c479",
"size": "... |
use crate::QString;
use cpp_core::CppBox;
use std::os::raw::{c_char, c_int};
/// Allows to convert Qt strings to `std` strings
impl<'a> From<&'a QString> for String {
fn from(s: &'a QString) -> String {
s.to_std_string()
}
}
impl QString {
/// Creates Qt string from an `std` string.
///
//... | {
"content_hash": "955eefe8a0db44c178d11c3060cfeee1",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 99,
"avg_line_length": 30.18918918918919,
"alnum_prop": 0.5684870188003581,
"repo_name": "rust-qt/cpp_to_rust",
"id": "c17b594ad3f509f4fa695a91793e64b8efe890df",
"size": "1... |
package com.twitter.hpack;
import java.io.IOException;
import java.io.OutputStream;
final class HuffmanEncoder {
private final int[] codes;
private final byte[] lengths;
/**
* Creates a new Huffman encoder with the specified Huffman coding.
* @param codes the Huffman codes indexed by symbol
* @par... | {
"content_hash": "9fc01a23275dc471193581c5896822b4",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 105,
"avg_line_length": 29.53191489361702,
"alnum_prop": 0.6102305475504323,
"repo_name": "twitter/hpack",
"id": "a2dcbb62b0cb23ee14f4e7ab2332d606bbecfd92",
"size": "3372",... |
package facebox
import (
"bytes"
"encoding/json"
"io"
"net/http"
"net/url"
"github.com/pkg/errors"
)
// CompareFaceprints returns the confidence of the comparsion between the target faceprint
// and each of faceprint of the slice of candidates and returns an array of confidence in the same order
// of the cand... | {
"content_hash": "d2502b3302976da2e2cb467c3980340a",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 104,
"avg_line_length": 27.72093023255814,
"alnum_prop": 0.7027404921700223,
"repo_name": "machinebox/sdk-go",
"id": "de3afda5c0322d028b9933ab7c2353744e5ec240",
"size": "3... |
const { decode, parse } = require('./response')
const { KafkaJSProtocolError } = require('../../../../errors')
describe('Protocol > Requests > TxnOffsetCommit > v1', () => {
test('response', async () => {
const data = await decode(Buffer.from(require('../fixtures/v0_response.json')))
expect(data).toEqual({
... | {
"content_hash": "fb88a6bc9a523c68ee8deff6eead4c5b",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 109,
"avg_line_length": 28.818181818181817,
"alnum_prop": 0.5583596214511041,
"repo_name": "tulios/kafkajs",
"id": "dc952a3ff6cbbcfb626273789fcaf219aea06453",
"size": "1268... |
<partial>
<entry>
<form>http://openrosa.org/formdesigner/5FBED77B-E327-495D-97E8-0733B97D8EA5</form>
<command id="m1-f0">
<text>
<locale id="forms.m1f0"/>
</text>
</command>
<instance id="casedb" src="jr://instance/casedb"/>
<instance id="commcaresession" src="jr://instance/s... | {
"content_hash": "7a72cda79d5f398a041c7795ac510a22",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 184,
"avg_line_length": 39.36363636363637,
"alnum_prop": 0.6327944572748267,
"repo_name": "puttarajubr/commcare-hq",
"id": "8f55ce857cd8478c1988cefdf29b5dd5b3dd626e",
"size... |
using MultiMiner.UX.ViewModels;
using System.Linq;
namespace MultiMiner.TUI.Commands
{
class SwitchAllCommand
{
private readonly ApplicationViewModel app;
public SwitchAllCommand(ApplicationViewModel app)
{
this.app = app;
}
public bool HandleCommand(strin... | {
"content_hash": "9d3a9533f6b547cd4f36fe475f664f32",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 57,
"avg_line_length": 20.615384615384617,
"alnum_prop": 0.5335820895522388,
"repo_name": "IWBWbiz/MultiMiner",
"id": "5b58ea7fbb309422fbf149b4978d25c8360a33de",
"size": "5... |
<?php
declare(strict_types=1);
namespace Scheb\TwoFactorBundle\Tests\Security\TwoFactor\Handler;
use PHPUnit\Framework\MockObject\MockObject;
use Scheb\TwoFactorBundle\Security\TwoFactor\Handler\AuthenticationHandlerInterface;
use Scheb\TwoFactorBundle\Security\TwoFactor\Handler\TrustedDeviceHandler;
use Scheb\TwoFa... | {
"content_hash": "66ba058f81063168dda1e3ec4630bca0",
"timestamp": "",
"source": "github",
"line_count": 139,
"max_line_length": 125,
"avg_line_length": 32.05035971223022,
"alnum_prop": 0.6597081930415264,
"repo_name": "scheb/two-factor-bundle",
"id": "69dc296aa1e05b8561d5ab7c32638b896a067591",
"siz... |
// $Id: Process_Manager.cpp 2622 2015-08-13 18:30:00Z mitza $
// Process_Manager.cpp
#include "ace/Process_Manager.h"
#if !defined (__ACE_INLINE__)
#include "ace/Process_Manager.inl"
#endif /* __ACE_INLINE__ */
#include "ace/ACE.h"
#include "ace/Guard_T.h"
#include "ace/Process.h"
#include "ace/Signal.h"
#include "a... | {
"content_hash": "b12816e5e2887c8c95185b7142729835",
"timestamp": "",
"source": "github",
"line_count": 1023,
"max_line_length": 105,
"avg_line_length": 29.044965786901273,
"alnum_prop": 0.5730151785413792,
"repo_name": "binary42/OCI",
"id": "786b917e96f5fb30bd0e21e65313cb66c2f5d778",
"size": "2971... |
layout: page
title: Aeon Hero Group Executive Retreat
date: 2016-05-24
author: Sarah Mclaughlin
tags: weekly links, java
status: published
summary: Ut augue odio, pulvinar quis sapien eget, luctus vestibulum sapien.
banner: images/banner/leisure-02.jpg
booking:
startDate: 11/25/2017
endDate: 11/30/2017
ctyhocn: S... | {
"content_hash": "e8e8edab47592f8da3cdce547f2b4029",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 614,
"avg_line_length": 96,
"alnum_prop": 0.8109567901234568,
"repo_name": "KlishGroup/prose-pogs",
"id": "facde37b8b71d03c65806b959c02aa57e42bc2db",
"size": "2596",
"bin... |
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_name">Quiz Sample Wearable App</string>
<string name="question">Question %d</string>
<string name="quiz_report">Quiz Report</string>
<string name="correct">correct</string>
<st... | {
"content_hash": "f4aca676d6373173a39e44fa839906d7",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 63,
"avg_line_length": 33.5,
"alnum_prop": 0.6886993603411514,
"repo_name": "mauimauer/AndroidWearable-Samples",
"id": "2136073ccab560890a7227d2fcad76fdcfd93e89",
"size": "... |
<?php
namespace JJSoft\SigesCore\Http\Requests;
use Joselfonseca\LaravelApiTools\Http\Requests\ApiRequest;
class CreateFieldRequest extends ApiRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return tru... | {
"content_hash": "cb6bf56ff1cda5c6f3263cee978cd12c",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 64,
"avg_line_length": 19.09375,
"alnum_prop": 0.5597381342062193,
"repo_name": "jjsoft-ar/siges-core",
"id": "4f919e4c7cbf711f80db1bd99c9bc1a90523db89",
"size": "611",
"... |
// Provides control sap.ui.commons.MenuItem.
sap.ui.define(['jquery.sap.global', './MenuItemBase', './library', 'sap/ui/unified/MenuItem'],
function(jQuery, MenuItemBase, library, MenuItem1) {
"use strict";
/**
* Constructor for a new MenuItem.
*
* @param {string} [sId] id for the new control, generated ... | {
"content_hash": "1942522a73cab7208f4a130e2e565a46",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 122,
"avg_line_length": 30.875,
"alnum_prop": 0.6874493927125506,
"repo_name": "brakmic/OpenUI5_Table_Demo",
"id": "f38886f20c68e8adafee10ed5101f2f4fee19492",
"size": "1431... |
function [ variableNameList, status ] = variables( this )
%VARIABLES List all the variables on the MPBus workspace
% Detailed explanation goes here
[variableList, success] = this.workspace.getVariables();
if success
variableNameList = fieldnames(variableList);
else
variableNameList = {};
end
status = succe... | {
"content_hash": "5550781d33dc03e97433169fc2489196",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 57,
"avg_line_length": 24.923076923076923,
"alnum_prop": 0.7530864197530864,
"repo_name": "DKLab/MPAnalyze",
"id": "125248d8d713b3726baa3a5f08c7cd6cc925b46d",
"size": "324"... |
// Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,... | {
"content_hash": "49f9b17777ba8abfe6191dfc27c1e548",
"timestamp": "",
"source": "github",
"line_count": 314,
"max_line_length": 100,
"avg_line_length": 25.296178343949045,
"alnum_prop": 0.6114818078811532,
"repo_name": "vilmospapp/jodd",
"id": "485ee768ba7b44852f9a37cce97cec5a8bd3731e",
"size": "79... |
import bcrypt from 'bcrypt';
import jwt from 'jsonwebtoken';
import nodemailer from 'nodemailer';
import decodeJwt from 'jwt-decode';
import smtpTransport from 'nodemailer-smtp-transport';
import util from 'util';
import user from '../models';
import passport from './local';
import validateSignupInput from '../... | {
"content_hash": "879a85b77c9bff64c4eff2aeff49950b",
"timestamp": "",
"source": "github",
"line_count": 305,
"max_line_length": 136,
"avg_line_length": 33.79344262295082,
"alnum_prop": 0.5674784127292132,
"repo_name": "rkterungwa16/postIt-app",
"id": "174e312692f26b4936792e8bb833f16261b1a834",
"siz... |
/* eslint-env jest */
/* global jasmine */
import { join } from 'path'
import { readFileSync, readdirSync } from 'fs'
import rimraf from 'rimraf'
import { promisify } from 'util'
import { nextServer, runNextCommand, startApp, stopApp } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
const rimr... | {
"content_hash": "9f1d48a022e3ccb4f1acd667af7b97b7",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 79,
"avg_line_length": 25.676470588235293,
"alnum_prop": 0.581901489117984,
"repo_name": "BlancheXu/test",
"id": "88185316f0d342f2ef1bedaefa2a2cb7a3ccd3de",
"size": "1746",... |
#ifndef BOOST_OUTCOME_TRAIT_STD_ERROR_CODE_HPP
#define BOOST_OUTCOME_TRAIT_STD_ERROR_CODE_HPP
#include "../config.hpp"
#include <system_error>
BOOST_OUTCOME_V2_NAMESPACE_BEGIN
namespace detail
{
// Customise _set_error_is_errno
template <class State> constexpr inline void _set_error_is_errno(State &state, con... | {
"content_hash": "43dd80110110fd916e9557857d652e79",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 265,
"avg_line_length": 33.20792079207921,
"alnum_prop": 0.6848539057841383,
"repo_name": "kumakoko/KumaGL",
"id": "18d430f99cfcadaca3ed389528da9f141df5daa4",
"size": "481... |
package net.runelite.client.plugins.puzzlesolver.solver.heuristics;
import net.runelite.client.plugins.puzzlesolver.solver.PuzzleState;
import static net.runelite.client.plugins.puzzlesolver.solver.PuzzleSolver.DIMENSION;
/**
* An implementation of the manhattan distance heuristic function.
*
* https://heuristics... | {
"content_hash": "b8c359919932fb53ee90da150f856ec1",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 85,
"avg_line_length": 20.25,
"alnum_prop": 0.6198559670781894,
"repo_name": "UniquePassive/runelite",
"id": "7bcb3891b8e4026965435289729cb36f1bbd7c2a",
"size": "3393",
"... |
<?php
class dmErrorWatcher extends dmConfigurable
{
protected
$dispatcher,
$context,
$options;
public function __construct(sfEventDispatcher $dispatcher, dmContext $context, array $options = array())
{
$this->dispatcher = $dispatcher;
$this->context = $context;
$this->configure($opti... | {
"content_hash": "53efdf4c5a0eb5cb4fecf35cf5e9083f",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 106,
"avg_line_length": 24.427480916030536,
"alnum_prop": 0.5778125,
"repo_name": "carechimba/diem",
"id": "dfa18e93c4f98debc4c967f7b85be6446eac13c3",
"size": "3200",
"b... |
package koncept.kwiki.core.resource;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.List;
import koncept.kwiki.core.WikiResource;
public class WikiResourceAssertions {
public static void assertResour... | {
"content_hash": "40dcf9981cd0ecd17ac48f17439c90a8",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 82,
"avg_line_length": 27.424242424242426,
"alnum_prop": 0.7226519337016575,
"repo_name": "custom-koncept-ltd/kwiki",
"id": "636557141a65b20dffd83cb1dc8c6854d87e11e0",
"siz... |
/**
* TreeHelper.java
* Hao Tong
* Email: tonghaozju@gmail.com
*/
package com.cucs.waston.service;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.cucs.w... | {
"content_hash": "6fd5c421ab2dfba423e1d91e9ecec325",
"timestamp": "",
"source": "github",
"line_count": 324,
"max_line_length": 271,
"avg_line_length": 33.52469135802469,
"alnum_prop": 0.6786043085987847,
"repo_name": "T-abide/SocialEventExtraction",
"id": "f0d44980fee627c6d8374850c09721127538ff5d",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.