text stringlengths 2 1.04M | meta dict |
|---|---|
module Mongoid
module FieldInheritance
##
# Module which contains relation macro methods.
#
# @since 0.1.0
module Relations
extend ActiveSupport::Concern
included do
class << self
alias_method_chain :belongs_to, :inheritance
end
end
module ClassM... | {
"content_hash": "abf80ecc53dde358fa067c920265b24d",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 80,
"avg_line_length": 28.477272727272727,
"alnum_prop": 0.5722266560255387,
"repo_name": "tlux/mongoid-field_inheritance",
"id": "d4aaeae02ab4bd873ed83f3586e43ea00a81848f",
... |
const expect = require('chai').expect
const Emitter = require('events').EventEmitter
const middleware = require('../../lib/middleware')
const noop = function () {}
suite('middleware#responseBody', function () {
var req, res
beforeEach(function () {
res = {
write: noop,
end: noop,
getHeader:... | {
"content_hash": "011eb1d8f2be107e4779b5603cc85548",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 65,
"avg_line_length": 20.64516129032258,
"alnum_prop": 0.58515625,
"repo_name": "carsonmcdonald/rocky",
"id": "410a050d2fafa4df301790b97d7b94069b035b60",
"size": "1280",
... |
clear all; close all; clc;
% this script does the cross validation i.e fix the hyper parameters of the
% model
% in our case the hyper parameters are
% i- the regularization term
% ii- the number of features that we need to extract
splitData_strong_weak_new; % load the data and make split it into
% Ytrain_new th... | {
"content_hash": "d7f2bb3e0e41748221e20c4c3874747e",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 84,
"avg_line_length": 37.21739130434783,
"alnum_prop": 0.6542056074766355,
"repo_name": "lwiss/MusicRecommender",
"id": "9c1612a5aa1bf5640ce695bee2e96528e4164240",
"size":... |
package com.pivotal.gemfirexd.internal.iapi.store.raw;
import com.pivotal.gemfirexd.internal.iapi.error.StandardException;
import com.pivotal.gemfirexd.internal.iapi.store.raw.log.LogInstant;
import java.io.InputStream;
public interface ScannedTransactionHandle
{
Loggable getNextRecord()
throws StandardExcepti... | {
"content_hash": "fa4583905b680aed471f114e47cd315f",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 68,
"avg_line_length": 21.285714285714285,
"alnum_prop": 0.7869127516778524,
"repo_name": "gemxd/gemfirexd-oss",
"id": "0f4410e0f97c31cbb6dabbf7debf2d8c24f4569c",
"size": "... |
namespace hyrise {
namespace hana = boost::hana;
enum class SegmentIndexType : uint8_t { Invalid, GroupKey, CompositeGroupKey, AdaptiveRadixTree, BTree };
class GroupKeyIndex;
class CompositeGroupKeyIndex;
class AdaptiveRadixTreeIndex;
class BTreeIndex;
namespace detail {
constexpr auto segment_index_map =
han... | {
"content_hash": "96a4dc6a3eb78b1339b6f00c14df30aa",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 110,
"avg_line_length": 33.22222222222222,
"alnum_prop": 0.7302118171683389,
"repo_name": "hyrise/hyrise",
"id": "303ac9e98cbfd2e3a90c8587d07c066ebed28ca4",
"size": "998",
... |
"""Settings used to establish valid credentials."""
# The service_account_name is the Email address created for the Service
# account from the API Console.
SERVICE_ACCOUNT_NAME = ('000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
'@developer.gserviceaccount.com')
SERVICE_SCOPES = [
# For dir... | {
"content_hash": "da87fcc7f931c1c138517fd5b337146e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 71,
"avg_line_length": 35.38461538461539,
"alnum_prop": 0.691304347826087,
"repo_name": "yubbie/googleapps-message-recall",
"id": "55677c89a586c418e919c312146fe368b01ebb7a",
... |
include ../../p_rules.mak
include $(DIR_ROOT_BUILDUTIL)/libs.mak
| {
"content_hash": "b420e51355d9fe8908a41f8cf7c1b03c",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 38,
"avg_line_length": 32.5,
"alnum_prop": 0.7076923076923077,
"repo_name": "mike10004/nbis",
"id": "622b20c0ed3008341201b6e759109c634a94b6d2",
"size": "3009",
"binary": f... |
<!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_112) on Mon May 01 08:43:54 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.wildfly.swarm.mod_clust... | {
"content_hash": "5764c599b75b27e3fb5b43206a6d1251",
"timestamp": "",
"source": "github",
"line_count": 157,
"max_line_length": 700,
"avg_line_length": 45.0828025477707,
"alnum_prop": 0.6537157389092965,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "ce86907831774b03091bff52c161c2aaee8a6... |
<?xml version="1.0" encoding="UTF-8"?>
<InitiateMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Bucket>example-bucket</Bucket>
<Key>example-object</Key>
<UploadId>EXAMPLEJZ6e0YupT2h66iePQCc9IEbYbDUy4RTpMeoSMLPRp8Z5o1u8feSRonpvnWsKKG35tI2LB9VDPiCgTy.Gq2VxQLYjrue4Nq.NBdqI-</UploadId>
</In... | {
"content_hash": "29e370f33f5b0299654552880d00120e",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 132,
"avg_line_length": 58.166666666666664,
"alnum_prop": 0.8051575931232091,
"repo_name": "CenterForOpenScience/waterbutler",
"id": "70938a78832195faee865f85fa4e6f09b274d368"... |
using System;
using Microsoft.VisualStudio.Language.Intellisense;
namespace GitHub.InlineReviews.Peek
{
class InlineCommentPeekRelationship : IPeekRelationship
{
static InlineCommentPeekRelationship instance;
private InlineCommentPeekRelationship()
{
}
public static I... | {
"content_hash": "c04cfb02b6f662550cf4222a874deeac",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 67,
"avg_line_length": 23.866666666666667,
"alnum_prop": 0.5726256983240223,
"repo_name": "github/VisualStudio",
"id": "826b0002aa5e886afc65393a3392979dfe0c8d36",
"size": "... |
<?php
/**
* Manage currency import services block
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\CurrencySymbol\Block\Adminhtml\System\Currency\Rate;
class Services extends \Magento\Backend\Block\Template
{
/**
* @var string
*/
protected $_template = 'system/c... | {
"content_hash": "d73f3d586d2f197ee0774e268b3adeae",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 96,
"avg_line_length": 28.50769230769231,
"alnum_prop": 0.5887749595250944,
"repo_name": "j-froehlich/magento2_wk",
"id": "9e2a71239adfe3e465ba4a70151feb36b539db64",
"size"... |
import {
createAction,
handleActions
} from 'redux-actions'
import request from 'superagent'
// ------------------------------------
// Constants
// ------------------------------------
export const REQUEST_POSTCARDS_DATA = 'REQUEST_POSTCARDS_DATA'
export const TOGGLE_BUTTOM_PLAYER = 'TOGGLE_BUTTOM_PLAYER'
// been... | {
"content_hash": "65a062cceeb37d55fc74a5862b81c176",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 85,
"avg_line_length": 28.6,
"alnum_prop": 0.6237224314147392,
"repo_name": "Donnzh/intercomBlog",
"id": "b22a5312e5e85624243c20544d7be972dcba2786",
"size": "3718",
"bin... |
div.dataTables_wrapper {
margin-bottom: 1.25em;
}
div.dataTables_length label,
div.dataTables_filter label,
div.dataTables_info {
color: #999;
font-weight: normal;
}
div.dataTables_length label {
float: left;
text-align: left;
margin-bottom: 0;
}
div.dataTables_length select {
width: 75px;
margin-bottom: 0... | {
"content_hash": "504c5aab4c8a06e3b3c5fc6adb854b5a",
"timestamp": "",
"source": "github",
"line_count": 218,
"max_line_length": 129,
"avg_line_length": 21.541284403669724,
"alnum_prop": 0.6978279386712095,
"repo_name": "usv-public/nubomedia-paas",
"id": "dead364d1d716593e6c0ab124e9a09fe44fbb341",
"... |
package com.facebook.buck.apple;
import com.facebook.buck.io.filesystem.ProjectFilesystem;
import com.facebook.buck.shell.ShellStep;
import com.facebook.buck.step.ExecutionContext;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import java.nio.file.Path;
import java.ut... | {
"content_hash": "ce28c0fb3789e09404dac17d2fd70d5d",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 100,
"avg_line_length": 31.40625,
"alnum_prop": 0.7477611940298508,
"repo_name": "shybovycha/buck",
"id": "86a3660711be708da791c46f5e43e1685b8b967e",
"size": "2615",
"bin... |
package org.debezium.function;
@FunctionalInterface
public interface Callable {
void call();
} | {
"content_hash": "6af6eba76c0a45101967d5036cd658bf",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 30,
"avg_line_length": 14.285714285714286,
"alnum_prop": 0.76,
"repo_name": "rhauch/debezium-proto",
"id": "2d10fd5eabad49559f4f858a63dfb54314c82325",
"size": "279",
"bina... |
#include <compiler.h>
#include <stdint.h>
/*
* Make a nice 8 byte aligned stack to run on before the threading system is up.
* Put it in the .bss.prebss.* section to make sure it doesn't get wiped
* when bss is cleared a little ways into boot.
*/
static uint8_t initial_stack[1024] __SECTION(".bss.prebss.initial_s... | {
"content_hash": "6d9640d26b844b26ceec13dbdc1c0a7c",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 87,
"avg_line_length": 23.245283018867923,
"alnum_prop": 0.6915584415584416,
"repo_name": "nvll/lk",
"id": "8c90cbe577cf41895e8df0c5b5c39b05ac98c68b",
"size": "2358",
"bi... |
// ----------------------------------------------------------------------------
// Copyright 2007-2011, GeoTelematic Solutions, Inc.
// All rights reserved
// ----------------------------------------------------------------------------
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not... | {
"content_hash": "ac264f75818305e4a71f193e07cdc225",
"timestamp": "",
"source": "github",
"line_count": 2722,
"max_line_length": 131,
"avg_line_length": 35.203894195444526,
"alnum_prop": 0.5111400991390556,
"repo_name": "CASPED/OpenGTS",
"id": "6500b2d48b991415fa157c6e63c1ff09e8645b64",
"size": "95... |
//===- ARMInstPrinter.h - Convert ARM MCInst to assembly syntax -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | {
"content_hash": "9d7b086374619b32bff2bb19a147e907",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 80,
"avg_line_length": 29.976744186046513,
"alnum_prop": 0.6089992242048099,
"repo_name": "emoon/ProDBG",
"id": "4332d1a913c906e7fae05d2ab741d5fb75469724",
"size": "1289",
... |
declare module 'vscode' {
// https://github.com/microsoft/vscode/issues/157734
export namespace workspace {
/**
*
* @param scheme The URI scheme that this provider can provide edit session identities for.
* @param provider A provider which can convert URIs for workspace folders of scheme @param scheme ... | {
"content_hash": "57df924d55421d900e962367098fc417",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 140,
"avg_line_length": 38.1219512195122,
"alnum_prop": 0.7613563659628919,
"repo_name": "microsoft/vscode",
"id": "048da2830ba4b61f728705c485159d84b6eb151b",
"size": "1914... |
/*************navigation****************/
#navigation {
background-color: FOURTH;/*barra di navigazione*/
display: block;
position: relative;
left: 45em;
bottom: 5em;
width: 24em;
border-left: 1em #0A1612 solid;
}
/*************cookie***********/
#cookie { text-align: left; display: block; text-indent: 1... | {
"content_hash": "5c0c93fb100343a604fc4ebf44e684ee",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 62,
"avg_line_length": 24.17142857142857,
"alnum_prop": 0.6016548463356974,
"repo_name": "alepuzio/buildCSS",
"id": "2f0793a4e42021f209e3e13f71ec243e7addd82c",
"size": "846... |
// This file is distributed under the MIT license.
// See the LICENSE file for details.
#pragma once
#ifndef VSNRAY_GET_SURFACE_H
#define VSNRAY_GET_SURFACE_H 1
#include <iterator>
#include <type_traits>
#include <utility>
#include "texture/texture.h"
#include "array.h"
#include "bvh.h"
#include "generic_primitive.... | {
"content_hash": "b73c14bd11bf2dfef0636dc3fb027ffd",
"timestamp": "",
"source": "github",
"line_count": 646,
"max_line_length": 108,
"avg_line_length": 28.924148606811144,
"alnum_prop": 0.5316028900187316,
"repo_name": "ukoeln-vis/ctpperf",
"id": "139c6408826fc9374c4ff2cb49faa19e2da50d29",
"size": ... |
import classnames from "classnames";
import {MithrilComponent} from "jsx/mithril-component";
import _ from "lodash";
import m from "mithril";
import Stream from "mithril/stream";
import {NameableSet} from "models/pipeline_configs/nameable_set";
import {PipelineConfig} from "models/pipeline_configs/pipeline_config";
i... | {
"content_hash": "56b3f4f6778d78e7b7173c9d56c59f28",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 119,
"avg_line_length": 38.396694214876035,
"alnum_prop": 0.6739130434782609,
"repo_name": "marques-work/gocd",
"id": "bed38703635db899ff03bd2c092664b631f78e4d",
"size": "... |
@interface MainAppGeneralViewController : NSViewController {
// The array holding all views with their positions in scrollview
NSMutableArray *viewControllers;
NSMutableArray *windowControllers;
BOOL initDone;
NSMutableArray *undockButtons;
}
// The scrollview and it's inside view
@property NSFlippedView *do... | {
"content_hash": "0289880bb1a7a56878133fe0d43db589",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 67,
"avg_line_length": 30,
"alnum_prop": 0.8,
"repo_name": "voelkerb/iHouse",
"id": "72692f6cdd0892f553eeacaccf6b980c7ea091ad",
"size": "822",
"binary": false,
"copies"... |
namespace loader {
SceneLoader::SceneLoader()
{
}
SceneLoader::~SceneLoader()
{
}
enum NodeType {
NONE = 0,
NODE = 1,
ENTITY = 2,
LIGHT = 3,
CAMERA = 4,
TERRIAN = 5,
};
lly::Node * parse_normal(const Json::Value& root)
{
lly::Node * ret = new lly::Node;
return ret;
}
lly::Node * parse_e... | {
"content_hash": "f7a5246a14cde50131e836bd8052aba7",
"timestamp": "",
"source": "github",
"line_count": 198,
"max_line_length": 143,
"avg_line_length": 25.696969696969695,
"alnum_prop": 0.6092767295597484,
"repo_name": "ooeyusea/GameEngine",
"id": "a466e73ecce28b012018cd7b8e8ee85e19a18d22",
"size":... |
i18n.map("nl", {
resetPasswordDialog: {
title: "Wachtwoord resetten",
newPassword: "Nieuw wachtwoord",
newPasswordAgain: "Nieuw wachtwoord (opnieuw)",
cancel: "Annuleren",
submit: "Wachtwoord instellen"
},
enrollAccountDialog: {
title: "Stel een wachtwoord in",
newPassword: "Nieuw wachtwoord",
newPas... | {
"content_hash": "fbae53695890531588727ae72cbca3de",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 86,
"avg_line_length": 27.74736842105263,
"alnum_prop": 0.7355842185128983,
"repo_name": "nikhilpi/klick",
"id": "e2e1b665c1f46671a8f3f1fea9e78bc9a941bd5b",
"size": "2636",... |
<?php
namespace Magento\Store\Model\ResourceModel\Website;
/**
* Factory class for @see \Magento\Store\Model\ResourceModel\Website\Collection
*/
class CollectionFactory
{
/**
* Object Manager instance
*
* @var \Magento\Framework\ObjectManagerInterface
*/
protected $_objectManager = null;
... | {
"content_hash": "4e770d66bddc6a9a522df794d31c7185",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 168,
"avg_line_length": 26.133333333333333,
"alnum_prop": 0.6445578231292517,
"repo_name": "tarikgwa/test",
"id": "e5ccd60442b0414d47bc1aec867bf0576a39977d",
"size": "1176"... |
import React, { Component } from 'react'
import LoginForm from '../components/LoginForm'
import auth from '../http/auth'
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import {actions as snackBarActions} from '../reducers/snackBar'
import styles from './Styles';
import { Submiss... | {
"content_hash": "e23cc4a766565a781d2020b46de5bf34",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 105,
"avg_line_length": 25.77777777777778,
"alnum_prop": 0.6939655172413793,
"repo_name": "wanyine/vr-store-frontend",
"id": "bc391ccc769d822befbac4b1b31f094ee1fb363a",
"si... |
package com.linecorp.armeria.server.docs;
import static net.javacrumbs.jsonunit.JsonAssert.assertJsonEquals;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.a... | {
"content_hash": "8a54942edd70de6970e24a47946867b6",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 107,
"avg_line_length": 47.75555555555555,
"alnum_prop": 0.6321544904606794,
"repo_name": "synk/armeria",
"id": "5299cd786061e894b724cea044ff2a1cf6c00acf",
"size": "4930",
... |
=======================
Integrating with Django
=======================
Since Django is currently the most famous Python web framework, this chapter explains how to plot graphs using pyFlot template tags.
| {
"content_hash": "f2b7c019c9e8fc3a4a5d6da9592c3aaa",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 132,
"avg_line_length": 41.2,
"alnum_prop": 0.6359223300970874,
"repo_name": "andrefsp/pyflot",
"id": "915a28cebf6b93b7a021884be248e35ae19b1b50",
"size": "206",
"binary": ... |
#region Disclaimer/Info
///////////////////////////////////////////////////////////////////////////////////////////////////
// Subtext WebLog
//
// Subtext is an open source weblog system that is a fork of the .TEXT
// weblog system.
//
// For updated news and information please visit http://subtextproject.com/
// S... | {
"content_hash": "1c27fe837c9490b4dc8842ea550a1698",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 99,
"avg_line_length": 31.03846153846154,
"alnum_prop": 0.5489467162329615,
"repo_name": "jeuvin/Subtext",
"id": "903990daf651988edce6ece1c55306e291c63513",
"size": "809",
... |
#include <aws/config/model/ResourceType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace ConfigService
{
namespace Model
{
namespace ResourceTypeMapper
{
... | {
"content_hash": "1f219c9d4462627f94cd898ca41a271d",
"timestamp": "",
"source": "github",
"line_count": 501,
"max_line_length": 142,
"avg_line_length": 48.10578842315369,
"alnum_prop": 0.628687606323389,
"repo_name": "JoyIfBam5/aws-sdk-cpp",
"id": "691cb5ddc501eda9a103fc45b469e9d41020383a",
"size":... |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ var parentJsonpFunction = window["webpackJsonp"];
/******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
/******/ // add "moreModules" to the modules object,
/******/ ... | {
"content_hash": "33d2110ec52cbc230533c5407439fb7c",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 116,
"avg_line_length": 35.931372549019606,
"alnum_prop": 0.5298772169167804,
"repo_name": "MingXingTeam/webpack-react-starter",
"id": "d730981970da123e945d47a996e20e52e2233... |
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('openstack', '0002_volumetype'),
]
operations = [
migrations.AlterField(
model_name='floatingip',
name='description',
field=models.CharField(
... | {
"content_hash": "76ea9ac4d3cf37f9bd4419973f0432b9",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 71,
"avg_line_length": 29.69811320754717,
"alnum_prop": 0.5158831003811944,
"repo_name": "opennode/waldur-mastermind",
"id": "7e4266cd10eb5cac38beeb1aac908f7f2da3b9cd",
"si... |
namespace CantHelpFallingInLove
{
public sealed class Note
{
public Note(Pitch pitch, int duration)
{
m_pitch = pitch;
m_duration = duration;
}
public Pitch Pitch
{
get { return m_pitch; }
}
public int Duration
... | {
"content_hash": "b090e62f4d42f25e9210206af2401f8c",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 46,
"avg_line_length": 19.291666666666668,
"alnum_prop": 0.4946004319654428,
"repo_name": "steinz/CantHelpFallingInLove",
"id": "90d47e50be3bee3f391afb06692a176f138f0bb8",
... |
package org.apache.helix.messaging.handling;
import java.util.HashSet;
import java.util.List;
import java.util.concurrent.ThreadPoolExecutor;
import com.google.common.collect.ImmutableList;
import org.apache.helix.ConfigAccessor;
import org.apache.helix.HelixManager;
import org.apache.helix.NotificationContext;
imp... | {
"content_hash": "620a890b44052a4b64aeb5df589fbd55",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 100,
"avg_line_length": 31.94782608695652,
"alnum_prop": 0.7074033750680457,
"repo_name": "lei-xia/helix",
"id": "eee40e38950e94955a4b5b29da5a7d57ed681136",
"size": "4481"... |
/* 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... | {
"content_hash": "164cae34e7ba713aace815728fb667c6",
"timestamp": "",
"source": "github",
"line_count": 843,
"max_line_length": 138,
"avg_line_length": 42.730723606168446,
"alnum_prop": 0.7466270612403532,
"repo_name": "menski/camunda-bpm-platform",
"id": "65402cbf9ddc42215d8c82419772f7a1cf66e710",
... |
describe("page-service", function() {
var pageService;
beforeEach(module('pgApexApp'));
beforeEach(inject(function(_pageService_){
pageService = _pageService_;
pageService.apiService = {
"get": function() {}
};
}));
it("should pass on application ID when calling getPages", function() {
... | {
"content_hash": "26aba4e77e8e0225602f1407c28e9592",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 78,
"avg_line_length": 26.61111111111111,
"alnum_prop": 0.6722338204592901,
"repo_name": "raitraidma/pgapex",
"id": "9ae619d7e0c6033eedcdd25451ef5b9aa2d99dc8",
"size": "479... |
int main(int argc, char *argv[])
{
[NSApplication sharedApplication];
NSMenu * mainMenu = createMainMenu(nil);
[NSApp setMainMenu:mainMenu];
NSWindow *window = createMainWindow(nil);
[window orderFront:nil];
[NSApp run];
return 0;
} | {
"content_hash": "0728c425b96a8e5435c122086c33dea2",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 45,
"avg_line_length": 26,
"alnum_prop": 0.6692307692307692,
"repo_name": "hsoft/xibless",
"id": "cc1ddc862c3ddba997ce94f8e3e89498405393c3",
"size": "329",
"binary": fals... |
/* $Id: SetSeedList.java 988245 2010-08-23 18:39:35Z kwright $ */
/**
* 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 und... | {
"content_hash": "31d4503c15926df4bc916183348d5b4a",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 104,
"avg_line_length": 28.155963302752294,
"alnum_prop": 0.6331052460084718,
"repo_name": "apache/manifoldcf",
"id": "b711cd279eeead2f8f7376b189fde93fe6bb216d",
"size": "... |
"use strict";
var angular = require("angular");
angular
.module("elektra.rest.angular")
.controller("MainController", require("./MainController"));
require("./website");
| {
"content_hash": "6b4ff510656fcaf8caef2cecb84a4cd9",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 61,
"avg_line_length": 19.666666666666668,
"alnum_prop": 0.6949152542372882,
"repo_name": "mpranj/libelektra",
"id": "88d899aab94dcf52d282abbd50eb49f14688ad3e",
"size": "177... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
scan: 当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true。
scanPeriod: 设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒。
当scan为true时,此属性生效。默认的时间间隔为1分钟。
debug: 当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。
-->
<configuration scan="true" scanPeriod="30 seconds" debug="false... | {
"content_hash": "7d0a78cf36ee60404950cedbd1c6f821",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 120,
"avg_line_length": 33.270833333333336,
"alnum_prop": 0.641202254226675,
"repo_name": "suntion/suns_build",
"id": "78764b7fbcec7991806cc9920305e6b91a21e7dd",
"size": "1... |
package com.hymane.materialhome.bean;
import java.io.Serializable;
/**
* Author :hymanme
* Email :hymanme@163.com
* Create at 2016/1/8
* Description:
*/
public class BookRatingBean implements Serializable {
private int max;
private int numRaters;
private String average;
private int min;
... | {
"content_hash": "7902afad3ad6d77eb21c18ab03398843",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 53,
"avg_line_length": 17.833333333333332,
"alnum_prop": 0.6004672897196262,
"repo_name": "hymanme/MaterialHome",
"id": "b186127edff35847ec66e696d850eacdf65cd53d",
"size": ... |
<?php
Class Account_model extends MY_Model{
var $table ='accounts';
function join_permission ($phone){
$this->db->select('permissions,role_name,roles.id as role_id,accounts.id as account_id,shops.id as shop_id,buyers.id as buyer_id,active,expiration_date');
$this->db->from('accounts');
$this... | {
"content_hash": "98b6a597873afff11b462a4b6da6f637",
"timestamp": "",
"source": "github",
"line_count": 133,
"max_line_length": 198,
"avg_line_length": 34.10526315789474,
"alnum_prop": 0.63668430335097,
"repo_name": "anhptse03395/e-market",
"id": "f009074606aa8885ed64556ca1fc3f59144d7ba2",
"size": ... |
#import <TwitterCore/TWTRAuthConfig.h>
#import "TWTRAppAPIClient.h"
#import "TWTRAuthenticationConstants.h"
#import "TWTRTestCase.h"
static NSString *const TWTRTestAccessToken = @"tokentokentoken";
@interface TWTRAppAPIClientTests : TWTRTestCase
@property (nonatomic) TWTRAppAPIClient *appAPIClient;
@end
@impleme... | {
"content_hash": "21cab66fb767c557b2589da0b521599d",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 195,
"avg_line_length": 28.736842105263158,
"alnum_prop": 0.757020757020757,
"repo_name": "BalestraPatrick/TweetsCounter",
"id": "85fdf4f5491f68bc0ed4be461db3ca1f441e218c",
... |
function SpotMatrix(element, dataset, chart_options) {
var spotRadius = chart_options.spot_radius;
var minColor = chart_options.min_color;
var maxColor = chart_options.max_color;
var spotCellPadding = chart_options.spot_cell_padding;
var spotCellMargin = chart_options.spot_cell_margin;
var sp... | {
"content_hash": "e8984198fe40ba771764974f1fb45252",
"timestamp": "",
"source": "github",
"line_count": 289,
"max_line_length": 171,
"avg_line_length": 30.346020761245676,
"alnum_prop": 0.5171037628278221,
"repo_name": "arpitnarechania/d3-spotmatrix",
"id": "ac112c5e744524029c347015e98c5622631516ca",... |
using namespace chrono;
using namespace std;
#define TIME(X, Y) \
timer.start(); \
for (int i = 0; i < body_list->size(); i++) { \
X; \
} \
timer.stop... | {
"content_hash": "648bb57f692d4df9a856be6e8604a8ef",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 105,
"avg_line_length": 37.609375,
"alnum_prop": 0.5766514333194849,
"repo_name": "andrewseidl/chrono",
"id": "68f6304c8897dbc29c434660db914695f066a772",
"size": "2809",
... |
using System;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.OAuth;
using Owin;
using TestWebEngine.Data.Contexts.Authorization;
using TestWebEngine.Web;
using TestWebEngine.Web.Providers;
[assembly: Owi... | {
"content_hash": "cd0965fd15e7c421b40ead41e051cd88",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 113,
"avg_line_length": 35.96610169491525,
"alnum_prop": 0.647502356267672,
"repo_name": "SKorolchuk/test-web-engine",
"id": "91669458761daa661ab235c5e953bf10105ffa81",
"si... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "2cb26215a246caeb0067f92668f003fd",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "f5f643e777ccbc8aa2091c5a9eccb3a3b56c1888",
"size": "177... |
{% set b = button %}
{% set _obj = version if amo.HAS_COMPAT[addon.type] else addon %}
{% set compat = _obj.compatible_apps[APP] if _obj else None %}
<div class="install-shell">
<div class="install {{ b.install_class|join(' ') }}"
data-addon="{{ addon.id }}"
data-icon="{{ addon.icon_url }}"
data-develop... | {
"content_hash": "cb13ee25a94f4ea3d0796596d4756838",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 128,
"avg_line_length": 36.60204081632653,
"alnum_prop": 0.5071090047393365,
"repo_name": "jbalogh/zamboni",
"id": "ef73046df3b015b839f97c73f3b954eeb9e785ee",
"size": "3587... |
use std::fmt;
use std::io;
#[deriving(Clone)]
pub struct Layout {
pub logo: ~str,
pub favicon: ~str,
pub krate: ~str,
}
pub struct Page<'a> {
pub title: &'a str,
pub ty: &'a str,
pub root_path: &'a str,
}
pub fn render<T: fmt::Show, S: fmt::Show>(
dst: &mut io::Writer, layout: &Layout, pa... | {
"content_hash": "2d187da9d5cc4d122ba0c8f4bf3e6e58",
"timestamp": "",
"source": "github",
"line_count": 121,
"max_line_length": 86,
"avg_line_length": 28.355371900826448,
"alnum_prop": 0.4998542698921597,
"repo_name": "pythonesque/rust",
"id": "399dcf6991c86dcba542eb24cc3bae87320adba3",
"size": "38... |
import copy
import sys
import traceback
from oslo.config import cfg
import six
from ceilometer.openstack.common.gettextutils import _ # noqa
from ceilometer.openstack.common import importutils
from ceilometer.openstack.common import jsonutils
from ceilometer.openstack.common import local
from ceilometer.openstack.co... | {
"content_hash": "0debe61180b5bc2c76cfff1f2e5c013c",
"timestamp": "",
"source": "github",
"line_count": 487,
"max_line_length": 79,
"avg_line_length": 36.29774127310061,
"alnum_prop": 0.6437743961079369,
"repo_name": "lexxito/monitoring",
"id": "6d034324013b1d0ff7692562c7fad33bbdedc5ad",
"size": "1... |
package com.thecoffeine.auth.error.model.entity;
import java.util.ArrayList;
import java.util.List;
/**
* Object for describe input error.
*
* @version 1.0
*/
public class ValidationError {
/// *** Properties *** ///
/**
* List of errors/field.
*/
private List<Field> fieldErrors = new Ar... | {
"content_hash": "54714e802292b8af7a5ce3a5a0d48d9d",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 63,
"avg_line_length": 18.791666666666668,
"alnum_prop": 0.5221729490022173,
"repo_name": "coffeine-009/auth",
"id": "79cd87fcc37e694bc8db594ba0b1f22ecee4f59c",
"size": "10... |
<?php
/* SensioDistributionBundle::Configurator/layout.html.twig */
class __TwigTemplate_b2fdf354463c9563417ba9043aff191369ab11847fbd3f29a49130c70b39dd75 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
... | {
"content_hash": "f421adcff83a2622db61d9ef16499d57",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 180,
"avg_line_length": 29.033333333333335,
"alnum_prop": 0.5587447378492154,
"repo_name": "csu6/Symfony",
"id": "45c938a67466fad85abf8fe6c31443f30313742e",
"size": "2613",... |
!!-------------helloworld.f95-------------------------------------------------!!
!
! hello world.f95
!
! Purpose: To check out some fortran!
!
!!----------------------------------------------------------------------------!!
program helloworld
!! definitons
character :: tab = char(9)
inte... | {
"content_hash": "9d7e101d32624cd7b58a7c6d8cecf454",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 80,
"avg_line_length": 24.025,
"alnum_prop": 0.4620187304890739,
"repo_name": "leios/simuleios",
"id": "9a2ccb22407e0c90697efcd92028c193bfb56f6f",
"size": "961",
"binary"... |
@interface XZEventHistoryElement ()
@property(nonatomic,strong)id<NSObject,NSCopying,NSCoding> data;
@property(nonatomic,strong)NSDate *timestamp;
@end
@implementation XZEventHistoryElement
- (instancetype)initWithData:(id<NSObject,NSCopying,NSCoding>)data{
self = [super init];
if ([data conformsToProtocol:@protocol... | {
"content_hash": "e144645253d74f6f636600a3cf04c0f3",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 104,
"avg_line_length": 29.833333333333332,
"alnum_prop": 0.7616387337057728,
"repo_name": "xzeror/XZDataLayerViewer",
"id": "db9534dcce7ebfa56269a5d373f029d96fe72a53",
"si... |
node-scrapy
===========
Simple, lightweight and expressive web scraping with Node.js
## Scraping made simple
```js
var scrapy = require('node-scrapy')
, url = 'https://github.com/strongloop/express'
, selector = '.repository-description'
scrapy.scrape(url, selector, function(err, data) {
if (err) return con... | {
"content_hash": "428b49450370f3e59b4b28431da9c685",
"timestamp": "",
"source": "github",
"line_count": 267,
"max_line_length": 407,
"avg_line_length": 33.02996254681648,
"alnum_prop": 0.6913482254223835,
"repo_name": "beeman/node-scrapy",
"id": "970c8b402c253bd319f410256f6c4ab027666612",
"size": "... |
/**
* @license Highstock JS v8.1.1 (2020-06-09)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Kacper Madej
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.expor... | {
"content_hash": "2f79314fae5ef82786752c8df0484a8d",
"timestamp": "",
"source": "github",
"line_count": 236,
"max_line_length": 114,
"avg_line_length": 38.41949152542373,
"alnum_prop": 0.42450645196867764,
"repo_name": "cdnjs/cdnjs",
"id": "066fcb6a6cb4e97f7f2327abe325242bf6f8db64",
"size": "9067",... |
<!DOCTYPE html><html><head>
<title>iron-pages-basic</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=yes">
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../web-component-tester/brows... | {
"content_hash": "45f690685e731b67e264c04c4d13caac",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 996,
"avg_line_length": 59.06896551724138,
"alnum_prop": 0.6713368359603036,
"repo_name": "vladimirbrasil/testghpagepolymer",
"id": "166ef8c7afd5f7bffb770f924379401540ad3187"... |
define(function (require, exports, module) {
"use strict";
var StyleSheet = require("boost/StyleSheet");
var LayoutPropTypes = require("boost/LayoutPropTypes");
var validator = require("boost/validator");
var number = validator.number;
var dp = validator.dp;
var string = validator.string;... | {
"content_hash": "598e3368de2f95193cee27ffd50c556d",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 121,
"avg_line_length": 43.4,
"alnum_prop": 0.5924950625411455,
"repo_name": "Clouda-team/boostui-native",
"id": "892b82e3d88c219cfba7db37e22618d74217cd09",
"size": "1541",... |
package org.cuacfm.members.test.web.configuration;
import static org.hamcrest.Matchers.containsString;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.w... | {
"content_hash": "cdf363d58d567a274f52a0bd8785febd",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 144,
"avg_line_length": 36.21875,
"alnum_prop": 0.7767471958584987,
"repo_name": "pablogrela/members_cuacfm",
"id": "9e80a03b44cda00d6f65451612520b53e0d7fc6f",
"size": "52... |
AJS.Confluence.SharePage={};
AJS.Confluence.SharePage.autocompleteUser=function(C){C=C||document.body;
var D=AJS.$,A=/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var B=function(F){if(!F||!F.result){throw new Error("Invalid JSON format")
}var E=[];
E.push(F.result);
return E
};
D("input.autocompl... | {
"content_hash": "f8de9b21343f236cffee0fbf2108972d",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 218,
"avg_line_length": 41.64102564102564,
"alnum_prop": 0.6898604269293924,
"repo_name": "mlc0202/dubbo.github.io",
"id": "2372b1438ba07a94a3423d9de50c7c417aa21fb3",
"siz... |
package entity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
public class TabInfo {
private String tag;
private Class<?> clss;
private Bundle args;
private Fragment fragment;
public TabInfo(String tag, Class<?> clazz, Bundle args) {
this.tag = tag;
this.clss =... | {
"content_hash": "e1bdaed404958a02a4c0479f689b53c1",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 61,
"avg_line_length": 18.452380952380953,
"alnum_prop": 0.5935483870967742,
"repo_name": "chinglimchan/SwipeTabsDemo",
"id": "b51d8001ddbd535d49a5d91200867804b0b99a61",
"s... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zchinese: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | {
"content_hash": "ae1f572033635301ca93dc501646d650",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 292,
"avg_line_length": 42.43636363636364,
"alnum_prop": 0.5458440445586975,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "d2b85832dc32c7e5c2a2c021103c94e665a1286d",
... |
from __future__ import print_function
import glob
import motmot.FlyMovieFormat.FlyMovieFormat as FlyMovieFormat
# change this to current filenames
input_filenames = glob.glob("/home/jbender/data/081704_a*.fmf")
for input_filename in input_filenames:
output_filename = input_filename + ".aoi"
input_fmf = FlyMo... | {
"content_hash": "b080d39af55ca0d133829a3dc1f56cb5",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 122,
"avg_line_length": 32.95,
"alnum_prop": 0.6388467374810318,
"repo_name": "motmot/flymovieformat",
"id": "8f42cebf320a84f6931f66b063c287619d9b0a8b",
"size": "1340",
"... |
package com.netflix.spinnaker.front50.migrations;
import com.netflix.spinnaker.front50.api.model.pipeline.Pipeline;
import com.netflix.spinnaker.front50.model.pipeline.PipelineDAO;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors... | {
"content_hash": "6515bfdca0d94d543c7ad84431af1b44",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 94,
"avg_line_length": 30.662921348314608,
"alnum_prop": 0.6185415903261268,
"repo_name": "spinnaker/front50",
"id": "d26171341b64c19e4e92872a2e90c9c29c38c4af",
"size": "27... |
@interface IndexBuffer : GraphicsResource {
uint bufferID;
BufferUsage bufferUsage;
int indexCount;
IndexElementSize indexElementSize;
}
- (id) initWithGraphicsDevice:(GraphicsDevice *)theGraphicsDevice
indexElementSize:(IndexElementSize)theIndexElementSize
indexCount:(int)theIndexCount
usage:(Bu... | {
"content_hash": "a2d34f998af4bb64b6fd076b97202a44",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 66,
"avg_line_length": 29.526315789473685,
"alnum_prop": 0.7967914438502673,
"repo_name": "paidgeek/glomero-xni",
"id": "3c01b174bdaf927e8411b41a07c11436d09a2a50",
"size": ... |
layout: post
title: The basic concepts of Angular JS
---

[courtesy](https://www.amitavroy.com/justread/content/articles/working-xml-angular-js/)
# Why should we use Angular JS?
- Helps organize the jav... | {
"content_hash": "a69f83218db9ca0d9a268992095424f2",
"timestamp": "",
"source": "github",
"line_count": 147,
"max_line_length": 699,
"avg_line_length": 30.789115646258505,
"alnum_prop": 0.7218294299602298,
"repo_name": "xameeramir/xameeramir.github.io",
"id": "31bc9498e3384a986731df1d5c6794f7f8f841d5... |
credit to blackrock digital for providing the base theme of this website.
below is the original readme.md as provided by the creator of this theme.
# [Start Bootstrap](http://startbootstrap.com/) - [Freelancer](http://startbootstrap.com/template-overviews/freelancer/)
[Freelancer](http://startbootstrap.com/template-... | {
"content_hash": "e00bdcafc2d15fa9497f2d487839e78d",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 370,
"avg_line_length": 60.38709677419355,
"alnum_prop": 0.7841880341880342,
"repo_name": "patwong/patwong.github.io",
"id": "2bb8d521b8f0f3a0c641de8d813faeb6f6b3aa7a",
"si... |
import random
from neutron.common import constants
from neutron.common import exceptions
from neutron import context
from neutron.db import external_net_db
from neutron.db import l3_db
from neutron.db import models_v2
from neutron.openstack.common import jsonutils
from neutron.openstack.common import log
from neutron.... | {
"content_hash": "7891ddde5f31b56096a5c81df0e71e52",
"timestamp": "",
"source": "github",
"line_count": 587,
"max_line_length": 79,
"avg_line_length": 46.620102214650764,
"alnum_prop": 0.57564130673098,
"repo_name": "citrix-openstack-build/neutron",
"id": "dfbc79afa91d3f4e0bb3ad65e6a58e452c335856",
... |
{% extends 'bs1/base/base.html' %}
{% block header %}
<title>containers detail</title>
{% endblock %}
{% block body %}
<button type="button" class="btn btn-success btn-lg" onclick='location.href="/containers/start/{{all.Config.Hostname}}/{{engine}}"'>
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>... | {
"content_hash": "220b00a5f6c969dd015ea649d9dc90f6",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 134,
"avg_line_length": 28.066666666666666,
"alnum_prop": 0.5933491686460808,
"repo_name": "gregorianzhang/octopus",
"id": "9ccb16c968fd1dd83345ec0b8dfb46d2c047b352",
"size... |
#include <algorithm>
#include <vector>
using namespace std;
/*
Time complexity: O(n) [where n is the length of flips]
Space complexity: O(1)
*/
class Solution
{
public:
int numTimesAllBlue(vector<int> & flips)
{
int result=0;
int n=flips.size();
... | {
"content_hash": "6b2ef250e6547d776a10f147d67e193f",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 132,
"avg_line_length": 27.41176470588235,
"alnum_prop": 0.42560801144492133,
"repo_name": "busebd12/InterviewPreparation",
"id": "45553a1e0327cfdeba041909e599b7b03092a2a3",
... |
Moodle - Sanity Checker
=======================
This plugin provides an interface to implement sanity checks on moodle.
Moodle version
--------------
\>= 2.3
Installation
------------
### go to the right directory
Before all, change your working directory to `YOUR_MOODLE_DIRROOT/local` where :
*YOUR_MO... | {
"content_hash": "66005d9ed9b389d28887e6de5a023c9b",
"timestamp": "",
"source": "github",
"line_count": 108,
"max_line_length": 102,
"avg_line_length": 37.648148148148145,
"alnum_prop": 0.6549434333497295,
"repo_name": "eviweb/moodle-local_sanitychecker",
"id": "4f3da4786ab0eeeb50d6da0afadeeddc0a3716... |
/* eslint-disable object-curly-spacing */
export virtualRootBuilder from './virtualRootBuilder';
| {
"content_hash": "d90246cef814e93369128c01d4529a40",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 54,
"avg_line_length": 48.5,
"alnum_prop": 0.7938144329896907,
"repo_name": "knyga/react-router-access",
"id": "f73fc3b0b9a2211fe62a74451511c55454907eee",
"size": "97",
"b... |
/*
* testThinClientPdxTests.cpp
*
* Created on: Sep 30, 2011
* Author: npatel
*/
//#include "ThinClientPdxTests.hpp"
/*DUNIT_MAIN
{
//LOG("NIL:DUNIT_MAIN:PDXTests function called");
runPdxTests(true, false);
}
END_MAIN*/
#include <string>
#include "fw_dunit.hpp"
#include <ace/OS.h>
#inclu... | {
"content_hash": "069c49380238bde9c9aba2174039ec89",
"timestamp": "",
"source": "github",
"line_count": 4378,
"max_line_length": 85,
"avg_line_length": 34.28163544997716,
"alnum_prop": 0.6396641902921678,
"repo_name": "mhansonp/geode-native",
"id": "58c866d9fd946df92352fe50f05f9d073de0aedf",
"size"... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="it">
<head>
<!-- Generated by javadoc (version 1.7.0_60) on Fri Feb 13 15:29:53 CET 2015 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>E-Index</title>
<me... | {
"content_hash": "4327ca3f18498f4d218ea95f94fffc2a",
"timestamp": "",
"source": "github",
"line_count": 138,
"max_line_length": 700,
"avg_line_length": 53.70289855072464,
"alnum_prop": 0.6673863176359466,
"repo_name": "GameShopAdvance/GameShop-Advance",
"id": "8dc42aab636baf77f8515419588615fe7fa63332... |
require_relative '../../../automated_init'
context "Message" do
context "Follow" do
context "Secondary Forms" do
context "Class Form" do
source = Controls::Message.example
context "Default" do
receiver = Messaging::Message::Follow.(source, source.class)
test "Message f... | {
"content_hash": "ef70960303cd14562d8dcf280b4365c4",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 70,
"avg_line_length": 24.296296296296298,
"alnum_prop": 0.5792682926829268,
"repo_name": "eventide-project/messaging",
"id": "a7fcd2235f2ca1f7261b30007490c9cd392531c3",
"s... |
package com.yubico.jaas;
import java.security.Principal;
/**
* @author Fredrik Thulin (fredrik@yubico.com)
*
*/
public class HttpOathOtpPrincipal implements Principal {
/** The name of the principal. */
private String name;
/** The realm of this principal. Something like a domain name. */
private String real... | {
"content_hash": "33500f5ac3042a9fa636743b1cb493eb",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 66,
"avg_line_length": 20.346938775510203,
"alnum_prop": 0.5787362086258776,
"repo_name": "Yubico/yubico-java-client",
"id": "1fd6c4df08b37af4c67d84987b2440e339c402ce",
"si... |
SYNONYM
#### According to
Index Fungorum
#### Published in
null
#### Original name
Pseudocercospora brideligena H.S. Rao, Arch. Singh & Kamal
### Remarks
null | {
"content_hash": "2e30c66667a950128e7e24f0884e8d8f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 58,
"avg_line_length": 12.461538461538462,
"alnum_prop": 0.7098765432098766,
"repo_name": "mdoering/backbone",
"id": "5ef60adec60aba272fdf362be2da4928c870d13b",
"size": "24... |
<?php
namespace MattJanssen\ApiResponseBundle\Serializer\Adapter;
use JMS\Serializer\SerializationContext;
use JMS\Serializer\SerializerInterface;
/**
* Adapter for Serializing Using JMS Serializer
*
* @author Matt Janssen <matt@mattjanssen.com>
*/
class JmsSerializerAdapter implements SerializerAdapterInterface... | {
"content_hash": "aa69a1a4d5dc89ef0818bebb3c93d420",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 79,
"avg_line_length": 22.745098039215687,
"alnum_prop": 0.628448275862069,
"repo_name": "mattjanssen/api-response-bundle",
"id": "83de159791e4f6b93e72a863a8c400db7f38193d",
... |
/**
* MascotSearchBean.java
* @author Vagisha Sharma
* Oct 12, 2009
* @version 1.0
*/
package org.yeastrc.ms.domain.search.mascot.impl;
import java.util.ArrayList;
import java.util.List;
import org.yeastrc.ms.domain.search.Param;
import org.yeastrc.ms.domain.search.impl.SearchBean;
import org.yeastrc.ms.domain.s... | {
"content_hash": "d7b52346ae07e9347c8bb13d4870f740",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 74,
"avg_line_length": 21.083333333333332,
"alnum_prop": 0.689064558629776,
"repo_name": "yeastrc/msdapl",
"id": "4146e1784214eb9ef72a39fa61ee59f2700f79d3",
"size": "759",
... |
<?php
namespace Zend\Http;
use Zend\Stdlib\ErrorHandler;
use Zend\Stdlib\ResponseInterface;
/**
* HTTP Response
*
* @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6
*/
class Response extends AbstractMessage implements ResponseInterface {
/**
* #@+
* @const int Status codes
... | {
"content_hash": "2a8befd6099cd37c7cb82f5119b3d196",
"timestamp": "",
"source": "github",
"line_count": 486,
"max_line_length": 120,
"avg_line_length": 25.419753086419753,
"alnum_prop": 0.5875829690788409,
"repo_name": "ngmautri/nhungttk",
"id": "cc534896874b68635ba1dfad68c029ceeb98ec87",
"size": "... |
<?php
/**
* sfWidgetFormSelectCheckbox represents an array of checkboxes.
*
* @package symfony
* @subpackage widget
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
* @version SVN: $Id: sfWidgetFormSelectCheckbox.class.php 13324 2008-11-24 22:53:58Z FabianLange $
*/
class sfWidgetFo... | {
"content_hash": "b8085051bc79585469c01eed6fe5980a",
"timestamp": "",
"source": "github",
"line_count": 138,
"max_line_length": 155,
"avg_line_length": 30.557971014492754,
"alnum_prop": 0.5895186151292388,
"repo_name": "tolu/liu-bookbox",
"id": "95bde6ea4d0e9ecbfc72a7e910e41860af5e827c",
"size": "4... |
FROM centos:centos5
MAINTAINER Taiki Sugawara <buzz.taiki@gmail.com>
RUN yum update -y
RUN yum install -y curl tar
RUN yum install -y epel-release
RUN yum groupinstall -y "Development Tools"
RUN yum install -y rpmdevtools yum-utils
RUN yum install -y buildsys-macros
RUN yum install -y git
COPY macros /etc/rpm/macros
... | {
"content_hash": "dc27ba2b52ac8ded8c4fbfa18ad57326",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 48,
"avg_line_length": 24.428571428571427,
"alnum_prop": 0.7865497076023392,
"repo_name": "buzztaiki/docker-rpmbuildenv",
"id": "52bf98fa0a8ef82110b363d77da26bd2687f9781",
... |
import {Component, View, bootstrap} from 'angular2/angular2';
import {routerDirectives, routerInjectables, RouteConfig, Router} from 'angular2/router';
import {StatusBoard} from './status-board/status-board';
import {StatusBoardFloating} from './status-board/status-board-floating';
import {TwitterLink} from './twitter/... | {
"content_hash": "3ab4673aefe366562e336e604d28ba0f",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 92,
"avg_line_length": 27,
"alnum_prop": 0.7526881720430108,
"repo_name": "jwcarroll/angular2-databinding-examples",
"id": "2997d2493e86f1b3cd31b2f6149d3a380b65957f",
"size... |
from SpiffyWorld import Dungeon
class DungeonCollection:
"""
A collection of Dungeons
"""
def __init__(self, **kwargs):
self.dungeons = []
def add(self, dungeon):
if not isinstance(dungeon, Dungeon):
raise ValueError("dungeon must be an instance of Dungeon")
... | {
"content_hash": "31fb77ea2416f3d6d13d96688f325975",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 70,
"avg_line_length": 24.44,
"alnum_prop": 0.6072013093289689,
"repo_name": "butterscotchstallion/SpiffyRPG",
"id": "c229618e7e1633ef8f7acb13362dc5c87c082023",
"size": "65... |
'use strict';
module.exports = function(app) {
// Routing logic
// ...
var tag = require('../../app/controllers/etiquetas.server.controller');
app.route('/etiqueta/proyecto/:proyectIdtag')
.post(tag.read)
.delete(tag.delete);
app.route('/etiqueta/tarea/:taskIdtag')
.post(tag.read)
.delete(tag.delete)... | {
"content_hash": "14e0c90172526f5757c55afa82b18f54",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 72,
"avg_line_length": 26.095238095238095,
"alnum_prop": 0.6788321167883211,
"repo_name": "rmaderamnz/eon_bitacoras",
"id": "6ecb63f840be878267d70f595505243a28207b44",
"siz... |
@implementation SYAlipayDummp
@end
| {
"content_hash": "201416f681e98c25e73b1527871b8867",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 29,
"avg_line_length": 12,
"alnum_prop": 0.8333333333333334,
"repo_name": "isandboy/SYPayKit",
"id": "b392fb0e70d2c55135fe60b705b6c92a836c5334",
"size": "141",
"binary": f... |
package com.team254.frc2015.subsystems;
import com.team254.frc2015.Constants;
import com.team254.lib.util.CheesySpeedController;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.Solenoid;
public class BottomCarriage extends ElevatorCarriage {
Solenoid ... | {
"content_hash": "50ee62b7adc489e4283d89e419a5a66a",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 83,
"avg_line_length": 30.404255319148938,
"alnum_prop": 0.6857942617214835,
"repo_name": "Team254/FRC-2015",
"id": "0e2a237f86d22c492548ed4c2364f46188acf2d4",
"size": "142... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "66f5511ebb3739b9f29580e033304539",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "38042e674e069d2d590f202c96a65b44253c44b9",
"size": "199... |
<ion-header>
<ion-navbar>
<ion-title>
Crear Minga
</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<ion-list>
<ion-item>
<ion-label floating>Titulo de la Minga</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label>¿Sera Publica?</ion-labe... | {
"content_hash": "83af8117177f7283ed848f2cdcdc770b",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 58,
"avg_line_length": 18.255555555555556,
"alnum_prop": 0.6329884357881923,
"repo_name": "MingApp-Organization/mobile",
"id": "1a6c25448ade7a9f163e702e3b86ee7872d30bf6",
"... |
package com.cloud.api.commands;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import com.cloud.api.ApiConstants;
import com.cloud.api.BaseCmd;
import com.cloud.api.BaseListCmd;
import com.cloud.api.IdentityMapper;
import com.cloud.api.Implementation;
import com.cloud.api.Paramete... | {
"content_hash": "798a3c410ae859f1faeb10fb2256558b",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 173,
"avg_line_length": 43.7,
"alnum_prop": 0.6699720315280956,
"repo_name": "argv0/cloudstack",
"id": "f9c157d9feb1d75f9ea15ba839222290681badf8",
"size": "4734",
"binary... |
<?php
namespace Iglesys\Bundle\GanadosBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class IglesysGanadosBundle extends Bundle
{
}
| {
"content_hash": "8287a73f38ac21270e4d91294d662327",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 47,
"avg_line_length": 15.88888888888889,
"alnum_prop": 0.8181818181818182,
"repo_name": "Futrille/iglesys",
"id": "c57d8d419001a17d3fac338e769c553a87302d25",
"size": "143",... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading.Tasks;
using Windows.Data.Json;
using Windows.Storage;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Imaging;
// The data model defined by this file serves as a representative exa... | {
"content_hash": "05d1a77a06f283a4c55e692e27074024",
"timestamp": "",
"source": "github",
"line_count": 153,
"max_line_length": 132,
"avg_line_length": 41.209150326797385,
"alnum_prop": 0.5854084060269628,
"repo_name": "BrettJaner/csla",
"id": "5ecc603dc829c405fb6794a51873119dd642d98f",
"size": "63... |
#pragma once
#include <aws/workmail/WorkMail_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workmail/model/MemberType.h>
#include <aws/workmail/model/EntityState.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue... | {
"content_hash": "100c2ee5e62fea4ba702fb01bdc58783",
"timestamp": "",
"source": "github",
"line_count": 268,
"max_line_length": 133,
"avg_line_length": 30.175373134328357,
"alnum_prop": 0.624953629281563,
"repo_name": "aws/aws-sdk-cpp",
"id": "a1cc35dd818b2c197e516dd09bca17e7070113c9",
"size": "820... |
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.IO.Compression;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
using log4net;
using MySql.Data.MySqlClient;
using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Data;
namespace Ope... | {
"content_hash": "a82d5670d56e7d3a64afdb466ab6f23e",
"timestamp": "",
"source": "github",
"line_count": 480,
"max_line_length": 203,
"avg_line_length": 44.02291666666667,
"alnum_prop": 0.4746107614405376,
"repo_name": "TomDataworks/opensim",
"id": "2c6acdef32d4c02a5003c969f7d610efdf53df9e",
"size":... |
const String BaseKey = "\\Software\\Roel Schroeven\\VolBalCon";
const String PresetsKey = "\\Software\\Roel Schroeven\\VolBalCon\\Presets";
using rsutil::JoinPaths;
using rsutil::PrintF;
void TPresets::Load()
{
std::auto_ptr<TRegistry> Registry(new TRegistry);
Registry->RootKey = HKEY_CURRENT_USER;
if (!Registr... | {
"content_hash": "6a872b8586af2bcd9f600ff01d4fbc04",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 97,
"avg_line_length": 33.029411764705884,
"alnum_prop": 0.6749777382012466,
"repo_name": "roelschroeven/VolBalCon",
"id": "0870f3d980b8f1914f6707d9991f052201677dd7",
"size... |
({
testDefaultAttributes:{
failOnWarning: true,
auraWarningsExpectedDuringInit : ["\"alt\" attribute should not be empty for informational image"],
test:function(cmp){
var imgElement = cmp.getElement();
$A.test.assertTrue($A.test.isInstanceOfImageElement(imgElement), ... | {
"content_hash": "b62395c4fdda4fe285c577aa7dddb5d0",
"timestamp": "",
"source": "github",
"line_count": 135,
"max_line_length": 167,
"avg_line_length": 52.39259259259259,
"alnum_prop": 0.654602007634667,
"repo_name": "igor-sfdc/aura",
"id": "45069e7ff1566addcbfc22f9fe4c28962b82cfae",
"size": "7684"... |
package org.caffinitas.ohc;
import java.util.concurrent.ScheduledExecutorService;
import org.caffinitas.ohc.chunked.OHCacheChunkedImpl;
import org.caffinitas.ohc.linked.OHCacheLinkedImpl;
/**
* Configures and builds OHC instance.
* <table summary="Configuration parameters">
* <tr>
* <th>Field</th>
... | {
"content_hash": "8102ddc943b8d1e768033f0889994c06",
"timestamp": "",
"source": "github",
"line_count": 543,
"max_line_length": 166,
"avg_line_length": 32.01289134438306,
"alnum_prop": 0.6127250762238969,
"repo_name": "snazy/ohc",
"id": "a99dc967eb5de7ce8aa307f13d8a045df5c22146",
"size": "18037",
... |
#region Copyright Simple Injector Contributors
#endregion
namespace SimpleInjector
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using SimpleInjector.Decorators;
... | {
"content_hash": "728a63350426bd3fea24ee4276648022",
"timestamp": "",
"source": "github",
"line_count": 439,
"max_line_length": 120,
"avg_line_length": 40.993166287015946,
"alnum_prop": 0.6136363636363636,
"repo_name": "bcraun/SimpleInjector",
"id": "547159a4684b1eaf26e1317c463c328c54924e9d",
"size... |
import * as fs from 'fs';
import * as path from 'path';
import * as ts from 'typescript';
import {main, readCommandLineAndConfiguration, watchMode} from '../src/main';
import {setup} from './test_support';
describe('ngc transformer command-line', () => {
let basePath: string;
let outDir: string;
let write: (f... | {
"content_hash": "f5deaac42ed7101039c7591a8547a420",
"timestamp": "",
"source": "github",
"line_count": 2242,
"max_line_length": 201,
"avg_line_length": 33.35905441570027,
"alnum_prop": 0.5482076720461018,
"repo_name": "hansl/angular",
"id": "69a1b7c3a56052e764564a337087367cf0ea9899",
"size": "7501... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.