text stringlengths 2 1.04M | meta dict |
|---|---|
/* $Id$ */
/*
* Copyright (c) 2003-2009 Axel Andersson
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* no... | {
"content_hash": "a8c724e5307cbfbd52cd4b1e465473d1",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 116,
"avg_line_length": 46.107438016528924,
"alnum_prop": 0.6698333034594013,
"repo_name": "nark/wired",
"id": "f8cdae09b88d08b4cb282a50db70cfe58cd58970",
"size": "5579",
... |
TaxonomyFilters
===============
This extension for spree adds a filter-like behavior to the taxonomy links on the product page and search results page
Usage
=======
Add the gem to your Gemfile
gem 'taxonomy_filters', :git => 'git@github.com:MrRuru/spree_taxonomy_filters.git'
Copyright (c) 2011 David Ruyer... | {
"content_hash": "f647147f2eecd72934b63c4678aced73",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 118,
"avg_line_length": 25.5,
"alnum_prop": 0.7142857142857143,
"repo_name": "mru2/spree_taxonomy_filters",
"id": "dea810beff76fa8af3033952c4f0a045fbd951a3",
"size": "357",... |
import { eventsList } from 'vendor'
import { Logger } from '../../utils'
import { localFiles } from '../../externals'
const logger = new Logger('Config (Update)')
const FILE_NAME = 'config.json'
const events = eventsList.config.update
function update (data) {
return localFiles.writeFile(data, FILE_NAME)
}
function... | {
"content_hash": "0d45063d4f5a6741b6e49e3bf2d33cb0",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 58,
"avg_line_length": 22.103448275862068,
"alnum_prop": 0.6864274570982839,
"repo_name": "Kylart/KawAnime",
"id": "6234a1a63b729d0fe1afef4e2fbe738dc71abfa1",
"size": "641"... |
module Hobo::Dryml::Parser
class BaseParser < REXML::Parsers::BaseParser
NEW_REX = REXML::VERSION =~ /3\.1\.(\d)(?:\.(\d))?/ && $1.to_i*1000 + $2.to_i >= 7002
DRYML_NAME_STR = "#{NCNAME_STR}(?::(?:#{NCNAME_STR})?)?"
DRYML_ATTRIBUTE_PATTERN = if NEW_REX
... | {
"content_hash": "b735736da48939784ef3356857b90a42",
"timestamp": "",
"source": "github",
"line_count": 254,
"max_line_length": 151,
"avg_line_length": 40.87007874015748,
"alnum_prop": 0.4769290049128215,
"repo_name": "lak/puppetshow",
"id": "eb316065de0111c688d7fa25400da9602a762e51",
"size": "1038... |
function tree=readNXU(filename)
%READNXU make a tree structure from the xml saved by PhysX
%% create the dom object.
[~,~,xt]=fileparts(filename);
if ~strcmp(xt,'.xml'), error('don''t be a dick'), end
dom=xmlread(filename);
%% create the actors struct array fields (not the complete list)
rawActors=dom.getEle... | {
"content_hash": "c51d5e565e46340074e9c07309940b43",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 101,
"avg_line_length": 40.04545454545455,
"alnum_prop": 0.6995838062807416,
"repo_name": "nmovshov/ARSS_win",
"id": "c89bbd19f536954f909e5d853fc02deab736d9db",
"size": "26... |
typedef struct ubst_opaq ubst_t;
typedef struct ubst_iterator_opaq ubst_iterator_t;
typedef enum {
UBST_PREORDER,
UBST_POSTORDER,
UBST_INORDER,
} ubst_traverse_mode_t;
typedef enum {
UBST_DEFAULT_BALANCING,
UBST_NO_BALANCING,
UBST_RB_BALANCING,
UBST_SPLAY_BALANCING,
UBST_BALANCING_MODE... | {
"content_hash": "75fbb8d0dd2c2647dd3c2b023e6be669",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 116,
"avg_line_length": 37.507462686567166,
"alnum_prop": 0.6888181456426582,
"repo_name": "vslapik/ugeneric",
"id": "8b65f32e123c1eea69a8d1ccb1f1635d8380ddac",
"size": "25... |
package org.nd4j.linalg.api.rng.distribution.impl;
import lombok.val;
import org.apache.commons.math3.exception.NumberIsTooLargeException;
import org.apache.commons.math3.exception.OutOfRangeException;
import org.apache.commons.math3.exception.util.LocalizedFormats;
import org.nd4j.linalg.api.iter.NdIndexIterator;
i... | {
"content_hash": "52ff5ee936e8cb950e4596a4b2b7d842",
"timestamp": "",
"source": "github",
"line_count": 197,
"max_line_length": 122,
"avg_line_length": 27.101522842639593,
"alnum_prop": 0.5914965349316351,
"repo_name": "RobAltena/deeplearning4j",
"id": "d19e5506fda00bca5045f9ae9a43f00b4a64c489",
"s... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Autocomplete - Custom data and display</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.6.2.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.... | {
"content_hash": "488b259ce2bb2a81114d04261f11b421",
"timestamp": "",
"source": "github",
"line_count": 101,
"max_line_length": 72,
"avg_line_length": 24.643564356435643,
"alnum_prop": 0.6010445962233829,
"repo_name": "zhangjunfang/eclipse-dir",
"id": "c24f33f136289de3f8a3c4fcbdfe4c0d407e8094",
"si... |
<?php
// classpath
namespace Mimoto\EntityConfig;
// Mimoto classes
use Mimoto\Core\CoreFormUtils;
use Mimoto\Core\entities\Entity;
use Mimoto\Mimoto;
use Mimoto\Data\MimotoDataUtils;
use Mimoto\Core\CoreConfig;
use Mimoto\Data\MimotoEntity;
use Mimoto\Data\MimotoEntityException;
use Mimoto\EntityConfig\MimotoEntityP... | {
"content_hash": "1f2d63e8e27392cf4a6b54b162139402",
"timestamp": "",
"source": "github",
"line_count": 262,
"max_line_length": 136,
"avg_line_length": 27.931297709923665,
"alnum_prop": 0.5465974309920744,
"repo_name": "SebastianKersten/Mimoto.Aimless",
"id": "5a55cf39d65bc4b01904581508d30f0b48d4a4c7... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | {
"content_hash": "5a7d6f13a7e103603486d52e1cc35f91",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 560,
"avg_line_length": 51.94444444444444,
"alnum_prop": 0.6114081996434938,
"repo_name": "cosh/Jint",
"id": "dd2f540f6c28c8cceb9a3da0b7bcff19f504720a",
"size": "2805",
"... |
// Copyright 2014 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | {
"content_hash": "d28ee929cabfe9663106982c2f9656ef",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 94,
"avg_line_length": 39.90909090909091,
"alnum_prop": 0.7501898253606681,
"repo_name": "rzagabe/bazel",
"id": "8dff44f3bfc1caca65e32e8bdcfb05cc15bf3a49",
"size": "1317",
... |
class ArticleSubscription < ApplicationRecord
include Dateable
belongs_to :article, counter_cache: :subscriptions_count
belongs_to :user
validates :user_id, uniqueness: {
scope: :article_id, message: "is already subscribed"
}
def send_update
clear_existing_queued_update_jobs if update_queued?
... | {
"content_hash": "f595528dc650196729b535ed72f7189f",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 80,
"avg_line_length": 26.620689655172413,
"alnum_prop": 0.7150259067357513,
"repo_name": "codeschool/orientation",
"id": "8152ae30cad2de31415410efd155d447c6acb084",
"size"... |
This example shows how to stream an instance of Blender 3D on Selkies using the GKE WebRTC VDI stack.
## Dependencies
- App Launcher: [v1.0.0+](https://github.com/GoogleCloudPlatform/solutions-k8s-stateful-workload-operator/tree/v1.0.0)
- WebRTC Streaming Stack: [v1.4.0+](https://github.com/GoogleCloudPlatform/soluti... | {
"content_hash": "2bd7f671dc8c543881b00cdb1b8dd82c",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 290,
"avg_line_length": 30.048076923076923,
"alnum_prop": 0.7552,
"repo_name": "GoogleCloudPlatform/selkies-examples",
"id": "fcb377cfa1921d1b376dd93d0115d0439a1bbfea",
"s... |
import * as stream from 'stream';
declare class DropStream extends stream.Transform {
static obj(options?: stream.TransformOptions): DropStream;
}
export = DropStream;
| {
"content_hash": "e5a03c2d886f8212916eca896357b6a5",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 60,
"avg_line_length": 24.571428571428573,
"alnum_prop": 0.7674418604651163,
"repo_name": "Fitbit/fitbit-sdk-toolchain",
"id": "f3af42a0b68f30c518fa242f40bc9f6a471dd09a",
"s... |
// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to us... | {
"content_hash": "73244d3503cb2d245234875c35d702b5",
"timestamp": "",
"source": "github",
"line_count": 147,
"max_line_length": 115,
"avg_line_length": 39.63945578231292,
"alnum_prop": 0.7405182769864425,
"repo_name": "NcLang/vimrc",
"id": "976c1c91332e49862958f25607fceb257570d023",
"size": "5829",... |
//------------------------------------------------------------
// Game Framework
// Copyright © 2013-2019 Jiang Yin. All rights reserved.
// Homepage: http://gameframework.cn/
// Feedback: mailto:jiangyin@gameframework.cn
//------------------------------------------------------------
using GameFramework;
using LitJso... | {
"content_hash": "67f18463ceea387e366bb08754acad3b",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 86,
"avg_line_length": 30.076923076923077,
"alnum_prop": 0.5147058823529411,
"repo_name": "PokemonUnity/PokemonUnity",
"id": "3b94da5fdf61df5415a019194e360bc69eabb79f",
"si... |
from __future__ import absolute_import, print_function
import sys
import setuptools
import pip.req
from setuptools.command.test import test as TestCommand
import stackquery
install_reqs = pip.req.parse_requirements('requirements.txt')
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finali... | {
"content_hash": "df6a0a38189c147b72aa269796732e02",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 73,
"avg_line_length": 32.67272727272727,
"alnum_prop": 0.6377295492487479,
"repo_name": "arxcruz/stackquery-cmd",
"id": "d526ba7d1b7f05d53846c30843d5e8c7e032080d",
"size":... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var testing_1 = require("@angular/core/testing");
var auth_guard_1 = require("./auth.guard");
describe('AuthGuard', function () {
beforeEach(function () {
testing_1.TestBed.configureTestingModule({
providers: [auth_guar... | {
"content_hash": "bc1dbe1ad22680a4c61aed2034848067",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 82,
"avg_line_length": 34.785714285714285,
"alnum_prop": 0.6180698151950719,
"repo_name": "Jrocam/UnidosEnSalud",
"id": "a2688b25cd9f447f103776a9fac629565497f3a8",
"size": ... |
package org.jetbrains.plugins.scala.lang.psi.stubs.impl
import com.intellij.psi.stubs._
import com.intellij.psi.{PsiElement, PsiNamedElement}
abstract class ScNamedStubBase[E <: PsiNamedElement] protected[impl](parent: StubElement[_ <: PsiElement],
... | {
"content_hash": "0b863ca7740982b60e065b98afb98bae",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 151,
"avg_line_length": 49.666666666666664,
"alnum_prop": 0.5855704697986577,
"repo_name": "JetBrains/intellij-scala",
"id": "842e1e9ba4c711670ddb750a2c7756319b1b8470",
"si... |
// auto-generated header by CodeFromTemplate - Connected Vision - https://github.com/ConnectedVision
// CodeFromTemplate Version: 0.3 alpha
// stubs/Stub_Skeleton_params.cpp
// NEVER TOUCH this file!
#include <utility>
#include <rapidjson/document.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/stringbuffe... | {
"content_hash": "02a619c1605c9edd994aae115b57a349",
"timestamp": "",
"source": "github",
"line_count": 266,
"max_line_length": 225,
"avg_line_length": 24.484962406015036,
"alnum_prop": 0.6698909872562567,
"repo_name": "ConnectedVision/connectedvision",
"id": "4a0add1dda0726c6c035d374e76676dbfa76264e... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Telaconduco_Client/Telaconduco_Client.iml" filepath="$PROJECT_DIR$/Telaconduco_Client/Telaconduco_Client.iml" />
<module fileurl="file://$PROJECT_DIR$/Te... | {
"content_hash": "91a852135768ccf093785ab1f0c71aa6",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 200,
"avg_line_length": 81.66666666666667,
"alnum_prop": 0.7459183673469387,
"repo_name": "Telaconduco/TelaconducoCore",
"id": "9c4b269ad1071ba9dc6c625de7a5c7f2966dabe0",
"... |
class ProjectFeature < ActiveRecord::Base
# == Project features permissions
#
# Grants access level to project tools
#
# Tools can be enabled only for users, everyone or disabled
# Access control is made only for non private projects
#
# levels:
#
# Disabled: not enabled for anyone
# Private: ena... | {
"content_hash": "073a9cf6e9dac5032caf6ced58343b60",
"timestamp": "",
"source": "github",
"line_count": 149,
"max_line_length": 111,
"avg_line_length": 30.838926174496645,
"alnum_prop": 0.7072905331882481,
"repo_name": "axilleas/gitlabhq",
"id": "f700090a493cfa181ac9d7fb9e7c542eaa15a06f",
"size": "... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using StructureMap.Graph;
namespace StructureMap.TypeRules
{
public static partial class TypeExtensions
{
/*
public static bool IsConcreteWithDefaultCtor(this Type type)
{
if (type.I... | {
"content_hash": "a0bf44b43da17d196c257c7b5470c037",
"timestamp": "",
"source": "github",
"line_count": 284,
"max_line_length": 130,
"avg_line_length": 33.84154929577465,
"alnum_prop": 0.5939028196857767,
"repo_name": "khellang/structuremap",
"id": "900666cfd42e3646914cc5d8f0067570419932c1",
"size"... |
class AccessLevel < ApplicationRecord
end
| {
"content_hash": "45104c19425133fa4c11418ce347defa",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 37,
"avg_line_length": 21,
"alnum_prop": 0.8571428571428571,
"repo_name": "jeyavelnkl/jel_apps",
"id": "1fe1f720fe3dd67782dc86a3d698a25084f11adb",
"size": "42",
"binary": ... |
> see https://aka.ms/autorest
Configuration for generating Custom Vision Prediction SDK.
The current release is `release_1_0`.
``` yaml
tag: release_1_0
openapi-type: data-plane
```
# Releases
### Release 1.0
These settings apply only when `--tag=release_1_0` is specified on the command line.
``` yaml $(tag) == '... | {
"content_hash": "1e6c191859dd3d6b9238e46e872f1ea2",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 137,
"avg_line_length": 28.539473684210527,
"alnum_prop": 0.7468879668049793,
"repo_name": "felixwa/azure-rest-api-specs",
"id": "9b927a5d50589dea682f95c9c3356d42848325a0",
... |
import angular from 'angular';
import {
get
} from '../';
/**
* Compiles the provided template string using the provided scope. If no scope
* was provided, a new one will be created.
*
* @example
*
* let scope = get('$rootScope').$new();
* scope.foo = 'bar';
*
* let el = compile('<div>{{ foo }}</div>')(sc... | {
"content_hash": "3af7179ef76bd905dfcfbc3f96d81c22",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 78,
"avg_line_length": 29.685185185185187,
"alnum_prop": 0.6481597005614473,
"repo_name": "collectivehealth/unity",
"id": "1c6b726def068e964000817501f351e749a07242",
"size"... |
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/debug_drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.jakewharton.madge.MadgeFrameLayout
a... | {
"content_hash": "18532b9b57527c665f381061f13dd2f5",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 62,
"avg_line_length": 38.32,
"alnum_prop": 0.675365344467641,
"repo_name": "pieces029/on-this-day",
"id": "39df0a2ba3b67b91fb09844039499b364c817d03",
"size": "958",
"bin... |
Collection of sample projects for [JBoss Fuse](http://www.jboss.org/products/fuse/overview/).
| {
"content_hash": "4a4f71c26733c0ba5da98adb540b1d95",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 93,
"avg_line_length": 94,
"alnum_prop": 0.776595744680851,
"repo_name": "tadayosi/samples-fuse",
"id": "02104e747ab87ecfa0479f819c26df126540ccf1",
"size": "242",
"binary"... |
package org.apereo.cas.web.flow.resolver.impl;
import org.apache.commons.lang3.StringUtils;
import org.apereo.cas.CentralAuthenticationService;
import org.apereo.cas.authentication.Authentication;
import org.apereo.cas.authentication.AuthenticationSystemSupport;
import org.apereo.cas.authentication.principal.Principal... | {
"content_hash": "0cdbc00e3cf03e2244f93763a785f067",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 158,
"avg_line_length": 54.0625,
"alnum_prop": 0.6984310487200661,
"repo_name": "gabedwrds/cas",
"id": "23ce48da2bfca2730bcbe6bbe5e54d52b42ca343",
"size": "6055",
"binar... |
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
| {
"content_hash": "223ed161c43c75a6fc08ce57bbbfcbfb",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 32,
"avg_line_length": 12.5,
"alnum_prop": 0.56,
"repo_name": "escaflone40/ardoab",
"id": "36ecd3926a9a05f43260b1e82475592f4effabff",
"size": "174",
"binary": false,
"c... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "9d752c214c572052b75b7bdf4b23dbb7",
"timestamp": "",
"source": "github",
"line_count": 138,
"max_line_length": 414,
"avg_line_length": 67.53623188405797,
"alnum_prop": 0.6839055793991416,
"repo_name": "smc314/helix",
"id": "274537f72c3859cdffd313d71a85cca5da21f6e6",
"size": "9320",... |
module Spree
class Recurring < ActiveRecord::Base
include RestrictiveDestroyer
acts_as_restrictive_destroyer
preference :secret_key, :string
preference :public_key, :string
has_many :plans
attr_readonly :type
validates :type, :name, presence: true
validates :type, uniqueness: { mess... | {
"content_hash": "6ee43117a0f285e1cb1f792593a9d255",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 84,
"avg_line_length": 21.515151515151516,
"alnum_prop": 0.6549295774647887,
"repo_name": "vulk/spree-account-recurring",
"id": "5a954b13fb57f2979b57a158483a717096a87c89",
... |
<!--
* GenesisUI - Bootstrap 4 Admin Template
* @version v1.8.1
* @link https://genesisui.com
* Copyright (c) 2017 creativeLabs Łukasz Holeczek
* @license Commercial
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="v... | {
"content_hash": "cab0a8f81abb3c3b567f58ef6e6258fd",
"timestamp": "",
"source": "github",
"line_count": 1124,
"max_line_length": 186,
"avg_line_length": 55.01779359430605,
"alnum_prop": 0.4161869340232859,
"repo_name": "wydsodifficult/wydsodifficult.github.io",
"id": "3782b2b2027a7354c8b50178b7b7464f... |
#import <objc/runtime.h>
#import "TiModule.h"
#import "TiProxy.h"
#import "TiUtils.h"
#import "TiHost.h"
#import "KrollBridge.h"
@implementation TiModule
-(void)unregisterForNotifications
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
-(void)dealloc
{
// Have to jump through a hoop here to k... | {
"content_hash": "38985a9273e2791399978c1156e9630e",
"timestamp": "",
"source": "github",
"line_count": 238,
"max_line_length": 130,
"avg_line_length": 25.067226890756302,
"alnum_prop": 0.7190747569560845,
"repo_name": "vanbungkring/ios-NoticeView",
"id": "6dfe7829c77bf711e5f66d9020daffeab153580c",
... |
package krasa.grepconsole.model;
import krasa.grepconsole.tail.runConfiguration.TailRunConfigurationSettings;
/**
* @author Vojtech Krasa
*/
public class TailSettings extends DomainObject {
private boolean enabled;
private String port = String.valueOf(8093);
private String defaultEncoding = "UTF-8";
private bo... | {
"content_hash": "da1464f98e64dd4459b943174b820e37",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 84,
"avg_line_length": 22.144927536231883,
"alnum_prop": 0.7742146596858639,
"repo_name": "krasa/GrepConsole",
"id": "5683e1b9e267692e46e0671526ae1bfbce18ed2f",
"size": "15... |
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use app\core\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\modules\focus\models\CategorySearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="category-search">
<?php $form = ActiveForm::searchBegin(); ?>
<?= $form->field($mo... | {
"content_hash": "1af3bd952a24c9b323b7b87563451058",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 116,
"avg_line_length": 23.692307692307693,
"alnum_prop": 0.5827922077922078,
"repo_name": "cboy868/lion",
"id": "8e6ed9223513e3cfc1723309244f2df4e3ccf62b",
"size": "624",
... |
OrgDateRangeable.class
StatExportedPlan.class
StatExportedPlan::CreateOrUpdate.class
Role.class
Plan.class
User.class
ExportedPlan.class
# Org usage --- TODO: This should likely be a module
class Org
# Usage for Nbr of exported plans in the prior month
class CreateLastMonthExportedPlanService
class << self
... | {
"content_hash": "ed35de0c86e2b2607b8ac0bf03bc41b5",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 71,
"avg_line_length": 27.324324324324323,
"alnum_prop": 0.6102868447082097,
"repo_name": "CDLUC3/dmptool",
"id": "b1dc366d3c980d11b9b7b8ff30f53bf68d7db719",
"size": "1179"... |
#define opt_on_cam_prop(PROP_NAME) opt_on(double, PROP_NAME, -DBL_MAX,"","<PROP_VAL>", std::string("set camera parameter ") + std::string(#PROP_NAME))
namespace skl{
namespace options{
opt_on_cam_prop(POS_MSEC);
opt_on_cam_prop(POS_FRAMES);
opt_on_cam_prop(POS_AVI_RATIO);
opt_on_cam_prop(FRAME_WIDTH);
... | {
"content_hash": "cd8fc9ad49330c603274bda0f04165b8",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 150,
"avg_line_length": 34.78481012658228,
"alnum_prop": 0.6874090247452693,
"repo_name": "AtsushiHashimoto/TableObjectManager",
"id": "0316177dbf4b8ce74a60f1edc60e15e23b0f40... |
package cmd
import (
"github.com/spf13/cobra"
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/kubectl/util/i18n"
)
// NewCmdAlpha creates a command that acts as an alternate root command for featur... | {
"content_hash": "274b02d35b3d9efd4d191a0e8198657d",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 139,
"avg_line_length": 35.6,
"alnum_prop": 0.7512038523274478,
"repo_name": "hzxuzhonghu/kubernetes",
"id": "cb78568d950ac2adf70b52694ece0464ad1b7796",
"size": "1815",
"... |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Security... | {
"content_hash": "919c726bd6cbd6746bb33b54b97fbea9",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 98,
"avg_line_length": 33.074074074074076,
"alnum_prop": 0.6220604703247481,
"repo_name": "gmirmand/wankul",
"id": "ec0478759b8b80eb5088411827038d8c97a4ff5c",
"size": "1786... |
<?php
namespace Solve\Database\Tests;
require_once 'SolveDatabaseTestBasic.php';
use Solve\Database\Models\ModelOperator;
use Solve\Database\Models\ModelRelation;
use Solve\Database\Models\ModelStructure;
use Solve\Database\QC;
class ModelAbilitySlugTest extends SolveDatabaseTestBasic {
public function testBas... | {
"content_hash": "7cbeff34eaa656f2dc1e48b027c1197c",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 86,
"avg_line_length": 31.235294117647058,
"alnum_prop": 0.6189579409918393,
"repo_name": "Solve/Database",
"id": "dff10ff0399d5d05a23053141d942b7a303bf4f6",
"size": "1782"... |
#include "nacl_mounts/kernel_proxy.h"
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <string.h>
#include <string>
#include "nacl_mounts/kernel_handle.h"
#include "nacl_mounts/mount.h"
#include "nacl_mounts/mount_mem.h"
#include "nacl_mounts/mount_node.h"
#include "nacl_mounts/osstat.h"
// TODO(b... | {
"content_hash": "fd9281ddffafe51e12cdfb841dcdbb8f",
"timestamp": "",
"source": "github",
"line_count": 354,
"max_line_length": 77,
"avg_line_length": 21.37853107344633,
"alnum_prop": 0.63107822410148,
"repo_name": "junmin-zhu/chromium-rivertrail",
"id": "5edc43e5fc260f7ff9ac272c6c51c81c9161dca0",
... |
package org.copperengine.monitoring.client.form;
import java.util.ArrayDeque;
import java.util.Deque;
import javafx.scene.Node;
public abstract class ShowFormsStrategy<E extends Node> {
public static final int HISTORY_LIMIT = 10;
protected final E component;
public ShowFormsStrategy(E component) {
... | {
"content_hash": "f1d8b2c87f04d2d6f669aaa7f5fd5098",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 75,
"avg_line_length": 24.27777777777778,
"alnum_prop": 0.5807780320366133,
"repo_name": "benfortuna/copper-engine",
"id": "499e468271e39c583fdc6694ac5d7ce130400343",
"size... |
HRESULT Library_sys_net_native_System_Net_IPAddress::IPv4ToString___STATIC__STRING__U4(CLR_RT_StackFrame &stack)
{
NANOCLR_HEADER();
NANOCLR_SET_AND_LEAVE(stack.NotImplementedStub());
NANOCLR_NOCLEANUP();
}
| {
"content_hash": "e135238cbec7c356b2b842221a0e45e4",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 112,
"avg_line_length": 27.625,
"alnum_prop": 0.7239819004524887,
"repo_name": "nanoframework/nf-interpreter",
"id": "2a5263c97ea7fdb8e0b1e396d4434a9ec8431fa5",
"size": "377... |
namespace Merchant.Tools
{
public class MineralValueCalculator : ICalculateMineralValue
{
public decimal MineralValue(decimal quantity, decimal creditValue)
{
return creditValue/quantity;
}
public decimal CreditValue(decimal quantity, decimal mineralValue)
... | {
"content_hash": "d9adc4783df8a646e46bf92ca8a32616",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 74,
"avg_line_length": 26.266666666666666,
"alnum_prop": 0.6192893401015228,
"repo_name": "ofraski/Merchant",
"id": "b7655a099f74918489cf8f961d80926537aec440",
"size": "396... |
#ifndef GUIUTIL_H
#define GUIUTIL_H
#include <QString>
#include <QObject>
#include <QMessageBox>
QT_BEGIN_NAMESPACE
class QFont;
class QLineEdit;
class QWidget;
class QDateTime;
class QUrl;
class QAbstractItemView;
QT_END_NAMESPACE
class SendCoinsRecipient;
/** Utility functions used by the GGcoin-qt UI.
*/
namespa... | {
"content_hash": "b4da709c8e826258e0f257ff4dd6d014",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 107,
"avg_line_length": 35.15833333333333,
"alnum_prop": 0.6909220194358853,
"repo_name": "Nerede/istcoin",
"id": "4f4fce33cc3ac5a44fe42b97ca274d5ca2571c2c",
"size": "4219... |
<?php namespace Foothing\Tests\Laravel\Visits\Commands;
use Foothing\Laravel\Visits\Commands\DumpVisitsBuffer;
use Foothing\Laravel\Visits\Visits;
class DumpVisitsBufferTest extends \Orchestra\Testbench\TestCase {
public function test_fire() {
$visits = \Mockery::mock(Visits::class);
$command = n... | {
"content_hash": "dce86ab43ba3808e761ec8e591549724",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 66,
"avg_line_length": 31.285714285714285,
"alnum_prop": 0.7031963470319634,
"repo_name": "foothing/laravel-simple-pageviews",
"id": "4ab9df757159b65cfef1942f54b1c947b8f0270a... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2... | {
"content_hash": "1616f68b72f877beaf552b2a9f8e21d5",
"timestamp": "",
"source": "github",
"line_count": 316,
"max_line_length": 204,
"avg_line_length": 32.389240506329116,
"alnum_prop": 0.5601367855398144,
"repo_name": "xasx/maven",
"id": "f371d9492ff3c870ce61f722cc149fcd3e14a640",
"size": "10235",... |
#include <stdlib.h>
#include <lua.h>
#include <lauxlib.h>
#include "compat-5.2.h"
#include <dbus/dbus.h>
#include "ldbus.h"
#include "connection.h"
#include "message.h"
#include "error.h"
#include "bus.h"
static const char *const BusType_lst [] = {
"session", /* DBUS_BUS_SESSION == 0 */
"system", /* DBUS_BUS_SY... | {
"content_hash": "6bc01614acfad771e8062df48121bb46",
"timestamp": "",
"source": "github",
"line_count": 242,
"max_line_length": 104,
"avg_line_length": 26.665289256198346,
"alnum_prop": 0.6483805981713932,
"repo_name": "dodo/ldbus",
"id": "665be35e4372262647b30085d516b6419e52d2b9",
"size": "6453",
... |
package com.example.qiuro.qiuweather;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
publi... | {
"content_hash": "393b593de167dc656bf4d7570fe81a6f",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 81,
"avg_line_length": 23.88235294117647,
"alnum_prop": 0.6945812807881774,
"repo_name": "qiurongli/qiuweatherr",
"id": "90cc9e91e7fa079b37cc30fc4bb91559fbf09d61",
"size": ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$lang['upload_userfile_not_set'] = 'A userfile POST változó nem található.';
$lang['upload_file_exceeds_limit'] = 'A feltöltött fájl mérete nagyobb, mint amit a PHP konfigurációs fájl beállítása engedélyez.';
$lang['upload_file_exceeds_form_limit... | {
"content_hash": "14f985b4775c6c10c1b8e5cec0f9d2fd",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 132,
"avg_line_length": 77.35,
"alnum_prop": 0.7485455720749838,
"repo_name": "ivantcholakov/codeigniter3-translations",
"id": "b9596c49d5fb23326d07c417215f4f938886d38a",
"... |
#ifndef FKREALM_H
#define FKREALM_H
#include "FKInfrastructure.h"
#include <QSet>
#include <QVariant>
#include "FKRealmDBMap.h"
#include "FKRoomData.h"
class FKConnector;
class FKConnectionManager;
class FKAusviceData;
class FKRoomInviteData;
class FKRealm : public FKInfrastructure{
Q_OBJECT
public:
FKReal... | {
"content_hash": "be969f3244d3a757b3e3a1ea5283612e",
"timestamp": "",
"source": "github",
"line_count": 150,
"max_line_length": 159,
"avg_line_length": 47.11333333333334,
"alnum_prop": 0.7764256402999858,
"repo_name": "FajraKatviro/FKFramework2",
"id": "a536616c437d01b4cd0ca311b99202da9d4bfcd1",
"s... |
package io.schinzel.basicutils.str;
import java.util.Locale;
abstract class AbstractIStr<T extends IStr<T>> implements IStr<T> {
private StringBuilder sb = new StringBuilder();
@Override
public T a(String s) {
sb.append(s);
return this.getThis();
}
@Override
public Locale g... | {
"content_hash": "55b00b66c2792695194a55ea6176a7d7",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 67,
"avg_line_length": 17.307692307692307,
"alnum_prop": 0.6155555555555555,
"repo_name": "Schinzel/basic-utils",
"id": "85b03cdb147e3a0922eecb1d2cb6e4f74c9fd7dd",
"size": ... |
package entidades;
import java.util.Date;
import java.sql.*;
import java.io.*;
public class Usuario {
Connection conn;
Statement stmt;
public Usuario(){
try {
String userName = "bluehats_SEng";
String password = "amss1";
String url = "jdbc:mysql://162.243.134.61/bluehats_SEng";
Clas... | {
"content_hash": "b65d2e1297b7f1992fb5d898bbcd436b",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 87,
"avg_line_length": 29.58823529411765,
"alnum_prop": 0.6322067594433399,
"repo_name": "acrogenesis/SEng-Bytes",
"id": "23789410c4cf22cf74b71e165f03e08042046f59",
"size":... |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | {
"content_hash": "50ffb4645ba03b1f25cda0577906a189",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 182,
"avg_line_length": 35.2,
"alnum_prop": 0.7565426997245179,
"repo_name": "googleapis/google-api-java-client-services",
"id": "351b1e48fac8d66377ce0e3d29e8cf4198e237f4",
... |
.class public Lcom/sec/android/ims/IMSManager;
.super Landroid/os/Handler;
.source "IMSManager.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/sec/android/ims/IMSManager$ManagerHandler;,
Lcom/sec/android/ims/IMSManager$ServiceSender;
}
.end annotation
... | {
"content_hash": "3b6da0ae652cb3d7af0a54f7aa9b8a17",
"timestamp": "",
"source": "github",
"line_count": 757,
"max_line_length": 153,
"avg_line_length": 26.7331571994716,
"alnum_prop": 0.7073676928398478,
"repo_name": "baidurom/devices-n7108",
"id": "26bab4677ae34aeee7c82cd5f024614370d3fd1b",
"size"... |
<!--
Copyright © 2016-2022 The Thingsboard Authors
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 applic... | {
"content_hash": "0fc7f268930d7b121b64c8aef448f4a4",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 144,
"avg_line_length": 47.83673469387755,
"alnum_prop": 0.6783276450511946,
"repo_name": "thingsboard/thingsboard",
"id": "38ab9e377aab7cc55fc6c7875879352e2ca0d6d9",
"size... |
package com.meidusa.venus.notify.io.json;
import java.lang.reflect.Type;
import com.meidusa.fastjson.parser.DefaultJSONParser;
import com.meidusa.fastjson.parser.JSONLexer;
import com.meidusa.fastjson.parser.JSONToken;
import com.meidusa.fastjson.parser.deserializer.ObjectDeserializer;
import com.meidusa.venus.notify... | {
"content_hash": "13ebbe9d5e5c5b2456ff33503cfade05",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 121,
"avg_line_length": 35.064516129032256,
"alnum_prop": 0.7479300827966882,
"repo_name": "blusechen/venus",
"id": "a58eb146eb4e7586d1e1dbc628d29b0369e7d61a",
"size": "108... |
css = u"""
body
{
font-family:"YaHei Consolas Hybrid";
}
#test1
{
font-family:"hello";
}
#test2
{
font-family:"Times New Roman";
}
#test3
{
font-family:"";
}
#test4
{
font-family:"YaHei Consolas Hybrid";
}
"""
html = u"""
<html>
<head>
<body>
<p id='test1'>hello</p> <!-- does not fallback to default font specifie... | {
"content_hash": "9ea766ed69d7bfb13297103fe5edc4a3",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 109,
"avg_line_length": 24.892857142857142,
"alnum_prop": 0.6183644189383071,
"repo_name": "ptphp/PyLib",
"id": "231167bfdf710d5df4ef620238c6a8fdaa74d357",
"size": "2157",
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ext-lib: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | {
"content_hash": "c000d0ed9c5df5fe194d6a38a232a56a",
"timestamp": "",
"source": "github",
"line_count": 162,
"max_line_length": 157,
"avg_line_length": 39.78395061728395,
"alnum_prop": 0.5231962761830876,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "0bafe688deea77d5f3f9ae599ef0299652030eed",
... |
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/license... | {
"content_hash": "e145afcecd341299d6e570ad91d5e35c",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 412,
"avg_line_length": 66.2,
"alnum_prop": 0.7447129909365559,
"repo_name": "Bmoney1014/AdMobBanner",
"id": "655a20e3ad4791d4766c82d799938b2ebb95e8d6",
"size": "1324",
"... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.ContentManagement;
namespace Devoffice.GettingStarted.Models
{
public class AddinsWidgetPart : ContentPart
{
}
} | {
"content_hash": "cdaa92309624e0106235b2ebd38911fb",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 47,
"avg_line_length": 18.75,
"alnum_prop": 0.7733333333333333,
"repo_name": "ShuanWang/devoffice.com-shuanTestRepo",
"id": "cdb9376201141b0a28499452c1fdf8b21911e255",
"siz... |
package co.cask.coopr.client.rest.handler;
import co.cask.coopr.client.rest.RestClientTest;
import com.google.gson.Gson;
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.RequestLine;
import org.apa... | {
"content_hash": "92487db12990d09d0eca0e2a06cd738f",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 107,
"avg_line_length": 35.55,
"alnum_prop": 0.7449601500234412,
"repo_name": "cdapio/coopr",
"id": "b44f85725eca2f2c2f1edbf4242ea6625c6adf73",
"size": "2739",
"binary": ... |
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.datakernel... | {
"content_hash": "25e3086ef061f8ba1d32dd3cf959fe72",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 205,
"avg_line_length": 30.852941176470587,
"alnum_prop": 0.6601525262154433,
"repo_name": "softindex/datakernel",
"id": "36805fb8bbe2397b76a1cc3e39db67e10982e8bb",
"size":... |
<!doctype html>
<html data-ng-app='ngAPI' ng-strict-di>
<head>
<meta charset='utf-8' />
<meta http-equiv='X-UA-Compatible', content='IE=edge' />
<base href="/" />
<title> J.Ca </title>
<meta name="description" content=""/>
<meta name="viewport" content="width=device-width"/>
<style>
... | {
"content_hash": "bb38d212d279757890932b292c221b69",
"timestamp": "",
"source": "github",
"line_count": 187,
"max_line_length": 114,
"avg_line_length": 55.62566844919786,
"alnum_prop": 0.6804460680638339,
"repo_name": "caninojories/erp_moe3",
"id": "f05008db934fde4717b6b8dc0e1b844c523d5066",
"size"... |
using NUnit.Framework;
using System;
using System.IO;
using System.Runtime.InteropServices;
using Vanara.PInvoke;
namespace Vanara.Extensions.Tests
{
[TestFixture()]
public class IOExtensionsTests
{
[Test()]
public void WriteTest()
{
using (var ms = new MemoryStream())
{
var bw = new BinaryWriter(m... | {
"content_hash": "2d23cee1ddacc3e5c71358a6c552809e",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 122,
"avg_line_length": 26.902439024390244,
"alnum_prop": 0.6110607434270172,
"repo_name": "dahall/vanara",
"id": "55ecc7934c84c32e564a315cfb621d1d4864cf37",
"size": "1105"... |
/**
* Module dependencies.
*/
var util = require('util')
, _ = require('lodash')
, getSDKMetadata = require('../sockets/lib/getSDKMetadata')
, STRINGFILE = require('sails-stringfile');
/**
* Module errors
*/
var Err = {
dependency: function (dependent, dependency) {
return new Error( '\n' +
'Can... | {
"content_hash": "0861c9eae900dea3a3fe3724b5645f30",
"timestamp": "",
"source": "github",
"line_count": 1461,
"max_line_length": 199,
"avg_line_length": 34.347022587268995,
"alnum_prop": 0.5634204180865268,
"repo_name": "rasata/Iphone-Powered",
"id": "925e3ebb98321bf8c8672e9e36ffb1aa736695f6",
"siz... |
package examples.model;
import static javax.persistence.FetchType.LAZY;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
@Entity
public class Employee {
@Id
private int id;
private String name;
... | {
"content_hash": "f4f40c1d3edd53d3023855ecd690e29d",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 72,
"avg_line_length": 19.47457627118644,
"alnum_prop": 0.5909486510008704,
"repo_name": "velmuruganvelayutham/jpa",
"id": "1e37e0de43b3bc2a2d36b6bd669d930961779934",
"size... |
function[f] = greens_interpolant(theta, v, z, suppress_kernel)
% greens_interpolant -- Interpolates samples using the Green's function
%
% f = greens_interpolant(theta, v, z,{{suppress_kernel=true}})
%
% Given samples (theta,v) of a velocity field v, this function constructs
% the Green's function interpolant a... | {
"content_hash": "c5c1c1dca02b964f2628a2b579f444ce",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 80,
"avg_line_length": 38.8375,
"alnum_prop": 0.683617637592533,
"repo_name": "cygnine/shapelab",
"id": "bd8b010b8486a23aad024f790e1d45bf8b8479f7",
"size": "3107",
"binar... |
<?php
/**
* @category Spark
* @package Spark_Event
* @copyright Copyright (c) 2010 Christoph Hochstrasser
* @license MIT License
*/
class Spark_Event_Handler
{
/**
* @var array|Closure Closure or Array
*/
protected $_callback;
/**
* Constructor
*
* @throws InvalidAr... | {
"content_hash": "328c75d7d6095cf30e2675687dbb6f91",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 107,
"avg_line_length": 24.915254237288135,
"alnum_prop": 0.5537414965986395,
"repo_name": "CHH/Spark-Web-Framework",
"id": "e77cb4306ca525833c3e8d3701bf9e05998ad054",
"siz... |
const std::string Settings::kAmbientIntensity = "ambient_intensity";
const std::string Settings::kBackgroundColour = "background_colour";
const std::string Settings::kOutputFile = "output_file";
const std::string Settings::kNumThreads = "num_threads";
const std::string Settings::kMaxReflectBounces = "max_reflect_bounce... | {
"content_hash": "3921ecb322a4f9a8aa8c97db27c53f78",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 78,
"avg_line_length": 23.972727272727273,
"alnum_prop": 0.5942358740993553,
"repo_name": "davidsami/RayRay",
"id": "785e08fb833c5f198454bb5b3b8405e824d985b5",
"size": "26... |
<!-- @condition /parking downtown -->
<hr class="visuallyhidden">
<!-- @condition /NO CONSTRUCTION -->
<div data-parking-district="non-downtown">
<h2>Non-Downtown Businesses</h3>
<p>Your business needs to provide parking spaces. This panel is to help you determine what volume of spaces the Municipal Code req... | {
"content_hash": "35a9c51dbb8e4594e241993e2f20b0ae",
"timestamp": "",
"source": "github",
"line_count": 1055,
"max_line_length": 365,
"avg_line_length": 33.21042654028436,
"alnum_prop": 0.5712532465679139,
"repo_name": "codeforamerica/opencounter",
"id": "d3704d4aa685a7ec172233b00f4f0fd95bbf8d78",
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.sistemaexperto.logic;
import java.util.ArrayList;
import java.util.TreeSet;
import sun.reflect.generics.tree.Tree;
/**
*
* @author Cesar
*/
public class Necesidades {
private TreeSet<Necesi... | {
"content_hash": "f404211456bf799a07e914ce5cbe2dd4",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 64,
"avg_line_length": 17,
"alnum_prop": 0.5805626598465473,
"repo_name": "cams2692/Sistema-Experto",
"id": "7f465fa9ffa2fae498a13d70c131e597762ff0a8",
"size": "1173",
"b... |
CREATE TABLE IACUC_PROTO_CORRESPONDENCE (
ID NUMBER(12),
PROTOCOL_NUMBER VARCHAR2(20) NOT NULL,
SEQUENCE_NUMBER NUMBER(4) NOT NULL,
ACTION_ID NUMBER(6) NOT NULL,
PROTOCOL_ID NUMBER(12) NOT NULL,
ACTION_ID_FK NUMBER(12) NOT NULL,
PROTO_CORRESP_TYPE_CODE VARCHAR2(3) NOT NU... | {
"content_hash": "a1afb6f22803c7193a6e2f4889cb588d",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 49,
"avg_line_length": 33.81818181818182,
"alnum_prop": 0.6626344086021505,
"repo_name": "blackcathacker/kc.preclean",
"id": "e8c4ce2412c0ca96fa191932dd894fefca2beade",
"si... |
jQuery(document).ready(function(){
$("#cancelar").click(function(){
url = base_url+"index.php/inicio/index";
location.href = url;
});
$("#enviar").click(function(){
dataString = $('#frmContrasena').serialize();
url = base_url+"index.php/inicio/contrasena_enviar";
... | {
"content_hash": "7f5032342cd82d275ee472816e9318dc",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 60,
"avg_line_length": 33.1875,
"alnum_prop": 0.5386064030131826,
"repo_name": "ccjuantrujillo/cepreadm",
"id": "650502517303a697846b6f199640b4b645e231be",
"size": "531",
... |
define([
"./dom",
"./crud",
"./schema"
], function (
dom,
crud,
schema
) {
"use strict";
//this maps CRUD operations to link methods
var renderer,
actions = {
"GET": function (link, links, data, container) {
renderer.render(link.href, container);... | {
"content_hash": "0cdb782ea250fd712aa7fd6e03cb20a8",
"timestamp": "",
"source": "github",
"line_count": 338,
"max_line_length": 114,
"avg_line_length": 27.7396449704142,
"alnum_prop": 0.4481655290102389,
"repo_name": "atsid/breadboard",
"id": "934a7445e269f5c96c4ba9897ac9b2802f3fb31a",
"size": "937... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Dr... | {
"content_hash": "a4a021f2ccdc4e33de5d4f9337b862ff",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 39.25,
"alnum_prop": 0.7466383581033262,
"repo_name": "aduggleby/dragon",
"id": "074685502863a384a6de92bdb7d4ec7e2ec9742a",
"size": "1416",
"binary... |
package github
import (
"encoding/json"
"errors"
"fmt"
"net/http"
"strings"
"github.com/bitrise-io/bitrise-webhooks/bitriseapi"
hookCommon "github.com/bitrise-io/bitrise-webhooks/service/hook/common"
"github.com/bitrise-io/go-utils/sliceutil"
)
// --------------------------
// --- Webhook Data Model ---
// ... | {
"content_hash": "8307588ad0758cccce4544c126b1f3e2",
"timestamp": "",
"source": "github",
"line_count": 313,
"max_line_length": 151,
"avg_line_length": 32.626198083067095,
"alnum_prop": 0.7018213866039953,
"repo_name": "crrobinson14/bitrise-webhooks",
"id": "2ba8d2e5818615faebc74bc42d6eec03c168dab6",... |
import datetime
import unittest
from freezegun import freeze_time
from airflow import settings
from airflow.models import DagRun, TaskInstance
from airflow.models.dag import DAG
from airflow.operators.dummy import DummyOperator
from airflow.operators.latest_only import LatestOnlyOperator
from airflow.utils import tim... | {
"content_hash": "7711710f967efbef657e017fa55cf8a5",
"timestamp": "",
"source": "github",
"line_count": 181,
"max_line_length": 100,
"avg_line_length": 39.24309392265194,
"alnum_prop": 0.6283260594115163,
"repo_name": "apache/incubator-airflow",
"id": "90714afb71fb30a3a525cd0771b372f0d35ef9b4",
"si... |
package monitor
import (
"context"
"github.com/google/gapid/test/robot/subject"
)
// Subject is the in memory representation/wrapper for a subject.Subject
type Subject struct {
subject.Subject
}
// Subjects is the type that manages a set of Subject objects.
type Subjects struct {
entries []*Subject
}
// All re... | {
"content_hash": "5d7200b03958489dee6dddfd24a6c071",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 85,
"avg_line_length": 22.217391304347824,
"alnum_prop": 0.6908023483365949,
"repo_name": "Qining/gapid",
"id": "069a5ced2431f6fa5118d15604d53aea418cd68f",
"size": "1616",
... |
using System;
namespace BAP.Loader.PE
{
/// <summary>
/// The Characteristics field contains flags that indicate attributes of the object or image file.
/// The following flags are currently defined.
/// </summary>
[Flags]
public enum IMAGE_FILE_Characteristics : ushort
{
/// <summary>
/// Ima... | {
"content_hash": "1227801969dbb5823b01bb9f5fce904c",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 339,
"avg_line_length": 34.3936170212766,
"alnum_prop": 0.663161150634086,
"repo_name": "binsys/bap",
"id": "c0baf9725d8fff3adfe610b8c6e719cb41c90863",
"size": "3236",
"b... |
#include <numeric>
#include <vector>
#include "webrtc/base/array_view.h"
#include "webrtc/base/random.h"
#include "webrtc/modules/audio_processing/audio_buffer.h"
#include "webrtc/modules/audio_processing/include/audio_processing.h"
#include "webrtc/modules/audio_processing/residual_echo_detector.h"
#include "webrtc... | {
"content_hash": "0af89acad9a500a1ef1aef453fbdeea5",
"timestamp": "",
"source": "github",
"line_count": 182,
"max_line_length": 80,
"avg_line_length": 39.45054945054945,
"alnum_prop": 0.7055710306406685,
"repo_name": "Alkalyne/webrtctrunk",
"id": "a42b408b8b783a3879c613e35a7b46ecb734a2e7",
"size": ... |
// Copyright (c) 2014, Michael Schout
// Distributed under a 3-clause BSD license. See LICENSE.
#ifndef SRS2_HPP
#define SRS2_HPP
#include <time.h>
#include <vector>
#include <string>
#include "srs2/address.hpp"
namespace srs2 {
const std::string SRS0TAG = "SRS0";
const std::string SRS1TAG = "SRS1";
const std::strin... | {
"content_hash": "675a401a39922b02e28cf91b855cf1ed",
"timestamp": "",
"source": "github",
"line_count": 135,
"max_line_length": 98,
"avg_line_length": 29.133333333333333,
"alnum_prop": 0.5375031782354437,
"repo_name": "mschout/libsrs2xx",
"id": "f87669f0d29b6ee25c9190c42a630b138dc7cfc4",
"size": "3... |
/**
* Background
* This code will run in the background, checking Hacker News for updates either
* every 20 minutes or when the user clicks on the extension icon.
*
* @license MIT license
*/
const NEWS_URL = 'https://news.ycombinator.com/';
const PT_BENCHMARK = 70;
const NOTIF_SOUND_PATH = 'sounds/waterSplashi... | {
"content_hash": "8a6a7232dc4fb945fcdd92538f31f43c",
"timestamp": "",
"source": "github",
"line_count": 135,
"max_line_length": 115,
"avg_line_length": 37.48148148148148,
"alnum_prop": 0.6549407114624506,
"repo_name": "ohjay/hacker-headlines",
"id": "c485bebc6948df260c4619dd596603d6aa25ead0",
"size... |
package pad;
import java.util.Scanner;
import Prog1Tools.IOTools;
public class Aufgabe4 {
/**
* Schreiben Sie ein Programm, das Studentendaten für maximal 10 Studenten
* (Name, Vorname, Matr.Nr., Studiengang, Semester, eMail)
* verwaltet (ähnlich dem Beispielprogramm für die Adressen).
* Die Ausg... | {
"content_hash": "6fd413326569fe679872be74913bb5b9",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 103,
"avg_line_length": 35.45794392523364,
"alnum_prop": 0.544280442804428,
"repo_name": "dmpe/OOPaPrechod",
"id": "8a92e94957b3000eeb7c9ab148fbe5e1612e4748",
"size": "380... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/bigtable/admin/v2/bigtable_table_admin.proto
package com.google.bigtable.admin.v2;
/**
*
*
* <pre>
* Response message for
* [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTable... | {
"content_hash": "fb607340a68952f40560dde21a3a623b",
"timestamp": "",
"source": "github",
"line_count": 1105,
"max_line_length": 117,
"avg_line_length": 31.19185520361991,
"alnum_prop": 0.6362607711724257,
"repo_name": "googleapis/java-bigtable",
"id": "fecfb3c8932df4b2857fb3643d89a5774baf7713",
"s... |
function util.MultiNetworkStrings(header, ...)
local args = {...}
for k, v in pairs(args) do
util.AddNetworkString(header .. v)
end
end
| {
"content_hash": "f1a4694b5186c2e36da1bceea4d75677",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 46,
"avg_line_length": 26,
"alnum_prop": 0.6217948717948718,
"repo_name": "bull29/b_lib-r1",
"id": "3a1d1010aeff093dfa14cd6035246fe115f081f4",
"size": "218",
"binary": fal... |
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| {
"content_hash": "9b9ddf8c76c31fe26204880ac9e559d2",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 60,
"avg_line_length": 16.857142857142858,
"alnum_prop": 0.7796610169491526,
"repo_name": "zhangyonguu/myuu",
"id": "ad343015a4a223761f9d5b9581856b83762fa24e",
"size": "276"... |
Charmine as it currently stands is an experimental, proof-of-concept command line game. The game concept itself needs to be further developed, the level generator should be less random, and some sort of points system would be nice. This version of Charmine was developed as a sandbox to test the basic concept and also s... | {
"content_hash": "63b8fd849530c99d48203fa209937fa1",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 397,
"avg_line_length": 25.9375,
"alnum_prop": 0.7602409638554217,
"repo_name": "mnito/charmine",
"id": "9d81bbb4f98025f6bfc0e771f6ee184fb3029fa7",
"size": "1672",
"binar... |
namespace Poco {
namespace RemotingNG {
Identifiable::Identifiable(const Identifiable::ObjectId& oid):
_remoting__oid(oid)
{
}
Identifiable::~Identifiable()
{
}
void Identifiable::remoting__setURI(const Poco::URI& uri)
{
std::string str = uri.toString();
if (!str.empty())
{
if (str[str.length() - 1] == '/'... | {
"content_hash": "d0a0a7c175074e6dd12e5c7c185d4b2e",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 63,
"avg_line_length": 14.964285714285714,
"alnum_prop": 0.6467780429594272,
"repo_name": "minghuam/macchina.io",
"id": "ecb6f550a00f2ea07c8d831ff30b0b86213dc9bf",
"size": ... |
template <unsigned MinBits, unsigned MaxBits, boost::multiprecision::cpp_integer_type SignType, class Allocator, boost::multiprecision::expression_template_option ET>
struct is_checked_cpp_int<boost::multiprecision::number<boost::multiprecision::cpp_int_backend<MinBits, MaxBits, SignType, boost::multiprecision::checked... | {
"content_hash": "0bb25a679ba607912f1a9080dc33a958",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 242,
"avg_line_length": 69.83333333333333,
"alnum_prop": 0.7816229116945107,
"repo_name": "davehorton/drachtio-server",
"id": "84142edd99fd3aae76754181ccb72da3ea10f10e",
"s... |
package com.google.errorprone.bugpatterns.testdata;
import com.google.common.primitives.Ints;
/** Negative cases for {@link com.google.errorprone.bugpatterns.UnnecessaryLongToIntConversion}. */
public class UnnecessaryLongToIntConversionNegativeCases {
static void acceptsLong(long value) {}
static void accept... | {
"content_hash": "d9281490725f90621adc383b03013c82",
"timestamp": "",
"source": "github",
"line_count": 108,
"max_line_length": 99,
"avg_line_length": 23.055555555555557,
"alnum_prop": 0.6811244979919678,
"repo_name": "google/error-prone",
"id": "3b94ceb71a9a0ec5eb5151cd2306b8e214bdc9b2",
"size": "... |
<?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>
... | {
"content_hash": "92d285b97979068dbe578e24bd0baf7e",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 108,
"avg_line_length": 33.72727272727273,
"alnum_prop": 0.6004043126684636,
"repo_name": "JShadowMan/package",
"id": "341575f1a92f36af334bc497fb3509d2cbec3716",
"size": "1... |
source "${ZSH}/lib/_helpers"
echo "[python::install]"
source "${ZSH}/python/python-versions.zsh"
# Note: you can also install the latest head release with: brew unlink pyenv && brew install pyenv --head
require_installed_brew "pyenv"
require_installed_brew "pyenv-virtualenv"
# Install python 2x
if [[ ! -z "$PYTHON_... | {
"content_hash": "361f9abbd39dc97e57e7015c11a9fad0",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 105,
"avg_line_length": 29.57777777777778,
"alnum_prop": 0.6536438767843726,
"repo_name": "alias1/dotfiles-1",
"id": "deba83d13fb282d6ce4a0f6fb08ec742af4d0da0",
"size": "13... |
from webob import exc
from nova.api.openstack import common
from nova.api.openstack.compute.schemas import server_migrations
from nova.api.openstack import extensions
from nova.api.openstack import wsgi
from nova.api import validation
from nova import compute
from nova import exception
from nova.i18n import _
from nov... | {
"content_hash": "9634ffa4d64cad47b13ae0b00b2cba8f",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 79,
"avg_line_length": 44.08029197080292,
"alnum_prop": 0.6560688855770823,
"repo_name": "Juniper/nova",
"id": "c0fd4c38b5ae11f47b90424a1c2ccf5aa3d31a7d",
"size": "6675",
... |
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Suite1" verbose="1" >
<test name="Groups" >
<classes>
<class name="ru.stqa.pft.addressbook.tests.GroupCreationTests" />
<class name="ru.stqa.pft.addressbook.tests.ContactModificationTests" />
<class... | {
"content_hash": "3f1eada2031ccfac5a6ec3e9abc4f11d",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 83,
"avg_line_length": 35.083333333333336,
"alnum_prop": 0.6270783847980997,
"repo_name": "BaastPriest/Java_for_testers",
"id": "5bb026c304497e7132d7ce34527e3d2f26c91480",
... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddRepeatColumnsToComplianceDiary extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('compliance_diary', function($table)
{
... | {
"content_hash": "c69b5d7dc2890d5b6511d90b47cf0882",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 59,
"avg_line_length": 19.08823529411765,
"alnum_prop": 0.5824345146379045,
"repo_name": "denislevin/webapp-dashboard",
"id": "98d5f7fc1873cb5d2ad39f8ce055f843bae60946",
"s... |
<?php
$installer = $this;
/* @var $installer Mage_Core_Model_Resource_Setup */
$installer->startSetup();
$installer->getConnection()->changeColumn($this->getTable('salesrule'),
'conditions_serialized', 'conditions_serialized',
'mediumtext CHARACTER SET utf8 NOT NULL'
);
$installer->getConnection()->changeCo... | {
"content_hash": "083a35ce478ddded3b8bfd7b1d5e477b",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 71,
"avg_line_length": 26.444444444444443,
"alnum_prop": 0.7142857142857143,
"repo_name": "melvyn-sopacua/magedepot",
"id": "d8bac0e906d13a6ca8f812d3fe6853c76a8f2579",
"siz... |
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages = [], excludes = [])
executables = [
Executable('push.py', 'Console', targetName = 'ldpush')
]
setup(name='ldpush',
version = '1.0',
description = 'A cross-... | {
"content_hash": "ac7764aeb39e35dce6d10e4f6e473163",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 246,
"avg_line_length": 41.266666666666666,
"alnum_prop": 0.7205169628432956,
"repo_name": "google/ldpush",
"id": "fe3c3ff1fc03400d6ef39bc60a330972d964cf27",
"size": "619",... |
import * as React from 'react'
import * as Styles from '../styles'
import Image from './image'
import Text from './text'
import {Box2} from './box'
import WithTooltip from './with-tooltip'
import type {Props} from './custom-emoji'
const Kb = {
Box2,
Image,
Text,
WithTooltip,
}
const CustomEmoji = (props: Prop... | {
"content_hash": "8d42aae75d023c3c17969b923a819bc7",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 87,
"avg_line_length": 21.09375,
"alnum_prop": 0.5325925925925926,
"repo_name": "keybase/client",
"id": "6fc4f9343103f009a71d932d1a894d948a510044",
"size": "1350",
"binar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.