text stringlengths 2 1.04M | meta dict |
|---|---|
import tempfile
import zipfile
from os.path import join, dirname
from cloudify import ctx
ctx.download_resource(
join('components', 'utils.py'),
join(dirname(__file__), 'utils.py'))
import utils # NOQA
SERVICE_NAME = 'consul'
# Some runtime properties to be used in teardown
runtime_props = ctx.instance.ru... | {
"content_hash": "bb571fe1285812defe1d00dbf33616f5",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 78,
"avg_line_length": 25.67391304347826,
"alnum_prop": 0.6663844199830652,
"repo_name": "isaac-s/cloudify-manager-blueprints",
"id": "5535b3d0a6557ef4e0af57f2a428e7264514fd1... |
build_zen_inplace:
cd ../src; python setup.py build_ext --inplace
build_pydoc: build_zen_inplace
export PYTHONPATH="../src:$PYTHONPATH"; epydoc --html -o ../pydoc/autogen --name Zen --url http://www.networkdynamics.org/static/zen zen
publish_pydoc:
scp -r autogen druths.webfactional.com:~/webapps/rr_static/zen | {
"content_hash": "f09d18a37e7dadcd231726a202714ed8",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 137,
"avg_line_length": 39.5,
"alnum_prop": 0.740506329113924,
"repo_name": "networkdynamics/zenlib",
"id": "f8c8232ee467003bc0d96cecdb7269d5cd0939ff",
"size": "317",
"bin... |
from st2client.models import Resource, Trace, TriggerInstance, Rule, LiveAction
from st2client.exceptions.operations import OperationFailureException
from st2client.formatters import table
from st2client.formatters import execution as execution_formatter
from st2client.commands import resource
from st2client.utils.date... | {
"content_hash": "74382fdbe95bd1bc73ec8044cd596127",
"timestamp": "",
"source": "github",
"line_count": 322,
"max_line_length": 97,
"avg_line_length": 43.940993788819874,
"alnum_prop": 0.563078662803025,
"repo_name": "armab/st2",
"id": "fee81e7c3cb7e1c0cd074082f7402c5c185aa596",
"size": "14929",
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /construct/images/obo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<h1>Index of /construct/images/obo</h1>
<ul><li><a href="/construct/images/"> Parent Directory</a></li>
<li><a href... | {
"content_hash": "37b6012a395807c971313aac7e22549a",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 77,
"avg_line_length": 37,
"alnum_prop": 0.6447876447876448,
"repo_name": "gmyboy/Blog_server",
"id": "904fe167520d15fbdf3fa084d7cb857663a40811",
"size": "518",
"binary":... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "69b5261f582d7e08d77f5affd78a34f4",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "04e9f5a52fa42ef6b0e6b365aa028a7d44dc5f13",
"size": "186... |
package org.lnu.is.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation for Limit values.
* @author ivanursul
*
*/
@Target({ ElementType... | {
"content_hash": "a5d002dfb128c3abf5c4289766a21dfa",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 72,
"avg_line_length": 29.025641025641026,
"alnum_prop": 0.696113074204947,
"repo_name": "ifnul/ums-backend",
"id": "f15ebff4ac796403c548a0d8185440cfa5f82a38",
"size": "113... |
layout: docs
slug: guides/resize
title: Adding Disk Space
category: cluster_management
sub_category: scaling
weight: 5
---
# Adding Disk Space to Your CoreOS Machine
On a CoreOS machine, the operating system itself is mounted as a read-only partition at `/usr`. The root partition provides read-write storage by defaul... | {
"content_hash": "367c959e0cdfa76dc499a9ad5cb5df08",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 470,
"avg_line_length": 40.06349206349206,
"alnum_prop": 0.7832805071315373,
"repo_name": "cloudcube/coreos-manual-chinese",
"id": "390a044b2b97687164b3fcad19d407ea5fa1f073",... |
.. _customize.calculators:
=========================
Using a Custom Calculator
=========================
By default, ramsey/uuid uses `brick/math`_ as its internal calculator. However,
you may change the calculator, if your needs require something else.
To swap the default calculator with your custom one, first mak... | {
"content_hash": "46fa67dca54aa1581f53fe9ba98fe68b",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 98,
"avg_line_length": 31.426666666666666,
"alnum_prop": 0.6911327959270259,
"repo_name": "michabbb-backup/uuid",
"id": "a2bcea0e804b0ef5b7c28e624e4e40f603b52784",
"size": ... |
using Microsoft.AspNetCore.Http;
namespace ByteNuts.NetCoreControls.Core.Extensions
{
public static class HttpRequestExtensions
{
public static string NccGetBaseUrl(this HttpContext context)
{
var request = context.Request;
var host = request.Host.ToUriComponent();
... | {
"content_hash": "cd236b528ec427a31974f6a8cc3adbbc",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 88,
"avg_line_length": 25.85,
"alnum_prop": 0.6266924564796905,
"repo_name": "ByteNuts/NetCoreControls",
"id": "bb0850c4a9b3e7d6701d1d2b769a91e07cac1b16",
"size": "519",
... |
<chapter>
<title>Java Source File Examples</title>
<para>The following example shows how to format a Java source file
containing a single public class. Interfaces are formatted similarly.</para>
<para>
<!-- do not break the following two lines -->
<programlisting
linenumbering="numb... | {
"content_hash": "269ba0ec766e2378796716e1d16ba469",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 143,
"avg_line_length": 32.785714285714285,
"alnum_prop": 0.7015250544662309,
"repo_name": "jCoderZ/fawkez-old",
"id": "85ae2ca391ee9ec7ba1d2705ed3cdb2d83ceb18d",
"size": "... |
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!--
Demonstrates the mapping of two subtyping one-to-one relationships
to association tables using <many-to-one> nested inside <join>.
Note th... | {
"content_hash": "2ad67f60933ac9b1ffc69546837a3622",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 69,
"avg_line_length": 24.956521739130434,
"alnum_prop": 0.6248548199767712,
"repo_name": "HerrB92/obp",
"id": "956766532b53f505a0f79f6f759038c6859191ce",
"size": "1722",
... |
namespace FluentValidation {
using Internal;
public class ValidationContext<T> : ValidationContext {
public ValidationContext(T instanceToValidate) : this(instanceToValidate, new PropertyChain(), ValidatorOptions.ValidatorSelectors.DefaultValidatorSelectorFactory()) {
}
public ValidationContext(... | {
"content_hash": "2e4f2e4a94fc33c07969e32bd4de28a4",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 169,
"avg_line_length": 38.51063829787234,
"alnum_prop": 0.7712707182320442,
"repo_name": "GDoronin/FluentValidation",
"id": "609307009e1323c7fc1947cb6280c5897bd32767",
"si... |
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
$GLOBALS['TL_LANG']['FMD']['navigationMenu'] = 'Navigation';
$GLOBALS['TL_LANG']['FMD']['navigation'] = array('Menu de navigation', 'Génère un menu de navigation à partir de la structure du site.');
$GLOBALS['TL_LANG']['FMD']['customnav'] ... | {
"content_hash": "ab5dfe9d986ef5b13e8f619c69fde855",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 161,
"avg_line_length": 88.81481481481481,
"alnum_prop": 0.6851542952460383,
"repo_name": "TechnoGate/contao_template",
"id": "7f1fed3b0204225ae1edd5b031003cc838bae2f9",
"s... |
using System;
using System.Collections.Generic;
using UIKit;
using CocosSharp;
using PilotAndGunPortable;
namespace PilotAndGunPortable.iOS
{
public partial class ViewController : UIViewController
{
public ViewController(IntPtr handle)
: base(handle)
{
}
public ... | {
"content_hash": "e7869b33e7c372cbe076244a08f7f940",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 85,
"avg_line_length": 22.574074074074073,
"alnum_prop": 0.5594749794913864,
"repo_name": "wiphoenix/PilotAndGun",
"id": "c498ff862844126a839b5e1f6453a1b2938cc069",
"size":... |
namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models
{
using Fixtures.AcceptanceTestsAzureCompositeModelClient;
using Newtonsoft.Json;
using System.Linq;
public partial class BooleanWrapperInner
{
/// <summary>
/// Initializes a new instance of the BooleanWrapperInner ... | {
"content_hash": "885e91924f53f3a2d07e695e23dfe8df",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 103,
"avg_line_length": 29.5,
"alnum_prop": 0.6001994017946162,
"repo_name": "anudeepsharma/autorest",
"id": "c645f707d4b230c58383d2fbb8b0847d25693a93",
"size": "1315",
"... |
namespace grpc_cb_core {
ClientAsyncWriterImplWrapper::ClientAsyncWriterImplWrapper(const ChannelSptr& channel,
const std::string& method,
const CompletionQueueSptr& cq_sptr,
int64_t t... | {
"content_hash": "c6edd517c9fd28fd9c6ddba3f1d5c54f",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 86,
"avg_line_length": 32.76,
"alnum_prop": 0.6227106227106227,
"repo_name": "jinq0123/grpc_cb_core",
"id": "8c9f2d32c2f6228bbb6e43dc782002fbaa15906e",
"size": "1074",
"b... |
package org.jboss.weld.module.web.context.http;
import java.lang.annotation.Annotation;
import jakarta.enterprise.context.Conversation;
import jakarta.enterprise.context.SessionScoped;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;
import org.jboss.weld.Container;
import org... | {
"content_hash": "fbd9e1be7bc0aea4ec5f92b0d7677895",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 146,
"avg_line_length": 44.15652173913043,
"alnum_prop": 0.67684127609295,
"repo_name": "weld/core",
"id": "7dc227ffb74e70a85fb65b0647184db79f9f653b",
"size": "5078",
"b... |
#ifndef doxygen_ignore
#include <sbml/packages/qual/validator/QualConsistencyValidator.h>
/*
* Compile ConsistencyConstraints
*/
#include "constraints/QualConsistencyConstraints.cpp"
LIBSBML_CPP_NAMESPACE_BEGIN
/*
* Initializes this Validator with a set of Constraints.
*/
void
QualConsisten... | {
"content_hash": "8fbe05627736ca73d6b5cb00d9b608bd",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 66,
"avg_line_length": 17.310344827586206,
"alnum_prop": 0.7350597609561753,
"repo_name": "TheCoSMoCompany/biopredyn",
"id": "5e6b58fb962f052374876154b53a78667b2fc157",
"si... |
using System.Collections.Generic;
using Newtonsoft.Json;
namespace IBM.WatsonDeveloperCloud.NaturalLanguageUnderstanding.v1.Model
{
/// <summary>
/// EntityMention.
/// </summary>
public class EntityMention
{
/// <summary>
/// Entity mention text.
/// </summary>
//... | {
"content_hash": "4a9bba61cd5f5ed7727a3c658a5eb76a",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 114,
"avg_line_length": 32.44444444444444,
"alnum_prop": 0.639269406392694,
"repo_name": "mediumTaj/dotnet-standard-sdk-generated",
"id": "8068b1e014bba4811f0cc9c646c976188f1... |
<div class="commune_descr limited">
<p>
Saint-Avit-de-Soulège est
un village
situé dans le département de Gironde en Aquitaine. Elle comptait 76 habitants en 2008.</p>
<p>À coté de Saint-Avit-de-Soulège sont positionnées géographiquement les communes de
<a href="{{VLROOT}}/immobilier/caplong_33094/">Cap... | {
"content_hash": "6ba57274e32c27205959f5fd37548f19",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 148,
"avg_line_length": 81.94117647058823,
"alnum_prop": 0.7422828427853554,
"repo_name": "donaldinou/frontend",
"id": "51fc9c69f1952b69e72e0b319482e8f30f26f7d5",
"size": "... |
@class MCLLoginManager;
static const NSInteger MCLHTTPErrorCodeNoInternetConnection = -2;
static const NSInteger MCLHTTPErrorCodeMServiceConnection = -1;
static const NSInteger MCLHTTPErrorCodeInvalidLogin = 401;
@protocol MCLHTTPClient <NSObject>
- (instancetype)initWithLoginManager:(MCLLoginManager *)loginManager;... | {
"content_hash": "0220c12515774a94c93c0824868ce1c5",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 90,
"avg_line_length": 43.25,
"alnum_prop": 0.6641618497109827,
"repo_name": "Stitch7/mclient",
"id": "25dd58a2650ed54477f7139a2cab4d40565b5a66",
"size": "1923",
"binary"... |
<?php defined('APPPATH') or die('No script access'); ?>
<?php $PAGE_TITLE = page_title('Forbidden'); ?>
<div class="small-page err">
<h2>403</h2>
<p>You shall not pass.</p>
</div> | {
"content_hash": "9906455dc6d7ff6d9ea9ee33bc9e96f9",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 55,
"avg_line_length": 26.857142857142858,
"alnum_prop": 0.601063829787234,
"repo_name": "aravindanve/tiny-fw",
"id": "660423f695593d2df18444b62081715a7d2d118c",
"size": "18... |
"""
Regression tests for Ecobee 3.
https://github.com/home-assistant/home-assistant/issues/15336
"""
from unittest import mock
from homekit import AccessoryDisconnectedError
from homeassistant.config_entries import ENTRY_STATE_SETUP_RETRY
from homeassistant.components.climate.const import (
SUPPORT_TARGET_TEMPE... | {
"content_hash": "482fdbe3a8e7bcd840c6ce208477ee64",
"timestamp": "",
"source": "github",
"line_count": 208,
"max_line_length": 84,
"avg_line_length": 37.21153846153846,
"alnum_prop": 0.6918604651162791,
"repo_name": "qedi-r/home-assistant",
"id": "8473d2352782655321430ea71ac23c15e2d86573",
"size":... |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class InputFilesProvider
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class InputFilesProvider
"... | {
"content_hash": "3e4f83243f75bf6727b8ec66dac2bd4f",
"timestamp": "",
"source": "github",
"line_count": 230,
"max_line_length": 605,
"avg_line_length": 44.130434782608695,
"alnum_prop": 0.6262068965517241,
"repo_name": "csf-dev/ZPT-Sharp",
"id": "ed8bd6d05d6674adfcd38afd6b9e50167526008b",
"size": "... |
layout: post
title: "Upsampling and Image Segmentation with Tensorflow and TF-Slim"
description:
comments: true
categories:
- Tensorflow
- TF-Slim
---
A post showing how to perform Upsampling and Image Segmentation
with a recently released TF-Slim library and pretrained models.
___
### Introduction
In the previo... | {
"content_hash": "13bb1bde62690347957c14219b5a882d",
"timestamp": "",
"source": "github",
"line_count": 580,
"max_line_length": 715,
"avg_line_length": 38.734482758620686,
"alnum_prop": 0.724160954330989,
"repo_name": "warmspringwinds/warmspringwinds.github.io",
"id": "ba26c87f0e703ccdf948b4cbe84db32... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "ff7887918a681810ccab866c0980899d",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "2b29955ae6d384902804f1fa07ff7f1b1a6cdc95",
"size": "176... |
<?php
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer\Fixer\CastNotation;
use PhpCs... | {
"content_hash": "30e5f46a393637e7813dd5d4084652fe",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 83,
"avg_line_length": 22.17105263157895,
"alnum_prop": 0.5507418397626113,
"repo_name": "felixgomez/PHP-CS-Fixer",
"id": "b57fe664a13d7efcdb81b24c753676211146299e",
"size"... |
layout: post
permalink: testability
title: Testability
tags: [programming, swift, testing]
---
I found an inconsistency in an app, which had to do with the color of a certain action's title.
Easy fix, I thought. I can fix this without too much work.
<!--more-->
So that's what I did. And I was right — it was an easy... | {
"content_hash": "607d0e0ff6ade3928c245fd574671e12",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 284,
"avg_line_length": 40.650485436893206,
"alnum_prop": 0.7117267733460712,
"repo_name": "BasThomas/basthomas.github.io",
"id": "5ee8f30e20cb3a2c9643d115e77c644ae989916f",... |
using System;
using RESTyard.AspNetCore.Hypermedia;
namespace RESTyard.AspNetCore.WebApi.Formatter
{
public interface IHypermediaConverter
{
string ConvertToString(HypermediaObject hypermediaObject);
}
} | {
"content_hash": "be43f23ce8828b2b0d5a9cf21896b7be",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 66,
"avg_line_length": 22.4,
"alnum_prop": 0.7767857142857143,
"repo_name": "bluehands/WebApiHypermediaExtensions",
"id": "430fe21eb75929c2b2f2b6d319e62df47c758b62",
"size"... |
/**
* This file is part of Easylogging++ samples
* Demonstration of simple VC++ project.
*
* PLEASE NOTE: We have ELPP_FEATURE_PERFORMANCE_TRACKING preprocessor defined in project settings
* Otherwise we will get linker error
*
* Revision: 1.1
* @author mkhan3189
*/
#include "easylogging++.h"
INITIALIZE_EA... | {
"content_hash": "ce1540db103b8487d58ff1498e2c9c3b",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 97,
"avg_line_length": 22.06896551724138,
"alnum_prop": 0.6640625,
"repo_name": "rflament/loggedfs",
"id": "d226631793d123e59ba4f757c3e1ae2d3399c71f",
"size": "640",
"bin... |
<?php
namespace Application\Model;
// Add these import statements
use Zend\InputFilter\Factory as InputFactory;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;
class Jsprofile implements InputFilterAwareInterface
{
protected $inputFil... | {
"content_hash": "a544d2bfef3a24f03372ea5caf2b6cbe",
"timestamp": "",
"source": "github",
"line_count": 215,
"max_line_length": 101,
"avg_line_length": 35.7953488372093,
"alnum_prop": 0.43243243243243246,
"repo_name": "naveennimbal/jobstonaukri",
"id": "5e7b3509d305544998e06d8833321cb4ac776ffb",
"s... |
package ferjorosa.graph.search;
import ferjorosa.graph.AbstractNode;
import ferjorosa.graph.Edge;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/**
* A visitor to record the discovering and finishing times
* of the nodes during a depth first search.
* @author leon... | {
"content_hash": "a9a4a123ae5c7cd66f2b635e1a84a2c0",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 66,
"avg_line_length": 23.048192771084338,
"alnum_prop": 0.6419236800836383,
"repo_name": "fernandoj92/mvca-parkinson",
"id": "a0af883860ecf404ec4609b143f106ae6869a75d",
"s... |
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Xml.Linq;
using System.Linq;
using Syste... | {
"content_hash": "c22d43a2179233ed604886e09c6d1d02",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 124,
"avg_line_length": 36.13333333333333,
"alnum_prop": 0.6526752767527675,
"repo_name": "jamessdixon/PanzerGeneral",
"id": "3b0c2eeb205013d03d0f20195d2d232ae20774b2",
"si... |
L.Control.MousePosition = L.Control.extend({
options: {
position: 'bottomleft',
separator: ' : ',
emptyString: 'Unavailable',
lngFirst: false,
numDigits: 5,
lngFormatter: undefined,
latFormatter: undefined,
prefix: ""
},
onAdd: function (map) {
this._container = L.DomUtil.create('div', 'leaflet-co... | {
"content_hash": "2b1c7270a181fd1568079fab2fb5f507",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 151,
"avg_line_length": 30.666666666666668,
"alnum_prop": 0.7167119565217391,
"repo_name": "eirikaa/explorer",
"id": "cb9552841c0fe9828a1e446623cf84b27ccd53be",
"size": "14... |
<?
/*
#1 this is the template for posts on the homepage, the archive page, and the "related posts" on single pages
#2 if is single, the 'item' is 'col-sm-3' because the display is 4 items across on single pages ("Related Post").
#3 if it is home or archive, the 'item' is 'col-sm-4'
#4 if its home and the first post, t... | {
"content_hash": "aaf9f95f36cdcf9e2450e5ca02137536",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 189,
"avg_line_length": 52.88,
"alnum_prop": 0.6002269288956127,
"repo_name": "damnmagazine/damn-sage",
"id": "b59d2ce8eca74ceb06c961797cc211653d73e468",
"size": "2644",
... |
Example usage of the context package, for a lightning talk at GoAKL
See article here: https://medium.com/@ambot/exploring-the-context-package-db30a818d563#.2q34adjd7
| {
"content_hash": "5856bd40c15685cdc5e74f488e302353",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 97,
"avg_line_length": 55.666666666666664,
"alnum_prop": 0.8083832335329342,
"repo_name": "laher/context-example",
"id": "f9863b71c35f87b9b708b0995224b50dd5a909a6",
"size": ... |
var DOCUMENTER_CURRENT_VERSION = "previews/PR489";
| {
"content_hash": "be9e2ba9e626b7e63e6c2aa3626cada9",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 50,
"avg_line_length": 51,
"alnum_prop": 0.7843137254901961,
"repo_name": "dmbates/MixedModels.jl",
"id": "a6b08a140dab5e20c8a616900ea8e5e88158b9e8",
"size": "51",
"binary... |
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bignerdranch.android.geoquiz.CheatActivity">
<item android:id="@+id/action_settings"
android:title="@stri... | {
"content_hash": "951486d434906d50f93fb1e52792c96e",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 69,
"avg_line_length": 47.22222222222222,
"alnum_prop": 0.68,
"repo_name": "walbed/BNRGeoQuiz",
"id": "08cefbf85963ef6193156c1338d0dfaa5f8b2ca5",
"size": "425",
"binary": ... |
<wpml-config>
<custom-types>
<custom-type translate="1">project</custom-type>
<custom-type translate="1">testimonial</custom-type>
</custom-types>
<taxonomies>
<taxonomy translate="1">project-category</taxonomy>
<taxonomy translate="1">testimonial-category</taxonomy>
</ta... | {
"content_hash": "4878c2c88688e4996ca48b0d1959bb01",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 63,
"avg_line_length": 28.916666666666668,
"alnum_prop": 0.6512968299711815,
"repo_name": "sipa-mict/localgov59",
"id": "41852c97145766fc890b078eb7e6f585a0fcacfd",
"size": ... |
module ErrorMerger
VERSION = '1.1.0'
end
| {
"content_hash": "264037168decbe5afade23e7f51df658",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 19,
"avg_line_length": 14.333333333333334,
"alnum_prop": 0.6976744186046512,
"repo_name": "zarqman/error_merger",
"id": "06c92e68a2f1d274715c03d63df6ba716749e1a0",
"size": "... |
function createCalendar(selector, events) {
var i, j, k;
if (typeof selector === 'string') {
var root = document.querySelector(selector);
}
root.style.height = '1000px';
var fragment = document.createDocumentFragment();
var calendar = document.createElement('table');
calendar.style.b... | {
"content_hash": "983ae1fc19b40c5204cc986d6684a3d0",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 105,
"avg_line_length": 36.40816326530612,
"alnum_prop": 0.5322309417040358,
"repo_name": "Vyara/JavaScript-UI-and-DOM-Homeworks",
"id": "e3bbd8f65893254b4f5d87aa2827b6029cd2... |
import { KeyDictionary } from 'core/generics';
export enum ClientResponseSource {
remote = 'remote',
cache = 'cache',
local = 'local'
}
export type ClientResponse<TStatus, TData> = {
source: ClientResponseSource;
status: TStatus;
data: TData;
rejected?: boolean;
}
export type HttpClientResponse = Clien... | {
"content_hash": "7845da8934b2dad6c13fc5d1f6862126",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 76,
"avg_line_length": 24.65,
"alnum_prop": 0.7525354969574036,
"repo_name": "pflannery/vscode-versionlens",
"id": "7ced150be19a92a72ccd367b48c2c59f89d94a81",
"size": "493"... |
//
// CJImagePickerViewController.h
// CJPickerDemo
//
// Created by ciyouzen on 2015/8/31.
// Copyright © 2015年 dvlproad. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <Masonry/Masonry.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import "CJAlumbImageModel.h"
#import "... | {
"content_hash": "4ac5680853bcbd2082ab2f5da8544efa",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 165,
"avg_line_length": 30.766666666666666,
"alnum_prop": 0.7329360780065005,
"repo_name": "dvlproad/CJUIKit",
"id": "129cb87d2053e405ae26985248703aee28e64173",
"size": "20... |
package io.gomint.proxy.util;
import io.gomint.jraknet.PacketBuffer;
import lombok.Getter;
import java.nio.ByteBuffer;
import java.util.BitSet;
/**
* @author geNAZt
* @version 1.0
*/
@Getter
public class Palette {
@Getter
private enum PaletteVersion {
P1( 1, 32 ),
P2( 2, 16 ),
P... | {
"content_hash": "2fba7da087594073cedbb0b99365a051",
"timestamp": "",
"source": "github",
"line_count": 193,
"max_line_length": 103,
"avg_line_length": 27.1139896373057,
"alnum_prop": 0.5052551117905599,
"repo_name": "GoMint/Proxy",
"id": "7e688221cd1d6c7fd478d2940f3ee7c2a178c85e",
"size": "5413",
... |
package hashtree
import (
"crypto/sha256"
"hash"
"testing"
)
var fileBench = NewFile()
var treeBench = NewTree()
var refBench = sha256.New()
var buf = make([]byte, 20480)
func benchmarkSize(b *testing.B, hash hash.Hash, size int) {
b.SetBytes(int64(size))
for i := 0; i < b.N; i++ {
hash.Reset()
hash.Write(b... | {
"content_hash": "a716d484cf2c1848aa18485df11579d0",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 60,
"avg_line_length": 18.07017543859649,
"alnum_prop": 0.7048543689320388,
"repo_name": "xiegeo/fensan",
"id": "5f8bd7ad7ab9d4d9d931995051ed4a165b61cbc3",
"size": "1030",
... |
<!--
Copyright 2014-2016 CyberVision, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | {
"content_hash": "eb2f0a884595a848b689ca43b540e3ef",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 108,
"avg_line_length": 36.208955223880594,
"alnum_prop": 0.6376751854905194,
"repo_name": "liuhu/Kaa",
"id": "d6c063e0ac70311f5b33bfb7a7bda33e9e187676",
"size": "2426",
... |
UPDATE meta SET meta_value='65' WHERE meta_key='schema_version';
# Patch identifier
INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_64_65_a.sql|schema_version');
| {
"content_hash": "2d304728f9a3976477bc040f7fe01e51",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 64,
"avg_line_length": 39.8,
"alnum_prop": 0.7236180904522613,
"repo_name": "at7/ensembl",
"id": "1f4cf46f2786137eaafe8c953645ff347eda2710",
"size": "985",
"binary": false... |
'''
@author: MengLai
'''
import os
import tempfile
import uuid
import time
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.test_state as test_state
import zstacklib.utils.ssh as ssh
test_stub = test_lib.lib_get_test_stub()
test_obj_di... | {
"content_hash": "00faf01da66a2270b9961c19e0d4a41d",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 107,
"avg_line_length": 38.66304347826087,
"alnum_prop": 0.6513916221535001,
"repo_name": "zstackorg/zstack-woodpecker",
"id": "f3d15b8c75fd3da06525bf4f4f1d8354bffca5b8",
"... |
set(CMAKE_DEPENDS_LANGUAGES
"CXX"
)
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
"/home/noah/starid/libstarid/cereal-1.2.2/unittests/unordered_multiset.cpp" "/home/noah/starid/libstarid/cereal-1.2.2/unittests/CMakeFiles/test_unordered_multiset.dir/unordered_multiset.c... | {
"content_hash": "a9f9790f7093d3c77e4658850b6c5f51",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 194,
"avg_line_length": 31.3,
"alnum_prop": 0.7587859424920128,
"repo_name": "noahhsmith/starid",
"id": "9ff703a63078b6166c0117245699d772c29e7628",
"size": "693",
"binary... |
/**
* This file is automatically generated by wheat-build.
* Do not modify this file -- YOUR CHANGES WILL BE ERASED!
*/
package x7c1.linen.res.layout;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.View;
import android.support.v7.widget.Recyc... | {
"content_hash": "18d118523c79b3341f5c49c94545a7bb",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 116,
"avg_line_length": 32.40845070422535,
"alnum_prop": 0.6936114732724902,
"repo_name": "x7c1/Linen",
"id": "63865711082268b0fb2f66d40c6ee081de757e3d",
"size": "2301",
... |
package ru.stqa.test_courses.addressbook.tests;
import org.testng.annotations.Test;
import ru.stqa.test_courses.addressbook.model.ContactData;
import java.util.Arrays;
import java.util.stream.Collectors;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* Cre... | {
"content_hash": "414f9d99f02df2ec55ebb50740d90ba2",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 92,
"avg_line_length": 32.193548387096776,
"alnum_prop": 0.7014028056112225,
"repo_name": "DEX-6/test_courses",
"id": "c26eb8391fed69a024697efca717a77f6a06ba04",
"size": "9... |
const path = require('path');
const assert = require('yeoman-assert');
const helpers = require('yeoman-test');
const fse = require('fs-extra');
const expectedFiles = require('./utils/expected-files');
describe('JHipster generator common', () => {
before(done => {
helpers
.run(require.resolve('.... | {
"content_hash": "6d1c6114f6b2fc3f1e693c32099a3293",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 85,
"avg_line_length": 30,
"alnum_prop": 0.5253333333333333,
"repo_name": "PierreBesson/generator-jhipster",
"id": "de0a39e49fd300e9bf70709b806de598e9223c3d",
"size": "750"... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_92) on Tue Nov 02 10:36:42 GMT 2021 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class com.github.rve... | {
"content_hash": "ccde29026747de924275c6e6879ddbb7",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 174,
"avg_line_length": 38.76190476190476,
"alnum_prop": 0.6134316134316135,
"repo_name": "rvesse/airline",
"id": "775ee2bf04e631fc5be104d3be03edd1a43d07c2",
"size": "4884... |
package com.docuware.dev.schema._public.services.platform;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.net.URI;
import com.docuware.dev.Extensions.*;
import java.util.concurrent.CompletableFuture;
import java.util.*;
import com.docuware.dev.schema._public.services.Link;
import... | {
"content_hash": "23a944ed1a675251dd042b11b257b70e",
"timestamp": "",
"source": "github",
"line_count": 340,
"max_line_length": 415,
"avg_line_length": 40.129411764705885,
"alnum_prop": 0.7138669012019936,
"repo_name": "DocuWare/PlatformJavaClient",
"id": "557a67b4e29d6d15cf6bd41e61e7d659279a844f",
... |
from jpype import JPackage, java
import sys
from . import common
class MroTestCase(common.JPypeTestCase):
def testMro(self):
C = JPackage('jpype.mro').C
def testMultipleInterfaces(self):
j = JPackage("jpype").mro.MultipleInterfaces
myinstance = j()
| {
"content_hash": "6a11ae603ff6d3d559540b6d3f6d6724",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 52,
"avg_line_length": 26.727272727272727,
"alnum_prop": 0.6598639455782312,
"repo_name": "icedwater/jpype",
"id": "37bbd385e09cc5d08f98be33540fc2836beaa000",
"size": "1071... |
import inspect
import os.path
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import units
import six
from cinder import exception
from cinder.i18n import _, _LE, _LI, _LW
from cinder.volume.drivers.emc import emc_vmax_fast
from cinder.volume.drivers.emc import emc_vmax_https
from cind... | {
"content_hash": "f1d8008de456ac62c27c6c3aab9ebc59",
"timestamp": "",
"source": "github",
"line_count": 4334,
"max_line_length": 79,
"avg_line_length": 44.109137055837564,
"alnum_prop": 0.5753129429980802,
"repo_name": "apporc/cinder",
"id": "f1935fe54a9dc928e00ababc87fff50f1b2d1c4f",
"size": "1918... |
<?php
namespace Sabre\VObject\Property;
use Sabre\VObject\Component\VCard;
class TextTest extends \PHPUnit_Framework_TestCase {
function assertVCard21serialization($propValue, $expected) {
$doc = new VCard(array(
'VERSION'=>'2.1',
'PROP' => $propValue
), false);
... | {
"content_hash": "36a95e7f40addd651acbd5435fa80d98",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 98,
"avg_line_length": 21.75,
"alnum_prop": 0.5795019157088123,
"repo_name": "jxwang0/SoCal",
"id": "8f698f7d851681d9099af12f430127b2b8a54850",
"size": "2088",
"binary": ... |
"""Strategy combinations for combinations.combine()."""
import tensorflow.compat.v2 as tf
multidevice_strategies = [
tf.__internal__.distribute.combinations.mirrored_strategy_with_gpu_and_cpu,
tf.__internal__.distribute.combinations.mirrored_strategy_with_two_gpus,
tf.__internal__.distribute.combinations.... | {
"content_hash": "2ccbeed692e1b1210a177e84295e2c8d",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 101,
"avg_line_length": 44.648148148148145,
"alnum_prop": 0.7515553712152634,
"repo_name": "keras-team/keras",
"id": "8261e2386ce7abe13469839a7d9aed400bdd5765",
"size": "31... |
import { _ } from 'meteor/underscore';
import { dbArena } from '/db/dbArena';
import { dbArenaFighters } from '/db/dbArenaFighters';
// 計算出所有報名者的攻擊次序
export function computeArenaAttackSequences() {
const lastArenaData = dbArena.findOne({}, { sort: { beginDate: -1 }, fields: { _id: 1 } });
if (! lastArenaData) {
... | {
"content_hash": "9300dece86c3d057c0fa230a895d393c",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 125,
"avg_line_length": 40.10344827586207,
"alnum_prop": 0.6973344797936372,
"repo_name": "silentvow/acgn-stock",
"id": "802348b8df4e029f325b0cf8390b90f8341e026d",
"size": ... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/* Unifor.cs --
* Ars Magna project, http://arsmagna.ru
* -------------------------------------------------------
* Status: poor
*/
#region Using directi... | {
"content_hash": "3eca057096351a22c485b403627b4f66",
"timestamp": "",
"source": "github",
"line_count": 331,
"max_line_length": 93,
"avg_line_length": 38.468277945619334,
"alnum_prop": 0.5405638891070447,
"repo_name": "amironov73/ManagedIrbis",
"id": "286cfded9c240a4ccde2d7df5f67ee1f8cfbcbf7",
"siz... |
namespace impala {
struct ArrayValueBuilder;
struct HdfsFileDesc;
/// This scanner parses Parquet files located in HDFS, and writes the content as tuples in
/// the Impala in-memory representation of data, e.g. (tuples, rows, row batches).
/// For the file format spec, see: github.com/apache/parquet-format
///
/// -... | {
"content_hash": "ce882f8fe2fe6cff44d22a2b5b766f3f",
"timestamp": "",
"source": "github",
"line_count": 543,
"max_line_length": 90,
"avg_line_length": 44.173112338858196,
"alnum_prop": 0.6339948303176853,
"repo_name": "cchanning/Impala",
"id": "954ad4ddc7d9adb2a1198c8d21f70b1f123fab5a",
"size": "24... |
// -----------------------------------------------------------------------
// <copyright file="CatalogTest.cs" company="PlayFab Inc">
// Copyright 2015 PlayFab Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | {
"content_hash": "ba9ddc8ea66d8ed3a04652a5fefcb8fb",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 78,
"avg_line_length": 31.410958904109588,
"alnum_prop": 0.522895769733973,
"repo_name": "highlyunavailable/consuldotnet",
"id": "4975e17e9374bc628c0d00fa78a9ac1e201ba97b",
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>interval: 4 m 18 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... | {
"content_hash": "e7882da3d59e5d69ccb2e9ac0d0d22c2",
"timestamp": "",
"source": "github",
"line_count": 219,
"max_line_length": 159,
"avg_line_length": 56.84931506849315,
"alnum_prop": 0.5904417670682731,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "67415689425702c8162f88c952ef9f7b7d21ba31",
... |
<!--start-code-->
```js
const instance = (
<Panel shaded bordered bodyFill style={{ display: 'inline-block', width: 240 }}>
<img src="https://via.placeholder.com/240x240" height="240" />
<Panel header="RSUITE">
<p>
<small>A suite of React components, sensible UI design, and a friendly developme... | {
"content_hash": "8283423464cd449b87b617b5ad024616",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 110,
"avg_line_length": 23.88888888888889,
"alnum_prop": 0.6186046511627907,
"repo_name": "suitejs/suite",
"id": "46ef912b1e12a8296a30b92c6774a903367e9267",
"size": "440",
... |
package org.codehaus.groovy.transform;
import groovy.transform.Sortable;
import org.codehaus.groovy.ast.ASTNode;
import org.codehaus.groovy.ast.AnnotatedNode;
import org.codehaus.groovy.ast.AnnotationNode;
import org.codehaus.groovy.ast.ClassHelper;
import org.codehaus.groovy.ast.ClassNode;
import org.codehaus.groovy... | {
"content_hash": "3869cd7d97205c81b7d67e3fc9bb3794",
"timestamp": "",
"source": "github",
"line_count": 218,
"max_line_length": 153,
"avg_line_length": 45.01376146788991,
"alnum_prop": 0.6505655762763681,
"repo_name": "komalsukhani/alioth-groovy2",
"id": "055694fb1b0ec047ad127e058df377bf2bc9ceb3",
... |
package com.google.code.validationframework.swing.property;
import com.google.code.validationframework.api.common.Disposable;
import com.google.code.validationframework.base.property.AbstractReadableWritableProperty;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.event.ComponentEvent;
import ... | {
"content_hash": "8f2052cf6a49c5d6b55f2f773fb98d7c",
"timestamp": "",
"source": "github",
"line_count": 148,
"max_line_length": 120,
"avg_line_length": 28.04054054054054,
"alnum_prop": 0.6293975903614458,
"repo_name": "padrig64/ValidationFramework",
"id": "ddd12589b7d1d3367d476016ee6a89a06f45efc9",
... |
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
# def twitter
# @user = User.from_omniauth(request.env["omniauth.auth"]).except("extra")
#
# if @user.persisted?
# flash.notice = "ログインしました!"
# sign_in_and_redirect workdays_path
# else
# session["devise.user_attri... | {
"content_hash": "2e64372e2d0e543b86b5732ca5153a30",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 78,
"avg_line_length": 31.846153846153847,
"alnum_prop": 0.6690821256038647,
"repo_name": "takudo/simple-kintai",
"id": "0d304acd7fc540aabee60fe59466088ed5901572",
"size": ... |
package com.claytontii.minecraft.DogFight;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
public class ItemUtil {
public static ItemStack createItem(Material material, int number, String name) {
ItemStack item = new ItemStack(material, number);
item.getItemMeta().setDisplayNam... | {
"content_hash": "34bc4246d05c522393ed5c020cb61658",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 84,
"avg_line_length": 25.642857142857142,
"alnum_prop": 0.724233983286908,
"repo_name": "ctII/DogFight",
"id": "cec7b563f40c191f8d9056cd2ccf47574c9cc5b3",
"size": "359",
... |
package huahua.viewpager;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.apkplugin.android.fragment.BasePluginFragment;
public class frag... | {
"content_hash": "d896101f44c48846b601fc68df160fa5",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 77,
"avg_line_length": 24.81512605042017,
"alnum_prop": 0.696241110734846,
"repo_name": "XinLan087/android_plugin",
"id": "209208d4ea0555bb04e89710e527590d2df84b69",
"size... |
using NUnit.Framework;
using Tautalos.Unity.Mobius.Signals;
using Tautalos.Unity.Mobius.Channels;
namespace Tautalos.Unity.Mobius.Tests
{
[TestFixture()]
internal class EmptySignallerTest
{
[Test,
Category("Given the EmptySignaller"),
Description("When asked if the EmptySignaller, Then it should answer posi... | {
"content_hash": "b7a8c92e5a2196f9cb82fc36649aa6c4",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 85,
"avg_line_length": 26.394736842105264,
"alnum_prop": 0.7477567298105683,
"repo_name": "tautalos/Unity.Mobius",
"id": "8ad25f74e8e8ca21a69cab3e4e918d2628f4ca9d",
"size":... |
<?php
namespace CheckDigit\Format;
class CreditCardTest extends \PHPUnit_Framework_TestCase
{
/**
* Data Provider for testValidate
* @return array
*/
public function testValidateProvider() {
return array(
array(CreditCard::AMERICAN_EXPRESS, "340000000000009", true),
... | {
"content_hash": "b087e9e5e0724a598cba2e629c48a426",
"timestamp": "",
"source": "github",
"line_count": 122,
"max_line_length": 141,
"avg_line_length": 48.48360655737705,
"alnum_prop": 0.6503803888419273,
"repo_name": "afoozle/checkdigit",
"id": "078b00e06939e3bb1eb1e46118abfaffbb5bc6ab",
"size": "... |
import StyleSheet from 'react-style';
import { IDCell } from './components/IDCell';
import { TextCell } from './components/TextCell';
import { CheckBoxCell } from './components/CheckBoxCell';
let styles = StyleSheet.create({
id: {
flex: .2,
marginRight: 5
},
text: {
flex: 1.5,
marginRight: 10
... | {
"content_hash": "7b76993960766e3d9c7ea8922b67e2f5",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 57,
"avg_line_length": 16.444444444444443,
"alnum_prop": 0.5932432432432433,
"repo_name": "mrblueblue/redux-playground",
"id": "956adaf5d00d643197eb6426098716d559271d4c",
"... |
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**invoice** | [**\XeroAPI\XeroPHP\Models\Accounting\Invoice**](Invoice.md) | |
**overpayment** | [**\XeroAPI\XeroPHP\Models\Accounting\Overpayment**](Overpayment.md) | | [optional]
**prepayment** | [**\XeroAPI\XeroPHP\Mod... | {
"content_hash": "5b42014459b1b7d15e9af5cfeffdb8cd",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 175,
"avg_line_length": 76.07142857142857,
"alnum_prop": 0.6553990610328638,
"repo_name": "unaio/una",
"id": "17e8334b7527beb15a0e5def58b7ad5d3c3afd0c",
"size": "1093",
"... |
import {expect} from 'chai'
import Server from '../../src'
import {getRandomString, createTestInstance, deleteTestInstance} from '../utils'
describe('Class', function() {
let _class = null
const testClassName = getRandomString()
const instanceName = getRandomString()
before(function(done) {
const ctx = {
... | {
"content_hash": "5aeac28038d0e81dc62994a4f0d22974",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 80,
"avg_line_length": 21.52238805970149,
"alnum_prop": 0.5270457697642164,
"repo_name": "Syncano/syncano-server-js",
"id": "d5bb7d367b7e483198d6f8bd9d5b47cb7fb57796",
"siz... |
// Copyright 2018-2022, University of Colorado Boulder
/**
* 'Directrix' checkbox.
*
* @author Chris Malley (PixelZoom, Inc.)
*/
import merge from '../../../../phet-core/js/merge.js';
import { Line } from '../../../../scenery/js/imports.js';
import GQColors from '../../common/GQColors.js';
import GQConstants from... | {
"content_hash": "56ac6b0fc83e4ca75b341fb56cbda893",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 84,
"avg_line_length": 31.444444444444443,
"alnum_prop": 0.6989399293286219,
"repo_name": "phetsims/graphing-quadratics",
"id": "2c6d7e7d3c56a582a3a5d55bc8032759768be991",
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package game.tests;
import game.logic.Dice;
import game.objects.AttackOutcome;
import game.objects.exceptions.DiceException;
import j... | {
"content_hash": "e49be3b8c708723a9ae2655cde2d7c8d",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 113,
"avg_line_length": 28.700934579439252,
"alnum_prop": 0.6284597850862911,
"repo_name": "HDXconnor/Risque",
"id": "ba692ac2f1f994f82610b91ad5a4b18d431da112",
"size": "3... |
/** @file STEPFileReader.cpp
* @brief Implementation of the STEP file parser, which fills a
* STEP::DB with data read from a file.
*/
#include "STEPFileReader.h"
#include "STEPFileEncoding.h"
#include "TinyFormatter.h"
#include "fast_atof.h"
#include <boost/make_shared.hpp>
using namespace A... | {
"content_hash": "89bb291f387f055c9d4f3897e9057dcb",
"timestamp": "",
"source": "github",
"line_count": 527,
"max_line_length": 153,
"avg_line_length": 30.554079696394687,
"alnum_prop": 0.5476338343062973,
"repo_name": "spetz911/almaty3d",
"id": "113ab50a1d8820c25e122530ab6055589d262ef6",
"size": "... |
________________________________________________________________________
This file is part of Logtalk <https://logtalk.org/>
Copyright 1998-2022 Paulo Moura <pmoura@logtalk.org>
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in ... | {
"content_hash": "ae24e40e6d2da1144683c81142964b44",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 74,
"avg_line_length": 43.96551724137931,
"alnum_prop": 0.7035294117647058,
"repo_name": "LogtalkDotOrg/logtalk3",
"id": "96f2707a3ed46690e5594c058e0aad0037867b09",
"size":... |
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py. -->
<title>Canvas test: 2d.fillStyle.parse.invalid.css-color-4-hsl-1</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/html/canvas/resources/canv... | {
"content_hash": "a28f2c805734559d8e1fa976609264dd",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 131,
"avg_line_length": 36.25806451612903,
"alnum_prop": 0.6868327402135231,
"repo_name": "chromium/chromium",
"id": "1850125baa451ac098c4979d3cbb07966679267e",
"size": "11... |
import DS from 'ember-data';
export default DS.ModelFragment.extend({
// TODO: Add attributes
AllowedHeaders: DS.hasManyFragments('stringValue'),
AllowedMethods: DS.hasManyFragments('stringValue'),
AllowedOrigins: DS.hasManyFragments('stringValue'),
MaxAgeInSeconds: DS.attr('number')
});
| {
"content_hash": "1dd418c5af38a17f9024951d3a77b7c3",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 55,
"avg_line_length": 34.44444444444444,
"alnum_prop": 0.7354838709677419,
"repo_name": "Pandacorn/deco",
"id": "697e8ff1d1d7ce90c7d6259e752977a21dac1bdd",
"size": "310",
... |
<?php
namespace Harp\Range\Test;
use Harp\Range\Test\Model\TestModel;
use Harp\Range\Range;
class IntegrationTest extends AbstractTestCase
{
public function testRange()
{
$model = TestModel::find(1);
$this->assertEquals(new Range(10, 32), $model->getDays());
$model->setDays(new Ran... | {
"content_hash": "bcdf69e6c5c562f1c53b1e9c0be7ef64",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 77,
"avg_line_length": 21.807692307692307,
"alnum_prop": 0.582010582010582,
"repo_name": "harp-orm/range",
"id": "36823f81114a0a4080a5b77983133c7c227f2830",
"size": "726",
... |
package com.mobileer.oboetester;
import java.io.IOException;
/**
* Base class for any audio input or output.
*/
public abstract class AudioStreamBase {
private StreamConfiguration mRequestedStreamConfiguration;
private StreamConfiguration mActualStreamConfiguration;
AudioStreamBase.DoubleStatistics m... | {
"content_hash": "a9261438485b7abc1a0621073ce00023",
"timestamp": "",
"source": "github",
"line_count": 198,
"max_line_length": 110,
"avg_line_length": 31.59090909090909,
"alnum_prop": 0.594404476418865,
"repo_name": "google/oboe",
"id": "b6eb6ff1ece0f071a100dd21ec0d4b404cc5b6dd",
"size": "6870",
... |
/*
* Copyright (C) 1990,91 Silicon Graphics, Inc.
*
_______________________________________________________________________
______________ S I L I C O N G R A P H I C S I N C . ____________
|
| $Revision: 1.1.1.1 $
|
| Classes:
| SoRotateDiscDragger
|
| Author(s): Paul Isaacs, Howard Look
|
... | {
"content_hash": "277468a3136fda7df6d5940922770490",
"timestamp": "",
"source": "github",
"line_count": 291,
"max_line_length": 76,
"avg_line_length": 29.367697594501717,
"alnum_prop": 0.6087058272876199,
"repo_name": "OpenXIP/xip-libraries",
"id": "9176060ffb7b82b5a64cc11b1c51fe253e2e6bd6",
"size"... |
package numbers
import (
"testing"
"github.com/stretchr/testify/assert"
)
var workingTests = map[string]int{
"I": 1,
"XC": 90,
"DCCCXCIX": 899,
"IX": 9,
"CXXV": 125,
"MMMMCMXCIX": 4999,
}
func TestToRoman(t *testing.T) {
for expected, input := range workingTests {
output,... | {
"content_hash": "cb451cecc4d0f233fd222a307228c24b",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 53,
"avg_line_length": 17.28125,
"alnum_prop": 0.6075949367088608,
"repo_name": "sbani/go-humanizer",
"id": "6c8633858ce01d8b5a5a781279b1f18796d16ed2",
"size": "1106",
"b... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// 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... | {
"content_hash": "3512fa7ee4f76c0529ef7e4b3808c0ba",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 84,
"avg_line_length": 37.86666666666667,
"alnum_prop": 0.7517605633802817,
"repo_name": "Marcus-L/xamarin-august-ble",
"id": "a27c212a2b3840dbc9b1164247854f9293a9ff20",
"s... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Naming conventions</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="Chapter 1... | {
"content_hash": "27b9e3ef7e8c4026b5d29efcbd8f4efe",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 410,
"avg_line_length": 48.41121495327103,
"alnum_prop": 0.6318532818532818,
"repo_name": "arangodb/arangodb",
"id": "ef54075d9fade70daec192539b4681a26ae9bf5e",
"size": "5... |
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Strings</title>
<link rel="stylesheet" href="../../../../resources/sap/ui/core/themes/sap_horizon/library.css" id="sap-ui-theme-sap.ui.core" data-sap-ui-ready="true">
<link rel="stylesheet" href="../../../../resources/sap/ui/layout/themes/sap_horizo... | {
"content_hash": "a18330bc550edbba142a54db42e8f19e",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 156,
"avg_line_length": 45.52,
"alnum_prop": 0.6590509666080844,
"repo_name": "SAP/openui5",
"id": "4a41a10310000f1e9624eadd5189bafab2e3e708",
"size": "1138",
"binary": f... |
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Windows.Media;
using WpfMath.Atoms;
using WpfMath.Boxes;
namespace WpfMath
{
// Represents mathematical formula that can be rendered.
public sealed class TexFormula
{
public string? TextStyle
... | {
"content_hash": "d3865ce6db68e9e0f3f7170b4bf363eb",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 118,
"avg_line_length": 32.669642857142854,
"alnum_prop": 0.5132549877015578,
"repo_name": "ForNeVeR/wpf-math",
"id": "1eb3ae74990681364ae75dd83c45afa780c519f1",
"size": "... |
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="averiBlue">#0094ff</color>
<color name="averiBlueHighlight">#7fc9ff</color>
<color name="sunsetOrange">#ff9800</color>
<color name="sunsetOrangeHighlight">#ffc400</color>
<color name="ubePurple">#9124f0</color>
<color name="ubePurpl... | {
"content_hash": "55484dcf06761048bdbab604b4dc6e70",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 55,
"avg_line_length": 42.857142857142854,
"alnum_prop": 0.6883333333333334,
"repo_name": "MarquisLP/World-Scribe",
"id": "702a4aeb937f853792c4d87d16ae48d4e18ee52a",
"size"... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var passport = require('passport');
//var routes = require('./routes/index');
var users = require('./routes/users');
var passport = ... | {
"content_hash": "bf1d65688d8d48f77681c7035732da40",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 113,
"avg_line_length": 29.718309859154928,
"alnum_prop": 0.6758293838862559,
"repo_name": "banacer/lab221",
"id": "c2f541d85dc68fa42cd6fe3f2505363ffb279b30",
"size": "2110... |
using System.Threading.Tasks;
using JaffaMania.Website.ApiFeatures.Contestants;
using JaffaMania.Website.Tests.Mocks;
using Microsoft.AspNetCore.Mvc;
using Xunit;
namespace JaffaMania.Website.Tests.ApiFeatures.Contestants
{
public class ContestantsController_GetContestantById_Should
{
[Fact]
[T... | {
"content_hash": "62a367bb916523f30b6efff82cc90830",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 105,
"avg_line_length": 31.271186440677965,
"alnum_prop": 0.6308943089430894,
"repo_name": "AndyHale/JaffaMania",
"id": "48d3595c795b23f99c72cb5bd5b61c7c9899bb74",
"size": ... |
package dhg.ccg.parse.dep
import dhg.ccg.cat.Cat
import dhg.util._
import dhg.ccg.tagdict.TagDictionary
import dhg.ccg.cat._
import dhg.util.viz._
import dhg.ccg.parse._
import dhg.ccg.parse.pcfg.CfgGuideChart
class DepParserEvaluator(outputFile: Option[String], printEverything: Boolean = false) extends ParserEvaluat... | {
"content_hash": "6bf384742ab8e8fcc972ab352dded524",
"timestamp": "",
"source": "github",
"line_count": 221,
"max_line_length": 227,
"avg_line_length": 41.92760180995475,
"alnum_prop": 0.5220159723721131,
"repo_name": "dhgarrette/2015-ccg-parsing",
"id": "c4e0b1f762553f11ab2c6e48753b3a6818b53858",
... |
namespace nc {
namespace htsim {
void ManualFlowDriver::AddData(const std::vector<AddDataEvent>& events) {
add_data_events_.insert(add_data_events_.end(), events.begin(), events.end());
std::stable_sort(add_data_events_.begin(), add_data_events_.end(),
[](const AddDataEvent& lhs, const AddDataEv... | {
"content_hash": "e0086b463a6b316d062a175055981831",
"timestamp": "",
"source": "github",
"line_count": 262,
"max_line_length": 80,
"avg_line_length": 30.736641221374047,
"alnum_prop": 0.6643486899292189,
"repo_name": "ngvozdiev/ncode-common",
"id": "50e8cd8697d94a1ed19242facb5068e725c468c5",
"size... |
// Open an OpenGl window and display a rectangle using a OpenGl GraphicContext
package main
import (
"image/color"
"log"
"runtime"
"github.com/go-gl/gl/v2.1/gl"
"github.com/go-gl/glfw/v3.1/glfw"
"github.com/llgcode/draw2d"
"github.com/llgcode/draw2d/draw2dgl"
)
var (
// global rotation
rotate int
wi... | {
"content_hash": "2c4f3591e1b9a2836e572a71b30b07b3",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 99,
"avg_line_length": 21.853448275862068,
"alnum_prop": 0.6745562130177515,
"repo_name": "stanim/draw2d",
"id": "15ba1e9470e2d309e4a5aaba35f39b17b9a034d3",
"size": "2535"... |
using UnityEngine;
namespace UnitySampleAssets.ImageEffects
{
[ExecuteInEditMode]
[AddComponentMenu("Image Effects/Edge Detection (Color)")]
public class EdgeDetectEffect : ImageEffectBase
{
public float threshold = 0.2F;
// Called by camera to apply image effect
private void O... | {
"content_hash": "11497d1db3803e1744d8b1188ce337e8",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 83,
"avg_line_length": 29.61111111111111,
"alnum_prop": 0.6754221388367729,
"repo_name": "noplisu/GGJ2015",
"id": "3b93236301a64a94950565b1a0bd692686429203",
"size": "593",... |
var hammerhead = window.getTestCafeModule('hammerhead');
var browserUtils = hammerhead.utils.browser;
var testCafeCore = window.getTestCafeModule('testCafeCore');
var preventRealEvents = testCafeCore.get('./prevent-real-events');
var parseKeySequence = testCafeCore.get('./utils/parse-key-sequence');
var testC... | {
"content_hash": "c3076b33c9c28a2cab42f2a1f1ca32d3",
"timestamp": "",
"source": "github",
"line_count": 441,
"max_line_length": 122,
"avg_line_length": 41.54875283446712,
"alnum_prop": 0.6006112536156742,
"repo_name": "helen-dikareva/testcafe-phoenix",
"id": "ad0cad5efe49312c987d88f5f1bb9af570787f05"... |
<!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_45) on Thu Nov 13 21:21:54 UTC 2014 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
AddressTypes (Apache Hadoop Main ... | {
"content_hash": "ac85af177b77efa89c5ff10a86a55dde",
"timestamp": "",
"source": "github",
"line_count": 362,
"max_line_length": 303,
"avg_line_length": 46.17955801104972,
"alnum_prop": 0.6456900161512233,
"repo_name": "gsoundar/mambo-ec2-deploy",
"id": "985737234d510cb1d23493447990d230a675b0e1",
"s... |
working with liudas:
public void Setup() {
//Examples of fluent API
//API change per liudas i blame skrilex
using(BloomFilter filter = BloomFilter.BestBeforeYouReach(25).WithConllisionProbabilityOf(0.1)) // maybe LimitedTo(25)
{
}
using(BloomFilter filter = BloomFilter.ForExpected(25).WithConllisionProbabi... | {
"content_hash": "d06fd47e9d9d34c56feb64a3152262fc",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 136,
"avg_line_length": 20.93220338983051,
"alnum_prop": 0.7441295546558705,
"repo_name": "gregoryyoung/bloomburger",
"id": "01cf5ce0a6deac0ba1d09b57d8485aec3f3f5e76",
"siz... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.6.1-master-fcb9b2c
*/
md-backdrop.md-opaque.md-pink-theme {
background-color: rgba(0, 0, 0, 0.3);
position: absolute; }
md-bottom-sheet.md-pink-theme {
background-color: #fafafa;
border-top-color: #bdbdbd; }
md-botto... | {
"content_hash": "d563c284cc4c45cfc34c8266c383decc",
"timestamp": "",
"source": "github",
"line_count": 228,
"max_line_length": 276,
"avg_line_length": 42.05263157894737,
"alnum_prop": 0.6793909052982895,
"repo_name": "DonPage/sync-player",
"id": "de1a11eb578d2cf2392d23bbab81d83c2df51743",
"size": ... |
<?php
namespace CascadeEnergy\ElasticSearch\Iterators;
use Elasticsearch\Client;
/**
* Based on the original iterator class from the Elasticsearch package.
*
* Updated to allow the scroll ID to be explicitly cleared, which makes it possible to better control and handle
* errors (particularly 404 exceptions) that... | {
"content_hash": "d8f04a0863f47642b35e89d6235ce720",
"timestamp": "",
"source": "github",
"line_count": 158,
"max_line_length": 112,
"avg_line_length": 23.20253164556962,
"alnum_prop": 0.5548281505728314,
"repo_name": "CascadeEnergy/php-elasticsearch",
"id": "2fc853125945bf7db98bf901598f23d8cb597495"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.