text stringlengths 2 1.04M | meta dict |
|---|---|
if(!dojo._hasResource["dojox.editor.plugins.UploadImage"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.editor.plugins.UploadImage"] = true;
dojo.provide("dojox.editor.plugins.UploadImage");
dojo.require("dijit._editor._Plugin");
dojo.require("... | {
"content_hash": "ad9c019f568765e7c1b07e9a57847772",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 144,
"avg_line_length": 30.339805825242717,
"alnum_prop": 0.66272,
"repo_name": "sonatype/owf",
"id": "8a1be058c421d0b501f64d820275e33bf83e430e",
"size": "3323",
"binary... |
require 'rails_helper'
describe HasFriendship::Friendship do
let(:user){ User.create(name: "Jessie") }
let(:friend){ User.create(name: "Heisenberg") }
describe "associations" do
it { should belong_to(:friendable) }
it { should belong_to(:friend).with_foreign_key(:friend_id) } # Why can't I use '.class_... | {
"content_hash": "4979e5d3ea2c996d13572515c92a8e7d",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 145,
"avg_line_length": 33.04761904761905,
"alnum_prop": 0.665225744476465,
"repo_name": "tkubicek3/my_has_friendships",
"id": "a128627d00d1bbf799cd5db72e3668ceed0ebc14",
"... |
class Vote < ActiveRecord::Base
belongs_to :user
belongs_to :post
validates :value, inclusion: { in: [-1, 1], message: "%{value} is not a valid vote." }
after_save :update_post
def up_vote?
value == 1
end
def down_vote?
value == -1
end
private
def update_post
post.update_rank
e... | {
"content_hash": "2159f2876a353f13bced8ddc44fa4897",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 88,
"avg_line_length": 15.571428571428571,
"alnum_prop": 0.617737003058104,
"repo_name": "erstrong/bloccit",
"id": "cccb46e694b085d66c805dbfc1244c975f8c4e86",
"size": "327"... |
<?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": "f134dd637553fd23c3c7d4d6f3872236",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 402,
"avg_line_length": 49.98148148148148,
"alnum_prop": 0.6824749907373101,
"repo_name": "MiracleWong/HelloWorld",
"id": "ac97686dfe188fdb4f8ba63d7395d495c1c5f121",
"size"... |
<?xml version="1.0"?>
<config>
<modules>
<Genmato_Payment>
<version>15.292.1</version>
</Genmato_Payment>
</modules>
<global>
<models>
<genmato_payment>
<class>Genmato_Payment_Model</class>
</genmato_payment>
</models>
... | {
"content_hash": "1c0094b06f7810381626dc4e115fd8bd",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 69,
"avg_line_length": 27.13888888888889,
"alnum_prop": 0.48311156601842375,
"repo_name": "Genmato/Payment",
"id": "78beaf4328583dd5d7792c49fe739aef892836c7",
"size": "977"... |
# -*- coding: utf-8 -*-
# script.module.python.koding.aio
# Python Koding AIO (c) by whufclee (info@totalrevolution.tv)
# Python Koding AIO is licensed under a
# Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
# You should have received a copy of the license along with this
# wor... | {
"content_hash": "f1ab33af018a4f96e119a156b5a64b75",
"timestamp": "",
"source": "github",
"line_count": 375,
"max_line_length": 207,
"avg_line_length": 44.922666666666665,
"alnum_prop": 0.6534488899442004,
"repo_name": "TheWardoctor/Wardoctors-repo",
"id": "89a53674eb59b0b10c3cdd3e34ebe91cdb9ff3d9",
... |
import React from 'react';
import {shallow} from 'enzyme';
import ReactDOM from 'react-dom';
import {withDefaultNowContext, testContext} from '../testing/NowContainer';
import HomeInsights from './HomeInsights';
import CheckStudentsWithLowGrades from './CheckStudentsWithLowGrades';
import CheckStudentsWithHighAbsences ... | {
"content_hash": "a156b2c2d8497f556e838d809ff01e89",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 94,
"avg_line_length": 35.725,
"alnum_prop": 0.7200839748075577,
"repo_name": "studentinsights/studentinsights",
"id": "a8886e2b4f8cb5784ee00b0bedd30903cdd9b7d6",
"size": "... |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>@uirouter/core/state/stateBuilder | @uirouter/angular</title>
<meta name="description" content="Documentation for @uirouter/angular">
<meta name="viewport" content="width=device-w... | {
"content_hash": "50ef90de1803b9edb2baf83517fc5847",
"timestamp": "",
"source": "github",
"line_count": 299,
"max_line_length": 620,
"avg_line_length": 54.147157190635454,
"alnum_prop": 0.6568252007411983,
"repo_name": "ui-router/ui-router.github.io",
"id": "6548f717470f3be1aad0461b9b1b14d311b4b672",... |
package org.apache.druid.segment.filter;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.google.common.collect.ImmutableSet;
import org.apache.druid.java.util.common.StringUtils;
import org.apache.druid.query.BitmapResultFactory;
import org.apache.druid.query.extracti... | {
"content_hash": "303896ed001730969bdf1dd93a86cf39",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 116,
"avg_line_length": 30.587878787878786,
"alnum_prop": 0.7501486031305726,
"repo_name": "deltaprojects/druid",
"id": "6029db54e5458e367be48f209c9eb402b3b36694",
"size":... |
/**
*
*/
package com.sivalabs.jcart.admin.security;
/**
* @author Siva
*
*/
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authent... | {
"content_hash": "a7e4d319ada029d9932c5dacee3ac376",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 107,
"avg_line_length": 38.36363636363637,
"alnum_prop": 0.7010268562401264,
"repo_name": "sivaprasadreddy/jcart",
"id": "a8bc9b2bb365d99728ac3713a7244552ed63b7c9",
"size":... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("03.... | {
"content_hash": "499699ab32983a649c589fb019ce47c0",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 38.833333333333336,
"alnum_prop": 0.7474964234620887,
"repo_name": "krasiymihajlov/Soft-Uni-practices",
"id": "ce51ce1e74fa82f060637ddaeb2eb594882fe6c2... |
// This file is automatically generated.
package adila.db;
/*
* Polaroid Infinite
*
* DEVICE: MID1324
* MODEL: MID 1324
*/
final class mid1324_mid201324 {
public static final String DATA = "Polaroid|Infinite|";
}
| {
"content_hash": "b6ea9ba431538ce419b0d149c438b0d3",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 59,
"avg_line_length": 17.23076923076923,
"alnum_prop": 0.6964285714285714,
"repo_name": "karim/adila",
"id": "a7e08161f0a956bce1d06985277b24d392eaaa79",
"size": "224",
"... |
import { browserHistory } from 'react-router';
export const history = browserHistory;
| {
"content_hash": "ca82ecf2ec029bde01043332ff79915d",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 46,
"avg_line_length": 29,
"alnum_prop": 0.7701149425287356,
"repo_name": "tiberiusuciu/rpg-io",
"id": "3ae2ab6a47715030c71a5faf6eb43031c084ead0",
"size": "87",
"binary": ... |
A Ruby gem for managing version numbers in a project.
## Installation
Add this line to your application's Gemfile:
gem 'aversion'
And then execute:
$ bundle
Or install it yourself as:
$ gem install aversion
## Usage
Add the following line to your capistrano recipe:
require 'aversion/capistrano... | {
"content_hash": "f3f8f6ca3d468642df71c265a411311e",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 64,
"avg_line_length": 19.344827586206897,
"alnum_prop": 0.7201426024955436,
"repo_name": "westarete/aversion",
"id": "cd10baa2f5f3a0af68d36c013b93e56114009b94",
"size": "5... |
namespace ShadowPanelTest
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <par... | {
"content_hash": "011603c03938b9d3d75fe569537aafe3",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 145,
"avg_line_length": 35.403225806451616,
"alnum_prop": 0.564009111617312,
"repo_name": "flysnoopy1984/DDZ_Live",
"id": "ea7c6549a53a985959c3d9c881f51c0dc48c4973",
"size"... |
package Dec2020Leetcode;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
public class _0957PrisonCellsAfterNDays {
public static void main(String[] args) {
System.out.println(Arrays.toString(prisonAfterNDays(new int[] { 0, 1, 0, 1, 1, 0, 0, 1 }, 7)));
System.out.println(Arrays.toStr... | {
"content_hash": "8b97473ebaa1eaae6c6a88cb34eea1ed",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 106,
"avg_line_length": 31.76923076923077,
"alnum_prop": 0.6408393866020985,
"repo_name": "darshanhs90/Java-Coding",
"id": "f505c9176e4c015c3a262c858164267a7c99a4b7",
"size... |
'use strict';
_.sum = function(arr) { return _.reduce(arr, function(a, b) { return a+b; }, 0); };
_.average = function(arr) { return _.sum(arr) / arr.length; };
_.clamp = function(value, min, max) { return Math.min(max, Math.max(min, value)); };
angular.module('audioVizApp')
.constant('BLEND_DURATION', 1000)
.con... | {
"content_hash": "8d9edc6b96cf946436c89c8239145a0f",
"timestamp": "",
"source": "github",
"line_count": 181,
"max_line_length": 99,
"avg_line_length": 32.8232044198895,
"alnum_prop": 0.5940077428042417,
"repo_name": "UIKit0/WebGL-Audio-Visualization",
"id": "5491e3795aa971372b1f32c09535aad41fe819a9",... |
<?php
namespace PHPSocketIO\Event;
use Symfony\Component\EventDispatcher\Event;
use PHPSocketIO\ConnectionInterface;
/**
* Description of MessageEvent
*
* @author ricky
*/
class MessageEvent extends Event
{
protected $message;
protected $connection;
protected $endpoint;
public function getEndpo... | {
"content_hash": "9971349577ee415d7c1910ac116b542d",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 66,
"avg_line_length": 16.425925925925927,
"alnum_prop": 0.6268320180383314,
"repo_name": "yiliaofan/phpsocket.io",
"id": "c34aa67ffc341cd422270d0a25a728cef9caf897",
"size"... |
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright 2016 "Henry Tao <hi@henrytao.me>"
~
~ 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/L... | {
"content_hash": "57e361591a75d578dfa4f7ba2f857648",
"timestamp": "",
"source": "github",
"line_count": 108,
"max_line_length": 76,
"avg_line_length": 28.77777777777778,
"alnum_prop": 0.638030888030888,
"repo_name": "henrytao-me/android-md-core",
"id": "0d45f96fa08f51d1a69ffdf3d8129835257ddbea",
"s... |
ACCEPTED
#### According to
Euro+Med Plantbase
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "c0e591540a546bd1e46198aa1d38953c",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 18,
"avg_line_length": 8.692307692307692,
"alnum_prop": 0.6814159292035398,
"repo_name": "mdoering/backbone",
"id": "45e6f531c7c59d00286d7d3a5010275e7afd8b8b",
"size": "186... |
module Aqua
module Initializers
def self.included( klass )
klass.class_eval do
include InstanceMethods
extend ClassMethods
unless methods.include?( :transient_attr )
include Aqua::Pack::HiddenAttributes
end
end
end
module InstanceMethod... | {
"content_hash": "31fa5d5fb523cab0505fa2d78baeedd4",
"timestamp": "",
"source": "github",
"line_count": 302,
"max_line_length": 159,
"avg_line_length": 23.456953642384107,
"alnum_prop": 0.5765104460756635,
"repo_name": "baccigalupi/aqua",
"id": "82ea18e88fad36fe4ca0486bb804fe7375026d5d",
"size": "7... |
#include <aws/managedblockchain/model/Network.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ManagedBlockchain
{
namespace Model
{
Network::Network() :
m_idHasBeenSet(false),
m_nameHasBeenSet(f... | {
"content_hash": "f462a5db7bb0d4f706629f7c8a9cd2d0",
"timestamp": "",
"source": "github",
"line_count": 230,
"max_line_length": 94,
"avg_line_length": 21.091304347826085,
"alnum_prop": 0.7052154195011338,
"repo_name": "awslabs/aws-sdk-cpp",
"id": "0d09998587c38a5ca490679110c9e80f556b4c28",
"size": ... |
<?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="wrap_content">
<ImageView
android:id="@+id/app_icon"
android:layout_width="55dp"
android:layout_h... | {
"content_hash": "1169a2e508bdb5552f81cded302a01f2",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 72,
"avg_line_length": 32.51851851851852,
"alnum_prop": 0.7072892938496583,
"repo_name": "casidiablo/app.color",
"id": "c6644d18b7c07e66f64c69483c0db535e1ff5e9d",
"size": "... |
var config = require('config')
var sendgrid = require('sendgrid')(config.email.sendgrid.username, config.email.sendgrid.password)
var validator = require('validator')
var logger = require('../../../lib/logger.js')()
exports.post = function (req, res) {
var subject = config.email.feedback_subject
var to = []
var ... | {
"content_hash": "8298ce7ff144538013cef8017406a29a",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 98,
"avg_line_length": 26.52857142857143,
"alnum_prop": 0.6375875067312871,
"repo_name": "macGRID-SRN/streetmix",
"id": "34f19f1aab8d87201e9d455ae7e42e56eafb8b41",
"size": ... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "a536d90bd5f0e73e7934b503642f2765",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 18,
"avg_line_length": 8.384615384615385,
"alnum_prop": 0.6788990825688074,
"repo_name": "mdoering/backbone",
"id": "4f37233ce00a6fba1a025487ab555223dbe784ee",
"size": "176... |
<!--
This file is auto-generated from fbocolorbuffer_test_generator.py
DO NOT EDIT!
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>WebGL FBO Color Buffer Conformance Tests</title>
<link rel="stylesheet" href="../../../../resources/js-test-style.css"/>
<script src="../../... | {
"content_hash": "b9d2ce2b93acd4caeef8a90403df35fb",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 74,
"avg_line_length": 29.9375,
"alnum_prop": 0.6722338204592901,
"repo_name": "endlessm/chromium-browser",
"id": "e01cee3b22fe8c4f6d4c5c81bc65ebad3552fcf2",
"size": "958",... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "eb468f95bba374180aea318f429fa92b",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "687815c552dccb6f47f8e0f8d21d18b8b96826b8",
"size": "173... |
var CACHE_NAME = 'dependencies-cache';
self.addEventListener('install', function(event) {
// Perform the install step:
// * Load a JSON file from server
// * Parse as JSON
// * Add files to the cache list
// Message to simply show the lifecycle flow
console.log('[install] Kicking off service worker regist... | {
"content_hash": "ba6856da519d7e80605cd6ab479adfec",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 92,
"avg_line_length": 33.23880597014925,
"alnum_prop": 0.6281993713515941,
"repo_name": "mozilla/serviceworker-cookbook",
"id": "ced2cc3a4486c3ccc11d3532bc727112f56c9d6a",
... |
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>UMEDITOR 提交示例</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="../themes/default/_css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/j... | {
"content_hash": "11a680aa4e5cf604ffe0d6cf35d88c62",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 94,
"avg_line_length": 32.96078431372549,
"alnum_prop": 0.6252230814991077,
"repo_name": "GaryGo/CodeIgniter-MiniBlog",
"id": "210ac3bd8ceb1216846f553c87a837ab985a76e6",
"s... |
using HTTPlease.Testability;
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace DD.CloudControl.Client.Tests
{
using Models.Directory;
/// <summary>
/// The base class for API client test suites.
/// </summary>
public abstract class ClientTestBase
{
/// <summary>
/// The organisa... | {
"content_hash": "4ca8cd19ff25c4c1aefc394f3c02422a",
"timestamp": "",
"source": "github",
"line_count": 162,
"max_line_length": 138,
"avg_line_length": 28.734567901234566,
"alnum_prop": 0.6891514500537057,
"repo_name": "DimensionDataResearch/cloudcontrol-client-core",
"id": "fea91f5f27b8cdf36d36cfd99... |
@protocol NIMAdvancedTeamCardHeaderViewDelegate <NSObject>
- (void)onTouchAvatar:(id)sender;
@end
@interface NIMAdvancedTeamCardHeaderView : UIView
@property (nonatomic,strong) NIMAvatarImageView *avatar;
@property (nonatomic,strong) UILabel *titleLabel;
@property (nonatomic,strong) UILabel *numberLabel;
@proper... | {
"content_hash": "416171cf4642463475a6cfa7bd8b6fe0",
"timestamp": "",
"source": "github",
"line_count": 1080,
"max_line_length": 324,
"avg_line_length": 37.26759259259259,
"alnum_prop": 0.6559169171904892,
"repo_name": "coderMONSTER/ioscelebrity",
"id": "763b560d714c460e93c0055192e2418c844ae2d7",
"... |
<?php
/**
* Adminhtml sales create order product search grid product name column renderer
*
* @category Mage
* @package Mage_Adminhtml
* @author Magento Core Team <core@magentocommerce.com>
*/
class Mage_Adminhtml_Block_Sales_Order_Create_Search_Grid_Renderer_Product extends Mage_Adminhtml_Block_Widge... | {
"content_hash": "ecc91e2f0cd9bc33074ba1f95cb5d536",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 139,
"avg_line_length": 36.607142857142854,
"alnum_prop": 0.6204878048780488,
"repo_name": "5452/durex",
"id": "c285f2df9f720594d29be0dbee34747c6d0cd2d2",
"size": "1983",
... |
using bytePassion.Lib.WpfLib.ViewModelBase;
namespace OQF.CommonUiElements.Info.Pages.PageViewModels.BotVsBotInfoPage
{
internal interface IBotVsBotInfoPageViewModel : IViewModel, IPage
{
}
} | {
"content_hash": "43ac2efed1879bda429776ccf198f691",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 73,
"avg_line_length": 22.11111111111111,
"alnum_prop": 0.8190954773869347,
"repo_name": "bytePassion/OpenQuoridorFramework",
"id": "0f5d57cfc6d472675dacbe1a67f8774f67d2488e",... |
/* TODO: shared styles with deposit-workflow__banner -- extract common component? */
.issue-prepaid-card-workflow__banner {
padding-right: var(--boxel-sp);
}
.issue-prepaid-card-workflow__banner p {
margin: 0;
}
.issue-prepaid-card-workflow__banner small {
display: block;
color: var(--boxel-light-300);
font... | {
"content_hash": "521274a6044b92b4cac59c5ed62aad77",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 84,
"avg_line_length": 23.857142857142858,
"alnum_prop": 0.6796407185628742,
"repo_name": "cardstack/cardstack",
"id": "ca6cf7830aa27d1b18e6a4d34b6f16a971524fbf",
"size": "... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "16c638fcd88912e27eb436195fabd467",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "88a04f551e142f6fb5bb05a116d7465ddfca73f6",
"size": "179... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Azure.AI.FormRecognizer.Tests
{
/// <summary>
/// A static class that lumps together the filenames of all forms to be used for tests.
/// A single constant string must be added to this class for each ... | {
"content_hash": "dc4a87e2cb75f930b246c1be4626ad47",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 91,
"avg_line_length": 43,
"alnum_prop": 0.6674418604651163,
"repo_name": "AsrOneSdk/azure-sdk-for-net",
"id": "c8e360f99a31a90b7d31ea505ed90ee0a1c32137",
"size": "3012",
... |
import usb.core
import usb.util
import sys, math
import json
# find our device
dev = usb.core.find(idVendor=0x04d8, idProduct=0x003f)
# was it found?
if dev is None:
raise ValueError('Device not found')
interface = 0
if dev.is_kernel_driver_active(interface) is True:
print "but we need to detach ker... | {
"content_hash": "483bd432b257eaf2753f05419635c661",
"timestamp": "",
"source": "github",
"line_count": 195,
"max_line_length": 166,
"avg_line_length": 49.43589743589744,
"alnum_prop": 0.641597510373444,
"repo_name": "manojmo/pic_micro",
"id": "ad41cff041bab4c5aa4ec35ca267528d4b4193a7",
"size": "96... |
import React, { PropTypes } from 'react';
import styles from './App.css';
import './styles/globalStyles.css';
import Navbar from 'components/Navbar.js';
import Perf from 'react-addons-perf';
import Notification from 'components/Notification.js';
const devMode = process.env.NODE_ENV !== 'production';
if (devMode) {
w... | {
"content_hash": "39214fae3aabd10fbf479c70ca223e3e",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 54,
"avg_line_length": 24.441176470588236,
"alnum_prop": 0.6353790613718412,
"repo_name": "kinseyost/immutable-redux",
"id": "3e71f00318651232badeb2f6859d1e7f19bf0272",
"si... |
## @file
# preprocess source file
#
# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found ... | {
"content_hash": "0c070b86ef034f0644b9b20787eefdd3",
"timestamp": "",
"source": "github",
"line_count": 624,
"max_line_length": 168,
"avg_line_length": 42.291666666666664,
"alnum_prop": 0.549677908298598,
"repo_name": "egraba/vbox_openbsd",
"id": "09799a89b26a90bf05eb52c01d34d43b1faeaa12",
"size": ... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "b39c158e743f844f483a079c730f34f5",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "3f694b86e8f0888094d5c6a5619b1f75701de601",
"size": "184... |
//
// Created by Andrey on 12/11/14.
// Copyright (c) 2014 Andrey Gayvoronsky. All rights reserved.
//
#import "FXModelValidator.h"
/**
* FXModelRequiredValidator validates that the specified attribute is not empty or have required value.
*/
@interface FXModelRequiredValidator : FXModelValidator
/**
* The desired va... | {
"content_hash": "a03684baa9601ded025e1a6791f709b0",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 102,
"avg_line_length": 31.476190476190474,
"alnum_prop": 0.7609682299546142,
"repo_name": "plandem/FXModelValidation",
"id": "12215499ea693eea260c678c0d0c68af10904faa",
"s... |
<?php
class LineTest extends PHPUnit_Framework_TestCase
{
public function testOne()
{
$info = Embed\Embed::create('https://line.do/embed/8oq/vertical');
$this->assertEquals($info->title, 'PHP Evolution');
$this->assertEquals($info->type, 'rich');
$this->assertEquals($info->code,... | {
"content_hash": "3e4ee75c52f81354924fe8cb37ab0adc",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 203,
"avg_line_length": 44.875,
"alnum_prop": 0.6434540389972145,
"repo_name": "daveross/Embed",
"id": "f9bd7d893acbd8be986957da3c9c3198cb8876cd",
"size": "718",
"binary"... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
/**
* LoginForm is the model behind the login form.
*
* @property User|null $user This property is read-only.
*
*/
class LoginForm extends Model {
public $username;
public $password;
public $rememberMe = true;
private $_user = false;
... | {
"content_hash": "99f4507cf5776ee22331e0bd7ec12368",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 100,
"avg_line_length": 26.466666666666665,
"alnum_prop": 0.5571788413098236,
"repo_name": "mateso/gac",
"id": "5a764c06a28946e8b83c8824b7f9ffe8db88e5e3",
"size": "1985",
... |
FROM biocontainers/biocontainers:debian-stretch-backports
MAINTAINER biocontainers <biodocker@gmail.com>
LABEL software="melting" \
container="melting" \
about.summary="compute the melting temperature of nucleic acid duplex" \
about.home="http://www.ebi.ac.uk/compneur-srv/melting/" \
software.ver... | {
"content_hash": "f5ff53cec0d26cfb2b42d9aaca6c2b71",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 192,
"avg_line_length": 55.6,
"alnum_prop": 0.7194244604316546,
"repo_name": "BioDocker/containers",
"id": "7f1c18996aaefa8934f8e5132f1d827458758cfc",
"size": "834",
"bin... |
var keyMirror = require('react/lib/keyMirror');
module.exports = keyMirror({
LIST_CREATE: null,
LIST_DESTROY: null,
LIST_UPDATE_TITLE: null
}); | {
"content_hash": "7cd69af3f6c23c28a81a9d380ed6e043",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 47,
"avg_line_length": 21.428571428571427,
"alnum_prop": 0.7066666666666667,
"repo_name": "rafaelchiti/board",
"id": "5c9e6b92349a9ead894f2a12a60e530338b0720e",
"size": "150... |
import urlconf_inner
class ChangeURLconfMiddleware(object):
def process_request(self, request):
request.urlconf = urlconf_inner.__name__
class NullChangeURLconfMiddleware(object):
def process_request(self, request):
request.urlconf = None
| {
"content_hash": "24d11822a6d2ca05c9003aa2da55e822",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 48,
"avg_line_length": 29.444444444444443,
"alnum_prop": 0.7320754716981132,
"repo_name": "disqus/django-old",
"id": "7bc42f8df4fc8296269f733553888d126ae85eb8",
"size": "265... |
<?php
namespace AppBundle\Tests\Domain\ValueObject\Email;
use AppBundle\Domain\ValueObject\Email;
class ConstructorTest extends \PHPUnit_Framework_TestCase
{
public function testConstructor()
{
$word = 'test@example.com'; // 6 characters
$email = new Email($word);
$this->assertSame($w... | {
"content_hash": "58f2aaf45bee1e3bbf016865766a715c",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 86,
"avg_line_length": 23.5,
"alnum_prop": 0.55,
"repo_name": "djmarland/clrk-symfony",
"id": "425d4993307e69cd0b7aecae6d3ba0691c2742a3",
"size": "940",
"binary": false,
... |
<?php
class Consumer_Model_ConsumersUsers extends Zend_Db_Table_Abstract
{
protected $_name = 'consumers_users';
protected $_primary = 'consumer_id';
protected $_referenceMap = array(
'ConsumerUser' => array(
'columns' => array('consumer_id'),
... | {
"content_hash": "7c59043cd9d604af7fece793cda9107b",
"timestamp": "",
"source": "github",
"line_count": 97,
"max_line_length": 108,
"avg_line_length": 29.443298969072163,
"alnum_prop": 0.4565826330532213,
"repo_name": "scottyadean/socialWorks",
"id": "68d7d87d1bf1b074c8323c0a60473965af8bdb7d",
"siz... |
protobuf_mutator::protobuf::LogSilencer log_silencer;
namespace net_reporting_header_parser_fuzzer {
void FuzzReportingHeaderParser(const std::string& data_json,
const net::ReportingPolicy& policy) {
net::TestReportingContext context(base::DefaultClock::GetInstance(),
... | {
"content_hash": "10d7d8e483ed3effcda58e36c9c1a12f",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 79,
"avg_line_length": 43.470588235294116,
"alnum_prop": 0.6982408660351827,
"repo_name": "endlessm/chromium-browser",
"id": "d52179fc790b4eadca43824b75fff8589df68df7",
"si... |
package com.hazelcast.query.impl;
import java.util.AbstractSet;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import static com.hazelcast.internal.util.SetUtil.createHashSet;
/**
* Or result set for Predicates.
*/
public class OrRe... | {
"content_hash": "fa0de9668f629efc4e94a2403e78e526",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 110,
"avg_line_length": 26.88888888888889,
"alnum_prop": 0.5771349862258953,
"repo_name": "emre-aydin/hazelcast",
"id": "00f06065bda652c32ec8bcde279a9459901d09ff",
"size": ... |
#import "FBTask.h"
#import "FBRunLoopSpinner.h"
#import "FBTaskConfiguration.h"
#import "FBControlCoreError.h"
#import "FBControlCoreLogger.h"
#import "FBFileDataConsumer.h"
#import "FBFileReader.h"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-retain-cycles"
NSString *const FBTaskErrorDoma... | {
"content_hash": "8b9c907118675618ad9950b6ad3f8e73",
"timestamp": "",
"source": "github",
"line_count": 537,
"max_line_length": 243,
"avg_line_length": 25.886405959031656,
"alnum_prop": 0.7373570246744838,
"repo_name": "ichu501/FBSimulatorControl",
"id": "74fd21b8b53f92bf1f051aa06243a87882b5ce15",
... |
<?php
namespace DFZ\Dola\Database;
use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\DBAL\Schema\TableDiff;
use DFZ\Dola\Database\Schema\SchemaManager;
use DFZ\Dola\Database\Schema\Table;
use DFZ\Dola\Database\Types\Type;
class DatabaseUpdater
{
protected $tableArr;
prot... | {
"content_hash": "8cc43464d92ad0f071af23b07475df94",
"timestamp": "",
"source": "github",
"line_count": 190,
"max_line_length": 95,
"avg_line_length": 26.852631578947367,
"alnum_prop": 0.5552724421795374,
"repo_name": "jaeder/Dola",
"id": "41f668bcc468e90baee277478c056cfd91396d76",
"size": "5102",
... |
CoconutKit is a library of high-quality iOS components written at [hortis le studio](http://www.hortis.ch/) and in my spare time. It includes several tools for dealing with view controllers, multi-threading, animations, as well as some new controls and various utility classes. These components are meant to make the lif... | {
"content_hash": "7457608e46f72684a43111f62a33b592",
"timestamp": "",
"source": "github",
"line_count": 360,
"max_line_length": 614,
"avg_line_length": 77.80833333333334,
"alnum_prop": 0.7956517082574702,
"repo_name": "bboyfeiyu/CoconutKit",
"id": "cd51fbf09c68da67ca255de043de379b083e9a1a",
"size":... |
import cStringIO
import csv
import datetime
import functools
import hashlib
import itertools
import json
import logging
import time
from funcy import project
import xlsxwriter
from flask_login import AnonymousUserMixin, UserMixin
from flask_sqlalchemy import SQLAlchemy
from passlib.apps import custom_app_context as p... | {
"content_hash": "cd0b32497492e47bf74e161964e6142c",
"timestamp": "",
"source": "github",
"line_count": 1608,
"max_line_length": 138,
"avg_line_length": 35.32960199004975,
"alnum_prop": 0.594367188875198,
"repo_name": "useabode/redash",
"id": "d298267dd8d69bbc82af2bfb624487ab39983754",
"size": "568... |
#ifndef SkJpegInfo_DEFINED
#define SkJpegInfo_DEFINED
#include "SkSize.h"
class SkData;
struct SkJFIFInfo {
SkISize fSize;
enum Type {
kGrayscale,
kYCbCr,
} fType;
};
/** Returns true iff the data seems to be a valid JFIF JPEG image.
If so and if info is not nullptr, populate info.
... | {
"content_hash": "fc948d288dc4a8f5147c45b8a8a57476",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 66,
"avg_line_length": 20.692307692307693,
"alnum_prop": 0.6728624535315985,
"repo_name": "tmpvar/skia.cc",
"id": "39de99455af110bed49ac9089f5fc48818456360",
"size": "681",... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_27) on Wed Nov 21 16:03:56 EST 2012 -->
<TITLE>
Uses of Class org.pentaho.di.ui.trans.steps.fuzzymatch.FuzzyMatchDialog
</TITLE>
<META NAME="date" C... | {
"content_hash": "1e0bf2183a1bc48ad4993d6435e003af",
"timestamp": "",
"source": "github",
"line_count": 144,
"max_line_length": 263,
"avg_line_length": 43.520833333333336,
"alnum_prop": 0.6068294239668103,
"repo_name": "ColFusion/PentahoKettle",
"id": "3969b9605852f5c18bfe75ad8b30debf7efd0040",
"si... |
package cmd
import (
"testing"
"github.com/drud/ddev/pkg/exec"
"github.com/stretchr/testify/assert"
)
// TestDevRestart runs `drud legacy restart` on the test apps
func TestDevRemove(t *testing.T) {
assert := assert.New(t)
// Make sure we have running sites.
addSites()
for _, site := range DevTestSites {
... | {
"content_hash": "098fdb7fbcd453a4c4c697e4c1d284d0",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 93,
"avg_line_length": 22.857142857142858,
"alnum_prop": 0.69375,
"repo_name": "cyberswat/ddev",
"id": "db5c17dbed53df8256dfd07115bdc8b0d53f031b",
"size": "640",
"binary"... |
'use strict'
var DashboardPage = require('./dashboard-view');
var DeployedProcessesListPage = require('./deployed-processes-list');
var DeployedProcessesPreviewsPage = require('./deployed-processes-previews');
var DeployedDecisionsListPage = require('./deployed-decisions-list');
var AuthenticationPage = require('../..... | {
"content_hash": "1d6ab4d4fa659eb6b1759260eac8eb2e",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 79,
"avg_line_length": 42.5,
"alnum_prop": 0.8029411764705883,
"repo_name": "nagyistoce/camunda-bpm-webapp",
"id": "9c2891126666f8437e60972cc8bd0f6c06e776df",
"size": "680"... |
<!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": "c9b252eb684ea8c2c750e260d0a12afd",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 244,
"avg_line_length": 43.64341085271318,
"alnum_prop": 0.6587921847246891,
"repo_name": "bhargavipatel/808X_VO",
"id": "abc5b8c1b2400866ffd1451c301dd8f662133eff",
"size"... |
package palindrome
import (
"errors"
"strconv"
)
// Define Product type here.
type Product struct {
palindrome int
Factorizations [][2]int
}
func Products(fmin, fmax int) (min Product, max Product, e error) {
if fmin > fmax {
// This error message doesn't conform to go-staticcheck but this problem expects... | {
"content_hash": "bb12a189f6d9ca4836851ad34da00fdf",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 106,
"avg_line_length": 24.045454545454547,
"alnum_prop": 0.6786389413988658,
"repo_name": "rootulp/exercism",
"id": "8311102b3df657254d85d293f1b3e326a5f8ae82",
"size": "21... |
<!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 (version 1.7.0_45) on Fri Feb 07 15:41:29 IST 2014 -->
<title>player Class Hierarchy</title>
<meta name="date" content="2014-02-07">
<link rel="styles... | {
"content_hash": "25edbcf0047e0e3e0c2fa4f77db4362a",
"timestamp": "",
"source": "github",
"line_count": 153,
"max_line_length": 255,
"avg_line_length": 41.42483660130719,
"alnum_prop": 0.6599873777216788,
"repo_name": "soupi/FourRow",
"id": "75eeed019be0c6fe8b9b6581c80df35dd5512979",
"size": "6338"... |
package org.apache.pulsar.io;
import static org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest.retryStrategically;
import static org.apache.pulsar.functions.worker.PulsarFunctionLocalRunTest.getPulsarIODataGeneratorNar;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull... | {
"content_hash": "cc5bc7b2c54b4d5cf566d0daee0f8271",
"timestamp": "",
"source": "github",
"line_count": 198,
"max_line_length": 167,
"avg_line_length": 53.46969696969697,
"alnum_prop": 0.6827240955889298,
"repo_name": "yahoo/pulsar",
"id": "2dea2fb020eddd5c32e4d82f4c5733c5caa177ca",
"size": "11395"... |
package greycat.utility.distance;
public class Distances {
public static final int EUCLIDEAN = 0;
public static final int GEODISTANCE = 1;
public static final int COSINE = 2;
public static final int PEARSON = 3;
public static final int GAUSSIAN = 4;
public static final int DEFAULT = EUCLIDE... | {
"content_hash": "371aa44ce863b1ed7a705ac869cc434f",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 76,
"avg_line_length": 28.580645161290324,
"alnum_prop": 0.6117381489841986,
"repo_name": "Neoskai/greycat",
"id": "e4504a1266e0ffc240e4be904e45b363b2ec3c3d",
"size": "1520... |
package org.dync.giftlibrary.util;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
/**
* Created by KathLine on 2017/4/27.
*/
public class RecyclerViewUtil {
private RecyclerView mRecy... | {
"content_hash": "0c99273220a0c040c5ea16ac1e8306e9",
"timestamp": "",
"source": "github",
"line_count": 85,
"max_line_length": 103,
"avg_line_length": 34.529411764705884,
"alnum_prop": 0.6173764906303236,
"repo_name": "DyncKathline/LiveGiftLayout",
"id": "ced8b15d9aa0b47ca467498805490cee580d3e97",
... |
package org.dyn4j.geometry.hull;
import org.dyn4j.geometry.Geometry;
import org.dyn4j.geometry.Vector2;
/**
* Represents an algorithm used to create a convex hull of a given point set.
* @author William Bittle
* @version 3.0.1
* @since 2.2.0
*/
public interface HullGenerator {
/**
* Returns the... | {
"content_hash": "e736771d91f68dd90e02b203b4b0f3b3",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 110,
"avg_line_length": 34.791666666666664,
"alnum_prop": 0.7053892215568862,
"repo_name": "yuripourre/etyllica-physics",
"id": "720efa06b8c184121c63ddd3855ffb6b9f1d95a6",
... |
const char *CDABlockToPerformKey = "CDABlockToPerform";
const char *CDABlocksToPerformKey = "CDABlocksToPerform";
const char *CDAAuditingMultipleBlocksKey = "CDAAuditingMultipleBlocks";
@implementation NSManagedObjectContext (Leech)
- (void)Leech_PerformBlock:(core_data_perform_t)block {
NSNumber *multipleAuditFl... | {
"content_hash": "ce2ddcd2bdca15f3025a02b61bd4661a",
"timestamp": "",
"source": "github",
"line_count": 202,
"max_line_length": 174,
"avg_line_length": 46.31683168316832,
"alnum_prop": 0.7727661393758016,
"repo_name": "samodom/Leech",
"id": "ad36b958f805666566f573c0149559bfc8916ece",
"size": "9759"... |
package org.pentaho.di.ui.job.entries.sqoop;
import org.apache.commons.vfs.FileObject;
import org.pentaho.di.core.exception.KettleFileException;
import org.pentaho.di.core.hadoop.HadoopSpoonPlugin;
import org.pentaho.di.i18n.BaseMessages;
import org.pentaho.di.job.JobMeta;
import org.pentaho.di.job.entries.sqoop.Abs... | {
"content_hash": "0e3f5950fee68ee385812014542edae7",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 168,
"avg_line_length": 36.51470588235294,
"alnum_prop": 0.7652033830044301,
"repo_name": "mtseu/big-data-plugin",
"id": "183de3073667edbe841864bec8a36558b4b2ddf9",
"size":... |
#include <shogun/features/DotFeatures.h>
#include <shogun/mathematics/linalg/LinalgNamespace.h>
#include <shogun/structure/HierarchicalMultilabelModel.h>
#include <shogun/structure/MultilabelSOLabels.h>
#include <shogun/lib/DynamicArray.h>
using namespace shogun;
CHierarchicalMultilabelModel::CHierarchicalMultilabe... | {
"content_hash": "1e8345fe77369729b5f1993cef5128ff",
"timestamp": "",
"source": "github",
"line_count": 296,
"max_line_length": 105,
"avg_line_length": 26.54054054054054,
"alnum_prop": 0.6563136456211812,
"repo_name": "sorig/shogun",
"id": "d111db157a3478cbe2eac9afb2cd7bab220a3be5",
"size": "8047",... |
package org.springframework.security.oauth2.provider.token.store;
import static org.junit.Assert.*;
import java.security.KeyPair;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import org.junit.Before;
import org.junit.Test;
import org.springframework.core.io.ClassPathResource;
import org... | {
"content_hash": "7f68bfd63b309a3fcc62903228e7d880",
"timestamp": "",
"source": "github",
"line_count": 186,
"max_line_length": 234,
"avg_line_length": 44.043010752688176,
"alnum_prop": 0.783203125,
"repo_name": "ahmadOwais/spring-security-oauth",
"id": "137e102072fcce9e084a45b4d60be31a2e8cf97e",
"... |
package main_test
import (
"cmd/go/internal/script"
"cmd/go/internal/script/scripttest"
"cmd/go/internal/work"
"errors"
"fmt"
"os"
"os/exec"
"strings"
"time"
)
func scriptCommands(interrupt os.Signal, waitDelay time.Duration) map[string]script.Cmd {
cmds := scripttest.DefaultCmds()
// Customize the "exec"... | {
"content_hash": "5a5ab5ff61a92112d2c9d4ac7d85f78f",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 89,
"avg_line_length": 25.16190476190476,
"alnum_prop": 0.6305828917486752,
"repo_name": "golang/go",
"id": "db5e6cafdafe51d5a94f97e0841f1c3e9fa62a27",
"size": "2802",
"... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent... | {
"content_hash": "7955fc72fd8206eabd2a36599e8ef07d",
"timestamp": "",
"source": "github",
"line_count": 312,
"max_line_length": 77,
"avg_line_length": 38.1025641025641,
"alnum_prop": 0.5397880215343204,
"repo_name": "kydiwen/GeneralFoodSafe",
"id": "a8397f01db4adf41ff322064a1b9e9fcaa06e825",
"size"... |
/* $Id: getopt.cpp $ */
/** @file
* IPRT - Command Line Parsing
*/
/*
* Copyright (C) 2007-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms ... | {
"content_hash": "9316fa74cd032c0fc3a123eb620a1d5e",
"timestamp": "",
"source": "github",
"line_count": 753,
"max_line_length": 122,
"avg_line_length": 37.419654714475435,
"alnum_prop": 0.5245058026049615,
"repo_name": "egraba/vbox_openbsd",
"id": "ac582095606741da06da0ff5b5926f5e2b1fb40c",
"size":... |
import { Component, Input, OnInit,OnDestroy } from '@angular/core';
import { FORM_DIRECTIVES, ControlGroup } from '@angular/common';
import {Subject, Observable, BehaviorSubject} from 'rxjs';
import { CHECKLIST_FORM_DIRECTIVES } from './directives/index';
import { QuestionBase }... | {
"content_hash": "81680ac23c69d2cf5f817e4754f9d052",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 101,
"avg_line_length": 43.31818181818182,
"alnum_prop": 0.657922350472193,
"repo_name": "crimsonskyfalling/ocean-seed",
"id": "36615f640cd4955df86fae811d429a84ef8da0b4",
"... |
import gettext as gettext_module
import importlib
import json
import os
from django import http
from django.apps import apps
from django.conf import settings
from django.template import Context, Engine
from django.urls import translate_url
from django.utils import six
from django.utils._os import upath
from django.uti... | {
"content_hash": "e70fcf9a6b2b581fcbf50a77821b4e12",
"timestamp": "",
"source": "github",
"line_count": 357,
"max_line_length": 113,
"avg_line_length": 34.0140056022409,
"alnum_prop": 0.6084987235444289,
"repo_name": "mrbox/django",
"id": "37d38d9e740cded08815722fedeef36abd336be2",
"size": "12143",... |
namespace Rocks.Expectations;
public sealed class ExplicitPropertyGetterExpectations<T, TContainingType>
: ExplicitPropertyExpectations<T, TContainingType>
where T : class, TContainingType
{
public ExplicitPropertyGetterExpectations(ExplicitPropertyExpectations<T, TContainingType> expectations)
: base(expectatio... | {
"content_hash": "07e13a7a59a654bff64fe8bc8fb7ca52",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 105,
"avg_line_length": 42.888888888888886,
"alnum_prop": 0.8341968911917098,
"repo_name": "JasonBock/Rocks",
"id": "d632b15f42749cfeead47e5588bcc9eb4231a2ef",
"size": "388"... |
<?php
class Keywords {
public static function SelectListFor($TypeId) {
$sql = "SELECT id, Name FROM 2014Spring_Keywords WHERE Parent_id = $TypeId ";
return fetch_all($sql);
}
} | {
"content_hash": "04b58ff9fdf7d806b392fe324e4d7290",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 80,
"avg_line_length": 21.11111111111111,
"alnum_prop": 0.6736842105263158,
"repo_name": "mukkur/webdev2014",
"id": "2e1ee3dded98313ec35a5c5acbdff11fb32fc387",
"size": "190"... |
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of... | {
"content_hash": "d3162e8934d5d21d853197f579bbebc5",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 87,
"avg_line_length": 45.458333333333336,
"alnum_prop": 0.822792545065689,
"repo_name": "CenturyLinkLabs/watchtower",
"id": "6a76fea4b55df61282c1e2b7185ec10d6515f352",
"si... |
export const version = '###_VERSION_###';
| {
"content_hash": "fb1668d76142a531dd7eddddfc43316c",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 41,
"avg_line_length": 14.666666666666666,
"alnum_prop": 0.5681818181818182,
"repo_name": "implydata/plywood",
"id": "b0e19a103e0d1e45ba7ce51bb8297b2bf219b857",
"size": "648... |
@extends('layouts.layout')
@section('content')
<?php $articles = Factura::find($factura->id)->articles ?>
@if (count($articles) > 0)
<div class="page-header">
<h4>Hi ha material vinculat a la factura. No puc esborrar!</h4>
</div>
@else
<div class="page-header">
<h1>Elimina factura {{ $fa... | {
"content_hash": "4ad80447252dda6b5dd7687ca8ac6dc5",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 93,
"avg_line_length": 38.78947368421053,
"alnum_prop": 0.6065128900949797,
"repo_name": "escanton/invoices-providers",
"id": "0af2e66c5aa576f5a209cdb825955ed18e384b87",
"s... |
[Class] Event
@version 1.1, 2015-07-05
@author TheOddByte
--]]
local Event = {
events = {};
keys = {
isRepeat = true;
}
}
for k, v in pairs( keys ) do
Event.keys[k] = false
end
---------------------------------------------
-------------[ Local Functions ]-------------
... | {
"content_hash": "5a06667b2d007ec764e63fb1ec3883ff",
"timestamp": "",
"source": "github",
"line_count": 298,
"max_line_length": 94,
"avg_line_length": 24.40268456375839,
"alnum_prop": 0.4808855885588559,
"repo_name": "TheOddByte/CLove",
"id": "988a424fc89042ec3ff4b128cda9799c50bbcc14",
"size": "727... |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>pype32.directories.ImageDebugDirectory</title>
<link rel="stylesheet" href="epydoc.css" typ... | {
"content_hash": "3d0c71fe583a065d94ca11a1502e6960",
"timestamp": "",
"source": "github",
"line_count": 536,
"max_line_length": 208,
"avg_line_length": 39.93283582089552,
"alnum_prop": 0.5874602877966735,
"repo_name": "snemes/pype32",
"id": "510f3c6b120477db5c2bdfa8caec0d3325427c0b",
"size": "21404... |
<?php
include "header.php";
include "subheader.php";
$transaction = new transaction;
$user = new user;
$user_data = $user->getbyid($user->getloggedid());
$balance = $transaction->balance();
if($user_data['type']=="seeker" || $user_data['type']=="provider")
{
?>
<div style="height:20px; clear:both;"></div... | {
"content_hash": "a98ca85a6d475e68b3f7273ca068578d",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 116,
"avg_line_length": 31,
"alnum_prop": 0.5338393421884883,
"repo_name": "sknlim/classified-2",
"id": "fccb84c4f5be06f5dfc0cc653ea1293f711162de",
"size": "1581",
"binar... |
package org.openksavi.sponge.grpcapi.server;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.function.Consumer;
import io.grpc.Server;
import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts... | {
"content_hash": "21568c3bbd0cb141b0739abbf02fbe21",
"timestamp": "",
"source": "github",
"line_count": 245,
"max_line_length": 128,
"avg_line_length": 32.159183673469386,
"alnum_prop": 0.6744510724711258,
"repo_name": "softelnet/sponge",
"id": "66571b220475dbef23631a0d71de73a71f3bddf4",
"size": "8... |
.class public Lcom/payu/android/sdk/payment/model/PaymentMethodViewModel;
.super Ljava/lang/Object;
# instance fields
.field private a:Ljava/lang/String;
.field private b:Ljava/lang/String;
.field private c:Ljava/lang/String;
.field private d:I
# direct methods
.method public constructor <init>(Ljava/lang/String... | {
"content_hash": "fcab5d98aee50d8586b71de1cea65f6f",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 105,
"avg_line_length": 24.135135135135137,
"alnum_prop": 0.7245240761478163,
"repo_name": "gelldur/jak_oni_to_robia_prezentacja",
"id": "bad350e77c70aa9b55f728a6ad64c3c12846... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/about_ui.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <memory>
#include <string>
#incl... | {
"content_hash": "5bdf598c6f26dab6322fa262fbbb5df3",
"timestamp": "",
"source": "github",
"line_count": 704,
"max_line_length": 80,
"avg_line_length": 35.98295454545455,
"alnum_prop": 0.6761408495183957,
"repo_name": "endlessm/chromium-browser",
"id": "2bda9c07e29ad13984cfcaa554a1e038eb427a7e",
"si... |
package net.techcable.techapi;
import com.google.common.base.Charsets;
import com.google.common.base.Throwables;
import com.google.common.io.*;
import com.google.common.net.HttpHeaders;
import com.google.common.net.MediaType;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.S... | {
"content_hash": "da5fe481d5b6cd0e2597128e951ff4da",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 108,
"avg_line_length": 38.888888888888886,
"alnum_prop": 0.6407142857142857,
"repo_name": "Techcable/TechAPI",
"id": "d235be0c7438c34022ef4f7bdc7e69b60083fc08",
"size": "3... |
package retrofit.http;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Named key/value pairs for a form-encoded request.
* ... | {
"content_hash": "c5cae33088b8be3e42e66cfdbb50aee7",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 95,
"avg_line_length": 24.636363636363637,
"alnum_prop": 0.7134071340713407,
"repo_name": "TomkeyZhang/retrofit",
"id": "8bbfda2c2b20e65d2fbf4a8c7ec2cfaa8510143d",
"size": ... |
<?php
/**
* @author Alexey Samoylov <alexey.samoylov@gmail.com>
*/
namespace mirocow\eav\handlers;
use yii\db\ActiveRecord;
use yii\helpers\ArrayHelper;
/**
* Class MultipleOptionsValueHandler
*
* @package mirocow\eav
*/
class MultipleOptionsValueHandler extends ValueHandler
{
/** @var AttributeHandler */
... | {
"content_hash": "5f0f4a37edd24fe803db6724a1ab1fe0",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 100,
"avg_line_length": 28.73972602739726,
"alnum_prop": 0.547902764537655,
"repo_name": "Mirocow/yii2-eav",
"id": "ebdad905f60a66be94186b075a4687f05dbd00fb",
"size": "419... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace MetroRadiance.UI.Controls
{
public class LinkButton : Button
{
static LinkButton()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(Lin... | {
"content_hash": "204f6c8b6aef949a75a8e746800df7f1",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 145,
"avg_line_length": 29.90740740740741,
"alnum_prop": 0.7486068111455109,
"repo_name": "FreyYa/MetroRadiance",
"id": "cd5611efc431b6b138eb7b88f01e82e85b2bc0ad",
"size": ... |
FROM balenalib/odroid-c1-ubuntu:cosmic-run
ENV NODE_VERSION 14.15.4
ENV YARN_VERSION 1.22.4
RUN buildDeps='curl libatomic1' \
&& set -x \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" |... | {
"content_hash": "3ce2c2a3ca6bbb0760fb67b1618e9413",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 692,
"avg_line_length": 64.35555555555555,
"alnum_prop": 0.7047651933701657,
"repo_name": "nghiant2710/base-images",
"id": "29571d05849c9f12b8cdb1b39a9d0e803fc6c012",
"size... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta property="og:title" content="linux">
<meta property="og:type" content="website">
<... | {
"content_hash": "b6a028f81293c3df98b898a8030725f6",
"timestamp": "",
"source": "github",
"line_count": 113,
"max_line_length": 143,
"avg_line_length": 33.123893805309734,
"alnum_prop": 0.6441357200106866,
"repo_name": "satoshun/satoshun.github.io",
"id": "039905bf8c97cf8b834d35c2eb334aff3b1991a3",
... |
import java.util.*;
class Main { /* How do you add? */
// top-down
private static int N, K;
private static int[][] memo = new int[110][110];
private static int ways(int N, int K) {
if (K == 1) // only can use 1 number to add up to N
return 1; // the answer is definitely 1, that number its... | {
"content_hash": "a58e3540f959bd62fbfac98a78aa07eb",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 97,
"avg_line_length": 29.973684210526315,
"alnum_prop": 0.5302897278314311,
"repo_name": "massimo-nocentini/competitive-programming",
"id": "c31b642d42505a19278a9a012880084d... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Gallio.Ambience
{
/// <summary>
/// A data set containing Ambient objects.
/// </summary>
public interface IAmbientDataSet<T> : IList<T>
{
}
}
| {
"content_hash": "10739b73edf82a47ac7fabd8eb9b16e8",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 50,
"avg_line_length": 18.666666666666668,
"alnum_prop": 0.6285714285714286,
"repo_name": "xJom/mbunit-v3",
"id": "603c981814148b311fc64509fe93d199af24e8ac",
"size": "970",... |
package com.bugtrack.service;
import java.util.ArrayList;
import java.util.List;
import com.bugtrack.config.HibernateUtil;
import com.bugtrack.entity.lemma;
import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFact... | {
"content_hash": "56e082fa0c719e054e11a7705852bfe2",
"timestamp": "",
"source": "github",
"line_count": 147,
"max_line_length": 79,
"avg_line_length": 30.80952380952381,
"alnum_prop": 0.5570766173548245,
"repo_name": "sergsamsonov/semantictrack",
"id": "d258ee5e6dbb8909aa093899673ea1208a204cee",
"s... |
using System.Windows;
using System.Windows.Controls;
namespace Cobalt.Views.Controls
{
public class AppLayout : ContentControl
{
static AppLayout()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(AppLayout),
new FrameworkPropertyMetadata(typeof(AppLayout)));
... | {
"content_hash": "125474ea8f199d26b0f3532696c576b4",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 110,
"avg_line_length": 35.36734693877551,
"alnum_prop": 0.6136757068667051,
"repo_name": "Enigmatrix/Cobalt",
"id": "16a6665cfec8e2c40e060212eff2528027d88841",
"size": "34... |
import mock
from oslo.config import cfg
from ironic.common import dhcp_factory
from ironic.common import exception
from ironic.common import keystone
from ironic.common import pxe_utils
from ironic.common import states
from ironic.conductor import task_manager
from ironic.drivers.modules import agent
from ironic impor... | {
"content_hash": "6dbd84ba94c40b921bbc5e53107795ac",
"timestamp": "",
"source": "github",
"line_count": 386,
"max_line_length": 79,
"avg_line_length": 41.468911917098445,
"alnum_prop": 0.5578809270943962,
"repo_name": "Tehsmash/ironic",
"id": "3eafb39d190926b406788e101cf880101105b101",
"size": "165... |
class Reservation < ActiveRecord::Base
include ReservationValidations
include ReservationScopes
include Routing
belongs_to :equipment_model
belongs_to :equipment_item
belongs_to :reserver, class_name: 'User'
belongs_to :checkout_handler, class_name: 'User'
belongs_to :checkin_handler, class_name: 'User... | {
"content_hash": "db6bb333f8e1f628fc67bf9dede0b537",
"timestamp": "",
"source": "github",
"line_count": 398,
"max_line_length": 80,
"avg_line_length": 31.384422110552762,
"alnum_prop": 0.6403010167320471,
"repo_name": "YaleOutdoors/reservations",
"id": "604f45ead821a296aa18d132dede8a971c5da5cb",
"s... |
import os, sys, unittest, getopt, time
use_resources = []
class ResourceDenied(Exception):
"""Test skipped because it requested a disallowed resource.
This is raised when a test calls requires() for a resource that
has not be enabled. Resources are defined by test modules.
"""
def is_resource_enabl... | {
"content_hash": "c3cd49d4058e4b61f626a1312abc5bf0",
"timestamp": "",
"source": "github",
"line_count": 211,
"max_line_length": 87,
"avg_line_length": 34.37440758293839,
"alnum_prop": 0.5688680545980973,
"repo_name": "MalloyPower/parsing-python",
"id": "70d647ba5e215f222249069c6ff85b2628c67564",
"s... |
var data = {chanels: {}} | {
"content_hash": "3f3417118228ff11b88df50a8dc9093a",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 24,
"avg_line_length": 24,
"alnum_prop": 0.5833333333333334,
"repo_name": "svteamMarkup/edupay",
"id": "7f81196248ac46c55b415a42e76524a11b7bab8d",
"size": "24",
"binary": ... |
package org.tribbloid.ispark.display.dsl
import java.net.URL
import org.apache.spark.sql.DataFrame
import org.ccil.cowan.tagsoup.jaxp.SAXFactoryImpl
import org.pegdown.{Extensions, PegDownProcessor}
import org.tribbloid.ispark.display.{HTMLDisplayObject, LatexDisplayObject}
import scala.xml._
object Display {
ca... | {
"content_hash": "b7c180fe36069b114730ec579ba7f38e",
"timestamp": "",
"source": "github",
"line_count": 152,
"max_line_length": 103,
"avg_line_length": 32.10526315789474,
"alnum_prop": 0.5739754098360655,
"repo_name": "tribbloid/ISpark",
"id": "d5c4074b4e3940ec2c2cf811032e626ec34fc401",
"size": "48... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.