text stringlengths 2 1.04M | meta dict |
|---|---|
#include <stdio.h>
#include <string.h>
/*
* Forward declarations.
*/
static void processInput(FILE *stream, FILE *outstream);
static int parseRule(char *line);
static void generateCode(FILE *stream);
static void generateHeader(FILE *stream);
static void generateFooter(FILE *stream);
int main(int argc, char *argv[... | {
"content_hash": "9515f1f6553d559f55838884197ad9ad",
"timestamp": "",
"source": "github",
"line_count": 578,
"max_line_length": 96,
"avg_line_length": 23.941176470588236,
"alnum_prop": 0.5974129209423327,
"repo_name": "jjenki11/blaze-chem-rendering",
"id": "f64cfaaa45205662233913cebbb709c441d2cb2a",
... |
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/clothing/shared_clothing_armor_padded_bracer_l.iff"
result.attribute_template_id = -1
result.stfName("string_id_table","")
#### BEGIN MODIFICATIONS ####
#### END MODIFICATIONS ####
return res... | {
"content_hash": "ab1933827bce142ec323e49d6d81da2f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 94,
"avg_line_length": 24.846153846153847,
"alnum_prop": 0.7027863777089783,
"repo_name": "anhstudios/swganh",
"id": "75e8648cae63f77b8d2e8a586c90cb0688c576a9",
"size": "46... |
public class PokemonGame {
public static void main(String[] args) {
// Pokemon[] pokemon = new Pokemon[10];
Pokemon poke = new Pokemon();
poke = assignBaseStats();
System.out.println("Pokemon #0");
System.out.println("Species = " + poke.speciesName);
System.out.println("Max HP = " + poke.maxHP)... | {
"content_hash": "c586d6052dd1f8ba54816bb57bf0c06d",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 59,
"avg_line_length": 26.289473684210527,
"alnum_prop": 0.6756756756756757,
"repo_name": "edrak1/Pokemon-Text-Adventure",
"id": "0ea59fe78077d4f24dffd4bbc3a45ac52bc3d8be",
... |
<?php
/**
* Created by PhpStorm.
* User: bezimienny
* Date: 21.08.15
* Time: 13:55
*/
namespace Acme\Bundle\EventManagerBundle\Model;
use Doctrine\ORM\EntityManager;
class ApiRequestHandler
{
private $entityManager;
private $queryBuilder;
public function __construct(EntityManager $entityManager)
... | {
"content_hash": "20f520d28216616d6a379faeb2898d7b",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 83,
"avg_line_length": 28.419642857142858,
"alnum_prop": 0.5366006911718505,
"repo_name": "michalSolarz/EMW-Platform",
"id": "02f8502687c420dc35aeb6a6a312e3b115d6fa2b",
"s... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<title>Uses of Class org.eclipse.emf.cdo.security.provider.UserItemProvider (CDO Model Repository Documentation)</title>
<meta name="date" content="">
<link rel="stylesheet" t... | {
"content_hash": "dab53858c7d9c6bdc322878ed8436e08",
"timestamp": "",
"source": "github",
"line_count": 167,
"max_line_length": 386,
"avg_line_length": 43.796407185628745,
"alnum_prop": 0.6423297785069729,
"repo_name": "kribe48/wasp-mbse",
"id": "1a0ab374eda8ef72bd34748881102a4d22fd4c16",
"size": "... |
ο»Ώusing System;
using System.Collections.Generic;
using Backgammon.Framework.Constants;
using Backgammon.Framework.Exceptions;
using Backgammon.Framework.Interfaces;
namespace Backgammon.Framework
{
public class Player : IPlayer
{
private static readonly Random Random = new Random();
... | {
"content_hash": "2855790529b633a33ff7e6d3e3d88721",
"timestamp": "",
"source": "github",
"line_count": 312,
"max_line_length": 127,
"avg_line_length": 38.31089743589744,
"alnum_prop": 0.44206475361833847,
"repo_name": "Arjestin/code-value-course",
"id": "828c8e5e293674fd3da76d83f9ca9c5e1d5c5a72",
... |
module Main (
main -- main-function
)
where
-- imports --
import Control.Monad
import Control.Exception
import Database.HDBC
import Database.HDBC.PostgreSQL
import Data.List.Split
import Data.Char
-- functions --
main :: IO ()
-- http://book.realworldhaskell.org/read/... | {
"content_hash": "7987407390e35facde276f608f442a94",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 154,
"avg_line_length": 42.83157894736842,
"alnum_prop": 0.5023347259768985,
"repo_name": "finnp/HaskellDatabaseImportExample",
"id": "26918140b3dc2caeca36590ae6787fe55957956... |
require 'test_helper'
class CaptchaTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
| {
"content_hash": "df86c2e176ade36e78c34c1843a57461",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 43,
"avg_line_length": 19.25,
"alnum_prop": 0.7272727272727273,
"repo_name": "ajahongir/captcha",
"id": "6028d9838c387a2ba6a77af571f6b380148338bf",
"size": "154",
"binary"... |
package com.app.aparoksha.apro16;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.CollapsingTo... | {
"content_hash": "115775a564892aa58ea154c29c09a1e2",
"timestamp": "",
"source": "github",
"line_count": 276,
"max_line_length": 121,
"avg_line_length": 36.55434782608695,
"alnum_prop": 0.5823173753593022,
"repo_name": "Aparoksha/App_2016",
"id": "59e96d16cfb1173457043fd81988bc845dfe0c59",
"size": "... |
using System;
using System.Globalization;
using System.Linq;
using System.Reflection;
namespace AlexaTVInfoSkill.Areas.HelpPage.ModelDescriptions
{
internal static class ModelNameHelper
{
// Modify this to provide custom model name mapping.
public static string GetModelName(Type type)
{... | {
"content_hash": "49417483c36b0fba0e62f7b46691a742",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 140,
"avg_line_length": 40.138888888888886,
"alnum_prop": 0.6373702422145329,
"repo_name": "kmcoulson/AlexaTvInfoSkill",
"id": "6d22b7969ba3ddc4229e635cf29844aad1211046",
"... |
var config = require("./config/config");
var mongoose = require("./config/mongoose");
var express = require("./config/express");
var passport = require("./config/passport");
process.env.NODE_ENV = process.env.NODE_ENV || "development";
process.env.JWT_SECRET = config.jwtToken;
var db = mongoose();
var app = express()... | {
"content_hash": "5906474680b6c379f370e3aac1402d59",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 89,
"avg_line_length": 28.764705882352942,
"alnum_prop": 0.7055214723926381,
"repo_name": "sbishop411/PersonalWebsite",
"id": "0f9ec9d65e284bccf76e5950cdc70b84ee01bca3",
"s... |
<?php
/* TwigBundle:Exception:traces_text.html.twig */
class __TwigTemplate_248997e9c28bf086d726379adfab14642a3e1ade750b4d95b05c5eea03b142f7 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = a... | {
"content_hash": "37448bc88493b3d19b3452872bdd59e1",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 416,
"avg_line_length": 43.506493506493506,
"alnum_prop": 0.6011940298507462,
"repo_name": "Mohamedwertani/projetSymfony2",
"id": "a6e31bbedaece5d107810b4634889e49048400c3",
... |
package com.linxcool.wechoice.data.entity;
import java.io.Serializable;
/**
* Created by linxcool on 17/4/8.
*/
public class VideoItem {
private String topicSid;
private String replyid;
private String vid;
private String title;
private String sectiontitle;
private String topicName;
p... | {
"content_hash": "2e2a77de8bd5c6e07fbeb80c2f2f1757",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 42,
"avg_line_length": 19.013513513513512,
"alnum_prop": 0.642501776830135,
"repo_name": "linxcool/wechoice",
"id": "2d9c9a2321e0a0a09b35d862b7560b0965d25b7c",
"size": "140... |
/*******************
* text_ellipsis.h *
*******************/
/****************************************************************************
* Written By Marcio Teixeira 2020 - SynDaver Labs, Inc. *
* *
* This program is ... | {
"content_hash": "af0bb8fda13cd2188775cd4412888d53",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 146,
"avg_line_length": 56.935483870967744,
"alnum_prop": 0.4764872521246459,
"repo_name": "limtbk/3dprinting",
"id": "a2d8aa94439163c8021597f33d694913dcba5a92",
"size": "1... |
import os
import re
import sqlite3
from collections import defaultdict
from enum import Enum
from flask import abort, Flask, g, redirect, render_template, request, session, url_for
from flask.ext.sqlalchemy import SQLAlchemy
from werkzeug.security import generate_password_hash, check_password_hash
import settings as SE... | {
"content_hash": "176263c37a2b518485471ad11f57ef76",
"timestamp": "",
"source": "github",
"line_count": 387,
"max_line_length": 115,
"avg_line_length": 30.03875968992248,
"alnum_prop": 0.6307956989247312,
"repo_name": "maxdeviant/sofa",
"id": "87a128e3cce7268758299b48dcd904849bec9642",
"size": "116... |
@CHARSET "UTF-8";
.outBg {
background: url(images/outBg.gif) repeat scroll 0 0 transparent;
}
.inBg {
background: url(images/inBg.gif) repeat scroll 0 0 transparent;
}
.headTopic {
background: url(images/banner.jpg) repeat scroll 0 0 transparent;
height: 200px;
}
.topbaner {
background: none repeat scroll 0 0 ... | {
"content_hash": "566b63a84883176677a8432065795bdc",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 66,
"avg_line_length": 16.984375,
"alnum_prop": 0.7203311867525299,
"repo_name": "baowp/platform",
"id": "a863a8401625666c1e4989d2d8d5fee8283abbbc",
"size": "1087",
"bina... |
package com.francetelecom.clara.cloud.presentation.utils;
import org.apache.wicket.util.tester.FormTester;
import org.junit.Assert;
/**
* Created by IntelliJ IDEA.
* User: wwnl9733
* Date: 02/02/12
* Time: 11:24
* To change this template use File | Settings | File Templates.
*/
public class DeleteEditObjects {... | {
"content_hash": "56c0b2e900f603a78e0c9403d75fbdec",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 113,
"avg_line_length": 42.47761194029851,
"alnum_prop": 0.7122276879831342,
"repo_name": "Orange-OpenSource/elpaaso-core",
"id": "5046f687dbeebedbdd3df4d1ca1aa430672fadea",
... |
namespace mojo {
template<>
class MOJO_INPUT_EVENTS_EXPORT TypeConverter<EventPtr, ui::Event> {
public:
static EventPtr ConvertFrom(const ui::Event& input);
};
template<>
class MOJO_INPUT_EVENTS_EXPORT TypeConverter<EventPtr, ui::KeyEvent> {
public:
static EventPtr ConvertFrom(const ui::KeyEvent& input);
};
te... | {
"content_hash": "229d6bfa51552c157d5389534dc07630",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 80,
"avg_line_length": 26.5,
"alnum_prop": 0.6933962264150944,
"repo_name": "chromium2014/src",
"id": "00a03ac2e77e0efc77d180b302af8c19d11f0a5e",
"size": "1178",
"binary"... |
ο»Ώusing System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using AllReady.Configuration;
using AllReady.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
namespace AllReady.DataAccess
{
public class Samp... | {
"content_hash": "7d87aab5985dc0ae616e721220547af2",
"timestamp": "",
"source": "github",
"line_count": 611,
"max_line_length": 182,
"avg_line_length": 52.55155482815057,
"alnum_prop": 0.5833878351863964,
"repo_name": "arst/allReady",
"id": "8a0b5765106dbd53328c563fa739fda13cb52e8f",
"size": "32111... |
package org.apache.felix.http.base.internal.dispatch;
import jakarta.servlet.http.HttpServletMapping;
import jakarta.servlet.http.MappingMatch;
/**
* Information about the request
*/
public final class RequestInfo implements HttpServletMapping
{
final String servletPath;
final String pathInfo;
final St... | {
"content_hash": "55f82d312f5ce1a5346c682bbde9367a",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 82,
"avg_line_length": 28.710843373493976,
"alnum_prop": 0.6588334032731851,
"repo_name": "apache/felix-dev",
"id": "9a01930b173cce7e34c085b1a0b0f50821538d63",
"size": "318... |
require 'spec_helper'
module RailsBestPractices::Core
describe Error do
it 'returns error with filename, line number and message' do
expect(
described_class.new(
filename: 'app/models/user.rb', line_number: '100', message: 'not good', type: 'BogusReview'
).to_s
).to eq('app/... | {
"content_hash": "18cd1306c5f9d47b4e5369a6018d0365",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 108,
"avg_line_length": 29.666666666666668,
"alnum_prop": 0.5944841675178754,
"repo_name": "flyerhzm/rails_best_practices",
"id": "ef36fa65f4098c6f23b49a7915bf84e61d5c1482",
... |
<?php
echo "<?php\n";
echo "/**\n";
echo " * @var " . $this->controllerClass . " \$this\n";
echo " * @var " . $this->modelClass . " \$" . lcfirst($this->modelClass) . "\n";
echo " */\n";
echo "\n";
echo "/** @var ActiveForm \$form */\n";
echo "\$form = \$this->beginWidget('ActiveForm', array(\n";
echo " //'action'... | {
"content_hash": "cfb1bb6ff4355511b894febe08518499",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 124,
"avg_line_length": 40.75675675675676,
"alnum_prop": 0.5709549071618037,
"repo_name": "cornernote/gii-tasty-templates",
"id": "f49d179ebaab61fc8dd4b7b6f4bff1016792e2a4",
... |
ο»Ώ// -----------------------------------------------------------------------
// <copyright file="IEasing.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Animation
{... | {
"content_hash": "d58cf57c20651e1e3519427780f1d7ba",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 96,
"avg_line_length": 40.92307692307692,
"alnum_prop": 0.5272556390977443,
"repo_name": "sagamors/Perspex",
"id": "f9dc0f85d5ea66cd39991c3e0ae6f2ecccb00e4c",
"size": "1066... |
<?php
namespace cascade\components\web\widgets\base;
use cascade\components\types\Relationship;
use canis\base\exceptions\Exception;
use canis\helpers\ArrayHelper;
use canis\helpers\Html;
use Yii;
trait ObjectWidgetTrait
{
protected $_dataProvider;
public $pageSize = 5;
protected $_lazyObjectWidget;
... | {
"content_hash": "d86a9412aa4c1fb8419ee190e69648ee",
"timestamp": "",
"source": "github",
"line_count": 429,
"max_line_length": 144,
"avg_line_length": 36.52214452214452,
"alnum_prop": 0.5104671942813378,
"repo_name": "canis-io/cascade-lib",
"id": "91b57c2cd8372ccb316982c4fba295677d24fbf3",
"size":... |
package ottltest // import "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottltest"
func Strp(s string) *string {
return &s
}
func Floatp(f float64) *float64 {
return &f
}
func Intp(i int64) *int64 {
return &i
}
func Boolp(b bool) *bool {
return &b
}
| {
"content_hash": "437b616b1c4d50f9227b5274f724fb54",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 104,
"avg_line_length": 16.470588235294116,
"alnum_prop": 0.7071428571428572,
"repo_name": "open-telemetry/opentelemetry-collector-contrib",
"id": "53155eb1e1abbd9e15c77453a0... |
package org.apache.hadoop.mapred;
import org.apache.hadoop.io.*;
import java.io.*;
import java.util.*;
/**************************************************
* A TaskTrackerStatus is a MapReduce primitive. Keeps
* info on a TaskTracker. The JobTracker maintains a set
* of the most recent TaskTrackerStatus objects... | {
"content_hash": "54a82970fe9e2379bd337b5debf79a86",
"timestamp": "",
"source": "github",
"line_count": 338,
"max_line_length": 80,
"avg_line_length": 27.532544378698226,
"alnum_prop": 0.6303460133247367,
"repo_name": "ryanobjc/hadoop-cloudera",
"id": "3b5efdeeee0a1d9f775c8f960b2b8238aebe44f1",
"si... |
ο»Ώusing System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RockBandAudienceMember : MonoBehaviour
{
#pragma warning disable 0649 //Serialized Fields
[SerializeField]
private AnimationCurve hopCurve;
[SerializeField]
private Vector2 hopHeightRandomBounds, hopDuration... | {
"content_hash": "aed1eaedff87dbab8ef9838ca86d0b38",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 126,
"avg_line_length": 29.00769230769231,
"alnum_prop": 0.5865818085388491,
"repo_name": "plrusek/NitoriWare",
"id": "49cc1a1bf9a56978940f667d42f27b5a26790151",
"size": "... |
class IntVarSL : public IntVar {
vec<int> values; // values that the var can take in ascending order
IntVarEL *el;
// transform value into index, type determines return value when a hole is encountered
// 0: round down, 1: round up, 2: -1
int transform(int v, int type);
public:
IntVarSL(const IntVar& ... | {
"content_hash": "2644339b26c75c2322742159de1b1403",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 101,
"avg_line_length": 34.138888888888886,
"alnum_prop": 0.6468673718470301,
"repo_name": "chuffed/chuffed",
"id": "25f41367cc02622efe788e432aeb6680c74f2226",
"size": "134... |
package define
import (
"net/http"
"github.com/sacloud/libsacloud/v2/internal/define/names"
"github.com/sacloud/libsacloud/v2/internal/define/ops"
"github.com/sacloud/libsacloud/v2/internal/dsl"
"github.com/sacloud/libsacloud/v2/internal/dsl/meta"
"github.com/sacloud/libsacloud/v2/sacloud/naked"
"github.com/sa... | {
"content_hash": "6c91cee90c0a28f425e117075a869a65",
"timestamp": "",
"source": "github",
"line_count": 259,
"max_line_length": 93,
"avg_line_length": 23.961389961389962,
"alnum_prop": 0.6458266194005801,
"repo_name": "sacloud/libsacloud",
"id": "ca8445fbf53d3a964b5fb54040a0eaebd71623b0",
"size": "... |
set -o errexit
set -o pipefail
set -o nounset
root_dir="$(git rev-parse --show-toplevel)"
cd "${root_dir}"
if [ "$#" -ne 1 ] ; then
echo "$0 supports exactly 1 argument - <hubble_version>"
exit 1
fi
hubble_version="${1}"
# this is a simple array that assumes the order of the loop;
# it's not an associative arr... | {
"content_hash": "1e657d64da56f1057af1de22b3868818",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 114,
"avg_line_length": 29.026315789473685,
"alnum_prop": 0.6890299184043518,
"repo_name": "tgraf/cilium",
"id": "2c58c541cb20eb8c4cfbf704a56669592b932b40",
"size": "1195",... |
module Stupidedi
module Versions
module ThirtyTen
module ElementTypes
Nn = Common::ElementTypes::Nn
FixnumVal = Common::ElementTypes::FixnumVal
end
end
end
end
| {
"content_hash": "13e88008f6f089d31cc7f2f9834ae74a",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 51,
"avg_line_length": 20.7,
"alnum_prop": 0.6376811594202898,
"repo_name": "kputnam/stupidedi",
"id": "6ca14167b1c8bc074e65035dd00648b2694e7f2f",
"size": "237",
"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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.wso2.carbon.storagemgt</groupId>
... | {
"content_hash": "329aa6edd9169bf08836d215f2d6814b",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 204,
"avg_line_length": 39.92,
"alnum_prop": 0.6713426853707415,
"repo_name": "wso2/carbon-storage-management",
"id": "eba61d787257488f411072c10f8c5c1dcd69435f",
"size": "9... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_92) on Wed Jul 27 21:19:24 CEST 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class net.sourcefor... | {
"content_hash": "1eced6772c55baf9c08edbc3d8b6cf1d",
"timestamp": "",
"source": "github",
"line_count": 195,
"max_line_length": 432,
"avg_line_length": 51.49230769230769,
"alnum_prop": 0.6426650731998805,
"repo_name": "jasonwee/videoOnCloud",
"id": "68754761a996863757635603ddb8f42e3a0d9060",
"size"... |
<?php
namespace Loct\Pinger\Notifier;
/**
* NotifierInterface is the interface implemented by all notifier classes.
*
* @author herloct <herloct@gmail.com>
*/
interface NotifierInterface
{
/**
* Notify all recipients.
*
* @param array $pingResults Ping results
* @return void
*/
pub... | {
"content_hash": "bad73104ccc7d9e2e7f350e6253ab37d",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 74,
"avg_line_length": 20.166666666666668,
"alnum_prop": 0.6694214876033058,
"repo_name": "herloct/pinger",
"id": "ccb3dfbfc1d3be9f319c9574032eccc1be6c6a53",
"size": "363",... |
(function () {
'use strict';
angular.module('core')
.directive('getAction', getAction);
getAction.$inject = ['$filter'];
function getAction($filter) {
var directive = {
restrict: 'A',
replace: true,
scope: {
getAction: '=getAction'
},
link: link
};
retur... | {
"content_hash": "273c6ae4dba8c096d6de5496d6c914b7",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 48,
"avg_line_length": 20.162790697674417,
"alnum_prop": 0.5190311418685121,
"repo_name": "johnexp/bproject",
"id": "772f0642083a218937164b5ea560efb427240123",
"size": "867... |
/*** ESSENTIAL STYLES ***/
.sf-menu, .sf-menu * {
margin: 0;
padding: 0;
list-style: none;
}
.sf-menu {
line-height: 1.0;
}
.sf-menu ul {
position: absolute;
top: -999em;
width: 10em; /* left offset of submenus need to match (see below) */
}
.sf-menu ul li {
width: 100%;
}
.sf-menu li:hover {
visib... | {
"content_hash": "ab923c4ccecf7f6d0149c25fb5ce2ee5",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 138,
"avg_line_length": 27.15753424657534,
"alnum_prop": 0.6607818411097099,
"repo_name": "oceanmatters/static-site",
"id": "4438a4ee926f65be9d16e84140864c168bf93a67",
"si... |
public class Foo extends Bar {
public Foo() {}
public int foo() {
return field;
}
}
| {
"content_hash": "faddcc72fb7f63f844bf48b2385a16f8",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 30,
"avg_line_length": 14.833333333333334,
"alnum_prop": 0.6292134831460674,
"repo_name": "gregwym/joos-compiler-java",
"id": "3add76ab999833e3638211c78542a52914fdce17",
"si... |
<?php
namespace Eightfold\Html\Elements\Embedded;
use Eightfold\Html\Elements\HtmlElement;
use Eightfold\Html\Elements\HtmlElementInterface;
use Eightfold\Html\Data\Elements;
use Eightfold\Html\Data\AriaRoles;
use Eightfold\Html\Data\Attributes\Content;
/**
* @version 1.0.0
*
* Area
*
* @todo There are a lot ... | {
"content_hash": "3ed486587004340a5cd3f9331e9c3dab",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 80,
"avg_line_length": 23.063492063492063,
"alnum_prop": 0.591878871300757,
"repo_name": "8fold/html5-generator-php",
"id": "dfab958bcb677789824c1abfe9be86fb7f12163a",
"siz... |
package org.eigenbase.rex;
/**
* A <code>RexPattern</code> represents an expression with holes in it. The
* {@link #match} method tests whether a given expression matches the pattern.
*
* @author jhyde
* @version $Id$
* @since May 3, 2002
*/
public interface RexPattern
{
//~ Methods -----------------------... | {
"content_hash": "113e00414c7fa01a7a12bc1cdf5c72d4",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 80,
"avg_line_length": 23,
"alnum_prop": 0.5721739130434783,
"repo_name": "julianhyde/luciddb",
"id": "233444df69eb4a3322f652f6788c3941dc64a6b4",
"size": "1373",
"binary"... |
"""
Utilities for providing backwards compatibility for the maxlength argument,
which has been replaced by max_length. See ticket #2101.
"""
from warnings import warn
def get_maxlength(self):
return self.max_length
def set_maxlength(self, value):
self.max_length = value
def legacy_maxlength(max_length, maxl... | {
"content_hash": "580ab3cea26eae8ec2a9267e2c262e75",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 112,
"avg_line_length": 38.53846153846154,
"alnum_prop": 0.6838323353293413,
"repo_name": "diofeher/django-nfa",
"id": "a616541f854c66a7a8d531f523b7f8a5a034becb",
"size": "... |
(function() {
module.exports = {
k: "__iced_k",
k_noop: "__iced_k_noop",
param: "__iced_p_",
ns: "iced",
runtime: "runtime",
Deferrals: "Deferrals",
deferrals: "__iced_deferrals",
fulfill: "_fulfill",
b_while: "_break",
t_while: "_while",
c_while: "_continue",
n_while: ... | {
"content_hash": "7d282e8ec4af0a5f25dd276dfa61a3ce",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 80,
"avg_line_length": 26.054054054054053,
"alnum_prop": 0.5632780082987552,
"repo_name": "maxtaco/iced-runtime-3",
"id": "8d83e51d7ee0728a87af730475dbb383ea4c73cf",
"size"... |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_m... | {
"content_hash": "10b26f5e3acdca18b588e6d748286b39",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 76,
"avg_line_length": 43,
"alnum_prop": 0.7398255813953488,
"repo_name": "regini/inSquare",
"id": "674040a19e82e06ef1f86014b6a32c08ed4cb541",
"size": "688",
"binary": fa... |
function Memory() {
if (!(this instanceof Memory)) return new Memory();
// Map from collection name -> doc name -> snapshot ({v:, type:, data:})
this.collections = {};
// Map from collection name -> doc name -> list of operations. Operations
// don't store their version - instead their version is simply the... | {
"content_hash": "1323bf993a412a86b4209ce18d495228",
"timestamp": "",
"source": "github",
"line_count": 203,
"max_line_length": 116,
"avg_line_length": 32.05911330049261,
"alnum_prop": 0.6940688383527965,
"repo_name": "jclem/livedb",
"id": "aeb96b1de808b5e4a9e4c66da3adf9de2a6d0e63",
"size": "7528",... |
<div class="commune_descr limited">
<p>
Marchastel est
un village
situé dans le département de Lozère en Languedoc-Roussillon. Elle totalisait 87 habitants en 2008.</p>
<p>Si vous envisagez de demenager Γ Marchastel, vous pourrez facilement trouver une maison Γ vendre. </p>
<p>Γ proximitΓ© de Marchastel ... | {
"content_hash": "3cf2c63387f845b15dec8053d335741e",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 139,
"avg_line_length": 77.05882352941177,
"alnum_prop": 0.7442748091603053,
"repo_name": "donaldinou/frontend",
"id": "c1a1c6f65a8450b1078a64a413a180ade359f9e8",
"size": "... |
@implementation NSString (SZUrlEncode)
- (NSString *)sz_urlEncode {
return [self sz_urlEncodeUsingEncoding:NSUTF8StringEncoding];
}
- (NSString *)sz_urlEncodeUsingEncoding:(NSStringEncoding)encoding {
return (__bridge_transfer NSString *)CFURLCreateStringByAddingPercentEscapes(NULL,
(__bridge ... | {
"content_hash": "a2b2ff52999852461f87db7b2cc67c5a",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 113,
"avg_line_length": 40,
"alnum_prop": 0.7227272727272728,
"repo_name": "chenshengzhi/SZCategories",
"id": "b63dd22fa631d3c27e6cc5739ee2b22e1a81e6ca",
"size": "1502",
... |
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace RCSIssues.ApiData.Areas.HelpPage.ModelDescriptions
{
public class EnumTypeModelDescription : ModelDescription
{
public EnumTypeModelDescription()
{
Values = new Collection<EnumValueDescription>();
... | {
"content_hash": "3febe603c0ba5bdfe810024011ff4995",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 76,
"avg_line_length": 27.4,
"alnum_prop": 0.7104622871046229,
"repo_name": "tazmanrising/RCSIssues.ApiData",
"id": "1bde338e2e7e50300a7b0ac15228da086a22d6c0",
"size": "411... |
package com.jasonette.seed.Helper;
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetManager;
import android.graphics.Color;
import android.graphics.Typeface;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.WindowManager;
import andro... | {
"content_hash": "6256aaab6408b58a1970be3ad08575bd",
"timestamp": "",
"source": "github",
"line_count": 452,
"max_line_length": 189,
"avg_line_length": 39.676991150442475,
"alnum_prop": 0.5541987286717965,
"repo_name": "Jasonette/JASONETTE-Android",
"id": "96c83f427e9efec64fd6d7a079b16e92dd0225ce",
... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("d3-axis"), require("d3-brush"), require("d3-color"), require("d3-drag"), require("d3-dsv"), require("d3-ease"), require("d3-interpolate"), require("d3-scale"), ... | {
"content_hash": "dd9bb6273f9e413efb280348961b92cc",
"timestamp": "",
"source": "github",
"line_count": 17740,
"max_line_length": 840,
"avg_line_length": 37.12271702367531,
"alnum_prop": 0.5984068197589578,
"repo_name": "cdnjs/cdnjs",
"id": "be134b628bb4965f9e34cb56e7b593396439eb3e",
"size": "65933... |
<?php
/**
* @file
* Contains \Drupal\views\Tests\Handler\FieldDropButtonTest.
*/
namespace Drupal\views\Tests\Handler;
/**
* Tests the dropbutton field handler.
*
* @group views
* @see \Drupal\system\Plugin\views\field\Dropbutton
*/
class FieldDropButtonTest extends HandlerTestBase {
/**
* Views used b... | {
"content_hash": "5b6ac3379429c45eb8beb7d7afb2ab12",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 186,
"avg_line_length": 28.434782608695652,
"alnum_prop": 0.6167176350662589,
"repo_name": "edwardchan/d8-drupalvm",
"id": "44880328e832584b0ff4af2c36955838e8644e8d",
"size... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | {
"content_hash": "03a7ca6c705f1bfee5f0a36dac5523de",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 154,
"avg_line_length": 39.208333333333336,
"alnum_prop": 0.646971307120085,
"repo_name": "mike-jumper/incubator-guacamole-website",
"id": "83127c16b888a2d2a6e6508863b62ed3a... |
angular.module('cog').factory('SectionPresenter', ['FieldPresenter', '$q', function(FieldPresenter, $q) {
function SectionPresenter(Site, section) {
this.section = section;
this.label = section.label;
this.fields = section.fields;
if (!section.sections) {
section.sections = [];
}
// ad... | {
"content_hash": "cfe4dd5293574af5449463d97710922b",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 105,
"avg_line_length": 22.195402298850574,
"alnum_prop": 0.597099948213361,
"repo_name": "camwest/cog",
"id": "7cbd7f71b06547aa9bf2d108344337eb5243de98",
"size": "1931",
... |
package com.asakusafw.utils.java.internal.parser.javadoc.ir;
import java.io.Serializable;
/**
* A skeletal implementation of {@link IrDocElement}.
*/
public abstract class AbstractIrDocElement implements IrDocElement, Serializable {
private static final long serialVersionUID = 6223179902104926164L;
priva... | {
"content_hash": "efcdd6c9ed50078a5e1a091184891be7",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 82,
"avg_line_length": 22.541666666666668,
"alnum_prop": 0.7245841035120147,
"repo_name": "ashigeru/asakusafw",
"id": "d050f6a57e712601c13ed8c5db07953cab6f7c91",
"size": "1... |
package org.spontaneous.server.client;
import org.spontaneous.server.client.service.rest.ClientProperties;
import org.spontaneous.server.client.service.rest.RegisterController;
import org.spontaneous.server.client.service.rest.RevokeTokenController;
import org.spontaneous.server.client.service.rest.TrackManagementCont... | {
"content_hash": "bfa4d16e3bada7a8f14e88cbef9e7f8b",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 177,
"avg_line_length": 28.463414634146343,
"alnum_prop": 0.7592116538131962,
"repo_name": "fdondorf/SpontaneousRunningServer",
"id": "c94425effefff9ad54acae506b8598120b02418... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_29) on Mon Nov 26 17:21:57 MSK 2012 -->
<TITLE>
Uses of Class org.apache.poi.poifs.storage.DataInputBlock (POI API Documentation)
</TITLE>
... | {
"content_hash": "8c72a8cc10a1bd1e5592faf7c68413a5",
"timestamp": "",
"source": "github",
"line_count": 228,
"max_line_length": 384,
"avg_line_length": 53.01754385964912,
"alnum_prop": 0.628722700198544,
"repo_name": "brenthand/Panda",
"id": "e94c064a4fe3fa4d02bb8fef8c34666a97c8c3f7",
"size": "1208... |
<?xml version="1.0"?>
<!--
* Copyright 2014 Oleksiy Voronin <ovoronin@gmail.com>
*
* 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... | {
"content_hash": "786967c1d8784445ac2f399155d36e72",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 78,
"avg_line_length": 35.333333333333336,
"alnum_prop": 0.639937106918239,
"repo_name": "uaraven/stubborn",
"id": "b196253fe20aafae69bb2ba7702c39fe4e259c24",
"size": "1272... |
#include "webrtc/modules/rtp_rtcp/source/receive_statistics_impl.h"
#include <math.h>
#include <cstdlib>
#include "webrtc/modules/remote_bitrate_estimator/test/bwe_test_logging.h"
#include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h"
#include "webrtc/modules/rtp_rtcp/source/time_util.h"
#include "webrtc/syst... | {
"content_hash": "e65fd3cb6403cc4b6165a373e60180ca",
"timestamp": "",
"source": "github",
"line_count": 512,
"max_line_length": 80,
"avg_line_length": 34.583984375,
"alnum_prop": 0.672841249223471,
"repo_name": "Alkalyne/webrtctrunk",
"id": "6d64304149d662f746c78563e389a1e03deea921",
"size": "18119... |
/* author:@shivkrthakur */
/* Declare second integer, double, and String variables. */
int input1 = scan.nextInt();
double input2 = scan.nextDouble();
scan.nextLine();
String input3 = scan.nextLine();
/* Read and save an integer, double, and String to your variables.*/
System.out.println(input1 + i);
/* Print the sum ... | {
"content_hash": "963c0a34d54be95851b87408bf1b6761",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 68,
"avg_line_length": 40.13333333333333,
"alnum_prop": 0.7159468438538206,
"repo_name": "shivkrthakur/HackerRankSolutions",
"id": "b5f4b62ef4218bbd05803e07a15d806a44169554",... |
class GenericFile < ActiveRecord::Base
has_paper_trail
mount_uploader :file, GenericFileUploader
validates_presence_of :file
validates_presence_of :name
belongs_to :archeological_site
end
| {
"content_hash": "fff2236c455102951f7992813e455915",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 43,
"avg_line_length": 18.727272727272727,
"alnum_prop": 0.7572815533980582,
"repo_name": "olendorf/grenada_archaeology",
"id": "5c698d42405a1cae7aec8f33f0dadf7a0c4d49c7",
... |
const request = require('request')
const createResource = require('../source/lib/resource').createResource
const simple = require('simple-mock')
const expect = require('chai').expect
describe('Resource', () => {
const resource = createResource({key: 'abc'})
it('should be an array', () => {
expect(Arra... | {
"content_hash": "692414968432e2dc74765d0652dd5140",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 86,
"avg_line_length": 36.950980392156865,
"alnum_prop": 0.5338286017511277,
"repo_name": "christopher-ramirez/youtube-query",
"id": "077823df44530ec2469aa023477a1a3a5daac50... |
<?php
namespace Core\Mail;
/**
* PHPMailer POP-Before-SMTP Authentication Class.
* Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication.
* Does not support APOP.
* @package PHPMailer
* @author Richard Davey (original author) <rich@corephp.co.uk>
* @author Marcus Bointon (Synchro/coolbr... | {
"content_hash": "1ceabe1b7c103b2e50e5efb971fd8837",
"timestamp": "",
"source": "github",
"line_count": 380,
"max_line_length": 121,
"avg_line_length": 27.03684210526316,
"alnum_prop": 0.5096359743040685,
"repo_name": "lucasnpinheiro/Aulas",
"id": "2b6c16caf69343f0b042e45501859e684c9c7a8f",
"size":... |
require File.dirname(__FILE__) + '/../spec_helper'
describe Contact do
before(:each) do
@contact = Contact.new
end
it "should be valid" do
@contact.should be_valid
end
end
| {
"content_hash": "bd02dd7aecdeed0648e55516a35a2029",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 50,
"avg_line_length": 18.272727272727273,
"alnum_prop": 0.6169154228855721,
"repo_name": "gotoAndBliss/True-Jersey",
"id": "4a06511e230471735b8709e3bf03701a31af2ead",
"siz... |
package com.wrapper.spotify.methods.authentication;
import com.wrapper.spotify.Api;
import com.wrapper.spotify.TestUtil;
import com.wrapper.spotify.models.AuthorizationCodeCredentials;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
import static junit.framework.TestCase.fail;
public clas... | {
"content_hash": "d0f17c5ee5a4b915d471a03be65bc28b",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 202,
"avg_line_length": 39.85,
"alnum_prop": 0.7540777917189461,
"repo_name": "PatMulvihill/spotify-web-api-java",
"id": "a343ca955140802c00c29bc9dc508cf4588af570",
"size":... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "2cd295482d74c526bfb9990134aae697",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "8e782e996f920bc00e62df31cedf8bccf71a228e",
"size": "193... |
ο»Ώusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CSharpGL {
public class PrismoidModel : IBufferSource, IObjFormat {
private vec3 modelSize;
public vec3 ModelSize() {
return this.modelSize;
}
public PrismoidModel(float top... | {
"content_hash": "2750ecd69c8d94b97e1effc7a66bd70c",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 122,
"avg_line_length": 32.46666666666667,
"alnum_prop": 0.554757015742642,
"repo_name": "bitzhuwei/CSharpGL",
"id": "bd80d189c5510431d5c91202c28f9a0f0b78602d",
"size": "29... |
/*
* 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
* distribut... | {
"content_hash": "8c9747053705d90dac33b9b548e69ae4",
"timestamp": "",
"source": "github",
"line_count": 229,
"max_line_length": 172,
"avg_line_length": 41.10480349344978,
"alnum_prop": 0.7067884840114735,
"repo_name": "ebyhr/presto",
"id": "c96314b08c4fc854b99055fcea71966c4ef2ea21",
"size": "9413",... |
package com.wavesplatform.api.http.requests
import com.wavesplatform.account.PublicKey
import com.wavesplatform.lang.ValidationError
import com.wavesplatform.lang.script.Script
import com.wavesplatform.transaction.Proofs
import com.wavesplatform.transaction.smart.SetScriptTransaction
import play.api.libs.functional.sy... | {
"content_hash": "727a34a564fabaa595cb290b5920989a",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 110,
"avg_line_length": 37.11904761904762,
"alnum_prop": 0.7177677998717127,
"repo_name": "wavesplatform/Waves",
"id": "a2398350a5d94731a0c8f01efcf02e8241ce8fe5",
"size": "... |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>paramiko.sftp</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script... | {
"content_hash": "2924077c95bf4e98b777a2cd273be8bc",
"timestamp": "",
"source": "github",
"line_count": 898,
"max_line_length": 840,
"avg_line_length": 44.76391982182628,
"alnum_prop": 0.6047067018259615,
"repo_name": "zeha/multiapt",
"id": "3705b9363dfde363c86921684dd37b233c25a492",
"size": "40198... |
describe RuboCop::Cop::Style::ElseAlignment do
subject(:cop) { described_class.new(config) }
let(:config) do
RuboCop::Config.new('Lint/EndAlignment' => end_alignment_config)
end
let(:end_alignment_config) do
{ 'Enabled' => true, 'EnforcedStyleAlignWith' => 'variable' }
end
it 'accepts a ternary if'... | {
"content_hash": "96e3f1c9fb5235adb8119fd3e0a2942c",
"timestamp": "",
"source": "github",
"line_count": 522,
"max_line_length": 77,
"avg_line_length": 34.62068965517241,
"alnum_prop": 0.3703519256308101,
"repo_name": "jonas054/rubocop",
"id": "95ed24800d737a0b9fdb691d45fcde244d0585e1",
"size": "181... |
import cgi
import os
import json
import urllib2
# App
from login import app
from login import login_manager
# Flask
from flask import render_template, flash, redirect, request, url_for
from flask import session, abort
from flask.ext.login import login_user, logout_user, login_required, current_user
# Forms
from for... | {
"content_hash": "bc8eb5c0f8bb8ed1883837c940e3420a",
"timestamp": "",
"source": "github",
"line_count": 225,
"max_line_length": 103,
"avg_line_length": 30.515555555555554,
"alnum_prop": 0.6430235945237401,
"repo_name": "rohitsm/TCSA",
"id": "18478ac5b629c59bd6f7a14cef73c1eae4c72299",
"size": "6886"... |
//
// TNBLogger.h
// TNBLogger
//
// Created by tanB on 2/24/14.
// Copyright (c) 2014 tanb. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <asl.h>
@interface TNBLogger : NSObject
/* outputFileLogFormat. Default is @"$(Time) $(Sender) [$(PID)] <$((Level)(str))>: $Message".
See also asl(3) http... | {
"content_hash": "dc0ec3bd7bd5b39d3c3fec76530421d6",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 112,
"avg_line_length": 28.21951219512195,
"alnum_prop": 0.6741573033707865,
"repo_name": "tanb/TNBLogger",
"id": "7e4792e058c9dfde987bf80381b304dde0713f08",
"size": "1157"... |
class RshopBaseImageUploader < CarrierWave::Uploader::Base
# Include RMagick or MiniMagick support:
include CarrierWave::RMagick
# include CarrierWave::MiniMagick
# Choose what kind of storage to use for this uploader:
storage :file
# storage :fog
# Override the directory where uploaded files will be s... | {
"content_hash": "4a6daaf92727e69c3a405eb37ee67e66",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 124,
"avg_line_length": 27.049180327868854,
"alnum_prop": 0.6981818181818182,
"repo_name": "r1dd1ck777/rshop",
"id": "c70416fb7f63134561d3adc2fb939f4377f8ad00",
"size": "16... |
using namespace std::chrono_literals;
using testing::_;
using testing::An;
using testing::InSequence;
using testing::Invoke;
using testing::NiceMock;
using testing::Return;
using testing::ReturnRef;
namespace Envoy {
namespace Extensions {
namespace AccessLoggers {
namespace HttpGrpc {
namespace {
using envoy::data::... | {
"content_hash": "e8a19b1e21041408fe761155b7dabf85",
"timestamp": "",
"source": "github",
"line_count": 1057,
"max_line_length": 100,
"avg_line_length": 33.99243140964995,
"alnum_prop": 0.6758975786251044,
"repo_name": "envoyproxy/envoy",
"id": "6d8b21863f77585c0c15343183969ff9bb65830c",
"size": "3... |
Contributing
============
Want to contribute back to Sentry? This page describes the general development flow,
our philosophy, the test suite, and issue tracking.
(Though it actually doesn't describe all of that, yet)
Setting up an Environment
-------------------------
Sentry is designed to run off of setuptools wi... | {
"content_hash": "06c0058b2baa45220aa8e51ec35621b1",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 172,
"avg_line_length": 29.544117647058822,
"alnum_prop": 0.7356893977103036,
"repo_name": "Kronuz/django-sentry",
"id": "efd6733eb8a259a6feb7096b908d468118b406e0",
"size":... |
import { describe, test, expect } from '@jest/globals';
import initAuthCookies from './authCookies.js';
import type { AuthCookiesConfig } from './authCookies.js';
describe('authCookies', () => {
describe('.build()', () => {
test('should work with new auth data', async () => {
const ENV = {};
const CO... | {
"content_hash": "9f01a9670aa831c76d2e048736e1cc24",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 211,
"avg_line_length": 29.19148936170213,
"alnum_prop": 0.5714285714285714,
"repo_name": "nfroidure/whook",
"id": "182d6b2b9426fec7f72847d1febd7a2e68163cfc",
"size": "2744... |
ARG0="$0"
while [ -h "$ARG0" ]; do
ls=`ls -ld "$ARG0"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
ARG0="$link"
else
ARG0="`dirname $ARG0`/$link"
fi
done
DIRNAME="`dirname $ARG0`"
PROGRAM="`basename $ARG0`"
while [ ".$1" != . ]
do
case "$1" in
--java-home )
... | {
"content_hash": "5880e2915ca9edab995d6873ff2804c2",
"timestamp": "",
"source": "github",
"line_count": 251,
"max_line_length": 115,
"avg_line_length": 29.800796812749002,
"alnum_prop": 0.5810160427807487,
"repo_name": "gitee2008/glaf",
"id": "920ade1ce67e42c0d99ac8046319b09fc318fd18",
"size": "850... |
<?php
namespace English\GradnotesBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* English\GradnotesBundle\Entity\Gradnotes
*
* @ORM\Table(name="gradnotes")
* @ORM\Entity(repositoryClass="English\GradnotesBundle\Entity\GradnotesRepository")
*/
class Gradnotes
{
/**... | {
"content_hash": "77b2906a0bd05a257570474955f66412",
"timestamp": "",
"source": "github",
"line_count": 167,
"max_line_length": 84,
"avg_line_length": 16.29940119760479,
"alnum_prop": 0.4955914768552535,
"repo_name": "rlbaltha/engDept",
"id": "4beaf1e54740ac9d82b87e2951111e8640b75378",
"size": "272... |
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from rdkit.Chem import Descriptors
from rdkit import Chem
from rdkit.Chem import rdMolDescriptors
def slicedict(d, ixs):
newd = {}
for key in d:
newd[key] = d[key][ixs]
return newd
def randomize_order(data):
N = len(data.v... | {
"content_hash": "eee8988bbdc712b057699017f5c5ea10",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 91,
"avg_line_length": 36.642201834862384,
"alnum_prop": 0.628442663995994,
"repo_name": "HIPS/neural-fingerprint",
"id": "53097a71f08e8275572a5b87993366fd5c2408d9",
"size... |
package apollo.gui;
import junit.framework.TestCase;
import java.io.File;
import java.util.Set;
public class GenericFileFilterTest extends TestCase {
//instance variables
GenericFileFilter filter;
protected void setUp() throws Exception {
super.setUp();
filter = new GenericFileFilter("Test filter");
}
... | {
"content_hash": "5373422a47be32d7cd0caaeeadf28a6e",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 75,
"avg_line_length": 23.11111111111111,
"alnum_prop": 0.7192307692307692,
"repo_name": "genome-vendor/apollo",
"id": "d50ac3fa08c3a4b0ee64d590e69d225780ec6455",
"size": "... |
ο»Ώ// Copyright (C) 2017 History in Paderborn App - UniversitΓ€t Paderborn
//
// 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
//
// U... | {
"content_hash": "313de9481e43e9484731d524b42f2f52",
"timestamp": "",
"source": "github",
"line_count": 407,
"max_line_length": 166,
"avg_line_length": 41.646191646191646,
"alnum_prop": 0.6276696165191741,
"repo_name": "HiP-App/HiP-Forms",
"id": "8c25346653896daa4bc8739321d493cbb8105eed",
"size": "... |
require 'spec_helper'
module RSpec
module Mocks
describe "failing MockArgumentMatchers" do
before(:each) do
@double = double("double")
@reporter = double("reporter").as_null_object
end
after(:each) do
reset @double
end
it "rejects non boolean" do
@d... | {
"content_hash": "f3d49633e8d8840a2da40f679da51d99",
"timestamp": "",
"source": "github",
"line_count": 94,
"max_line_length": 271,
"avg_line_length": 41.829787234042556,
"alnum_prop": 0.5887589013224822,
"repo_name": "samphippen/rspec-mocks",
"id": "7e1351ade45fa39ab030faf3834af230779e31bb",
"size... |
/*!
* V4Fire Client Core
* https://github.com/V4Fire/Client
*
* Released under the MIT license
* https://github.com/V4Fire/Client/blob/master/LICENSE
*/
import type { RenderObject } from 'core/component';
export const
tplCache = Object.createDict<RenderObject>();
| {
"content_hash": "71e95719e4738f4980314d4ec65bbef5",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 55,
"avg_line_length": 22.75,
"alnum_prop": 0.7216117216117216,
"repo_name": "V4Fire/Client",
"id": "c1f853f07d6d568cfd4fa08b07f6ad87a490abb8",
"size": "273",
"binary": f... |
<<<<<<< HEAD
# Doctrine Data Fixtures Extension
This extension aims to provide a simple way to manage and execute the loading of data fixtures
for the Doctrine ORM or ODM. You can write fixture classes by implementing the
Doctrine\Common\DataFixtures\FixtureInterface interface:
namespace MyDataFixtures;
use ... | {
"content_hash": "d781680efcbf7fa28d09e428daff064b",
"timestamp": "",
"source": "github",
"line_count": 181,
"max_line_length": 101,
"avg_line_length": 28.734806629834253,
"alnum_prop": 0.6787156316093059,
"repo_name": "Weslleynds/agendaSuporte",
"id": "b60ad8bd7108f1c03c67214c00e4f1fe62d613df",
"s... |
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, S, R = lpeg.P, lpeg.S, lpeg.R
local M = {_NAME = 'moonscript'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
local longstring = lpeg.Cmt('[' * lpeg.C(P('=')^0) * '[',
function(input, index, eq)
... | {
"content_hash": "bee7346824419d0acb53e6d2889c8a36",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 80,
"avg_line_length": 32.416666666666664,
"alnum_prop": 0.6026441424899008,
"repo_name": "LuaExtend/LuaExtend",
"id": "8cbe765995a99511e6f8498f6155025fe31d045b",
"size": ... |
$:.unshift "lib"
require 'securerandom'
require 'em-synchrony'
require 'em-synchrony/fiber_iterator'
require 'redis-em-mutex'
class Test
include Redis::EM::Mutex::Macro
auto_mutex :method5
def method1; end
auto_mutex
def method2; end
no_auto_mutex
def method3; end
def method4; end
def method5; end
... | {
"content_hash": "8cce97ebd1196efe13bde3700e4e05f0",
"timestamp": "",
"source": "github",
"line_count": 232,
"max_line_length": 97,
"avg_line_length": 27.40948275862069,
"alnum_prop": 0.6236829690202862,
"repo_name": "royaltm/redis-em-mutex",
"id": "a6dab1ac27070117e21b78d2dbe869c27ee2745d",
"size"... |
package cn.xm.xmvideoplayer.widget.swipebacklayout;
/**
* @author Yrom
*/
public interface SwipeBackActivityBase {
/**
* @return the SwipeBackLayout associated with this activity.
*/
public abstract SwipeBackLayout getSwipeBackLayout();
public abstract void setSwipeBackEnable(boolean enable);
... | {
"content_hash": "32a1d1106c517aa0f406c582cda071f8",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 65,
"avg_line_length": 23.42105263157895,
"alnum_prop": 0.7123595505617978,
"repo_name": "ximencx/XMVideo",
"id": "2a93977da8a5ef4121fddcd0311fe0a30bb824e5",
"size": "445",... |
MStatus WLoadSceneCmd::doIt(const MArgList&)
{
#ifdef _DEBUG
Log("LoadScene command called");
#endif
Wolf::Commands = Wolf::WCommnads::LoadScene;
return MS::kSuccess;
}
void* WLoadSceneCmd::Command()
{
return new WLoadSceneCmd();
} | {
"content_hash": "735d53de066d29f6f9d2d35ff6e6bae6",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 45,
"avg_line_length": 16,
"alnum_prop": 0.7208333333333333,
"repo_name": "PooyaEimandar/WolfEngine",
"id": "bd9e73b355407a510772fe339a4b4c3f7e7df5f0",
"size": "285",
"bi... |
require 'spec_helper'
package_name = 'telegraf'
conf_dir = '/etc/telegraf'
describe package(package_name) do
it { should be_installed }
end
%w(/etc/telegraf /etc/telegraf/telegraf.d).each do |d|
describe file(d) do
it { should be_directory }
end
end
%w(telegraf.conf telegraf.d/default_outputs.conf).each d... | {
"content_hash": "e097ca20c9aacb9c68f7333ade3c3ca9",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 62,
"avg_line_length": 26.15909090909091,
"alnum_prop": 0.6568201563857515,
"repo_name": "Plork/telegraf-cookbook",
"id": "ca96cb361bf779c6f824b59ca5666f846c534cf7",
"size"... |
import { localize } from 'vs/nls';
import { Event, Emitter } from 'vs/base/common/event';
import { basename } from 'vs/base/common/paths';
import { IDisposable, dispose, IReference } from 'vs/base/common/lifecycle';
import * as strings from 'vs/base/common/strings';
import { URI } from 'vs/base/common/uri';
import { ... | {
"content_hash": "1994e63e257cc4155b418cb676fae910",
"timestamp": "",
"source": "github",
"line_count": 285,
"max_line_length": 131,
"avg_line_length": 27.46315789473684,
"alnum_prop": 0.6818704484476811,
"repo_name": "cleidigh/vscode",
"id": "da7677a01d54e9ff7cd68bd295a85ef6b6e802b6",
"size": "817... |
<?xml version="1.0" encoding="UTF-8"?>
<!-- BSD 2-Clause License Copyright (c) 2016-2017, Jochen Seeber All rights reserved. Redistribution and use in source and
binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions
of source code must retain... | {
"content_hash": "ee0dc620bd085fbbc3e251ca8f78ad8a",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 135,
"avg_line_length": 68.09302325581395,
"alnum_prop": 0.6977459016393442,
"repo_name": "jochenseeber/gradle-project-config",
"id": "349cf6ea05bd6b4d8983a64f929fc971911eef4... |
package com.streamsets.pipeline.stage.destination.kafka;
import com.streamsets.pipeline.api.ConfigDef;
import com.streamsets.pipeline.api.ConfigGroups;
import com.streamsets.pipeline.api.FieldSelectorModel;
import com.streamsets.pipeline.api.GenerateResourceBundle;
import com.streamsets.pipeline.api.StageDef;
import ... | {
"content_hash": "fc7cd59f8a6ca5ae4406a796980432c7",
"timestamp": "",
"source": "github",
"line_count": 324,
"max_line_length": 212,
"avg_line_length": 29.771604938271604,
"alnum_prop": 0.6743727970143064,
"repo_name": "kiritbasu/datacollector",
"id": "dc14b19e19f07952c97526144faa53c951875529",
"si... |
<?php
if ('Γ‘' != "\xc3\xa1") {
// the language files must be saved as UTF-8 (without BOM)
throw new \Exception('The language file ' . __FILE__ . ' is damaged, it must be saved UTF-8 encoded!');
}
return array(
'%type% Import'
=> '%type% Import',
'- delete field -'
=> '- Feld lΓΆschen -',
'- new... | {
"content_hash": "f82450b9f1a16e489d9e2fff2658ae6f",
"timestamp": "",
"source": "github",
"line_count": 701,
"max_line_length": 420,
"avg_line_length": 49.019971469329526,
"alnum_prop": 0.7009574251375026,
"repo_name": "phpManufakturHeirs/kfEvent",
"id": "9058d8c2559f3faba58ce2df8ca9f8d1b526d909",
... |
package service.handler;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.Socket;
import java.security.SignatureException;
import java.security.interfaces.RSAPublicKey;
import java.util.Arrays;
import java.... | {
"content_hash": "2c3c044a0f0717cfd36ee4d9b887a77b",
"timestamp": "",
"source": "github",
"line_count": 103,
"max_line_length": 100,
"avg_line_length": 34.58252427184466,
"alnum_prop": 0.6726558113419427,
"repo_name": "CloudComLab/Online-Bidding-System",
"id": "c83078b0c8f05f58a872625ad6dbb6765bab63f... |
/* global chrome */
/* eslint no-undef: "error" */
/* eslint func-names: ["error", "always"] */
/* eslint operator-linebreak: ["error", "before"] */
let enabled
function onBrowserStart() {
chrome.storage.sync.get({ enabled: true }, (items) => {
enabled = items.enabled
})
checkIcon()
}
onBrowserStart()
chr... | {
"content_hash": "4507ce89c6e17e35c91038bec95d3bf2",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 95,
"avg_line_length": 23.59375,
"alnum_prop": 0.6675496688741722,
"repo_name": "Fenwil/MercadoLibre-MasVendidos",
"id": "b6bdd9465acf69e8d1d21539610f3c6a4649355f",
"size":... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "ff783ce9a50b06f08ee1747b4eb5492f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "360cbd4da9570bc3a2c82ef1628acb3065b4bf80",
"size": "168... |
package it.geosolutions.jaiext.warp;
import it.geosolutions.jaiext.range.Range;
import java.awt.image.ColorModel;
import java.awt.image.DataBuffer;
import java.awt.image.IndexColorModel;
import java.awt.image.RenderedImage;
import java.awt.image.SampleModel;
import java.util.Map;
import javax.media.jai.BorderExtende... | {
"content_hash": "cac5e61e575d609210b63cc794bbd913",
"timestamp": "",
"source": "github",
"line_count": 3485,
"max_line_length": 150,
"avg_line_length": 46.551219512195125,
"alnum_prop": 0.3739359308640149,
"repo_name": "simboss/jai-ext",
"id": "f60ee8cb4e2028f01d168498dd894783eebb1f5f",
"size": "1... |
package org.pico.hashids
package object syntax {
implicit class HashidsLongOps(x: Long) {
def hashid(implicit hashids: Hashids): String = hashids.encode(x)
}
implicit class HashidsSeqLongOps(val self: Seq[Long]) {
def hashid(implicit hashids: Hashids): String = hashids.encode(self: _*)
}
implicit c... | {
"content_hash": "55762a27f77a7ce517a59fd391a7f107",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 82,
"avg_line_length": 32.26086956521739,
"alnum_prop": 0.7210242587601078,
"repo_name": "pico-works/pico-hashids",
"id": "0f31414a2333288ed3fdd964017a34de345babb8",
"size"... |
<?php
namespace Llama\Modules\Commands;
use Illuminate\Console\Command;
use Llama\Modules\Exceptions\FileAlreadyExistException;
use Llama\Modules\Generators\FileGenerator;
abstract class BaseCommand extends Command
{
/**
* The name of 'name' argument.
*
* @var string
*/
protected $argumen... | {
"content_hash": "35c356595bd28175c5108d4c820d642b",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 90,
"avg_line_length": 24.09090909090909,
"alnum_prop": 0.5438679245283019,
"repo_name": "xuanhoa88/laravel-modules",
"id": "adc7a2836fe017505f480f9abf5efa5ce4f3d50d",
"siz... |
#ifndef itkDemonsImageToImageMetricv4_h
#define itkDemonsImageToImageMetricv4_h
#include "itkImageToImageMetricv4.h"
#include "itkDemonsImageToImageMetricv4GetValueAndDerivativeThreader.h"
namespace itk
{
/** \class DemonsImageToImageMetricv4
*
* \brief Class implementing demons metric.
*
* The implementatio... | {
"content_hash": "624948c44dd48c538b5692f7056c27af",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 119,
"avg_line_length": 41.39310344827586,
"alnum_prop": 0.7910696434521826,
"repo_name": "LucasGandel/ITK",
"id": "815a1dfdb8e12953baadc2db30c1b894e444fe7c",
"size": "675... |
const settingsMock = {
views: {
appheaderbar: {
logo: {
name: 'Talend',
onClick: 'menu:home',
},
brand: {
label: 'Data Preparation',
onClick: 'menu:home',
},
search: {
onToggle: 'search:toggle',
onBlur: 'search:toggle',
onChange: 'search:all',
onSelect: {
prepara... | {
"content_hash": "063e88d94007dac0465589bfec6ecea4",
"timestamp": "",
"source": "github",
"line_count": 617,
"max_line_length": 180,
"avg_line_length": 22.12155591572123,
"alnum_prop": 0.5762326910396366,
"repo_name": "Talend/data-prep",
"id": "15a0f884d31f0958f15fa7fa5b14668390826446",
"size": "14... |
using StructureMap.Interceptors;
using StructureMap.Pipeline;
namespace TryCatchFail.LearnStructureMap.Lesson1.Utils
{
public class DecoratorHelper<TTarget>
{
private readonly SmartInstance<TTarget> _instance;
public DecoratorHelper(SmartInstance<TTarget> instance)
{
_instance = instance;
}
... | {
"content_hash": "1bcd8a9951e31782381bc4ab168265df",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 105,
"avg_line_length": 30.870967741935484,
"alnum_prop": 0.5381400208986415,
"repo_name": "MattHoneycutt/Presentations",
"id": "cde3b30f17c2ee8dbe2ebe0a1939e236a105667a",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.