text stringlengths 2 1.04M | meta dict |
|---|---|
layout: archive
title: "Documentation and tutorials"
date: 2016-08-03
modified:
tags: []
image:
feature:
teaser:
---
- [all functions and workflows]({{ site.baseurl }}/documentation/all/)
- [all Arbor tutorials]({{ site.baseurl }}/tutorials/)
| {
"content_hash": "d28771d1c6322de7aaa1fa2513aa8060",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 70,
"avg_line_length": 20.666666666666668,
"alnum_prop": 0.6975806451612904,
"repo_name": "arborworkflows/arborworkflows.github.com",
"id": "2090858f1cef57891f61d710445df791f... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... | {
"content_hash": "82945c4feef70fb3f608ac0680f2c8f5",
"timestamp": "",
"source": "github",
"line_count": 1308,
"max_line_length": 159,
"avg_line_length": 37.292813455657495,
"alnum_prop": 0.5768670944463806,
"repo_name": "DannyHex/Hexagon",
"id": "bef0dedfaee3f25183caae63f8e6be696d9fb999",
"size": "... |
First off, thank you for considering contributing to HAL. It's people like you that make HAL such a great tool. HAL is an open source project and we love to receive contributions from our community — you! There are many ways to contribute, from writing tutorials or blog posts, improving the documentation, submitting bu... | {
"content_hash": "4f47d0e1b6d677c84da7e799082f00e2",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 409,
"avg_line_length": 35.69747899159664,
"alnum_prop": 0.7641242937853108,
"repo_name": "hpehl/hal.next",
"id": "2e69f3cca128de76123c6b4f75a389d75f3a849d",
"size": "4250... |
/**
* Policy Mappings
* (sails.config.policies)
*
* Policies are simple functions which run **before** your controllers.
* You can apply one or more policies to a given controller, or protect
* its actions individually.
*
* Any policy file (e.g. `api/policies/authenticated.js`) can be accessed
* below by its f... | {
"content_hash": "cfb25567aa27a73ed46dda44e0e767d8",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 89,
"avg_line_length": 40.26315789473684,
"alnum_prop": 0.4588235294117647,
"repo_name": "slims2016/slims-beta",
"id": "aff97f1fc952c6c93620394ae38b447ce3e0788d",
"size": "... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "e8810f99152c190619f973f1f800bd7e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "8e182702e34056804251dce6d87fd98e950cbda4",
"size": "177... |
using System;
using System.Reflection;
using Nelibur.ObjectMapper.CodeGenerators.Emitters;
namespace Nelibur.ObjectMapper.Mappers.Caches
{
internal sealed class MapperCacheItem
{
public int Id { get; set; }
public Mapper Mapper { get; set; }
public IEmitterType EmitMapMethod(IEmitterT... | {
"content_hash": "8eef293eeb5b67a1ab6430c6a13bee2e",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 130,
"avg_line_length": 42.43478260869565,
"alnum_prop": 0.7038934426229508,
"repo_name": "iEmiya/TinyMapper",
"id": "c56e39ce4aaede93b85d0082cfc3c4aaad1d49f6",
"size": "97... |
require 'test/unit'
require 'yaml'
module Syck
class TestSet < Test::Unit::TestCase
def setup
@set = YAML::Set.new
@set['foo'] = 'bar'
@set['bar'] = 'baz'
end
def test_to_yaml
assert_match(/!set/, @set.to_yaml)
end
def test_roundtrip
assert_equal(@set, YAML.load(YA... | {
"content_hash": "3b348bf01b15d431b27aa27e62bc4c19",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 56,
"avg_line_length": 18.161290322580644,
"alnum_prop": 0.5754884547069272,
"repo_name": "richo/unrubby",
"id": "d58f92e53f49bc6b954810946144ff362d896860",
"size": "563",
... |
package org.apache.commons.digester3.plugins;
import java.util.Properties;
import org.apache.commons.logging.Log;
import org.apache.commons.digester3.Digester;
/**
* Represents a Class that can be instantiated by a PluginCreateRule, plus info on how to load custom digester rules for
* mapping xml into that plugg... | {
"content_hash": "49f60ab6027ef833fe5c104860361ea6",
"timestamp": "",
"source": "github",
"line_count": 230,
"max_line_length": 120,
"avg_line_length": 32.76521739130435,
"alnum_prop": 0.5908970276008493,
"repo_name": "apache/commons-digester",
"id": "46a495227ec2b43b8642ed771b0a65cd6fbadf94",
"siz... |
package com.astrazeneca.seq2c.input;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class SampleStatisticsTest {
@DataProvider(name = "lines")
Object[][] lineData() {
return new Object[][] {
{"seq2c-test", "TP... | {
"content_hash": "221c2f65151433747fbebae94f1aff62",
"timestamp": "",
"source": "github",
"line_count": 137,
"max_line_length": 121,
"avg_line_length": 37.10948905109489,
"alnum_prop": 0.5318646734854445,
"repo_name": "AstraZeneca-NGS/Seq2CJava",
"id": "552727408eaef14d674f720732b012ce07fe9d04",
"s... |
package javaobject;
import java.util.*;
import org.apache.geode.cache.CacheLoader;
import org.apache.geode.cache.EntryEvent;
import org.apache.geode.cache.RegionEvent;
import org.apache.geode.cache.CacheFactory;
import org.apache.geode.cache.Declarable;
import org.apache.geode.internal.cache.tier.sockets.CacheClientPr... | {
"content_hash": "c2d59ac93f1db9baf6945cfb28430a29",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 95,
"avg_line_length": 31.068181818181817,
"alnum_prop": 0.7114118507681053,
"repo_name": "mhansonp/geode-native",
"id": "b44d3bf9fbfc46352c5eaacce8848b6859834267",
"size":... |
package com.niomongo.processing;
import com.niomongo.RequestProcessor;
/**
* Created with IntelliJ IDEA.
* User: Yevgen Bushuyev
* Date: 18.02.15.
*/
public interface Condition {
boolean check(RequestProcessor requestProcessor);
}
| {
"content_hash": "3937e12a68a609de03862d844c214c83",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 51,
"avg_line_length": 19.916666666666668,
"alnum_prop": 0.7531380753138075,
"repo_name": "bushuyev/niomongo",
"id": "2b17674ffc657bec071b01a247f3ab405cd2053f",
"size": "23... |
<?php
namespace Ens\JobeetBundle\Controller;
use Sonata\AdminBundle\Controller\CRUDController as Controller;
use Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery as ProxyQueryInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
class JobAdminController extends Controller
{
public function batchAc... | {
"content_hash": "2af96e5f223f8ff2712ea51b92a2495f",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 168,
"avg_line_length": 35.06349206349206,
"alnum_prop": 0.6441828881846989,
"repo_name": "kjanczyk/praktyka",
"id": "4a33d763e1a5d625efea7519ddb10117f21ee1f1",
"size": "22... |
import rgplot
| {
"content_hash": "0b5fe660760c0be6929838f2fd9ddbe6",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 13,
"avg_line_length": 14,
"alnum_prop": 0.8571428571428571,
"repo_name": "vjuranek/rg-offline-plotting",
"id": "a08f452881e2e561a36ca7367631555bf4f12b85",
"size": "14",
"... |
package org.eclipse.bpel.ui.details.providers;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import org.eclipse.bpel.ui.util.XSDUtils;
import org.eclipse.wst.wsdl.Definition;
import org.eclipse.wst.wsdl.Types;
import org.eclipse.xsd.XSDComplexTypeDefinition;
import org.eclipse.xsd.XSDNa... | {
"content_hash": "cf0acf29467f728635823d8da3450676",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 107,
"avg_line_length": 26.09655172413793,
"alnum_prop": 0.7069238900634249,
"repo_name": "asankas/developer-studio",
"id": "14ced1ab149da33de3da555d7efbfbc1cfbf355a",
"si... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package nl.fontys.epic.core.impl;
import java.util.HashMap;
import java.util.logging.Logger;
import nl.fontys.epic.core.GameObject;
im... | {
"content_hash": "9853e10b3367b1eb982f4f330b7cec46",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 93,
"avg_line_length": 23.836206896551722,
"alnum_prop": 0.6242314647377939,
"repo_name": "kerko/epic",
"id": "4e2798e86968c7c392fc18b22796fb872e6ff3f8",
"size": "2765",
... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="lang... | {
"content_hash": "58433d808d824bd337081d3b9a4b8090",
"timestamp": "",
"source": "github",
"line_count": 412,
"max_line_length": 999,
"avg_line_length": 42.29368932038835,
"alnum_prop": 0.6039024390243902,
"repo_name": "statsmodels/statsmodels.github.io",
"id": "8e87c6a4bf0231a7993631ede27c5d126ab5af6... |
from __future__ import unicode_literals, print_function
import frappe
import hashlib
from frappe.model.db_schema import DbManager
from frappe.installer import get_root_connection
from frappe.database import Database
import os
from markdown2 import markdown
from bs4 import BeautifulSoup
import jinja2.exceptions
from s... | {
"content_hash": "edfba66c884b1979b824a893476d1fa0",
"timestamp": "",
"source": "github",
"line_count": 298,
"max_line_length": 109,
"avg_line_length": 30.738255033557046,
"alnum_prop": 0.6354803493449782,
"repo_name": "tmimori/frappe",
"id": "45971820c0c91f8d35cdaba0834fc93548b9c0a2",
"size": "928... |
require('./base');
describe('Table tests', function() {
describe('Constructor values', function() {
it('Test various values', function(done) {
ObjectManager.get('com://home/menu.database.table.items')
.then(function(table) {
table.should.have.property('name',... | {
"content_hash": "ace520096c13a1bdc13e8ee7b3651625",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 106,
"avg_line_length": 33.73913043478261,
"alnum_prop": 0.4793814432989691,
"repo_name": "polidog/raddish",
"id": "44856c9263babd2173f56d75f4eb2cb499e86be3",
"size": "1552... |
Tchaik is an open source music organisation and streaming system. The backend is written in [Go](http://golang.org), the frontend is built using [React](https://facebook.github.io/react/), [Flux](https://facebook.github.io/flux/) and [PostCSS](https://github.com/postcss/postcss).
 {
echo >&2 "${BASH_SOURCE[1]}:${BASH_LINENO[0]}: note: $*"
}
# Output a clickable message prefixed with a warning symbol (U+26A0)
# and highlighted yellow. This will increase the overall warning
# count. A non-zero value for the variable ERRORS_ONLY will force
# warnings to be treated as errors.
if ((... | {
"content_hash": "e2cb22db572a74b34e7db509c7f905f3",
"timestamp": "",
"source": "github",
"line_count": 411,
"max_line_length": 365,
"avg_line_length": 36.39659367396594,
"alnum_prop": 0.6085299819506651,
"repo_name": "ethanneff/organize",
"id": "200c823fb4c3557b50f17b845355c26dc088481b",
"size": "... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache Lic... | {
"content_hash": "dbb3d1f87ae91c87c715e6074be0b695",
"timestamp": "",
"source": "github",
"line_count": 71,
"max_line_length": 201,
"avg_line_length": 37.54929577464789,
"alnum_prop": 0.6436609152288072,
"repo_name": "pmoerenhout/camel",
"id": "71b6dc2a18e13a4c2923cadff74650de8dc979b9",
"size": "26... |
layout: press
title: "Syrian Activist Bassel Khartabil Reportedly Killed by Assad Regime"
source: "Al Bawaba"
link: https://www.albawaba.com/news/syrian-activist-bassel-khartabil-reportedly-killed-assad-regime-1004722
categories: [ press ]
tags: [ ]
---
| {
"content_hash": "7a033fed6a27c2a431ba4a9f911eb613",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 107,
"avg_line_length": 36.285714285714285,
"alnum_prop": 0.7755905511811023,
"repo_name": "Fabricatorz/freebassel.org",
"id": "027ba582ad9718c59c72101517d13ccf680b4a6d",
"s... |
#include <ModuleAnalyzerNodes.h>
#include <algorithm>
using namespace swift;
using namespace ide;
using namespace api;
namespace fs = llvm::sys::fs;
namespace path = llvm::sys::path;
namespace {
static StringRef getAttrName(DeclAttrKind Kind) {
switch (Kind) {
#define DECL_ATTR(NAME, CLASS, ...) ... | {
"content_hash": "828b32c8831f72a7dfaae8ccccbde79a",
"timestamp": "",
"source": "github",
"line_count": 1963,
"max_line_length": 93,
"avg_line_length": 34.256749872643915,
"alnum_prop": 0.6592213663266216,
"repo_name": "alblue/swift",
"id": "f084e9f42356e2987a285e8d92b0b4d80841191b",
"size": "67246... |
package org.opencb.cellbase.lib.impl.core;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.mongodb.client.model.Filters;
import com.mongodb.client.model.Updates;
import org.bson.BsonDocument;
import org.bson.Document;
import org.bson.conversio... | {
"content_hash": "792b70855c81bcc3d4ecf52cc3f4bee6",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 129,
"avg_line_length": 32.63265306122449,
"alnum_prop": 0.7410881801125704,
"repo_name": "opencb/cellbase",
"id": "f91ce65495b31844c88bc435e9eba7554f190f55",
"size": "3792... |
using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
namespace Pook.SlackAPI
{
public class QueueHandler
{
public static QueueHandler<T> Start<T>(Func<T, Task> handler, CancellationToken? token = nu... | {
"content_hash": "e2713e7e059d0312fde258259c2335d0",
"timestamp": "",
"source": "github",
"line_count": 69,
"max_line_length": 134,
"avg_line_length": 29.17391304347826,
"alnum_prop": 0.7153502235469449,
"repo_name": "AndyPook/Slack",
"id": "b06cf2b5c9d0ce32e4e8af6f582749b1bfccfa47",
"size": "2013"... |
namespace Microsoft.Win32.SafeHandles
{
public sealed partial class SafeProcessHandle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
{
public SafeProcessHandle(System.IntPtr existingHandle, bool ownsHandle) : base(default(bool)) { }
public override bool IsInvalid { get { throw n... | {
"content_hash": "94190e0bf8bc4d3a921d6956ded853de",
"timestamp": "",
"source": "github",
"line_count": 264,
"max_line_length": 187,
"avg_line_length": 57.85606060606061,
"alnum_prop": 0.6685216708131465,
"repo_name": "Jiayili1/corefx",
"id": "8e33640e9fb9dcc475778f9379f1f634bf109259",
"size": "157... |
repetier-library
================
A library to communicate with 3D printers using repetier-firmware
| {
"content_hash": "33f704b391226e2d5f523c0adc93e678",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 65,
"avg_line_length": 25.25,
"alnum_prop": 0.7029702970297029,
"repo_name": "fablab-bayreuth/repetier-library",
"id": "eed64c40a46bbf3c92c388e459160893c0c857a8",
"size": "1... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qcert: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | {
"content_hash": "4b8b964e0cc77e60711707e5f8ad2232",
"timestamp": "",
"source": "github",
"line_count": 166,
"max_line_length": 159,
"avg_line_length": 41.37951807228916,
"alnum_prop": 0.5319551608676664,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "e6bb85706dac30e3802c69ea49a881cb108bbdd2",
... |
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpassword in the configuration file:\n"
"%s\n"
"It is recommended you use the following random password:\n"
"rpcuser=bitcoinrpc\n"
"rpcpassword=%s\n"
"(you do not need to remember this password)\n"
"The username a... | {
"content_hash": "0023418b0f149ddc041ac23af1397bc3",
"timestamp": "",
"source": "github",
"line_count": 291,
"max_line_length": 109,
"avg_line_length": 65.70446735395188,
"alnum_prop": 0.7342050209205021,
"repo_name": "cnote-coin/cnote",
"id": "1073b6a472618246dfe54790ae72c77606cc4478",
"size": "19... |
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Apworks.Events;
using System.Linq;
using Apworks.Snapshots;
namespace Apworks.Repositories
{
public class EventSourcingDomainRepository : EventPublishingDomainRepository
{
private readonly IEventStore eventSt... | {
"content_hash": "7e51397ba1ef7080bd9449e9358d3cd5",
"timestamp": "",
"source": "github",
"line_count": 139,
"max_line_length": 174,
"avg_line_length": 40.719424460431654,
"alnum_prop": 0.6128975265017668,
"repo_name": "daxnet/apworks-core",
"id": "59dbac365966a9a41c201499ea6ccf56b706b571",
"size":... |
#import <FBSnapshotTestCase/FBSnapshotTestCasePlatform.h>
#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
/**
Similar to our much-loved XCTAssert() macros. Use this to perform your test. No need to write an explanation, though.
@param view The view to snapshot
@param identif... | {
"content_hash": "5b1536aa8e6ce8b84687d0973551e6dd",
"timestamp": "",
"source": "github",
"line_count": 133,
"max_line_length": 181,
"avg_line_length": 49.45112781954887,
"alnum_prop": 0.7507982362779383,
"repo_name": "soppysonny/wikipedia-ios",
"id": "e4bd1170736a260a04a82f2cc1187e4f73b9c58c",
"si... |
<!--
Safe sample
input : get the field userData from the variable $_GET via an object
sanitize : use of the function htmlentities. Sanitizes the query but has a high chance to produce unexpected results
File : use of untrusted data in the body
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, w... | {
"content_hash": "52697af1a1b502e3b4a5466904184d7d",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 116,
"avg_line_length": 22.936507936507937,
"alnum_prop": 0.7550173010380623,
"repo_name": "stivalet/PHP-Vulnerability-test-suite",
"id": "0e5944770093b36748252bc8502be7a4d4c... |
<?php
// DIC configuration
$container = $app->getContainer();
// view renderer
$container['renderer'] = function ($c) {
$settings = $c->get('settings')['renderer'];
return new Slim\Views\PhpRenderer($settings['template_path']);
};
// monolog
$container['logger'] = function ($c) {
$settings =... | {
"content_hash": "18595428a9faab24659132c9cfb1cd96",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 126,
"avg_line_length": 37.73529411764706,
"alnum_prop": 0.6679657053780202,
"repo_name": "pjuros/slim3-skeleton",
"id": "7db18053e08e1692ee1945e4e2b6c840c2862302",
"size":... |
package org.jetbrains.plugins.scala
package lang
package psi
package api
package statements
package params
import com.intellij.psi.PsiElement
import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes
import org.jetbrains.plugins.scala.lang.psi.types._
import org.jetbrains.plugins.scala.lang.psi.types.nonvalue.Para... | {
"content_hash": "b66b1e3076c0cb5a929c660c21f4b78e",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 97,
"avg_line_length": 31.11904761904762,
"alnum_prop": 0.7934200459066565,
"repo_name": "JetBrains/intellij-scala-historical",
"id": "6f1830dfd706fc6db4fc1ee21c96671dc1e9752... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MusicPimp.ViewModels
{
public class MotdVM : ViewModelBase
{
private string motd = "No messages today!";
public string Motd
{
get { return motd; }
... | {
"content_hash": "e1973da216eeb412a5171d5a858ba2b6",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 51,
"avg_line_length": 20.652173913043477,
"alnum_prop": 0.5810526315789474,
"repo_name": "malliina/musicpimp-uwp",
"id": "e130c99611702d636b13b0e90e8857b90a4e52f1",
"size"... |
Compute the coordinates of a circle placed at a given latitude and longitude.
# Usage
call MakeCircleCoord (`coord`, `lat`, `lon`, `theta0`, `cinterval`, `cnum`, `exitstatus`)
# Parameters
`coord` : output, real\*8, dimension(360/`cinterval`, 2)
: The latitude (:,1) and longitude (:,2) coordinates of the circle i... | {
"content_hash": "974015fda404ef27ba95f437aa54cd7d",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 410,
"avg_line_length": 46.25,
"alnum_prop": 0.7429429429429429,
"repo_name": "ioshchepkov/SHTOOLS",
"id": "14950218a67d97c5f7fffdaf79f21e66082f3f47",
"size": "1684",
"bi... |
import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.node import PipeUnderground
log = logging.getLogger(__name__)
class TestPipeUnderground(unittest.TestCase):
def setUp(self):
self.fd, self.path = tempfile.mkstemp()... | {
"content_hash": "69f8f8e91f575fbc3255043ab6fb37fd",
"timestamp": "",
"source": "github",
"line_count": 74,
"max_line_length": 139,
"avg_line_length": 42.36486486486486,
"alnum_prop": 0.6889952153110048,
"repo_name": "rbuffat/pyidf",
"id": "2e951d342ca9df4737920641062aed282e12cb49",
"size": "3135",... |
<?xml version="1.0"?>
<!--
-->
<config>
<sections>
<web>
<groups>
<default>
<fields>
<cms_home_page translate="label" module="cms">
<label>CMS Home Page</label>
<frontend_type>sel... | {
"content_hash": "efe4dca4683190eaee3b0ebaedf79952",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 107,
"avg_line_length": 49.46341463414634,
"alnum_prop": 0.4334319526627219,
"repo_name": "cesarfelip3/cleverva",
"id": "f7f0404f560b40dc6ba8b4157020611fc37c7b33",
"size": ... |
# frozen_string_literal: true
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render inva... | {
"content_hash": "1e73a13c40c2a46df78339d7abe4d6c9",
"timestamp": "",
"source": "github",
"line_count": 260,
"max_line_length": 154,
"avg_line_length": 49.13076923076923,
"alnum_prop": 0.7418976045091592,
"repo_name": "kathyonu/rails-stripe-rspec-tests",
"id": "70790bf5b996f9051c40b6bc32329611649f747... |
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.account.models import EmailAddress
class MyAccountAdapter(DefaultAccountAdapter):
def pre_social_login(self, request, sociallogin):
"""
Invoked just after a user successfully authenticates via a
... | {
"content_hash": "0fdf5edaf16a68e52653586005c6e2d6",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 80,
"avg_line_length": 40.04081632653061,
"alnum_prop": 0.663098878695209,
"repo_name": "c24b/playlab",
"id": "6520070f55ad1281630c486f1b2f2a95511497d5",
"size": "1990",
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>AssemblyInfoReplacementParams - 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,... | {
"content_hash": "ae0c66ab50e5cad93b4506804e043aeb",
"timestamp": "",
"source": "github",
"line_count": 252,
"max_line_length": 209,
"avg_line_length": 46.37301587301587,
"alnum_prop": 0.5610987506417936,
"repo_name": "dcastro/AutoFixture",
"id": "235f06e5529c34012215baa57299afaf7ccd63ec",
"size": ... |
using System;
using System.Linq;
using System.Net.Http;
using Hyak.Common;
using Microsoft.Azure;
using Microsoft.Azure.Management.Sql;
namespace Microsoft.Azure.Management.Sql
{
/// <summary>
/// The Windows Azure SQL Database management API provides a RESTful set of
/// web services that interact with Wi... | {
"content_hash": "f27004c5706080a7d35c942d9a1b1402",
"timestamp": "",
"source": "github",
"line_count": 535,
"max_line_length": 113,
"avg_line_length": 40.56448598130841,
"alnum_prop": 0.6100359413878905,
"repo_name": "Matt-Westphal/azure-sdk-for-net",
"id": "109e0e965492c9dd02f2eccd50377997407c7802"... |
package org.hisp.dhis.datasetreport;
import java.util.Map;
import java.util.Set;
import org.hisp.dhis.dataset.DataSet;
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.period.Period;
/**
* @author Lars Helge Overland
*/
public interface DataSetReportStore
{
String SEPARATOR = "-";... | {
"content_hash": "156ca931a6bc6fdebfb218fe3478f510",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 134,
"avg_line_length": 38.34848484848485,
"alnum_prop": 0.6878704069537732,
"repo_name": "HRHR-project/palestine",
"id": "c30efb0a5061da822edd2a9f4bb672fa81ebe91c",
"size"... |
__credits__ = ["Daniel McDonald", "Greg Caporaso", "Doug Wendel",
"Jai Ram Rideout"]
| {
"content_hash": "977f8edb1965566c03e194da08d6bd7e",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 65,
"avg_line_length": 50,
"alnum_prop": 0.56,
"repo_name": "biocore/pyqi",
"id": "87fe705947355ce3e5afe5bf02d0e8553bff9737",
"size": "473",
"binary": false,
"copies": "... |
require 'simplecov'
if ENV['CI']
require 'coveralls'
Coveralls.wear!('rails')
end
SimpleCov.start do
add_filter 'spec/dummy'
add_group 'Controllers', 'app/controllers'
add_group 'Models', 'app/models'
add_group 'Serializers', 'app/serializers'
add_group 'Libraries', 'lib'
end
ENV['RAILS_ENV'] = 'test'
... | {
"content_hash": "9bb96711331045678fec14339faab846",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 95,
"avg_line_length": 23.894736842105264,
"alnum_prop": 0.7217327459618208,
"repo_name": "spree-contrib/spree_api_v2",
"id": "1dbaa79f9bb4baa0876ede4a59c569fb3fd815e5",
"s... |
{% load i18n thumbnail sekizai_tags %}
{% addtoblock "css" %}<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}cmsplugin_filer_folder/css/slideshow.css" media="screen, projection" />{% endaddtoblock "css" %}
{% addtoblock "js" %}<script type="text/javascript" src="{{ STATIC_URL }}cmsplugin_filer_folder/js/jq... | {
"content_hash": "f3392592c569861ed0ab59b2f478ec35",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 179,
"avg_line_length": 34.70909090909091,
"alnum_prop": 0.5133577789418544,
"repo_name": "jschneier/cmsplugin-filer",
"id": "119711c9c97251637e732275791fce9280bb90f0",
"si... |
void DumpHex(void *pData, int byteLen) {
if(byteLen <= 0) return;
uint8_t *head = (uint8_t*) pData;
printf("The %d bytes starting at 0x%"PRIxPTR " are:", byteLen, (uintptr_t)pData);
for(int ind = 0; ind < byteLen; ++ind) {
printf(" %02" PRIx8, head[ind]);
}
printf("\n");
}
int main(int argc, char **argv) {... | {
"content_hash": "8efe91dbc1eef48bb66f3c9063262168",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 82,
"avg_line_length": 24.395833333333332,
"alnum_prop": 0.659265584970111,
"repo_name": "tavaresdong/courses-notes",
"id": "c96f20571762bc3723fc8ef5afb290bfaa65f0c3",
"siz... |
package org.springframework.messaging.simp;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import org.springframework.lang.Nullable;
import org.springframework.messaging.Message;
import org.springframework.messaging.handler.AbstractMessageCondition;
import org.springframework.util.... | {
"content_hash": "1fca801bef4fe74f0b6091e2e7e2ce16",
"timestamp": "",
"source": "github",
"line_count": 86,
"max_line_length": 112,
"avg_line_length": 27.197674418604652,
"alnum_prop": 0.7725523728088927,
"repo_name": "spring-projects/spring-framework",
"id": "522cd82fc7005c25df3c1b4a5850ceec949ac1d9... |
package com.danielcotter.officeprank.web.util;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class EncryptionUtil {
public static String shaHash(String message)
throws NoSuchAlgorithmException {
MessageDigest md = MessageDigest.getInstance("SHA-512");
byte[] hash =... | {
"content_hash": "71493290076886424af17eee4a0b0f78",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 58,
"avg_line_length": 25.333333333333332,
"alnum_prop": 0.7368421052631579,
"repo_name": "danielcdev/officeprank-web",
"id": "18922b7ef82d2b5b1bfca8f97ef05c553e7ed3d2",
"s... |
package com.jetbrains.python.psi;
import com.jetbrains.python.toolbox.Substring;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.List;
/**
* @author vlan
*/
public interface StructuredDocString {
String getSummary();
String getDescription(); // for format... | {
"content_hash": "bd342fdb8d687bfe50866171f0bec2cf",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 126,
"avg_line_length": 26.897435897435898,
"alnum_prop": 0.7402287893231649,
"repo_name": "nicolargo/intellij-community",
"id": "748fd22de426a9203fe7478dbece06aad88504b6",
... |
#include "../kd_library.h"
/*
// xmPlatformGetTimeUST : Get the current unadjusted system time in platform specific.
KDust xmPlatformGetTimeUST ( KDvoid )
{
long long ust = 0;
SystemTime::GetTicks ( ust );
ust *= 1000000LL;
return (KDust) ust;
}
// xmPlatformUSTAtEpoch : Get the UST corresponding to KDtime ... | {
"content_hash": "1c3bedc0ac13cfeacb540b87f6acf64f",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 105,
"avg_line_length": 21.65625,
"alnum_prop": 0.7171717171717171,
"repo_name": "mcodegeeks/OpenKODE-Framework",
"id": "c1d45401949888ef7c360c92909cbd044cd67a41",
"size": ... |
package com.twitter.finatra.http.tests.integration.doeverything.main.services
import com.google.inject.assistedinject.Assisted
import com.twitter.inject.annotations.Flag
import javax.inject.{Inject, Named}
import com.twitter.util.Duration
class ComplexService @Inject() (
exampleService: DoEverythingService,
defau... | {
"content_hash": "f9f8ea8fb711f9a0d8f413339b3998d0",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 83,
"avg_line_length": 32.73913043478261,
"alnum_prop": 0.7357237715803453,
"repo_name": "twitter/finatra",
"id": "d4e2c3910d53af8b331e4ba77f9d1d300138da52",
"size": "753",... |
#import "IDEGroup.h"
@interface IDEGroup (InspectorProperties)
+ (id)keyPathsForValuesAffectingIdeInspectedIsNameEditable;
- (id)applicableInspectorsForCategory:(id)arg1 suggestion:(id)arg2;
- (BOOL)ideInspectedIsNameEditable;
- (id)ideInspectedRelativeLocationContainingFolderPlaceholder;
- (id)ideInspectedRelativeL... | {
"content_hash": "515a40769e59796cc85d76a233b3321b",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 67,
"avg_line_length": 32.785714285714285,
"alnum_prop": 0.8540305010893247,
"repo_name": "alloy/AxeMode",
"id": "a78df109612f3c82837bee7e65f4e55a41aeafb5",
"size": "597",
... |
package com.assylias.jbloomberg;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util.concurrent.TimeUnit;
import static org.testng.Assert.assertTrue;
@Test(groups = "requires-bloomberg")
public class UserEntitlementsResultParserTe... | {
"content_hash": "f44968e7d57b47e53673f3074cfcd03f",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 86,
"avg_line_length": 28.571428571428573,
"alnum_prop": 0.72,
"repo_name": "assylias/jBloomberg",
"id": "17182d80c162e4bfe9b0a10d8fde7360a3cc0e1e",
"size": "1000",
"bina... |
// See http://www.boost.org/libs/config for the most recent version.
// Test file for macro BOOST_NO_IOSTREAM
// This file should not compile, if it does then
// BOOST_NO_IOSTREAM should not be defined.
// See file boost_no_iostream.ipp for details
// Must not have BOOST_ASSERT_CONFIG set; it defeats
// th... | {
"content_hash": "a1e540a30bac7dcd8a6ce533107efdd1",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 69,
"avg_line_length": 23.428571428571427,
"alnum_prop": 0.6920731707317073,
"repo_name": "Franky666/programmiersprachen-raytracer",
"id": "c2cac7efcf075f9fa1e66499684e620fe6... |
//Dependencies
#include "stm32f2xx.h"
#include "stm32f2xx_gpio.h"
#include "stm32f2xx_rcc.h"
#include "core/net.h"
#include "ext_int_driver.h"
#include "debug.h"
/**
* @brief External interrupt line driver
**/
const ExtIntDriver extIntDriver =
{
extIntInit,
extIntEnableIrq,
extIntDisableIrq
};
/**
* ... | {
"content_hash": "d8b25da960651698131081c82b0c7b87",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 67,
"avg_line_length": 21.417391304347827,
"alnum_prop": 0.706049533089728,
"repo_name": "miragecentury/M2_SE_RTOS_Project",
"id": "97f0e35d735a9d085bee90fa55ec9cb974d8f712"... |
#ifndef _ASM_ARM_MODULE_H
#define _ASM_ARM_MODULE_H
/*
* This file contains the arm architecture specific module code.
*/
#endif /* _ASM_ARM_MODULE_H */
| {
"content_hash": "315c1841d53aa0cea253ddbdebe6c3b6",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 64,
"avg_line_length": 22.285714285714285,
"alnum_prop": 0.6923076923076923,
"repo_name": "impedimentToProgress/UCI-BlueChip",
"id": "1157f178daec0c88062612c967941f2564999a00"... |
layout: page
title: Fungsi
category: basics
order: 6
lang: my
---
Di dalam Elixir dan kebanyakan bahasa aturcara kefungsian, fungsi adalah rakyat kelas pertama. Kita akan belajar mengenai jenis-jenis fungsi di dalam Elixir, apa yang menyebabkan mereka berbeza, dan bagaimana menggunakan mereka.
{% include toc.html %}... | {
"content_hash": "befc0ed0bfb310a3f3f2aab9612bbc4f",
"timestamp": "",
"source": "github",
"line_count": 208,
"max_line_length": 438,
"avg_line_length": 28.89903846153846,
"alnum_prop": 0.7266677757444685,
"repo_name": "ElixirVietnam/elixir-school",
"id": "5d0f56eb031335428843cc04307beeafd17ae136",
... |
#include "jerryscript-mbed-util/logging.h"
#include "jerryscript-mbed-event-loop/EventLoop.h"
#include "jerryscript-mbed-library-registry/wrap_tools.h"
#include "mbed.h"
/**
* InterruptIn#rise (native JavaScript method)
*
* Register a rise callback for an InterruptIn
*
* @param cb Callback function, or null to ... | {
"content_hash": "cdcf98db9b05f637cef70d1747c1e7ca",
"timestamp": "",
"source": "github",
"line_count": 205,
"max_line_length": 108,
"avg_line_length": 33.01951219512195,
"alnum_prop": 0.6900576156005318,
"repo_name": "tilmannOSG/jerryscript",
"id": "dcdcf16cfca1931a291e110cae82a77a2b4b4ebf",
"size... |
package io.astefanutti.metrics.cdi.se;
import com.codahale.metrics.health.HealthCheckRegistry;
import io.astefanutti.metrics.cdi.MetricsExtension;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.junit.InSequence;
import org.jboss.shr... | {
"content_hash": "eebac771914d9466a909527224dd23c8",
"timestamp": "",
"source": "github",
"line_count": 61,
"max_line_length": 112,
"avg_line_length": 33.77049180327869,
"alnum_prop": 0.7325242718446602,
"repo_name": "astefanutti/metrics-cdi",
"id": "00fae7cd1db7c59368ca9464a5897be32030cd09",
"size... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "29705da59d7f30754c2f344e9a2defbe",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "52b088d083880c6cecea8dad71c54427d4e4dfdd",
"size": "18... |
package io.fabianterhorst.isometric.shapes;
import io.fabianterhorst.isometric.Path;
import io.fabianterhorst.isometric.Point;
import io.fabianterhorst.isometric.Shape;
/**
* Created by fabianterhorst on 02.04.17.
*/
public class Pyramid extends Shape {
public Pyramid(Point origin) {
this(origin, 1, 1... | {
"content_hash": "a7b0c6c41ec739959045c8574cb17d9b",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 97,
"avg_line_length": 32.857142857142854,
"alnum_prop": 0.5615942028985508,
"repo_name": "FabianTerhorst/Isometric",
"id": "c321e7f56ae8964538a1668938ce63df5a8e0bb8",
"siz... |
package com.whu.dailyexercise.activities;
import com.baidu.location.BDLocation;
import com.baidu.location.BDLocationListener;
import com.baidu.location.LocationClient;
import com.baidu.location.LocationClientOption;
import com.baidu.location.LocationClientOption.LocationMode;
import com.whu.dailyexercise.R;... | {
"content_hash": "23e0b89e8420d30cd0529d40123fbf4a",
"timestamp": "",
"source": "github",
"line_count": 190,
"max_line_length": 84,
"avg_line_length": 27.321052631578947,
"alnum_prop": 0.7108456944712002,
"repo_name": "liulin2012/DailyExercise",
"id": "345dc369faf2204b1c3c7ef91de99cd69f1b9fc2",
"si... |
import {PartialObserver} from './Observer';
import {Operator} from './Operator';
import {Subscriber} from './Subscriber';
import {Subscription, AnonymousSubscription, TeardownLogic} from './Subscription';
import {root} from './util/root';
import {toSubscriber} from './util/toSubscriber';
import {IfObservable} from './o... | {
"content_hash": "020f365da77d80c64dee43801b80f291",
"timestamp": "",
"source": "github",
"line_count": 170,
"max_line_length": 128,
"avg_line_length": 37.71764705882353,
"alnum_prop": 0.674516531503431,
"repo_name": "tzerb/Learning",
"id": "1a256e6681bebb8353d92fd627718a12a940c0dc",
"size": "6412"... |
static Animation* prv_create_bump_settle_animation(Layer *layer);
static Animation* prv_create_slide_settle_animation(Layer *layer);
static int prv_get_pixels_for_bump_settle(int anim_percent_complete) {
if (anim_percent_complete) {
return SETTLE_HEIGHT_DIFF - ((SETTLE_HEIGHT_DIFF * anim_percent_complete) / 100)... | {
"content_hash": "154f0bb32d24bf0d0ef4d8a032055e0f",
"timestamp": "",
"source": "github",
"line_count": 641,
"max_line_length": 148,
"avg_line_length": 34.135725429017164,
"alnum_prop": 0.684795027649559,
"repo_name": "Dragoon013/ui-patterns",
"id": "d46040d4398378cc3f5c4d1520a2b0c78270f52c",
"size... |
<component name="libraryTable">
<library name="animated-vector-drawable-24.2.1">
<CLASSES>
<root url="jar://$PROJECT_DIR$/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.2.1/jars/classes.jar!/" />
<root url="file://$PROJECT_DIR$/app/build/intermediates/exploded-aar... | {
"content_hash": "211ce50b56ab74f59f81f45459b6e55e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 183,
"avg_line_length": 64.15384615384616,
"alnum_prop": 0.7110311750599521,
"repo_name": "imishx/ActivityRouter",
"id": "f83541c8da80784bb157558b1f636d65be7951bb",
"size":... |
package kafka.controller
import java.util.Properties
import java.util.concurrent.LinkedBlockingQueue
import kafka.api.RequestOrResponse
import kafka.common.TopicAndPartition
import kafka.integration.KafkaServerTestHarness
import kafka.server.{KafkaConfig, KafkaServer}
import kafka.utils._
import org.apache.kafka.co... | {
"content_hash": "f2f19ee4f5e015c4a9a89cf4a8132bf0",
"timestamp": "",
"source": "github",
"line_count": 164,
"max_line_length": 113,
"avg_line_length": 34.3780487804878,
"alnum_prop": 0.7025540971975878,
"repo_name": "geeag/kafka",
"id": "6430b33ad80f9b1efb473cdc667d113a4f8c6158",
"size": "6439",
... |
namespace Obscureware.Console.Commands.Internals.Converters
{
using System;
using System.Globalization;
[ArgumentConverterTargetType(typeof(Decimal))]
internal class DecimalArgumentConverter : ArgumentConverter
{
/// <inheritdoc />
public override object TryConvert(string argumentTe... | {
"content_hash": "5612f54ee2b3976c704514b842a69e39",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 83,
"avg_line_length": 28.6,
"alnum_prop": 0.6899766899766899,
"repo_name": "Sebastian-Gruchacz/ObscureWare",
"id": "6df828049a35ce5a652aad5f42eb385d8986b1f6",
"size": "429... |
@interface EmployeeTableViewController : UITableViewController
@property (nonatomic) EmployeeObject *currentEmployee;
-(NSString*)convetToCurrencyString:(NSString*)string;
@end
| {
"content_hash": "2692130118e8d57bfe3960715404b435",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 62,
"avg_line_length": 25.714285714285715,
"alnum_prop": 0.8333333333333334,
"repo_name": "OliverSJ/Chicago-Employee-Salaries",
"id": "abd59ce901e0a81637e703ffffe24af2fff6ff33... |
using System;
using Telerik.Charting;
using Telerik.Core;
using Windows.Foundation;
namespace Telerik.UI.Xaml.Controls.Chart
{
internal class RangeSeriesDataSource : CategoricalSeriesDataSource
{
private DataPointBinding lowBinding;
private DataPointBinding highBinding;
public DataPoi... | {
"content_hash": "9165adb8fd6863fcc6a8ce55c4c0ad50",
"timestamp": "",
"source": "github",
"line_count": 159,
"max_line_length": 93,
"avg_line_length": 28.40251572327044,
"alnum_prop": 0.47564216120460584,
"repo_name": "geotinc/UI-For-UWP",
"id": "a430d75a72d09304ac758e8500cac8648d04d027",
"size": "... |
package org.bitcoins.chain.pow
import org.bitcoins.chain.blockchain.Blockchain
import org.bitcoins.chain.config.ChainAppConfig
import org.bitcoins.core.api.chain.db.BlockHeaderDb
import org.bitcoins.core.number.UInt32
import org.bitcoins.core.protocol.blockchain._
import org.bitcoins.core.util.NumberUtil
/** Implemen... | {
"content_hash": "545ee892c17f676a7ce3cefeb1e0defa",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 150,
"avg_line_length": 36.01428571428571,
"alnum_prop": 0.6354621182070607,
"repo_name": "bitcoin-s/bitcoin-s",
"id": "1918439fedccb334c77f50a53f28a711118c51d9",
"size": ... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
#include <inttypes.h>
#include "liblwm2m.h"
#include "commandline.h"
#define HELP_COMMAND "help"
#define HELP_DESC "Type '"HELP_COMMAND" [COMMAND]' for more details on a command."
#define UNKNOWN_CMD_MSG "Unknown co... | {
"content_hash": "f02997e63675cd0356a2c639c3aace9b",
"timestamp": "",
"source": "github",
"line_count": 434,
"max_line_length": 126,
"avg_line_length": 27.74884792626728,
"alnum_prop": 0.522212073403637,
"repo_name": "dr-venkman/TizenRT",
"id": "0fa7ff5b98eef8f91671234dd2d1f52531090a13",
"size": "1... |
package de.danoeh.antennapod.core.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.KeyEvent;
import de.danoeh.antennapod.core.ClientConfig;
import de.danoeh.antennapod.core.service.playback.PlaybackService;
... | {
"content_hash": "64f641ecd3534de61a8f333200b2db93",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 114,
"avg_line_length": 40.088235294117645,
"alnum_prop": 0.7842993396918562,
"repo_name": "drabux/AntennaPod",
"id": "0bfeb1150fe4d5ae25b2fdb95ae1be93c57d7fff",
"size": "1... |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>Source Property</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css"... | {
"content_hash": "dbe5177d33b805b115a305b9a1db5267",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 222,
"avg_line_length": 44.18,
"alnum_prop": 0.5961973743775464,
"repo_name": "gersonkurz/manualisator",
"id": "aa1876b4e3824052b11c567a222d64e3aa337374",
"size": "2209",
... |
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mfc2Mvvm.Shell")]
... | {
"content_hash": "1b2b15ba7440f1c3fad5c2f990016a8d",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 96,
"avg_line_length": 38.875,
"alnum_prop": 0.7491961414790996,
"repo_name": "taspeotis/MFC2MVVM",
"id": "edc830d369a19f2aa665c32eb3a4a322432754d5",
"size": "2180",
"bin... |
layout: pattern
title: Producer Consumer
folder: producer-consumer
permalink: /patterns/producer-consumer/
categories: Concurrency
tags:
- Java
- Difficulty-Intermediate
- I/O
- Reactive
---
## Intent
Producer Consumer Design pattern is a classic concurrency pattern which reduces
coupling between Producer and Con... | {
"content_hash": "7741987c079e51b8b2826047e94a8d0d",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 94,
"avg_line_length": 27.541666666666668,
"alnum_prop": 0.794251134644478,
"repo_name": "StefanHeimberg/java-design-patterns",
"id": "1bb84c35fbb249decae56e671c7d6c481a751c2... |
package com.aquarius.effectivejava.practices.chapter04.item16;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
/**
* Created by aquarius on 2017/5/8.
*/
// 不恰当的继承
public class InstrumentedHashSet<E> extends HashSet<E> {
private int addCount;
public InstrumentedHashSet() {
... | {
"content_hash": "e23503839e7025a7a9ced20e7fff5ebb",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 90,
"avg_line_length": 24.066666666666666,
"alnum_prop": 0.6592797783933518,
"repo_name": "aquarius520/effective-java-practices",
"id": "f4abaa6cba831dff9bc9438bc816ca7bac652... |
package emlab.gen.role.market;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.neo4j.support.Neo4jTemplate;
import org.springframework.transaction.annotation.Transactional;
import agentspring.role.R... | {
"content_hash": "651f4c8bf1c14eca49474763c0a3a346",
"timestamp": "",
"source": "github",
"line_count": 321,
"max_line_length": 198,
"avg_line_length": 44.89719626168224,
"alnum_prop": 0.6571606994171524,
"repo_name": "Kaveri3012/emlab-generation",
"id": "10218f304f03dda751fda1e7912afdb5bd20075e",
... |
"""
.. module:: utilities
:platform: Unix
:synopsis: Helpful function for ScatterBrane
.. moduleauthor:: Katherine Rosenfeld <krosenf@gmail.com>
.. moduleauthor:: Michael Johnson
"""
from __future__ import print_function
import numpy as np
from scipy.interpolate import RectBivariateSpline
from scipy.ndimage.... | {
"content_hash": "f2fb37230de161ebe2fb3bc20451a8ea",
"timestamp": "",
"source": "github",
"line_count": 189,
"max_line_length": 132,
"avg_line_length": 32.58201058201058,
"alnum_prop": 0.6295875284183177,
"repo_name": "krosenfeld/scatterbrane",
"id": "318109b52f59f97f58544d578401e4239d639a0e",
"siz... |
using System.Web.Mvc;
using System.Web.Routing;
using MvcContrib.Routing;
namespace Commencement
{
public class RouteConfigurator
{
public virtual void RegisterRoutes()
{
RouteCollection routes = RouteTable.Routes;
routes.Clear();
routes.Ignore... | {
"content_hash": "8f1c036baaf78fd1c99d2ebb93b5b7b3",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 91,
"avg_line_length": 30.40909090909091,
"alnum_prop": 0.5485799701046338,
"repo_name": "ucdavis/Commencement",
"id": "b625288ed595cd67453c56d5c5e45254d07b558e",
"size": "... |
export * from './parseConformance';
export * from "./model/bundle";
export * from './validator';
export * from './fhir';
export * from './fhirPath';
| {
"content_hash": "fbca25e831b619bc09e82f157c1de59d",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 35,
"avg_line_length": 29.8,
"alnum_prop": 0.6577181208053692,
"repo_name": "lantanagroup/FHIR.js",
"id": "fa69bfccfc7a279987621a24fdd9906a1e93fa83",
"size": "149",
"binar... |
package academy.learnprogramming.methods;
/**
* @author goran on 13/07/2017.
*/
public class ReturningDataFromMethods {
public static void main(String[] args) {
int number = 2;
String word = "xyz";
// number(number);
number = number(number); // 3
// word = word(word); // ... | {
"content_hash": "62f7bef9058440c91382018c0a582d5a",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 49,
"avg_line_length": 19.9,
"alnum_prop": 0.5527638190954773,
"repo_name": "jamalgithub/workdev",
"id": "96f11f7468b89cc54113f0150fbcfcd34ba3f87b",
"size": "597",
"binar... |
import { UIComponent } from "../../settings/UIFeature";
import { ComponentVisibilityCustomisations } from "../ComponentVisibility";
export function shouldShowComponent(component: UIComponent): boolean {
return ComponentVisibilityCustomisations.shouldShowComponent?.(component) ?? true;
}
| {
"content_hash": "83071e3888a22b10aaa2903e0e21c088",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 86,
"avg_line_length": 36.875,
"alnum_prop": 0.7830508474576271,
"repo_name": "matrix-org/matrix-react-sdk",
"id": "11b8a40969560524ee97d6986c90279475e2b97e",
"size": "873",... |
package com.thoughtworks.go.util;
import org.xml.sax.InputSource;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathExpressionException;
import javax.xml.xpath.XPathFactory;
import java.io.*;
import java.nio.charset.StandardCharsets;
public class XpathUtils {... | {
"content_hash": "88086980288611534900d7520f7b288e",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 109,
"avg_line_length": 38.32692307692308,
"alnum_prop": 0.731058705469142,
"repo_name": "ketan/gocd",
"id": "c1952ce13311ecfe8007c9fee3e90892ca8140ee",
"size": "2594",
"... |
<!doctype HTML>
<!-- The second div squashes into the first, and had a fractional position greater than 0.5. This tests that pixel snapping for squashed layers
matches that of non-squashed layers -->
<div style="position: absolute; width: 200px; height: 200px; left: 0px; top: 0px; will-change: transform; backgrou... | {
"content_hash": "af556fb77067496b46267401e897eacf",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 143,
"avg_line_length": 66.42857142857143,
"alnum_prop": 0.7333333333333333,
"repo_name": "chromium/chromium",
"id": "037edd7e7a529a3a47b2bba520b94a8f6784b9a3",
"size": "465... |
package io.netty.handler.ssl;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPipeline;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito... | {
"content_hash": "3a9f63a0195bca4372e8c4b7872665fe",
"timestamp": "",
"source": "github",
"line_count": 109,
"max_line_length": 102,
"avg_line_length": 31.46788990825688,
"alnum_prop": 0.643731778425656,
"repo_name": "tbrooks8/netty",
"id": "36ff3de72e3227fdb8b6d8dd9b373d229464353d",
"size": "4065"... |
(function(root){
// Let's borrow a couple of things from Underscore that we'll need
// _.each
var breaker = {},
AP = Array.prototype,
OP = Object.prototype,
hasOwn = OP.hasOwnProperty,
toString = OP.toString,
forEach = AP.forEach,
indexOf = AP.indexOf,
slice = AP.slice... | {
"content_hash": "0ae7b639b4cd2969098d1f9ee1ec984b",
"timestamp": "",
"source": "github",
"line_count": 449,
"max_line_length": 138,
"avg_line_length": 29.305122494432073,
"alnum_prop": 0.4940720474236206,
"repo_name": "astronaughts/simple-cw-titanium",
"id": "f0f6957a74a96f6536cd17200c618d67853a32c7... |
class NumGen
{
public:
NumGen (int start = 0) : current(start) { }
int operator() ()
{
return current++;
}
private:
int current;
};
#endif
| {
"content_hash": "ee3115ae211fe790b090eedad5a339e3",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 47,
"avg_line_length": 12.923076923076923,
"alnum_prop": 0.5357142857142857,
"repo_name": "jmoles/laser-patroll",
"id": "03e494497db3d969cedb51ff7a0d7f3a239fb6d5",
"size": ... |
<div class="row center page-header">
<h4 class="text-center">{{title}}</h4>
</div>
<div class="row row-padded">
<p>
The buttons below run sets of trivial REST-like requests using the
<a target="_blank" href="http://docs.angularjs.org/api/ng.$http">ng.$https</a>
service (via HTTP) or the
<a target="... | {
"content_hash": "fcb01626a37891077d776636d2263a33",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 121,
"avg_line_length": 29.54901960784314,
"alnum_prop": 0.6167883211678832,
"repo_name": "exratione/angularjs-websocket-transport",
"id": "26b5fbf97bc300b136ba40947ddbd5c85... |
body,a,table,div,span,td,th,input,select,p,li,textarea{font-size:9pt;font-family:宋体}
input.dlgBtnCommon {width:60px}
input.dlgBtnBrowse {width:63px;height:18px;margin-left:2px;padding-top:0px;}
input.dlgBtnFind {width:80px}
body {margin:0px;padding:0px;border:0px}
.Menu_Image, .Menu_Image_Disabled{overflow:h... | {
"content_hash": "fc5fdb9e0c3dd48ca434f956c3914ee6",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 130,
"avg_line_length": 47,
"alnum_prop": 0.7641843971631206,
"repo_name": "royalwang/saivi",
"id": "9ed3da120936fdbc8054e51c20b88d1db34c7c78",
"size": "1132",
"binary": ... |
package com.mongodb.jvm.json.generic;
import java.io.IOException;
import java.util.HashMap;
import org.bson.types.MaxKey;
import com.threecrickets.jvm.json.JsonContext;
import com.threecrickets.jvm.json.JsonEncoder;
import com.threecrickets.jvm.json.generic.MapEncoder;
/**
* A JSON encoder for a BSON {@link MaxK... | {
"content_hash": "370658174eac8924370df7976ccccbee",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 76,
"avg_line_length": 20.944444444444443,
"alnum_prop": 0.7347480106100795,
"repo_name": "tliron/mongodb-jvm",
"id": "6d7e55ff667241383766efaf77e1922fa77b34f0",
"size": "1... |
package oauth
import (
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"golang.org/x/net/context"
"golang.org/x/oauth2"
)
// Retrieve a token, saves the token, then returns the generated client.
// Function name must be uppercase to export from library and easily a... | {
"content_hash": "ef86ee40fe4b0139a9eb3696121863eb",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 94,
"avg_line_length": 31.73846153846154,
"alnum_prop": 0.5841008240426563,
"repo_name": "demoforwork/public",
"id": "64941c54552a530870fb4b28f3151808777905f9",
"size": "21... |
/*============================================================================
This C header file is part of the SoftFloat IEC/IEEE Floating-point Arithmetic
Package, Release 2b.
Written by John R. Hauser. This work was made possible in part by the
International Computer Science Institute, located at Suite 6... | {
"content_hash": "5f3e9bcac7f0c8051ceefe4ce2999498",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 79,
"avg_line_length": 51.266666666666666,
"alnum_prop": 0.6150845253576073,
"repo_name": "DavidGriffith/tme",
"id": "2da74cd777e705ef3fd3373903f9b4847fec02a2",
"size": "23... |
namespace VisualPerception.Teacher
{
partial class Form35
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | {
"content_hash": "abbfd9d059bfa22dcc92d48e8c9f5a5a",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 174,
"avg_line_length": 44.411764705882355,
"alnum_prop": 0.5882686849574267,
"repo_name": "IManfis/VisualPerception",
"id": "132c8b731d6fd013853300dd25f200ce47c8309b",
"s... |
using namespace std;
bool Exists(StringPiece f);
double GetTimestampFromStat(const struct stat& st);
double GetTimestamp(StringPiece f);
enum struct RedirectStderr {
NONE,
STDOUT,
DEV_NULL,
};
int RunCommand(const string& shell,
const string& shellflag,
const string& cmd,
... | {
"content_hash": "df890ad5231fa07df305232dc01e0d3c",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 74,
"avg_line_length": 24.736842105263158,
"alnum_prop": 0.5042553191489362,
"repo_name": "google/kati",
"id": "1ff4fc12db4fee06df6149131d91988ca9827959",
"size": "1718",
... |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_pressed="true" android:drawable="@drawable/com_lenovo_lsf_register_btn_press"/>
<item android:state_focused="true" android:drawable="@drawable/com_lenovo_lsf_register_btn_focus"/>
... | {
"content_hash": "866b86b77a9edc555a4e69dc7dd8a497",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 107,
"avg_line_length": 73.28571428571429,
"alnum_prop": 0.7407407407407407,
"repo_name": "l1fan/GameAne",
"id": "31ca4798f71bb4bf1fb14becced7bee309a19bcb",
"size": "513",
... |
package com.netflix.conductor.core.execution.mapper;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.netflix.conductor.common.metadata.tasks.TaskType;
import com.netflix.conductor.core.utils.ParametersU... | {
"content_hash": "84cc3a001b4d132da175ae67159d222a",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 91,
"avg_line_length": 33.21818181818182,
"alnum_prop": 0.7170224411603722,
"repo_name": "Netflix/conductor",
"id": "0491df06d9fbdedfde81693d82272817710305df",
"size": "242... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Khang Quach</title>
<!--... | {
"content_hash": "f452088237cf685061a10d906707ffe9",
"timestamp": "",
"source": "github",
"line_count": 329,
"max_line_length": 354,
"avg_line_length": 45.951367781155014,
"alnum_prop": 0.47221854742690833,
"repo_name": "kennyqSoftware/WebDev",
"id": "b0ddc2abab97a5d66dca0228c25b182b636f69e4",
"siz... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.