text stringlengths 2 1.04M | meta dict |
|---|---|
using Newtonsoft.Json;
using System.Linq;
namespace SensorThings.Core
{
public class HomeDocument
{
[JsonProperty("value")]
public Entity[] Entities { get; set; }
public string GetUrlByEntityName(string name)
{
var url = (from i in Entities where i.Name == name sel... | {
"content_hash": "412a677089887a53e59cad07b7db0d28",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 94,
"avg_line_length": 22.130434782608695,
"alnum_prop": 0.5756385068762279,
"repo_name": "Geodan/sensorthings-net-sdk",
"id": "d206dc2b0dae75afa74520c055d6b246aeec4f82",
"... |
package platform
import (
"bytes"
"fmt"
"os"
"path"
"path/filepath"
"regexp"
"strconv"
"strings"
"text/template"
boshdpresolv "github.com/cloudfoundry/bosh-agent/infrastructure/devicepathresolver"
"github.com/cloudfoundry/bosh-agent/platform/cdrom"
boshcert "github.com/cloudfoundry/bosh-agent/platform/cer... | {
"content_hash": "78831f74a6aebeaf4552cde4f168e52e",
"timestamp": "",
"source": "github",
"line_count": 1642,
"max_line_length": 226,
"avg_line_length": 30.102923264311816,
"alnum_prop": 0.709785753302717,
"repo_name": "gu-bin/bosh-agent",
"id": "bb85ac33893cfbe2785a8b59f0f7abd4fa093d44",
"size": "... |
{% load i18n %}
{% extends "html/documents/page.html" %}
{% block title %}{% trans %}New Document{% endtrans %} | {% trans %}Documents{% endtrans %}{% endblock %}
{% block module_title %}{{ folder.name }}{% endblock %}
{% block module_subtitle %}{% trans %}Folder{% endtrans %}{% endblock %}
{% block module_topmenu ... | {
"content_hash": "664b97d33bc9fa30660773d97c6e545a",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 133,
"avg_line_length": 49.794117647058826,
"alnum_prop": 0.6302421736562316,
"repo_name": "Sofcom/treeio",
"id": "c3997b83d54a070f9fa281fe4b98d4068ec32de0",
"size": "1693"... |
package org.python.util.install.driver;
import java.io.File;
import java.io.IOException;
import junit.framework.TestCase;
import org.python.util.install.FileHelper;
import org.python.util.install.Installation;
import org.python.util.install.JavaVersionTester;
public class NormalVerifierTest extends TestCase {
... | {
"content_hash": "0fc87acbb03a2f718049ab0a9664b387",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 100,
"avg_line_length": 41.49618320610687,
"alnum_prop": 0.6414643119941134,
"repo_name": "nelmiux/CarnotKE",
"id": "a8d29980bdc7903b0537c21bb66f5ad37490c2c3",
"size": "54... |
<?php
namespace dnocode\awsddb\ar;
interface ActiveRecordInterface
{
/**
hash primarykey of principal index
*/
public static function primaryKey();
/**
rangekey of principal index
*/
public static function rangeKey();
public static function globalIndexes();
/*... | {
"content_hash": "0b433b54dca58e73244e30645d6581e5",
"timestamp": "",
"source": "github",
"line_count": 387,
"max_line_length": 119,
"avg_line_length": 41.96640826873385,
"alnum_prop": 0.6479896558093713,
"repo_name": "dnocode/dnocode-yii2-awsddb",
"id": "188a6f0b4d65fea0d8251ecaac342b42c0f2b50c",
... |
<div class="umb-editor umb-radiobuttons" ng-controller="Umbraco.PropertyEditors.RadioButtonsController">
<ul class="unstyled">
<li ng-repeat="item in model.config.items">
<label class="radio umb-radiobuttons__label">
<input type="radio" name="radiobuttons-{{model.alias}}"
... | {
"content_hash": "81164a21cd5ac83143d17a8d9e9fead1",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 105,
"avg_line_length": 46,
"alnum_prop": 0.5127877237851662,
"repo_name": "aaronpowell/Umbraco-CMS",
"id": "7af6491641edc2365bb058d6f82051c7362dfd3f",
"size": "784",
"bi... |
/**
* These are all the transformations that occur *within* block-level
* tags like paragraphs, headers, and list items.
*/
showdown.subParser('spanGamut', function (text, options, globals) {
'use strict';
text = showdown.subParser('codeSpans')(text, options, globals);
text = showdown.subParser('escapeSpecial... | {
"content_hash": "17be4bab9a6fd2f96ee6137ab55e618d",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 93,
"avg_line_length": 40.03448275862069,
"alnum_prop": 0.7011197243755384,
"repo_name": "bsansouci/showdown",
"id": "0193c3d54906f91df764d829832e025d44f97dc4",
"size": "11... |
import sys
from mauto import gui
from mauto.api import library
def show():
gui.show()
def select_repo():
gui.select_repo()
def list_macros():
return library.macros.keys()
def new_macro(*arg, **kwds):
return library.new_macro(*arg, **kwds)
def get_macro(name):
return library.get(name)
de... | {
"content_hash": "f416cb853539322e5df49dace06bf2fd",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 42,
"avg_line_length": 14.416666666666666,
"alnum_prop": 0.6257225433526011,
"repo_name": "csaez/mauto",
"id": "9233f7c2437fb7455f008dd6631a612f6d896ac5",
"size": "692",
... |
<?php
/**
* VAT validation controller
*
* @category Mage
* @package Mage_Adminhtml
* @author Magento Core Team <core@magentocommerce.com>
*/
class Mage_Adminhtml_Customer_System_Config_ValidatevatController extends Mage_Adminhtml_Controller_Action
{
/**
* Perform customer VAT ID validation
... | {
"content_hash": "dd0a190e23e5af234f02294ab0248622",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 106,
"avg_line_length": 26.176470588235293,
"alnum_prop": 0.5567415730337079,
"repo_name": "andou/magento-bare",
"id": "b16cf880892122148dceeab461756d10319f9a39",
"size": "... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function(Blueprint $table)
{
$table->increments('id');
$table->str... | {
"content_hash": "c14174c4c94ef1d73544402de837a991",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 52,
"avg_line_length": 15.837837837837839,
"alnum_prop": 0.6313993174061433,
"repo_name": "Daniel-HM/Portfolio",
"id": "fe4bd6d153997b4a4b4b1f8fcb0f9fedacd4ad46",
"size": "... |
class SNMPwalk
attr_accessor :switchport
def initialize(switchips)
print "Getting switch interface names "
@switchport = {}
switchips.each do |switchip|
switch = Resolv.new.getname(switchip).split(/\./)[0]
ports = {}
snmpoutput = `snmpwalk -v2c -c public #{switchip} 1.3.6.1.2... | {
"content_hash": "b7e325506ea07bc1ce27234ba8be28b7",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 78,
"avg_line_length": 26.725,
"alnum_prop": 0.5481758652946679,
"repo_name": "lazy404/sflow",
"id": "9aa869da4894d6f7065ecbb8b131c9236868c8d2",
"size": "1069",
"binary":... |
@protocol XipSlideDownVCDelegate <NSObject>
@optional
- (void) topWillOpen;
- (void) topDidOpen;
- (void) topWillClose;
- (void) topDidClose;
@end
| {
"content_hash": "572b555d577917f3596a602fbaec93bf",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 43,
"avg_line_length": 15,
"alnum_prop": 0.7266666666666667,
"repo_name": "xiplias/XipSlideDown",
"id": "33682a9215c08f3e328ad0b027b671013181c596",
"size": "150",
"binary... |
package org.apache.jackrabbit.oak.spi.security.authentication.external;
import java.util.HashMap;
import java.util.Map;
import javax.jcr.Credentials;
import javax.jcr.GuestCredentials;
import javax.jcr.SimpleCredentials;
import javax.security.auth.login.AppConfigurationEntry;
import javax.security.auth.login.Configur... | {
"content_hash": "ca7c197b94bce524a4dfac7ac1711ebd",
"timestamp": "",
"source": "github",
"line_count": 345,
"max_line_length": 143,
"avg_line_length": 35.82608695652174,
"alnum_prop": 0.6150485436893204,
"repo_name": "francescomari/jackrabbit-oak",
"id": "74a84889a3307dc2661dd221b28aef49bba69884",
... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace Moksy.IntegrationTest
{
[TestClass]
public class ProxyTests : TestBase
{
public ProxyTests()
... | {
"content_hash": "9538ab4d7c8b8adb309e88a91b7b90fc",
"timestamp": "",
"source": "github",
"line_count": 244,
"max_line_length": 228,
"avg_line_length": 36.75409836065574,
"alnum_prop": 0.613514719000892,
"repo_name": "aidancasey/Moksy",
"id": "3581da7cb9512ec47547848d559350f6b1305a41",
"size": "897... |
<div class="container">
<div *ngIf="!izbor" class="row" >
<ba-card title="" baCardClass="with-scroll">
<ng2-smart-table [settings]="settings" [source]="source" (delete)="onDelete($event)" (edit)="onEdit($event)" (create)="onCreate()"></ng2-smart-table>
</ba-card>
</div>
</div>
<div *ngIf="izbor" clas... | {
"content_hash": "fe13c98fa4427708bd9545ec5bb32a7c",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 155,
"avg_line_length": 45,
"alnum_prop": 0.6295138888888889,
"repo_name": "radni1234/ng2-admin",
"id": "ba53da0b9f53af719d74eab84c99934d14284cf2",
"size": "2888",
"binar... |
<?xml version="1.0" encoding="latin1" ?>
<!DOCTYPE cref SYSTEM "cref.dtd">
<cref>
<header>
<copyright>
<year>1996</year><year>2009</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
The contents of this file are subject to the Erlang Public License,
... | {
"content_hash": "f70860f691d0b1a96676c52080467b65",
"timestamp": "",
"source": "github",
"line_count": 141,
"max_line_length": 106,
"avg_line_length": 38.312056737588655,
"alnum_prop": 0.581081081081081,
"repo_name": "racker/omnibus",
"id": "5699485845593bf6b533a5cd621775fc31db752a",
"size": "5402... |
<?php
namespace Surume\Loop;
use Surume\Loop\Flow\FlowController;
interface LoopExtendedInterface extends LoopInterface
{
/**
* @return LoopModelInterface
*/
public function model();
/**
* @param bool $all
* @return LoopExtendedInterface
*/
public function flush($all = false... | {
"content_hash": "dc6a191ad0e9a0589bcee279222d42b6",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 70,
"avg_line_length": 18.954545454545453,
"alnum_prop": 0.6003197442046363,
"repo_name": "khelle/surume",
"id": "b2c4ab4b913ab4fcc92b9c78db3c54e7f41f4261",
"size": "1251",... |
{% extends "helpdesk/help_base.html" %}
{% block title %}django-helpdesk API Documentation{% endblock %}
{% block heading %}django-helpdesk API Documentation{% endblock %}
{% block content %}
<h2>Contents</h2>
<ul>
<li><a href='#introduction'>Introduction</a></li>
<li><a href=... | {
"content_hash": "d6071a1c6a0dacbcfc409aff08393486",
"timestamp": "",
"source": "github",
"line_count": 271,
"max_line_length": 268,
"avg_line_length": 43.51660516605166,
"alnum_prop": 0.5994233867548546,
"repo_name": "temnoregg/django-helpdesk",
"id": "bcb7cb92d7657e78173a676c5de3b7b1c565942e",
"s... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
namespace Yuvia.Web
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
// Web API routes
... | {
"content_hash": "e818a6c1d782ac9104e13678bb28c1b1",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 62,
"avg_line_length": 24.333333333333332,
"alnum_prop": 0.577054794520548,
"repo_name": "codehuntsman/yuvia",
"id": "be0bbd98b21f1594576018061216bb81df3a395b",
"size": "58... |
ejb-multi-server: EJB Communication Across Servers
======================================================
Author: Wolf-Dieter Fink
Level: Advanced
Technologies: EJB, EAR
Summary: EJB applications deployed to different servers that communicate via EJB remote calls
Target Platform: EAP
Source: <https://github.com/jboss-j... | {
"content_hash": "ed588efe898a9e08be6024f4da8ae1c2",
"timestamp": "",
"source": "github",
"line_count": 200,
"max_line_length": 935,
"avg_line_length": 60.18,
"alnum_prop": 0.7362080425390495,
"repo_name": "lindstae/MyTestRepo",
"id": "ffa10b6d49103dc9b7cf736d29df0d922e76c4a9",
"size": "12036",
"... |
./recompile.sh
# Check command line of command line arguments
if [ $# -lt 2 ]; then
echo "Illegal number of command line arguments"
echo "Usage: MODE PATH"
exit
fi
MODE=$1
CONFDIR=$2
OUTPUTDIR=../test/m_bucket/optimality_logs/
rm $OUTPUTDIR/log*
TESTCONFS=( `ls ${CONFDIR}/` )
COUNT=${#TESTCONFS[@]}
OS_TYPE=`unam... | {
"content_hash": "a0380eb2770864af84524d3beead7292",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 79,
"avg_line_length": 20.13953488372093,
"alnum_prop": 0.6443418013856813,
"repo_name": "khuevu/squall",
"id": "9c15a66e416d7b1303166c6627d22c936573b326",
"size": "878",
... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.crazycake</groupId>
<artifactId>shiro-redis</artifactId>
<ver... | {
"content_hash": "90f9c8845e83efb4e5867d013d1285ee",
"timestamp": "",
"source": "github",
"line_count": 234,
"max_line_length": 173,
"avg_line_length": 27.72222222222222,
"alnum_prop": 0.653769076614768,
"repo_name": "alexxiyang/shiro-redis",
"id": "00d3bfb586f3e7e9bbf62377c387b7d16902f6aa",
"size"... |
import abc
import collections
import os
import re
import shutil
import time
import netaddr
from neutron_lib import constants
from neutron_lib import exceptions
from oslo_config import cfg
from oslo_log import log as logging
import oslo_messaging
from oslo_utils import excutils
from oslo_utils import uuidutils
import s... | {
"content_hash": "48cffafd2d1ef9374e0c7443bbb8d5ba",
"timestamp": "",
"source": "github",
"line_count": 1286,
"max_line_length": 79,
"avg_line_length": 41.052099533437016,
"alnum_prop": 0.5495614948951566,
"repo_name": "bigswitch/neutron",
"id": "ee855dc9acca2ce3d560d74e8550cd4278ff212b",
"size": "... |
package com.tazine.thread.create;
/**
* 线程状态
*
* @author frank
* @date 2018/07/26
*/
public class ThreadStateDemo extends Thread {
private synchronized void waitForASecond() throws InterruptedException {
wait(500);
}
private synchronized void waitForever() throws InterruptedException {
... | {
"content_hash": "3243dd90c8a322da46f070a76b6ae47d",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 76,
"avg_line_length": 19,
"alnum_prop": 0.5838815789473685,
"repo_name": "BookFrank/CodePlay",
"id": "2e5b63209d6226e3ae13d704aa524550dbcc65d8",
"size": "616",
"binary":... |
require 'pathname'
Puppet::Type.newtype(:dsc_xspwebapplicationappdomain) do
require Pathname.new(__FILE__).dirname + '../../' + 'puppet/type/base_dsc'
require Pathname.new(__FILE__).dirname + '../../puppet_x/puppetlabs/dsc_type_helpers'
@doc = %q{
The DSC xSPWebApplicationAppDomain resource type.
Autom... | {
"content_hash": "e28650d232d9185a63bb50374a1215b9",
"timestamp": "",
"source": "github",
"line_count": 151,
"max_line_length": 143,
"avg_line_length": 32.397350993377486,
"alnum_prop": 0.6618969746524939,
"repo_name": "cowofevil/puppetlabs-dsc",
"id": "d156a0fa49ea46bc48097b5bf7c4e1bf01795b24",
"s... |
from PythonQt import QtCore, QtGui
from director import lcmUtils
from director.simpletimer import SimpleTimer
from director.timercallback import TimerCallback
import subprocess
import os
import sys
class LCMLoggerWidget(object):
def __init__(self, statusBar=None):
self.manager = lcmUtils.LCMLoggerManager(... | {
"content_hash": "408f95b4b06ac6a10c445888df1a57d4",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 119,
"avg_line_length": 37.80152671755725,
"alnum_prop": 0.6453957996768982,
"repo_name": "patmarion/director",
"id": "838101ffdf62d920116635dde6730232dcdc090e",
"size": "... |
from __future__ import absolute_import
import logging
from typing import Any, Dict, List, Set, Tuple, Optional, Text
from django.contrib.auth.backends import RemoteUserBackend
from django.conf import settings
from django.http import HttpResponse
import django.contrib.auth
from django_auth_ldap.backend import LDAPBac... | {
"content_hash": "d21354776353532ca60d82ede648cad6",
"timestamp": "",
"source": "github",
"line_count": 557,
"max_line_length": 114,
"avg_line_length": 39.99102333931777,
"alnum_prop": 0.6127946127946128,
"repo_name": "ryanbackman/zulip",
"id": "ac52a7f2ee4df7b6b7e9b3a3b84e79f465b6fdae",
"size": "2... |
<?php
/**
* XmlConnect index controller
*
* @category Mage
* @package Mage_Xmlconnect
* @author Magento Core Team <core@magentocommerce.com>
*/
class Mage_XmlConnect_IndexController extends Mage_XmlConnect_Controller_Action
{
/**
* Default action
*
* @return null
*/
publi... | {
"content_hash": "4e6ee5ed52c1804024fe6d3dcb423860",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 97,
"avg_line_length": 24.7,
"alnum_prop": 0.5654520917678812,
"repo_name": "dangquochoi2007/shop2015",
"id": "c3f2a0bfaa84e1a24bce2b1a0c2311d4cf859db8",
"size": "1683",
... |
<?php
namespace smile\ldapBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$this->asser... | {
"content_hash": "ae48e1b6f9da304b0c83a92c17c7aa21",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 90,
"avg_line_length": 23.470588235294116,
"alnum_prop": 0.6741854636591479,
"repo_name": "azyzromanov/symfony_test",
"id": "1e7388e9078226bb1d561ef3276ccd16f1de682c",
"siz... |
const protractorUtils = require('@angular/bazel/protractor-utils');
const protractor = require('protractor');
module.exports = function(config) {
return protractorUtils.runServer(config.workspace, config.server, '-port', [])
.then(serverSpec => {
const serverUrl = `http://localhost:${serverSpec.port}... | {
"content_hash": "5e76523c2c5288829fc43c705ac75949",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 100,
"avg_line_length": 44.666666666666664,
"alnum_prop": 0.7014925373134329,
"repo_name": "jonrimmer/angular",
"id": "6671d2d2339857d31a044bc9bc0eee4f7a1fe978",
"size": "8... |
package io.quarkus.hibernate.orm.multiplepersistenceunits.model.annotation.user;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "User_")
public class User {
priva... | {
"content_hash": "0e29e04b3f62e3783ef3ba5da4de0560",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 80,
"avg_line_length": 18.804347826086957,
"alnum_prop": 0.638150289017341,
"repo_name": "quarkusio/quarkus",
"id": "5071e3a692150918a397d3d5390a895859f99b7d",
"size": "865... |
<html>
<body>
<font face="verdana" size="-1">
This intention converts properties of closure type to methods.
</font>
</body>
</html>
| {
"content_hash": "2f6e85a3c6f29218d9913662d6345dc1",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 62,
"avg_line_length": 19.142857142857142,
"alnum_prop": 0.6940298507462687,
"repo_name": "joewalnes/idea-community",
"id": "507337e17c805393f6a9d2f524894b5d89ac8bca",
"size... |
'use strict'
exports.seed = function(knex, Promise) {
// Deletes ALL existing entries
return Promise.all([
// Inserts seed entries
knex('patient')
.insert({
last_name: 'White',
first_name: 'Barry',
middle_initial: 'O',
birth_date: '1972-7-7',
street_address: '2... | {
"content_hash": "df0d4428c5a5e89edae570ac6e601ca4",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 47,
"avg_line_length": 22.63157894736842,
"alnum_prop": 0.5348837209302325,
"repo_name": "daveharmswebdev/bvc-ehr",
"id": "74fc50544ab81dcd5c5bc344b629cf6714343643",
"size"... |
import { Component, ViewChild } from '@angular/core';
import { Events, MenuController, Nav, Platform } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { Storage } from '@ionic/storage';
import { AboutPage } from '../pages/about/about';
import { AccountPage } from '../pages/ac... | {
"content_hash": "280114bf6746a0ef90a92fc4286e4c5f",
"timestamp": "",
"source": "github",
"line_count": 172,
"max_line_length": 125,
"avg_line_length": 33.098837209302324,
"alnum_prop": 0.650447918496399,
"repo_name": "netive/melppang",
"id": "fb5a069d147c851a049205cf9e9537286f29ec2f",
"size": "569... |
from __future__ import division, print_function
import matplotlib
matplotlib.use('Agg')
from matplotlib import rc
import matplotlib.pyplot as plt
import pandas as pd
def initialize_matplotlib():
inches_per_pt = 1.0 / 72.27
fig_width = 240 * inches_per_pt # width in inches
fig_height = 160 * inches_per_p... | {
"content_hash": "96edde13485a09be9d943cf5fd6cc6fe",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 67,
"avg_line_length": 26.457831325301203,
"alnum_prop": 0.5655737704918032,
"repo_name": "flaviovdf/tribeflow",
"id": "f86056c51beecacdac10dd2ecb37a3c7a2ee74f7",
"size": "... |
<?php
namespace Bolt\Extension\IComeFromTheNet\BookMe\Bundle\Order\Model\Builder;
class OrderCalcualtor
{
public function calculateSurchargeCost()
{
}
public function calcualteCouponDiscount()
{
}
public function calcualteCustomerCost()
... | {
"content_hash": "a1bd3b760f340d587471dcd70dd83f85",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 75,
"avg_line_length": 12.567567567567568,
"alnum_prop": 0.5526881720430108,
"repo_name": "icomefromthenet/BoltBookeMe",
"id": "729fa4c9b3357d374cb1e75c6a2d59f3626dad0c",
"... |
function cam_overlay() {
container ={};
container.win = Titanium.UI.createWindow();
container.scanner = Titanium.UI.createView({
width:260,
height:200,
borderColor:'red',
borderWidth:5,
borderRadius:15
});
container.button = Titanium.UI.createButton({
color:'#fff',
backgroundImage:'/images/BUTT_g... | {
"content_hash": "55ce93c53fed545ffbd9dd1c4b830347",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 76,
"avg_line_length": 24.022727272727273,
"alnum_prop": 0.6975717439293598,
"repo_name": "fziegler/plates",
"id": "7030a63d7f94bee139d446c7b4407069aabff956",
"size": "317... |
<!DOCTYPE html>
<html>
<head>
<!-- [[! Document Settings ]] -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- [[! Page Meta ]] -->
<title>raycoarana</title>
<meta name="description" content="raycoarana - My coding adventures and other random stuff" />
... | {
"content_hash": "eb2aa7e3d0e0bc83b1043dacda277b7e",
"timestamp": "",
"source": "github",
"line_count": 225,
"max_line_length": 437,
"avg_line_length": 38.30222222222222,
"alnum_prop": 0.5778602924112323,
"repo_name": "raycoarana/raycoarana.github.io",
"id": "db488076d42d3600de573195fa68b64a9831be46"... |
bool FIRCLSCompactUnwindInit(FIRCLSCompactUnwindContext* context,
const void* unwindInfo,
const void* ehFrame,
uintptr_t loadAddress) {
if (!FIRCLSIsValidPointer(context)) {
FIRCLSSDKLog("Error: invalid context passed to compac... | {
"content_hash": "53accae85b42bd14369fdad1f58a3e84",
"timestamp": "",
"source": "github",
"line_count": 377,
"max_line_length": 99,
"avg_line_length": 31.618037135278513,
"alnum_prop": 0.6621644295302014,
"repo_name": "firebase/firebase-ios-sdk",
"id": "efd2542604bfb49013f5c975bd1892fdec1b3f23",
"s... |
using System.Text;
using Diadoc.Api.Proto;
using Diadoc.Api.Proto.Recognition;
namespace Diadoc.Api
{
public partial class DiadocHttpApi
{
public string Recognize(string fileName, byte[] content)
{
var queryString = string.Format("/Recognize?filename={0}", fileName);
var responseBytes = PerformHttpRequest... | {
"content_hash": "00a281dc2dc2c062b5b9af604e09bc98",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 86,
"avg_line_length": 30.678571428571427,
"alnum_prop": 0.7508731082654249,
"repo_name": "s-rogonov/diadocsdk-csharp",
"id": "d9697d17d6022fa8d373ee3a784d6da2967348fa",
"s... |
script_name=$(basename ${0}); pushd $(dirname ${0}) > /dev/null
script_path=$(pwd -P); popd > /dev/null
bashstrap_path=($(cd ${script_path}/..; pwd -P))
source "${script_path}/common.sh"
function preinstall_check() {
if [ -r ${install_file} ]; then
echo "Bashstrap already installed. Try ${script_path}/update.sh... | {
"content_hash": "309e1d6fb08b2b6124ae7757deea5812",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 77,
"avg_line_length": 23.52777777777778,
"alnum_prop": 0.6257378984651711,
"repo_name": "andystanton/bashstrap",
"id": "1e89749de6742a37a321d606c02cd536272ce26d",
"size": ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Ionic makes it incredibly easy to build beautiful and interactive mobile apps using HTML5 and AngularJS.">
<meta name="keywords" content="html5,ja... | {
"content_hash": "54f75bac73469b27f3c82ccaa9d8feed",
"timestamp": "",
"source": "github",
"line_count": 444,
"max_line_length": 160,
"avg_line_length": 31.045045045045047,
"alnum_prop": 0.6441526407428904,
"repo_name": "philmerrell/ionic-site",
"id": "62c19d1b0c189dbb7e8d345fa412410462564315",
"siz... |
namespace crashpad {
namespace internal {
ModuleSnapshotWin::ModuleSnapshotWin()
: ModuleSnapshot(),
name_(),
pdb_name_(),
uuid_(),
pe_image_reader_(),
process_reader_(nullptr),
timestamp_(0),
age_(0),
initialized_(),
vs_fixed_file_info_(),
initialized_vs... | {
"content_hash": "6df013ef37fdeb256733ca1297c7b191",
"timestamp": "",
"source": "github",
"line_count": 200,
"max_line_length": 80,
"avg_line_length": 32.985,
"alnum_prop": 0.6656055782931636,
"repo_name": "XiaosongWei/chromium-crosswalk",
"id": "0553f35b1affb55be510ecfed54f785c20158aa8",
"size": "... |
import time
import fixtures
import mock
import nova
from nova import test
from nova.tests import fixtures as nova_fixtures
from nova.tests.unit import cast_as_call
from nova.tests.unit import policy_fixture
from nova.tests.unit.virt.libvirt import fake_libvirt_utils
from nova.tests.unit.virt.libvirt import fakelibvir... | {
"content_hash": "09e3b430e052cd881faa98c34c80c139",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 74,
"avg_line_length": 43.378787878787875,
"alnum_prop": 0.6105483758295495,
"repo_name": "jianghuaw/nova",
"id": "df0fb6af7a3e81a3a5165a6df9ec3f92450808e6",
"size": "6301... |
// 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
/* SearchCommand.cs --
* Ars Magna project, http://arsmagna.ru
* -------------------------------------------------------
* Status: poor
*/
#region Using ... | {
"content_hash": "02f1a85b8ac5936262873a110f193309",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 96,
"avg_line_length": 30.80821917808219,
"alnum_prop": 0.5264562027567808,
"repo_name": "amironov73/ManagedIrbis",
"id": "3dd9d34286cc3a5da199e96b20408733fec7a893",
"size"... |
package storage
type Group struct {
Name string `json:"name"`
Rights map[string]map[string]string `json:"rights"`
}
type User struct {
Name string `json:"name"`
PasswordHash string `json:"passwordhash,omitempty"`
Groups []string `json:"groups"`
}
type ProjectConfig stru... | {
"content_hash": "37a7c39d8d1eb174a7e8d6dc96e13931",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 54,
"avg_line_length": 20.863636363636363,
"alnum_prop": 0.6557734204793029,
"repo_name": "trusch/jwtd",
"id": "13b5d98e0743d36c3926a82088da0a89ebe995dc",
"size": "459",
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>presburger: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | {
"content_hash": "a678370cdf63e1805a20c3d9e04a0116",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 159,
"avg_line_length": 42.186440677966104,
"alnum_prop": 0.5579215213606535,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "f3f9b63fb5d881289c9f2d57aae0edc348d95ec3",... |
package org.mybatis.spring;
import static org.assertj.core.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.fail;
import java.sql.SQLException;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
imp... | {
"content_hash": "4a638fa85491b55c658375e2403f3797",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 116,
"avg_line_length": 30.02958579881657,
"alnum_prop": 0.7497536945812808,
"repo_name": "mybatis/spring",
"id": "1fbe09d1802ed4d317c26c306e4dd4bb38198545",
"size": "5694... |
// Copyright © 2012 onwards, Andrew Whewell
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice, th... | {
"content_hash": "09f571bfa8f821bd331aa60df0d93870",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 749,
"avg_line_length": 49.358620689655176,
"alnum_prop": 0.6086349028922733,
"repo_name": "wiseman/virtual-radar-server",
"id": "e7610442666252bdd3a71614328b3b2b59f3f809",
... |
#ifndef __AFXPLEX_H__
#define __AFXPLEX_H__
#ifndef __AFX_H__
#include <afx.h>
#endif
#ifdef _AFX_PACKING
#pragma pack(push, _AFX_PACKING)
#endif
#ifdef AFX_COLL_SEG
#pragma code_seg(AFX_COLL_SEG)
#endif
struct CPlex // warning variable length structure
{
CPlex* pNext;
#if (_AFX_PACKING >=... | {
"content_hash": "d88abc8c91283a9198178d0510c68598",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 77,
"avg_line_length": 19.931818181818183,
"alnum_prop": 0.5758266818700114,
"repo_name": "johanlantz/headsetpresenter",
"id": "9e6f446256605ed8ac5334a2eacae8b5c8f785bb",
"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hierarchy-builder-shim: 17 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... | {
"content_hash": "0b71d1ecb6dccbae305eafdaa2e3dd7b",
"timestamp": "",
"source": "github",
"line_count": 159,
"max_line_length": 159,
"avg_line_length": 43.515723270440255,
"alnum_prop": 0.542997542997543,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "5ca70cd8b3b0617c85b26d7133dda185033a5c1a",
... |
package com.android.dx;
import com.android.dx.rop.code.Rop;
import com.android.dx.rop.code.Rops;
import com.android.dx.rop.type.TypeList;
/**
* An operation on two values of the same type.
*
* <p>Math operations ({@link #ADD}, {@link #SUBTRACT}, {@link #MULTIPLY},
* {@link #DIVIDE}, and {@link #REMAINDER}) supp... | {
"content_hash": "346875a88c091c5ee12ae8bacd141611",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 80,
"avg_line_length": 23.58653846153846,
"alnum_prop": 0.5169180595189564,
"repo_name": "sawrus/dexmaker",
"id": "20c6501f832e23a0319de1511d5e54991c424d62",
"size": "3072... |
#include "src/core/lib/iomgr/port.h"
/* This polling engine is only relevant on linux kernels supporting epoll() */
#ifdef GRPC_LINUX_EPOLL
#include "src/core/lib/iomgr/ev_epoll_linux.h"
#include <assert.h>
#include <errno.h>
#include <poll.h>
#include <pthread.h>
#include <signal.h>
#include <string.h>
#include <... | {
"content_hash": "915b80b7b2c22ae6bed6808adf79887f",
"timestamp": "",
"source": "github",
"line_count": 2129,
"max_line_length": 80,
"avg_line_length": 35.419915453264444,
"alnum_prop": 0.6143961596095957,
"repo_name": "apolcyn/grpc",
"id": "f6372c0f3f6425fc29407d891c73c2756dc12bed",
"size": "76977... |
This guide covers a migration from `redux-resource-prop-types@2.x` to `redux-resource-prop-types@3.0.0`.
v3.0.0 of `redux-resource-prop-types` introduced several breaking changes. The philosophy behind
v3.0.0 is that we want to provide you with better primitive prop types to build more robust
prop types.
The v2 prop ... | {
"content_hash": "66d1ce64e30b71d8ea395f4a89944598",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 104,
"avg_line_length": 29.70731707317073,
"alnum_prop": 0.7536945812807881,
"repo_name": "jmeas/resourceful-redux",
"id": "a49b0ab171b19dea7038b46c4b869e3e5d94c2a5",
"size... |
.apcdialog {
position: absolute;
border-radius: 7px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); }
> .apcdialog-container {
display: -webkit-box;
display: -moz-box;
display: box;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: v... | {
"content_hash": "071569e7bc6401f8f928a04cf87ef813",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 46,
"avg_line_length": 26.169642857142858,
"alnum_prop": 0.6015011941316957,
"repo_name": "apcjs/apcDialog",
"id": "431fc0ab3293f1336e6b390ba963936566dbf105",
"size": "293... |
<?php
namespace Onyx\Destiny\Helpers\Network;
use Barryvdh\Debugbar\Facade as DebugBar;
use GuzzleHttp\Client as Guzzle;
class Http
{
/**
* @var \GuzzleHttp\Client
*/
protected $guzzle;
public function __construct()
{
$this->setupGuzzle();
}
private function setupGuzzle()
... | {
"content_hash": "d5f0bdc2650b780d06fcd666695c9aea",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 79,
"avg_line_length": 20.057971014492754,
"alnum_prop": 0.5267341040462428,
"repo_name": "iBotPeaches/PandaLove",
"id": "42bcefaef27bfe2c483fa455c87815d5a0ed05aa",
"size":... |
RSpec.shared_examples_for "AccountBuilder#build" do
subject(:account) { builder.build }
let(:builder) { described_class.new(options) }
let(:facility) { FactoryBot.build_stubbed(:facility) }
let(:user) { FactoryBot.build_stubbed(:user) }
context "when the affiliate_id param is set" do
let(:affiliate) { Af... | {
"content_hash": "11e006baa2199d35250dd8d7222905f3",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 73,
"avg_line_length": 33.15384615384615,
"alnum_prop": 0.6653132250580046,
"repo_name": "tablexi/nucore-open",
"id": "6a2e2b4be10e8d9a4a31b1480d55e789f960af7d",
"size": "1... |
import sys
from libcloud.utils.py3 import httplib
from libcloud.utils.py3 import ET
from libcloud.common.dimensiondata import DimensionDataAPIException
from libcloud.common.types import InvalidCredsError
from libcloud.backup.base import BackupTargetJob
from libcloud.backup.drivers.dimensiondata import DimensionDataBack... | {
"content_hash": "e2dd54ff9b98d7b7c84aaee0306ce870",
"timestamp": "",
"source": "github",
"line_count": 482,
"max_line_length": 154,
"avg_line_length": 48.051867219917014,
"alnum_prop": 0.6566642200250421,
"repo_name": "Kami/libcloud",
"id": "13039d4c9c3fc4b5a5b8455345b3dfb8a524d7df",
"size": "2394... |
/* $NetBSD: cfgetispeed.c,v 1.8 2012/06/25 22:32:46 abs Exp $ */
/*-
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... | {
"content_hash": "5a577949ffa5d5970120508ce34e1432",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 77,
"avg_line_length": 45.02439024390244,
"alnum_prop": 0.7497291440953413,
"repo_name": "cahirwpz/wifire-os",
"id": "5caf93842c26ebcf59c274e0199054964a6759a2",
"size": "18... |
namespace io {
SocketAddress* SocketAddress::toSocketAddress( struct sockaddr* addr, socklen_t len ) {
(void) len ;
switch( addr->sa_family ) {
case AF_UNSPEC:
return new UnspecifiedAddress();
case AF_INET:
return new Inet4Address( *(struct sockaddr_in*)addr );
case AF_INET6:
ret... | {
"content_hash": "81024ca2c9b1d557a15ea1e2be93253d",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 87,
"avg_line_length": 27.681818181818183,
"alnum_prop": 0.6535303776683087,
"repo_name": "jrahm/OPLabs",
"id": "4ea1b2ae9d2bdfd6b2a5d9158136dc5f1ae75336",
"size": "791",
... |
package com.sshtools.forker.client.impl.jna.win32;
import java.nio.ByteBuffer;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.WString;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.win32.W32APIOptions;
/**
* Extends JNA Platform Kernel32 a little.
*/
public interface Kernel3... | {
"content_hash": "72a4f17cae08d86c365dd469cab2da4b",
"timestamp": "",
"source": "github",
"line_count": 92,
"max_line_length": 120,
"avg_line_length": 29.847826086956523,
"alnum_prop": 0.7611070648215587,
"repo_name": "sshtools/forker",
"id": "28c9fdae9bc13ba928937cbb8075770eb6e8bbcf",
"size": "337... |
SELECT @@SERVERNAME as [Server], j.[name] as [Job Name], CASE j.[enabled] WHEN 1 THEN 'Enabled' ELSE 'Disabled' END AS [Job Status],
-- Type of Schedule
CASE freq_type
WHEN 1 THEN 'One time, occurs at ' + CONVERT(varchar(15), CONVERT(time, STUFF(STUFF(RIGHT('000000' + CONVERT(varchar(6), active_start_time), 6), 3, ... | {
"content_hash": "fb1d71c4047381f98911ac14823177f5",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 293,
"avg_line_length": 56.1764705882353,
"alnum_prop": 0.6664921465968586,
"repo_name": "codedecay/Scripts",
"id": "a41b5d78a520f5daaa87b58b252cd6e4338715e2",
"size": "389... |
"""
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | {
"content_hash": "6e175d47745b8312f396c0f2a964ef11",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 168,
"avg_line_length": 41.63551401869159,
"alnum_prop": 0.7207631874298541,
"repo_name": "kartta-labs/noter-backend",
"id": "1ffad3cff4511a08e683410821a44fe468a54211",
"s... |
using Newtonsoft.Json;
namespace BambooTray.Domain.Resources
{
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable UnusedMember.Global
public class Result
{
[JsonProperty("plan")]
public PlanDetail... | {
"content_hash": "a605437684c823aef6cfc3f303bdbf9c",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 58,
"avg_line_length": 27,
"alnum_prop": 0.6012345679012345,
"repo_name": "joebuschmann/bambootray",
"id": "d203527da7fffa8ff43edad032d0a0ff4b76ccf2",
"size": "812",
"bin... |
- Added: `keyframe-declaration-no-important` rule.
- Added: `selector-pseudo-class-no-unknown` rule.
- Added: `selector-type-no-unknown` rule.
# 7.0.0
- Added: `at-rule-name-space-after` rule.
- Added: `function-max-empty-lines` rule.
- Added: `no-extra-semicolons` rule.
- Added: `selector-attribute-brackets-space-in... | {
"content_hash": "6b8d125125132655bc1722253a6e4d07",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 200,
"avg_line_length": 32.56716417910448,
"alnum_prop": 0.7236480293308891,
"repo_name": "PanJ/SimplerCityGlide",
"id": "c29d26422dc32bf0ab741fdc06ac84f324a6f7ea",
"size":... |
package org.apache.carbondata.processing.loading;
import org.apache.carbondata.common.CarbonIterator;
import org.apache.carbondata.common.logging.LogServiceFactory;
import org.apache.carbondata.core.metadata.CarbonTableIdentifier;
import org.apache.carbondata.processing.loading.exception.BadRecordFoundException;
imp... | {
"content_hash": "47aec9c6a58f954bb07f2ccc60f6dcd5",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 93,
"avg_line_length": 34.56962025316456,
"alnum_prop": 0.7301354815086049,
"repo_name": "ravipesala/incubator-carbondata",
"id": "11841f9eb4e08e0dbf6e1ac26625a0b21dbd4f1b",
... |
var app = require('express')(),
wizard = require('hmpo-form-wizard'),
steps = require('./steps'),
fields = require('./fields');
app.use(require('hmpo-template-mixins')(fields, { sharedTranslationKey: 'prototype' }));
app.use(wizard(steps, fields, { templatePath: 'prototype_oix_170518/startpage-oix' }));
... | {
"content_hash": "aa5adb962cdadaf9cfe4b1d926322f48",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 88,
"avg_line_length": 34.2,
"alnum_prop": 0.672514619883041,
"repo_name": "UKHomeOffice/passports-prototype",
"id": "3e56cf9b80f1abdc910d414b74ac44955dec111d",
"size": "34... |
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: 'object-fit: scale-down' on video element, with a SVG image and with various 'object-position' values</title>
<link re... | {
"content_hash": "d94a496e8fb4649ae8f3b7bb9e299a9f",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 130,
"avg_line_length": 39.35526315789474,
"alnum_prop": 0.6258776328986961,
"repo_name": "scheib/chromium",
"id": "ab29b635cc06a05cd1cdeadf929ed5edd3195dd3",
"size": "2991... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE194_Unexpected_Sign_Extension__negative_strncpy_84_bad.cpp
Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml
Template File: sources-sink-84_bad.tmpl.cpp
*/
/*
* @description
* CWE: 194 Unexpected Sign Extension
* BadSource: negative Set data to... | {
"content_hash": "e211cb59f4469b2d70607793e66f8fd3",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 146,
"avg_line_length": 35.166666666666664,
"alnum_prop": 0.6617298578199052,
"repo_name": "maurer/tiamat",
"id": "894bc3f4b25a741d1402cde9bf845fb6975deb7a",
"size": "1688"... |
import subprocess
from typing import List
import rich_click as click
PYTHON_VERSIONS = ["3.7", "3.8", "3.9"]
GHCR_IO_PREFIX = "ghcr.io"
GHCR_IO_IMAGES = [
"{prefix}/{repo}/{branch}/ci/python{python_version}:latest",
"{prefix}/{repo}/{branch}/prod/python{python_version}:latest",
]
# noinspection StrFormat... | {
"content_hash": "a2985ce80b7acb21bc45dda59ee6ef03",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 110,
"avg_line_length": 32.8448275862069,
"alnum_prop": 0.6409448818897637,
"repo_name": "bolkedebruin/airflow",
"id": "bcb81c55223f83811ce5dc8c8f06553314c88a0a",
"size": "... |
from django import forms
from . import models
class ThoughtForm(forms.ModelForm):
class Meta:
fields = ('condition', 'notes')
model = models.Thought | {
"content_hash": "fdb32d64b2fe5f85c8337a0f535d12c9",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 39,
"avg_line_length": 19,
"alnum_prop": 0.6666666666666666,
"repo_name": "treehouse/livestream-django-feelings",
"id": "a38eb3232e52925c352e40ed085c1b625f609ec2",
"size": "... |
<?php
namespace oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2;
/**
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlType CoordinateSystemCodeType
* @xmlName CoordinateSystemCode
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\Coor... | {
"content_hash": "dcfb37f35c8cff4774ef218608abd2c7",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 93,
"avg_line_length": 27.75,
"alnum_prop": 0.8175675675675675,
"repo_name": "emoxie/quickbooks-sdk",
"id": "eaee55d2d19a0f94deb245781767305e66857e6a",
"size": "444",
"bi... |
package com.meisolsson.githubsdk.model.payload;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import com.google.auto.value.AutoValue;
import com.meisolsson.githubsdk.model.ReferenceType;
import com.squareup.moshi.Json;
import com.squareup.moshi.JsonAdapter;
impo... | {
"content_hash": "6e973f230cf9deba14b0ed756acf8c53",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 104,
"avg_line_length": 28.106382978723403,
"alnum_prop": 0.7509462528387585,
"repo_name": "Meisolsson/GitHubSdk",
"id": "636113326b0bd13e5957c2c2370b619545f5021e",
"size":... |
<?xml version="1.0" encoding="UTF-8"?>
<rootTag>
<Award>
<AwardTitle>Workshop on Video Games in Engineering and Computer Science Education</AwardTitle>
<AwardEffectiveDate>09/01/2009</AwardEffectiveDate>
<AwardExpirationDate>08/31/2011</AwardExpirationDate>
<AwardAmount>92328</AwardAmount>
<Award... | {
"content_hash": "de87cd1793e64bcd175ad0ea4b1cecf9",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 978,
"avg_line_length": 46.328947368421055,
"alnum_prop": 0.7216699801192843,
"repo_name": "jallen2/Research-Trend",
"id": "9bb373f24e7bd8c652090adca38e0892ec7fd840",
"size... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/file.h>
#include <winpr/string.h>
#include <winpr/synch.h>
#include <winpr/thread.h>
#include <winpr/stream.h>
#include <winpr/... | {
"content_hash": "1cd4733e7890fb049b525c398813bc6f",
"timestamp": "",
"source": "github",
"line_count": 1091,
"max_line_length": 98,
"avg_line_length": 23.627864344637945,
"alnum_prop": 0.6693692295756071,
"repo_name": "chipitsine/FreeRDP",
"id": "1b542252258728efccff55ec9ca4e9a8a2c23cf0",
"size": ... |
<?php
namespace LibSSH2;
/**
* Terminal class.
*
* Setter/getter class for terminal environment.
*
* @package LibSSH2
*/
class Terminal
{
/**
* Interactive connection (pseudo-tty)
*
* @var string
*/
private $pty = NULL;
/**
* Environmental variables (associative array).
... | {
"content_hash": "250917f6e5b4b13c009cd0ec6696870e",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 56,
"avg_line_length": 17.124031007751938,
"alnum_prop": 0.5061113626075147,
"repo_name": "degagne/libssh2",
"id": "892e661025924d9ca6ca09f7841abf78aee9522e",
"size": "220... |
'use strict';
const fs = require('fs-extra');
const path = require('path');
const request = require('request-promise');
const {ciBuildSha} = require('../common/ci');
const {cyan} = require('kleur/colors');
const {getLoggingPrefix, logWithoutTimestamp} = require('../common/logging');
const {replaceUrls: replaceUrlsApp... | {
"content_hash": "0c830bc22ee12f0214f050f0f08a7799",
"timestamp": "",
"source": "github",
"line_count": 93,
"max_line_length": 77,
"avg_line_length": 23.032258064516128,
"alnum_prop": 0.65406162464986,
"repo_name": "voyagegroup/amphtml",
"id": "5ecf27415d68c298ca7894632c7ab8c6bcea812e",
"size": "27... |
import pytest
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
from cleancat import Integer, Schema, StopValidation, String, ValidationError
from cleancat.sqla import SQLAEmbeddedReference, SQLAReference, object_as_dict
Base = dec... | {
"content_hash": "b74f75147e5134d22334750466519be5",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 79,
"avg_line_length": 33.669642857142854,
"alnum_prop": 0.635905595332803,
"repo_name": "closeio/cleancat",
"id": "3916bc564c76cf88ce4dbb25a04c99fde1efd255",
"size": "377... |
from django.conf.urls import patterns, url
from django.contrib import admin
urlpatterns = patterns('account.views',
url(r'^login/$', 'login', name='login'),
url(r'^logout/$', 'logout', name='logout'),
)
| {
"content_hash": "f49ac8c8d2bfc00e31880597368cd25b",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 47,
"avg_line_length": 30.285714285714285,
"alnum_prop": 0.6745283018867925,
"repo_name": "gdgand/Festi",
"id": "42a2d4b05daeaaa1d305580b5b2b63757a28c278",
"size": "212",
... |
/************************************
* Default Syntax Highlighter theme.
*
* Interface elements.
************************************/
.syntaxhighlighter
{
background-color: #fff !important;
}
/* Highlighed line number */
.syntaxhighlighter .line.highlighted .number
{
color: black !important;
... | {
"content_hash": "12fb5d6a51d18b8c3d730373b180ab7d",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 44,
"avg_line_length": 16.93103448275862,
"alnum_prop": 0.6338085539714867,
"repo_name": "Feitianyuan/vienna-rss",
"id": "1655b424b5ae429d3aedef8c2f6937510f6106c7",
"size"... |
package module6;
import de.fhpotsdam.unfolding.data.PointFeature;
import jogamp.opengl.glu.mipmap.Image;
import processing.core.PGraphics;
import processing.core.PImage;
/** Implements a visual marker for ocean earthquakes on an earthquake map
*
* @author UC San Diego Intermediate Software Development MOOC team
*... | {
"content_hash": "e0c41f4e23040515d694b78e07273310",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 73,
"avg_line_length": 28.076923076923077,
"alnum_prop": 0.7397260273972602,
"repo_name": "Astred/Java-1",
"id": "666e5779e38115d65a8ce8741e7b65d2815014a9",
"size": "1095",... |
<?php
class View {
private $_template;
private $_params;
public static $tplDir = "tmpl";
public function __construct($template, $params = array()) {
$this->_template = $template;
$this->setParams($params);
}
public function display() {
extract($this->_params);
$tplpath = self::$tplDir . '/';
if (!empt... | {
"content_hash": "c373f9ab8eeae4b3e92346f19bf0bb82",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 131,
"avg_line_length": 25.289473684210527,
"alnum_prop": 0.6024973985431842,
"repo_name": "mmoroz/morozProject",
"id": "2aefb75c7439b1bb3290bd71a7224f7c03165c5d",
"size": ... |
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.phpmaven.test</groupId>
<artifactId>test-failing</artifactId>
<packaging>php</packaging>
<name>Sample PHP 5 library project</name>
<version>0.0.1</version>
<build>
<sourceDirectory>src/main/php</sourceDirectory... | {
"content_hash": "7a122e86cd8f02a68ece6945e592021b",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 57,
"avg_line_length": 26.695652173913043,
"alnum_prop": 0.7019543973941368,
"repo_name": "teosoft123/maven-php-plugin",
"id": "d71908ef33cbc4c8dcd08f6b65fe5243b724a409",
"... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#if UNENG
namespace UnEngine
#else
namespace UnityEngine
#endif
{
public sealed class Gizmos
{
public static Color color { get; set; }
public static Matrix4x4 matrix { get; set; }
public static void DrawCube(Vector3 center,... | {
"content_hash": "137b74db03f197d6f14ad0a27418a190",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 153,
"avg_line_length": 40.8,
"alnum_prop": 0.7626050420168067,
"repo_name": "jbruening/UnEngine",
"id": "1a32951940700e21690aa60fa58be783b2a30556",
"size": "1430",
"bina... |
<?php
/**
* Created by PhpStorm.
* User: Maxime
* Date: 29/02/2016
* Time: 23:21
*/
namespace App\general;
class fonction
{
/**
* @param $idclient // identifiant du client appeler
* @return string // Retourne une clé [TOKEN] permettant l'identification d'une action
*/
pub... | {
"content_hash": "01ecece3bbc3712ce14acf40df7e0ec3",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 125,
"avg_line_length": 33.313131313131315,
"alnum_prop": 0.5745906610066707,
"repo_name": "CRIDIP-SWD/GESTCOM",
"id": "acc3e1938256f6802beade1b8fa71ab6391785d8",
"size": "... |
cd docker
docker-compose run --rm composer %*
cd ..
| {
"content_hash": "60233062ca16206e47931a6c1d3e8a1e",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 35,
"avg_line_length": 17.333333333333332,
"alnum_prop": 0.6923076923076923,
"repo_name": "mattKendon/traws",
"id": "4c95a779dc95b08724c695a127e91f22eee11c4c",
"size": "52",... |
package uiotest
import (
"io"
"testing"
"github.com/u-root/u-root/pkg/testutil"
"github.com/u-root/u-root/pkg/uio"
)
// TestLineWriter is an io.Writer that logs full lines of serial to tb.
func TestLineWriter(tb testing.TB, prefix string) io.WriteCloser {
if len(prefix) > 0 {
return uio.FullLineWriter(&testLi... | {
"content_hash": "9977ad84b6a57cb73ae983e75742c259",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 77,
"avg_line_length": 24.916666666666668,
"alnum_prop": 0.7168338907469343,
"repo_name": "hugelgupf/u-root",
"id": "826bc5195196e7718b6c18e53f86d07fdec6d63a",
"size": "106... |
using System;
namespace Bog.Web.Api.Areas.HelpPage.ModelDescriptions
{
/// <summary>
/// Describes a type model.
/// </summary>
public abstract class ModelDescription
{
public string Documentation { get; set; }
public Type ModelType { get; set; }
public string Name { get; ... | {
"content_hash": "87b7ee0358711c69cfd6883cd510eab2",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 54,
"avg_line_length": 20.875,
"alnum_prop": 0.6137724550898204,
"repo_name": "BankOfGiving/Bog.net",
"id": "66850376d9fcf695ffdc5cc5da4d57662e1c59fe",
"size": "334",
"bi... |
import unittest
from vehicle import Vehicle
class UtDemo(unittest.TestCase):
'''A Unit Test Demo'''
def setUp(self):
"Create a list of test files"
self.time_list=['20120912072912','20120913072230',20120912073312]
for f in self.time_list:
print f
def test_int(self):
... | {
"content_hash": "730f7487ea4d40ff972543d6859e5821",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 73,
"avg_line_length": 24.9,
"alnum_prop": 0.6024096385542169,
"repo_name": "vollov/py-lab",
"id": "a960771067f3064aa34cee6b5f73f7c43b0d9d21",
"size": "516",
"binary": fa... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | {
"content_hash": "23bf8375ac483f80edef515c1d8b7e3d",
"timestamp": "",
"source": "github",
"line_count": 252,
"max_line_length": 306,
"avg_line_length": 38.3531746031746,
"alnum_prop": 0.566063114330057,
"repo_name": "tiltom/PV247-Expense-manager",
"id": "3c09eba02ab8b50c6098225d35ec47f65df4d930",
"... |
package io.agrest.cayenne;
import io.agrest.SimpleResponse;
import io.agrest.cayenne.cayenne.main.E2;
import io.agrest.cayenne.cayenne.main.E3;
import io.agrest.cayenne.cayenne.main.E4;
import io.agrest.cayenne.unit.AgCayenneTester;
import io.agrest.cayenne.unit.DbTest;
import io.agrest.jaxrs2.AgJaxrs;
import io.agres... | {
"content_hash": "dc69aa15b4a2bae475a5bb7e519558a6",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 120,
"avg_line_length": 30.76068376068376,
"alnum_prop": 0.5618227285357044,
"repo_name": "nhl/link-rest",
"id": "5c601ac7c9af10d196fa9dacff621239104c877f",
"size": "3599"... |
function TosPage(page) {
page.parse(function(err) {
if (err) {
TosPage.debug(err);
} else {
TosPage.debug(page.toString());
self.port.once('query:world', function(res) {
if (res.error) {
TosPage.debug(res.error);
} else {
TosPage.debug(res.players);
... | {
"content_hash": "3472f8aa9cbf2cf245dcb63ce7a73989",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 56,
"avg_line_length": 24.35483870967742,
"alnum_prop": 0.5695364238410596,
"repo_name": "gpedro/tibia_online_status",
"id": "d3ae9635e7e07c163dff4a791da9ae0785055665",
"si... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>BuildConfiguration - FAKE - F# Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Steffen Forkmann, Mauricio Scheffer, Colin Bull... | {
"content_hash": "66a19dd7609df91a7a4e5dcafe11ca51",
"timestamp": "",
"source": "github",
"line_count": 226,
"max_line_length": 209,
"avg_line_length": 44.017699115044245,
"alnum_prop": 0.5524728588661038,
"repo_name": "mwissman/MingleTransitionMonitor",
"id": "8bc065cc4bbefb2eded430deae476b1b425ff68... |
package scala.concurrent.duration
package object ops extends DurationImplicits
| {
"content_hash": "97b3ce59f34c0b216a33ff22fa90870e",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 44,
"avg_line_length": 26.666666666666668,
"alnum_prop": 0.875,
"repo_name": "AudaxHealthInc/play-json-ops",
"id": "f3c46e54597b3ba22e4db916a1940eeb1d5e8e22",
"size": "80",
... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xcolab</group... | {
"content_hash": "4cfb9c3e8f83a186e85ddea11540810b",
"timestamp": "",
"source": "github",
"line_count": 129,
"max_line_length": 113,
"avg_line_length": 35.48062015503876,
"alnum_prop": 0.5274197072318112,
"repo_name": "CCI-MIT/XCoLab",
"id": "bf7cdb9dbccbbbace29f1d93944c72007cecfca6",
"size": "4577... |
_times () { local n=$1 i; shift; for (( i=0; $i < $n; i++ )); do "$@"; done; }
# e.g. hdecoration 70 1
_habove () {
local width="$1" level="$2"
case $level in
1) echo; _times $width echo -n '*'; echo;;
2) _times $width echo -n '.'; echo;;
esac
}
# future expansion
_hbelow () {
lo... | {
"content_hash": "17e08a9c0c4e008c7b89f66846aa4dd3",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 78,
"avg_line_length": 26.06451612903226,
"alnum_prop": 0.5853960396039604,
"repo_name": "jaredjennings/puppet-cmits-postgresql",
"id": "7e0f643b52bb85babbfc066aa724f16638bc3... |
package com.hadlink.lay_s.presenter;
import android.os.Bundle;
import com.hadlink.lay_s.delegate.ImageDetailDelegate;
import com.hadlink.library.base.BaseActivity;
/**
* @author Created by lyao on 2016/3/7.
*/
public class ImageDetailPresenter extends BaseActivity<ImageDetailDelegate> {
public static final S... | {
"content_hash": "871351dfdefc33f8af2c4245007fec51",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 105,
"avg_line_length": 29.55223880597015,
"alnum_prop": 0.6373737373737374,
"repo_name": "vihuela/Lay-s",
"id": "4693fb0ce52fcd779b4650635e64d217c357945c",
"size": "2739",... |
package hudson.plugins.git;
import com.cloudbees.plugins.credentials.CredentialsMatchers;
import com.cloudbees.plugins.credentials.CredentialsProvider;
import com.cloudbees.plugins.credentials.common.StandardUsernameCredentials;
import com.cloudbees.plugins.credentials.domains.URIRequirementBuilder;
import com.google.... | {
"content_hash": "08089cbbd6b3f25dcefd0aa9644b2d4c",
"timestamp": "",
"source": "github",
"line_count": 1556,
"max_line_length": 217,
"avg_line_length": 39.65167095115681,
"alnum_prop": 0.6100683976790171,
"repo_name": "oleg-nenashev/git-plugin",
"id": "e45a9041e6abc2337f662fe63e20a1f6fe8d8d6b",
"s... |
<?php
if (!defined('ELK'))
die('No access...');
/**
* Attempts, though an outrageous set of assumptions, to reflow/format an email message
* that was previously wrapped by an email client (so it would look good on
* a 80x24 screen)
*
* Removes extra spaces and newlines
* Fixes some common punctuation errors ... | {
"content_hash": "d976ae886d71c40810248b33a746177a",
"timestamp": "",
"source": "github",
"line_count": 472,
"max_line_length": 263,
"avg_line_length": 35.04025423728814,
"alnum_prop": 0.5844972489267791,
"repo_name": "Ant59/Elkarte",
"id": "fb3e2615435ec502a0792bcde319b49d2ae3001e",
"size": "16788... |
package de.larscheidschmitzhermes.collections;
import de.larscheidschmitzhermes.collections.interfaces.CollectionSize;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Priority;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerResponseContext;... | {
"content_hash": "9cf5a92d8c2728e527e086c25fdebda8",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 181,
"avg_line_length": 40.372549019607845,
"alnum_prop": 0.7294803302574066,
"repo_name": "larscheid-schmitzhermes/collection-size-filter",
"id": "d45a9707372f4512bde5ae1b43... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.