text stringlengths 2 1.04M | meta dict |
|---|---|
package runtime_test
import (
"bytes"
"runtime"
"testing"
)
const (
typeScalar = 0
typePointer = 1
)
// TestGCInfo tests that various objects in heap, data and bss receive correct GC pointer type info.
func TestGCInfo(t *testing.T) {
verifyGCInfo(t, "bss Ptr", &bssPtr, infoPtr)
verifyGCInfo(t, "bss ScalarPtr... | {
"content_hash": "ff596dc6a4b6560d003215806dc1a1c6",
"timestamp": "",
"source": "github",
"line_count": 203,
"max_line_length": 152,
"avg_line_length": 27.423645320197043,
"alnum_prop": 0.6838512663912341,
"repo_name": "nawawi/go",
"id": "787160dc2779c8583240e35f0fcc60b172842da8",
"size": "5727",
... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const makeSerializable = require("../util/makeSerializable");
const HarmonyExportInitFragment = require("./HarmonyExportInitFragment");
const NullDependency = require("./NullDependency");
/** @typedef {i... | {
"content_hash": "7fc535c47d7dd2e809b77192d9b852b8",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 101,
"avg_line_length": 27.318181818181817,
"alnum_prop": 0.7211314475873544,
"repo_name": "arvenil/resume",
"id": "d3735c48b849c25fd7f9c719e00d2213cb30189b",
"size": "300... |
package com.oneops.boo;
import com.google.common.collect.Lists;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public class BooYaml {
private Boo boo;
private BooAssembly assembly;
private Map<String, BooPlatform> platforms;
private Map<String, BooEnvironment> environments;
privat... | {
"content_hash": "13721e03a70b8086e83fb931a0590c5e",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 98,
"avg_line_length": 28.982608695652175,
"alnum_prop": 0.6864686468646864,
"repo_name": "okornev/oneops",
"id": "28fd703c9dc6634f16190019e8c9a3a9af34ece8",
"size": "3333... |
import mock
import neutron.plugins.ml2.drivers.openvswitch.agent.common.constants \
as ovs_const
from neutron.tests.unit.plugins.ml2.drivers.openvswitch.agent.\
openflow.ovs_ofctl import ovs_bridge_test_base
call = mock.call # short hand
class OVSPhysicalBridgeTest(ovs_bridge_test_base.OVSBridgeTestBase,
... | {
"content_hash": "0e34b44315a20ffa6c11066a81a90b0f",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 78,
"avg_line_length": 35.72839506172839,
"alnum_prop": 0.580511402902557,
"repo_name": "noironetworks/neutron",
"id": "317294f5515b5f387b6cb45d3a1332dc5b52171c",
"size": "... |
```lua
local sprite = Sprite(width, height)
local sprite = Sprite(width, height, colorMode)
local sprite = Sprite(spec)
local sprite = Sprite(otherSprite)
local sprite = Sprite{ fromFile=filename }
local sprite = Sprite{ fromFile=filename, oneFrame }
```
Creates a new sprite with the given `width` and `height`. The
[c... | {
"content_hash": "7427eda0292cfe08ce3cc12b67071cd4",
"timestamp": "",
"source": "github",
"line_count": 403,
"max_line_length": 93,
"avg_line_length": 20.53846153846154,
"alnum_prop": 0.7220007249003262,
"repo_name": "aseprite/api-draft",
"id": "51847dd70478308c730af0e589bd762b078800b4",
"size": "8... |
<?php
namespace Paymer\OneClickIssueSvc;
class OneClickGetPriceExResponse
{
/**
* @var \Paymer\OneClickIssueSvc\Result
*/
public $OneClickGetPriceExResult;
/**
* @var decimal
*/
public $price;
/**
* @var string
*/
public $PurseN;
/**
* @var decimal
*... | {
"content_hash": "0a0d7cb7572e8830e525b444ad17a3e0",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 43,
"avg_line_length": 15.173913043478262,
"alnum_prop": 0.5587392550143266,
"repo_name": "zakharovvi/paymer-client",
"id": "ca4fa50bdad78a40769adaba75c2574651f4e700",
"siz... |
namespace AgileObjects.AgileMapper.UnitTests.Orms.EfCore1
{
using System.Threading.Tasks;
using Infrastructure;
using Xunit;
public class WhenProjectingToEnumerableMembers : WhenProjectingToEnumerableMembers<EfCore1TestDbContext>
{
public WhenProjectingToEnumerableMembers(InMemoryEfCore1Te... | {
"content_hash": "bb7cc62b3c6c6900330ea5cab5f47c47",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 108,
"avg_line_length": 30.055555555555557,
"alnum_prop": 0.7190388170055453,
"repo_name": "agileobjects/AgileMapper",
"id": "19a1c8b5c283dc283f1faf6e08e5a4fff2e9c051",
"si... |
{% load i18n %}
<div id="currentCity"><a>{{ current_city.name }}</a></div>
<div id="otherCities">
<div class="closeButton"><span> </span></div>
{% regroup other_cities|dictsort:"initial" by initial as initial_list %}
{% for initial in initial_list %}
<div class="initialGroup">{{ initial.grouper }}:</div... | {
"content_hash": "a0f4f7ef52b231ae140e3defb8c88e50",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 135,
"avg_line_length": 44.46666666666667,
"alnum_prop": 0.5817091454272864,
"repo_name": "georgema1982/django-city-switch",
"id": "9299e55156217e2fffd942b58d8740caa695fad0",... |
* [Introduction](README.md)
* [Getting Started](Tutorial-Introduction-to-the-NoSQL-world.md)
* [Multi-Model Database](Tutorial-Document-and-graph-model.md)
* [Installation](Tutorial-Installation.md)
* [Run the server](Tutorial-Run-the-server.md)
* [Run the console](Tutorial-Run-the-console.md)
* [Classes... | {
"content_hash": "411f121167f7fc1dd888ad66f9ba1d4a",
"timestamp": "",
"source": "github",
"line_count": 275,
"max_line_length": 91,
"avg_line_length": 45.04727272727273,
"alnum_prop": 0.6504681950274459,
"repo_name": "aomega08/orientdb-docs",
"id": "c82548220148c17dae7a9c14a8b6d8f7be7d436e",
"size"... |
import { checkTest } from './utils';
var MethodCallTracker = function(env, methodName) {
this._env = env;
this._methodName = methodName;
this._isExpectingNoCalls = false;
this._expecteds = [];
this._actuals = [];
};
MethodCallTracker.prototype = {
stubMethod() {
if (this._originalMethod) {
// Me... | {
"content_hash": "352694f02192d7f15e8d42a33356995f",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 139,
"avg_line_length": 27.92436974789916,
"alnum_prop": 0.5795967499247667,
"repo_name": "jasonmit/ember.js",
"id": "25ca252f0b68cfa9dcce7ed2742ed0f1f9abac17",
"size": "3... |
import { TextTracking24 } from "../../";
export = TextTracking24;
| {
"content_hash": "bca8c798cf05dd8b362c3afd16ff66c6",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 40,
"avg_line_length": 22.333333333333332,
"alnum_prop": 0.6567164179104478,
"repo_name": "markogresak/DefinitelyTyped",
"id": "918bbc60347443bfbd87fec4974055e62f3f0891",
"s... |
<h1>Create new kata</h1>
<!-- los campos comunes: nombre, descripción, código... que vayan ocupando todo el ancho; los de
entrada/salida que ocupen solo la mitad para ponerlos en paralelo -->
<!--
- write the description
- write the examples
- write the inputs / outputs
- write the tests
- select its state: ... | {
"content_hash": "8f76db101b581bf7a6baeb2c5d6f3640",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 111,
"avg_line_length": 40.13513513513514,
"alnum_prop": 0.571043771043771,
"repo_name": "semagarcia/javascript-kata-player",
"id": "8c7c44f0974e2dd4b691f013e47c6ac9046e005d... |
package org.apache.jmeter.engine.util;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.apache.jmeter.functions.Function;
import org.apache.jmeter.functions.InvalidVariableException;
im... | {
"content_hash": "1d9841ebec1b839e6495c60c89efc765",
"timestamp": "",
"source": "github",
"line_count": 225,
"max_line_length": 104,
"avg_line_length": 36.404444444444444,
"alnum_prop": 0.5888169942619949,
"repo_name": "saketh7/Jmeter",
"id": "b57fdc7bace02bce8fe4ae2990c86f18aa712bb4",
"size": "900... |
<div>
Adding branches to this blacklist allows you to prevent pull requests for specific branches.<br/>
Supports regular expressions (e.g. 'master', 'feature-.*').
</div> | {
"content_hash": "55361de87e32688ba7e1993e9a0615e6",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 99,
"avg_line_length": 43.5,
"alnum_prop": 0.7298850574712644,
"repo_name": "DavidTanner/ghprb-plugin",
"id": "6c27da2f85e9afa875376979e172ebd1f3036f5e",
"size": "174",
"b... |
package proxy
import (
"testing"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
)
func TestLoadBalanceValidateWorks(t *testing.T) {
loadBalancer := NewLoadBalancerRR()
if loadBalancer.isValid("") {
t.Errorf("Didn't fail for empty string")
}
if loadBalancer.isValid("foobar") {
t.Errorf("Didn't fail w... | {
"content_hash": "a860d94db778fe30f359203e306915b0",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 108,
"avg_line_length": 36.95757575757576,
"alnum_prop": 0.7097408986552968,
"repo_name": "ryfow/kubernetes",
"id": "1112141de80f7c8dac2f5743721bfba28edef9f6",
"size": "66... |
package auth
import (
"context"
"fmt"
"net/http"
"net/url"
"strings"
goauth "github.com/abbot/go-http-auth"
"github.com/opentracing/opentracing-go/ext"
"github.com/traefik/traefik/v2/pkg/config/dynamic"
"github.com/traefik/traefik/v2/pkg/log"
"github.com/traefik/traefik/v2/pkg/middlewares"
"github.com/trae... | {
"content_hash": "378b3ff6998d1da210cb4183890747e6",
"timestamp": "",
"source": "github",
"line_count": 125,
"max_line_length": 122,
"avg_line_length": 26.36,
"alnum_prop": 0.7077389984825493,
"repo_name": "mmatur/traefik",
"id": "454a972951f63bd42092e690ff27676210f6b2dc",
"size": "3295",
"binary... |
MAKEFLAGS=-r
# The source directory tree.
srcdir := ..
abs_srcdir := $(abspath $(srcdir))
# The name of the builddir.
builddir_name ?= .
# The V=1 flag on command line makes us verbosely print command lines.
ifdef V
quiet=
else
quiet=quiet_
endif
# Specify BUILDTYPE=Release on the command line for a release bui... | {
"content_hash": "8f4c14b5ad46d1d2b8713ad1926c0de2",
"timestamp": "",
"source": "github",
"line_count": 318,
"max_line_length": 754,
"avg_line_length": 39.35849056603774,
"alnum_prop": 0.6633109619686801,
"repo_name": "BrianH2244/meansc",
"id": "c5e2597224e7f943a3d2a11ee316c8281ef6ad0c",
"size": "1... |
class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame {
wxDECLARE_DYNAMIC_CLASS(wxMiniFrame);
public:
wxMiniFrame() {}
wxMiniFrame(wxWindow *parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
... | {
"content_hash": "0ec93b41078bcf2fc35ce4a3fe3ef698",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 105,
"avg_line_length": 28.625,
"alnum_prop": 0.6506550218340611,
"repo_name": "fuzz-inc/wxump",
"id": "a4180f975e1354aa5e446d8957166c1856345613",
"size": "1273",
"binary... |
RAILS_GEM_VERSION = '2.3.9' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence those specified here
# Skip frameworks ... | {
"content_hash": "dbbbd575b6321db2fcb49fa933d17bac",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 116,
"avg_line_length": 41.1,
"alnum_prop": 0.7362530413625304,
"repo_name": "robinbortlik/ruby-mojeid",
"id": "fa21149c0f6b180442e24dbfb5c1cb9b20debd6d",
"size": "2284",
... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/license... | {
"content_hash": "d0c39685c3287b479865447cf5434a45",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 442,
"avg_line_length": 61.166666666666664,
"alnum_prop": 0.7395095367847412,
"repo_name": "jasonlarue/react-native-flashcards",
"id": "6e7f450d1e68c75773ded4f4fd52dc513cc977... |
<?php
namespace reinvently\ondemand\core\modules\settings\migrations;
use Yii;
use yii\db\Migration;
/**
* Class ExtraFeeTableMigration
* @package reinvently\ondemand\core\modules\settings\migrations
*/
class ExtraFeeTableMigration extends Migration
{
/**
*
*/
public function up()
{
... | {
"content_hash": "02c362e2b10c113eeda2dfcf19d40274",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 73,
"avg_line_length": 28.56756756756757,
"alnum_prop": 0.511352885525071,
"repo_name": "Reinvently/On-Demand-Core",
"id": "aa1b658d0f9c4d0ace6b37572cdcf45b6f3abfd5",
"size... |
/* ==========================================================================
* ./webpack.config.prod.js
*
* Webpack config for Production
* ========================================================================== */
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plug... | {
"content_hash": "f1ef0fa1a7b0c36c1153b7fe7368c679",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 80,
"avg_line_length": 26.612244897959183,
"alnum_prop": 0.5161042944785276,
"repo_name": "cle1994/personal-website",
"id": "865725e41ec87b6efe02d51b575fb68550b711a9",
"siz... |
"""
__LocalDef1orMoreDefPart2_Complete_MDL.py_____________________________________________________
Automatically generated AToM3 Model File (Do not modify directly)
Author: gehan
Modified: Mon Mar 2 14:57:51 2015
______________________________________________________________________________________________
"""
from s... | {
"content_hash": "51b3977653f00f383179ae682f556ff8",
"timestamp": "",
"source": "github",
"line_count": 243,
"max_line_length": 632,
"avg_line_length": 52.51851851851852,
"alnum_prop": 0.6347751136185551,
"repo_name": "levilucio/SyVOLT",
"id": "c9e16150a709f6fc935af11914172d71997266c5",
"size": "12... |
<ul{% if recent_posts_class %} class="{{ recent_posts_class }}"{% endif %}>
{% for post in recent_posts %}
{% load lang %}
<li><a href="{{ post.get_absolute_url }}">{% t post.title %}</a></li>
{% endfor %}
</ul>
| {
"content_hash": "b3b9d9b910cd65c22ae3feafdf6f832d",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 75,
"avg_line_length": 37.333333333333336,
"alnum_prop": 0.5357142857142857,
"repo_name": "rimbalinux/MSISDNArea",
"id": "685a9ad22a78ccf0f2d23ad4e80603f99a33ac79",
"size": ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | {
"content_hash": "ff9a4a07705f3f542f12e07d791af9e0",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 159,
"avg_line_length": 44.23428571428571,
"alnum_prop": 0.5539336003100375,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "e6abb24e530c2ce79044daa7aba982e95cc89122",
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>higman-nw: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | {
"content_hash": "3e441f27bb731ddec9c03085362f4442",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 159,
"avg_line_length": 41.36206896551724,
"alnum_prop": 0.5505071557593442,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "af7663972cbe4803c3daa5685c89326a51babe4c",
... |
<?php
namespace Symfony\Component\EventDispatcher\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
/**
* Compiler pass to register tagged services for an event dispatcher.
*/
class RegisterListenersPass impl... | {
"content_hash": "168550267223d2f60b2976ab4e82f6e0",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 158,
"avg_line_length": 39.98076923076923,
"alnum_prop": 0.5808080808080808,
"repo_name": "Amaire/filmy",
"id": "01a6d016cbb6cc5b6ce03799d8742f53ae5832dc",
"size": "4387",... |
#ifndef GCC_GENSUPPORT_H
#define GCC_GENSUPPORT_H
struct obstack;
extern struct obstack *rtl_obstack;
extern const char *in_fname;
extern int init_md_reader_args_cb (int, char **, bool (*)(const char *));
extern int init_md_reader_args (int, char **);
extern rtx read_md_rtx (int *, int *);
extern void message_with... | {
"content_hash": "f68a795db5ff18a35ce2ec1d44cff0f2",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 78,
"avg_line_length": 34.15584415584416,
"alnum_prop": 0.6711026615969582,
"repo_name": "avaitla/Haskell-to-C---Bridge",
"id": "75899b1842476aa32931cb6d0456cbd755f259f9",
... |
'use strict';
const Filter = require('broccoli-persistent-filter');
const { stripIndent } = require('common-tags');
GlimmerTemplatePrecompiler.prototype = Object.create(Filter.prototype);
function GlimmerTemplatePrecompiler(inputTree, options) {
if (!(this instanceof GlimmerTemplatePrecompiler)) {
return new G... | {
"content_hash": "a9d453c0562148f4a22d2e81f758ca61",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 86,
"avg_line_length": 28.512820512820515,
"alnum_prop": 0.7473021582733813,
"repo_name": "thoov/ember.js",
"id": "51a7ba30473620a5efb0b8e2e4b62542d6afd082",
"size": "1112"... |
package cn.jpush.im.android.demo.activity;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;
import cn.jpush.im.android.demo.R;
import cn.jpush.im.android.demo.Listener.OnChangedListener;
i... | {
"content_hash": "f6957fae548895b1d45d54bb0b3b36ca",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 130,
"avg_line_length": 37.857142857142854,
"alnum_prop": 0.6481132075471698,
"repo_name": "youirong/jchat-android-master",
"id": "0bd542361cfe993e4395132a83b1c0aa12ad709c",
... |
<!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" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "9a4154ecd7b9b3c85b4bf374f3cc8b15",
"timestamp": "",
"source": "github",
"line_count": 176,
"max_line_length": 293,
"avg_line_length": 52.89772727272727,
"alnum_prop": 0.672717508055854,
"repo_name": "SALTR/saltr-ios-sdk",
"id": "a6e4f801fc86206196930a34f0defc8fb5f4d39a",
"size": "... |
namespace ChilliSource
{
//---------------------------------------------------------------
/// A system for managing all input gestures. All gestures must
/// be registered with this system before they will recieve input
/// events. Gesture collision resolution can also be handled
/// through this s... | {
"content_hash": "ae4ca41e78e93e087279c56414869a9a",
"timestamp": "",
"source": "github",
"line_count": 243,
"max_line_length": 129,
"avg_line_length": 44.609053497942384,
"alnum_prop": 0.44031365313653137,
"repo_name": "ChilliWorks/ChilliSource",
"id": "31ae5bff6c89dbdf449e418a5b8a1f05ad89c8f3",
"... |
package org.immutables.generator;
import com.google.common.base.Function;
import com.google.common.base.Functions;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.FluentIterable;
import com.google.common.collect.ImmutableList;
import com.google.commo... | {
"content_hash": "c9aee622476a000df3612657c0e34435",
"timestamp": "",
"source": "github",
"line_count": 264,
"max_line_length": 107,
"avg_line_length": 37.28409090909091,
"alnum_prop": 0.7095397744590064,
"repo_name": "impraveen/immutables",
"id": "fe44b8aac99c8a9dfca42f84a2500e8f56449a77",
"size":... |
package org.ovirt.engine.core.dao;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Set;... | {
"content_hash": "f324638853f45bae3f0fad286f57827d",
"timestamp": "",
"source": "github",
"line_count": 292,
"max_line_length": 134,
"avg_line_length": 39.178082191780824,
"alnum_prop": 0.6715034965034965,
"repo_name": "walteryang47/ovirt-engine",
"id": "061d84b119576eb3223fa2ff07c3e3fff0eeb65c",
"... |
// Copyright 2012 The Obvious Corporation.
/*
* This simply fetches the right version of phantom for the current platform.
*/
'use strict'
var requestProgress = require('request-progress')
var progress = require('progress')
var AdmZip = require('adm-zip')
var cp = require('child_process')
var fs = require('fs')
va... | {
"content_hash": "b1b924c2aeb3fc63cc1b7be3b57c1be7",
"timestamp": "",
"source": "github",
"line_count": 360,
"max_line_length": 219,
"avg_line_length": 34.12222222222222,
"alnum_prop": 0.6663953109736243,
"repo_name": "diztinct-tim/BeautyBridge",
"id": "01a3f43cf413c1ba5713607dbb78b8ae5d17fd1c",
"s... |
<?php
namespace Zend\Authentication\Adapter\Exception;
use Zend\Authentication\Exception\ExceptionInterface as Exception;
interface ExceptionInterface extends Exception
{
}
| {
"content_hash": "3bd924d97eb7a7aeac1af96c723fee51",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 66,
"avg_line_length": 18.7,
"alnum_prop": 0.7914438502673797,
"repo_name": "wp-plugins/double-click",
"id": "22a0365a98742b9c30da3525044c4772cf9e0ef1",
"size": "495",
"b... |
#include "hfs_fs.h"
#include "btree.h"
/*
* hfs_lookup()
*/
static struct dentry *hfs_lookup(struct inode *dir, struct dentry *dentry,
struct nameidata *nd)
{
hfs_cat_rec rec;
struct hfs_find_data fd;
struct inode *inode = NULL;
int res;
hfs_find_init(HFS_SB(dir->i_sb)->cat_tree, &fd);
hfs_cat_build_ke... | {
"content_hash": "b7282cb297c7a8bdd826974268ec0111",
"timestamp": "",
"source": "github",
"line_count": 305,
"max_line_length": 77,
"avg_line_length": 24.708196721311474,
"alnum_prop": 0.6403927813163482,
"repo_name": "wilseypa/odroidNetworking",
"id": "62fc14ea4b7387549d2f7017345070864a0d182d",
"s... |
id: tags-and-attributes
title: Tags and Attributes
permalink: tags-and-attributes.html
prev: component-specs.html
next: events.html
---
## Supported Tags
React attempts to support all common elements. If you need an element that isn't listed here, please file an issue.
### HTML Elements
The following HTML elements ... | {
"content_hash": "126ce9eb573e8902223b25f2be28f12d",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 187,
"avg_line_length": 41.476190476190474,
"alnum_prop": 0.8062571756601608,
"repo_name": "zenlambda/react",
"id": "4fef3b1368ca12e84b7b31bdc2c6cd7c33950a69",
"size": "348... |
<?php
use Foolz\SphinxQL\Drivers\ConnectionInterface;
use Foolz\SphinxQL\Expression;
use Foolz\SphinxQL\Tests\TestUtil;
class ConnectionTest extends PHPUnit_Framework_TestCase
{
/**
* @var ConnectionInterface
*/
private $connection = null;
public function setUp()
{
$this->connection... | {
"content_hash": "e00e2537f04c9efc7522f51f0d46cd48",
"timestamp": "",
"source": "github",
"line_count": 247,
"max_line_length": 122,
"avg_line_length": 32.56275303643725,
"alnum_prop": 0.5744125326370757,
"repo_name": "Full-Text-Search-System/IndexingModule",
"id": "8630f44c653b8a93a32fe9d97abf9f6231... |
const DrawCard = require('../../../drawcard.js');
class SerHobberRedwyne extends DrawCard {
setupCardAbilities() {
this.reaction({
when: {
onCardEntersPlay: event => event.card === this && event.playingType === 'marshal'
},
handler: () => {
... | {
"content_hash": "c6decd4aa0deea3ef623c14ae52c8fd8",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 104,
"avg_line_length": 35.39393939393939,
"alnum_prop": 0.5445205479452054,
"repo_name": "samuellinde/throneteki",
"id": "d2967de45fb7d1d8646dca035fb0a8015ca35e5c",
"size"... |
#pragma strict
var moveSpeed : float = 10.0;
private var player : GameObject;
private var moveRight : boolean = false;
private var moveLeft : boolean = false;
private var moveForward : boolean = false;
private var moveBackward : boolean = false;
function Start() {
player = GameObject.Find("Player");
}
functi... | {
"content_hash": "0cc53e915ccf6d5009331ad026fd90f5",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 69,
"avg_line_length": 22.9009009009009,
"alnum_prop": 0.6266719118804092,
"repo_name": "screwylightbulb/guitarzero",
"id": "9a1d41397438e959bafca5b4a21f3931d85f2f54",
"si... |
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/route.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <netdb.h>
#include <ifaddrs.h>
#include <unistd.h>
#else // Windows
#include <ws2tcpip.h>
// Tell linker to use these libraries
#pragma... | {
"content_hash": "6f37229188e8ad656514b6b302fc6c7f",
"timestamp": "",
"source": "github",
"line_count": 214,
"max_line_length": 130,
"avg_line_length": 28.364485981308412,
"alnum_prop": 0.5960461285008237,
"repo_name": "niekw91/Machiavelli",
"id": "875b75aab79c8801cf396d0b4a10d2a3bb83902b",
"size":... |
package org.w3c.dom;
import org.w3c.dom.Node;
public interface NodeList
{
Node item(int p0);
int getLength();
}
| {
"content_hash": "f93320cac65cfe88636f29a8f6fdf6a7",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 25,
"avg_line_length": 13.555555555555555,
"alnum_prop": 0.680327868852459,
"repo_name": "github/codeql",
"id": "63018fe44aed75dfbefa9a47db37440244ec287c",
"size": "197",
... |
<html>
<head>
<link rel="stylesheet" type="text/css" href="../css/desktop.css" />
<script type="text/javascript" src="../scripts/cards.js"></script>
</head>
<body>
<div id="flashcards"><script>initialize();</script></div>
<div class... | {
"content_hash": "1837fe9d6ef3a4c7f789c1281633f3a9",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 105,
"avg_line_length": 38.63636363636363,
"alnum_prop": 0.5129411764705882,
"repo_name": "Harvard-ATG/HewbrewFlashcards",
"id": "985276dd2fd6c7fdc60f4602061a6463c6014463",
... |
void FileScan()
{
//Read file tags in Tags.txt
FileTags* filetags = FileBase_ReadTags();
//Read sub-tags in Sub.txt
FileSubs* filesubs = FileBase_ReadSubs();
//Get file list in current folder
FileName* filenames = FileBase_GetFileList();
//Set filename as default tag
TagBase_SetDefaultTag(filetags, filenames);
... | {
"content_hash": "6a9a16b7bbd39dbe8d04eb82c08de5ea",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 46,
"avg_line_length": 19.5,
"alnum_prop": 0.7001972386587771,
"repo_name": "tagging/Tagging",
"id": "edcd86ff6f3083127f9381490607a1aec79c2e07",
"size": "548",
"binary": ... |
bower gulp + structure
tag
| {
"content_hash": "de7f76db656619edd85ccea53b87ddfc",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 22,
"avg_line_length": 13.5,
"alnum_prop": 0.7777777777777778,
"repo_name": "nuxia/js-tools",
"id": "bad39f6211b5d4fdbf2a7ded4288c09a63e1386e",
"size": "36",
"binary": fal... |
<?xml version="1.0" encoding="UTF-8" ?>
<!-- 2015-06-18 - ADDED xmlns:android so the Android properties can be extended -->
<!-- 2015-11-21 - Implemented http://phonegap.com/blog/2015/11/19/config_xml_changes_part_two/ -->
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:android = "http://sche... | {
"content_hash": "7d2ff2793bdceba519390c762f6a0229",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 156,
"avg_line_length": 63.981308411214954,
"alnum_prop": 0.5907099035933392,
"repo_name": "jessemonroy650/Phonegap--Generic-Boilerplate6",
"id": "003d42324a789c2df0958ff707... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! Machinery to initialise interface prototype objects and interface objects.
use dom::bindings::codegen::Bindin... | {
"content_hash": "2264f4038fb3cce7403f880003c10971",
"timestamp": "",
"source": "github",
"line_count": 791,
"max_line_length": 120,
"avg_line_length": 46.49557522123894,
"alnum_prop": 0.6296699113600522,
"repo_name": "nrc/rustc-perf",
"id": "5604d33aa290d2dace725af514ae0d7747e602b5",
"size": "3677... |
<?php
/**
* Class for manage the database connection
*
* @property MySQLi $connection
*
*/
class Connection {
private $connection;
function __construct($host, $user, $pass, $dataBase) {
if ($dataBase == null) {
$this->connection = new my... | {
"content_hash": "ca7f173de11981f92a49ad0024aef2e5",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 79,
"avg_line_length": 22.946428571428573,
"alnum_prop": 0.4653696498054475,
"repo_name": "decalion/CISADNETWORK",
"id": "195eb1782d987737ce42eeebe788709427f6caf1",
"size":... |
package org.apache.rocketmq.connect.file;
public class FileConstants {
public static final String FILENAME_FIELD = "filename";
public static final String NEXT_POSITION = "nextPosition";
public static final String FILE_LINE_CONTENT = "fileLineContent";
public static final String LINE = "_line";
... | {
"content_hash": "4b7d6f03f3d5cbb92edd81b9dd5037ed",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 69,
"avg_line_length": 24,
"alnum_prop": 0.7156862745098039,
"repo_name": "StyleTang/incubator-rocketmq-externals",
"id": "55f6aa7542e704d55b37f4226745bb045a4ed9cf",
"size"... |
package cli
import (
"errors"
"flag"
"reflect"
"strings"
"syscall"
)
// Context is a type that is passed through to
// each Handler action in a cli application. Context
// can be used to retrieve context-specific Args and
// parsed command-line options.
type Context struct {
App *App
Command Co... | {
"content_hash": "be0874f5ce9b3820092b788629db96bf",
"timestamp": "",
"source": "github",
"line_count": 283,
"max_line_length": 88,
"avg_line_length": 23.300353356890458,
"alnum_prop": 0.6546860782529572,
"repo_name": "murdinc/cli",
"id": "8406b07bcd1732381ab6a683a2654b65dbfa38c7",
"size": "6594",
... |
package com.siyeh.igtest.abstraction.declare_collection_as_interface;
import java.util.*;
public class DeclareCollectionsAsInterfaceInspection
{
private HashSet<String> m_setThree = new HashSet<String>(2);
private HashSet m_setOne = new HashSet(2);
private Set m_setTwo = new HashSet(2);
public Declar... | {
"content_hash": "6efc4b0fffc833a174b8610d5cc39e13",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 69,
"avg_line_length": 22.857142857142858,
"alnum_prop": 0.6135416666666667,
"repo_name": "jexp/idea2",
"id": "efade503f3be25e7ff0baf341a15c96cca7d6fc6",
"size": "960",
"... |
package org.mifos.application.accounts.util.helpers;
import org.mifos.application.accounts.business.AccountFeesEntity;
import org.mifos.framework.util.helpers.Money;
public class FeeInstallment {
private Short installmentId;
private Money accountFee;
private AccountFeesEntity accountFeesEntity = null;
... | {
"content_hash": "45e98aa95926aa89865bef5be2bf1341",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 75,
"avg_line_length": 24.27027027027027,
"alnum_prop": 0.72271714922049,
"repo_name": "mifos/1.4.x",
"id": "13c2038bd230dcb1ed4b55e9ca7d911cb99d155b",
"size": "1659",
"b... |
namespace shaderc_util {
namespace {
// Given a message, deduces and returns its type. If the message type is
// recognized, advances *message past the prefix indicating the type. Otherwise,
// leaves *message unchanged and returns MessageType::Unknown.
MessageType DeduceMessageType(string_piece* message) {
static ... | {
"content_hash": "02c40492b6ce32d1cbcfabedca9f7957",
"timestamp": "",
"source": "github",
"line_count": 231,
"max_line_length": 80,
"avg_line_length": 43.41991341991342,
"alnum_prop": 0.6139581256231306,
"repo_name": "davidlee80/shaderc",
"id": "5e7f2b8b0c1145a39e738ccb3987e23e52e7e0fc",
"size": "1... |
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(... | {
"content_hash": "66225e6faf9a4eae462e93d6724c9451",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 75,
"avg_line_length": 40.26923076923077,
"alnum_prop": 0.7125119388729704,
"repo_name": "zouzhberk/ambaridemo",
"id": "6c4ef96059187dd386f59af18f4b1729d25a1fe2",
"size": "... |
package pdp
import (
"fmt"
)
type functionSetOfStringsLen struct {
e Expression
}
func makeFunctionSetOfStringsLen(e Expression) Expression {
return functionSetOfStringsLen{e: e}
}
func makeFunctionSetOfStringsLenAlt(args []Expression) Expression {
if len(args) != 1 {
panic(fmt.Errorf("function \"len\" for Se... | {
"content_hash": "e5ab3642b2959d2581c1cbdf34ab545a",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 108,
"avg_line_length": 23.66,
"alnum_prop": 0.7489433643279797,
"repo_name": "vasili-v/themis",
"id": "7a4d6d7db4f31a34b085e29ef3e06d10e1444805",
"size": "1183",
"binary... |
Shindo.tests("Fog::Compute[:aws] | security_group", ['aws']) do
model_tests(Fog::Compute[:aws].security_groups, {:description => 'foggroupdescription', :name => 'foggroupname'}, true)
tests("authorize and revoke helpers") do
@group = Fog::Compute[:aws].security_groups.create(:name => "foggroup", :description ... | {
"content_hash": "a8bd182fe81ad6427600e1edbd1d4d77",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 125,
"avg_line_length": 35.08163265306123,
"alnum_prop": 0.6183827806864456,
"repo_name": "puneetloya/fog-aws",
"id": "8d31dfc758dc42459b72e675ec2eeee22b171971",
"size": "3... |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Holds the PhpMyAdmin\Controllers\Table\TableSearchController
*
* @package PhpMyAdmin\Controllers
*/
namespace PhpMyAdmin\Controllers\Table;
use PhpMyAdmin\Controllers\TableController;
use PhpMyAdmin\Core;
use PhpMyAdmin\DatabaseInterface;
use PhpMyAdmin\Relatio... | {
"content_hash": "ea9d8322d0f69d05c3f84391a02a0648",
"timestamp": "",
"source": "github",
"line_count": 1173,
"max_line_length": 119,
"avg_line_length": 34.87553282182438,
"alnum_prop": 0.4795521767826151,
"repo_name": "cytopia/devilbox",
"id": "e9f1e48e0561fac5d39b687aafb7749ed502db2d",
"size": "4... |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HelloComponent } from "./hello/hello.component";
import { MasterComponent } from "./master/master.component";
import { NgClassComponent, NgforComponent, NgSwitchComponent, ViewChildComponent,ContentChildComponent... | {
"content_hash": "9fbd3e894866423edffd5538545383ff",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 129,
"avg_line_length": 44.285714285714285,
"alnum_prop": 0.7104838709677419,
"repo_name": "imsangram/ng-course2",
"id": "bd8c375627f3dc5d3d63a520edfe98bbafef044b",
"size":... |
<!DOCTYPE HTML>
<html lang={{ config.lang_code }} dir={{ lang_dir }}>
<head>
{% block head_extras %}{% endblock %}
<title>{{ config.strings.tooltitle }}</title>
<meta name="robots" content="nofollow, noodp, noindex">
<meta name="description" content="{{ config.strings.tooltitle }} - {{ config.strings... | {
"content_hash": "eb042ff654e23fa6855f2ef807fec420",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 106,
"avg_line_length": 30.833333333333332,
"alnum_prop": 0.5576576576576576,
"repo_name": "jhsoby/citationhunt",
"id": "1d015e1553d41429c144e57ab08415770831ae43",
"size": ... |
hetzner-zonefiles
=================
python script to handle hetzner zonefiles through their robot
Todo
----
* (H) implement upload feature
* (L) safe zonefiles in a folder in the format YYYYmmdd
* (L) make command line interface better (for example with optparser)
* (L) make install script general such that it can b... | {
"content_hash": "6c7177abdc71c86433d647aa1b34d0c4",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 75,
"avg_line_length": 28.583333333333332,
"alnum_prop": 0.7288629737609329,
"repo_name": "larsborn/hetzner-zonefiles",
"id": "0beb6a4213dc6de3330a1875d6d6a0dd35cef9d9",
"s... |
<?php
/**
* TRusted shops protection product manager.
*
*/
class oxTsProduct extends oxSuperCfg
{
/**
* Id of TS protection product
*
* @var string
*/
protected $_sTsId = null;
/**
* Amount of TS protection product
*
* @var integer
*/
protected $_iAmount = ... | {
"content_hash": "427fc4d3eaff08c2f3d8e1c1b75252d1",
"timestamp": "",
"source": "github",
"line_count": 226,
"max_line_length": 117,
"avg_line_length": 24.446902654867255,
"alnum_prop": 0.48923076923076925,
"repo_name": "EllisV/oxid-standard",
"id": "a17ebc528c0de59eecbfeb5b599fd1c50fc1b377",
"size... |
using System.Linq;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.OData;
using Microsoft.Azure.Mobile.Server;
using ghostshockey.it.api.Models;
using System;
using System.Collections.Generic;
using Microsoft.Azure.Mobile.Server.Config;
using System.Web.Http.Res... | {
"content_hash": "623e6b275d2c5b740dc060637fd54106",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 83,
"avg_line_length": 26.146551724137932,
"alnum_prop": 0.5446752390372568,
"repo_name": "mcampulla/Ghostshockey",
"id": "19429ae7022afdd12e7938d6ac269b41a1409a9a",
"size... |
"""
logbook.handlers
~~~~~~~~~~~~~~~~
The handler interface and builtin handlers.
:copyright: (c) 2010 by Armin Ronacher, Georg Brandl.
:license: BSD, see LICENSE for more details.
"""
import os
import re
import sys
import stat
import errno
import socket
try:
from hashlib import sha1
except Im... | {
"content_hash": "0e11853e0923ca6d63298919273a7590",
"timestamp": "",
"source": "github",
"line_count": 1631,
"max_line_length": 134,
"avg_line_length": 37.06866952789699,
"alnum_prop": 0.608114590052763,
"repo_name": "dplepage/logbook",
"id": "8725e98f4b24795b1714d769a44f5c9bbb6133c4",
"size": "60... |
Package.describe({
name: 'ostrio:mailer',
version: '1.0.1',
summary: 'Emails queue with schedule and support of HTML-Templates, and custom SMTP connection',
git: 'https://github.com/VeliovGroup/Meteor-Mailer',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.addFi... | {
"content_hash": "91a734e4d46d53d2e275d8f2f37b0270",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 167,
"avg_line_length": 40.84615384615385,
"alnum_prop": 0.6854990583804144,
"repo_name": "satyavh/Meteor-Mailer",
"id": "16fcfe796d3b7dd6156761d1a6be46e94c7a5ad3",
"size":... |
#include <string.h>
#include <ctype.h>
#include <espressif/esp_common.h>
#include <espressif/user_interface.h>
#include <esp/uart.h>
#include <FreeRTOS.h>
#include <task.h>
#include "lwip/sockets.h"
#include "wificfg/wificfg.h"
#include "sysparam.h"
static const char http_success_header[] = "HTTP/1.1 200 \r\n"
... | {
"content_hash": "0a933073a558b9f6947b5341a7b59d34",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 104,
"avg_line_length": 35.94252873563219,
"alnum_prop": 0.5692356891589383,
"repo_name": "bhuvanchandra/esp-open-rtos",
"id": "33e70c025a778767c0718f83a0d98ceb7ebb7753",
"... |
function validate() {
var artist = document.getElementById('artist').value;
var error = document.getElementById('error');
if (artist.indexOf('soundcloud.com/') != -1) {
var pattern = new RegExp('soundcloud\.com/([^/]*)');
var match = pattern.exec(artist);
if (match == null) {
... | {
"content_hash": "3a725fe82965c8666d540a85b84c3fc8",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 67,
"avg_line_length": 25.375,
"alnum_prop": 0.5254515599343186,
"repo_name": "mtimkovich/top_tracks",
"id": "03462f0748c82148760e341a0002b4f28d7542f5",
"size": "609",
"b... |
<?php
/**
* A view represents the presentation layer of an action. Output can be
* customized by supplying attributes, which a template can manipulate and
* display.
*
* @package symfony
* @subpackage view
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
* @author Sean Kerr <sean@... | {
"content_hash": "8647e22cc45cdaca5a69babef5443fad",
"timestamp": "",
"source": "github",
"line_count": 576,
"max_line_length": 179,
"avg_line_length": 25.40451388888889,
"alnum_prop": 0.6293309642588669,
"repo_name": "nationalfield/symfony",
"id": "f1c2dc8210e9de5dab62876c420f1d9ab3e865e7",
"size"... |
/**
* @file peer_manager.h
*
* @defgroup peer_manager Peer Manager
* @ingroup ble_sdk_lib
* @{
* @brief Module for managing BLE bonding, which includes controlling encryption and pairing
* procedures as well as persistently storing different pieces of data that must be stored
* when bonded.
*
... | {
"content_hash": "60c038cb917fc3bfbc1710a55518fa2e",
"timestamp": "",
"source": "github",
"line_count": 822,
"max_line_length": 472,
"avg_line_length": 55.07420924574209,
"alnum_prop": 0.6510127896445849,
"repo_name": "bulislaw/mbed-os",
"id": "b5cc5af781908da4fa37f0ae5f02cc61b3f1cf40",
"size": "47... |
package org.openuap.cms.engine.profile;
import java.lang.reflect.Constructor;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openuap.cms.config.CMSConfig;
import org.openuap.runtime.profile.ProfileInfoHolder;
import org.springframework.util.Refl... | {
"content_hash": "5e933fe66a8010ece6f64af672ce7691",
"timestamp": "",
"source": "github",
"line_count": 142,
"max_line_length": 88,
"avg_line_length": 29.845070422535212,
"alnum_prop": 0.6776781500707881,
"repo_name": "juweiping/ocms",
"id": "b7892c553562d5295c2fe4ce24fc675948d96997",
"size": "4894... |
<?php
require_once 'config.php';
$user = new UserModel;
$user->user_name = 'martin_adamko';
$user->first_name = 'Martin';
$user->last_name = 'Adamko';
$user->save();
$user = new UserModel;
$user->user_name = 'milan_lasica';
$user->first_name = 'Milan';
$user->last_name = 'Lasica';
$user->save();
$user = new UserM... | {
"content_hash": "b50b5ce3dafe398932f84f71df1af169",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 68,
"avg_line_length": 20.516129032258064,
"alnum_prop": 0.6320754716981132,
"repo_name": "attitude/PHP-Library-Demo",
"id": "58bc4ff0a2f99e549e765deb43374bec4af0213c",
"si... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Task = require('../ember-cli/lib/models/task');
const chalk = require("chalk");
const child_process_1 = require("child_process");
exports.default = Task.extend({
run: function () {
const ui = this.ui;
let packageManag... | {
"content_hash": "8c8d474083b52d2839ed8e222966b656",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 103,
"avg_line_length": 40.1764705882353,
"alnum_prop": 0.5439238653001464,
"repo_name": "rtnews/rtsfnt",
"id": "98dd6a76c60819960086916e12983fcc5a7f7bcf",
"size": "1366",
... |
API Controller Bundle Documentation
======
What is OAuth
----------------
Why are we using OAuth
----------------
OAuth 2.0 Basics
----------------
OAuth is a relatively simple protocol that allows a user to grant an application
access to their data on a separate server or platform. For example allowing a
event pla... | {
"content_hash": "d757a2cf8845037710f46b1ac6ad09ab",
"timestamp": "",
"source": "github",
"line_count": 239,
"max_line_length": 106,
"avg_line_length": 34.87866108786611,
"alnum_prop": 0.7461612284069098,
"repo_name": "IBVPD/Nuvi",
"id": "9e9bf9edac0afee9b541a5a4c4cae105bab2394d",
"size": "8336",
... |
package org.apache.airavata.registry.core.workflow.catalog.model;
import java.io.Serializable;
public class Port_PK implements Serializable {
private String templateId;
private String portId;
public Port_PK(String templateId, String portId) {
this.templateId = templateId;
this.portId = p... | {
"content_hash": "5107be7b8fadb65a25ddd0d4be93833f",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 65,
"avg_line_length": 18.886363636363637,
"alnum_prop": 0.618531889290012,
"repo_name": "gouravshenoy/airavata",
"id": "6f8651c7cc6f8c32d4395495c56d2273fad4e250",
"size": ... |
namespace ui {
using testing::AllOf;
using testing::InSequence;
using testing::Property;
class EventObserver {
public:
void EventDispatchCallback(Event* event) {
DispatchEventFromNativeUiEvent(
event, base::Bind(&EventObserver::OnEvent, base::Unretained(this)));
}
void OnEvent(Event* event) {
... | {
"content_hash": "8d0656d43c3c6d44eeaf65c932dfafa8",
"timestamp": "",
"source": "github",
"line_count": 207,
"max_line_length": 80,
"avg_line_length": 34.79710144927536,
"alnum_prop": 0.6221019019852839,
"repo_name": "danakj/chromium",
"id": "fe07e328cf6603320a18d86510c2076f68629b17",
"size": "7929... |
namespace butil {
namespace snappy {
class Source;
class Sink;
// Windows does not have an iovec type, yet the concept is universally useful.
// It is simple to define it ourselves, so we put it inside our own namespace.
struct iovec {
void* iov_base;
size_t iov_len;
};
// ------------------------------------------... | {
"content_hash": "f3b80811ea16029fd892d744cb5e4cb6",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 78,
"avg_line_length": 45.6566265060241,
"alnum_prop": 0.690856313497823,
"repo_name": "brpc/brpc",
"id": "a096030e4d4ede7dac9227a0ec506ca5ead382e8",
"size": "9704",
"bi... |
use core::arch::x86_64::__m128i;
use crate::memmem::{
prefilter::{PrefilterFnTy, PrefilterState},
NeedleInfo,
};
// Check that the functions below satisfy the Prefilter function type.
const _: PrefilterFnTy = find;
/// An SSE2 accelerated candidate finder for single-substring search.
///
/// # Safety
///
///... | {
"content_hash": "8bf7e6da33fe54119b78b1626e3934e3",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 79,
"avg_line_length": 31.181818181818183,
"alnum_prop": 0.6355685131195336,
"repo_name": "nwjs/chromium.src",
"id": "b11356ee000090316440894aba03b611bae773e5",
"size": "17... |
import { Injectable, OnDestroy, Optional } from '@angular/core';
import { SkyLibResourcesService } from '@skyux/i18n';
import { SkyThemeService, SkyThemeSettings } from '@skyux/theme';
import {
CellClassParams,
ColDef,
EditableCallbackParams,
GridOptions,
ICellRendererParams,
RowClassParams,
SuppressKeyb... | {
"content_hash": "7bdc67688a973b96bfa1f88967af98ba",
"timestamp": "",
"source": "github",
"line_count": 568,
"max_line_length": 192,
"avg_line_length": 34.12852112676056,
"alnum_prop": 0.6498839308743874,
"repo_name": "blackbaud/skyux",
"id": "7993ac33b21b5cdc1998d1dba9b9e086ba03ba37",
"size": "193... |
<?php
namespace libphonenumber;
/**
* Country code source from number
*/
class CountryCodeSource
{
/**
* The country_code is derived based on a phone number with a leading "+", e.g. the French
* number "+33 1 42 68 53 00".
*/
const FROM_NUMBER_WITH_PLUS_SIGN = 0;
/**
* The country_co... | {
"content_hash": "a37a62ad39060e0b5901ef98e5b93620",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 100,
"avg_line_length": 36.9375,
"alnum_prop": 0.6632825719120136,
"repo_name": "helsingborg-stad/api-event-manager",
"id": "0a9b9dfdf3e5c1adb311b9755b15ac00683ef468",
"siz... |
"""
CacheItem interface:
'_id': string,
'url': string,
'response_url': string,
'body': string,
'head': string,
'response_code': int,
'cookies': None,#grab.response.cookies,
TODO: WTF with cookies???
"""
from hashlib import sha1
import zlib
import logging
import pymongo
from bson import Binary
import time
import six
fr... | {
"content_hash": "0e8fac1fc584ffdbdb8705278fa0e8d3",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 79,
"avg_line_length": 30.322314049586776,
"alnum_prop": 0.5696375034069229,
"repo_name": "huiyi1990/grab",
"id": "7f79dda385839742707f61e46853c3d104e45a80",
"size": "3669... |
package org.apache.hadoop.hive.ql.plan;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDTF;
/**
* All member variables should have a setters and getters of the form get<member
* name> and set<member name> or else they won't be recreated properly at run
* time.
*
*/
@Explain(displayName = "UDTF Operator")... | {
"content_hash": "5e7395f6cff08c6a2dede3a46078cb4c",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 80,
"avg_line_length": 22.641509433962263,
"alnum_prop": 0.7166666666666667,
"repo_name": "wangbin83-gmail-com/hive-1.1.0-cdh5.4.8",
"id": "741a0e073c56ba4fd0d4031530ee176350... |
# cssbuttongenerator-css-rails
[][gem]
[][travis]
[]... | {
"content_hash": "e4b244c934ea699051d20f726ca67c74",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 125,
"avg_line_length": 29.242105263157896,
"alnum_prop": 0.7429805615550756,
"repo_name": "jhx/gem-cssbuttongenerator-css-rails",
"id": "876fef6bb3a27ed1d3bb521df0eb3dbc9e07... |
package com.facebook.buck.ocaml;
import com.facebook.buck.graph.MutableDirectedGraph;
import com.facebook.buck.graph.TopologicalSort;
import com.facebook.buck.util.MoreCollectors;
import com.google.common.base.Preconditions;
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableList;
impo... | {
"content_hash": "2a5b213a6b921d5c4c25f83728f79e15",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 100,
"avg_line_length": 38.319327731092436,
"alnum_prop": 0.6690789473684211,
"repo_name": "daedric/buck",
"id": "16880d49a734b7d9cdfc8d26d393c68e5776acde",
"size": "5165"... |
(function(){
Template.__define__("pending", (function() {
var self = this;
var template = this;
return HTML.Raw('<div class="text-center">\n <br>\n Coming Soon...\n </div>');
}));
})();
| {
"content_hash": "83ae722d92a803561b1a7018fbdf3e7d",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 87,
"avg_line_length": 25,
"alnum_prop": 0.56,
"repo_name": "josmas/UCapp",
"id": "7a47288e71c47ce07589e5946d4e6e39473b6115",
"size": "200",
"binary": false,
"copies": "... |
require "spec_helper"
describe Keynote::Extractor do
it "has a version number" do
expect(Keynote::Extractor::VERSION).not_to be nil
end
it "returns text from keynote presentation" do
file = file = File.expand_path("spec/support/whydots.key", Dir.pwd)
file_text = Keynote::Extractor::Parse.text(file)
... | {
"content_hash": "f50146bc48784a19da719b56a530c2c1",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 71,
"avg_line_length": 33.21052631578947,
"alnum_prop": 0.7099841521394612,
"repo_name": "cbaykam/keynote-extractor",
"id": "06880c2f8396469602f8265c44098721fc101b8e",
"siz... |
@import Foundation;
@import UIKit;
@import CoreGraphics;
/// Class to draw the circle for the points.
@interface BEMCircle : UIView
/// Set to YES if the data point circles should be constantly displayed. NO if they should only appear when relevant.
@property (assign, nonatomic) BOOL shouldDisplayConstantly;
/// Th... | {
"content_hash": "c1a03017a4e3d5919e4a00b1fce589e9",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 117,
"avg_line_length": 25.72222222222222,
"alnum_prop": 0.7645788336933045,
"repo_name": "Boris-Em/BEMSimpleLineGraph",
"id": "413195d05145919402c4aaaaae4aab5fc9607073",
"... |
package be.jabapage.perfectiongame.gae.api;
import java.util.List;
/**
*
* Translating a list to
* @author Jan Verstuyft
*
* @param <A>
* @param <M>
*/
public interface IListTranslator <A, M> extends ITranslator<List<A>, List<M>> {
}
| {
"content_hash": "b9901aba6913cc5e35e358a01527ad00",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 79,
"avg_line_length": 15.5,
"alnum_prop": 0.657258064516129,
"repo_name": "JanVerstuyft/jabapage",
"id": "ce9b6270d3c98eb414de073a95101497390bb88e",
"size": "248",
"bina... |
'use strict';
angular.module('app.directive')
.directive('lineChart', function () {
return {
template: '<div></div>',
scope: {
chart: '='
},
restrict: 'E',
replace: true,
link: function postLink(scope, element) {
var lineChart = new google.visualization.LineCha... | {
"content_hash": "cc45a562b37c66db8cea02c9de44e167",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 71,
"avg_line_length": 27.807692307692307,
"alnum_prop": 0.5089903181189488,
"repo_name": "nickholub/angular-real-time-charts",
"id": "e6ca910a807e4ce6846f52ecf83e6feb8c71210... |
package com.sasbury.genetik.population;
import java.util.*;
import com.sasbury.genetik.*;
public class InMemoryPopulation implements Population
{
protected ArrayList<Individual> individuals;
/**
* InMemory populations have a dynamic size
* @param size
*/
public InMemoryPopulation()
... | {
"content_hash": "fe39bee711cc00e01709cb62a7d71dcf",
"timestamp": "",
"source": "github",
"line_count": 136,
"max_line_length": 148,
"avg_line_length": 21.852941176470587,
"alnum_prop": 0.5080753701211306,
"repo_name": "sasbury/genetik",
"id": "5e8a44cf125c61328e6b4a0f3397b799578b3add",
"size": "29... |
package ch.epfl.yinyang.typetransformers
import scala.reflect.macros.blackbox.Context
import scala.reflect.runtime.universe.definitions.FunctionClass
trait PolyTransformerLike[C <: Context] { this: TypeTransformer[C] =>
import c.universe._
val MaxFunctionArity = 22
def toType(s: Symbol) = s.name
protected d... | {
"content_hash": "d9dd86c3790e3a70cf1c104f43f3c75e",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 105,
"avg_line_length": 35.546875,
"alnum_prop": 0.6980219780219781,
"repo_name": "amirsh/yin-yang",
"id": "d38766e856b50d6855057b6720bed0f3b340da88",
"size": "2275",
"bi... |
<md-list class="contact-list">
<md-list-item *ngFor="let contact of contacts" (click)="gotoMessage(this.contact.id)">
<span md-list-avatar class="conntect-avatar truck" ngClass="icon-{{contact.type}}"></span>
<h4 md-line><span class="contact-title">{{contact.name}}</span><span class="contact-date">{... | {
"content_hash": "c5955eb53fbd39e3adf5e1cda074b860",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 136,
"avg_line_length": 65.57142857142857,
"alnum_prop": 0.6557734204793029,
"repo_name": "jo3d3v/pwa-messenger",
"id": "4a8a7c0a87e8706d08b41e74860b803f6c8dfca7",
"size": "... |
<!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" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "42aa3ab78c078a0e80603bb6d7502002",
"timestamp": "",
"source": "github",
"line_count": 283,
"max_line_length": 418,
"avg_line_length": 50.522968197879855,
"alnum_prop": 0.6652678696321164,
"repo_name": "v8-dox/v8-dox.github.io",
"id": "978bad77b0499673278bf96bbd08ed34560d79e7",
"si... |
define([
'../Core/defined',
'../Core/DeveloperError',
'../Core/loadImage',
'../ThirdParty/when',
'./CubeMap'
], function(
defined,
DeveloperError,
loadImage,
when,
CubeMap) {
'use strict';
/**
* Asynchronous... | {
"content_hash": "e3014e347d1ad7a5135c6f1f7400f5b4",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 152,
"avg_line_length": 40.09183673469388,
"alnum_prop": 0.5609569865105625,
"repo_name": "LauhLemus10/geojsoncesium",
"id": "d6965900ce3eb2afd34974aa01cb7b6728b92b72",
"si... |
/* $PostgreSQL: pgsql/contrib/ltree/uninstall_ltree.sql,v 1.5 2007/11/13 04:24:28 momjian Exp $ */
-- Adjust this setting to control where the objects get dropped.
SET search_path = public;
DROP OPERATOR CLASS gist__ltree_ops USING gist;
DROP FUNCTION _ltree_same(internal, internal, internal);
DROP FUNCTION _ltree_... | {
"content_hash": "9cbbc1edb12a0ca4ae5c6560077165af",
"timestamp": "",
"source": "github",
"line_count": 240,
"max_line_length": 98,
"avg_line_length": 20.9125,
"alnum_prop": 0.7310221159593544,
"repo_name": "ahachete/gpdb",
"id": "4d976839a4a547d8315760d2c41be29ac995f1d0",
"size": "5019",
"binary... |
#include "SDLFbLocal.h"
NAMESPACE_UPP
#define LLOG(x) //LOG(x)
SDL_Surface *CreateScreen(int w, int h, int bpp, int flags)
{
SDL_Surface * screen = SDL_SetVideoMode(w, h, bpp, flags);
if(!screen)
{
Cout() << Format("Couldn't set display mode: %s\n", SDL_GetError());
return NULL;
}
Cout()... | {
"content_hash": "2e8517021add74fbcdd43cbd4592e1da",
"timestamp": "",
"source": "github",
"line_count": 235,
"max_line_length": 106,
"avg_line_length": 30.7531914893617,
"alnum_prop": 0.6192057561920575,
"repo_name": "dreamsxin/ultimatepp",
"id": "69fa806d9d9071caa138f9e60226b7449313e3e5",
"size": ... |
#ifndef ALIA:ALYSISTASKEMCALJETENERGYFLOW_H
#define ALIANALYSISTASKEMCALJETENERGYFLOW_H
/**
* \file AliAnalysisTaskEmcalJetEnergyFlow.h
* \brief Declaration of class AliAnalysisTaskEmcalJetEnergyFlow
*
* In this header file the class AliAnalysisTaskEmcalJetEnergyFlow is declared
* This is an analysis task which ca... | {
"content_hash": "aa8c958749f2622801b8810449cf6359",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 229,
"avg_line_length": 44,
"alnum_prop": 0.6887226697353279,
"repo_name": "hzanoli/AliPhysics",
"id": "99c2975caf14f0f46c8ed6f93b7133f15aa967e6",
"size": "3476",
"binary... |
"""
Application related tasks for Invoke.
"""
from invoke import Collection
from . import dependencies, env, db, run
from config import BaseConfig
namespace = Collection(
dependencies,
env,
db,
run,
)
namespace.configure({
'app': {
'static_root': BaseConfig.STATIC_ROOT,
}
})
| {
"content_hash": "b1002c64e762b32948641f3c91ac8015",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 46,
"avg_line_length": 14.227272727272727,
"alnum_prop": 0.6517571884984026,
"repo_name": "ssls/beetle-agent",
"id": "4ada6f6932b976f1086fde99b2633304ce520d24",
"size": "33... |
package com.simpligility.maven.plugins.android.configuration;
import static org.junit.Assert.assertArrayEquals;
import org.apache.maven.plugin.MojoExecutionException;
import org.junit.Test;
import com.simpligility.maven.plugins.android.configuration.SimpleVersionElementParser;
/**
* @author Wang Xuerui - idontknw... | {
"content_hash": "3b965c3a08375637db1484e628bae1e5",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 152,
"avg_line_length": 44.96774193548387,
"alnum_prop": 0.703012912482066,
"repo_name": "simpligility/android-maven-plugin",
"id": "a7f9b55cc7cee0e8bbd5796a94b24d8627afe3d4"... |
package scrambleplugin;
import org.newdawn.slick.SlickException;
import com.valarion.gameengine.events.menu.OptionsMenu;
import com.valarion.gameengine.events.menu.ingamemenu.MenuExit;
import com.valarion.gameengine.events.rpgmaker.FlowEventInterface;
import com.valarion.gameengine.gamestates.SubState;
/*... | {
"content_hash": "9e8711de615384b2be0660f54dae19c0",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 66,
"avg_line_length": 27.666666666666668,
"alnum_prop": 0.7560240963855421,
"repo_name": "valarion/JAGE",
"id": "83ebee6e977663f0f3455687120f255f90ed1043",
"size": "1995",... |
<html>
<head>
<title>User agent detail - Alcatel_A205G-B/1.0 ObigoInternetBrowser/Q05A[TF014404009534395004115512532586563]</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=M... | {
"content_hash": "8153afa025c08eb036658bf84600e5c9",
"timestamp": "",
"source": "github",
"line_count": 978,
"max_line_length": 760,
"avg_line_length": 39.70858895705521,
"alnum_prop": 0.5122183597270503,
"repo_name": "ThaDafinser/UserAgentParserComparison",
"id": "ab24d2c1bc84530b497e6eb33e0e99079c0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.