text stringlengths 2 1.04M | meta dict |
|---|---|
package org.gradle.api.artifacts.dsl;
import groovy.lang.Closure;
import org.gradle.api.Action;
import org.gradle.api.Incubating;
import org.gradle.api.artifacts.Dependency;
import org.gradle.api.artifacts.query.ArtifactResolutionQuery;
import java.util.Map;
/**
* <p>A {@code DependencyHandler} is used to declare ... | {
"content_hash": "88d84bea7736c45f9186e70eae0fdefb",
"timestamp": "",
"source": "github",
"line_count": 372,
"max_line_length": 145,
"avg_line_length": 35.836021505376344,
"alnum_prop": 0.686445127897382,
"repo_name": "FinishX/coolweather",
"id": "7e62f594c03390c24a5a4357c5fe51e379229543",
"size": ... |
title: aoq31
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: q31
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:
... | {
"content_hash": "7dd073d464d22a73a88039980ebdd1da",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 61,
"avg_line_length": 22.333333333333332,
"alnum_prop": 0.6656716417910448,
"repo_name": "pblack/kaldi-hugo-cms-template",
"id": "172c7ad95c88c5010bc1d028533dfa3acc22c20b",
... |
"""
Package install information
"""
import ast
import os
import re
from setuptools import find_packages, setup
# Cannot use "from cloudbridge import get_version" because that would try to
# import the six package which may not be installed yet.
reg = re.compile(r'__version__\s*=\s*(.+)')
with open(os.path.join('clou... | {
"content_hash": "dab90bec1c190e120f0d9f9910805beb",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 79,
"avg_line_length": 32.91954022988506,
"alnum_prop": 0.5673882681564246,
"repo_name": "ms-azure-cloudbroker/cloudbridge",
"id": "947a6bad7b035e96c149acea17b7e3c6a6f02ffd",... |
package com.azure.spring.data.cosmos.repository.integration;
import com.azure.cosmos.models.CompositePath;
import com.azure.cosmos.models.CompositePathSortOrder;
import com.azure.cosmos.models.CosmosContainerProperties;
import com.azure.cosmos.models.IndexingPolicy;
import com.azure.spring.data.cosmos.IntegrationTestC... | {
"content_hash": "7b7d57d4e5ac221acc791e403d65b2e7",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 130,
"avg_line_length": 49.8013698630137,
"alnum_prop": 0.7451519735937285,
"repo_name": "Azure/azure-sdk-for-java",
"id": "9ce99c562511233a39e34605548c307ad3a7f2cf",
"siz... |
package uk.gov.hmrc.ct.accounts.frs102.boxes
import uk.gov.hmrc.ct.accounts.frs102.calculations.TotalFixedAssetsCalculator
import uk.gov.hmrc.ct.accounts.frs102.retriever.Frs102AccountsBoxRetriever
import uk.gov.hmrc.ct.box.{Calculated, CtBoxIdentifier, CtOptionalInteger}
case class AC48(value: Option[Int]) extends... | {
"content_hash": "10b1fa3288120d13aefd7f91d30f3d72",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 125,
"avg_line_length": 39.1764705882353,
"alnum_prop": 0.8123123123123123,
"repo_name": "pncampbell/ct-calculations",
"id": "9bebecdf8c997cfb9025274b3b8be5e0250296eb",
"si... |
using CommunityToolkit.Mvvm.ComponentModel;
using MvvmDialogs;
namespace Demo.CustomDialogTypeLocator.ComponentA
{
public class MyDialogVM : ObservableObject, IModalDialogViewModel
{
private bool? dialogResult;
public bool? DialogResult
{
get => dialogResult;
p... | {
"content_hash": "7bbed4a98174a8ce2c4d8481bc3d2125",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 69,
"avg_line_length": 24.375,
"alnum_prop": 0.6666666666666666,
"repo_name": "FantasticFiasco/mvvm-dialogs",
"id": "ff4b4f8ec6ec63992863a537ef862c02b453335e",
"size": "392... |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using System.Reflection.Metadata.Ecma... | {
"content_hash": "514719ece0d98a7038dba2c6fee0ad2b",
"timestamp": "",
"source": "github",
"line_count": 2908,
"max_line_length": 213,
"avg_line_length": 36.690852819807425,
"alnum_prop": 0.6024817942397631,
"repo_name": "jcouv/roslyn",
"id": "cec2f32e87a9426662006c20df42d4d8319f8b21",
"size": "1066... |
import { Routes, RouterModule } from '@angular/router';
import { TransactionsComponent } from './transactions.component';
import { ListTransactionsComponent } from './components/listTransactions/list-transactions.component';
// noinspection TypeScriptValidateTypes
const routes: Routes = [
{
path: '',
compo... | {
"content_hash": "6582194e765b915b5fe3cc15f4cb7123",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 102,
"avg_line_length": 25.58823529411765,
"alnum_prop": 0.728735632183908,
"repo_name": "tcomax/landswoop-frontend",
"id": "986835d26c96a5c46a98b32b8089c6fe990192cf",
"siz... |
import os
import uuid
import mock
from barbican.common import resources
from barbican.model import models
from barbican.model import repositories
from barbican.tests.api.controllers import test_acls
from barbican.tests.api import test_resources_policy as test_policy
from barbican.tests import utils
order_repo = rep... | {
"content_hash": "5af9513710bf6e1df6569a0b26016165",
"timestamp": "",
"source": "github",
"line_count": 762,
"max_line_length": 79,
"avg_line_length": 35.5485564304462,
"alnum_prop": 0.6035883047844064,
"repo_name": "cneill/barbican",
"id": "0ececcaf0b2a8b28d1f2abd4707fa2dfb91c28d0",
"size": "27672... |
package com.amazonaws.services.migrationhubstrategyrecommendations.model;
import javax.annotation.Generated;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public enum VersionControl {
GITHUB("GITHUB"),
GITHUB_ENTERPRISE("GITHUB_ENTERPRISE");
private String value;
private Vers... | {
"content_hash": "ee8646469826cd6b47efa8acdee41a90",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 91,
"avg_line_length": 25.367346938775512,
"alnum_prop": 0.6178600160901045,
"repo_name": "aws/aws-sdk-java",
"id": "065b64d695314e813753445508be307ca35a16a1",
"size": "182... |
import React from 'react';
import { shallow, mount, render } from 'enzyme';
import { expect, should } from 'chai';
import Icon from '../Icon';
import styles from '../Icon.css';
describe('icon-test-describe----------', () => {
it('icon can render', () => {
const props = {
size:36,
name:'account',
... | {
"content_hash": "3715e47659f41449c76b563c23e92a27",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 62,
"avg_line_length": 21.636363636363637,
"alnum_prop": 0.5399159663865546,
"repo_name": "heifade/quark-ui",
"id": "7f67bb3499ef62637a933417457594cc85afb288",
"size": "476... |
package org.apache.camel.example.bam;
/**
* Main class to make it easy to run this example.
*
* @version
*/
public final class Main {
private Main() {
// do nothing here
}
public static void main(String[] args) throws Exception {
org.apache.camel.spring.Main.main(args);
}
} | {
"content_hash": "1e45f637fa3bfa937009104f7d38357d",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 61,
"avg_line_length": 17.5,
"alnum_prop": 0.6222222222222222,
"repo_name": "guharoytamajit/apache-camel",
"id": "09b5afbc966146ea1295b22252a982308379f4b8",
"size": "1118",... |
/*
// Intel(R) Integrated Performance Primitives. Cryptography Primitives.
// Operations over GF(p).
//
// Context:
// ippsGFpSqr()
//
*/
#include "owndefs.h"
#include "owncp.h"
#include "pcpgfpstuff.h"
#include "pcpgfpxstuff.h"
#include "pcphash.h"
#include "pcphash_rmf.h"
#include "pcptool.h"... | {
"content_hash": "10292b912ca08ea9e06e08be039bf301",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 113,
"avg_line_length": 28.983050847457626,
"alnum_prop": 0.5608187134502924,
"repo_name": "Intel-EPID-SDK/epid-sdk",
"id": "f75a3c3dba94da59cc610e850c359bf895bf7ccf",
"siz... |
package eu.phisikus.plotka.conf.providers
import eu.phisikus.plotka.conf.model.{BasicNodeConfiguration, BasicPeerConfiguration}
import scala.io.Source
/**
* Contains values matching the example test configuration files
*/
private[providers] object TestConfigurationExamples {
val ConfigurationFile = "test_confi... | {
"content_hash": "19cab748a8cf7406c11a9ce2a2aee34b",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 114,
"avg_line_length": 32.2,
"alnum_prop": 0.7664596273291926,
"repo_name": "phisikus/plotka",
"id": "dc1c427b9bafda1252c4a37a25d7de002c84446e",
"size": "805",
"binary":... |
(function(win, $){
//singleton
var CircleGeneratorSingleton = (function(){
var instance;
function init(){
//private vars
var _aCircles = [], //keep track of circles
_stageSection = $('.advert'); //stage where circles are placed
//create ... | {
"content_hash": "5400ff77566fc2389b657ace8021dd9a",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 78,
"avg_line_length": 29.395061728395063,
"alnum_prop": 0.4607307853842923,
"repo_name": "JeremyChenCodes/JavaScript",
"id": "74b314e1a8b01fcd62259cf99ff8ba0aa552c111",
"s... |
namespace WavFile;
/// <summary>
/// WAV channel information.
/// </summary>
public struct WavChannel
{
private readonly string _longName;
private readonly string _shortName;
private readonly WavChannelMask _mask;
/// <summary>
/// Gets wav channel long name.
/// </summary>
public string... | {
"content_hash": "a1a9e6e48b7bb9ec1033341e57da168b",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 77,
"avg_line_length": 23.367346938775512,
"alnum_prop": 0.5895196506550219,
"repo_name": "wieslawsoltes/SimpleWavSplitter",
"id": "87217225aeb4b283702e7f0c84d7c7e7cd4884f4",... |
*, *::before, *::after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
height: 100%; /* makes sure HTML takes up all of browser window */
font-size: 100%;
}
body {
background-image: url(../assets/images/blurred_backgrounds/blur_bg_3.jpg);
back... | {
"content_hash": "98a9b96935f7a3aa4ea6965fa4471852",
"timestamp": "",
"source": "github",
"line_count": 117,
"max_line_length": 78,
"avg_line_length": 19.52991452991453,
"alnum_prop": 0.600875273522976,
"repo_name": "thomaslawton91/bloc-jams-angular",
"id": "73556025d6c12dfb67af7ff371da6f0a4b754762",... |
TODO: Write a gem description
## Installation
Add this line to your application's Gemfile:
gem 'phire'
And then execute:
$ bundle
Or install it yourself as:
$ gem install phire
## Usage
TODO: Write usage instructions here
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b ... | {
"content_hash": "45df4ddc6866b46ab041716f5ddf796f",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 64,
"avg_line_length": 17.85185185185185,
"alnum_prop": 0.7116182572614108,
"repo_name": "jschank/phire",
"id": "405f4883c6d4b092e780363a62dec1f067d732cf",
"size": "491",
... |
using namespace std;
static CCriticalSection cs_nTimeOffset;
static int64_t nTimeOffset = 0;
//
// "Never go to sea with two chronometers; take one or three."
// Our three time sources are:
// - System clock
// - Median of other nodes clocks
// - The user (asking the user to fix the system clock if the first two d... | {
"content_hash": "813063f8fc72d2d1e64957676b27ab36",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 172,
"avg_line_length": 33.71875,
"alnum_prop": 0.5903614457831325,
"repo_name": "btcdraft/draftcoin",
"id": "512fde6185c97f76ecdb21402548201dc79748c2",
"size": "3563",
"... |
module.exports = require('./lib/slag')
| {
"content_hash": "2b7581ffed800ed07adb2d4147b535c9",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 38,
"avg_line_length": 39,
"alnum_prop": 0.6923076923076923,
"repo_name": "stagas/slag",
"id": "bdef5d51c8e400463e55f36d1652355bbcfd22df",
"size": "39",
"binary": false,
... |
package com.wnafee.vector.compat;
import android.graphics.Path;
import android.util.Log;
import java.util.ArrayList;
import java.util.Arrays;
public class PathParser {
static final String LOGTAG = PathParser.class.getSimpleName();
/**
* @param pathData The string representing a path, the same as "d"... | {
"content_hash": "12e099696291723e39d01b6ac83af519",
"timestamp": "",
"source": "github",
"line_count": 638,
"max_line_length": 99,
"avg_line_length": 41.24921630094044,
"alnum_prop": 0.43621993388304137,
"repo_name": "zhongchin/zhiyou",
"id": "14b8a9f9bf940d4763d5395f3da0fa7b1aa283be",
"size": "26... |
package ru.stqa.pft.addressbook.rf;
import org.openqa.selenium.remote.BrowserType;
import ru.stqa.pft.addressbook.appmanager.ApplicationManager;
import ru.stqa.pft.addressbook.model.GroupData;
import java.io.IOException;
/**
* Created by SK on 16.06.2016.
*/
public class AddressbookKeywords {
public static fi... | {
"content_hash": "cb20de83d7c20b252730f0c25115cb4d",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 93,
"avg_line_length": 25.44736842105263,
"alnum_prop": 0.6990692864529473,
"repo_name": "SergeyKharkovshchenko/java_pft",
"id": "4e2ad5c9b623a7b969d053e69e1c2220279fb524",
... |
/**
* The DataSource utility provides a common configurable interface for widgets
* to access a variety of data, from JavaScript arrays to online servers over
* XHR.
*
* @module datasource
* @requires yahoo, event
* @optional xhr
* @title DataSource Utility
* @beta
*/
/**************************************... | {
"content_hash": "3880fee68788a24b1d9819e4bbee84d0",
"timestamp": "",
"source": "github",
"line_count": 1040,
"max_line_length": 155,
"avg_line_length": 34.9625,
"alnum_prop": 0.5791644894254834,
"repo_name": "wangzijian777/contentManager",
"id": "6dac3ac41f03b3d53431e398b06b8c35e35e6bff",
"size": ... |
export function capitalize (text: string): string {
if (text.length < 1) return text
return text[0].toUpperCase() + text.substr(1)
}
export function uncapitalize (text: string): string {
if (text.length < 1) return text
return text[0].toLowerCase() + text.substr(1)
}
| {
"content_hash": "82f1b7fc95cd8fdef51032e8cf0954d6",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 53,
"avg_line_length": 30.77777777777778,
"alnum_prop": 0.7003610108303249,
"repo_name": "joshforisha/merchant-quest",
"id": "b9133bd9177154a04da0fdb2a2bc68c227c963f8",
"siz... |
package com.jy.controller.moblie.cms;
import com.jy.common.ajax.AjaxRes;
import com.jy.common.mybatis.Page;
import com.jy.common.utils.DateUtils;
import com.jy.common.utils.base.Const;
import com.jy.common.utils.echarts.series.Map;
import com.jy.common.utils.echarts.series.MarkPoint;
import com.jy.controller.base.Base... | {
"content_hash": "ce3c0b171eec9aec9980578a4d5883d7",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 103,
"avg_line_length": 35.97802197802198,
"alnum_prop": 0.6069028711056811,
"repo_name": "futureskywei/whale",
"id": "c25fd3039fc200e3886cb79ed2c4879f085f1b88",
"size": "3... |
<div class="container" data-ng-controller="HeaderController">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-ng-click="toggleCollapsibleMenu()">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar... | {
"content_hash": "7e332db70cbad4476bc72c0bfdc90130",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 283,
"avg_line_length": 42.672413793103445,
"alnum_prop": 0.6234343434343435,
"repo_name": "Batname/mean_tutorial",
"id": "b3c8d83f9344630db202204b5822d7525900ed40",
"size"... |
package io.github.jeddict.jsonb.modeler.widget;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.font.TextAttribute;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import io.github.jeddict.jsonb.modeler.widget.context.NodeContextModel;
import static io.github.jeddict.j... | {
"content_hash": "6cd654830dd0cdc8f0a42188b088cc0f",
"timestamp": "",
"source": "github",
"line_count": 219,
"max_line_length": 144,
"avg_line_length": 41.082191780821915,
"alnum_prop": 0.6634433700122263,
"repo_name": "jGauravGupta/jpamodeler",
"id": "0e381248873ea47738691063097aab1c13972db7",
"si... |
import * as React from "react";
import {InputProps} from "./input"
export interface DropdownStringInputProps<T> extends InputProps{
options: {
value: string,
id: T
}[]
value?: T,
onChange: (value: T) => void,
}
let last_id = 0
export class DropdownStringInput<T extends React.Key> extend... | {
"content_hash": "7f4da739a325f441df87cddcfda85b8f",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 143,
"avg_line_length": 38.5609756097561,
"alnum_prop": 0.510752688172043,
"repo_name": "goodbye-island/S-Store-Front-End",
"id": "7fcb61b7336500de4fbf4fdb664a462dcd604166",
... |
package graphene.dao.titan;
import graphene.dao.UserDAO;
import graphene.model.idl.G_User;
import java.util.Random;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.Test;
import com.thinkaurelius.titan.core.TitanGraph;
public class SlowIngestTestFromTitanDAO {
private User... | {
"content_hash": "bd77e481a5d54ee8cb1fec02abd1517c",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 63,
"avg_line_length": 21.93877551020408,
"alnum_prop": 0.6920930232558139,
"repo_name": "Sotera/graphene",
"id": "578c4a70be510812ed592684cb8f62e3111502cb",
"size": "1894"... |
package server
import (
"context"
"github.com/GoogleCloudPlatform/declarative-resource-client-library/dcl"
betapb "github.com/GoogleCloudPlatform/declarative-resource-client-library/python/proto/dataplex/beta/dataplex_beta_go_proto"
emptypb "github.com/GoogleCloudPlatform/declarative-resource-client-library/python... | {
"content_hash": "7ad6c22f5a480ce43852d7cf1d396892",
"timestamp": "",
"source": "github",
"line_count": 234,
"max_line_length": 155,
"avg_line_length": 39.61538461538461,
"alnum_prop": 0.7834951456310679,
"repo_name": "GoogleCloudPlatform/declarative-resource-client-library",
"id": "4ea97358e381596d6... |
#ifndef STAN_MATH_PRIM_PROB_MULTINOMIAL_LOG_HPP
#define STAN_MATH_PRIM_PROB_MULTINOMIAL_LOG_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/prob/multinomial_lpmf.hpp>
#include <vector>
namespace stan {
namespace math {
/** \ingroup multivar_dists
* @deprecated... | {
"content_hash": "98834c20a4b8f7e1420927e7262f26fe",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 65,
"avg_line_length": 28.34375,
"alnum_prop": 0.6659316427783903,
"repo_name": "stan-dev/math",
"id": "1a5c18c60f1fd74635888f9345fe27217a836f4a",
"size": "907",
"binary"... |
<?php
final class FundInitiativeEditController
extends FundController {
private $id;
public function willProcessRequest(array $data) {
$this->id = idx($data, 'id');
}
public function processRequest() {
$request = $this->getRequest();
$viewer = $request->getUser();
if ($this->id) {
$... | {
"content_hash": "70b489a44cb0e1ed400a392738b6821b",
"timestamp": "",
"source": "github",
"line_count": 259,
"max_line_length": 79,
"avg_line_length": 31.45945945945946,
"alnum_prop": 0.5937653411880216,
"repo_name": "huaban/phabricator",
"id": "b6b69945b6ea69e104cbe28ecf418c6e42ef4ccd",
"size": "8... |
Public Class SettingsForm
Dim flag As Boolean = False
Private Sub SettingsForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, MyBase.Shown
NumericUpDown1.Value = decimalDigits
NumericUpDown2.Value = railLenght
End Sub
Private Sub decimalDigits... | {
"content_hash": "899c41a41e2c2f38ced0a57abf025a3b",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 259,
"avg_line_length": 38.10344827586207,
"alnum_prop": 0.7601809954751131,
"repo_name": "biosan/RaDAS",
"id": "c7f538cf7a5f20fab381f3224f6f0ec8cbec570b",
"size": "1107",
... |
id: security-architecture
title: Security Architecture
---
Hydra is built with tough security in mind.
<!-- toc -->
## OAuth 2.0 Security Overview
Hydra is an implementation of the security-first Fosite OAuth 2.0 SDK
([https://github.com/ory/fosite](https://github.com/ory/fosite)). Fosite
respects the
[OAuth 2.0 Th... | {
"content_hash": "cfe289fcd67d5c2fafda75485134f95b",
"timestamp": "",
"source": "github",
"line_count": 118,
"max_line_length": 226,
"avg_line_length": 41.23728813559322,
"alnum_prop": 0.7792848335388409,
"repo_name": "ory-am/go-iam",
"id": "f2b742bb61323fc58e9f96dd0a68879e7211ec19",
"size": "4874"... |
<?php
namespace AppBundle\Entity;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use JMS\Serializer\Annotation\Exclude;
use JMS\Serializer\Annotation\PreSerialize;
use JMS\Serializer\Annotation as Serialiser ;
use JMS\Serializer... | {
"content_hash": "aa9089c417bc4912d2b288072be22a66",
"timestamp": "",
"source": "github",
"line_count": 404,
"max_line_length": 121,
"avg_line_length": 19.65841584158416,
"alnum_prop": 0.5498614958448753,
"repo_name": "abbeshamza/habtest",
"id": "9c43e497304ed626335cd54baf0c9aa814d35838",
"size": "... |
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/x... | {
"content_hash": "2325d614991443dc405a2f8784f0538e",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 133,
"avg_line_length": 43.275,
"alnum_prop": 0.659734257654535,
"repo_name": "gustajz/parking",
"id": "07b0eac8c8a6e7fd8d75ce48759d67e8590ccc8f",
"size": "1731",
"binary... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AdventureWorks.UILogic.Models;
using AdventureWorks.UILogic.Services;
using AdventureWorks.UILogic.Tests.Mocks;
using AdventureWorks.UILogic.ViewModels;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Adventu... | {
"content_hash": "ee60405aa16ae22aa87d4d2b0a26d969",
"timestamp": "",
"source": "github",
"line_count": 270,
"max_line_length": 169,
"avg_line_length": 49.56666666666667,
"alnum_prop": 0.5332885003362475,
"repo_name": "PrismLibrary/Prism-Samples-Windows",
"id": "f3fd23c863732388a761ac8483b1cd176255b0... |
/**
* Status of different components
* Tells us which which components are loaded so we can start the server
*/
// Wowwie, I've been scared of OOP for all my life (more like 5 years .. thats a lot :'( ) and now I realize how cool and powerful it is
//? AmIDoingThisRite?
//? Why am I trying to use javadoc'ish block... | {
"content_hash": "bfff49d5ac875e1399a13c45ad3920c1",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 267,
"avg_line_length": 33.91379310344828,
"alnum_prop": 0.6517539400101677,
"repo_name": "irisli/crowd-prediction-pool",
"id": "ea29244d77cdcd059402ed0a70b8e04f75ac476c",
... |
package com.newsblur.fragment;
import android.os.Bundle;
import androidx.preference.Preference;
import androidx.preference.PreferenceFragmentCompat;
import androidx.preference.PreferenceManager;
import com.newsblur.R;
import com.newsblur.database.BlurDatabaseHelper;
import com.newsblur.service.NBSyncService;
import ... | {
"content_hash": "e193cd121a7958f86b0a1fcc3077592e",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 103,
"avg_line_length": 33.35849056603774,
"alnum_prop": 0.7369909502262444,
"repo_name": "samuelclay/NewsBlur",
"id": "2e21d3bba0cea95ccb37d93f7c0ac42d828f2ee3",
"size": "... |
host_pattern=^.*\..*$
protocol_pattern=\/\/
ssh_pattern=^.*@.*\..*:.*$
# Check for git
git --version > /dev/null 2>&1
GIT_INSTALLED=$?
[[ $GIT_INSTALLED -ne 0 ]] && { echo "Install git before executing this script."; exit 0; }
test_init=false
while getopts ":t" opt; do
case $opt in
t) test_init=true;;
\?) ... | {
"content_hash": "9c3c15e87551871bd7ac2f79f1c75b43",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 106,
"avg_line_length": 27.2625,
"alnum_prop": 0.6226501604768455,
"repo_name": "dcpages/dcLibrary-Template",
"id": "1a19795d6923b5d98965286073252744d73c0472",
"size": "219... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "d6704dbdb0ac24b6d85318df6b66f496",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "05a3c63dbd7fa09d5695d5b131ce68d06129e974",
"size": "186... |
using Codeer.Friendly;
using Friendly.XamControls.Inside;
using System;
using System.Collections.Generic;
using Codeer.TestAssistant.GeneratorToolKit;
namespace Friendly.XamControls
{
[ControlDriver(TypeFullName = "Infragistics.Controls.Editors.XamCalendar")]
public class XamCalendarDriver : XamControlBase
... | {
"content_hash": "e2472c604ac3d01c917e12b973295f34",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 89,
"avg_line_length": 28.725,
"alnum_prop": 0.5970409051348999,
"repo_name": "Codeer-Software/Friendly.XamControls",
"id": "bb4aad0fa5fb8d9da6acb796cead2157dafc7c28",
"siz... |
<div class="odo-carousel">
<div class="odo-carousel__wrapper">
<div class="odo-carousel__element">
<div class="odo-carousel__slide"></div>
<div class="odo-carousel__slide"></div>
<div class="odo-carousel__slide"></div>
<div class="odo-carousel__slide"></div>
</div>
</div>
</div>
| {
"content_hash": "59e4c2cb0717e894302eab618b9eb8b3",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 45,
"avg_line_length": 31.6,
"alnum_prop": 0.5949367088607594,
"repo_name": "odopod/code-library",
"id": "03d957fc629ad26ca82f5b4ff9b0ec4e9a5fc30f",
"size": "316",
"binar... |
const base = require('./karma.conf.js');
const webpack = base.webpackConfig;
const files = base.files.concat(base.helperGlobs).concat(base.unitGlobs).concat(
base.integrationGlobs
);
const wp = ['webpack'];
const preprocessors = files.concat(base.srcGlobs).reduce((acc, key) => {
acc[key] = wp;
return acc;
}, {});... | {
"content_hash": "e5dcc2f01778458f4afb2b43ce4a56fd",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 80,
"avg_line_length": 28.266666666666666,
"alnum_prop": 0.6981132075471698,
"repo_name": "mdittmer/smw",
"id": "11630fbb652e2c50f948a3a768db450249a41f48",
"size": "424",
... |
package com.github.wz2cool.dynamic.mybatis.mapper;
import com.github.wz2cool.dynamic.GroupedQuery;
import com.github.wz2cool.dynamic.helper.CommonsHelper;
import com.github.wz2cool.dynamic.lambda.*;
import com.github.wz2cool.dynamic.mybatis.QueryHelper;
import com.github.wz2cool.dynamic.mybatis.TypeHelper;
import com.... | {
"content_hash": "31a4c87d8ab613ae1684a1c004e5b4b6",
"timestamp": "",
"source": "github",
"line_count": 392,
"max_line_length": 105,
"avg_line_length": 39.92602040816327,
"alnum_prop": 0.6560603156347837,
"repo_name": "wz2cool/mybatis-dynamic-query",
"id": "8f5a558a3027c5c8ab5c52a792a9ad897f942021",
... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "b8c7fdb15fbf1c5e1f84fec5a3ca2259",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.23076923076923,
"alnum_prop": 0.6917293233082706,
"repo_name": "mdoering/backbone",
"id": "ec2b14b6ef5b702687745c614fc2d91b98c283ad",
"size": "194... |
import React, { useRef } from 'react';
import { Text } from 'native-base';
import { View, Image, NativeSyntheticEvent, ScrollViewProps } from 'react-native';
import { HeaderComponent } from '../main/header_component';
import { colors, textStyles, themedStyles } from '../../application/styles';
import { BackButtonCompon... | {
"content_hash": "c7ae1fdb91f910dc213d395461ecf527",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 145,
"avg_line_length": 53.983333333333334,
"alnum_prop": 0.6122259956776783,
"repo_name": "pg-irc/pathways-frontend",
"id": "5ea9333003d0589019f970dc45aa423a3ac990aa",
"si... |
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([REAppDelegate class]));
}
}
| {
"content_hash": "659653fe52fcbd0e7fc1e2b7621dca20",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 92,
"avg_line_length": 26.666666666666668,
"alnum_prop": 0.6625,
"repo_name": "rafaecheve/REGooglePlacesAPI",
"id": "1ce08dc5c22f7b2eb1470ba452726646ac8398c0",
"size": "356"... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Bull. trimest. Soc. mycol. Fr. 54(1): 134 (1938)
#### Original name
Russula insignis Quél., 1888
### Remarks
null | {
"content_hash": "9208e4ccb20c94b6a51b1092dc0c867a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 48,
"avg_line_length": 13.615384615384615,
"alnum_prop": 0.6779661016949152,
"repo_name": "mdoering/backbone",
"id": "a8c2aecf9893908664d9cabb61efefc38fe26a35",
"size": "23... |
CREATE OR REPLACE FUNCTION @extschema@._CDB_GetConfAnalysisQuotaFactor()
RETURNS float8 AS
$$
BEGIN
RETURN @extschema@.CDB_Conf_GetConf('analysis_quota_factor')::text::float8;
END;
$$ LANGUAGE 'plpgsql'
STABLE
PARALLEL SAFE
SECURITY DEFINER
SET search_path = pg_temp;
-- Get the factor (fraction of ... | {
"content_hash": "e574c269cc08fe04f64a14231ee53227",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 113,
"avg_line_length": 35.17460317460318,
"alnum_prop": 0.7369133574007221,
"repo_name": "CartoDB/cartodb-postgresql",
"id": "9800f7d8a5450047d896f9f13bd756b5a23353bb",
"s... |
require 'spec_helper'
require 'wordalator/wdlt'
module Wordalator
describe WDLT do
describe 'parse' do
let(:w) { WDLT.new(query) }
context 'when only one sentence exists' do
let(:query) { ['What is 10 divided by 2?'] }
it 'should return the correct result' do
expect(w.pars... | {
"content_hash": "c95f0a4f7d3564a1a186f3f97699f0c9",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 117,
"avg_line_length": 27.227272727272727,
"alnum_prop": 0.577072899276572,
"repo_name": "okoyea/wordalator",
"id": "89d79f73fd3f23cfd5cc2466b0445884e69d5ffc",
"size": "17... |
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Rewrite;
using Microsoft.Extensions.DependencyInjection;
namespace AspNetCoreDemoApp
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
... | {
"content_hash": "def3b49d2be28f765f59f5a9b0e31562",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 79,
"avg_line_length": 27.452380952380953,
"alnum_prop": 0.5160450997398092,
"repo_name": "jincod/AspNet5DemoApp",
"id": "0a90944debf9af1eb8c809cea2fffdf9d60529eb",
"size":... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:textAppearance="?android:attr/textAppearanceLarge"
android:minHeight="?android:a... | {
"content_hash": "1ce2932e9dfc2b91c2e5898760d2b450",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 129,
"avg_line_length": 52.61538461538461,
"alnum_prop": 0.7470760233918129,
"repo_name": "fjunya/Antena_Android",
"id": "0a8db4a73a387da426b6cd615b06f7e7df7460b5",
"size":... |
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".Depositante">
<item
android:id="@+id/action_settings"
android:title="@string/desconectar"
android:orderInCategory="100"
android:showAsAction="never... | {
"content_hash": "6f19727e59f985d9321dd35f401cb448",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 64,
"avg_line_length": 33.3,
"alnum_prop": 0.6606606606606606,
"repo_name": "danibasauri/persistencia-practica-1",
"id": "37631edf667a5d70fc1ba55bc210e46b2c565763",
"size":... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>AssemblyInfoParams - FAKE - F# Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Steffen Forkmann, Mauricio Scheffer, Col... | {
"content_hash": "b92bcbb797815d23664827efc9e27a75",
"timestamp": "",
"source": "github",
"line_count": 464,
"max_line_length": 209,
"avg_line_length": 42.633620689655174,
"alnum_prop": 0.5185522191891618,
"repo_name": "rodrigoelp/wpfgesturerecognizer",
"id": "3e1dab55e08cc2654304562a17d50eb2842c6b88... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v10/resources/customizer_attribute.proto
namespace Google\Ads\GoogleAds\V10\Resources;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* A custo... | {
"content_hash": "a558525adb8a914cdae5bfb42c861717",
"timestamp": "",
"source": "github",
"line_count": 223,
"max_line_length": 194,
"avg_line_length": 36.72645739910314,
"alnum_prop": 0.6500610500610501,
"repo_name": "googleads/google-ads-php",
"id": "2ca0346bd07a72ef4cfb66fa2e825a70e57c880a",
"si... |
echo [INFO] Create Menu Files.
cd ..
export I18N_LOCALE=en_US
xtab -menu
| {
"content_hash": "919f98d010fa645b7fc47f75560900d6",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 30,
"avg_line_length": 14.8,
"alnum_prop": 0.7162162162162162,
"repo_name": "goyy/goyy",
"id": "4ce08d970c69f0d6670f1e46e71ae2c7dcba1b8d",
"size": "85",
"binary": false,
... |
<!-- Javascript -->
<script type="text/javascript" src="{{site.baseurl}}/assets/plugins/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="{{site.baseurl}}/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<!-- custom js -->
<script type="text/javascript" src="{{... | {
"content_hash": "a708ce9cbd36a5cdd585348910481be6",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 116,
"avg_line_length": 72.8,
"alnum_prop": 0.6318681318681318,
"repo_name": "vipulshah2010/vipulshah2010.github.io",
"id": "393995f8d1d7b31aa1b89beee8f645fabeef6c81",
"size... |
{# requires jQuery #}
{% load static %}
<script>
var csrftoken = getCookie("csrftoken");
jQuery.ajaxSetup({
beforeSend: function (xhr, settings) {
if (!csrfSafeMethod(settings.type) && !this.crossDomain) {
xhr.setRequestHeader("X-CSRFToken", csrftoken);
}
... | {
"content_hash": "bea531b426caabd07bbb776a6a677f41",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 88,
"avg_line_length": 35.93617021276596,
"alnum_prop": 0.4624037892243931,
"repo_name": "github-account-because-they-want-it/django-activity-stream",
"id": "8d59cf0be5d06f8c... |
package liulx.masterdetailexample;
import android.content.Intent;
import android.os.Bundle;
import android.app.Activity;
import android.support.v4.app.NavUtils;
import android.view.MenuItem;
/**
* An activity representing a single BlogPost detail screen. This
* activity is only used on handset devices. On tablet-s... | {
"content_hash": "d751f110bcd9ce75560aead5e845fc59",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 86,
"avg_line_length": 40.98529411764706,
"alnum_prop": 0.6580552565482598,
"repo_name": "liulixiang1988/android_demo",
"id": "60d4cbc572ee1153926b4f8cfcca7d9271e3724d",
"s... |
package nl.tudelft.ewi.dea.security;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import nl.tudelft.ewi.dea.di.SecurityModule;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.SimpleAccount;
import o... | {
"content_hash": "48d6869aca3b4e063786a3cfb86c8fcf",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 118,
"avg_line_length": 38.766666666666666,
"alnum_prop": 0.7970765262252795,
"repo_name": "devhub-tud/devhub-prototype",
"id": "5ff7705b5b39b3bbaf7f715199d5c58bbf57410d",
... |
XProtectCheck(){
osvers_major=$(/usr/bin/sw_vers -productVersion | awk -F. '{print $1}')
osvers_minor=$(/usr/bin/sw_vers -productVersion | awk -F. '{print $2}')
if [[ ${osvers_major} -eq 10 ]] && [[ ${osvers_minor} -lt 6 ]]; then
# This section of the function will display a message that XProtect is not
# ava... | {
"content_hash": "a1f679c802203f3527f13f6bd65338df",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 211,
"avg_line_length": 48.76190476190476,
"alnum_prop": 0.67626953125,
"repo_name": "kevinstrick/rtrouton_scripts",
"id": "31bc25556ac0a2d320d641cea08b4beb90cba5bf",
"size... |
<!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_151) on Wed Jan 16 10:54:26 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Package org.wildfly... | {
"content_hash": "d11a1d6fa85c8bc1b031707000d6b04f",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 388,
"avg_line_length": 39.65217391304348,
"alnum_prop": 0.6320488721804511,
"repo_name": "wildfly-swarm/wildfly-swarm-javadocs",
"id": "6a3ab44b1890c259bab3482437369a25b188... |
<div class="df-component-navbar">
<ul class="nav nav-pills pull-left visible-md visible-lg">
<li data-ng-repeat="link in options.links" data-ng-class="activeLink === link.name ? 'active' : ''">
<a href="#{{link.path}}" ng-click="reloadRoute(link.path)">{{link.label}}</a>
</li>
</ul>
... | {
"content_hash": "3d044ad9f7d0b1dedce0d0136201d050",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 140,
"avg_line_length": 37.970588235294116,
"alnum_prop": 0.5662277304415182,
"repo_name": "dreamfactorysoftware/df-admin-app",
"id": "6f6fc5c9d612c3683343016e4385dc793b6c4cd... |
import { Injectable } from '@angular/core';
import { NgRedux } from '@angular-redux/store';
import { IAppState } from '../store';
import { type } from '../util';
export const LayoutActionTypes = {
/*
layout-modal action types
*/
OPEN_LAYOUT_MODAL: type('[LayoutModal] open layout modal'),
CLOSE_LAYOUT_MO... | {
"content_hash": "510a89b2a60ae005eb3bb365bbd1b7e0",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 63,
"avg_line_length": 21.083333333333332,
"alnum_prop": 0.6587615283267457,
"repo_name": "FlorinskiyDI/coremanage",
"id": "ab28d0e524ce018254cd1fdcbd3b4385104dace1",
"size... |
<?php
require_once "../config.php";
require_once "utils.php";
require_once "users.php";
require_once "goods.php";
require_once "authorization.php";
require_once 'sms.php';
require_once "orders.php";
require_once "message.php";
require_once "./dzApi.php";
header('Content-type: application/json');
// TODO: intval($good... | {
"content_hash": "e1a95cbe0a6d68995472d85a1e05275d",
"timestamp": "",
"source": "github",
"line_count": 407,
"max_line_length": 206,
"avg_line_length": 44.61179361179361,
"alnum_prop": 0.4907749077490775,
"repo_name": "Trickness/iBeiKe-SaltedFish",
"id": "a2cf3ff92c36adef6682150887a4e8ec9d84c466",
... |
'use babel';
/* @flow*/
import type { TextEditor } from 'atom';
import { Observable } from 'rxjs';
import { UPDATE_EDITOR, errorAction, testAction } from '../actions';
import { observableFromSubscribeFunction } from './../../helpers';
import { handleGutter } from '../../decorate-manager';
import type { TesterAction } ... | {
"content_hash": "8ac5da365f0d25f2946e83ee9aecb698",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 121,
"avg_line_length": 40.74193548387097,
"alnum_prop": 0.6571654790182107,
"repo_name": "yacut/tester",
"id": "cfb4ffcaf2194e5a44f82ae4252e5b1e8638a226",
"size": "1263",
... |
package org.jetbrains.plugins.groovy.template;
import com.intellij.codeInsight.template.EverywhereContextType;
import com.intellij.codeInsight.template.TemplateContextType;
import com.intellij.openapi.util.Condition;
import com.intellij.patterns.PlatformPatterns;
import com.intellij.psi.PsiComment;
import com.intelli... | {
"content_hash": "fbecec1caa659d1e472a969fbec6ca59",
"timestamp": "",
"source": "github",
"line_count": 139,
"max_line_length": 140,
"avg_line_length": 35.07194244604317,
"alnum_prop": 0.7288205128205129,
"repo_name": "liveqmock/platform-tools-idea",
"id": "9799547748345ff460d402c8ae3b6732ac867d59",
... |
My personal toolbox to speed up basic frontend tasks.
Current status: in production.
Version: 0.0.8.
| {
"content_hash": "f190bf962b98ce2d2883b0b449956fcc",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 53,
"avg_line_length": 20.6,
"alnum_prop": 0.7669902912621359,
"repo_name": "ArturJanik/OmniBlocks",
"id": "294b008fbd6312e86de7cfe1488848bb84a2bad7",
"size": "116",
"bina... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotVVM.Framework.Binding;
using DotVVM.Framework.Compilation.ControlTree;
using DotVVM.Framework.Hosting;
using DotVVM.Framework.Utils;
namespace DotVVM.Framework.Controls
{
/// <summary>
... | {
"content_hash": "7dbe9e9496b6403c9f731d91e8353653",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 164,
"avg_line_length": 35.82539682539682,
"alnum_prop": 0.6530793088170137,
"repo_name": "riganti/dotvvm",
"id": "b0b587c69d441930dcf92d256562a04426fd934b",
"size": "2259"... |
var should = require("should"),
redisClient = require("redis").createClient(),
lock = require("../index")(redisClient);
describe("redis-lock", function() {
it("should aquire a lock and call the callback", function(done) {
lock("testLock", function(completed) {
redisClient.get("lock.testLock", function(err, tim... | {
"content_hash": "4c3cc9debc6c1048ead7ab3cbebbc006",
"timestamp": "",
"source": "github",
"line_count": 64,
"max_line_length": 116,
"avg_line_length": 24.375,
"alnum_prop": 0.6224358974358974,
"repo_name": "DuoSoftware/ARDS",
"id": "53e99f8fe72d553a89538ef26c0a1353a3eb72af",
"size": "1560",
"bina... |
#pragma once
#include "envoy/common/pure.h"
namespace Buffer {
/**
* A raw memory data slice including location and length.
*/
struct RawSlice {
void* mem_;
uint64_t len_;
};
/**
* A basic buffer abstraction.
*/
class Instance {
public:
virtual ~Instance() {}
/**
* Copy data into the buffer.
* @p... | {
"content_hash": "e42b58142a7acf4a5260207cd5b56522",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 99,
"avg_line_length": 34.54961832061068,
"alnum_prop": 0.6953159522757402,
"repo_name": "timperrett/envoy",
"id": "a874168b1d930b75985d522ebe98344c946c5e6f",
"size": "452... |
<div class="commune_descr limited">
<p>
Larret est
un village
localisé dans le département de Haute-Saône en Franche-Comté. On dénombrait 53 habitants en 2008.</p>
<p>Le nombre d'habitations, à Larret, se décomposait en 2011 en zero appartements et 41 maisons soit
un marché plutôt équilibré.</p>
<p>À p... | {
"content_hash": "dc2836dd6a7159a379d635c075699b80",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 125,
"avg_line_length": 73,
"alnum_prop": 0.7348912167606769,
"repo_name": "donaldinou/frontend",
"id": "1cdca52ba2a9cce65cf8d159c38cc227cb64af84",
"size": "1272",
"binar... |
import optparse
import os
import sys
import m5
from m5.defines import buildEnv
from m5.objects import *
from m5.util import addToPath, fatal
if not buildEnv['FULL_SYSTEM']:
fatal("This script requires full-system mode (*_FS).")
addToPath('../common')
from FSConfig import *
from SysPaths import *
from Benchmarks... | {
"content_hash": "49272f737ab4a70e9c627cac7a193ce7",
"timestamp": "",
"source": "github",
"line_count": 226,
"max_line_length": 258,
"avg_line_length": 37.60176991150443,
"alnum_prop": 0.6488585549541068,
"repo_name": "koparasy/faultinjection-gem5",
"id": "9c97b3270152a6dd10de2ceb8fcebf4c1a5d92bf",
... |
package org.apache.ignite.internal.processors.cache.binary.datastreaming;
import java.io.Serializable;
import java.util.Map;
import java.util.Random;
import org.apache.ignite.Ignite;
import org.apache.ignite.IgniteCache;
import org.apache.ignite.IgniteDataStreamer;
import org.apache.ignite.binary.BinaryObject;
impor... | {
"content_hash": "cd6ee2d0e9bc47fa2bcac70c3272f601",
"timestamp": "",
"source": "github",
"line_count": 367,
"max_line_length": 111,
"avg_line_length": 28.22343324250681,
"alnum_prop": 0.5864066422089207,
"repo_name": "nivanov/ignite",
"id": "c8a64b41fce6022c57a5441d61fc636901c60821",
"size": "1116... |
<?php
/**
* NOTICE:
*
* If you need to make modifications to the default configuration, copy
* this file to your app/config folder, and make them in there.
*
* This will allow you to upgrade fuel without losing your custom config.
*/
return array(
/**
* base_url - The base URL of the appl... | {
"content_hash": "f6bb4aab5496501e3e37e8e758ed95c8",
"timestamp": "",
"source": "github",
"line_count": 371,
"max_line_length": 98,
"avg_line_length": 26.681940700808624,
"alnum_prop": 0.5833922618446308,
"repo_name": "wizardry/gitadora_skill_sim",
"id": "386e95f2559f88a5ccc6f777fa5b52da43c5993b",
... |
namespace network {
namespace test {
// Parses the given Trust Tokens signed redemption record
// https://docs.google.com/document/d/1TNnya6B8pyomDK2F1R9CL3dY10OAmqWlnCxsWyOBDVQ/edit#bookmark=id.omg78vbnmjid,
// extracts the signature and body, and uses the given verification key to
// verify the signature.
//
// On s... | {
"content_hash": "6df2c3763e5a56ccd30d76ce1e612828",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 113,
"avg_line_length": 43.21153846153846,
"alnum_prop": 0.7222963951935915,
"repo_name": "endlessm/chromium-browser",
"id": "3f0a9fb4677ba19fa822032d94cac571527bfecd",
"si... |
<?php
echo "<input class='top-search' type='text' name='top-search' placeholder='Поиск'>"; | {
"content_hash": "a4c8ad5cf09e4001065f0d33dab045bc",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 84,
"avg_line_length": 45,
"alnum_prop": 0.7,
"repo_name": "peskovsb/itdeptMain",
"id": "bd4fb11265e8e0a1fc322dacc46e242680ccee6e",
"size": "95",
"binary": false,
"copie... |
"use strict";
// Wait for things to happen before continuing.
var Promise = require("bluebird");
var _ = require("lodash");
var _require = require("../redux"),
emitter = _require.emitter;
var waiters = [];
emitter.on("BOOTSTRAP_STAGE", function (action) {
var stage = action.payload.stage;
// Remove this stag... | {
"content_hash": "5c8c30141852dfdcb00317d704fcca66",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 66,
"avg_line_length": 23.428571428571427,
"alnum_prop": 0.633130081300813,
"repo_name": "juhov/travis-test",
"id": "6574418e7398ee5dbb96fa0e33f293d18f36b345",
"size": "984... |
title: "RHEL/CentOS"
description: "User documentation for installing and operating Sensu on Red Hat
Enterprise Linux and CentOS Linux systems."
weight: 6
version: "0.29"
product: "Sensu Core"
platformContent: true
menu:
sensu-core-0.29:
parent: platforms
---
# Sensu on RHEL/CentOS
## Reference documentation
... | {
"content_hash": "152d80df52caed9de531147191c504f2",
"timestamp": "",
"source": "github",
"line_count": 457,
"max_line_length": 191,
"avg_line_length": 37.288840262582056,
"alnum_prop": 0.7335837098761809,
"repo_name": "sensu/sensu-docs",
"id": "60e6fb71e962f7543da1097e1ae52bc791c2b161",
"size": "1... |
module Graph
module Queries
module Tags
Show = GraphQL::Field.define do |field|
field.type -> { Types::Tag }
field.description 'Get a tag'
field.argument :id, types.ID
field.argument :name, types.String
field.resolve Graph::Handler.new ->(_obj, args, context) do
... | {
"content_hash": "794f2eee092bd5ba4b2ad20050c32613",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 77,
"avg_line_length": 28.333333333333332,
"alnum_prop": 0.5352941176470588,
"repo_name": "rutan/potmum",
"id": "d5523d185c1e99002e52acf21648444bedd47e87",
"size": "711",
... |
cookbook_path [
'/vagrant/cookbooks',
]
Chef::Config['/vagrant/cookbooks']
| {
"content_hash": "546fe8b22f025bb4d6101f733855abb5",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 36,
"avg_line_length": 21,
"alnum_prop": 0.5142857142857142,
"repo_name": "Gum-Joe/Web-OS-docker",
"id": "028aa31263d5cfd80a89f7456f08a3c1b83ab93b",
"size": "105",
"binary... |
@javax.xml.bind.annotation.XmlSchema(namespace = "http://rest.immobilienscout24.de/schema/customer/1.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package de.immobilienscout24.rest.schema.customer._1;
| {
"content_hash": "7de14e28b203a2ea40e857dbe154d650",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 172,
"avg_line_length": 77,
"alnum_prop": 0.8051948051948052,
"repo_name": "ImmobilienScout24/restapi-java-sdk",
"id": "2b6faecc98b7dcd5a974bb00e626744a58265c2a",
"size": "5... |
var inject = require('../../../lib/inject.js');
var DOM = require('jsx-dom-factory');
var _ = require('underscore');
var $ = require('jquery');
function renderQuickText(id, selections) {
return (
<div class="form-group">
<div class="row">
<label class="col-md-4 col-lg-3 control-label">
... | {
"content_hash": "889e6c35a063578a4729f003b3a14ad9",
"timestamp": "",
"source": "github",
"line_count": 132,
"max_line_length": 132,
"avg_line_length": 31.96212121212121,
"alnum_prop": 0.6018013747333492,
"repo_name": "sjcliffe/Lighthouse",
"id": "3e8082ca03860173fb5b4c63b95c950f16ca7ceb",
"size": ... |
package io.joern.jimple2cpg.querying
import io.joern.jimple2cpg.testfixtures.JimpleCode2CpgFixture
import io.shiftleft.codepropertygraph.generated.EvaluationStrategies
import io.shiftleft.semanticcpg.language._
class MethodParameterTests extends JimpleCode2CpgFixture {
val cpg = code("""package a;
|class Foo... | {
"content_hash": "ee6b9eccaa7279d59d02fc2a92c5e5bd",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 107,
"avg_line_length": 34.816326530612244,
"alnum_prop": 0.7121922626025792,
"repo_name": "joernio/joern",
"id": "bda965d2603b0dabe3ef96e6d3ec63a6a79569fa",
"size": "1706"... |
/**
* Test for map type parser from proto IDL
*
* @author xiemalin
* @since 2.0.0.0
*/
package com.baidu.bjf.remoting.protobuf.idlproxy.map; | {
"content_hash": "222cd2c03f23bb59fdf825e1cfc3f91c",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 53,
"avg_line_length": 19.25,
"alnum_prop": 0.6493506493506493,
"repo_name": "jhunters/jprotobuf",
"id": "fb564574b7e50c5f673a0cd3aac410a875ec64e3",
"size": "154",
"binary... |
package srcscan
import (
"github.com/kr/pretty"
"go/build"
"os"
"reflect"
"sort"
"strings"
"testing"
)
func TestScan(t *testing.T) {
Default.PathIndependent = true
Default.Base = "testdata"
type scanTest struct {
config *Config
dir string
units []Unit
}
tests := []scanTest{
{
dir: "testdata... | {
"content_hash": "6da1901c0731455591d0e0e6009f365f",
"timestamp": "",
"source": "github",
"line_count": 171,
"max_line_length": 93,
"avg_line_length": 27.269005847953217,
"alnum_prop": 0.5359210808492387,
"repo_name": "sourcegraph/srcscan",
"id": "9ca677eeb31cb8eaebcaebb3d8b0bed85a74b114",
"size": ... |
use ruma_macros::EventContent;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize, EventContent)]
#[ruma_event(type = "m.macro.test", kind = State, state_key_type = String)]
pub struct MacroTestContent {
pub url: String,
}
fn main() {}
| {
"content_hash": "57f545a01f70cf388cd6732665f23d33",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 75,
"avg_line_length": 27.4,
"alnum_prop": 0.708029197080292,
"repo_name": "ruma/ruma",
"id": "c502c443a80e99c2664a2bc8ad9c980587972ab6",
"size": "274",
"binary": false,
... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly... | {
"content_hash": "a6c372df0887002ccb66efd73995672e",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 84,
"avg_line_length": 37.14705882352941,
"alnum_prop": 0.7545526524148852,
"repo_name": "Hitcents/monodroid-bindings",
"id": "e2a6edf277bc2659eb39874b662052b3048c56c7",
"s... |
package org.sourcecodemetrics.report.generators;
import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.... | {
"content_hash": "5cb6ea40856b710e2062ca3f395aa92b",
"timestamp": "",
"source": "github",
"line_count": 247,
"max_line_length": 213,
"avg_line_length": 40.955465587044536,
"alnum_prop": 0.5199683669434559,
"repo_name": "javatlacati/source-code-metrics",
"id": "2e3cb903cced46de4b1d66fc6d699d4d67d8104a... |
package org.springframework.data.jpa.domain.sample;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author Oliver Gierke
*/
@Entity
public class Customer {
@Id Long id;
}
| {
"content_hash": "2c8e205e8213e2f6b57b394b0d7c0669",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 51,
"avg_line_length": 14.214285714285714,
"alnum_prop": 0.7386934673366834,
"repo_name": "sdw2330976/Research-spring-data-jpa",
"id": "a6819e3af54bbb1f02f563fe06eb65f75cf30d... |
package amino_test
import (
"fmt"
amino "github.com/tendermint/go-amino"
)
func Example() {
defer func() {
if e := recover(); e != nil {
fmt.Println("Recovered:", e)
}
}()
type Message interface{}
type bcMessage struct {
Message string
Height int
}
type bcResponse struct {
Status int
Mes... | {
"content_hash": "f55ebce316e41b106b4b1a2ba8316f98",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 55,
"avg_line_length": 20.473684210526315,
"alnum_prop": 0.6666666666666666,
"repo_name": "tendermint/go-wire",
"id": "6459c24ee2e8f33cbf4b0f47559be56e53a5bb00",
"size": "1... |
For detailed instructions on using this sample, refer to [Extend an Android app to Google Assistant with App Actions (Level 2)](https://codelabs.developers.google.com/codelabs/appactions-2).
This sample Android app manages items on to-do lists. Users can add items to to-do lists, search for items by category, and view... | {
"content_hash": "25f4bd3ee4765760dd9839ecbb621aeb",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 190,
"avg_line_length": 58.67741935483871,
"alnum_prop": 0.794392523364486,
"repo_name": "actions-on-google/appactions-common-biis-kotlin",
"id": "0fc0fdc6569f2e9c26b137122c3... |
package com.android.ex.variablespeed;
import android.content.Context;
import android.media.MediaPlayer;
import android.net.Uri;
import java.io.IOException;
import javax.annotation.concurrent.Immutable;
/**
* Encapsulates the data source for a media player.
* <p>
* Is used to make the setting of the data source... | {
"content_hash": "17ff1a3f4e8010d5fa00c017ff39cd21",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 83,
"avg_line_length": 27.166666666666668,
"alnum_prop": 0.6687116564417178,
"repo_name": "JuudeDemos/android-sdk-20",
"id": "1c6a8cb5ea12c3fd518644664db591605800f90f",
"si... |
<?php
namespace pgb_liv\php_ms\Utility\Fragment;
use pgb_liv\php_ms\Constant\ChemicalConstants;
/**
* Generates the C ions from a peptide
*
* @author Andrew Collins
*/
class CFragment extends AbstractFragment implements FragmentInterface
{
/**
*
* {@inheritdoc}
*/
protected function getAd... | {
"content_hash": "a21e64c56433529c5a0dfcaf3e2d202f",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 153,
"avg_line_length": 19.59375,
"alnum_prop": 0.645933014354067,
"repo_name": "PGB-LIV/php-ms",
"id": "406d51d7bea4321fe445f395255e2bf83a12370d",
"size": "1230",
"binar... |
#pragma warning disable 612, 618
using System.Collections.Generic;
using System.Linq;
using Autofac;
using Wivuu.DataSeed;
namespace System.Data.Entity.Migrations
{
public static class SeedManagerExtensions
{
/// <summary>
/// Executes input DataSeed migrations in a transaction
/// </... | {
"content_hash": "976b48d525bb546986527015785150c8",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 109,
"avg_line_length": 34.367816091954026,
"alnum_prop": 0.46120401337792644,
"repo_name": "onionhammer/dataseed",
"id": "2ed559c21dff553d61ba748abda1fda26bf0ba41",
"size"... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {FilesAlertDialog} from './files_alert_dialog.js';
import {ListContainer} from './list_container.js';
/** @interface */
export class ActionModelUI... | {
"content_hash": "9c82cdedee4a8290fba6431b3229760e",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 73,
"avg_line_length": 27.352941176470587,
"alnum_prop": 0.6881720430107527,
"repo_name": "scheib/chromium",
"id": "41e10c5c5f35f563226fe3b8ef92e5dc24d9cdd0",
"size": "465"... |
<?xml version="1.0" encoding="utf-8"?>
<!--
~ The MIT License (MIT)
~
~ Copyright (c) 2016 yuriel<yuriel3183@gmail.com>
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
~ in the Software without... | {
"content_hash": "3e61d305eb64f102854ae25bec722e9c",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 82,
"avg_line_length": 47.43333333333333,
"alnum_prop": 0.7378777231201686,
"repo_name": "kiruto/kotlin-android-mahjong",
"id": "ab76de7f802c3c5f915e6048510eb81160d90383",
... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "4347b095079d2dd3c1417fa83bce714f",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "88718aebfdef7084f3e1cdbebd297bf986beac69",
"size": "176... |
<?php
class BrEASTFeedController extends Controller
{
public $layout="/layouts/breastfeed";
public function filters()
{
return array(
'accessControl', // perform access control for CRUD operations
);
}
/**
* Specifies the access control rules.
* This meth... | {
"content_hash": "795ea230ce9324090d70077e3bd6f9a8",
"timestamp": "",
"source": "github",
"line_count": 73,
"max_line_length": 91,
"avg_line_length": 26.589041095890412,
"alnum_prop": 0.5059247810407007,
"repo_name": "proxi24be/yii-sandbox",
"id": "a6e03db1698af55d30b257d96dd3c045bb244a4d",
"size":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.