text stringlengths 2 1.04M | meta dict |
|---|---|
require 'utils/view_helper'
module Utils
class Railtie < Rails::Railtie
initializer "utils.view_helper" do
ActionView::Base.send :include, ViewHelper
end
end
end | {
"content_hash": "4f1343f39e04fffef864c860ce512a4a",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 48,
"avg_line_length": 22.375,
"alnum_prop": 0.7206703910614525,
"repo_name": "wangfuhai2013/utils-rails",
"id": "ab0c06569b11fc23353aac9d85c0ecc3c01b6504",
"size": "179",
... |
<div id="main">
<h1>Contact Us</h1>
<p>If you have any questions, feedback or propositions you can email us at info@calendarscripts.info or fill the form below:</p>
<form class="form" id="contactFrm">
<div><label>Your email:</label> <input type="text" name="email" class="required email"></div>
<div><label... | {
"content_hash": "3476bc3a3ffce2f38f356300e6c302eb",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 128,
"avg_line_length": 38.095238095238095,
"alnum_prop": 0.65625,
"repo_name": "pimteam/Pyrostia",
"id": "5b55cc2c6fa910cdb263c23d1cafdab5d798f483",
"size": "800",
"bina... |
json_value *access_json_hash(const json_value *p, const json_char *key) {
if (p->type != json_object) return NULL;
for (unsigned i=0; i < p->u.object.length; i++) {
if (strcmp(p->u.object.values[i].name, key)==0) {
return p->u.object.values[i].value;
}
}
return NULL;
}
bool assertinteger(const char *varname... | {
"content_hash": "77b2aa5c2db16de3b5ed3125573335b7",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 116,
"avg_line_length": 29.806122448979593,
"alnum_prop": 0.656966792194454,
"repo_name": "dridk/tankfighter",
"id": "f37def14e7d79f90f285d0d6913a3800eefa2628",
"size": "30... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "1b6d9e61da3f395cfde6e72d77f2d8ff",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "2d5010091e52fd60f94208ef61ab2a40b9721b20",
"size": "186... |
#include <lib.h>
#include <fcntl.h> /* for the proto; emphasize varargs kludge */
PUBLIC int fcntl(fd, cmd, barf)
int fd;
int cmd;
int barf; /* varargs; fix it when open is fixed */
{
return(callm1(FS, FCNTL, fd, cmd, barf, NIL_PTR, NIL_PTR, NIL_PTR));
}
| {
"content_hash": "6963aa43f280ab5f00b06e972c0aefa1",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 70,
"avg_line_length": 26.1,
"alnum_prop": 0.6551724137931034,
"repo_name": "macminix/MacMinix",
"id": "7c6d3eb2c273143aa36250e407b0a57548453af3",
"size": "261",
"binary"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>railroad-crossing: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstr... | {
"content_hash": "559261e042971c21a4f61cae98c6b72b",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 457,
"avg_line_length": 44.50588235294118,
"alnum_prop": 0.5672746497488765,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "c765e8cfa32ab70b6dae6b1c14b27291e0597704",
... |
#!/bin/bash
#
#
# 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"... | {
"content_hash": "f58c37b627444fd2f5bf7a5f04c073ea",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 174,
"avg_line_length": 33.92035398230089,
"alnum_prop": 0.635794416905818,
"repo_name": "mike-tr-adamson/incubator-tinkerpop",
"id": "84ba81791bf19fa22fdefbf14d43fb96fdc948... |
package org.hswebframework.web.system.authorization.api.entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hswebframework.ezorm.rdb.mapping.annotation.ColumnType;
import org.hswebframework.ezorm.rdb.mapping.annotation.Comment;
import org.hswebframework.ezorm.rdb.mapping.annotation.D... | {
"content_hash": "038c60146f15b31ca59bbbe1ea93d9a3",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 115,
"avg_line_length": 32.768595041322314,
"alnum_prop": 0.6870113493064313,
"repo_name": "hs-web/hsweb-framework",
"id": "dd596d6fa0a171d666df836371b1d5a82aa8e49a",
"siz... |
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.0.3328.4
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
/... | {
"content_hash": "0d868150fd6e22c90de29ab093bf6e30",
"timestamp": "",
"source": "github",
"line_count": 1437,
"max_line_length": 384,
"avg_line_length": 39.84620737647877,
"alnum_prop": 0.615431635201453,
"repo_name": "theill/iquomi",
"id": "80ab1cb5b201774e37e521ef0968e0a623abac17",
"size": "57261... |
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Debtor_FindByTelephoneAndFaxNumberResponse xmlns="http://e-conomic.com">
<Debtor_FindB... | {
"content_hash": "1805243bd52b1618c65f68a499b615db",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 169,
"avg_line_length": 46.416666666666664,
"alnum_prop": 0.7127468581687613,
"repo_name": "substancelab/rconomic",
"id": "d0c614f520fa8de4b71a9480b7dc350b6943bc67",
"size"... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_class_memmove_63a.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.label.xml
Template File: sources-sink-63a.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Al... | {
"content_hash": "d3551ec90ed66ba5e355211b131f2234",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 131,
"avg_line_length": 27.885057471264368,
"alnum_prop": 0.6735366859027205,
"repo_name": "maurer/tiamat",
"id": "5b1bdf165ab11e640311b43927c7990ec6ef242b",
"size": "2426"... |
namespace MIG.Interfaces.HomeAutomation.Api
{
public class ModuleProperties
{
public string Name { get; set; }
public string Description { get; set; }
public string Value { get; set; }
public string UpdateTime { get; set; }
public bool NeedsUpdate { get; set; }
}
... | {
"content_hash": "3346d7b614e773f1a78cd3ac256a7857",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 47,
"avg_line_length": 21.533333333333335,
"alnum_prop": 0.6037151702786377,
"repo_name": "davidwallis3101/HomegenieEchoBridge",
"id": "415b55a28599eaf1ddcc6dbb65a790b7b2edf5... |
require 'spec_helper'
describe Procto, '.call' do
subject { klass.call(text) }
context 'with no name' do
include_context 'procto'
let(:klass) do
Class.new do
include Procto.call
def initialize(text)
@text = text
end
def call
"Hello #{@text}"
... | {
"content_hash": "bfed2a1f189c27e66ca302e801d7e371",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 49,
"avg_line_length": 16.295454545454547,
"alnum_prop": 0.5230125523012552,
"repo_name": "snusnu/procto",
"id": "bcff982a3c195c6cf1a9aafd0cf2bfe2d103dd76",
"size": "736",
... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "3a8184be0320058ac15f0c8554f64ff9",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "f7d901ad093a4dc287f416f714aaf4525814dc83",
"size": "177... |
require 'htable'
class ServicesController < ApplicationController
before_action :set_service, only: [:show, :edit, :update, :destroy, :updateAccessToken]
before_action :set_active
# GET /services
def index
user = User.find(session[:user_id])
@authority = user.authority
if @authority == 'master'
... | {
"content_hash": "76860b135b2f3a151c33ea09c6963023",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 197,
"avg_line_length": 34.293785310734464,
"alnum_prop": 0.6319604612850083,
"repo_name": "kakao/s2graph-admin",
"id": "0fb4b42d2b84a788da6a4aa98af62db03944f80a",
"size":... |
<!-- Copyright 2012-2017 Raytheon BBN Technologies Corp. All Rights Reserved. -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_20) on Wed Nov 15 19:26:04 EST 2017 -->
<meta http-equiv="Con... | {
"content_hash": "6c019d221903c8549978383ab0db94c1",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 205,
"avg_line_length": 38.94805194805195,
"alnum_prop": 0.5305101700566855,
"repo_name": "BBN-E/Adept",
"id": "3b4326e1c2d0dcfd47f11f79465eae0b88f5b43a",
"size": "2999",
... |
<?php
namespace Enlighter\compatibility;
use Enlighter\skltn\HtmlUtil;
use Enlighter\filter\InputFilter;
class Crayon{
// used by Crayon
// note: full filtering is used to avoid wpautop issues!
public static function getRegex(){
// opening tag, language identifier (required), additional attribut... | {
"content_hash": "c95b145f64f60222d5af4f938aa5e76b",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 112,
"avg_line_length": 28.75581395348837,
"alnum_prop": 0.5333602911443591,
"repo_name": "AndiDittrich/WordPress.Enlighter",
"id": "b74fb8f468a904c3ce8ae1fe24716dd209a5f7d1"... |
package com.amazonaws.services.config.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.config.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* DescribeConformancePackComplianceRequestMarshaller... | {
"content_hash": "14cac4d2b2406855f428ec8f647862f1",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 159,
"avg_line_length": 49.58490566037736,
"alnum_prop": 0.7785388127853882,
"repo_name": "aws/aws-sdk-java",
"id": "e6c9d0d1547b66b636349a063699416633d64060",
"size": "320... |
#include <shm_pool.h>
#include <gtest/gtest.h>
class ShmPoolTestSuite : public ::testing::Test {
public:
};
TEST_F(ShmPoolTestSuite, CreateDestroyShmPool) {
shm_pool_t *shmPool = nullptr;
celix_status_t status = shmPool_create(10240, &shmPool);
EXPECT_EQ(CELIX_SUCCESS, status);
EXPECT_TRUE(shmPool !... | {
"content_hash": "b67e7e59df82ae5574b2120dea9e25e9",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 73,
"avg_line_length": 29.36144578313253,
"alnum_prop": 0.7078375051292572,
"repo_name": "apache/celix",
"id": "39df4cae8f797cc5983c4a74c1d51561a79b9ee6",
"size": "3245",
... |
<?php
/**
* @file
* Contains \Drupal\Console\Command\Generate\CacheContextCommand.
*/
namespace Drupal\Console\Command\Generate;
use Drupal\Console\Utils\Validator;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInter... | {
"content_hash": "9c15890732cf682f105e37d9400e2300",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 89,
"avg_line_length": 30.405555555555555,
"alnum_prop": 0.57445642243742,
"repo_name": "leorawe/sci-base",
"id": "3d29bdf6d6c207ec213cf57eb2d3e7c0e9b27899",
"size": "5473... |
require 'helper'
class TestCloud < AVTestCase
# functions stored in test/cloud_functions/MyCloudCode
# see https://parse.com/docs/cloud_code_guide to learn how to use AV Cloud Code
#
# AV.Cloud.define('trivial', function(request, response) {
# response.success(request.params);
# });
def test_cloud_function_i... | {
"content_hash": "215ac4a0301099b69711662c6ccc921b",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 108,
"avg_line_length": 32.40625,
"alnum_prop": 0.6885245901639344,
"repo_name": "lostpupil/leancloud-ruby-client",
"id": "730c1da6eeffb01c62318c47d37b039135832564",
"size"... |
namespace base {
class FilePath;
}
namespace google_apis {
class DriveUploaderInterface;
}
namespace drive {
class DriveCache;
class DriveFileSystemInterface;
class DriveScheduler;
namespace file_system {
class CopyOperation;
class MoveOperation;
class OperationObserver;
class RemoveOperation;
class UpdateOperatio... | {
"content_hash": "b880fe4c74def3968e34e22e1e872757",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 80,
"avg_line_length": 33.979166666666664,
"alnum_prop": 0.6827099938687922,
"repo_name": "nacl-webkit/chrome_deps",
"id": "1f188ace8b12a1ad0a4bafea6a5a3ca07c9b5e23",
"size... |
package apimanagement
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
... | {
"content_hash": "b5b3b2ff0ef1f9d8e5795fc262eae2c8",
"timestamp": "",
"source": "github",
"line_count": 498,
"max_line_length": 210,
"avg_line_length": 45.963855421686745,
"alnum_prop": 0.746264744429882,
"repo_name": "sferich888/origin",
"id": "c65c4650b1470c54af63836573baa93c2282be20",
"size": "2... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "483a2aca30ec9f8ff05d681d251216f2",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "88c929d81e10f96d30164c5029dd40c95814c756",
"size": "18... |
<?php
namespace Ojs\ApiBundle\Controller;
use Doctrine\Common\Collections\Collection;
use FOS\RestBundle\Controller\Annotations\Get;
use FOS\RestBundle\Controller\Annotations\Patch;
use FOS\RestBundle\Controller\Annotations\View as RestView;
use FOS\RestBundle\Controller\FOSRestController;
use Nelmio\ApiDocBundle\Ann... | {
"content_hash": "d15f064d75f77e42376d34f30c9e6e49",
"timestamp": "",
"source": "github",
"line_count": 326,
"max_line_length": 106,
"avg_line_length": 28.45398773006135,
"alnum_prop": 0.5354678740836567,
"repo_name": "zaferkanbur/ojs",
"id": "0d8c2278509087fe5fd59a52757ea3f60eba6709",
"size": "927... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "329881114e0ff128896ab242b9c5a438",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "f4b3de2df10b2a3d4db79fddea145dbea0da8cdd",
"size": "19... |
const assert = require("assert");
const { Builder, By, Key } = require("selenium-webdriver");
const firefox = require("selenium-webdriver/firefox");
const fs = require("fs");
const path = require("path");
describe("File download", function() {
let driver;
const tmpDir = path.join(__dirname, "tmp");
beforeEach(a... | {
"content_hash": "0f4fb01d135276e1181c0d9a45815b11",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 80,
"avg_line_length": 31.6875,
"alnum_prop": 0.6554898093359632,
"repo_name": "tourdedave/elemental-selenium-tips",
"id": "76d3fb6bb59fd531556264dd254e59ed7a18cdbe",
"size... |
permalink: /components/input/overviewservice/overview
title: "Form service components"
comp: "overviewService"
---
{% include base_path %}
{% include toc %}
Form service components are component that must be placed inside a [form]({{ base_path }}/docs/components/form/){:target="_blank"}. This components display a set... | {
"content_hash": "d80d2849fa7c7d21e4f4811127f82ce0",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 495,
"avg_line_length": 68.51020408163265,
"alnum_prop": 0.7548406315162347,
"repo_name": "OntimizeWeb/docs",
"id": "c0075d1f7a7cfed280e9b160de4badbaf284b218",
"size": "336... |
;(function ($, window, document, undefined) {
"use strict";
var _module = module;
module.exports = function(parameters) {
var
$allModules = $(this),
$document = $(document),
$window = $(window),
$body = $('body'),
moduleSelector = $allModules.selector || '',
hasTo... | {
"content_hash": "15e07ced8cef4966ee27a8d7985150f6",
"timestamp": "",
"source": "github",
"line_count": 1405,
"max_line_length": 117,
"avg_line_length": 33.02989323843416,
"alnum_prop": 0.4701230417824897,
"repo_name": "jalota16/cooklah",
"id": "70e4250dafccd5f5fa0262009e7a8ccd56808743",
"size": "4... |
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <stddef.h>
#include <limits.h>
#include "aplib.h"
/*
* Calling convention for the callback.
*/
#ifndef CB_CALLCONV
# if defined(AP_DLL)
# define CB_CALLCONV __stdcall
# elif defined(__GNUC__)
# define CB_CALLCONV
# else
# define CB_CALLCONV _... | {
"content_hash": "cdd80bb14c4e53a461fac15a5f0e26c7",
"timestamp": "",
"source": "github",
"line_count": 275,
"max_line_length": 101,
"avg_line_length": 23.14909090909091,
"alnum_prop": 0.5300031416902293,
"repo_name": "SONIC3D/gendev-macos",
"id": "961320137b1b9e2af80a033281725e3360d9484a",
"size":... |
<?php
/**
* Cart Page
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $woocommerce;
wc_print_notices();
do_action( 'woocommerce_before_cart' ); ?>
<form action="<?php echo esc_url( WC()->cart->get_cart_u... | {
"content_hash": "0081db8e1666bf30d0974f81ed626c68",
"timestamp": "",
"source": "github",
"line_count": 160,
"max_line_length": 276,
"avg_line_length": 36.2,
"alnum_prop": 0.5849447513812155,
"repo_name": "harrygr/samarkand",
"id": "6b98379a49bf16ae9ecf6c726c26fa7471de67e8",
"size": "5792",
"bina... |
import * as React from "react";
import { ContainerContext } from "./container";
import { MapStoresToProps, StoreMap, Unsubscribe } from "./types";
import { Store } from "./Store";
export function connect<TInjectedProps, TAllProps extends TInjectedProps>(
mapStoresToProps: MapStoresToProps<TInjectedProps>,
Cmp: Rea... | {
"content_hash": "4a085d9b4730666a6d7dca02554be81f",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 75,
"avg_line_length": 30.846153846153847,
"alnum_prop": 0.628428927680798,
"repo_name": "alisabzevari/reastore",
"id": "ae3452719fd5068190814442ca91eccebd5fb402",
"size": ... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "fe1b51cc0b1a27fdeacf774203069ad2",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "d09668dcc86ce29c8fbe6ca159d7b4092422fb35",
"size": "19... |
<?php
/**
* @namespace
*/
namespace ShiftTest\Unit\ShiftContentNew\Type\Field\Attribute\Validator;
use Mockery;
use ShiftTest\TestCase;
use ShiftContentNew\Type\Field\Attribute\Validator\OptionTypeValidator;
/**
* Option type validator test
* This holds unit tests for attribute option variable type validator.
... | {
"content_hash": "4065096275f1d76a0addd4b81117236f",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 72,
"avg_line_length": 23.267605633802816,
"alnum_prop": 0.6422518159806295,
"repo_name": "dmitrybelyakov/shift-content-new",
"id": "551ca046dc35a724025512f68ac9fb29d3d7469c"... |
require "rom/core"
RSpec.describe ROM, ".components" do
let(:components) do
ROM.components
end
around do |example|
components.keys.tap do |keys|
example.run
(components.keys - keys).each { |key| components._container.delete(key) }
end
end
it "registers a component handler with defau... | {
"content_hash": "f0e8cb9875431fb7ade0b0ad0f822c06",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 79,
"avg_line_length": 23.586206896551722,
"alnum_prop": 0.6842105263157895,
"repo_name": "rom-rb/rom",
"id": "ac5ef9d3503e7b2e14b28ffe73f61bc8e8a918e9",
"size": "715",
"... |
SYNONYM
#### According to
Index Fungorum
#### Published in
null
#### Original name
Ascophora nucum Corda
### Remarks
null | {
"content_hash": "24f8528d598b841ffdecec3fc6ee572d",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 21,
"avg_line_length": 9.615384615384615,
"alnum_prop": 0.704,
"repo_name": "mdoering/backbone",
"id": "8ad74dadd6131d8b5aa0075c8fe78e48d8ca6894",
"size": "170",
"binary"... |
/*
* Author: 陈志杭 Caspar
* Contact: 279397942@qq.com qq:279397942
* Description: 逻辑层接口契约文件
* 文件由模板生成,请不要直接修改文件,如需修改请创建一个对应的partial文件
*/
using System;
using System.Collections;
using System.Collections.Generic;
using Zh.DAL.Define.Entities;
using Zh.BLL.Define.Entities;
using Zh.BLL.Base.Define;
namespace Zh.BLL.... | {
"content_hash": "7c8850a26bce1b37d02115bf14f32c5b",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 111,
"avg_line_length": 24.894736842105264,
"alnum_prop": 0.758985200845666,
"repo_name": "Caspar12/Csharp",
"id": "629d102eaa179daed08a5547ad7fe494f3291c88",
"size": "559"... |
package org.renci.databridge.persistence.metadata;
import java.util.*;
public class VariableTransferObject {
private String name;
private String description; // Free text metadata about the study
private HashMap<String, String> extra;
// These attributes are specific to the DataBridge
private int... | {
"content_hash": "9bc08a3564f170b490eae8b41533bf1d",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 265,
"avg_line_length": 20.229813664596275,
"alnum_prop": 0.5431378569235493,
"repo_name": "HowardLander/DataBridge",
"id": "89d550fc3bfdf8c25346e0a9694f9e99d38ef317",
"si... |
layout: default
---
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | da... | {
"content_hash": "43925cbd42d6ad5411055267eccbbcc3",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 307,
"avg_line_length": 50.833333333333336,
"alnum_prop": 0.6459016393442623,
"repo_name": "evan-erdos/evan-erdos.github.io",
"id": "2ba0f1d4fcf556bc473a3651aaf97b3544fe6987"... |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | {
"content_hash": "463c63d2fa8ab5081eb6b4b55ee8f2b0",
"timestamp": "",
"source": "github",
"line_count": 359,
"max_line_length": 562,
"avg_line_length": 42.42339832869081,
"alnum_prop": 0.4788575180564675,
"repo_name": "kuhlenh/port-to-core",
"id": "132d014c2dd59821a35962d4566d2673cb24bdf4",
"size":... |
package net.authorize.data;
import java.io.Serializable;
/**
* Product shipping address.
*/
public class ShippingAddress extends Address implements Serializable {
private static final long serialVersionUID = 2L;
private ShippingAddress() {
super();
}
public static ShippingAddress createShippingAddress() ... | {
"content_hash": "59cf17bb9edd02453abb7ea6da14375d",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 70,
"avg_line_length": 16.363636363636363,
"alnum_prop": 0.75,
"repo_name": "YOTOV-LIMITED/sdk-android",
"id": "20244986e0d2e8cd47cc92a42d908af36fd314fb",
"size": "360",
... |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<title>Savy Lacombe</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas
––––––––––––––––––––––––––––––––––––––... | {
"content_hash": "b5801f27b7deea669560d5aa2dd2e74a",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 236,
"avg_line_length": 44.03703703703704,
"alnum_prop": 0.5941968040370059,
"repo_name": "xmwl/homepage",
"id": "d1a27f4b71013e4635aa1cddb710423daf58c198",
"size": "2878",... |
'use strict';
//Form相关操作
//获取表单的值
var input1 = document.getElementById('email');
console.log(input1.value);
//修改
input1.value = "kris.dacpc@gmail.com";
//是否勾选
var label1 = document.getElementById('monday');
console.log(label1.checked);
label1.checked = true;
//提交表单
function doSubmitForm(){
var form = document.getE... | {
"content_hash": "dbf9788e6830467377cad528d49f194c",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 59,
"avg_line_length": 23.355555555555554,
"alnum_prop": 0.6384395813510942,
"repo_name": "KrisCheng/HackerPractice",
"id": "115afeda7081444477590c1e22f8d18406059985",
"siz... |
import React from 'react';
import './Header.scss';
import WingButton from '../WingButton/WingButton';
import FieldEditor from '../FieldEditor/FieldEditor';
const Header = (props) => (
<div className="header-wrapper">
<WingButton onClick={props.autoPlay}></WingButton>
<FieldEditor value={props.email} onChang... | {
"content_hash": "52cdb9b298cad4bfdfb844aeca700e37",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 79,
"avg_line_length": 27.55,
"alnum_prop": 0.7332123411978222,
"repo_name": "rainbowland302/hangman",
"id": "d79d142dafa37b03a2519ed8de870248a59cb73f",
"size": "551",
"b... |
import { extra, autoService } from 'knifecycle';
import { readArgs } from '../libs/args.js';
import { YError } from 'yerror';
import camelCase from 'camelcase';
import { HANDLER_REG_EXP } from '@whook/whook';
import _inquirer from 'inquirer';
import path from 'path';
import { OPEN_API_METHODS, noop } from '@whook/whook... | {
"content_hash": "481afac356d4fabb7d29b1547e0caeff",
"timestamp": "",
"source": "github",
"line_count": 494,
"max_line_length": 95,
"avg_line_length": 25.149797570850204,
"alnum_prop": 0.5798454603992274,
"repo_name": "nfroidure/whook",
"id": "676b0faee22e3a19a0bf460204dd76a984658384",
"size": "124... |
package com.zfxf.douniu.view.fragment;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andro... | {
"content_hash": "90f1f89258522c4d630d8e73f4af2522",
"timestamp": "",
"source": "github",
"line_count": 294,
"max_line_length": 104,
"avg_line_length": 33.41836734693877,
"alnum_prop": 0.7262086513994911,
"repo_name": "chsimon99/myDouNiu",
"id": "a0ce4271abc7d552554039964dd2966ebda902ea",
"size": "... |
package s2
import (
"math"
"github.com/golang/geo/r2"
)
const EPSILON float64 = 1e-14
// Number of bits in the mantissa of a double.
const EXPONENT_SHIFT uint = 52
// Mask to extract the exponent from a double.
const EXPONENT_MASK uint64 = 0x7ff0000000000000
func min(a, b int) int {
if a > b {
return b
}
r... | {
"content_hash": "8ea112ea6f9c0adfb2f9261c9b8ff526",
"timestamp": "",
"source": "github",
"line_count": 577,
"max_line_length": 98,
"avg_line_length": 35.705372616984405,
"alnum_prop": 0.6798369090379575,
"repo_name": "Logician/geo",
"id": "b023a571e29d68433173d112996722d1f2d4e18c",
"size": "20602"... |
package lstring
import (
"github.com/stretchr/testify/assert"
"testing"
)
func Test_rotateString(t *testing.T) {
assert := assert.New(t)
assert.False(rotateString("abcde", "cdeab111"))
assert.True(rotateString("abcde", "bcdea"))
assert.True(rotateString("abcde", "cdeab"))
assert.False(rotateString("abcde", "a... | {
"content_hash": "a9713f69465b21a60cc2fb16807afe21",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 54,
"avg_line_length": 24.0625,
"alnum_prop": 0.7194805194805195,
"repo_name": "TTWShell/algorithms",
"id": "de9b8ad69c2bef5d11b26bf76657d31d44821a31",
"size": "385",
"bi... |
import { useMemo, FC, Dispatch, SetStateAction, useCallback } from "react";
import { createEditor, Descendant } from "slate";
import { Slate, Editable, withReact } from "slate-react";
import { withHistory } from "slate-history";
import isHotkey from "is-hotkey";
import { EditorToolbar } from "./EditorToolbar";
import ... | {
"content_hash": "5e4ca0d90b250e8b72d3fbf75c7e7f27",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 91,
"avg_line_length": 33.775510204081634,
"alnum_prop": 0.6120845921450151,
"repo_name": "matthewkeil/CODEified",
"id": "119391443c479ec8701b3b74507dfd3bdc7eafe0",
"size":... |
function initContentHeight(){
var win = $(window);
var header = $('.header');
var contentframe = $('.content-center');
var footer = $('.footer');
var out_height = win.height() - header.outerHeight(true) - footer.outerHeight(true) - 130;
contentframe.css('height', out_height);
}
function divresi... | {
"content_hash": "c7769c8c2a7228da792242ea1f7a4533",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 146,
"avg_line_length": 32.131147540983605,
"alnum_prop": 0.5571428571428572,
"repo_name": "mordarij/edela",
"id": "0e60461a58eb6317ba26935dfcb350ba310d01a5",
"size": "2049... |
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
log "github.com/Sirupsen/logrus"
"github.com/containous/traefik/autogen"
"github.com/containous/traefik/safe"
"github.com/containous/traefik/types"
"github.com/elazarl/go-bindata-assetfs"
"github.com/gorilla/mux"
"github.com/thoas/stats"
"... | {
"content_hash": "858a820d3574566e1df5d0e35860a189",
"timestamp": "",
"source": "github",
"line_count": 233,
"max_line_length": 198,
"avg_line_length": 38.36909871244635,
"alnum_prop": 0.7479865771812081,
"repo_name": "goguardian/traefik",
"id": "445a83bce4176bf7187848a3da270e2e9d43af66",
"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 (1.8.0_92) on Fri Apr 26 10:03:31 BST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>com.github.rvesse.airline.io... | {
"content_hash": "7ac906f57d90e4bebf292809073b2c01",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 194,
"avg_line_length": 51.19047619047619,
"alnum_prop": 0.6744186046511628,
"repo_name": "rvesse/airline",
"id": "882a35a671d03b523c97d278694cace4cf6774e7",
"size": "1075"... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = testEvents;
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _parse = _interopRequi... | {
"content_hash": "8bd5de4df57c7c5d712184007a58d02a",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 265,
"avg_line_length": 25.965714285714284,
"alnum_prop": 0.5459947183098591,
"repo_name": "jpoeng/jpoeng.github.io",
"id": "73c0c1b2be6609c442494f04de74f6a3c3a6ae8f",
"si... |
package com.izettle.java;
import static com.izettle.java.CollectionUtils.partition;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Coll... | {
"content_hash": "2f4a74423d52608ce5191196514e2e30",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 104,
"avg_line_length": 35.218934911242606,
"alnum_prop": 0.6429771505376344,
"repo_name": "iZettle/izettle-toolbox",
"id": "0a04d44cb46e1bb459b92596497f5ea5d4ec6357",
"si... |
namespace std
{
namespace tr1
{
typedef short test_type;
template struct is_floating_point<test_type>;
}
}
| {
"content_hash": "1ff738fd6014e290a05d5a030a3d2cc9",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 49,
"avg_line_length": 15.125,
"alnum_prop": 0.6694214876033058,
"repo_name": "the-linix-project/linix-kernel-source",
"id": "0ca78b42762e8633f402ffd1aa6245922cdddaa7",
"siz... |
require "spec_helper"
require "hamster/tuple"
describe Hamster::Tuple do
describe "#first" do
before do
@tuple = Hamster::Tuple.new("A", "B")
end
it "returns the first value" do
@tuple.first.should == "A"
end
end
end | {
"content_hash": "4175d42b3b6362b912ebd18f89958e7c",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 43,
"avg_line_length": 17.857142857142858,
"alnum_prop": 0.624,
"repo_name": "alexdowad/hamster",
"id": "b8e6a7a723b24a5efd19943d0915743581b21c64",
"size": "250",
"binary... |
ROOT = process.cwd()
var config = require(ROOT+'/config.json');
console.log("logs go to: "+ROOT+config.log_path);
var winston = require('winston');
var logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)({ json: false, timestamp: true }),
new winston.transports.File({ filename: ... | {
"content_hash": "46dc0c519fa90c7366d0c44d9e838eda",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 97,
"avg_line_length": 22.72972972972973,
"alnum_prop": 0.6492271105826397,
"repo_name": "nikkis/OrchestratorJS",
"id": "f41ee2776237867acaf63c6793d744ade48c2288",
"size": ... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.daef.controllers;
import com.daef.models.Post;
import com.daef.repositories.PostRepository;
import org.springframework.bea... | {
"content_hash": "614ea7eb214d79d2a4948c356006b40c",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 115,
"avg_line_length": 31.78048780487805,
"alnum_prop": 0.7743668457405987,
"repo_name": "gode-ting/hackernews-clone-backend",
"id": "54611341810f0c9ec130d93a15286729c9a913e... |
package org.apache.hadoop.hive.ql.udf.generic;
import java.text.DecimalFormat;
import org.apache.hadoop.hive.common.type.HiveDecimal;
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDFArgumentException;
import org.apache.hadoop.hive.ql.exec.UDFArgumentLengthException;
impor... | {
"content_hash": "121463650091ab93f311511cd5102554",
"timestamp": "",
"source": "github",
"line_count": 240,
"max_line_length": 112,
"avg_line_length": 40.12083333333333,
"alnum_prop": 0.635268459860837,
"repo_name": "vergilchiu/hive",
"id": "ed03b395ece0d027c703a67f9602e6cee0e81ea8",
"size": "1043... |
var t = db.max_time_ms;
var exceededTimeLimit = 50; // ErrorCodes::ExceededTimeLimit
var cursor;
var res;
//
// Simple positive test for query: a ~300ms query with a 100ms time limit should be aborted.
//
t.drop();
t.insert([{}, {}, {}]);
cursor = t.find({
$where: function() {
sleep(100);
return ... | {
"content_hash": "3954ef1321171289f9d8048cec0a1cc6",
"timestamp": "",
"source": "github",
"line_count": 412,
"max_line_length": 100,
"avg_line_length": 32.69660194174757,
"alnum_prop": 0.649691930814342,
"repo_name": "christkv/mongo-shell",
"id": "471e84690b8c399d8f26f8da9a30274ea4c9a419",
"size": ... |
layout: post
title: "Testing a TypeScript Custom Component"
tags: [coveo-search-ui, Custom Component, TypeScript, CoveoFeelingLucky]
author:
name: François Lachance-Guillemette
bio: Coveo for Sitecore Developer
image: flguillemette.jpg
---
Now that we have [created a custom component](http://source.coveo.com/2017... | {
"content_hash": "ebd3ed6fddb773ca198b67e5ef3e6df3",
"timestamp": "",
"source": "github",
"line_count": 224,
"max_line_length": 337,
"avg_line_length": 42.888392857142854,
"alnum_prop": 0.7345685437701676,
"repo_name": "acverrette/source.coveo.com",
"id": "4b43325680214637130d8bc9d8adccd707187878",
... |
package org.apache.sshd.common.keyprovider;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.security.KeyPair;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Li... | {
"content_hash": "0f19ddca28e1c949c58a8f353c1e5e7d",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 126,
"avg_line_length": 39.202127659574465,
"alnum_prop": 0.6113975576662144,
"repo_name": "lgoldstein/mina-sshd",
"id": "a1a2dca8691330f8301200dc9fc1185c0449c791",
"size":... |
import Yoga from '@react-pdf/yoga';
import setAlignContent from '../../src/node/setAlignContent';
describe('node setAlignContent', () => {
const mock = jest.fn();
const node = { yogaNode: { setAlignContent: mock } };
beforeEach(() => {
mock.mockReset();
});
test('should return node if no yoga node ava... | {
"content_hash": "60fac76e83d45f1dfec48bb0d360ff5c",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 65,
"avg_line_length": 29.132530120481928,
"alnum_prop": 0.6406120760959471,
"repo_name": "diegomura/react-pdf",
"id": "b8d23d7618f1965a014995defd846409519722a5",
"size": "... |
//
// LYCategoriesMacro.h
// LYCategories <https://github.com/DeveloperLY/LYCategories>
//
// Created by Liu Y on 16/4/2.
// Copyright © 2016年 DeveloperLY. All rights reserved.
//
// This source code is licensed under the MIT-style license found in the
// LICENSE file in the root directory of this source tree.
//... | {
"content_hash": "e9f6c96bd7d8910b6db4576aeafe9572",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 143,
"avg_line_length": 37.17857142857143,
"alnum_prop": 0.7223823246878002,
"repo_name": "DeveloperLY/LYCategories",
"id": "3a99ea93f597be1109fd312293e8b877d26a4fb2",
"siz... |
/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */
body {
padding-bottom: 40px;
color: #5a5a5a;
}
/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */
/* Special class on .container surrounding .navbar, used for po... | {
"content_hash": "165cbcfbcbc97394756bfc27f63f6b32",
"timestamp": "",
"source": "github",
"line_count": 134,
"max_line_length": 90,
"avg_line_length": 18.91044776119403,
"alnum_prop": 0.5777426992896606,
"repo_name": "edutronics/Edutronics.github.io",
"id": "40a5928476fe42ab97c9faae61d0d31148fff769",... |
{-# LANGUAGE OverloadedStrings #-}
module Blah where
import Data.Aeson ((.:), (.:?), decode, FromJSON(..), Value(..))
import Control.Applicative ((<$>), (<*>))
import Data.Scientific as Scientific
import Data.Time.Format (parseTime)
import Data.Time.Clock (UTCTime)
import System.Loca... | {
"content_hash": "043e8659c0b5ed4a82b1f424babf5445",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 273,
"avg_line_length": 38.42168674698795,
"alnum_prop": 0.5779241141423643,
"repo_name": "katychuang/getting-started-with-haskell",
"id": "d7ce64ae7fc5da9ea60d1ed558e42ce944... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>All That Is Solid Melts into Air</title>
<meta name="description" content="360° Image Gallery - A-Frame">
<script src="https://aframe.io/releases/0.4.0/aframe.min.js"></script>
<script src="https://npmcdn.com/aframe-animation-componen... | {
"content_hash": "ff558b190a4dd100edd928bd2d6c5b44",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 138,
"avg_line_length": 49.05084745762712,
"alnum_prop": 0.598479612992398,
"repo_name": "ganttmd87/ganttmd87.github.io",
"id": "08497f216dd0cda9551aea4568a220f1fae0a7e1",
... |
package org.marre.xml;
import java.io.IOException;
/**
* Interface for objects that can be represented in xml form.
*
* @author Markus
* @version $Id$
*/
public interface XmlDocument
{
/**
* Returns the content-type of this xml document.
*
* @return Content-type. Ex: "text/xml".
*/
... | {
"content_hash": "4d94709f2fda1ad3411c2e60c73ac651",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 66,
"avg_line_length": 21.5,
"alnum_prop": 0.6395348837209303,
"repo_name": "Lihuanghe/CMPPGate",
"id": "1742993e4a995814fc884a7b1c92e55db68e8d4b",
"size": "2296",
"binar... |
import { useEffect } from "react";
import { UnityArguments } from "../types/unity-arguments";
import { UnityProvider } from "../types/unity-provider";
import { UnityLoaderStatus } from "../enums/unity-loader-status";
import { isBrowserEnvironment } from "../constants/is-browser-environment";
/**
* Creates a Unity Ins... | {
"content_hash": "8776c0bf48dee19b84861124552b3a36",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 78,
"avg_line_length": 40.69117647058823,
"alnum_prop": 0.6783520057824358,
"repo_name": "jeffreylanters/react-unity-webgl",
"id": "ca325feab0343d90929757e60c1e53223ada037d",... |
const Color Color::BLACK = createColorHexRGB(0x000000);
const Color Color::WHITE = createColorHexRGB(0xFFFFFF);
const Color Color::GREY = createColorHexRGB(0x808080);
const Color Color::RED = createColorHexRGB(0xFF0000);
const Color Color::GREEN = createColorHexRGB(0x00FF00);
const Color Color::BLUE = createColorHexRGB... | {
"content_hash": "4c5384819727d4f13f1d724fdc50251a",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 108,
"avg_line_length": 42,
"alnum_prop": 0.7018140589569161,
"repo_name": "simon-bourque/2D-Game-Engine-Cpp",
"id": "38d23afeb60bcf44ccfde8d7daf27a4781acbb34",
"size": "90... |
// This header file defines node specs for quantization and the methods to parse
// command line flags to these specs.
#ifndef TENSORFLOW_COMPILER_MLIR_LITE_QUANTIZATION_QUANTIZATION_CONFIG_H_
#define TENSORFLOW_COMPILER_MLIR_LITE_QUANTIZATION_QUANTIZATION_CONFIG_H_
#include <cstdint>
#include <string>
#include <un... | {
"content_hash": "a21d9985c42e0792c53bfa042b2d9e8b",
"timestamp": "",
"source": "github",
"line_count": 212,
"max_line_length": 80,
"avg_line_length": 43.02358490566038,
"alnum_prop": 0.7277710777327048,
"repo_name": "Intel-Corporation/tensorflow",
"id": "ea76823a8f3290f3ccf1414c907e891529073926",
... |
<?php
namespace CybozuHttp\Middleware;
use GuzzleHttp\Psr7\Stream;
use PHPUnit\Framework\TestCase;
class JsonStreamTest extends TestCase
{
public function testJsonSerialize(): void
{
$data = ['test' => 'data'];
$string = json_encode($data);
$jsonStream = new JsonStream(new Stream(fope... | {
"content_hash": "55a19a8ef7af73f9edfc3fe3bc84cafd",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 92,
"avg_line_length": 26.263157894736842,
"alnum_prop": 0.5951903807615231,
"repo_name": "ochi51/cybozu-http",
"id": "67d6b3806aca9e268f0620abb14aaabc1dedcf94",
"size": "9... |
package com.google.gerrit.server.plugins;
import com.google.common.util.concurrent.Uninterruptibles;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
class PluginScannerThread extends Thread {
private final CountDownLatch done = new CountDownLatch(1);
private final PluginLoader lo... | {
"content_hash": "d1d0e7476e0f01c51a7203e2c263f895",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 71,
"avg_line_length": 25.216216216216218,
"alnum_prop": 0.6956055734190782,
"repo_name": "GerritCodeReview/gerrit",
"id": "1c2c8366974497ecf364ecf3fea590e2f3c49ec9",
"size... |
/**
* @license Highcharts JS v7.0.0 (2018-12-11)
* Sonification module
*
* (c) 2012-2018 Øystein Moseng
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else if (typeof define === 'function' && defin... | {
"content_hash": "fd06fb88be3aefbc3a4e9b43c643a5cd",
"timestamp": "",
"source": "github",
"line_count": 3295,
"max_line_length": 121,
"avg_line_length": 34.092564491654024,
"alnum_prop": 0.6065963413005742,
"repo_name": "sufuf3/cdnjs",
"id": "425d518ca257cc7b2cab3d5d9f36bccdf3a040a0",
"size": "1123... |
- pretty
- foxy
- charming
- breathtaking
- a head turner
- easy on eyes
- irresistible
##### pull it off 真不简单
#### aches and pains
#### fair and square
| {
"content_hash": "086b1d31cb6909e91954f8465d25b0d9",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 22,
"avg_line_length": 12.307692307692308,
"alnum_prop": 0.6375,
"repo_name": "zharuosi/2017",
"id": "361e915d60fd138513ae3de0596b81d811494199",
"size": "217",
"binary": ... |
/**
* @file modules/mailer/resender.js
* @author Daniele Belardi
*/
'use strict';
const inz = require('inz')();
const async = require('async');
/**
* @module messages
*/
class ReSender {
constructor(options) {
let o = _validateOptions(options);
let internal = inz(this);
Object.defineProperty(... | {
"content_hash": "697e331a435348306fc1ada163320d51",
"timestamp": "",
"source": "github",
"line_count": 125,
"max_line_length": 95,
"avg_line_length": 25.104,
"alnum_prop": 0.6016571064372211,
"repo_name": "eca-automs/mlr",
"id": "0672dff2efd60c9f2c38dcb26e0ed92b013e8210",
"size": "3138",
"binary... |
<?php
namespace backend\controllers;
use Yii;
use common\models\Categories;
use common\models\CategoriesSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use common\models\PermissionHelpers;
use yii\filters\AccessControl;
/**
* CategoriesController implements the CRUD ac... | {
"content_hash": "c44e2bcb3c02d4554f9463728c0a31bc",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 85,
"avg_line_length": 25.77777777777778,
"alnum_prop": 0.5431034482758621,
"repo_name": "rob94/BlogYii",
"id": "684667c77a8d675b8b3a6d288f58eb7c746f13db",
"size": "3248",... |
from django.apps import AppConfig
class PretixBaseConfig(AppConfig):
name = 'pretix.base'
label = 'pretixbase'
default_app_config = 'pretix.base.PretixBaseConfig'
| {
"content_hash": "b899bd4c1ba7af6c1bb5821c5e410d2a",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 51,
"avg_line_length": 21.75,
"alnum_prop": 0.7471264367816092,
"repo_name": "Unicorn-rzl/pretix",
"id": "2455a458a3a9d1b77f798f670b3710070524b29d",
"size": "174",
"binary... |
module.exports = function () {
function create(app, config, io) {
var context = config.store.context || '/dns/api/v1',
interval = config.store.interval || interval,
prefix = config.dns.prefix || 'dns:',
prefixSize = prefix.length,
store = co... | {
"content_hash": "9e0d586ee317ba949192a1743a1d3f36",
"timestamp": "",
"source": "github",
"line_count": 150,
"max_line_length": 120,
"avg_line_length": 41.973333333333336,
"alnum_prop": 0.44599745870393903,
"repo_name": "chone/mem",
"id": "dc12305f3e3ef40b5c53958b48b66d7ac1278d7b",
"size": "6296",
... |
/**
* @author reetsee.com
* @date 20161007
*/
var path = require('path');
var ROOT_PATH = path.resolve(__dirname, '..');
var basic = require("./basic");
var session = require("./session/session");
var validationConf = {};
try {
settings = require(ROOT_PATH + "/conf/settings.secret");
validationConf = b... | {
"content_hash": "06e945290ab92d7015baa157c66e08c9",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 72,
"avg_line_length": 24.14516129032258,
"alnum_prop": 0.571810287241149,
"repo_name": "fanfank/aap",
"id": "5561cdeef521e5bddeceab2ca073f301500d6454",
"size": "1591",
"... |
package play.mvc;
import java.lang.annotation.*;
/**
* A body parser parses the HTTP request body content.
*/
public interface BodyParser {
play.api.mvc.BodyParser<Http.RequestBody> parser(int maxLength);
/**
* Specify the body parser to use for an Action method.
*/
@Target({ElementType.TYPE... | {
"content_hash": "e5859ea835d097b74495278ae5d9c864",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 99,
"avg_line_length": 31.892857142857142,
"alnum_prop": 0.6503359462486002,
"repo_name": "noel-yap/setter-for-catan",
"id": "e0fa118027353a8263b8860426112b60893668dd",
"s... |
package org.eclipse.bpmn2;
import java.util.List;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Sub Choreography</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.bpmn2.SubChoreography#getArtifacts <em>Artifacts... | {
"content_hash": "602745236d5aae08e94a2e5b100c852a",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 180,
"avg_line_length": 36.475,
"alnum_prop": 0.6620973269362577,
"repo_name": "MetSystem/fixflow",
"id": "662c5271da5a669ee483cfc6d77c37cc3ab57875",
"size": "1900",
"bin... |
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2020 The Android Open Source Project
~
~ 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
~
~ https://www.apache.org/... | {
"content_hash": "60cea9b9b144c9be36ae71e79b9f743b",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 192,
"avg_line_length": 44.73076923076923,
"alnum_prop": 0.6921754084264833,
"repo_name": "chrisbanes/cheesesquare",
"id": "dc9b90a67d9622c7a533aa99693830dcddb4fe88",
"size... |
<?php
namespace App\Modules\Cups\Http\Controllers;
use App\Modules\Cups\Cup;
use App\Modules\Cups\Team;
use Config;
use Contentify\GlobalSearchInterface;
use DB;
use FrontController;
use Illuminate\Http\RedirectResponse;
use MsgException;
use Redirect;
use Request;
use Response;
use URL;
use User;
class TeamsControl... | {
"content_hash": "61cf7e8475f6eee6db2f497c33bce9ca",
"timestamp": "",
"source": "github",
"line_count": 355,
"max_line_length": 109,
"avg_line_length": 28.208450704225353,
"alnum_prop": 0.5140802875973637,
"repo_name": "Contentify/Contentify",
"id": "3ac0587f6644ae89e5c25cedefc039a925e4a26a",
"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... | {
"content_hash": "8684aa61d78f7e2ae08244769f56d672",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 146,
"avg_line_length": 41.52307692307692,
"alnum_prop": 0.7465728047424972,
"repo_name": "motorina0/flowable-engine",
"id": "c79175b9b80f3ec47863ab27bb5c1cb11c507bde",
"si... |
"""Test the wallet keypool and interaction with wallet encryption/locking."""
import time
from decimal import Decimal
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, assert_raises_rpc_error
class KeyPoolTest(BitcoinTestFramework):
def set_test_params(s... | {
"content_hash": "687a404bbd57b02c9885ab876d04e373",
"timestamp": "",
"source": "github",
"line_count": 188,
"max_line_length": 268,
"avg_line_length": 47.67553191489362,
"alnum_prop": 0.6115140020082561,
"repo_name": "midnightmagic/bitcoin",
"id": "40a2b3ab6a1b2b72faa374c07f5a05e825895085",
"size"... |
#include "mali_kernel_common.h"
#include "mali_memory.h"
#include "mali_memory_block_alloc.h"
#include "mali_osk.h"
#include <linux/mutex.h>
#define MALI_BLOCK_SIZE (256UL * 1024UL) /* 256 kB, remember to keep the ()s */
struct block_info {
struct block_info *next;
};
typedef struct block_info block_info;
typede... | {
"content_hash": "95d4ba371f2e69571e978490c6cc9796",
"timestamp": "",
"source": "github",
"line_count": 311,
"max_line_length": 161,
"avg_line_length": 26.84887459807074,
"alnum_prop": 0.687185628742515,
"repo_name": "indashnet/InDashNet.Open.UN2000",
"id": "2847893dcd2d40239f1fbb88d84544cd489c4a80",... |
#region
using NUnit.Framework;
using RMIT.Counter.Libraries.Library.Common;
#endregion
namespace RMIT.Counter.Test.Unit.Libraries.Library.Common
{
[TestFixture]
public class StringExtensionsTest
{
[Test]
public void ToProperCase()
{
var expect = "Abc";
var... | {
"content_hash": "0cad9e2b0e6478d34dc24284ccef82a3",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 78,
"avg_line_length": 24.161290322580644,
"alnum_prop": 0.5847797062750334,
"repo_name": "rmittraining/CounterCompliance",
"id": "313cb2de832a90407ea7506ea9790d4570155484",
... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- From: file:/C:/Users/assy/Documents/GitHub/PhotoGramApp/ParseStarterProject/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/res/values-w600dp/values-w600dp.xml -->
<eat-comment/>
<dimen name="abc_search_view_text_min_width">192... | {
"content_hash": "07d90c3bd600a7f48dbf19fb52963f62",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 197,
"avg_line_length": 57,
"alnum_prop": 0.7268170426065163,
"repo_name": "asioh123/PhotoGramApp",
"id": "ee45660e070fa1139331611df28f2101de001cc4",
"size": "399",
"binar... |
package me.echeung.cdflabs.ui.fragments;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
i... | {
"content_hash": "81a39fe9873c560ea2cb65b6888db4bd",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 182,
"avg_line_length": 33.578947368421055,
"alnum_prop": 0.7027168234064786,
"repo_name": "arkon/CDFLabs",
"id": "64a34a8ffb86180a74348d085d47993e038e1762",
"size": "1914"... |
using Microsoft.Azure.Commands.Compute.Automation.Models;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.Compute;
using Microsoft.Azure.Management.Compute.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
usin... | {
"content_hash": "b2b2a76017cfe518460e78bfe167e60e",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 176,
"avg_line_length": 40.67605633802817,
"alnum_prop": 0.6243074792243767,
"repo_name": "AzureAutomationTeam/azure-powershell",
"id": "915e1f9c38d3841a31adb6dabf922a196261d... |
define([
'underscore',
'backbone',
'json!configPath/config.json',
'marionette',
'templates'
], function (_, Backbone, config) {
var RealNotificationDetailView = Backbone.Marionette.ItemView.extend({
template: 'real-notification-detail',
className: 'modal fade',
attri... | {
"content_hash": "5484c6577fa1d19b340a1f5e63b7bfc2",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 74,
"avg_line_length": 20.694444444444443,
"alnum_prop": 0.5221476510067115,
"repo_name": "matthis-d/NotificationEngine-front",
"id": "7709bd1b23e6f1bb3e5e6112ae74620904b85ce... |
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const extractCSS = new ExtractTextPlugin({
filename: 'css/[name].css',
allChunks: true
});
module.exports = {
entry: {
index: './client/Content.js'
},
ssrWebpack: {
plu... | {
"content_hash": "2234437f0a8f6adefc9969198c11205d",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 91,
"avg_line_length": 23.53846153846154,
"alnum_prop": 0.5664488017429193,
"repo_name": "Canner/coren",
"id": "e2352d6265380483e38ff46475a51b7066c4eec1",
"size": "918",
... |
Repository for CSCI 4940
Austin Peay State University, Clarksville, TN
Fall 2016
David Pridemore (me@davidpridemore.com)
Austin Buchanan (abuchanan5@my.apsu.edu)
We completed this project for a local company and for a course credit internship.
This is a web scraper project that pulls data from allbreedped... | {
"content_hash": "0bc06a1c195e79900fab22214deb7271",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 115,
"avg_line_length": 48.72549019607843,
"alnum_prop": 0.7686116700201208,
"repo_name": "austinbuchanan/ricardoracing",
"id": "70ff07fc5cb274890b6f2da1f960c92f7e55e445",
... |
programinit()
function main() {
var filename = COMMAND.f(2);//field(SENTENCE, " ", 2).lcase();
if (filename && not filename.starts("dict."))
filename = "dict." ^ filename;
//perform("list " ^ dictfilename ^ " by type \"F\" by FMC by PART");
//list the dictionary filenames if none provided
if (not filename) {
... | {
"content_hash": "74fd64ea13b29355590b5c4fda262923",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 69,
"avg_line_length": 21.833333333333332,
"alnum_prop": 0.5948326482677627,
"repo_name": "exodusdb/exodusdb",
"id": "540703d4f35d7743c9bc49d8597c721b2e52af33",
"size": "17... |
<?php
$site_guid = elgg_get_site_entity()->getGUID();
$metadata_name = trim(get_input("metadata_name"));
$metadata_label = trim(get_input("metadata_label"));
$metadata_hint = trim(get_input("metadata_hint"));
$metadata_type = get_input("metadata_type");
$metadata_options = get_input("metadata_options");
$s... | {
"content_hash": "37dd1d0358ea1b9bd42ea62ba4ea62d2",
"timestamp": "",
"source": "github",
"line_count": 138,
"max_line_length": 166,
"avg_line_length": 34.76086956521739,
"alnum_prop": 0.619345424223473,
"repo_name": "mizerani/shareit",
"id": "c0647fff5babbe9d81eae0aae2c19e8e24e9ff07",
"size": "500... |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
~ Copyright 2016-present Open Networking Laboratory
~
~ 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://w... | {
"content_hash": "0372fa95eef04f12391e65b44003f184",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 112,
"avg_line_length": 48.041666666666664,
"alnum_prop": 0.6964440589765828,
"repo_name": "Phaneendra-Huawei/demo",
"id": "9556eddd4af54a7767e5fa92431175986e142cf4",
"size... |
.class Landroid/media/AudioService$ForceControlStreamClient;
.super Ljava/lang/Object;
.source "AudioService.java"
# interfaces
.implements Landroid/os/IBinder$DeathRecipient;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/media/AudioService;
.end annotation
.annotation sys... | {
"content_hash": "718eb3164c789d243132c206ff1895f4",
"timestamp": "",
"source": "github",
"line_count": 198,
"max_line_length": 205,
"avg_line_length": 27.742424242424242,
"alnum_prop": 0.7218277808119424,
"repo_name": "shumxin/FlymeOS_A5DUG",
"id": "0addc6c58567a9773ed190ddc8b86f50e6981eb2",
"size... |
package org.cloudfoundry.operations.applications;
import org.immutables.value.Value;
/**
* The request options for the set environment variable of an application operation
*/
@Value.Immutable
abstract class _UnsetEnvironmentVariableApplicationRequest {
/**
* The application name
*/
abstract Str... | {
"content_hash": "e9ba291fe6e138c13828e32b7a6b1f38",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 83,
"avg_line_length": 18.217391304347824,
"alnum_prop": 0.7016706443914081,
"repo_name": "alexander071/cf-java-client",
"id": "1e89babc4fdbdce181f3963da8045bb634bf4197",
"... |
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import timeutils
from oslo_utils import units
import taskflow.engines
from taskflow.patterns import linear_flow
from taskflow.types import failure as ft
from jacket.storage import exception
from jacket.storage import flow_utils
from jacket... | {
"content_hash": "ba5677a6eb00c96381fb5dc9c088c44f",
"timestamp": "",
"source": "github",
"line_count": 864,
"max_line_length": 80,
"avg_line_length": 44.8125,
"alnum_prop": 0.5706131515057596,
"repo_name": "HybridF5/jacket",
"id": "0e08b89f32d02fb98972f9c38fb44553a3eb56f6",
"size": "39292",
"bin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.