text stringlengths 2 1.04M | meta dict |
|---|---|
package org.onlab.packet.pim;
import org.onlab.packet.DeserializationException;
import org.onlab.packet.Ip4Address;
import org.onlab.packet.Ip6Address;
import org.onlab.packet.IpAddress;
import org.onlab.packet.PIM;
import java.nio.ByteBuffer;
import static org.onlab.packet.PacketUtils.checkInput;
public class P... | {
"content_hash": "7de6d02737a88967c913e8954d7a476a",
"timestamp": "",
"source": "github",
"line_count": 171,
"max_line_length": 112,
"avg_line_length": 26.46783625730994,
"alnum_prop": 0.5653999116217411,
"repo_name": "osinstom/onos",
"id": "e8d9a2d98137eb73f5b1928daca4d307078fe4b3",
"size": "5143"... |
@interface RDMLLoadingView ()
@property (strong, nonatomic) UIActivityIndicatorView *spinner;
@end
@implementation RDMLLoadingView
- (id)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
self.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
... | {
"content_hash": "1db843c3377d24f6fc77905b4565e2fa",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 117,
"avg_line_length": 19.869565217391305,
"alnum_prop": 0.7177242888402626,
"repo_name": "readmill/dropbox-importer-ios",
"id": "67f0997b3b8a36aabbcc89724e0222919f85f936",
... |
SELECT * FROM (SELECT *
FROM (
SELECT qview1."unique2", qview1."evenonepercent", qview1."stringu1", qview1."string4", qview2."evenonepercent", qview2."stringu1", qview2."string4", qview3."evenonepercent", qview3."stringu1", qview3."string4"
FROM
"public"."t13_1m" qview1,
"public"."t14_1m" qview2,
"public"."t15_1m" qvie... | {
"content_hash": "6cd0f4fe0e907e70b57d4a5b242ea708",
"timestamp": "",
"source": "github",
"line_count": 2754,
"max_line_length": 212,
"avg_line_length": 42.36347131445171,
"alnum_prop": 0.728771138862937,
"repo_name": "ontop/ontop-examples",
"id": "e823a41dc49f89e4547c43034d8784b87d422c1f",
"size":... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>basic_stream_socket::wait (2 of 2 overloads)</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href=... | {
"content_hash": "abc47204b6748f7aa56e77a3993710a5",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 438,
"avg_line_length": 54.72727272727273,
"alnum_prop": 0.6148255813953488,
"repo_name": "alexhenrie/poedit",
"id": "7b0afcf61bd6e0d97756607e97516d7894914a90",
"size": "48... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Les informations générales relatives à un assembly dépendent de
// l'ensemble d'attributs suivant. Pour modifier les informations
// associées à un assembly, changez les valeurs de ces attributs.
[assembly: Assem... | {
"content_hash": "d48faba9aa8890536f8271746521adae",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 103,
"avg_line_length": 41.638888888888886,
"alnum_prop": 0.7498332221480988,
"repo_name": "dorianb/tri_bagage",
"id": "a544ea449058b1eb5444cb31bf09ae3628345fa0",
"size": "... |
package org.apache.lucene.analysis.pt;
import java.io.Reader;
import java.io.StringReader;
import org.apache.lucene.analysis.BaseTokenStreamTestCase;
import org.apache.lucene.analysis.MockTokenizer;
import org.apache.lucene.analysis.TokenStream;
/**
* Simple tests to ensure the Portuguese stem factory is working.... | {
"content_hash": "9e0f228d945710ebd01ed55372523e41",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 100,
"avg_line_length": 34.18181818181818,
"alnum_prop": 0.7898936170212766,
"repo_name": "pkarmstr/NYBC",
"id": "6d3fa44181eb7a4c9b120e4694f189f8b78be75a",
"size": "1553",... |
using System;
using JetBrains.Annotations;
using Microsoft.Extensions.DependencyInjection;
namespace CoreMessageBus.Internal
{
public class MessageHandlerFactory : IMessageHandlerFactory
{
private readonly IServiceProvider _serviceProvider;
public MessageHandlerFactory([NotNull] IServiceProvid... | {
"content_hash": "5d48652efffd599678d0b709c1f7d91d",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 98,
"avg_line_length": 33.130434782608695,
"alnum_prop": 0.7112860892388452,
"repo_name": "Grinderofl/CoreMessageBus",
"id": "84fee4a453dd2ce85b9a119064de10bb65cef326",
"si... |
import { isInteractive } from "../../common/helpers";
import { IErrors, Server, ICredentials } from "../../common/declarations";
import { injector } from "../../common/yok";
import {
IAppleCreateUserSessionOptions,
IApplePortalUserDetail,
IApplePortalCookieService,
IAppleLoginResult,
IApplePortalSessionService,
} ... | {
"content_hash": "d7ef50bf9a4bc8cfd06eef2caece9ce9",
"timestamp": "",
"source": "github",
"line_count": 268,
"max_line_length": 171,
"avg_line_length": 29.932835820895523,
"alnum_prop": 0.712291199202194,
"repo_name": "NativeScript/nativescript-cli",
"id": "b3767410492039b587a165bb15a71d05183cc7e7",
... |
package query;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.crypto.SealedObject;
import org.springframework.stereotype.Service;
import io.netty.ut... | {
"content_hash": "e7fd5c5215bc99bf455a75840c4fb381",
"timestamp": "",
"source": "github",
"line_count": 184,
"max_line_length": 103,
"avg_line_length": 25.597826086956523,
"alnum_prop": 0.6464968152866242,
"repo_name": "brucelau-github/searchingEngine",
"id": "a91979a41f8b4285b7b749f8ccff2e1685ec7e25... |
require 'spec_helper'
describe 'cms_agents_addons_file', type: :feature, dbscope: :example, js: true do
let(:site){ cms_site }
let!(:node) { create :article_node_page, cur_site: site }
let(:filename) { "#{unique_id}.png" }
before do
login_cms_user
end
shared_examples "file dialog is" do
context "... | {
"content_hash": "91839a81fae3a8b867c7106dbe2af76e",
"timestamp": "",
"source": "github",
"line_count": 215,
"max_line_length": 101,
"avg_line_length": 29.506976744186048,
"alnum_prop": 0.5673076923076923,
"repo_name": "sunny4381/shirasagi",
"id": "a307fa5cc5133e54bb76af36af2fd59fa9115c8e",
"size":... |
export declare class Logger {
private readonly level;
constructor(level: number);
error(...msg: string[]): void;
info(...msg: string[]): void;
debug(...msg: string[]): void;
}
export declare const logger: Logger;
| {
"content_hash": "241eac8a5dd9e0e48e5c6761540cf04f",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 36,
"avg_line_length": 29.125,
"alnum_prop": 0.6394849785407726,
"repo_name": "cloudfoundry-community/asp.net5-buildpack",
"id": "c9528c62ff409831f6cd014c326482b2eccf176c",
... |
export declare function currencyConfig(formlyConfig: any, $locale: any): void;
| {
"content_hash": "08770d7af7705f21132f308066d6f091",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 78,
"avg_line_length": 79,
"alnum_prop": 0.7974683544303798,
"repo_name": "rhases/angular-formly-templates-rhases",
"id": "ca5c6a92ae4cd4cccc2f0edd20dc9a1e2bef3ad9",
"size":... |
/*************************************************************************/
/* reflection_probe.h */
/*************************************************************************/
/* This file is part of: */
/* ... | {
"content_hash": "71c38dd4afb74aa34ec20ae53ebe7f64",
"timestamp": "",
"source": "github",
"line_count": 114,
"max_line_length": 75,
"avg_line_length": 36.94736842105263,
"alnum_prop": 0.5949667616334283,
"repo_name": "mcanders/godot",
"id": "13ae1c81f6e81c7205d57d16eafc0b2a2a4ba3cb",
"size": "4212"... |
#import "TGImageMessageViewModel.h"
@class TGImageMediaAttachment;
@interface TGPhotoMessageViewModel : TGImageMessageViewModel
- (instancetype)initWithMessage:(TGMessage *)message imageMedia:(TGImageMediaAttachment *)imageMedia author:(TGUser *)author context:(TGModernViewContext *)context;
@end
| {
"content_hash": "0f2b7df642deccd8ce25c42711cb8d9f",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 164,
"avg_line_length": 27.636363636363637,
"alnum_prop": 0.8256578947368421,
"repo_name": "DZamataev/TelegramAppKit",
"id": "155fd7d496e6b7514552e27ead9503708226ee82",
"si... |
package tora.mod.realisticScience;
import tora.mod.realisticScience.machines.PipeBasic;
import tora.mod.realisticScience.ores.OreSmelting;
import tora.mod.realisticScience.tileentities.TileentityPipeBasic;
import net.minecraft.block.Block;
import net.minecraft.block.StepSound;
import net.minecraft.block.material.Mater... | {
"content_hash": "9265bf476f5f5588c4b2cfb8ab7a1a08",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 123,
"avg_line_length": 33.266666666666666,
"alnum_prop": 0.7134268537074149,
"repo_name": "aidatorajiro/MinecraftMod-RealisticScience",
"id": "db20df9e0e40f8fdc9bc0c702dfaf5... |
FOUNDATION_EXPORT double SwiftMarkIOSVersionNumber;
//! Project version string for SwiftMarkIOS.
FOUNDATION_EXPORT const unsigned char SwiftMarkIOSVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <SwiftMarkIOS/PublicHeader.h>
| {
"content_hash": "2be3341d417b1b876b98688270fc65fc",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 137,
"avg_line_length": 38.25,
"alnum_prop": 0.8202614379084967,
"repo_name": "l65l/SwiftMark",
"id": "2bdaea828f6024bfc70c61ecd120fe1901808187",
"size": "522",
"binary": ... |
@interface NSDictionary(BeepAdditions)
- (int)stateForKey:(NSString *)key;
@end
| {
"content_hash": "71bf3ce058e5a8ed0232e8002d968fd9",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 38,
"avg_line_length": 16.4,
"alnum_prop": 0.7560975609756098,
"repo_name": "nkhorman/archive-growl",
"id": "0c3972eccf03fbc5476ab90f8d7c06847fd5bdfa",
"size": "195",
"bin... |
'use strict';
import angular from 'angular';
import currentVersion from "./version.directive.js";
export default angular.module('myApp.version', [
currentVersion
])
.value('version', '/* @echo pkg.version */')
.value('buildTimestamp', '/* @echo now */')
.name;
| {
"content_hash": "13316557d9b13a4d17db7813fafbbc47",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 52,
"avg_line_length": 24,
"alnum_prop": 0.6354166666666666,
"repo_name": "OnLiveResearch/core-layout-probe",
"id": "4f142b4d0a41cce7c2c44e427f794c8810dd1640",
"size": "288... |
namespace base {
class Value;
} // namespace base
namespace ash {
class NetworkConfigurationHandler;
class NetworkDeviceHandler;
class NetworkPolicyObserver;
struct NetworkProfile;
class NetworkProfileHandler;
class NetworkStateHandler;
// The ManagedNetworkConfigurationHandler class is used to create and configure... | {
"content_hash": "30135f99a6a8898d92dcd4042324531c",
"timestamp": "",
"source": "github",
"line_count": 241,
"max_line_length": 83,
"avg_line_length": 46.90041493775934,
"alnum_prop": 0.734583738830399,
"repo_name": "nwjs/chromium.src",
"id": "a2118d7581f723ab9971b27ccb7f31ab3274c5d2",
"size": "119... |
package com.ek.mobileapp.model;
//his消息处理日志
public class MessageDealLog {
private String name;
private String time;
private String state;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTime() {
... | {
"content_hash": "01f552d13b9ad03dea515650f4182451",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 40,
"avg_line_length": 16.176470588235293,
"alnum_prop": 0.5854545454545454,
"repo_name": "yangjiandong/MobileBase.G",
"id": "285cb10fbee3df0344e5f16521fefa10a8145894",
"si... |
/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW:
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation ... | {
"content_hash": "d7d4385c857294d0b8af0389d99604d5",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 82,
"avg_line_length": 25.04635761589404,
"alnum_prop": 0.6668429402432575,
"repo_name": "ajorg/giver",
"id": "17b2ddfad03c2e05f6245ff1c17fcc5f5222b9c2",
"size": "4042",
... |
package org.knowm.xchange.ccex.service;
import static org.knowm.xchange.service.trade.params.TradeHistoryParamsZero.PARAMS_ZERO;
import java.io.IOException;
import java.util.Collection;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ccex.CCEXAdapters;
import org.knowm.xchange.dto.Order;
import org.knowm... | {
"content_hash": "110709b373cf64c1beec129fe8edc1b1",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 172,
"avg_line_length": 33.743589743589745,
"alnum_prop": 0.8259878419452887,
"repo_name": "dozd/XChange",
"id": "6a796e69fbbe519883d2ea0ccfd67eaf21f410c0",
"size": "2632",... |
cask "printopia" do
version "3.0.14"
sha256 "09aa54a70fb17ff459e5d5109d120ff8fb429a7a196c057cbdeea8897eb69850"
url "https://www.decisivetactics.com/products/printopia/dl/Printopia_#{version}.zip"
appcast "https://www.decisivetactics.com/api/checkupdate?x-app_id=com.decisivetactics.printopia"
name "Printopia"... | {
"content_hash": "1a68de020f250f42a179d401a0c5197a",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 98,
"avg_line_length": 37.07142857142857,
"alnum_prop": 0.7803468208092486,
"repo_name": "ericbn/homebrew-cask",
"id": "e60e40fc1916940ecf588b6b8640eb176f8cc4d5",
"size": "... |

Messenger Native
================
A native chromeless & frameless window wrapper around the new www.messenger.com
](https://imagelayers.io/?images=sys42/docker-ruby22:latest 'Get your own badge on imagelayers.io')
* __sys42/docker-ruby21:__
[
.uri(URI.create("http://mockbin.com/har"))
.header("content-type", "multipart/form-data; boundary=---011000010111000001101001")
.method("POST", HttpRequest.BodyPublishers.ofString("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"foo\"; f... | {
"content_hash": "93f0f5d0bb6108687a85da676ad471c2",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 236,
"avg_line_length": 83.28571428571429,
"alnum_prop": 0.7392795883361921,
"repo_name": "Mashape/httpsnippet",
"id": "7c86e4be3f0a8e99688b2ef344ecc8a5d14f0863",
"size": "5... |
To use TensorFlow you need to understand how TensorFlow:
* Represents computations as graphs.
* Executes graphs in the context of `Sessions`.
* Represents data as tensors.
* Maintains state with `Variables`.
* Uses feeds and fetches to get data into and out of arbitrary operations.
## Overview
TensorFlow is a progra... | {
"content_hash": "6d68655aa5370494eb99b4b8f08e5769",
"timestamp": "",
"source": "github",
"line_count": 293,
"max_line_length": 129,
"avg_line_length": 34.74744027303754,
"alnum_prop": 0.7434436695805913,
"repo_name": "miyosuda/intro-to-dl-android",
"id": "dbbbccc776e1763c9ac239462933920e7c6a2f92",
... |
<?php
declare(strict_types=1);
namespace SolidWorx\Toggler\Storage;
use Exception;
use function file_get_contents;
use function file_put_contents;
use InvalidArgumentException;
use function is_file;
use function is_readable;
use function sprintf;
use Symfony\Component\Yaml\Yaml;
class YamlFileStorage extends Arra... | {
"content_hash": "100de3f6f71c57dbe00f8e0854b47995",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 124,
"avg_line_length": 24.076923076923077,
"alnum_prop": 0.6381789137380192,
"repo_name": "pierredup/toggler",
"id": "a678533fb5480f712258fd61769c7f3a563974f0",
"size": "1... |
using System;
using TermAttribute = Lucene.Net.Analysis.Tokenattributes.TermAttribute;
using Fieldable = Lucene.Net.Documents.Fieldable;
using UnicodeUtil = Lucene.Net.Util.UnicodeUtil;
namespace Lucene.Net.Index
{
sealed class TermsHashPerField:InvertedDocConsumerPerField
{
private void InitBlo... | {
"content_hash": "b305c4a5987848467879e8983fdbea05",
"timestamp": "",
"source": "github",
"line_count": 624,
"max_line_length": 152,
"avg_line_length": 27.858974358974358,
"alnum_prop": 0.6121721122871606,
"repo_name": "Mpdreamz/lucene.net",
"id": "86a5185f2807a44df7859a5f790463431594cbf7",
"size":... |
package org.knowm.xchange.hitbtc.v2.service;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.Order;
import org.knowm.xchange.dto.trade.*;
import org.knowm.xchange.exceptions.NotYetImplementedForExchangeException;
import org.knowm.xchange.hitbtc.v2.HitbtcA... | {
"content_hash": "0b3af5c957f2adb9af2861823a33759a",
"timestamp": "",
"source": "github",
"line_count": 139,
"max_line_length": 95,
"avg_line_length": 32.30935251798561,
"alnum_prop": 0.7679804052549544,
"repo_name": "evdubs/XChange",
"id": "f0f3573c444230a8950f49b24aed9c816e57c6c2",
"size": "4491"... |
<?php
use \Model as ParisModel;
$app->group('/present', function () use ($app) {
$app->get('/', function () use ($app) {
$sugg = ParisModel::factory('\GLLApp\Model\Suggestion');
$suggestions = $sugg
->limit(4)
->order_by_desc('created_at')
... | {
"content_hash": "c76e1a48049fe8e2a38ff5bc63dff371",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 82,
"avg_line_length": 32,
"alnum_prop": 0.49264705882352944,
"repo_name": "GreaterLaLa/greaterlala.in",
"id": "2f082c29ceb078f3e443e53678129aa77d419853",
"size": "544",
... |
Code copyright {YYYY} {name of copyright owner}. Code released under
[Apache License, Version 2.0](https://github.com/antonvorobyev/snippets-license/blob/master/LICENSE) | {
"content_hash": "d453357133af239343b98fa84bff5f24",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 101,
"avg_line_length": 57.666666666666664,
"alnum_prop": 0.7803468208092486,
"repo_name": "antonvorobyev/snippets-license",
"id": "262b15ec110776871c75a6a31ca490a4c8d720af",
... |
class CMenu : public CRenderable, public CUpdateable, public CGameLocation
{
public:
virtual ~CMenu(){};
virtual void Enter() = 0;
virtual void Draw(CWindow *theWindow) = 0;
virtual void Update(CTime elapsedTime) = 0;
virtual void Exit() = 0;
};
#endif
| {
"content_hash": "98b7a4c09f1342bff4a006dacae01777",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 74,
"avg_line_length": 23.25,
"alnum_prop": 0.6630824372759857,
"repo_name": "sizlo/SwingGame",
"id": "ee03a0374b670faeef5e9d9e2320b7968a663c8c",
"size": "920",
"binary":... |
export default /* glsl */`
#ifdef MAPCOLOR
uniform vec3 material_specular;
#endif
void getSpecularity() {
vec3 specularColor = vec3(1,1,1);
#ifdef MAPCOLOR
specularColor *= material_specular;
#endif
#ifdef MAPTEXTURE
specularColor *= $DECODE(texture2DBias($SAMPLER, $UV, textureBias)).$CH;
... | {
"content_hash": "948d691442026e0cd21f7f56df22a32b",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 76,
"avg_line_length": 18.791666666666668,
"alnum_prop": 0.6740576496674058,
"repo_name": "playcanvas/engine",
"id": "3583211bc0e05ebc0a88f3e3dad6adfcfd52e3d7",
"size": "45... |
package com.amazonaws.services.quicksight.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
* <p>
* Dashboard error.
* </p>
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/quicksigh... | {
"content_hash": "0519f11c11b43465733f247952ba5ce0",
"timestamp": "",
"source": "github",
"line_count": 197,
"max_line_length": 137,
"avg_line_length": 24.00507614213198,
"alnum_prop": 0.5567773313596955,
"repo_name": "aws/aws-sdk-java",
"id": "0f7673b448ace769de88d3f604fcbdf35bee52f0",
"size": "53... |
// Copyright 2000-2017 JetBrains s.r.o.
//
// 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 ... | {
"content_hash": "17467a408ea04cd77d8d3319092b310b",
"timestamp": "",
"source": "github",
"line_count": 172,
"max_line_length": 134,
"avg_line_length": 36.23255813953488,
"alnum_prop": 0.7230423620025674,
"repo_name": "mglukhikh/intellij-community",
"id": "49e642440023223e0b389de1960394138809b90b",
... |
package org.wisdom.framework.instances.it;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.osgi.framework.BundleContext;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.service.cm.Configuration;
import org.osgi.service.cm.ConfigurationAdmin;
import org.ow2.chameleo... | {
"content_hash": "13cb339a7723328ac7a7dcf96c56cd2a",
"timestamp": "",
"source": "github",
"line_count": 219,
"max_line_length": 119,
"avg_line_length": 34.55707762557078,
"alnum_prop": 0.6302854122621564,
"repo_name": "CRDNicolasBourbaki/wisdom",
"id": "e6f4d5883c89add30bec17eb60803c601b052d44",
"s... |
"""Globals"""
from django.conf import settings
KEY_STUBS_OPEN_METEAR_API = "open_metear_api"
URL_STUBS_CHANGE_ROUTE_CONFIG = "%s/stubs/change_route_configuration/" % settings.SITE_URL
| {
"content_hash": "5e1d9c4935bf889d92a01ba7ffefcba7",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 90,
"avg_line_length": 26.714285714285715,
"alnum_prop": 0.7433155080213903,
"repo_name": "timevortexproject/timevortex",
"id": "7140d54dd9362cbc55187737acda63d952f4d32f",
"... |
/*
* Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | {
"content_hash": "84158e7035d4f840374f9921a9e8ecab",
"timestamp": "",
"source": "github",
"line_count": 719,
"max_line_length": 80,
"avg_line_length": 45.450625869262865,
"alnum_prop": 0.5613084855717739,
"repo_name": "yeasy/lazyctrl",
"id": "696c3ec45167c3df65961f9c38fd4866efb19d31",
"size": "3440... |
"""
Support for interface with an Harman/Kardon or JBL AVR.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.harman_kardon_avr/
"""
import logging
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassista... | {
"content_hash": "86c96bd3eb9b7425c9fc12266b153c77",
"timestamp": "",
"source": "github",
"line_count": 133,
"max_line_length": 74,
"avg_line_length": 27.06766917293233,
"alnum_prop": 0.6191666666666666,
"repo_name": "PetePriority/home-assistant",
"id": "334757c086dbaf670512c8776d55e08dbc1cb8a0",
"... |
AliAnalysisTask* AddTaskTPCPIDEtaQA(TString period = "", Bool_t isPbpOrpPb = kFALSE,
AliTPCPIDBase::TPCcutType tpcCutType = AliTPCPIDBase::kTPCCutMIGeo /*AliTPCPIDBase::kTPCnclCut*/,
Bool_t usePhiCut = kFALSE,
Do... | {
"content_hash": "875f9da5ab12e3f9e586b3ec773f2b55",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 133,
"avg_line_length": 39.8,
"alnum_prop": 0.6575735821966978,
"repo_name": "victor-gonzalez/AliPhysics",
"id": "265fbf042e9fdaec33bba4e57a3407823c33e9ed",
"size": "4179"... |
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new # guest user (not logged in)
if user.admin?
can :manage, :all
else
case user.permission
when 1
can :read, :all, :hidden => false
when 2
can [:read, :create], :all
when 3
c... | {
"content_hash": "461a902e05a2dadc6bcf817214b61ca9",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 50,
"avg_line_length": 19.846153846153847,
"alnum_prop": 0.5348837209302325,
"repo_name": "wentaoliu/rtiss",
"id": "0dd363d11289120b21c5577a2a6c91f5a3360957",
"size": "516"... |
namespace YAF.Editors
{
#region Using
using System;
using YAF.Classes.Editors;
using YAF.Core;
using YAF.Types;
using YAF.Types.Extensions;
using YAF.Types.Interfaces;
#endregion
/// <summary>
/// The same as the TextEditor except it adds YAF BBCode support. Used for QuickRe... | {
"content_hash": "548bb23974a8fa4e5e1c946fbff841b9",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 193,
"avg_line_length": 29.019417475728154,
"alnum_prop": 0.5433255269320844,
"repo_name": "brooksyd2/sitecoreyaf8",
"id": "f7042cc5b231af9ce5c3738a5b99ca970d31136b",
"siz... |
require 'common/errors'
module Bosh
# Module for common methods used throughout the BOSH code.
module Common
# Converts all keys of a [Hash] to symbols. Performs deep conversion.
#
# @param [Hash] hash to convert
# @return [Hash] a copy of the original hash
def symbolize_keys(hash)
hash... | {
"content_hash": "ac4c32ec7e37ac4e9c26de9ba57d9d7f",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 109,
"avg_line_length": 31.365591397849464,
"alnum_prop": 0.615358244772026,
"repo_name": "yudai/simple_blobstore_proxy",
"id": "0fa78001a8fc21928a44744e81d99e586a4bc960",
... |
using namespace arb;
void run(unsigned long us_per_task, unsigned tasks, threading::task_system* ts) {
auto duration = std::chrono::microseconds(us_per_task);
arb::threading::parallel_for::apply(
0, tasks, ts,
[&](unsigned i){std::this_thread::sleep_for(duration);});
}
void run_nested(... | {
"content_hash": "ec33a2873f0bda4c57a7b2159290d01a",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 88,
"avg_line_length": 33.857142857142854,
"alnum_prop": 0.6467751657625075,
"repo_name": "halfflat/nestmc-proto",
"id": "dac7a094fd02f9e1de16e18a9ea235d0748dcf17",
"size":... |
<?php
namespace PHPExiftool\Driver\Tag\CanonVRD;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class ChromaticAberration extends AbstractTag
{
protected $Id = 'mixed';
protected $Name = 'ChromaticAberration';
protected $FullName... | {
"content_hash": "c438da36b993b53c5a38a6c29b6c5d99",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 52,
"avg_line_length": 16.82857142857143,
"alnum_prop": 0.6791171477079796,
"repo_name": "romainneutron/PHPExiftool",
"id": "277bc4d8cc9b29a97540e9befa742eb51655949a",
"siz... |
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("02... | {
"content_hash": "cdcce5324eb747ac9a3f26e72b7f147f",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.02777777777778,
"alnum_prop": 0.7423487544483985,
"repo_name": "AyrFX/Telerik-Academy-2016-CSharp-Part-1-Homeworks",
"id": "e5eebeb61938ffde68519998... |
module.exports = function (chai, util) {
/*!
* Chai dependencies.
*/
var Assertion = chai.Assertion
, flag = util.flag;
/*!
* Module export.
*/
/**
* ### assert(expression, message)
*
* Write your own test expressions.
*
* assert('foo' !== 'bar', 'foo is not bar');
*... | {
"content_hash": "93de2f40785d83c7fdf19225321e4ecc",
"timestamp": "",
"source": "github",
"line_count": 959,
"max_line_length": 96,
"avg_line_length": 24.50469238790407,
"alnum_prop": 0.5739148936170213,
"repo_name": "EvanBurchard/gamedev-garage",
"id": "8a84b48a33528d9ce0306dae052169cecdeb99bc",
"... |
// -*- C++ -*-
/*
* Copyright (C) 1990,91 Silicon Graphics, Inc.
*
_______________________________________________________________________
______________ S I L I C O N G R A P H I C S I N C . ____________
|
| $Revision: 1.1.1.1 $
|
| Description:
| This file defines the SoEmissiveColorElement c... | {
"content_hash": "79885fa368cc7debe50c23cd96eac0b7",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 78,
"avg_line_length": 27.26595744680851,
"alnum_prop": 0.5817401482637534,
"repo_name": "OpenXIP/xip-libraries",
"id": "37863a587c6e1574abfe472c57b0b2b13e7f1958",
"size": ... |
package org.apache.camel.processor;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
public class BreadcrumbDisabledTest extends MDCTest {
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilde... | {
"content_hash": "43e5ebbaef8dc101cd4975916ac716c1",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 117,
"avg_line_length": 38.486486486486484,
"alnum_prop": 0.5133426966292135,
"repo_name": "punkhorn/camel-upstream",
"id": "f6b73ff46c530ec493932091bac2b8b3118713bc",
"siz... |
<div ng-controller="AccordionDemoCtrl">
<p>
<button class="btn btn-default btn-sm" ng-click="status.open = !status.open">Toggle last panel</button>
<button class="btn btn-default btn-sm" ng-click="status.isFirstDisabled = ! status.isFirstDisabled">Enable / Disable first panel</button>
</p>
... | {
"content_hash": "da30d377f72b563d76bdcfb244b9f386",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 160,
"avg_line_length": 49.1,
"alnum_prop": 0.6680244399185336,
"repo_name": "hasithalakmal/CodeAnalyser",
"id": "301f3c7b1aacd68eac72e547f821afe027c403d8",
"size": "1473",... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/testWEBServer.iml" filepath="$PROJECT_DIR$/.idea/testWEBServer.iml" />
</modules>
</component>
</project> | {
"content_hash": "71031733e737269a5e9cfefabd8e1b8d",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 120,
"avg_line_length": 34.75,
"alnum_prop": 0.6726618705035972,
"repo_name": "roberto-slopez/Test-WebServer-RESTful",
"id": "a4eaad32ccd80fcc1a9a6c4603269f28545e7669",
"siz... |
package com.vaporwarecorp.mirror.feature.splash;
import com.robopupu.api.dependency.Provides;
import com.robopupu.api.plugin.Plug;
import com.robopupu.api.plugin.Plugin;
import com.vaporwarecorp.mirror.feature.common.view.FullscreenFragment;
@Plugin
public class SplashFragment extends FullscreenFragment<SplashPresen... | {
"content_hash": "4e6aa6651dac04e8190d33ffdeadf5f1",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 95,
"avg_line_length": 26.55263157894737,
"alnum_prop": 0.554013875123885,
"repo_name": "jreyes/mirror",
"id": "350807b1b2e2bf60c146c52bdc99831a859da721",
"size": "1604",
... |
BeTogether
==============
An Ember Application that aspires to help facilitate group activities.
Installation and Usage
------------
To run the app clone this repository. From the project directory in terminal
```
$ python -m SimpleHTTPServer
```
Then open up localhost:8000 in your web browser
Click o... | {
"content_hash": "7e2b99c87ed59711f3b52fd95bdb97a0",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 76,
"avg_line_length": 17.9375,
"alnum_prop": 0.662020905923345,
"repo_name": "katcarr/beTogetherEmber",
"id": "d62720be0ff16994148221af085aa96af6686909",
"size": "574",
... |
layout: post
status: publish
published: true
title: End of Study Break
author:
display_name: Jon Clausen
login: JClausen
email: jon_clausen@silowebworks.com
url: http://jonclausen.com
author_login: JClausen
author_email: jon_clausen@silowebworks.com
author_url: http://jonclausen.com
wordpress_id: 129
wordpress_... | {
"content_hash": "cb1267701dc0213777f88401ad4eef74",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 54,
"avg_line_length": 31.319148936170212,
"alnum_prop": 0.7221467391304348,
"repo_name": "jclausen/jclausen.github.io",
"id": "65d7e5ab53bb4de55f59bb22725f79c3d722f927",
"... |
using BookReviews.Infrastructure.Commands;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace BookReviews.Infrastructure.Commands.AccountsManagment.ResetAccountPasswordRequest
{
public class ResetAccountPasswordRequestCommand : AbstractCommand
{
public strin... | {
"content_hash": "7be960a3b1dd7341346272944a0dbeae",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 91,
"avg_line_length": 26.846153846153847,
"alnum_prop": 0.7908309455587392,
"repo_name": "bob2000/BookReviews",
"id": "193dfb610977b3a01275b11a76caf2e2285ff562",
"size": "... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Wed Nov 25 16:12:14 CET 2015 -->
<title>V-Index (Newton Raphson)</title>
<meta name="date" content="2015-11-25">
<link re... | {
"content_hash": "001c31401721f50955823b4bfa6859ee",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 560,
"avg_line_length": 44.96875,
"alnum_prop": 0.6292564280750521,
"repo_name": "kohlmayer/newtonraphson",
"id": "30dd019fef71d669c55cfe8a4776a2943635f846",
"size": "5756... |
package com.verisign.getdns.asyncwithfuture.test;
import static com.verisign.getdns.test.IGetDNSTestConstants.DOMAIN_NAME;
import static org.junit.Assert.assertEquals;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
import org.junit.Rule;
import org.junit.Test;
import or... | {
"content_hash": "8454d90fa4cbb10c50155e8ae013eedd",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 109,
"avg_line_length": 31.535211267605632,
"alnum_prop": 0.7896382313532827,
"repo_name": "getdnsapi/getdns-java-bindings",
"id": "d1dcc3cbe78f4118aae87a1acab417688fe70236",... |
(function(exports) {
function init() {
addBrowserClasses(document.body);
var doc = document.documentElement;
function getSize() {
return new MM.Point(doc.clientWidth, doc.clientHeight);
}
var parent = document.getElementById("map-main"),
size = get... | {
"content_hash": "eb242d685f90780e31c1c34c28b04007",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 118,
"avg_line_length": 36.258278145695364,
"alnum_prop": 0.5084931506849315,
"repo_name": "mattb/maps.stamen.com",
"id": "7fcd71697fcd51c28cc2e1e69d4802da37bbc6f5",
"size... |
This class inherits from Python StringIO module.
__class DaapStringIO(buffer)__
Converts buffer to Python StringIO buffer.
__DaapStringIO.get_data(self, n[, start=0])__
Read `n` bytes of the StringIO buffer then replace the internal
cursor to the initial position (as it never read something).
You can specify start ... | {
"content_hash": "99f1fa26576f89d5f6b86d0c1dac1874",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 78,
"avg_line_length": 33.256410256410255,
"alnum_prop": 0.7586738627602159,
"repo_name": "j-muller/pydaap",
"id": "c2a7068e0cce9b5451dfcf00095e0d649d7359c1",
"size": "1334... |
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
namespace Sting.Models
{
// You can add profile data for the user by adding more properties to your ApplicationUser class, please visi... | {
"content_hash": "4f9961d88c0428a9e69619db683fc4b6",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 175,
"avg_line_length": 37.06060606060606,
"alnum_prop": 0.7015535568274734,
"repo_name": "theAppleist/Sting",
"id": "cc7e1ad0215b7ec700d662851d0ab6147ce91e71",
"size": "12... |
Passpod is a library that hashes and saves passwords in a safe way.
Although already usable it is still a prototype. Feedback very welcome.
**How currently web platforms save passwords**
| User | Password Hash |
| -------------- | ------------- |
| BieberLover93 | 356a192b79... |
| EnterpriseUser | da4b923... | {
"content_hash": "93860a98b04fc444fa7223b2db145249",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 148,
"avg_line_length": 36.234042553191486,
"alnum_prop": 0.6946564885496184,
"repo_name": "nomoral/passpod",
"id": "8a57ab448e0c4f141ea6c5149628a272c718f698",
"size": "172... |
#include "CollisionConfiguration.h"
#ifndef DISABLE_UNCOMMON
#include "PoolAllocator.h"
#endif
CollisionConfiguration::CollisionConfiguration(btCollisionConfiguration* native)
{
_native = native;
}
CollisionConfiguration::~CollisionConfiguration()
{
this->!CollisionConfiguration();
}
CollisionConf... | {
"content_hash": "e5e584352453a802585d65264b508ffa",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 92,
"avg_line_length": 21.956521739130434,
"alnum_prop": 0.7465346534653465,
"repo_name": "RainsSoft/BulletSharp",
"id": "c5a5458ed192e9db198e4bc49d5e87460c97c53a",
"size":... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Function ierase_all_copy</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../index.html" title="... | {
"content_hash": "f1cf74e38b3919b9fd94b22af2b2e593",
"timestamp": "",
"source": "github",
"line_count": 106,
"max_line_length": 474,
"avg_line_length": 73.41509433962264,
"alnum_prop": 0.6673091750192752,
"repo_name": "hand-iemura/lightpng",
"id": "e79f9b6aaa87e87200eab59cd344a6bd1fc90ee8",
"size":... |
#ifndef __itkMaskNeighborhoodOperatorImageFilter_h
#define __itkMaskNeighborhoodOperatorImageFilter_h
#include "itkNeighborhoodOperatorImageFilter.h"
namespace itk
{
/** \class MaskNeighborhoodOperatorImageFilter
* \brief Applies a single NeighborhoodOperator to an image,
* processing only those pixels that are un... | {
"content_hash": "8b34725ade318faf2df5171890153666",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 128,
"avg_line_length": 41.62359550561798,
"alnum_prop": 0.7419354838709677,
"repo_name": "hinerm/ITK",
"id": "ef05df9319787cf140b9223c80d87bf01dba55b9",
"size": "8184",
... |
#ifndef _MAKESHIFT_MESH_HPP_
#define _MAKESHIFT_MESH_HPP_
#include <vector>
#include <iostream>
#include <glm/glm.hpp>
#include <GL/glew.h>
#include <GL/gl.h>
#include "renderer/graphics/batch.hpp"
/**
@author Mark Asp
@version 0.01
@brief Stores a mesh or collection of vertex, texture, & normal data
... | {
"content_hash": "29faa9f6e473601e1a124d828368f87a",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 75,
"avg_line_length": 17.92452830188679,
"alnum_prop": 0.6578947368421053,
"repo_name": "masp/VoxelTest",
"id": "3e2bdd653ec492a77b5833064278eb89a71d3969",
"size": "950",
... |
(function() {
/** Pop-up fade-in/-out delay */
var FADE_DURATION = 250;
/**
* Load the stylesheet that will pick the correct font for the user's OS
*/
function loadOSStyles() {
var osStyle = document.createElement('link');
osStyle.rel = 'stylesheet';
osStyle.type = 'text/css';
if(navigator.userAgent.i... | {
"content_hash": "19d7da009c8d60d7a4e9254ddd41fded",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 73,
"avg_line_length": 28.303030303030305,
"alnum_prop": 0.6402569593147751,
"repo_name": "nickcanz/revere-extension",
"id": "9470a5416c8b9b8a6df90e6fb9d6f9479028a35d",
"s... |
<?php
App::uses('Validation', 'Utility');
/**
* CustomValidator class
*
* @package Cake.Test.Case.Utility
*/
class CustomValidator {
/**
* Makes sure that a given $email address is valid and unique
*
* @param string $email
* @return boolean
*/
public static function customValidate($check) {
return... | {
"content_hash": "f95baeba89785ff4c38a8a61607c43e1",
"timestamp": "",
"source": "github",
"line_count": 2375,
"max_line_length": 133,
"avg_line_length": 46.298947368421054,
"alnum_prop": 0.6794288832302655,
"repo_name": "lens-n/testing",
"id": "7c325c3332219f2474fca09c6d374dbf5896bfc4",
"size": "11... |
.class public Lo/eN;
.super Ljava/lang/Object;
# interfaces
.implements Landroid/os/Parcelable$Creator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;Landroid/os/Parcelable$Creator<Lcom/google/android/gms/games/internal/player/MostRecentGameInfoEntity;>;"
... | {
"content_hash": "2b9eb0ff9c1a0dac656fb009e52169f8",
"timestamp": "",
"source": "github",
"line_count": 344,
"max_line_length": 207,
"avg_line_length": 22.799418604651162,
"alnum_prop": 0.6763993369883973,
"repo_name": "gelldur/jak_oni_to_robia_prezentacja",
"id": "9ab06b1ef6349bc33d3ae2c820fe0eac187... |
module Infix
class GoogleVideos < Provider
provide_for 'video.google.com'
self.title = 'GoogleVideos'
self.type = "video"
self.pattern = /http:\/\/video.google.com\/(videoplay\?docid|googleplayer.swf\?docid)=(.*)[#|&]/
def provide(matches, options)
id = matches.last.split('&')... | {
"content_hash": "8b86c48071c35d0e04908d5c6d5b9d3f",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 238,
"avg_line_length": 34.19047619047619,
"alnum_prop": 0.5842618384401114,
"repo_name": "christospappas/infix",
"id": "1eefc41ee2a3bb7c5f203a8180cd5f89b1ce189e",
"size": ... |
(function(addon) {
var component;
if (window.UIkit) {
component = addon(UIkit);
}
if (typeof define == "function" && define.amd) {
define("uikit-htmleditor", ["uikit"], function(){
return component || addon(UIkit);
});
}
})(function(UI) {
"use strict";
... | {
"content_hash": "df7235fb7d07dc7fc725cad40c5277bf",
"timestamp": "",
"source": "github",
"line_count": 622,
"max_line_length": 259,
"avg_line_length": 36.836012861736336,
"alnum_prop": 0.46778980446927376,
"repo_name": "LukasChen/LuCabular",
"id": "04cb3d81f516519237d054bc81c4bc661e0bf68a",
"size"... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "8aeef2be4bf17ae4d2d3d54857f3cc9d",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "f3d63d444f9102861f5b81682db52e1b0445bb5e",
"size": "197... |
<?php
namespace PiggyBox\ShopBundle\Form\ChoiceList;
use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityLoaderInterface;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Doctrine\DBAL\Connection;
use Doctrine\ORM\EntityManager;
class CategoryEntityLoader implements EntityLoaderInterface
{
private $em... | {
"content_hash": "053ce40228ac52b2082fd9a69e525c80",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 79,
"avg_line_length": 26.602564102564102,
"alnum_prop": 0.4906024096385542,
"repo_name": "julienbourdeau/PiggyBox",
"id": "bc3a017216d9ab0c96aa175bd8d03316f215c528",
"size... |
package internal
import "github.com/lawrencewoodman/ddataset"
// CountNumRecords counts the number of records in the Dataset and returns
// that if successful, otherwise it returns -1.
func CountNumRecords(d ddataset.Dataset) int64 {
c, err := d.Open()
if err != nil {
return -1
}
defer c.Close()
numRecords := ... | {
"content_hash": "13d8ae19b89611f7e57f2d9e27e37c55",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 74,
"avg_line_length": 20,
"alnum_prop": 0.6904761904761905,
"repo_name": "LawrenceWoodman/ddataset",
"id": "702805a5d0a674504b98dba24b0e9c686ae48979",
"size": "558",
"bi... |
/*
* \license @{
*
* 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, so... | {
"content_hash": "8d50a4472e2f368917167c33f5554be8",
"timestamp": "",
"source": "github",
"line_count": 428,
"max_line_length": 80,
"avg_line_length": 50.427570093457945,
"alnum_prop": 0.5623407311309827,
"repo_name": "Panchatcharam/simple_gmail_api",
"id": "635fc44f718d2ad573cb1dad794498f2ee6a7dd7",... |
package plugins
import (
"fmt"
"regexp"
"strings"
v1 "k8s.io/api/core/v1"
storage "k8s.io/api/storage/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog/v2"
)
const (
// AzureFileDriverName is the name of the CSI driver for Azure File
AzureFileDriverName = "file.csi.azure.com"
// AzureFileInT... | {
"content_hash": "ad77f73aea53cf31f06efc0ffaeadd1e",
"timestamp": "",
"source": "github",
"line_count": 255,
"max_line_length": 137,
"avg_line_length": 34.6078431372549,
"alnum_prop": 0.7457223796033995,
"repo_name": "nckturner/kubernetes",
"id": "0c6b434a9dd79ba7c24a06afa3ebe1214605c1e8",
"size": ... |
using System;
using System.Collections.Generic;
using System.Text;
namespace ZDevTools.ServiceConsole
{
public interface IUtility
{
string ExePath { get; }
}
}
| {
"content_hash": "52fcd01b416609e9e4e42c29bc744ee9",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 34,
"avg_line_length": 16.545454545454547,
"alnum_prop": 0.6923076923076923,
"repo_name": "zhyy2008z/ZDevTools",
"id": "4c391a1ddd803c96121bed8efa594e9f24b2ad0b",
"size": "... |
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("02... | {
"content_hash": "a74c6297723bcafa082b71e100e5d1d6",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.638888888888886,
"alnum_prop": 0.7491240364400841,
"repo_name": "iKostov86/CSharp",
"id": "35e4e648d380552c6cf8cfe595472c716e076c1b",
"size": "143... |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
module Control.Lens.Iso.Generics (Wrapped, wrapped) where
import Control.Lens (Iso, from, iso)
impor... | {
"content_hash": "a502728699bfa3f9f654dc1ac00070bf",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 75,
"avg_line_length": 31.625,
"alnum_prop": 0.6511857707509882,
"repo_name": "sonyandy/wart",
"id": "c3028648170499585c0b1a9c97f34e2d6507cbf1",
"size": "1012",
"binary":... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>itree: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... | {
"content_hash": "cfb9964e4fcbed1a9d596aabc27ff2a4",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 157,
"avg_line_length": 41.14857142857143,
"alnum_prop": 0.5442299680599917,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "a57d06de7f042a01d2923719c94901dcb67f9c53",
... |
//
// BDKViewController.h
// Created by Benjamin Kreeger on 1/25/13.
//
#import <UIKit/UIKit.h>
/** Simple view controller.
*/
@interface BDKViewController : UIViewController
@end
| {
"content_hash": "80141284ac1e0925879bc5a8a993562a",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 47,
"avg_line_length": 15.5,
"alnum_prop": 0.7043010752688172,
"repo_name": "kreeger/BDKActionJackson",
"id": "de6f823874f3a4152ef3744171d526f92a83a5bf",
"size": "186",
"... |
<?php
namespace Omnipay\WechatPay\Message;
use Omnipay\Common\Exception\InvalidRequestException;
class CloseOrderRequest extends BaseAbstractRequest{
protected $interface_url = 'https://api.mch.weixin.qq.com/pay/closeorder';
protected function validateData(){
parent::validateData();
$this... | {
"content_hash": "f7cf9eb767daa7d2fd3f66d19b579dee",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 78,
"avg_line_length": 22.194805194805195,
"alnum_prop": 0.5611468695143359,
"repo_name": "Ccob-x/omnipay-wechatpay",
"id": "47b2f66f056208a1edaf569c811b022515adafd8",
"siz... |
static void form(Document *doc, const char *err=""){
doc->setHtml("html/registration.tpl", "Register");
doc->dict()->SetValueAndShowSection("ERROR", err, "ERROR");
doc->dict()->SetValue("NAME", cgi("name"));
doc->dict()->SetValue("EMAIL", cgi("email"));
}
void Pages::registration(Document *doc){
i... | {
"content_hash": "d233b3fe92d4085583ed59c8f3b5e43a",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 144,
"avg_line_length": 33.092592592592595,
"alnum_prop": 0.5567991046446559,
"repo_name": "SuperStarPL/eqbeats",
"id": "362e77aa60a68efb9843a2e39d2a5d62dcc114aa",
"size": ... |
FreePort
========
Get a free open TCP port that is ready to use.
## Command Line Example:
```bash
# Ask the kernel to give us an open port.
export port=$(freeport)
# Start standalone httpd server for testing
httpd -X -c "Listen $port" &
# Curl local server on the selected port
curl localhost:$port
```
## Golang ex... | {
"content_hash": "5060d090ceb5171259fd0416d3c2ec11",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 131,
"avg_line_length": 20.155172413793103,
"alnum_prop": 0.6928999144568007,
"repo_name": "vlifesystems/rulehunter",
"id": "1665ccf4d4f83fc24eb7cc32dcb44d9943c53bc1",
"siz... |
package input
import (
"bytes"
"encoding/xml"
"fmt"
"io"
"net/http"
"os"
"runtime"
"strings"
"github.com/gregjones/httpcache"
"github.com/gregjones/httpcache/diskcache"
"golang.org/x/text/encoding/charmap"
)
// Project represents the <project> element of pom.xml
type Project struct {
ArtifactID string `... | {
"content_hash": "30be995ba0da5d709c94401d32e1346b",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 106,
"avg_line_length": 22.462809917355372,
"alnum_prop": 0.6622516556291391,
"repo_name": "maksimov/liconv",
"id": "a3e2bb9f69024f4380fdaec793f48d1bda0354aa",
"size": "27... |
<?php
/**
* OUTRAGEbot - PHP 5.3 based IRC bot
*
* Author: David Weston <westie@typefish.co.uk>
*
* Version: 2.0.0-Alpha
* Git commit: 72dcd361ddbd66db711dbc45552ab766bc6bbf84
* Committed at: Wed Aug 24 23:26:52 BST 2011
*
* Licence: http://www.typefish.co.uk/licences/
*/
class WhatPulse exten... | {
"content_hash": "744b2e64328931f6046c26645079dee2",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 353,
"avg_line_length": 29.78181818181818,
"alnum_prop": 0.6645299145299145,
"repo_name": "Zarthus/zcnr-bot",
"id": "0547f07df7a6094c4e1a22d0fe2b38faff4ac316",
"size": "32... |
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.kaaproject.kaa.server.appenders.mongo.config.gen;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class MongoDBCredential extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRec... | {
"content_hash": "821031a860e6318415b47041e061e845",
"timestamp": "",
"source": "github",
"line_count": 196,
"max_line_length": 543,
"avg_line_length": 38.07142857142857,
"alnum_prop": 0.6712677566336103,
"repo_name": "forGGe/kaa",
"id": "82dfc8edb9d6500cfa9ba4b6186cfb6e907ec6a8",
"size": "7462",
... |
<?php
/**
* Service definition for Genomics (v1).
*
* <p>
* An API to store, process, explore, and share DNA sequence reads, reference-
* based alignments, and variant calls.</p>
*
* <p>
* For more information about this service, see the API
* <a href="" target="_blank">Documentation</a>
* </p>
*
* @autho... | {
"content_hash": "9d085b9bc9d7aaf9142d5dcb98599ca6",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 78,
"avg_line_length": 17.976744186046513,
"alnum_prop": 0.6313065976714101,
"repo_name": "Rajagunasekaran/sample",
"id": "3165001f1d5b68ea9d02cd754007392eba71fbc3",
"size"... |
/**
* @file SPHVolume.h
* @author Sebastian Maisch <sebastian.maisch@uni-ulm.de>
* @date 2016.02.09
*
* @brief Defines a volume with spherical harmonics downsampling.
*/
#ifndef SPHVOLUME_H
#define SPHVOLUME_H
#include "main.h"
#include "gfx/glrenderer/GLTexture.h"
namespace cgu {
class Volume;
c... | {
"content_hash": "e9e4f20e9530b0dcef06cfda1631efbd",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 100,
"avg_line_length": 37.59722222222222,
"alnum_prop": 0.6568156630956778,
"repo_name": "dasmysh/OGLFrameworkLib_uulm",
"id": "db80586b60a1eec2a04e3b8e69b1888f20fa7168",
... |
FROM armhf/alpine
RUN apk add --no-cache python && \
python -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip install --upgrade pip setuptools && \
rm -r /root/.cache
RUN apk add --update build-base
RUN apk add --update python-dev
RUN apk add --update bluez
RUN pip install --upgrade pip
RUN ... | {
"content_hash": "4b4dfca176480177722bedb02637da2d",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 63,
"avg_line_length": 23.37037037037037,
"alnum_prop": 0.7099841521394612,
"repo_name": "IDEO-coLAB/vehicle-rec-microservice",
"id": "ba782d053f1681babee7a9e1b57d63c0ee31eb2... |
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:title="Quit" android:id="@+id/quit"></item>
</menu>
| {
"content_hash": "f490e813fbc647cdeef0b0dcb2d6b294",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 61,
"avg_line_length": 22,
"alnum_prop": 0.6647727272727273,
"repo_name": "Vovkasquid/compassApp",
"id": "9918a72f58d45591e0a6e98f9e67804ca64bad42",
"size": "176",
"binary... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.