text stringlengths 2 1.04M | meta dict |
|---|---|
package context
import (
"net/http"
"sync"
)
// Pool is the context pool, it's used inside router and the framework by itself.
type Pool struct {
pool *sync.Pool
}
// New creates and returns a new context pool.
func New(newFunc func() interface{}) *Pool {
return &Pool{pool: &sync.Pool{New: newFunc}}
}
// Acquir... | {
"content_hash": "7569e964ca857aff8b4fa33d630654e0",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 81,
"avg_line_length": 24.13157894736842,
"alnum_prop": 0.7066521264994547,
"repo_name": "kataras/gapi",
"id": "04905df39d67b094998e58cc6f190c7126279cf6",
"size": "917",
... |
Postablr.setup do |config|
config.page_title = "Postablr Example"
config.user_class = "User"
#config.google_analytics_id
config.disqus_shortname = "localhost-bl"
#config.name =
#config.page_title =
#config.post_per_page =
#config.description =
#config.password =
end
| {
"content_hash": "33e2289de18b4498c170b19e7df4eb5c",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 42,
"avg_line_length": 25.90909090909091,
"alnum_prop": 0.7052631578947368,
"repo_name": "michelson/postablr",
"id": "8c421b8d035d3c6ac01a1c41ddbc90ce98238c82",
"size": "31... |
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
SETUP=./Setup -v0
# This tests that we can build a Cabal package that uses TH with both
# profiling and dynamic linking. (#3604)
# omitting -rtsopts from --ghc-options avoids a warning from GHC when
# building the shared library (-rtsopts has no... | {
"content_hash": "3e738e6cfaeb72111d29c1af4ca1d0bf",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 124,
"avg_line_length": 27.84,
"alnum_prop": 0.6666666666666666,
"repo_name": "gridaphobe/ghc",
"id": "6c43dde45de7efc45bdf6a5b3eec3f0e6849ee9b",
"size": "696",
"binary":... |
package jp.gr.java_conf.mitchibu.lib.securepreferences;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public Applica... | {
"content_hash": "2651c11d2a484f2604f68be1dbef719a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 93,
"avg_line_length": 28.076923076923077,
"alnum_prop": 0.7808219178082192,
"repo_name": "mitchibu/SecurePreferences",
"id": "baa78170d1fe3b93ad10edafba32c47735ee5120",
"s... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
"http://www.netbeans.org/dtds/module-status-1_0.dtd">
<module name="org.openide.execution">
<param name="autoload">true</param>
<param name="eager">false</param>
<param name=... | {
"content_hash": "3e4927fe53fa2a0c22b2bdc6a7a08040",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 77,
"avg_line_length": 47.111111111111114,
"alnum_prop": 0.6344339622641509,
"repo_name": "wodenwang/nami",
"id": "623f611fc552cc8ec24cb9e07368ebaa4501b27b",
"size": "424",
... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.0... | {
"content_hash": "c97aa740e64a0323ef60007474906508",
"timestamp": "",
"source": "github",
"line_count": 224,
"max_line_length": 124,
"avg_line_length": 24.308035714285715,
"alnum_prop": 0.5359044995408632,
"repo_name": "MrMilan/DastaMessageCreator",
"id": "d7b89d231a7de3a0b90a7d751a111253ace64c2d",
... |
package com.navercorp.pinpoint.plugin.jdbc.postgresql;
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentClass;
import com.navercorp.pinpoint.bootstrap.instrument.InstrumentException;
import com.navercorp.pinpoint.bootstrap.instrument.Instrumentor;
import com.navercorp.pinpoint.bootstrap.instrument.transfo... | {
"content_hash": "bb55f9d6731a9ea1d4398547fa98e7b4",
"timestamp": "",
"source": "github",
"line_count": 193,
"max_line_length": 236,
"avg_line_length": 54.60621761658031,
"alnum_prop": 0.7238827213208084,
"repo_name": "87439247/pinpoint",
"id": "4d8499a3dc92f585b00974adb3648b7af2ef1d4c",
"size": "1... |
package com.hp.application.automation.tools.octane.events;
import com.hp.octane.integrations.dto.DTOFactory;
import com.hp.octane.integrations.dto.events.CIEvent;
import com.hp.octane.integrations.dto.events.CIEventType;
import com.hp.application.automation.tools.octane.model.CIEventCausesFactory;
import hudson.Exte... | {
"content_hash": "06cf9eb27b3c6fd49bf930ff211e0ea4",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 77,
"avg_line_length": 32.1,
"alnum_prop": 0.7749221183800623,
"repo_name": "hpsa/hp-application-automation-tools-plugin",
"id": "06275c0185709ee565bb12514acfe7d9c4f51a18",
... |
/**
* Toggle an specific class to the received DOM element.
* @param {string} elemSelector The query selector specifying the target element.
* @param {string} [activeClass='active'] The class to be applied/removed.
*/
function toggleClass(elemSelector, activeClass = "active") {
const elem = document.querySelector... | {
"content_hash": "2913a20b88cebff70b1bd4fe996c3ba2",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 95,
"avg_line_length": 32.668711656441715,
"alnum_prop": 0.6878873239436619,
"repo_name": "er1c/fm-common",
"id": "49eb7f42bd75f2d22351987ee66a756aa95f8c3e",
"size": "5325... |
.class public final Lo/kq;
.super Ljava/lang/Object;
# interfaces
.implements Lo/kp;
# annotations
.annotation runtime Lo/jE;
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.... | {
"content_hash": "d19690bb5f69584ee7f2ed80d0140eb8",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 54,
"avg_line_length": 14.766666666666667,
"alnum_prop": 0.6952595936794582,
"repo_name": "gelldur/jak_oni_to_robia_prezentacja",
"id": "871a7681cb314daa04dd6a72ee0edb0dede9d... |
using System.Collections.Generic;
using poolprobase.Roles.Dto;
using poolprobase.Users.Dto;
namespace poolprobase.Web.Models.Users
{
public class UserListViewModel
{
public IReadOnlyList<UserDto> Users { get; set; }
public IReadOnlyList<RoleDto> Roles { get; set; }
}
} | {
"content_hash": "df48d16f34ec940b5c5be0972235ad28",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 57,
"avg_line_length": 23,
"alnum_prop": 0.7123745819397993,
"repo_name": "dreamteam-poolpro/poolprobase",
"id": "18be92351f1fd6599f13b2c843f8e65c5324cae8",
"size": "299",
... |
AsyncManager::AsyncManager() :
exit(false), new_data(false), ready_ind(0), started(false) {}
AsyncManager::~AsyncManager() {
if (started) {
exit.store(true);
thread.join();
}
}
void AsyncManager::start_update_thread() {
thread = std::thread(&AsyncManager::update_thread, this);
started = true;
}
voi... | {
"content_hash": "3fe4683816ca36c17901c4e31808b081",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 63,
"avg_line_length": 22.2,
"alnum_prop": 0.6531531531531531,
"repo_name": "cuauv/software",
"id": "282aec83fdfbcf91d0bc565389275db2dff08045",
"size": "472",
"binary": f... |
namespace content {
class ShellCrashReporterClient : public crash_reporter::CrashReporterClient {
public:
ShellCrashReporterClient();
~ShellCrashReporterClient() override;
#if defined(OS_WIN)
// Returns a textual description of the product type and version to include
// in the crash report.
void GetProduct... | {
"content_hash": "c2b9e4228b95edb1a9dc74daffdda3cd",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 77,
"avg_line_length": 34.79545454545455,
"alnum_prop": 0.6838667537557153,
"repo_name": "ltilve/ChromiumGStreamerBackend",
"id": "882ecf07f4a0ed7c773fd1c3855e457855bd909b",
... |
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.providers.assistants;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
import org.eclipse.gmf.runtime.emf.type.cor... | {
"content_hash": "5865fac439aab428cb546db77479e472",
"timestamp": "",
"source": "github",
"line_count": 493,
"max_line_length": 120,
"avg_line_length": 54.91480730223124,
"alnum_prop": 0.8400251172755143,
"repo_name": "susinda/devstudio-tooling-esb",
"id": "de752b083c1e9be03d4435f851779d436eb5478e",
... |
package network::hirschmann::standard::snmp::mode::components::temperature;
use strict;
use warnings;
# In MIB 'hmpriv.mib'
my $mapping = {
hmTemperature => { oid => '.1.3.6.1.4.1.248.14.2.5.1' },
hmTempUprLimit => { oid => '.1.3.6.1.4.1.248.14.2.5.2' },
hmTempLwrLimit => { oid => '.1.3.6.1.4.1.248.14.2.5... | {
"content_hash": "69198662a13d5cbe9ce865a68cc7c0fd",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 153,
"avg_line_length": 47.714285714285715,
"alnum_prop": 0.5456586826347305,
"repo_name": "golgoth31/centreon-plugins",
"id": "5587ec1053bd73008ba3c2102f4972d2ab991085",
"... |
package loggregator
import (
"bufio"
"bytes"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"strings"
"time"
"code.cloudfoundry.org/go-loggregator/rpc/loggregator_v2"
"github.com/golang/protobuf/jsonpb"
"golang.org/x/net/context"
)
type RLPGatewayClient struct {
addr string
log *log.Logger
doer Doer
}
func... | {
"content_hash": "c9a7a30fe7a3385c62b8d29e274db652",
"timestamp": "",
"source": "github",
"line_count": 275,
"max_line_length": 111,
"avg_line_length": 23.796363636363637,
"alnum_prop": 0.6630501222493888,
"repo_name": "cloudfoundry-community/firehose-to-syslog",
"id": "99f6315284c1fd04225c29cc97e20d... |
package net.bither.bitherj.api;
import net.bither.bitherj.BitherjSettings;
import net.bither.bitherj.api.http.HttpSetting;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.... | {
"content_hash": "760e0154e9d1fc2471c14c38b4583eee",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 94,
"avg_line_length": 34.79545454545455,
"alnum_prop": 0.5732636620944916,
"repo_name": "mikebutrimov/bip38decrypt",
"id": "1f0154992b45691420930aa457efa03e6362eea2",
"si... |
using UnityEngine;
using System.Collections;
public class InterfaceLifePlayer : MonoBehaviour
{
public GameObject[] obj;
void Start()
{
for(int i = 0; i < PlayerPrefs.GetInt("Players"); i++)
{
obj[i].SetActive(true);
}
}
}
| {
"content_hash": "48deb46be72bd29a39a9cd84ee6ca004",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 62,
"avg_line_length": 18.533333333333335,
"alnum_prop": 0.5755395683453237,
"repo_name": "mutatis/WereWolfTheApocalipse",
"id": "d82099a29f3b863f6778bcb9b8bd45ebf44928d6",
... |
module Stressque
module Utils
def hard_sleep(length)
exec_until(length) {}
end
def active_sleep(length, activity)
slice = length / 100
exec_until(length) do
if rand < activity
hard_sleep(slice)
else
sleep(slice)
end
end
end
def ... | {
"content_hash": "0082f5ac10f7aff306ca9e86d378fa13",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 58,
"avg_line_length": 19.322580645161292,
"alnum_prop": 0.5509181969949917,
"repo_name": "PeopleAdmin/stressque",
"id": "3061ae040d60fde84c3cc94e143ef799fbbd53c8",
"size":... |
USER_PROVIDED_URL=$1
ZIP_FOLDER=../zip_files/
PATCH_FOLDER=./
FastPD_FILENAME=FastPD_DemoVersion.zip
FastPD_URL=http://www.csd.uoc.gr/~komod/FastPD/
FastPD_SOURCE_FOLDER=../../FastPD.src-patched/
FastPD_PATCH_NAME=FastPD.patch
# check if destination folder already exists
if [ -e "$FastPD_SOURCE_FOLDER" ]
then
echo "... | {
"content_hash": "ba94ff2e22001e5721b83e7210bdd713",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 106,
"avg_line_length": 25.885245901639344,
"alnum_prop": 0.6846105129829005,
"repo_name": "DerThorsten/opengm",
"id": "a931c0ea35949bd8e448e4c83d9a22a0d5a74172",
"size": "... |
/*
* Created on Oct 11, 2004
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package net.reliableresponse.notification.web.util;
import java.text.SimpleDateFormat;
import java.util.Enumeration;
import java.util.Vector;
import javax.serv... | {
"content_hash": "6a59e14911f7b7c2128ab3b3499e012d",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 88,
"avg_line_length": 27.636363636363637,
"alnum_prop": 0.6987781954887218,
"repo_name": "davidrudder23/OpenNotification",
"id": "463ca009a2232a8e90e4bb7743bd86c4b552f55b",
... |
This spaCy Contributor Agreement (**"SCA"**) is based on the
[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
The SCA applies to any contribution that you make to any product or project
managed by us (the **"project"**), and sets out the intellectual property rights
you grant to us in t... | {
"content_hash": "f6429058bdb7cd82dd933d13c6614804",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 82,
"avg_line_length": 51.31730769230769,
"alnum_prop": 0.7210043095371932,
"repo_name": "honnibal/spaCy",
"id": "d293c98453999b1b175fd4547fa8b576e9aedd47",
"size": "5372"... |
import * as React from 'react';
import Document, { Html, Head, Main, NextScript } from 'next/document';
import createEmotionServer from '@emotion/server/create-instance';
import theme, { roboto } from '../src/theme';
import createEmotionCache from '../src/createEmotionCache';
export default class MyDocument extends Do... | {
"content_hash": "665cd61177d16413f2d2bff1591eca06",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 106,
"avg_line_length": 30.571428571428573,
"alnum_prop": 0.6413551401869159,
"repo_name": "mui-org/material-ui",
"id": "dace6b64d9a4d677bdce14f86b49675636fc286c",
"size": ... |
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Internals\Options
*/
/**
* Option: wpseo.
*/
class WPSEO_Option_Wpseo extends WPSEO_Option {
/**
* Option name.
*
* @var string
*/
public $option_name = 'wpseo';
/**
* Array of defaults for the option.
*
* {@internal Shouldn't be requested dire... | {
"content_hash": "fcb22b7e4860576f32b354bc053c48a8",
"timestamp": "",
"source": "github",
"line_count": 390,
"max_line_length": 119,
"avg_line_length": 27.566666666666666,
"alnum_prop": 0.5900846432889963,
"repo_name": "mandino/nu",
"id": "4b04462f7dbaf2a1cb5c117df49a1e321047b06d",
"size": "10751",... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>quickchick: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | {
"content_hash": "3493aaa8686d779d90450e039d417980",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 159,
"avg_line_length": 39.81111111111111,
"alnum_prop": 0.5424225509349707,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "f81a7ecfa2587396f26a2db1e00e13ddc0079223",
... |
HTTP Auth Transport Layer for [Lokka](https://github.com/kadirahq/lokka)
(Works only on the server);
---
This is an extended version of [lokka-transport-http](https://github.com/kadirahq/lokka-transport-http) with the basic-auth support.
## Basic Usage
Install the package:
```
npm i --save lokka-transport-http-aut... | {
"content_hash": "0ad13773cc782a1bc69f99c23281eae6",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 132,
"avg_line_length": 23.181818181818183,
"alnum_prop": 0.6745098039215687,
"repo_name": "kadirahq/lokka-transport-http-auth",
"id": "83643a61ccdc48057bff3ca4bafb2e536b25d8... |
'use strict';
/* Controllers */
angular.module('homejs.controllers')
.controller('UsersController', ['$scope', 'User', function($scope, User) {
$scope.users = User.query({fl: true});
$scope.gridOptions = {
data: 'users',
//showFooter: true,
//plugins: [new ngGridCsvExportPlugin(csvOp... | {
"content_hash": "1fa4820f6f240e2ae563e2d9a1641d21",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 76,
"avg_line_length": 30.80952380952381,
"alnum_prop": 0.5965996908809892,
"repo_name": "jupe/home.js",
"id": "0640f27b7d17ed631007266f88a72e549e70997b",
"size": "647",
... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... | {
"content_hash": "744a32b7ae9d224925b0e7095ca09584",
"timestamp": "",
"source": "github",
"line_count": 546,
"max_line_length": 223,
"avg_line_length": 37.53663003663004,
"alnum_prop": 0.5644791412539644,
"repo_name": "AzureAutomationTeam/azure-powershell",
"id": "b246fb0f5e46b4faa7122ea464751957fc08... |
#ifndef itkPhysicsBasedNonRigidRegistrationMethod_h
#define itkPhysicsBasedNonRigidRegistrationMethod_h
#include "itkMaskFeaturePointSelectionFilter.h"
#include "itkBlockMatchingImageFilter.h"
#include "itkFEMScatteredDataPointSetToImageFilter.h"
#include "itkConceptChecking.h"
namespace itk
{
namespace fem
{
/*... | {
"content_hash": "cac0fdf6f12b877f7b88b1abaed89322",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 119,
"avg_line_length": 37.21764705882353,
"alnum_prop": 0.7747747747747747,
"repo_name": "thewtex/ITK",
"id": "d38521c12940563d91ac80ff44a3598db8165b18",
"size": "7084",
... |
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<t... | {
"content_hash": "174820900569963479d80407d726cf5f",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 87,
"avg_line_length": 28.185185185185187,
"alnum_prop": 0.6754270696452037,
"repo_name": "cagen/frontend_develop_template",
"id": "6bc1f41f2c5393cc36a95f21b465d02092f5c9bb",... |
require 'spec_helper'
describe 'ceilometer::agent::auth' do
let :pre_condition do
"class { 'ceilometer': metering_secret => 's3cr3t' }"
end
let :params do
{ :auth_url => 'http://localhost:5000/v2.0',
:auth_region => 'RegionOne',
:auth_user => 'ceilometer',
:auth_pa... | {
"content_hash": "611adaf39e2c4ba308d0cc04241af328",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 134,
"avg_line_length": 39.65,
"alnum_prop": 0.6765447667087011,
"repo_name": "dgautam/contrail-puppet",
"id": "f72459315e8ef39465313c26701b1b53956653da",
"size": "1586",
... |
package com.bitTiger.searchAds.index;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.bitTiger.searchAds.adsInfo.AdsInfo;
import com.bitTiger.searchAds.adsInfo.AdsI... | {
"content_hash": "87162d1f135937f688bc7ae8d1889263",
"timestamp": "",
"source": "github",
"line_count": 214,
"max_line_length": 150,
"avg_line_length": 39.995327102803735,
"alnum_prop": 0.572496787007828,
"repo_name": "mzdu/AdSearch_Endpoints",
"id": "7336ffb63c7d37bba7c28e87ab80392d9559109e",
"siz... |
"""
The `Chain` class inherits from `Link` and allow chaining together several
applications into a single object.
"""
from __future__ import absolute_import, division, print_function
import sys
import os
from collections import OrderedDict
from fermipy.jobs.utils import is_null, is_not_null
from fermipy.jobs.link im... | {
"content_hash": "fe142a0dd7c0e910961271ee0790294a",
"timestamp": "",
"source": "github",
"line_count": 415,
"max_line_length": 81,
"avg_line_length": 35.93253012048193,
"alnum_prop": 0.5519045064377682,
"repo_name": "jefemagril/fermipy",
"id": "bacccdfafeddbcd8f05fcf23dac9880acb6930d0",
"size": "1... |
<!DOCTYPE HTML>
<!--
Massively by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Generic Page - Massively by HTML5 UP</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initi... | {
"content_hash": "c53ec5f3005c48d6665a6262573b2681",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 900,
"avg_line_length": 46.666666666666664,
"alnum_prop": 0.6094076655052265,
"repo_name": "mariusvw/stuff",
"id": "e0f9ef7a66d4480553c99b583faedfced79ff60a",
"size": "574... |
<div class="ui container" ng-if="!loading">
Showing {{commitsFiltered.length}} latest commits in branch <a class="ui black label small">master</a>
<div class="ui icon input">
<input type="text" placeholder="Search..." ng-model="commit.msg">
<i class="search icon"></i>
</div>
<div class="ui relaxed divid... | {
"content_hash": "b4f0b553bfd37029392e8ec09de4479f",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 105,
"avg_line_length": 44.421052631578945,
"alnum_prop": 0.6161137440758294,
"repo_name": "kritzware/software-project",
"id": "bf0476f86795c2bbf45431c01f33a18793238db1",
"... |
<!doctype html>
<html lang="en" ng-app="eventsApp">
<head>
<base href="/">
<meta charset="utf-8">
<title>Event Registration</title>
<link rel="stylesheet" href="/css/bootstrap.min.css"/>
<link rel="stylesheet" href="/css/app.css"/>
</head>
<body ng-cloak>
<div class="container">
<div class="navbar">
... | {
"content_hash": "30c98cba2008f38eaf6e915e8f347b29",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 63,
"avg_line_length": 32.41025641025641,
"alnum_prop": 0.6716772151898734,
"repo_name": "Straightly/DemoApp",
"id": "f33b5ba8c20be3d8ea9ff86c1a42ae25da3fcc6c",
"size": "12... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("In... | {
"content_hash": "5127c001cd1a4048266c80182bdf93c5",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.361111111111114,
"alnum_prop": 0.7473535638673253,
"repo_name": "aspnetboilerplate/aspnetboilerplate-samples",
"id": "e67bdc3d12c171d6f2fa4e6b66124d... |
#ifndef sitkTransformixImageFilter_h
#define sitkTransformixImageFilter_h
#include "sitkElastixTransformixWrappers.h"
#include "sitkCommon.h"
#include "sitkImage.h"
#include <map>
#include <memory> // For unique_ptr.
#include <string>
#include <vector>
namespace itk {
namespace simple {
class SITKElastix_EXPORT ... | {
"content_hash": "10f07872783887dbf43d9c2257e3f4b5",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 232,
"avg_line_length": 49.925619834710744,
"alnum_prop": 0.7498758483694753,
"repo_name": "SimpleITK/SimpleITK",
"id": "aed2a19dc19a8f3e1bae7713232c1a24c06af54f",
"size":... |
package org.apache.hadoop.hbase;
import java.io.IOException;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
imp... | {
"content_hash": "9f4083884aaea2e4284be8a5d2fca525",
"timestamp": "",
"source": "github",
"line_count": 237,
"max_line_length": 97,
"avg_line_length": 31.31223628691983,
"alnum_prop": 0.6881821856892603,
"repo_name": "vincentpoon/hbase",
"id": "2be1b2b2a00a2357e91836c47c50ae4ca1f9251e",
"size": "82... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | {
"content_hash": "106eceaec84c195d0710e0d5d249eed1",
"timestamp": "",
"source": "github",
"line_count": 533,
"max_line_length": 85,
"avg_line_length": 31.091932457786115,
"alnum_prop": 0.6880279990345161,
"repo_name": "ryfeus/lambda-packs",
"id": "30bd7b1d71684e29fe4822c63030148e3c21510b",
"size": ... |
CKEDITOR.plugins.setLang("a11yhelp", "fo", {
title: "Accessibility Instructions",
contents: "Help Contents. To close this dialog press ESC.",
legend: [{
name: "General",
items: [{
name: "Editor Toolbar",
legend: "Press ${toolbarFocus} to navigate to the toolbar. Mov... | {
"content_hash": "53bdee509d6a26de28272fb34daa435f",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 438,
"avg_line_length": 44.22429906542056,
"alnum_prop": 0.6126373626373627,
"repo_name": "gangstara2/minhaiwapi",
"id": "3deb8c4e99b76da3ad98b8aaaa8967fc107bb81f",
"size"... |
<?php
namespace M2L\NewsBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class PhotoType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*... | {
"content_hash": "7f97ec4f6cd1543b90aeeafd5affe85d",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 76,
"avg_line_length": 23,
"alnum_prop": 0.6195652173913043,
"repo_name": "rom94/M2L",
"id": "0e01d78d00da2ccd96dea4e0b244a2c9cdcb7a9b",
"size": "920",
"binary": false,
... |
<?php
namespace ForkCMS\Modules\Backend\Domain\UserGroup\Event;
use ForkCMS\Modules\Backend\Domain\UserGroup\UserGroup;
use Symfony\Contracts\EventDispatcher\Event;
final class UserGroupChangedEvent extends Event
{
public function __construct(public readonly UserGroup $userGroup)
{
}
}
| {
"content_hash": "af920ef9a22bf222e5d31d306584d2b6",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 69,
"avg_line_length": 23.23076923076923,
"alnum_prop": 0.7880794701986755,
"repo_name": "justcarakas/forkcms",
"id": "d2f58ff9a978e4001b3eeefa50f960f98ad21714",
"size": "3... |
package org.apache.asterix.lang.aql.visitor;
import java.util.ArrayList;
import java.util.List;
import org.apache.asterix.common.functions.FunctionConstants;
import org.apache.asterix.common.functions.FunctionSignature;
import org.apache.asterix.lang.aql.clause.ForClause;
import org.apache.asterix.lang.aql.expressio... | {
"content_hash": "d6ce9a27310bda0229c60cbe430b6676",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 113,
"avg_line_length": 45.035714285714285,
"alnum_prop": 0.7371134020618557,
"repo_name": "kisskys/incubator-asterixdb",
"id": "cedeb77fb058ba61715622862ae9958f11503278",
... |
package org.apache.solr.index;
import org.apache.lucene.index.MergePolicy;
import org.apache.lucene.index.NoMergePolicy;
import org.apache.lucene.index.TieredMergePolicy;
import org.apache.lucene.index.UpgradeIndexMergePolicy;
import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.core.SolrResourceLoader;
impo... | {
"content_hash": "264c0022b9724cd39c425ba3a4cefc66",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 100,
"avg_line_length": 42.18181818181818,
"alnum_prop": 0.7067169540229885,
"repo_name": "apache/solr",
"id": "811d90aa4f4c17d41b0563617a59bfb4c7b5f8b9",
"size": "6369",
... |
package org.postgresql.util;
import java.io.Serializable;
import java.sql.SQLException;
/**
* PGobject is a class used to describe unknown types
* An unknown type is any type that is unknown by JDBC Standards
*/
public class PGobject implements Serializable, Cloneable
{
protected String type;
prot... | {
"content_hash": "a8731638a1f64544d2a63b93d44f9133",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 81,
"avg_line_length": 24.51063829787234,
"alnum_prop": 0.6167534722222222,
"repo_name": "tivv/pgjdbc",
"id": "0802d52cf07d061fcbc6410d31c984d8e7203caa",
"size": "2526",
... |
Summary Encoder
==============
.. autoclass:: category_encoders.quantile_encoder.SummaryEncoder
:members: | {
"content_hash": "a0103f477adb25b5f22cefc8e02bebb8",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 64,
"avg_line_length": 22,
"alnum_prop": 0.6818181818181818,
"repo_name": "scikit-learn-contrib/categorical-encoding",
"id": "1b1e5e89e84d9276d78340b41cd154ac2c2fc0be",
"siz... |
#pragma once
#include "include/core/SkString.h"
#include "include/private/SkTArray.h"
#include "tools/flags/CommandLineFlags.h"
namespace CommonFlags {
/**
* Helper to assist in collecting image paths from |dir| specified through a command line
* flag.
*
* Populates |output|, an array of strings with paths to ... | {
"content_hash": "2e4942db48815cf8d86c8811f7b5d98d",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 94,
"avg_line_length": 29.020408163265305,
"alnum_prop": 0.70042194092827,
"repo_name": "aosp-mirror/platform_external_skia",
"id": "504175654b02dbb4893f139f404ce307a32fb4d7"... |
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2014 Uwe Trottmann
~
~ 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": "c20a8e4cdd844caaea2920e0f24a42c3",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 76,
"avg_line_length": 37.638888888888886,
"alnum_prop": 0.6915129151291513,
"repo_name": "fr0609/SeriesGuide",
"id": "983f55e6004e26102615291474574122268e7e80",
"size": "1... |
#include "stdafx.h"
#include "32feetWidcomm.h"
typedef void (CALLBACK* FnDataReceived) (void *p_data, UINT16 len);
typedef void (CALLBACK* FnEventReceived) (UINT32 event_code);
class RfcommPort : public CRfCommPort
{
public:
FnDataReceived pHandleDataReceived;
FnEventReceived pHandleEventReceived;
private:
virt... | {
"content_hash": "d4ab0ea91add50bb4dc986a0819cdebc",
"timestamp": "",
"source": "github",
"line_count": 183,
"max_line_length": 130,
"avg_line_length": 26.939890710382514,
"alnum_prop": 0.6616632860040568,
"repo_name": "inthehand/32feet",
"id": "6cbfc991dddbf689a77466eb738ba4157be8ac72",
"size": "4... |
package hudson.plugins.jira;
import java.io.IOException;
import java.net.URL;
import java.util.List;
import java.util.Optional;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.cloudbee... | {
"content_hash": "62f4540c404294c3a6c5bcd6e31066c7",
"timestamp": "",
"source": "github",
"line_count": 157,
"max_line_length": 140,
"avg_line_length": 36.318471337579616,
"alnum_prop": 0.7509645738337426,
"repo_name": "warden/jira-plugin",
"id": "917c3635cb9c75651ca58ec1e5600dbf8ae784d7",
"size": ... |
package com.implementist.ireading.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public abstract class BaseFragment extends Fragment implements View.OnClickListen... | {
"content_hash": "e2da6e779d38748752b2ecd19b10e2bb",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 85,
"avg_line_length": 23.641509433962263,
"alnum_prop": 0.5925778132482044,
"repo_name": "Implementist/iReading",
"id": "2d6b2f4146fd6e28a2700ee8959901be68535f50",
"size"... |
@interface CKCalendarCell (){
CGSize _size;
}
@property (nonatomic, strong) UILabel *label;
@property (nonatomic, strong) UIView *dot;
@end
@implementation CKCalendarCell
- (id)init
{
self = [super init];
if (self) {
// Initialization code
_state = CKCalendarMonthCellStateNormal;
... | {
"content_hash": "4fbb17e1e1b78903fa08a7427a474cfe",
"timestamp": "",
"source": "github",
"line_count": 274,
"max_line_length": 127,
"avg_line_length": 27.182481751824817,
"alnum_prop": 0.6643394199785178,
"repo_name": "mclazarus/MBCalendarKit",
"id": "e19413f666dc023bbe13225c72fc4aec05f12638",
"si... |
/**
*
*/
package it.polito.elite.enocean.protocol.serial.v3.network.packet.event;
import it.polito.elite.enocean.enj.util.ByteUtils;
import it.polito.elite.enocean.protocol.serial.v3.network.packet.ESP3Packet;
/**
* PACKET TYPE 4 : EVENT
*
* An EVENT is primarily a confirmation for processes and procedures, inc... | {
"content_hash": "76ece0ec118a78605b943d9510ead328",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 143,
"avg_line_length": 24.756521739130434,
"alnum_prop": 0.6940639269406392,
"repo_name": "Gr33nOpo55um/EnOcean",
"id": "c949204544441c09a01a955e35ed710964a1c1bc",
"size"... |
[![npm version][npm-image]][npm-url] [![build status][circle-image]][circle-url] [![Dependency Status][deps-image]][deps-url]
Flux implementation that runs together with FRP libraries. **Observable is awesome!**
- Flux implementation, **Observables and Props can be mapped to declaratively**.
- Using the [Higher-order... | {
"content_hash": "c6ab04f8e882f4664c840cada6e94688",
"timestamp": "",
"source": "github",
"line_count": 428,
"max_line_length": 238,
"avg_line_length": 29.492990654205606,
"alnum_prop": 0.7063297155985107,
"repo_name": "ahomu/Loxe",
"id": "8bb87261b738df89bb99b2dc13b561645840799c",
"size": "12632",... |
package com.cc.dao.irol;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import co... | {
"content_hash": "06f48caaaf4f46b400e2fac79ac72cdc",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 86,
"avg_line_length": 27.44,
"alnum_prop": 0.8046647230320699,
"repo_name": "eatnoodles/LineBotCC",
"id": "73f6e8859d2c3c1b6591ae4cb3ed0a611a931345",
"size": "686",
"bin... |
- [#37](https://github.com/dustinfarris/ember-cashay/pull/37)
Test waiter fixes/improvements
[@dustinfarris](https://github.com/dustinfarris)
- [#36](https://github.com/dustinfarris/ember-cashay/pull/36)
Bump yarn version
[@dustinfarris](https://github.com/dustinfarris)
## 0.6.1
- [#34](https://github.com/du... | {
"content_hash": "7e86e6725f7e175b610453b9e75e95e9",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 61,
"avg_line_length": 33.05263157894737,
"alnum_prop": 0.7277070063694268,
"repo_name": "dustinfarris/ember-cashay",
"id": "b3ef5d097d90c7b3f6083eb3ece0f4c362f3c629",
"siz... |
<?php
/**
* @author MyBB Group
* @version 2.0.0
* @package mybb/core
* @license http://www.mybb.com/licenses/bsd3 BSD-3
*/
namespace MyBB\Core\Renderers\Post\Quote;
use Illuminate\Foundation\Application;
use MyBB\Core\Database\Models\Post;
class MyCode implements QuoteInterface
{
/**
* @var Applicat... | {
"content_hash": "e588c124e73baa9b98e41f845409e23f",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 81,
"avg_line_length": 22.482142857142858,
"alnum_prop": 0.5861795075456712,
"repo_name": "ATofighi/mybb2",
"id": "5a566143165b4415d989a1f4d2452779cf1c83bb",
"size": "1259"... |
/
IEnumerable<int> e = (rand.Next(2) == 0) ? AlgorithmsTests.EnumerableFromArray(items) : items;
list.InsertRange(index, e);
deque.InsertRange(index, e);
}
//deque.Print();
CheckListAnd... | {
"content_hash": "1d571306e95beba9830189308d8d7e1f",
"timestamp": "",
"source": "github",
"line_count": 1106,
"max_line_length": 267,
"avg_line_length": 34.73508137432188,
"alnum_prop": 0.4540177525574615,
"repo_name": "iliantrifonov/TelerikAcademy",
"id": "861e99b61e1134d92d80df1493bc89534caa2eb6",
... |
using System;
using System.Collections;
using Raksha.Asn1.Cms;
namespace Raksha.Cms
{
/// <remarks>
/// The 'Signature' parameter is only available when generating unsigned attributes.
/// </remarks>
public enum CmsAttributeTableParameter
{
// const string ContentType = "contentType";
// const string Digest = "... | {
"content_hash": "c4ab98cf35e88d282a7e6dbc6523e65c",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 85,
"avg_line_length": 25.458333333333332,
"alnum_prop": 0.7610474631751227,
"repo_name": "Taggersoft/Raksha",
"id": "29a076583378b37f1ee25f58ceb34e31dcfb5a9b",
"size": "61... |
<?php
class LayoutParser {
private $version = -1;
private $revision = -1;
private $numObjects = -1;
private $laps = -1;
/** Base path for layouts. Ends on / */
private $basePath;
private $objects = array();
const UNPACK = 'x6/Cversion/Crevision/vnumObjects/Claps/x';
const PACK =... | {
"content_hash": "8b2a64f3b421697262df3b73e7259ee9",
"timestamp": "",
"source": "github",
"line_count": 108,
"max_line_length": 117,
"avg_line_length": 29.52777777777778,
"alnum_prop": 0.5321417372216996,
"repo_name": "Dygear/PRISM",
"id": "08feb2c8ebfc54d983b596c08ef8a52a4aebe892",
"size": "3189",... |
PHP Application Sample Code
## This is the offficial repository for PASC (PHP Application Sample Code)
**The following softwares are released under the Massachusetts Institute of
Technology Software License**
See attached file LICENSE located in the project dir
[ {
"use strict";
/**
* Auto-hide summary textarea if empty and show hide and unhide links.
*/
Drupal.behaviors.textSummary = {
attach: function (context, settings) {
$(context).find('.text-summary').once('text-summary', function () {
var $widget = $(this).closest('.text-format-wrapper');
... | {
"content_hash": "63d1b9e52978f14a9ac681674829944f",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 158,
"avg_line_length": 31.705882352941178,
"alnum_prop": 0.5633889919604206,
"repo_name": "nickopris/musicapp",
"id": "7e63c093f8202d0f5f6a36673a0a8165b82528d8",
"size": "... |
package xhandler_test
import (
"fmt"
"net/http"
"strings"
"time"
"github.com/rs/cors"
"github.com/rs/xhandler"
"golang.org/x/net/context"
)
func ExampleChain() {
c := xhandler.Chain{}
// Append a context-aware middleware handler
c.UseC(xhandler.CloseHandler)
// Mix it with a non-context-aware middleware ... | {
"content_hash": "fdccf85552e774cc3deca514b9dc4853",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 121,
"avg_line_length": 27.365384615384617,
"alnum_prop": 0.7132817990161631,
"repo_name": "stellar/federation",
"id": "005b5b218cbd06f4f364bfd7e42e79a1308c7409",
"size": "... |
import Joi from 'joi';
import { ServiceContainer, decorators } from '../../src';
const { service, withSchema } = decorators;
class Calculator extends ServiceContainer {
@service()
@withSchema({
cost: Joi.number().integer().positive().required(),
impressions: Joi.number().integer().min(0).required()
})
... | {
"content_hash": "00b0fb9015ee3539754387a532b3117a",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 57,
"avg_line_length": 21.767441860465116,
"alnum_prop": 0.5993589743589743,
"repo_name": "octobusjs/octobus",
"id": "e7dcb2b1519c3741f77361652d985d5b91eb3615",
"size": "93... |
define(["jquery", "backbone"],
function($, Backbone) {
// Creates a new Backbone Model class object
var Post = Backbone.Model.extend({
url: '/post', //relative URL where model's resource is
// Model Constructor
initialize: function() {
},
defaults: {
name:"",
... | {
"content_hash": "c935add5fe7aec159927cc0ba9c8b240",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 60,
"avg_line_length": 16.416666666666668,
"alnum_prop": 0.5076142131979695,
"repo_name": "scheddit/scheddit",
"id": "69c43a4d8545a0ab987020929fb92ea36d098496",
"size": "63... |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Domain(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "treemap"
_path_str = "treemap.domain"
_valid_props = {"column", "row", "x", "y"}
# colu... | {
"content_hash": "d6ae1d5cb6f434314b26b9c6efd66b7c",
"timestamp": "",
"source": "github",
"line_count": 207,
"max_line_length": 82,
"avg_line_length": 27.806763285024154,
"alnum_prop": 0.5062543432939541,
"repo_name": "plotly/python-api",
"id": "7a49e2974d5f54e8b95ab51a8f075900aa3376b4",
"size": "5... |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=... | {
"content_hash": "3874dd43f468e9a1ea52de68ec5fc663",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 74,
"avg_line_length": 36.27272727272727,
"alnum_prop": 0.6716791979949874,
"repo_name": "GcsQin/ParkingGuide",
"id": "6884e1c31f1ee96d26bef5f65f31c2a8460c1cf7",
"size": "4... |
package com.a9ski.um.ldap.exceptions;
public class LdapUserNotFoundException extends LdapCustomException {
/**
*
*/
private static final long serialVersionUID = -1611036340555829118L;
public LdapUserNotFoundException(String message) {
super(message);
}
}
| {
"content_hash": "1b9ae4de583ebedd6a1d646b13ac98d3",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 68,
"avg_line_length": 20.285714285714285,
"alnum_prop": 0.7288732394366197,
"repo_name": "thexman/ldap-um",
"id": "9488820f2e18fc55b157502934ce113fc72d6557",
"size": "958"... |
class CreateMagazCarts < ActiveRecord::Migration
def change
create_table :magaz_carts do |t|
t.timestamps null: false
end
end
end
| {
"content_hash": "231f0c137977806cea3c8e833be5549d",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 48,
"avg_line_length": 18.625,
"alnum_prop": 0.697986577181208,
"repo_name": "nmix/magaz",
"id": "eda85f6a5853753df6e5a0f754a32f8f35971c56",
"size": "149",
"binary": false... |
package nu.validator.datatype;
import nu.validator.datatype.data.CharsetData;
import org.relaxng.datatype.DatatypeException;
public class MetaCharset extends AbstractDatatype {
/**
* The singleton instance.
*/
public static final MetaCharset THE_INSTANCE = new MetaCharset();
// private stati... | {
"content_hash": "e450747c53eca2c290904acdf6327183",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 120,
"avg_line_length": 40.337078651685395,
"alnum_prop": 0.48356545961002784,
"repo_name": "sammuelyee/validator",
"id": "3c82960f7690f3e1ac71404ae25b8f0d0ca8a7be",
"size"... |
//=============================================================================================================
//=============================================================================================================
// INCLUDES
//================================================================================... | {
"content_hash": "f5c5dfdee30e92c6fc0204b3ca848ee3",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 234,
"avg_line_length": 47.4040404040404,
"alnum_prop": 0.5282335393138717,
"repo_name": "chdinh/mne-cpp",
"id": "41677a6a74ffc50e5ce92d56946a62d0fd4ec559",
"size": "6551",... |
<?php
namespace app\traits;
use Yii;
use yii\base\Model;
use yii\helpers\Json;
use yii\web\Response;
use yii\widgets\ActiveForm;
/**
* Class AjaxValidationTrait performs ajax validation.
*
* @author Igor Chepurnoy <chepurnoi.igor@gmail.com>
*
* @since 1.0
*/
trait AjaxValidationTrait
{
/**
* Performs ... | {
"content_hash": "c20b473476e7498a3cdf4ac356f473d7",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 85,
"avg_line_length": 21.428571428571427,
"alnum_prop": 0.6106666666666667,
"repo_name": "yii2mod/base",
"id": "e0abb540a04e9af75e2cd850ed52d65eb3ada362",
"size": "750",
... |
package ua.com.fielden.platform.entity.query.generation.elements;
import ua.com.fielden.platform.entity.query.DbVersion;
public class MaxOf extends SingleOperandFunction {
public MaxOf(final ISingleOperand operand, final DbVersion dbVersion) {
super(dbVersion, operand);
}
@Override
public St... | {
"content_hash": "fbea5c8078e80c00660a55a8619b5486",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 75,
"avg_line_length": 24.4375,
"alnum_prop": 0.6956521739130435,
"repo_name": "fieldenms/tg",
"id": "be56e1dde3aadb56e2496aaef1f85afed6a216fe",
"size": "391",
"binary": ... |
"""\
Test against issue #25.
<https://github.com/heuer/cablemap/issues/25>
:author: Lars Heuer (heuer[at]semagia.com)
:organization: Semagia - <http://www.semagia.com/>
:license: BSD license
"""
from nose.tools import eq_
from cablemap.core import cable_by_id
def test_issue25():
cable = cable_by_id('09... | {
"content_hash": "aa390a4e64fd7d89fbc946b0b93f0a63",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 86,
"avg_line_length": 28.05,
"alnum_prop": 0.6702317290552585,
"repo_name": "heuer/cablemap",
"id": "4f3ee6fd4f663981c8e2f8a7fbad5dade4da78c0",
"size": "729",
"binary": ... |
// <copyright file="ErrorRegistrationEqualityComparer.cs" company="DevDigital">
// Copyright (c) DevDigital. All rights reserved.
// </copyright>
namespace AutoResponse.Client
{
using System.Collections.Generic;
/// <summary>
/// Error registration equality comparer.
/// </summary>
internal class... | {
"content_hash": "40afd1001bcdce73b793bd464a835f2f",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 91,
"avg_line_length": 25.073529411764707,
"alnum_prop": 0.4715542521994135,
"repo_name": "devdigital/AutoResponse",
"id": "2abc87d52f3dd51084b0c0e1f940309791e869c2",
"size... |
package hygieia.transformer;
import com.capitalone.dashboard.model.TestCase;
import com.capitalone.dashboard.model.TestCaseCondition;
import com.capitalone.dashboard.model.TestCaseStatus;
import com.capitalone.dashboard.model.TestCaseStep;
import com.capitalone.dashboard.model.TestSuite;
import com.capitalone.dashboar... | {
"content_hash": "bbc70dbcb0f4299821d70903d7f0c2ba",
"timestamp": "",
"source": "github",
"line_count": 229,
"max_line_length": 114,
"avg_line_length": 39.26637554585153,
"alnum_prop": 0.620885231316726,
"repo_name": "satishc1/Hygieia",
"id": "13b3b73c94d9059a7b23d57d7a868e53c3428d01",
"size": "899... |
from frappe import _
from frappe.utils import get_fullname, now
from frappe.model.document import Document
from frappe.core.utils import set_timeline_doc
import frappe
from frappe.query_builder import DocType, Interval
from frappe.query_builder.functions import Now
from pypika.terms import PseudoColumn
class ActivityL... | {
"content_hash": "26f105ccb50b16d26414e1d71e41d159",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 79,
"avg_line_length": 29.918367346938776,
"alnum_prop": 0.7257844474761255,
"repo_name": "almeidapaulopt/frappe",
"id": "69565a2c2ad59b832b9e95170d65b8544a2bd54b",
"size":... |
package ee.leola.kassa.controllers;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import ee.leola.kassa.helpers.Json;
import ee.leola.kassa.models.PopularProduct;
import ee.leola.kassa.models.Transaction;
import ee.leola.kassa.models.User;
import ee.leola.kassa.... | {
"content_hash": "b95fdb904c03f830759e625a710636b0",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 95,
"avg_line_length": 39.53846153846154,
"alnum_prop": 0.7898832684824902,
"repo_name": "v3rm0n/fratpos",
"id": "345f8efd2ee5a03903f03acb9c0c2d3f99712c6c",
"size": "1542",... |
#ifndef WEBSOCKETPP_TRANSPORT_SECURITY_NONE_HPP
#define WEBSOCKETPP_TRANSPORT_SECURITY_NONE_HPP
#include <websocketpp/transport/asio/security/base.hpp>
#include <boost/asio.hpp>
#include <iostream>
#include <string>
namespace websocketpp {
namespace transport {
namespace asio {
namespace basic_socket {
typedef l... | {
"content_hash": "592f2ab2fa2cf5298ca3cc7516dad7fd",
"timestamp": "",
"source": "github",
"line_count": 271,
"max_line_length": 79,
"avg_line_length": 30.339483394833948,
"alnum_prop": 0.6198005351495987,
"repo_name": "sortofsleepy/PunchOut",
"id": "2c9f5c97da2b1205265d752331722b44f8269d9a",
"size"... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model as Eloquent;
/**
* Description of Test
*
* @author ACER
*/
class Test Extends Eloquent {
protected $table='test';
public $timestamps=false;
}
| {
"content_hash": "c1ba8249b1c6a1a360f72f1d4511b814",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 51,
"avg_line_length": 16.2,
"alnum_prop": 0.6378600823045267,
"repo_name": "mahasiswaos/PenjualanAksesorisPasangan",
"id": "bff5a19f2b74dde90bc12c82252bc46320d6f03f",
"siz... |
package quickfix.field;
import quickfix.StringField;
public class LegSettlCurrency extends StringField
{
static final long serialVersionUID = 20050617;
public static final int FIELD = 675;
public LegSettlCurrency()
{
super(675);
}
public LegSettlCurrency(String data)
{
super(6... | {
"content_hash": "e3d9cab9e84e61578f7133ff12581199",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 50,
"avg_line_length": 13.346153846153847,
"alnum_prop": 0.6657060518731989,
"repo_name": "Forexware/quickfixj",
"id": "4a5e94460cff6846a555a9484b4a3b1dccf6152b",
"size": "... |
package com.hazelcast.client.impl.protocol.task.ringbuffer;
import com.hazelcast.client.impl.protocol.ClientMessage;
import com.hazelcast.client.impl.protocol.codec.RingbufferTailSequenceCodec;
import com.hazelcast.client.impl.protocol.task.AbstractPartitionMessageTask;
import com.hazelcast.instance.impl.Node;
impor... | {
"content_hash": "014197071101ab1f419e4ce322f39801",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 110,
"avg_line_length": 32.046875,
"alnum_prop": 0.7703559239395417,
"repo_name": "mesutcelik/hazelcast",
"id": "9bd31c7002fc2d56f3089d0ed269995dee8bea60",
"size": "2676",
... |
using System;
using System.Runtime.InteropServices;
using System.Windows;
public class FlashWindow
{
private IntPtr mainWindowHWnd;
private Application theApp;
public FlashWindow(Application app)
{
this.theApp = app;
}
public void FlashApplicationWindow()
{
... | {
"content_hash": "ea779f0be2095fc328206d2e187fdcc4",
"timestamp": "",
"source": "github",
"line_count": 155,
"max_line_length": 140,
"avg_line_length": 30.309677419354838,
"alnum_prop": 0.5842911877394636,
"repo_name": "snowl/Melas",
"id": "480565f9b9a2ac1b11b66ebe3016c3420fde8c62",
"size": "4700",... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_memcpy_81a.cpp
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.string.label.xml
Template File: sources-sink-81a.tmpl.cpp
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSou... | {
"content_hash": "a9f0bb98b7f9d2a7c92f91937c2913a0",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 171,
"avg_line_length": 31.34065934065934,
"alnum_prop": 0.6816269284712483,
"repo_name": "JianpingZeng/xcc",
"id": "fe2092cf1b582cfac696938dc2ebc18275ea25b6",
"size": "285... |
package modbus
import (
"encoding/binary"
"fmt"
)
// ClientHandler is the interface that groups the Packager and Transporter methods.
type ClientHandler interface {
Packager
Transporter
}
type client struct {
packager Packager
transporter Transporter
}
// NewClient creates a new modbus client with given ba... | {
"content_hash": "5c479568350b2e9bcaeee96f3ba20852",
"timestamp": "",
"source": "github",
"line_count": 490,
"max_line_length": 151,
"avg_line_length": 30.6265306122449,
"alnum_prop": 0.6530285866595589,
"repo_name": "gonium/gosdm630_old",
"id": "d1766b17f318f75985bd76c69ffecca0e96047c0",
"size": "... |
Quick では **examples** と **example groups** という特別な文法があります。
*[XCTestで役に立つテストを書く方法:Arrange(環境構築), Act(実行), and Assert(動作確認)](ArrangeActAssert.md)* では,
良いテスト名をつけることがとても重要だということを学びました。
テストが失敗した時、テスト名はアプリケーションコードを直すべきかテストを修正すべきかを判断する際の重要な材料になります。
Quick の examples(テスト) と example groups(テストグループ) は二つの役に立ちます。
1. 記述的なテスト名を書くため... | {
"content_hash": "e633cb8d1b7941a19bd6d21fe0ec1cd8",
"timestamp": "",
"source": "github",
"line_count": 475,
"max_line_length": 127,
"avg_line_length": 21.477894736842106,
"alnum_prop": 0.6718290531268378,
"repo_name": "richeterre/SwiftGoal",
"id": "65b25fa5e9450651f2fcb5396b01451c2e19acb3",
"size"... |
package co.trackin.client.api;
import co.trackin.client.ApiException;
import co.trackin.client.model.Contact;
import java.util.HashMap;
import java.util.Map;
public class ContactService {
TrackinApi trackinApi;
ContactService(TrackinApi trackinApi) {
this.trackinApi = trackinApi;
}
public ... | {
"content_hash": "6f4190edb26b33bf97fbe12ea07929d5",
"timestamp": "",
"source": "github",
"line_count": 238,
"max_line_length": 124,
"avg_line_length": 36.13025210084034,
"alnum_prop": 0.5685544830794278,
"repo_name": "Trackin/api-java-lib",
"id": "430ef4ea7c767526cf86ac3a69dc6eefc6e7a962",
"size":... |
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using ServerSideFinalProject.Models;
namespace ServerSideFinalProject
{
// Configure the application user manager used in this application. Us... | {
"content_hash": "93d8cfc498de7b1387d516c1297c6371",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 146,
"avg_line_length": 40.13333333333333,
"alnum_prop": 0.6578073089700996,
"repo_name": "Turgibot/ServerSideFinalProject",
"id": "20831b9268442dbcd2e43ad9b79c191fb057b554",... |
/**
* Utilities for REST
* @author Mike Conway - DICE (www.irods.org)
*
*/
package org.irods.jargon.rest.utils; | {
"content_hash": "9aaeee173ea38076abb06b01be20794c",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 45,
"avg_line_length": 19.166666666666668,
"alnum_prop": 0.6695652173913044,
"repo_name": "DFC-Incubator/base-service",
"id": "b3b935bd15021fa41b24e392ca40b50535c47b5b",
"si... |
package io.joynr.accesscontrol;
public interface HasConsumerPermissionCallback {
void hasConsumerPermission(boolean hasPermission);
}
| {
"content_hash": "c5ce9e8253759fc344fc922352033be5",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 54,
"avg_line_length": 23.333333333333332,
"alnum_prop": 0.8285714285714286,
"repo_name": "bmwcarit/joynr",
"id": "fcee967539b1458b29f3d21954f18d1d3c57ae9b",
"size": "773",
... |
Para instalar lxc-webpanel usamos el comando:
wget https://lxc-webpanel.github.io/tools/install.sh -O - | bash
O de forma manual:
1. Clonando el repositorio
git clone https://github.com/lxc-webpanel/LXC-Web-Panel.git
2. Instalando flask
pip install flask==0.9
3. Ejecutando lxc-webpanel
... | {
"content_hash": "b789dd3f97b97b3c2269edd26d6ffe42",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 95,
"avg_line_length": 21.95,
"alnum_prop": 0.7357630979498861,
"repo_name": "luishexen/clases-CC-2015-16",
"id": "54e28d83bff8378bae1a650c9f1b6327eca9986e",
"size": "1153"... |
sudo pm2 unstartup | {
"content_hash": "10019657ec4f456867eca50f182e68e7",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 18,
"avg_line_length": 18,
"alnum_prop": 0.8888888888888888,
"repo_name": "michaeldowseza/helloworld_webserverapp",
"id": "bd47970d252951f1c205b0f6d7c98f863ab3d5e3",
"size":... |
package org.elasticsearch.action.admin.indices.alias;
import org.elasticsearch.ElasticsearchGenerationException;
import org.elasticsearch.common.Nullable;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.io.stream.Streamabl... | {
"content_hash": "aca12a2261c9d46b33b262480c068b77",
"timestamp": "",
"source": "github",
"line_count": 211,
"max_line_length": 160,
"avg_line_length": 28.592417061611375,
"alnum_prop": 0.6010276810873529,
"repo_name": "vrkansagara/elasticsearch",
"id": "15cd244ba23603b04e58c3e21c9f0f1973c60278",
"... |
package org.wso2.carbon.identity.sso.saml.util;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.xerces.impl.Constants;
import org.apache.xerces.util.SecurityManager;
import org.joda.time.DateTime;
import org.opensaml.Co... | {
"content_hash": "443099b51426898a16b010697d281f1e",
"timestamp": "",
"source": "github",
"line_count": 1502,
"max_line_length": 142,
"avg_line_length": 42.69107856191744,
"alnum_prop": 0.6519291350862418,
"repo_name": "madurangasiriwardena/carbon-identity",
"id": "394ddd72d15c19fd95cd285870443fd8eda... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fcsl-pcm: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | {
"content_hash": "bf4731a23c8423bbd22d20df32b8cad6",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 159,
"avg_line_length": 41.53370786516854,
"alnum_prop": 0.5575544433923982,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "cdb6138d593a3f48078abb0ee5695dab4f989af5",
... |
bool BINARYNINJAUIAPI undefineNameForAddress(BinaryViewRef data, uint64_t addr);
bool BINARYNINJAUIAPI undefineNameForLocalVariable(BinaryViewRef data,
FunctionRef func, const BinaryNinja::Variable& var);
bool BINARYNINJAUIAPI inputNameForAddress(QWidget* parent, BinaryViewRef data, uint64_t addr);
bool BINARYNINJAUIA... | {
"content_hash": "09f11d622f78331ee5202140de221bd9",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 120,
"avg_line_length": 70.67567567567568,
"alnum_prop": 0.8298279158699808,
"repo_name": "joshwatson/binaryninja-api",
"id": "fabea073c1a67e643db42d8ab9953c68b6b6a594",
"s... |
package com.google.api.ads.dfp.jaxws.v201405;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for updat... | {
"content_hash": "c37447cdf7bbe8dc97d13443d2d6c853",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 144,
"avg_line_length": 28.112676056338028,
"alnum_prop": 0.6432865731462926,
"repo_name": "andyj24/googleads-java-lib",
"id": "16696cf37170b99e35ed07d550ef11259aeedc6a",
"... |
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet"
href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
<title>Products</title>
</head>
<body>
<section>
<div class="jumbotron">
<div class="container">
<h... | {
"content_hash": "e5a2d3d4778281f994a9dccc91f6df72",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 112,
"avg_line_length": 40.6,
"alnum_prop": 0.4509283819628647,
"repo_name": "sohtsuka/Spring-MVC-Beginners-Guide-Second-Edition",
"id": "9bcbdd67325048222e9376083bfacd5f7025... |
<?php
namespace Zend\Db\TableGateway;
use Zend\Db\Adapter\AdapterInterface;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\ResultSet\ResultSetInterface;
use Zend\Db\Sql\Delete;
use Zend\Db\Sql\Insert;
use Zend\Db\Sql\Select;
use Zend\Db\Sql\Sql;
use Zend\Db\Sql\TableIdentifier;
use Zend\Db\Sql\Update;
use Zend\Db\Sql\... | {
"content_hash": "a43d5bacd939c3ce1dc65f00bb51b407",
"timestamp": "",
"source": "github",
"line_count": 480,
"max_line_length": 135,
"avg_line_length": 24.739583333333332,
"alnum_prop": 0.5552842105263158,
"repo_name": "bourkhimehaytam/zf2",
"id": "08e88e5b3dc2e774667b19a1b5ec957f2b2f5655",
"size":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.