text stringlengths 2 1.04M | meta dict |
|---|---|
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | {
"content_hash": "091b6992cf4255a3352dba4b32c1a080",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 126,
"avg_line_length": 28.5875,
"alnum_prop": 0.6733712286838653,
"repo_name": "googleads/googleads-java-lib",
"id": "1d66bc8e06d5a01418ee942bc2da089ce74196f3",
"size": "2... |
<?php
/**
* Created by PhpStorm.
* User: gseidel
* Date: 12.08.18
* Time: 19:50
*/
namespace Enhavo\Bundle\TranslationBundle\AutoGenerator\Generator;
use Enhavo\Bundle\RoutingBundle\AutoGenerator\Generator\RouteNameGenerator;
use Enhavo\Bundle\RoutingBundle\Model\RouteInterface;
use Enhavo\Bundle\TranslationBund... | {
"content_hash": "7133f8e7c56e8f995951eafe2fe5050a",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 108,
"avg_line_length": 29,
"alnum_prop": 0.6450304259634888,
"repo_name": "FabianLiebl/enhavo",
"id": "d472b8b1d59d511407010cd4bb922d0e8dcbb14d",
"size": "1972",
"binary... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Faculty extends Model
{
protected $table = 'faculties';
protected $primaryKey = "id";
protected $fillable = [
'user_id',
'teacher_code',
'name',
'dob',
'present_address',
'permanent_a... | {
"content_hash": "a3c14e2ced0d8a0d084274a02755b7ba",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 62,
"avg_line_length": 18.76923076923077,
"alnum_prop": 0.5655737704918032,
"repo_name": "JUBanglaDepartment/stms",
"id": "3d6b18dd53d248baa4c4495f3f40fa7909226197",
"size"... |
package com.jetlag.jcreator.flickr;
import android.content.Context;
import android.util.Log;
import com.googlecode.flickrjandroid.Flickr;
import com.googlecode.flickrjandroid.FlickrException;
import com.googlecode.flickrjandroid.people.User;
import com.googlecode.flickrjandroid.photos.Photo;
import com.googlecode.fli... | {
"content_hash": "71ee4bb4819f30fb6a2c0026c57fb705",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 89,
"avg_line_length": 30.303571428571427,
"alnum_prop": 0.7307012374779022,
"repo_name": "vpmalley/j-create",
"id": "57787278ef9485eaf2e0c09d49d927d244ec3a34",
"size": "16... |
<?php if (false !== $label): ?>
<?php if ($required) { $label_attr['class'] = trim(($label_attr['class'] ?? '').' required'); } ?>
<?php if (!$compound) { $label_attr['for'] = $id; } ?>
<?php if (!$label) { $label = isset($label_format)
? strtr($label_format, ['%name%' => $name, '%id%' => $id])
: $view['form']-... | {
"content_hash": "19d800036cd0070fc1e98acd4e6fd999",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 277,
"avg_line_length": 79.5,
"alnum_prop": 0.5676100628930818,
"repo_name": "Taluu/symfony",
"id": "a17a5ca2ab26f6bf9126f0d73746dffbd49e2976",
"size": "636",
"binary": fa... |
koa middleware for webpack
| {
"content_hash": "16dd01c3783d880c64324913b13f39a8",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 26,
"avg_line_length": 27,
"alnum_prop": 0.8518518518518519,
"repo_name": "frankwallis/koa-webpack",
"id": "b3e135f0f0088b908ef0a50b62cc4c05418ed2ad",
"size": "41",
"binar... |
<?xml version="1.0"?>
<doc>
<assembly>
<name>ICSSoft.STORMNET.Drawing</name>
</assembly>
<members>
<member name="T:ICSSoft.STORMNET.Drawing.IconNotFoundException">
<summary>
картинка не найдена
</summary>
</member>
<member name="... | {
"content_hash": "9671c6dc329d03ae7785508185fef0d6",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 158,
"avg_line_length": 40.50675675675676,
"alnum_prop": 0.5519599666388657,
"repo_name": "Flexberry/FlexberryStudy2015",
"id": "4e3cd764580ffb7bf7ca9190b576cda7a7cdb7f2",
... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly verk... | {
"content_hash": "6c3c034cae493cae7c388836ba1bf1f3",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 106,
"avg_line_length": 43.23684210526316,
"alnum_prop": 0.7662811929397444,
"repo_name": "mastersign/MapMap",
"id": "4119c5da7e13d063689d40c1277cfb52fd255f0f",
"size": "16... |
using System;
using System.Globalization;
using Ploeh.AutoFixture.Kernel;
namespace Ploeh.AutoFixture
{
/// <summary>
/// Creates a strictly increasing sequence of ranged numbers, starting at range minimum.
/// Sequence restarts at range minimum when range maximum is exceeded.
/// </summar... | {
"content_hash": "02f76a74f0128c7c560f0a5af6a678ae",
"timestamp": "",
"source": "github",
"line_count": 192,
"max_line_length": 134,
"avg_line_length": 35.963541666666664,
"alnum_prop": 0.44808110065170165,
"repo_name": "mrinaldi/AutoFixture",
"id": "cb10d5d391de2766ce5a8ae840e7a68dc7442397",
"size... |
class Array
# TODO: probably do not need this anymore
def common_superclass
class_counter = {}
class_counter.default = 0
index = 0
each do |cls|
while (cls != BasicObject) do
class_counter[cls] += 1
cls = cls.superclass
... | {
"content_hash": "2fd743928118b7bc3e4df128c60b3ad9",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 50,
"avg_line_length": 21.12676056338028,
"alnum_prop": 0.458,
"repo_name": "prg-titech/ikra-ruby",
"id": "eb8780012e955abe05b4e3d9bb25b62d11858fd4",
"size": "1500",
"bin... |
#include "UnresolvedNhopsProber.h"
#include "fboss/agent/NexthopToRouteCount.h"
#include "fboss/agent/state/SwitchState.h"
#include "fboss/agent/state/Interface.h"
#include "fboss/agent/state/Vlan.h"
#include "fboss/agent/state/VlanMap.h"
#include "fboss/agent/state/ArpTable.h"
#include "fboss/agent/state/NdpTable.h"
... | {
"content_hash": "556aefb6936296476814819ae9046d8c",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 74,
"avg_line_length": 44.2,
"alnum_prop": 0.6628959276018099,
"repo_name": "peterlei/fboss",
"id": "3624501b8f09800ec90fa5a98a8a959cc5f80f09",
"size": "2967",
"binary": ... |
require 'spec_helper'
require 'vagrant-libvirt'
require 'vagrant-libvirt/plugin'
describe VagrantPlugins::ProviderLibvirt::Plugin do
subject { described_class.new }
include_context 'unit'
describe '#action_hook remove_libvirt_image' do
before do
# set up some dummy boxes
box_path = File.join(... | {
"content_hash": "e10a2e9b69f21c5ab1b2369a51985fbc",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 128,
"avg_line_length": 31.9,
"alnum_prop": 0.6269592476489029,
"repo_name": "electrofelix/vagrant-libvirt",
"id": "463ec4132395775ce56162dc862fb67accf69d38",
"size": "1307... |
@class NSArray, NSString;
@interface IDEMediaType : NSObject <NSCopying>
{
}
+ (id)sharedInstance;
@property(readonly) NSString *displayName;
@property(readonly) Class mediaResourceClass;
@property(readonly) NSArray *pasteboardTypes;
@property(readonly) NSString *pasteboardType;
- (BOOL)isKindOfMediaType:(id)arg1;
- ... | {
"content_hash": "d0e64146fb2b201d16e6a0f511563abc",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 46,
"avg_line_length": 24.157894736842106,
"alnum_prop": 0.7603485838779956,
"repo_name": "kolinkrewinkel/Multiplex",
"id": "fbd0c6f0a97da22398d7c4acda74ba9b5806ab5c",
"siz... |
class DmOfficer
include DataMapper::Resource
property :id, Serial
property :name, String
property :position_id, Integer
storage_names[:default] = 'officers'
belongs_to :position, :model => 'DmPosition', :child_key => [:position_id], :required => false
has n, :groups, :model => 'DmGroup', :through => Res... | {
"content_hash": "d2a080ed4dacb8420511cb4c215e96e4",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 96,
"avg_line_length": 26.727272727272727,
"alnum_prop": 0.6989795918367347,
"repo_name": "markus/scaffolding_extensions",
"id": "ce467c0c2395822564138e2231f154943568ab88",
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_connect_socket_system_73b.cpp
Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml
Template File: sources-sink-73b.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read dat... | {
"content_hash": "8186ae44dd1b86114ea15ec7ab271093",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 107,
"avg_line_length": 24.48611111111111,
"alnum_prop": 0.6585365853658537,
"repo_name": "maurer/tiamat",
"id": "97a1a2ca8e6f6452b5d21a5b63be49318bffe571",
"size": "1763",... |
import logging
from typing import Dict
from django.contrib.auth import get_user_model
from django.contrib.auth.password_validation import validate_password
from django.core import exceptions
from django.core.exceptions import ValidationError
from django.core.management.base import BaseCommand, CommandError
from poly... | {
"content_hash": "6aca9748b8e4b5acdf47a62435a1633c",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 98,
"avg_line_length": 34.48951048951049,
"alnum_prop": 0.58779399837794,
"repo_name": "polyaxon/polyaxon",
"id": "aa44cea184e0cf00b47c24ca6daf08d97909ca69",
"size": "5537... |
/*** COMMENTS. ***/
#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "specialize.h"
#include "softfloat.h"
/*----------------------------------------------------------------------------
| Floating-point rounding mode, extended double-precision rounding precision,
| and exception flags.
*----... | {
"content_hash": "745dd92877a33d06555c74fec131258c",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 79,
"avg_line_length": 32.1578947368421,
"alnum_prop": 0.5662847790507365,
"repo_name": "dededong/goblin-core",
"id": "cd9b04d4b015a9b75518bc7a0b47d428d0e6590c",
"size": "6... |
package com.microsoft.azure.management.cosmosdb.v2019_08_01;
import java.util.Map;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
/**
* Parameters for patching Azure Cosmos DB database account properties.
*/
@JsonFlatten
public class ... | {
"content_hash": "1ea99d7c15b793665f913b89e60aed01",
"timestamp": "",
"source": "github",
"line_count": 362,
"max_line_length": 273,
"avg_line_length": 34.853591160220994,
"alnum_prop": 0.7031782515653483,
"repo_name": "navalev/azure-sdk-for-java",
"id": "c05d2b5eb98675a29e8cb4dc3bdd34e86b96edae",
... |
namespace AngleSharp
{
using System.Collections.Generic;
using System.Threading.Tasks;
/// <summary>
/// Simple wrapper for static methods of Task, which are missing in older
/// versions of the .NET-Framework.
/// </summary>
static class TaskEx
{
/// <summary>
/// Wrap... | {
"content_hash": "479185cca9543ada22dace400d7f6c63",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 78,
"avg_line_length": 30.333333333333332,
"alnum_prop": 0.5680473372781065,
"repo_name": "Livven/AngleSharp",
"id": "d6a4e3ba619d943da9d658fdfbd191bde5797a6a",
"size": "11... |
package org.apache.flink.runtime.rest.handler.cluster;
import org.apache.flink.api.common.time.Time;
import org.apache.flink.runtime.rest.handler.AbstractRestHandler;
import org.apache.flink.runtime.rest.handler.HandlerRequest;
import org.apache.flink.runtime.rest.messages.DashboardConfiguration;
import org.apache.f... | {
"content_hash": "04165e2481ed12f5c928d3aa593a508a",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 173,
"avg_line_length": 40.65909090909091,
"alnum_prop": 0.840134153158189,
"repo_name": "sunjincheng121/flink",
"id": "312dc03e8c4923ed8f3b56c4f2282de8560017cf",
"size": "... |
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel='shortcut icon' href='/img/favicon.ico' type='imag... | {
"content_hash": "28cf838041fac9ad2684179f83aaeff7",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 608,
"avg_line_length": 39.027272727272724,
"alnum_prop": 0.6540880503144654,
"repo_name": "ghostbar/ghostbar.co",
"id": "9505b7861cbd9bdcdfc243c0068c4eadc6647550",
"size"... |
using UnityEngine;
using System;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#if UNITY_WP8 && !UNITY_EDITOR
using SoomlaWpCore.util;
using SoomlaWpCore.events;
#endif
namespace Soomla {
/// <summary>
/// This class provides functions for event handli... | {
"content_hash": "cb0853eb0de759a97acca3c9e000ac8c",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 131,
"avg_line_length": 34.234848484848484,
"alnum_prop": 0.7145386147377738,
"repo_name": "Chanisco/SoomlaHandler",
"id": "8b40b307fe181152f53ebbc4867e57bf7fb7e560",
"siz... |
const program = require('commander')
program
.version('0.1.0')
.command('init [name]', 'initialize')
.command('dev [name]', 'dev')
.command('build [name]', 'build')
.parse(process.argv)
| {
"content_hash": "bc6fa91875b46b959da8e0524451190c",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 37,
"avg_line_length": 20.88888888888889,
"alnum_prop": 0.6595744680851063,
"repo_name": "Terry-Su/MVVC",
"id": "7fabbf6ae647ee541a389628ace5e2947fabf9c2",
"size": "209",
... |
function CouetteFlow( varargin )
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
close all; % closes all figures
addpath('../Functions');
h=4; % height of the channel
U=10; % velocity of the moving surface
dPdx=0; % pressure gradient in x direction
mu=0.001; % dynamic viscosity
% funct... | {
"content_hash": "3944964844b94bc073327c4ec2a38fd7",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 124,
"avg_line_length": 38.785714285714285,
"alnum_prop": 0.7027624309392265,
"repo_name": "KaiSchu/FVTool",
"id": "cedc765b176b7779cd80e84949243631b86c7656",
"size": "2715... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _09_Longer_Line
{
class Program
{
static void Main(string[] args)
{
//40 out of 100, logic is correct though!
decimal xOne = decimal... | {
"content_hash": "327e431bd3560f48c7b3072e3b635389",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 136,
"avg_line_length": 34.390625,
"alnum_prop": 0.5252158109950023,
"repo_name": "Bullsized/Assignments-Fundamentals-Normal",
"id": "e77a6eb4f7bd590942b1422379e2a5b791852ec4... |
package com.hazelcast.test.starter;
import com.hazelcast.test.starter.HazelcastProxyFactory.ProxyPolicy;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Annotation for... | {
"content_hash": "fc7e9b700208e7f73b47957cbb108abd",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 77,
"avg_line_length": 30.125,
"alnum_prop": 0.7203319502074689,
"repo_name": "dsukhoroslov/hazelcast",
"id": "1e2926ce5210bb11766549a1dbce0eac97983a53",
"size": "1830",
... |
package org.apache.lucene.xmlparser;
import java.io.*;
import junit.framework.TestCase;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.IndexWri... | {
"content_hash": "321184c65fef1ed0986f5ec2ba35b3f0",
"timestamp": "",
"source": "github",
"line_count": 202,
"max_line_length": 123,
"avg_line_length": 29.10891089108911,
"alnum_prop": 0.7183673469387755,
"repo_name": "Photobucket/Solbase-Lucene",
"id": "88dc76217a8ea4264ae5acece8c82f12f6052e32",
"... |
/*
* DBListRenderer.java
*
* Created on 26 May 2007, 02:07
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package generator.gui.db;
import generator.misc.Constants;
import generator.misc.DBDriverInfo;
import generator.misc.Utils;
import java.awt.Componen... | {
"content_hash": "9f63338eeacee82c8709355507ae61b2",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 76,
"avg_line_length": 28.205479452054796,
"alnum_prop": 0.6304031083050025,
"repo_name": "tchico/dgMaster-trunk",
"id": "6caf925d10d8aa51b91bf2027068b4f6befcfa93",
"size":... |
<?php
namespace test\WArslett\TweetSync\Remote;
use Mockery as m;
use WArslett\TweetSync\Remote\TweetSync;
class TweetSyncTest extends \PHPUnit_Framework_TestCase
{
public function testSyncAllForUser_CallsFindByTwitterUserOnce()
{
$userObj = new \stdClass();
$userObj->screen_name = 'foo';
... | {
"content_hash": "8f4d77c599c9c25eef8853d841ee0c1c",
"timestamp": "",
"source": "github",
"line_count": 540,
"max_line_length": 106,
"avg_line_length": 37.80740740740741,
"alnum_prop": 0.6101097178683386,
"repo_name": "warslett/TweetSync",
"id": "879681d9c60f99215f2c1e154a349d45bc75cd10",
"size": "... |
/*
** This file contains compatibilty wrapper header for things that used
** to be generated from mach/sync.defs. Now that code is split into two
** different interface generator files, so include the two resulting
** headers here.
*/
#include <mach/semaphore.h>
#include <mach/lock_set.h>
| {
"content_hash": "20f1491374cf5516551c842b0c99a793",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 72,
"avg_line_length": 32.44444444444444,
"alnum_prop": 0.75,
"repo_name": "jmpews/HookZz",
"id": "b3057205a092aae2c08d83e14859054895065b09",
"size": "1621",
"binary": fal... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-template: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... | {
"content_hash": "bd829e03865fb12c9932cfc5c446bddf",
"timestamp": "",
"source": "github",
"line_count": 188,
"max_line_length": 159,
"avg_line_length": 43.22872340425532,
"alnum_prop": 0.568598498831057,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "d01d65b9fec6dce481eba026ba048e34ccc276cd",
... |
Rickshaw.namespace('Rickshaw.Series.FixedDuration');
Rickshaw.Series.FixedDuration = Rickshaw.Class.create(Rickshaw.Series, {
initialize: function (data, palette, options) {
options = options || {};
if (typeof(options.timeInterval) === 'undefined') {
throw new Error('FixedDuration series requires timeInterv... | {
"content_hash": "741ec218bf275a83d059211e60235abc",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 120,
"avg_line_length": 26.13095238095238,
"alnum_prop": 0.6492027334851936,
"repo_name": "benhuang21828/System-perfomance-graph",
"id": "01fd9ed38e147807d875a202968153bf009c... |
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<display-name>appfuse</d... | {
"content_hash": "91b7f9acfa9008636203b80f6db4e556",
"timestamp": "",
"source": "github",
"line_count": 243,
"max_line_length": 119,
"avg_line_length": 37.04526748971193,
"alnum_prop": 0.6325261053099311,
"repo_name": "hungcuongbsm/spdv",
"id": "7ea4759aa44e92d466b6c867cda067ae3db077d3",
"size": "9... |
package com.facebook.buck.util.network;
public class HttpResponse {
private final String responseBody;
public HttpResponse(String response) {
this.responseBody = response;
}
public String getResponseBody() {
return responseBody;
}
}
| {
"content_hash": "021f00ced2deccf3090258f558cafc10",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 40,
"avg_line_length": 16.0625,
"alnum_prop": 0.7276264591439688,
"repo_name": "kageiit/buck",
"id": "6684607929ed13619f69cd67fe2883096e4941c3",
"size": "873",
"binary": ... |
import unittest
from telemetry.user_story import user_story_filter
from telemetry.page import page
from telemetry.page import page_set
class MockUrlFilterOptions(object):
def __init__(self, page_filter_include, page_filter_exclude):
self.page_filter = page_filter_include
self.page_filter_exclude = page_fil... | {
"content_hash": "6e3f6d98be5a97652431b5f4071481aa",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 75,
"avg_line_length": 50.362637362637365,
"alnum_prop": 0.7636919048658084,
"repo_name": "dushu1203/chromium.src",
"id": "8445e70dcc5a06cad7731f477a8f0e0e3fc44290",
"size"... |
SocialStream.setup do |config|
# List the models that are social entities. These will have ties between them.
# Remember you must add an "actor_id" foreign key column to your migration!
#
# config.subjects = [:user, :group ]
# Include devise modules in User. See devise documentation for details.
# Others a... | {
"content_hash": "e3a647c6989704b69a12e0d468e181ec",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 87,
"avg_line_length": 41.857142857142854,
"alnum_prop": 0.6746302616609784,
"repo_name": "Marisayem/social_stream-base",
"id": "8975eeac97a78e2afab28071576400b2b2f0c96e",
... |
.. _gs_clustermesh_services:
**********************************
Load-balancing & Service Discovery
**********************************
This tutorial will guide you to perform load-balancing and service
discovery across multiple Kubernetes clusters when using Cilium.
Prerequisites
#############
You need to have a fun... | {
"content_hash": "15a72ee0ab05bc5b0b43285eec4f51c9",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 121,
"avg_line_length": 32.282051282051285,
"alnum_prop": 0.6922160444797458,
"repo_name": "tklauser/cilium",
"id": "3b43906f46a3c3b619ae3cd7a867d10412d38c74",
"size": "251... |
clean:
find content -name *~ -delete
rm -rf ../sidesaddle-pages/*
build: clean
python run.py build content/
serve: build
python run.py serve content/
| {
"content_hash": "c0b32320a433796254045ab23cb24686",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 30,
"avg_line_length": 17.333333333333332,
"alnum_prop": 0.7115384615384616,
"repo_name": "mirisuzanne/sidesaddle",
"id": "9097d14044453ce962624cf171e1f5c8eaa27c76",
"size":... |
import global from 'global';
import hasDependency from '../hasDependency';
import configure from '../configure';
import { Loader } from '../Loader';
import { StoryshotsOptions } from '../../api/StoryshotsOptions';
function mockVueToIncludeCompiler() {
jest.mock('vue', () => jest.requireActual('vue/dist/vue.common.js... | {
"content_hash": "ff396a0a9c96b6d44191c1543ecfbc42",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 96,
"avg_line_length": 26.13157894736842,
"alnum_prop": 0.6888217522658611,
"repo_name": "kadirahq/react-storybook",
"id": "4ab5fad6fa365de75a10047e415ee6f3c42f27a8",
"size... |
namespace SharpZendeskApi
{
using SharpZendeskApi.Models;
public interface IZendeskSerializer
{
#region Public Properties
#endregion
#region Public Methods and Operators
string Serialize(TrackableZendeskThingBase zendeskThing);
#endregion
}
} | {
"content_hash": "307b4ed0b49dfe7cde525618240745cb",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 65,
"avg_line_length": 17.88235294117647,
"alnum_prop": 0.6776315789473685,
"repo_name": "ghostsquad/SharpZendeskApi",
"id": "b08dd684aa7cd7e7bd867902bd31080f04acef6b",
"si... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Sep 05 03:08:39 MST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ManagementOperationsService... | {
"content_hash": "95b6d7060a275bc16476771348e3c89e",
"timestamp": "",
"source": "github",
"line_count": 237,
"max_line_length": 391,
"avg_line_length": 40.9451476793249,
"alnum_prop": 0.6586974443528442,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "88bfa46350bd3d77db9e968f611488d57daa7... |
<?xml version="1.0" encoding="utf-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0... | {
"content_hash": "e7cf99e793b606e16bf95a89cffdfb23",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 130,
"avg_line_length": 62.729729729729726,
"alnum_prop": 0.7630331753554502,
"repo_name": "jboss-switchyard/learning",
"id": "0a0641789344fd7c6afe204bf3f33379c87fb01e",
"s... |
package org.apache.flink.table.planner.delegation.hive.copy;
import org.apache.flink.table.planner.delegation.hive.HiveParserIN;
import org.apache.flink.table.planner.delegation.hive.parse.HiveASTParser;
import org.apache.calcite.rel.type.RelDataType;
import org.apache.calcite.sql.SqlAggFunction;
import org.apache.... | {
"content_hash": "bc0906fe185831286490a6931a2c66c6",
"timestamp": "",
"source": "github",
"line_count": 494,
"max_line_length": 100,
"avg_line_length": 43.19028340080972,
"alnum_prop": 0.5553055868016498,
"repo_name": "tillrohrmann/flink",
"id": "621729b307d0039b7031a0dd4f975f008797e51a",
"size": "... |
// Copyright 2010-2014 Google
// 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 wri... | {
"content_hash": "7349da41c7307f613f45091207007f85",
"timestamp": "",
"source": "github",
"line_count": 1557,
"max_line_length": 86,
"avg_line_length": 36.238921001926784,
"alnum_prop": 0.6607826456826882,
"repo_name": "WendellDuncan/or-tools",
"id": "c235f4502602741c8f3fc5c2ae451bfc8e47de88",
"siz... |
<?php
/**
* Created by PhpStorm.
* User: Gumacs
* Date: 2016-11-09
* Time: 08:32 PM
*/
namespace Tests\Unit\Rules\Validators;
use Processor\DataProcessor;
use Processor\Exceptions\FailedProcessingException;
use Processor\Rules\Abstraction\Errors;
use Processor\Rules\Abstraction\RuleSettings;
cl... | {
"content_hash": "6f9908722a7667f8de19a584ee20d9e9",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 98,
"avg_line_length": 29.327272727272728,
"alnum_prop": 0.6106633601983881,
"repo_name": "gumacs92/dataprocessor",
"id": "7d9cbcb241deb17a6a08583a111152460c25c5f2",
"size"... |
package com.by_syk.lib.nanoiconpack;
import android.app.SearchManager;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7... | {
"content_hash": "fddb884076ce06a94232735c48ea534c",
"timestamp": "",
"source": "github",
"line_count": 196,
"max_line_length": 100,
"avg_line_length": 32.53061224489796,
"alnum_prop": 0.6137076537013801,
"repo_name": "by-syk/NanoIconPack",
"id": "38e2b52d3e0625a364fa65628775ad5221586edc",
"size": ... |
using ::enquery::Buffer;
int main(int argc, char* argv[]) {
// Test empty buffer has size of zero.
Buffer b1;
ASSERT_EQUALS(b1.Size(), 0);
// Test construction from string. Size should include NULL.
const std::string kTestStr1 = "test1";
Buffer b2(kTestStr1);
ASSERT_EQUALS(b2.Size(), kTestStr1.size() + ... | {
"content_hash": "15f7f346f22c9a61453387c3223485fb",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 61,
"avg_line_length": 23.714285714285715,
"alnum_prop": 0.6686746987951807,
"repo_name": "enquery/enquery",
"id": "3296cf2ec0aaf3e9532a48256e2b4319f9a286a4",
"size": "1388... |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>DbEnv... | {
"content_hash": "d4858fc815ef25692b053b51de64bd4d",
"timestamp": "",
"source": "github",
"line_count": 225,
"max_line_length": 157,
"avg_line_length": 42.45333333333333,
"alnum_prop": 0.4798994974874372,
"repo_name": "racker/omnibus",
"id": "0d36429862d430429717abd523e110c3567dee1e",
"size": "9564... |
namespace {
const int kBufferSize = 1024;
}
namespace content {
MockURLRequestDelegate::MockURLRequestDelegate()
: io_buffer_(new net::IOBuffer(kBufferSize)) {
}
MockURLRequestDelegate::~MockURLRequestDelegate() {
}
void MockURLRequestDelegate::OnResponseStarted(net::URLRequest* request) {
if (request->status... | {
"content_hash": "f57b22ad5a788919307525faa0828625",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 74,
"avg_line_length": 23.56451612903226,
"alnum_prop": 0.6358658453114305,
"repo_name": "highweb-project/highweb-webcl-html5spec",
"id": "79333b740e51e7e30c2b3dd9e5ebda15534... |
package org.apache.calcite.avatica;
import java.io.InputStream;
import java.io.Reader;
import java.sql.NClob;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
import java.util.Properties;
import java.util.TimeZone;
/**
* Implementation of {@link Avatica... | {
"content_hash": "cae18367f808994bd4ec3671f18c03fe",
"timestamp": "",
"source": "github",
"line_count": 241,
"max_line_length": 93,
"avg_line_length": 29.896265560165975,
"alnum_prop": 0.7049271339347675,
"repo_name": "sreev/incubator-calcite",
"id": "2edf515f0a500acabc27179587678215d37118ee",
"siz... |
package org.xcolab.util.enums.promotion;
public enum ContestPhasePromoteType {
DEFAULT(-1, "DEFAULT", "Default autopromote used"),
NULL(0, "", "No autopromote specified"),
PROMOTE(1, "PROMOTE", "Proposals in this phase will automatically promoted to the next contest phase"),
PROMOTE_JUDGED(2, "PROMOTE_... | {
"content_hash": "d08f7eb4f5165860f3c7c1919df6e721",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 127,
"avg_line_length": 33.98039215686274,
"alnum_prop": 0.6468551644547028,
"repo_name": "CCI-MIT/XCoLab",
"id": "9a0539b2989f07e8cb9bf96e7d5566a9a1182d69",
"size": "1733"... |
using System.Collections.Generic;
using WebsitePanel.WebDavPortal.Models.Common;
namespace WebsitePanel.WebDavPortal.Models.FileSystem
{
public class DeleteFilesModel : AjaxModel
{
public DeleteFilesModel()
{
DeletedFiles = new List<string>();
}
public ... | {
"content_hash": "66f14407d5d63c9aad3017d78a3a4b6d",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 54,
"avg_line_length": 24.6,
"alnum_prop": 0.6395663956639567,
"repo_name": "titan68/Websitepanel",
"id": "8908f86f3da1bf5ff01456ebdffe64a49c0b7025",
"size": "371",
"bina... |
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net"
"net/http"
"net/http/httptest"
"os"
"strings"
"time"
"github.com/docker/docker/pkg/integration/checker"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/docker/runconfig"
"github.com/docker/engine-api/types"
"github.com/docker/engin... | {
"content_hash": "c86fc5bbe299c83430578240b351ba32",
"timestamp": "",
"source": "github",
"line_count": 1548,
"max_line_length": 168,
"avg_line_length": 40.01744186046512,
"alnum_prop": 0.6931893392738955,
"repo_name": "14rcole/docker",
"id": "9d76ff43c931bd4a34fb46d1b6205936cf5b3be9",
"size": "619... |
var path = require('path');
// Settings
var config = {
'port': process.env.PORT || 80,
'dev': process.env.DEV || false,
// GitHub deployment
'github': {
script: '/utils/update.sh',
path: path.join('/', process.env.G_PATH),
secret: process.env.G_SECRET
},
// Web paths (from root)
'web':... | {
"content_hash": "42ca190689342d5dcf93d04f60cbed47",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 72,
"avg_line_length": 22.48076923076923,
"alnum_prop": 0.562874251497006,
"repo_name": "Alex4913/node-website",
"id": "a3f8a5d4a926bc341cde20f5c97b588cc53063fe",
"size": "... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright © Microsoft Open Technologies, Inc.
All Rights Reserved
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.ap... | {
"content_hash": "80eb7e9363eb22d5ddeae52f0287e63b",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 74,
"avg_line_length": 31.605263157894736,
"alnum_prop": 0.6927560366361366,
"repo_name": "0359xiaodong/Office-365-SDK-for-Android",
"id": "a528a2a41639b6eb9902ec3530f399fae1... |
<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" cont... | {
"content_hash": "064eafc6234687db423873f1fb2c5d78",
"timestamp": "",
"source": "github",
"line_count": 125,
"max_line_length": 264,
"avg_line_length": 58.184,
"alnum_prop": 0.6749621889179156,
"repo_name": "Infineon/mtb-pdl-cat1",
"id": "9ec1b4cab4648a95763756f7a2dee5c29349f437",
"size": "7273",
... |
import sys
# Need different unic implementations for different Pythons because:
# 1) Importing unicodedata module on Jython takes a very long time, and doesn't
# seem to be necessary as Java probably already handles normalization.
# Furthermore, Jython on Java 1.5 doesn't even have unicodedata.normalize.
# 2) IronPyt... | {
"content_hash": "2599b26e501762cd39e1ec60a794ca33",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 80,
"avg_line_length": 31.75,
"alnum_prop": 0.6561679790026247,
"repo_name": "Senseg/robotframework",
"id": "dbf240a7f89cadc8452b360e7c1c2d1aaa21d2cb",
"size": "2511",
"b... |
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$textHelper = Loader::helper("text");
// now that we're in the specialized content file for this block type,
// we'll include this block type's class, and pass the block to it, and get
// the content
if (count($cArray) > 0) {
?>
<div class="news-block"... | {
"content_hash": "a67b5b360ffa9bbeee0bfed2ce645a81",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 135,
"avg_line_length": 41.669642857142854,
"alnum_prop": 0.38461538461538464,
"repo_name": "kevinwwilson/schoolnews",
"id": "1a4834af054cace9602d66e4cde7ab9281ad6e1d",
"s... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('types', function (Blueprint $table) {
$table... | {
"content_hash": "5107853379d870a8c25533ed034ca5ca",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 61,
"avg_line_length": 22.837209302325583,
"alnum_prop": 0.48676171079429736,
"repo_name": "Meepnix/libreBudgetSnapShot",
"id": "3b61ad178f046c404baeada2af097673e45371f2",
... |
Reimplementation of [Google's Wide & Deep Network](https://arxiv.org/abs/1606.07792) in Keras
Based on a [TF Tutorial](https://www.tensorflow.org/tutorials/wide_and_deep/) and [Liu Sida's Blog Post](https://liusida.github.io/2016/10/31/translate-from-tf-2-keras/).
work in progress
| {
"content_hash": "c238f58874fea17e08d9124d28155d88",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 170,
"avg_line_length": 57.6,
"alnum_prop": 0.75,
"repo_name": "jorahn/keras-wide-n-deep",
"id": "fe0f40986f670c112dbf32b38b5e1f190c6f3cf9",
"size": "308",
"binary": false... |
typedef struct ReadBuffer_t
{
bool isFull;
bool waitUntilNextMessage;
bool previousCharWasCR;
uint8_t startIdx;
uint8_t endIdx;
Message buffer[UART_READ_BUFFER_MAX_MESSAGES_LEN];
} ReadBuffer;
typedef struct WriteBuffer_t
{
bool isEmpty;
uint16_t startIdx;
uint16_t endIdx;
uint8... | {
"content_hash": "21fdcbfa0b8cf83b509e7920430ddcd4",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 64,
"avg_line_length": 23.833333333333332,
"alnum_prop": 0.7538461538461538,
"repo_name": "usaguerrilla/hab",
"id": "15b7ab784bbea3a13c9dff5a53836ad10611aaad",
"size": "143... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { EmployeeListItem } from 'client';
import { SubAccountForm } from '../form/form.component';
@Component({
selector: 'sub-account-add',
template: require('./add.template.html'),
s... | {
"content_hash": "354b84c81a4e613380f0434c52f7ee68",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 73,
"avg_line_length": 24.70909090909091,
"alnum_prop": 0.6291390728476821,
"repo_name": "thzhishu/angular2-webpack-starter-master-h5",
"id": "454db4afff41d64c7212b8eca372937... |
require 'spec_helper'
describe GroupMilestone do
let(:group) { create(:group) }
let(:project) { create(:project, group: group) }
let(:project_milestone) do
create(:milestone, title: "Milestone v1.2", project: project)
end
describe '.build' do
it 'returns milestone with group assigned' do
miles... | {
"content_hash": "eafb02c99a2ce5e2c379c1d0241271c4",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 78,
"avg_line_length": 27.963636363636365,
"alnum_prop": 0.6300390117035111,
"repo_name": "iiet/iiet-git",
"id": "01856870fe046a8de315e19399c794157e53fc7c",
"size": "1569",... |
<!-- Begin Direction Details-->
<section id="direction-details" class="direction-details">
<div class="content-wrapper">
<section class="image-section standart-height" title="By Alurín (Own work) [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons" style="background-image: ... | {
"content_hash": "fed48e5cec11279902318e1d0d908da6",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 280,
"avg_line_length": 57.41860465116279,
"alnum_prop": 0.47671121911705144,
"repo_name": "GDGSalamanca/design-tech2014",
"id": "cfe4c0ce45dc3ad3b3d88dd4bb6b20c61a268d58",
... |
goog.provide('ol.reproj.Tile');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('goog.events');
goog.require('goog.events.EventType');
goog.require('goog.math');
goog.require('goog.object');
goog.require('ol.Tile');
goog.require('ol.TileState');
goog.require('ol.extent');
goog.require('ol.proj')... | {
"content_hash": "876b0447f109e491b4d1a56d849127b1",
"timestamp": "",
"source": "github",
"line_count": 335,
"max_line_length": 79,
"avg_line_length": 28.86268656716418,
"alnum_prop": 0.6444306546695625,
"repo_name": "klokantech/ol3raster",
"id": "fb1070b7eabb11f96c4891417864fc4cb0dc4903",
"size": ... |
package android.taobao.atlas.runtime;
import android.app.Activity;
import android.app.Application;
import android.app.Dialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.taobao.atlas.R;
import android.taobao... | {
"content_hash": "4de7fde66546f220ce93d060b2c63fdb",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 176,
"avg_line_length": 31.278260869565216,
"alnum_prop": 0.6783430636641646,
"repo_name": "alibaba/atlas",
"id": "a2addb96202c1b923705eed4d2346b2a80f4b7b0",
"size": "1519... |
//
// The MIT License(MIT)
//
// Copyright(c) 2015 Hans Wolff
//
// 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 the rights
// to use, co... | {
"content_hash": "18e0468f8da79739a4007bf12e49553a",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 94,
"avg_line_length": 29.930232558139537,
"alnum_prop": 0.7233877233877234,
"repo_name": "hanswolff/fido-u2f-net",
"id": "de46902598d5e8b3ffdb58bd022cae1eeafa87f4",
"size"... |
<style>
nav-bar {
position: absolute;
height: 160px;
width: 100%;
bottom: 0;
background-color: rgba(0, 0, 0, 0.3);
color: white;
transition: 1s;
align-items: flex-start;
justify-content: space-around;
display: flex;
... | {
"content_hash": "49d0fff0c5779fffc2c475f329d9b075",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 81,
"avg_line_length": 22.6875,
"alnum_prop": 0.49586776859504134,
"repo_name": "Hersir88/Babylon.js",
"id": "2a53ca3d8c3161a41f382cdda80c219f6b368564",
"size": "2541",
... |
package net.lingala.zip4j.crypto.PBKDF2;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
/*
* Source referred from Matthias Gartner's PKCS#5 implement... | {
"content_hash": "c46c56831b252ae734ff4c176901010b",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 67,
"avg_line_length": 21.676470588235293,
"alnum_prop": 0.5481682496607869,
"repo_name": "blinkboxbooks/android-ePub-Library",
"id": "8b67715ff0f766b0f1e1766b8b3b18085deb7b... |
* Use PostCSS 5.0 API.
* Add `unknown` option.
## 0.3
* Allow to use variables in variables values.
* Accept function in `variables` option.
* Support PostCSS 4.1 API.
* Fix falling on non-string values in AST (by Anton Telesh).
## 0.2.4
* Fix simple syntax variables in at-rule parameters.
## 0.2.3
* Fix extra space... | {
"content_hash": "2f090377e724c121a16a0472d2522152",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 60,
"avg_line_length": 22.357142857142858,
"alnum_prop": 0.6996805111821086,
"repo_name": "bendtherules/postcss-simple-vars",
"id": "d4f7c61fda554587f3bca2f81ae291f91c5cfd0c"... |
#include <chrono>
#include <fstream>
#include <thread>
#include "Window/Window.hpp"
#include "Math/Math.hpp"
#include "Graphics/BufferManager.hpp"
#include "Graphics/Program.hpp"
#include "Graphics/Shader.hpp"
#include "Graphics/Uniform.hpp"
#define INVERT_MOUSE_Y
using namespace dbr::eng;
int main(int argc, char**... | {
"content_hash": "60997cbc4a67a429fd8bf7dc50613e1f",
"timestamp": "",
"source": "github",
"line_count": 361,
"max_line_length": 128,
"avg_line_length": 28.437673130193907,
"alnum_prop": 0.5249366842002727,
"repo_name": "dabbertorres/WindowingOpenGL",
"id": "e85ca32f328cb1cf93964308aa71ba620e4a7a88",
... |
namespace v8 {
namespace internal {
class AstType;
const int kMaxKeyedPolymorphism = 4;
class ICUtility : public AllStatic {
public:
// Clear the inline cache to initial state.
static void Clear(Isolate* isolate, Address address, Address constant_pool);
};
class BinaryOpICState final BASE_EMBEDDED {
public:... | {
"content_hash": "ad6ff4af7e3adcb8bc7911671a4d0a80",
"timestamp": "",
"source": "github",
"line_count": 178,
"max_line_length": 80,
"avg_line_length": 30.629213483146067,
"alnum_prop": 0.6467351430667645,
"repo_name": "hoho/dosido",
"id": "16651c562378094ed6e1ce5220e41795fc5ece66",
"size": "5732",
... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----------------------------------------... | {
"content_hash": "ca5f8437fc333f90e5144dfe3ca0da97",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 81,
"avg_line_length": 26.705882352941178,
"alnum_prop": 0.42951541850220265,
"repo_name": "AdrianApostolov/TelerikAcademy",
"id": "2e682ed5484e0ee58fec7ab56b63590c15bf5c89",... |
SpecBegin(Fair)
afterEach(^{
[OHHTTPStubs removeAllStubs];
});
it(@"initialize", ^{
Fair *fair = [Fair modelWithJSON:@{ @"id" : @"fair-id" }];
expect(fair.fairID).to.equal(@"fair-id");
expect(fair.organizer).to.beNil();
expect(fair.networkModel).to.beKindOf([ARFairNetworkModel class]);
});
descri... | {
"content_hash": "a902921101473174d9c36bb215f258ad",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 110,
"avg_line_length": 31.228571428571428,
"alnum_prop": 0.4906983836535529,
"repo_name": "1aurabrown/eigen",
"id": "6d02e538c77c7ed8f972734803061541fc853aef",
"size": "3... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends CI_Controller {
public function index()
{
if($this->login->checkLogin()){
$title['title'] = 'Dashboard | Optimise Hotpsot';
//get aantal bezoekers
$this->load->model('Checkin_m... | {
"content_hash": "450e020590cac41d8a9320a6fd4b5957",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 88,
"avg_line_length": 33.22727272727273,
"alnum_prop": 0.5718194254445964,
"repo_name": "svenhabex/dashboard-hotspot",
"id": "a1ee4bdc788b497bb10723012ca2b82b98338753",
"s... |
<?php
namespace NetSuite\Classes;
class SolutionSearchRow extends SearchRow {
public $basic;
public $caseJoin;
public $relatedSolutionJoin;
public $topicJoin;
public $userJoin;
public $userNotesJoin;
public $customSearchJoin;
static $paramtypesmap = array(
"basic" => "Solution... | {
"content_hash": "d5c61745b00b0459d2acd4c4fa9ad2e0",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 58,
"avg_line_length": 28.47826086956522,
"alnum_prop": 0.6641221374045801,
"repo_name": "fungku/netsuite-php",
"id": "bde873b3f97ea983998a744ce84fe4752665c1ee",
"size": "1... |
@interface MockCompanyEntity : WSBaseEntity
@property(nonatomic, copy) NSString *name;
@property(nonatomic, strong) NSArray *employees;
@end | {
"content_hash": "119dba9756413d1680b14d0916b5427f",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 48,
"avg_line_length": 23.666666666666668,
"alnum_prop": 0.795774647887324,
"repo_name": "Handbid/WallStreet-Objc",
"id": "9daa5c7dccad62a83788134c1c7519c2b525e723",
"size":... |
package com.graphhopper.reader.overlaydata;
import com.graphhopper.json.GHson;
import com.graphhopper.json.geo.Geometry;
import com.graphhopper.json.geo.JsonFeature;
import com.graphhopper.json.geo.JsonFeatureCollection;
import com.graphhopper.routing.util.DefaultEdgeFilter;
import com.graphhopper.routing.util.EdgeFi... | {
"content_hash": "1192821cb71fb2cc1dda20c0ecf78aa8",
"timestamp": "",
"source": "github",
"line_count": 197,
"max_line_length": 153,
"avg_line_length": 40.51776649746193,
"alnum_prop": 0.6004760711601103,
"repo_name": "PGWelch/graphhopper",
"id": "3ea9cf8933a1e8d59a3e020e81295d7729c45185",
"size": ... |
<div class="input-append date datepicker" data-date="0d" data-date-format="yyyy-mm-dd" data-provide="datepicker">
<input size="16" type="text" value="" readonly><span class="add-on"><i class="icon-th"></i></span>
</div>
<input id="useSearch" style="width: 130px; height: 40px "> | {
"content_hash": "0609f510523ccf2252ce74c02bc08648",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 113,
"avg_line_length": 70.5,
"alnum_prop": 0.6843971631205674,
"repo_name": "allanfish/facetime-demo",
"id": "b7e135add459edbdefd48915289493dbe92f38df",
"size": "282",
"b... |
In this /DE/ folder we have subfolders for /00/ (common materials) and for /Stock/ (for profit corporations) and /NonStock/ (not-for-profit corporations). The /Stock/ and /NonStock/ both use a basic template at /00/ will be subfolders for each type of corporation.
Currently, we have only examples for the Certificate... | {
"content_hash": "4669e7bacff6fa0383f8249724f4d72f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 266,
"avg_line_length": 52.92307692307692,
"alnum_prop": 0.7834302325581395,
"repo_name": "CommonAccord/Cmacc-Org",
"id": "b4199e08634213180941dad34fa601328f24183c",
"size"... |
package LogReporter::Service::zz_uptime;
use Moose;
extends 'LogReporter::Service';
no warnings 'misc';
override get_output => sub {
my ($self) = @_;
print `uptime`;
};
__PACKAGE__->meta->make_immutable;
1;
| {
"content_hash": "42b2f913a10427fabac5aee1aca5b9ff",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 40,
"avg_line_length": 16.76923076923077,
"alnum_prop": 0.6513761467889908,
"repo_name": "imMute/LogReporter",
"id": "2aeeca66d53ed116a3d0effab5fa1807242af933",
"size": "21... |
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(BTC);
unitlist.append(mBTC);
unitlist.append(uBTC);
return unitlist;... | {
"content_hash": "4a0f893a9e8692fcd779f5ea95911f61",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 89,
"avg_line_length": 23.858757062146893,
"alnum_prop": 0.6062041202936301,
"repo_name": "jimblasko/xcoin",
"id": "323b103272a0d8be8a8ec07a3827342e814adb52",
"size": "427... |
id: 934
title: Printer Canon Driver PPA
author: Stefano Marzorati
layout: post
guid: http://ubbunti.wordpress.com/?p=934
permalink: /printer-canon-driver-ppa/
authorsure_include_css:
-
dsq_thread_id:
- 2092216891
categories:
- Linux
tags:
- Canon
- driver
- ppa
- printer
- stampante
---
`sudo add-apt-r... | {
"content_hash": "2b23b027a8bd648ea9ed6c8b5f074a3e",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 50,
"avg_line_length": 17.952380952380953,
"alnum_prop": 0.713527851458886,
"repo_name": "marste/Blog",
"id": "2e28e3de2efc893be0d07c7ef4d7049ba1a3b6d4",
"size": "381",
"... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp"
android:background="#8000">
<TextView
andro... | {
"content_hash": "fad9b91b37d8de4019a55e6fe0111878",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 72,
"avg_line_length": 41.231884057971016,
"alnum_prop": 0.5398945518453427,
"repo_name": "xuan86883/coolweather",
"id": "e1a3149b868b741959bbc06ee8727d015da8c0fa",
"size":... |
FROM debian:stable-slim
MAINTAINER Apiary <sre@apiary.io>
ENV REFRESHED_AT 2020-11-02
COPY requirements.txt /tmp/
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python-sphinx \
python-yaml \
python-setuptools \
graphviz \
make \
python... | {
"content_hash": "93bd30e1ca90367f05b903a3b423213d",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 51,
"avg_line_length": 21.16,
"alnum_prop": 0.610586011342155,
"repo_name": "apiaryio/docker-base-images",
"id": "5fc690cf90bc75c5a8ff32508821077e5d41587d",
"size": "529",
... |
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'/>
<title>Vibration API: test that the vibrate() method is present (with or without vendor prefix)</title>
<link rel='author' title='Robin Berjon' href='mailto:robin@berjon.com'/>
<link rel='help' href='http://www.w3.org/TR/vibration/#methods'/>
<... | {
"content_hash": "99155567b5d0c84ea7007454bab1182c",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 107,
"avg_line_length": 36.88461538461539,
"alnum_prop": 0.6381647549530761,
"repo_name": "chromium/chromium",
"id": "70aa4047e11b9708aa300c878164cde0da811ec1",
"size": "95... |
module ProMotion
class WebScreen < ViewController
include ProMotion::WebScreenModule
end
end
| {
"content_hash": "55a07357209e47350f4a24e08452a01a",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 38,
"avg_line_length": 20.2,
"alnum_prop": 0.7920792079207921,
"repo_name": "silasjmatson/ProMotion",
"id": "9f1365b03e162ed5c1762e043d5140f57fd1ff4e",
"size": "101",
"bin... |
#ifndef gpe_editor_globals_h
#define gpe_editor_globals_h
#include "../pawgui/pawgui_theme_controller.h"
#include "../pawgui/pawgui_dock_system.h"
#include "gpe_editor_splash_page.h"
extern int release_current_mode;
extern pawgui::themes_controller * editor_theme_controller;
extern pawgui::widget_dock ... | {
"content_hash": "c3f5032ee1bfe5588c217f37552ec012",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 59,
"avg_line_length": 33.73684210526316,
"alnum_prop": 0.7425897035881436,
"repo_name": "pawbyte/Game-Pencil-Engine",
"id": "fe9f0439c56a10b8aa633ec70300f54ba6aa8737",
"si... |
package org.apache.flink.table.runtime.types
import org.apache.flink.api.common.typeutils._
import org.apache.flink.core.memory.{DataInputView, DataOutputView}
import org.apache.flink.types.Row
class CRowSerializer(val rowSerializer: TypeSerializer[Row]) extends TypeSerializer[CRow] {
override def isImmutableTyp... | {
"content_hash": "954e1ed98de34ef802fd1eb79b354811",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 97,
"avg_line_length": 32.23275862068966,
"alnum_prop": 0.6833377908531693,
"repo_name": "oscarceballos/flink-1.3.2",
"id": "caf346c3430bdbcb0278d6022f244bb75e6cdf9f",
"si... |
<!DOCTYPE html>
<html lang="en" ng-app="nApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>SoccerChain Game for Lovers of Live Soccer Betting</title>
<meta name="desc... | {
"content_hash": "68c2fdf96652067821b32230a767362f",
"timestamp": "",
"source": "github",
"line_count": 235,
"max_line_length": 207,
"avg_line_length": 56.69787234042553,
"alnum_prop": 0.4473881717202041,
"repo_name": "GoodwillDarina/blockdmitry",
"id": "d4514a8e0fea8806554e9ea23d275abfda84e2d9",
"... |
package com.microsoft.azure.management.network.v2019_02_01;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The ARP table associated with the ExpressRouteCircuit.
*/
public class ExpressRouteCircuitArpTable {
/**
* Entry age in minutes.
*/
@JsonProperty(value = "age")
private Int... | {
"content_hash": "34dbc5af695d859742d8e90b27b56820",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 88,
"avg_line_length": 22.11304347826087,
"alnum_prop": 0.6134486826582777,
"repo_name": "selvasingh/azure-sdk-for-java",
"id": "56ba9b0b9ba13994ec29db41a4c2c6ccd8b3ca8c",
... |
namespace IGCS
{
struct Settings
{
// settings written to config file
bool invertY;
float fastMovementMultiplier;
float slowMovementMultiplier;
float movementUpMultiplier;
float movementSpeed;
float rotationSpeed;
float fovChangeSpeed;
int cameraControlDevice; // 0==keyboard/mouse, 1 == gamepad, 2 ... | {
"content_hash": "d6d8a14697e5586d13ed1c474a3a36aa",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 174,
"avg_line_length": 48.35616438356164,
"alnum_prop": 0.7461756373937677,
"repo_name": "FransBouma/InjectableGenericCameraSystem",
"id": "3e482fb0dd918e036ef91382c25e997f... |
<?php
namespace MathPHP\Tests\NumericalAnalysis\NumericalDifferentiation;
use MathPHP\NumericalAnalysis\NumericalDifferentiation\NumericalDifferentiation;
use MathPHP\Exception;
class NumericalDifferentiationTest extends \PHPUnit\Framework\TestCase
{
/**
* @test getPoints data is not a callback nor set of... | {
"content_hash": "811c43bfa4110e58286d05ed4b49612f",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 82,
"avg_line_length": 25.554545454545455,
"alnum_prop": 0.5884027036641765,
"repo_name": "markrogoyski/math-php",
"id": "e54fabcc623e1eebaa8d8d3a269a75585ac749e0",
"size"... |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UniShop.Common
{
public class ConfigHelper
{
public static string GetValueByKey(string key)
{
return ConfigurationManager.AppSet... | {
"content_hash": "2615db5acc224499996cbce350b39d0e",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 68,
"avg_line_length": 21.235294117647058,
"alnum_prop": 0.6980609418282548,
"repo_name": "tonnystark/unishop",
"id": "7ee0403d45aad0fab1de34f3451fd44d82e1e66e",
"size": "3... |
@class ConfirmBubbleController;
// A view class that implements a bubble consisting of the following items:
// * one icon ("icon")
// * one title text ("title")
// * one message text ("message")
// * one optional link ("link")
// * two optional buttons ("ok" and "cancel")
//
// This bubble is convenient when we wish t... | {
"content_hash": "e094b0450daea2d518787cd38a19094e",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 80,
"avg_line_length": 33.56,
"alnum_prop": 0.6692491060786651,
"repo_name": "google-ar/WebARonARCore",
"id": "10d00ffdae509c34d855db3cf0373447bec7e5c6",
"size": "2025",
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache Lic... | {
"content_hash": "397d4793bceee99b4625f40f9df5f96b",
"timestamp": "",
"source": "github",
"line_count": 156,
"max_line_length": 201,
"avg_line_length": 40.34615384615385,
"alnum_prop": 0.4955513187162377,
"repo_name": "christophd/camel",
"id": "7dc06a9ea97b8da129bde302345fb10363e368ac",
"size": "62... |
package org.motechproject.openmrs.resource;
import org.motechproject.openmrs.config.Config;
import org.motechproject.openmrs.domain.RelationshipListResult;
/**
* Interface for relationships management.
*/
public interface RelationshipResource {
/**
* Returns the {@link RelationshipListResult} of all relat... | {
"content_hash": "5d5a48e82edffed45f10b52e7316f8d2",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 120,
"avg_line_length": 36.15,
"alnum_prop": 0.7455048409405256,
"repo_name": "1stmateusz/modules",
"id": "dd4ca5d5024dc8707baf09c779574de0c4291193",
"size": "723",
"bina... |
'use strict';
// Register `phoneList` component, along with its associated controller and template
angular.
module('view2').
component('view2', {
templateUrl: 'view2/view2.template.html',
controller: ['$routeParams',
function View2Controller() {
}
]
});
| {
"content_hash": "3360f30494631bed55be8043572559ac",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 84,
"avg_line_length": 22.76923076923077,
"alnum_prop": 0.6317567567567568,
"repo_name": "Arkadij24/HTML5ApplicationTest",
"id": "34f8cc1f562522929990c76404be6c58b2f92db9",
... |
package edu.berkeley.velox.storage
import com.typesafe.scalalogging.slf4j.Logging
import edu.berkeley.velox._
import edu.berkeley.velox.datamodel._
import edu.berkeley.velox.trigger.TriggerManager
import edu.berkeley.velox.catalog.Catalog
import edu.berkeley.velox.trigger.server._
trait StorageManager {
/**
* ... | {
"content_hash": "f77f239011db85c369aac7b379a7aeca",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 100,
"avg_line_length": 33.395348837209305,
"alnum_prop": 0.6901114206128134,
"repo_name": "pbailis/fast-tpcc-repo",
"id": "b953b50eb471852e865a3f3f0f8e831dcbde88e2",
"size... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct base_unit_info<us::tablespoon_base_unit></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" hr... | {
"content_hash": "50a42da592da7c7c425953be343ecfcf",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 502,
"avg_line_length": 92.19402985074628,
"alnum_prop": 0.6799417192812045,
"repo_name": "hand-iemura/lightpng",
"id": "0c265e30d3cfa9447e5cf8fbca4d46eae09372b2",
"size": ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.