text stringlengths 2 1.04M | meta dict |
|---|---|
package com.twu.biblioteca.model;
public interface Item {
boolean hasTitle(String itemName);
}
| {
"content_hash": "c86f7838aa440bf9469ee2838a28c19f",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 38,
"avg_line_length": 20,
"alnum_prop": 0.76,
"repo_name": "Prasannasaraf/twu-biblioteca-prasanna",
"id": "4b4b3f85f5129e056e0f065710c3a2db89c6639a",
"size": "100",
"bina... |
/**
* * Toyota TV Helpers
* */
/**
* * Date Format
* * Converts UNIX Epoch time to DD.MM.YY
* * 1343691442862 -> 31.07.12
* * Usage: {{dateFormat yourDate}}
* */
Handlebars.registerHelper('dateFormat', function(context) {
var date = new Date(context),
day = date.getDate(),
... | {
"content_hash": "0db9e013f07d145c828f666b0f5fb50b",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 108,
"avg_line_length": 35.714285714285715,
"alnum_prop": 0.5495,
"repo_name": "Clouda-team/Cloudajs-examples",
"id": "06699a83678524da7ef45e0c2e6212f271f9a4fc",
"size": "2... |
package org.owasp.appsensor.configuration.stax.client;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLResolver;
import javax.xml.stream.XMLStreamConstants;... | {
"content_hash": "e3eb6013c85792149296d7a66f181562",
"timestamp": "",
"source": "github",
"line_count": 182,
"max_line_length": 139,
"avg_line_length": 32.395604395604394,
"alnum_prop": 0.7238805970149254,
"repo_name": "sims143/appsensor",
"id": "2fc04b9fea07ff94b9304c39305080d230bbdb73",
"size": "... |
pymatgen.analysis.adsorption module
===================================
.. automodule:: pymatgen.analysis.adsorption
:members:
:undoc-members:
:show-inheritance:
| {
"content_hash": "fbc81a683da7c82fac2f0118097e1ffa",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 44,
"avg_line_length": 25,
"alnum_prop": 0.5828571428571429,
"repo_name": "montoyjh/pymatgen",
"id": "b0f0626e718a1469a2274dd9846b7bcfbb02a739",
"size": "175",
"binary": f... |
/**
* Pragma.Libs.Scrollspy
* Plugin para escuchar el scroll en contenidos.
* Creado por Stefan Luy 2014.
* Publicado bajo la licencia MIT http://pragmaui.com/docs/primeros-pasos/licencia
* #---------------
* Html:
* #---------------
* data-pragma-scrollspy="#id_del_menú" : define el scrollspy y el menú asociad... | {
"content_hash": "d61009a9442f0c8b5bff351c6fbd4c93",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 95,
"avg_line_length": 27.17241379310345,
"alnum_prop": 0.5909475465313029,
"repo_name": "sluy/Pragma-UI",
"id": "7a8c9257c8e98c5e7301b816e124725445d3ba63",
"size": "4754"... |
package uk.co.cameronhunter.aws.glacier.utils;
import com.google.common.base.Joiner;
import java.util.function.Function;
import static java.util.Arrays.asList;
import static java.util.stream.Collectors.toList;
import static org.apache.commons.lang.StringUtils.EMPTY;
public final class CharDelimitedString {
pri... | {
"content_hash": "8e15b22cebe8a00fb5143c95337db9fb",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 112,
"avg_line_length": 31.4,
"alnum_prop": 0.7404458598726115,
"repo_name": "cameronhunter/glacier-cli",
"id": "2f73cd3550da6b334e203491579cbab5184be229",
"size": "628",
... |
<!--
@file templates/redirect.html
@author Marshall Farrier
@date 10/06/2012
@description redirection to home page
-->
<!DOCTYPE html>
<html>
<head>
<title>codeMelon</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php redirect_main($target_page); ?>
<sty... | {
"content_hash": "86955d27a833eb160e7c739745ea0d41",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 93,
"avg_line_length": 32.32258064516129,
"alnum_prop": 0.5818363273453094,
"repo_name": "aisthesis/codemelon2012",
"id": "d4743f96ddd1513b8927f0eba3643b011f1e484c",
"size"... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example59-production</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="httpExample">
<div ng-controlle... | {
"content_hash": "41294976be99e5684150bd6aafb70937",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 96,
"avg_line_length": 30.52777777777778,
"alnum_prop": 0.6578707916287534,
"repo_name": "JSoon/EzineMetroUI",
"id": "525fd21f3c4203da9232f4d32d33b004eed13e39",
"size": "10... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PyNance chart example code: candlestick.py — ... | {
"content_hash": "87a805f8f5d25ea82dae11860f3191fb",
"timestamp": "",
"source": "github",
"line_count": 140,
"max_line_length": 393,
"avg_line_length": 49.214285714285715,
"alnum_prop": 0.597822931785196,
"repo_name": "aisthesis/pynance",
"id": "15d4557be243cfe97df7ba9d9987e589c3ca459f",
"size": "6... |
<?php
namespace Scalr\Model\Entity;
use Scalr\Model\AbstractEntity;
/**
* WebhookConfigFarm entity
*
* @author Vitaliy Demidov <vitaliy@scalr.com>
* @since 4.5.2 (11.03.2014)
*
* @Entity
* @Table(name="webhook_config_farms")
*/
class WebhookConfigFarm extends AbstractEntity
{
/**
* The identif... | {
"content_hash": "10bb569af57cacc8dea7d20a1ae97430",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 54,
"avg_line_length": 17.142857142857142,
"alnum_prop": 0.585,
"repo_name": "kikov79/scalr",
"id": "7811e49b1ac1be54f577ce3beb08bf62fb65dd7a",
"size": "600",
"binary": f... |
class BmcBlockStorageClient < BmcClient
def initialize
@validate = Validator.new
@action = 'storage'
end
require 'opc_client/bmc/helpers'
include BmcHelpers::CommandLine
include BmcHelpers::OptParsing
attr_writer :options, :validate, :instanceparameters
# create new storage volumes on the Oracl... | {
"content_hash": "67ee3292291368efcef6d454564b8656",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 120,
"avg_line_length": 37.67307692307692,
"alnum_prop": 0.7309851965288412,
"repo_name": "mccoold/oracle_public_cloud_client",
"id": "f780afd7bc83efae9edb47bf7bade54bda60077... |
#ifndef DateTimeNumericFieldElement_h
#define DateTimeNumericFieldElement_h
#if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
#include "core/html/shadow/DateTimeFieldElement.h"
#include "wtf/Allocator.h"
#include "wtf/text/StringBuilder.h"
#include "wtf/text/WTFString.h"
namespace blink {
// DateTimeNumericFieldElement repres... | {
"content_hash": "93ee05a833fa858cb0f5043ad716fef7",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 144,
"avg_line_length": 27.752808988764045,
"alnum_prop": 0.694331983805668,
"repo_name": "Workday/OpenFrame",
"id": "ee57798d568ec27f258e07f38dacb54fc3f69a5d",
"size": "38... |
using System.Windows.Shell;
namespace ModernWpf.ViewModels
{
/// <summary>
/// A view-model for reporting progress. This is also suitable for databinding to <see cref="TaskbarItemInfo"/>
/// in a wpf window.
/// </summary>
public class ProgressViewModel : ObservableBase
{
/// <summary>... | {
"content_hash": "2f937976110d22eb93baef0a0690b3b5",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 121,
"avg_line_length": 35.63492063492063,
"alnum_prop": 0.5436525612472161,
"repo_name": "soukoku/ModernWpf2",
"id": "3afb53cd7762b866c23af5f34c862f70d3e92e19",
"size": "... |
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using BEPUphysics.CollisionShapes.ConvexShapes;
using System;
using BEPUphysics.CollisionShapes;
using BEPUphysics.BroadPhaseEntries.MobileCollidables;
using ConversionHelper;
namespace BEPUphysicsDrawer... | {
"content_hash": "6889806f06dc3f5438671847731ba975",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 138,
"avg_line_length": 43.906976744186046,
"alnum_prop": 0.6875,
"repo_name": "Anomalous-Software/BEPUPhysics",
"id": "74a11b1a1b265b535d0f764854611b8240269348",
"size": "... |
title: WatchKit渲染原理以及SwiftUI桥接
date: 2019-12-10 17:04:16
categories: iOS
tags:
- iOS
- watchOS
- SwiftUI
- WatchKit
---
# WatchKit渲染原理以及SwiftUI桥接
## 背景
Apple Watch作为苹果智能穿戴设备领域的重头,自从第一代发布已经经历了6次换代产品,操作系统的迭代也已经更新到了watchOS 6。
不同于iPhone的App,watchOS上的大部分App都侧重于健康管理,并且UI交互以直观,快速为基准。在2015年WWDC上,苹果发布的watchOS的同时,面向开... | {
"content_hash": "17d3938a07c275d9e95b691f6d18dd68",
"timestamp": "",
"source": "github",
"line_count": 388,
"max_line_length": 403,
"avg_line_length": 49.97422680412371,
"alnum_prop": 0.829190304280557,
"repo_name": "dreampiggy/hexo-blog",
"id": "3e641002ee13f27f39e3d7e750d75f8aec670aac",
"size": ... |
@interface PodsDummy_Pods_FLEX : NSObject
@end
@implementation PodsDummy_Pods_FLEX
@end
| {
"content_hash": "860b1b87dbcae2b3d7e6cd189a01a73a",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 41,
"avg_line_length": 22,
"alnum_prop": 0.8068181818181818,
"repo_name": "YaleSTC/YalePublic-ios",
"id": "c3cfb69ef56dab31849c566d86bee42d2a44b8b6",
"size": "122",
"binar... |
<!--
Copyright The Ohio State University Research Foundation, The University of Chicago -
Argonne National Laboratory, Emory University, SemanticBits LLC, and Ekagra Software Technologies Ltd.
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cagrid-core/LICENSE.txt for details... | {
"content_hash": "9935218e0f2e182b5e9ff70c9134faa7",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 158,
"avg_line_length": 59.61904761904762,
"alnum_prop": 0.7587859424920128,
"repo_name": "NCIP/cagrid-core",
"id": "a38192c3fb445e599e55692dfdb3c5ef8f4f0343",
"size": "125... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/managedidentities/v1/managed_identities_service.proto
namespace Google\Cloud\ManagedIdentities\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Req... | {
"content_hash": "28c4c2980b5ed4368514a9a8e7f5d3a1",
"timestamp": "",
"source": "github",
"line_count": 116,
"max_line_length": 144,
"avg_line_length": 32.543103448275865,
"alnum_prop": 0.6429139072847682,
"repo_name": "googleapis/google-cloud-php",
"id": "f6f536166fb784195119e3006dc996517afdc786",
... |
@class NSMenu, NSOpenPanel, NSPathCell;
@protocol NSPathCellDelegate <NSObject>
@optional
- (void)pathCell:(NSPathCell *)arg1 willPopUpMenu:(NSMenu *)arg2;
- (void)pathCell:(NSPathCell *)arg1 willDisplayOpenPanel:(NSOpenPanel *)arg2;
@end
| {
"content_hash": "d307cb68e44436d366449cb05345edba",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 77,
"avg_line_length": 26.88888888888889,
"alnum_prop": 0.7727272727272727,
"repo_name": "XVimProject/XVim2",
"id": "d948ddeef7f5e8909a63c915d0e95bdc9ad3e54c",
"size": "423"... |
FROM balenalib/isg-503-ubuntu:bionic-run
# remove several traces of debian python
RUN apt-get purge -y python.*
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# install python dependencies
RUN apt-get upda... | {
"content_hash": "1b0591f50b5a6b9d8938dd232f6509e3",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 709,
"avg_line_length": 51.833333333333336,
"alnum_prop": 0.7076428394756369,
"repo_name": "resin-io-library/base-images",
"id": "f4d53c2c1406c9570e31eefa941f3b8a28976b54",
... |
using System;
namespace Oakton.Resources
{
public class ResourceSetupException : Exception
{
public ResourceSetupException(IStatefulResource resource, Exception ex) : base(
$"Failed to setup resource {resource.Name} of type {resource.Type}", ex)
{
}
public Resourc... | {
"content_hash": "53a02a926f5cd0aad803e8dd60f681ea",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 91,
"avg_line_length": 25.94736842105263,
"alnum_prop": 0.6227180527383367,
"repo_name": "JasperFx/oakton",
"id": "a198ed6037f2d7d56aa8379f3638f9036e003a8f",
"size": "495",... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package edu.buffalo.cse.cse486586.simpledynamo;
public final class R {
public static final class anim {
public static final i... | {
"content_hash": "568be5b727d5ce9f7dd6b4f8f1885015",
"timestamp": "",
"source": "github",
"line_count": 2316,
"max_line_length": 192,
"avg_line_length": 60.25302245250432,
"alnum_prop": 0.6527811617674458,
"repo_name": "ramanpreet1990/CSE_586_Simplified_Amazon_Dynamo",
"id": "97f42695f365b3d514a6af81... |
package org.antbear.statemachine.util;
public class Invariant {
private Invariant() { /* static class */ }
public static void argumentNotNull(final String name, final Object obj) {
if (obj == null) {
throw new IllegalArgumentException(name + " may not be null");
}
}
}
| {
"content_hash": "74765725399b623b667d4d29ba917b54",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 77,
"avg_line_length": 26,
"alnum_prop": 0.6314102564102564,
"repo_name": "bwolf/statem",
"id": "8dfa6fdd6b04b007bfd704466b4545132f5cb066",
"size": "312",
"binary": false... |
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
----------------------------------------------------------------------... | {
"content_hash": "b6d0e729ca8437860f030e9a2ff70f5f",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 86,
"avg_line_length": 29.306451612903224,
"alnum_prop": 0.6912493120528344,
"repo_name": "spthaolt/VTK",
"id": "eb3971d7c744ebaaa77a98f76fc52a27804fce4f",
"size": "2405",
... |
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
... | {
"content_hash": "bb4e0335e7914c363e67b4acceb101ec",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 103,
"avg_line_length": 53.35,
"alnum_prop": 0.5079662605435802,
"repo_name": "Alerion/shopping-helper",
"id": "cd6f31fc86e361e7f75d62cab5d7eb424ba88937",
"size": "1067",
... |
#ifndef TextTrack_h
#define TextTrack_h
#include "core/events/EventTarget.h"
#include "core/html/track/TrackBase.h"
#include "platform/heap/Handle.h"
#include "wtf/text/WTFString.h"
namespace blink {
class ExceptionState;
class HTMLMediaElement;
class TextTrack;
class TextTrackCue;
class TextTrackCueList;
class Te... | {
"content_hash": "a6504775952e5dbf59cb4bcd456b0932",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 136,
"avg_line_length": 31.387096774193548,
"alnum_prop": 0.7461459403905447,
"repo_name": "nwjs/blink",
"id": "a99c260e4ca7660c7f2a115dd83261c30df007dc",
"size": "5310",
... |
using System;
namespace PcapDotNet.Packets.IpV6
{
/// <summary>
/// RFC 6757.
/// <pre>
/// +-----+----------+------------+
/// | Bit | 0-7 | 8-15 |
/// +-----+----------+------------+
/// | 0 | ANI Type | ANI Length |
/// +-----+----------+------------+
///... | {
"content_hash": "2b18dcb3abeb1490b0b4f1a89c469029",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 123,
"avg_line_length": 32.16417910447761,
"alnum_prop": 0.5122969837587007,
"repo_name": "suarez-duran-m/pcap-pade",
"id": "7c040a70711fa4c657ed118e7717556340376728",
"siz... |
MAKEFLAGS = -s
TEMPLATES = $(wildcard *.template)
GENERATED = $(TEMPLATES:.template=.go)
all: touch $(GENERATED)
%.go: %.template
echo Compiling $<
go run ./../../bin/compile-template -o $@ $<
touch:
touch *.template
clean:
rm -f $(GENERATED)
| {
"content_hash": "b620396b1d4649bce0eaf2fbfa0582e3",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 45,
"avg_line_length": 15.75,
"alnum_prop": 0.6428571428571429,
"repo_name": "pattyshack/abc",
"id": "8341cd690d273da01159684f9c0557415a57a6fd",
"size": "252",
"binary": ... |
/*# sourceMappingURL=animation.css.map */
| {
"content_hash": "0d2e34bf9ecd4cee10fc178252b00a8b",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 41,
"avg_line_length": 14.666666666666666,
"alnum_prop": 0.7045454545454546,
"repo_name": "mobileads-com/MADS_PROJECT_PizzaHut_Superpan",
"id": "20668a272822d218bab4ec6d8ed65a... |
package com.intellij.internal.statistic.tools;
import com.intellij.codeInspection.InspectionEP;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.intellij.codeInspection.ex.InspectionProfileImpl;
import com.intellij.codeInspection.ex.InspectionToolWrapper;
import com.intellij.codeInspection.ex.Scop... | {
"content_hash": "fd193dfa20c8d53b26f7440bb5ef7e3f",
"timestamp": "",
"source": "github",
"line_count": 217,
"max_line_length": 128,
"avg_line_length": 39.34101382488479,
"alnum_prop": 0.7090312756237555,
"repo_name": "zdary/intellij-community",
"id": "4b607e3d75ed7edb03d6dd2f95b498be9c79e576",
"si... |
package org.apache.hadoop.security.authorize;
import org.apache.hadoop.conf.Configurable;
import org.apache.hadoop.security.UserGroupInformation;
public interface ImpersonationProvider extends Configurable {
/**
* Authorize the superuser which is doing doAs
*
* @param user ugi of the effective or proxy... | {
"content_hash": "e9dd6bac20adaa1230ad7c8d0f11f23d",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 78,
"avg_line_length": 30.944444444444443,
"alnum_prop": 0.7755834829443446,
"repo_name": "GenisO/hadoop-DWRR",
"id": "6e7a39565dfcff9c14beb9eba93533636ef6a0a5",
"size": "1... |
package com.demon.doubanmovies.utils;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.ForegroundColorSpan;
import java.util.List;
public final class StringUtil {
/**
* get spannable string by color
*
* @param str string
* @param color color
... | {
"content_hash": "77550f7f18bb56cbe3afb3291e33254a",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 84,
"avg_line_length": 30.65,
"alnum_prop": 0.6280587275693311,
"repo_name": "demonyan/douban-movie",
"id": "116b00a0a1a47a78876f1c9a71ef259d9b69ae74",
"size": "1226",
"b... |
{% extends "base.html" %}
{% load i18n %}
{% load pagination_tags %}
{% load socialaccount %}
{% block title %}{% trans "Project Dashboard" %}{% endblock %}
{% block dash-nav-projects %}active{% endblock %}
{% block content %}
{% url "projects_import" as projects_import_url %}
{% url "socialaccount_connections" ... | {
"content_hash": "23bf29f732708d818b45d929d549ee4f",
"timestamp": "",
"source": "github",
"line_count": 153,
"max_line_length": 139,
"avg_line_length": 32.58169934640523,
"alnum_prop": 0.4647943831494483,
"repo_name": "rtfd/readthedocs.org",
"id": "72679ea34cced253dfa0d4873ccec41168bb4f6a",
"size":... |
<div class="navbar navbar-green navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../"><i class="fa fa-cubes"></i> Hangar</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li>
<... | {
"content_hash": "71203b69089f2fdbe585737cadaca6b5",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 166,
"avg_line_length": 37.785714285714285,
"alnum_prop": 0.553875236294896,
"repo_name": "tzhbami7/Hangar",
"id": "6eadf86924eeb5e4a884983ffecd4765eacd3d49",
"size": "529"... |
Tower Defence multiplayer PVP made in Unity with C#
If you have any questions or suggestions, feel free to contact me on:
Facebook https://www.facebook.com/TheCalvinKohl
or
Discord https://discord.gg/RSzefyD
| {
"content_hash": "b2c719ceaa304016a0a1441715f517cc",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 69,
"avg_line_length": 35.5,
"alnum_prop": 0.784037558685446,
"repo_name": "TheCalvinK/ProjectDownfall",
"id": "38551c5e44caa788561d1bdb2d08ab3452bcda8b",
"size": "231",
"... |
<?php
// Version: 2.1 Beta 2; Who
global $scripturl, $context;
$txt['who_hidden'] = '<em>Nothing, or nothing you can see...</em>';
$txt['who_admin'] = 'Viewing the admin portal';
$txt['who_moderate'] = 'Viewing the moderator portal';
$txt['who_generic'] = 'Viewing the';
$txt['who_unknown'] = '<em>Unknown Action</em>'... | {
"content_hash": "4a285e516522fb9874ac6c5096dcd92b",
"timestamp": "",
"source": "github",
"line_count": 163,
"max_line_length": 393,
"avg_line_length": 64.74233128834356,
"alnum_prop": 0.6677721974793898,
"repo_name": "margarett/SMF2.1",
"id": "4b896a65d9492b0f4466668724c7167e3a6f2fe5",
"size": "10... |
package io.datarouter.gcp.spanner;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.core.Appender;
import org.apache.logging.log4j.core.appender.ConsoleAppender.Target;
import io.datarouter.gcp.spanner.ddl.SpannerDatabaseCreator;
import io.datarouter.gcp.spanner.ddl.SpannerSingleTableSchemaUpda... | {
"content_hash": "a424a9486d3e3a98f1858136b3fee1d5",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 114,
"avg_line_length": 38.642857142857146,
"alnum_prop": 0.8410351201478743,
"repo_name": "hotpads/datarouter",
"id": "61d9a6f4b2a17b400c3d885eafb0b0219145c6c4",
"size": "... |
<?php
namespace Burrow\Consumer;
use Burrow\QueueConsumer;
use Burrow\Serializer;
class SerializingConsumer implements QueueConsumer
{
/** @var QueueConsumer */
private $consumer;
/** @var Serializer */
private $serializer;
/**
* SerializingConsumer constructor.
*
* @param QueueC... | {
"content_hash": "7eabbeb2f81ff70fee47fb5c12858389",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 80,
"avg_line_length": 21.31111111111111,
"alnum_prop": 0.5776850886339937,
"repo_name": "Evaneos/Burrow",
"id": "f6ed69c24c1af1f29bbece92e34b510e2870859a",
"size": "959",
... |
(function () {
'use strict';
var
EmptySearchViewModel = require('../../app/js/viewModels/emptySearch'),
chai = require('chai'),
searchService = require('../../app/js/services/search'),
fakes = require('../fakes');
chai.should();
describe('When user interacts with empt... | {
"content_hash": "c4ab9edc708b6b0244de0e2304428b97",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 109,
"avg_line_length": 33.096774193548384,
"alnum_prop": 0.6442495126705653,
"repo_name": "vba/NBlast",
"id": "eae41e3a403b8650621ac8d54948b7d2f9158b25",
"size": "1026",
... |
package main
import (
"bufio"
"bytes"
"fmt"
"io"
"os"
"os/exec"
"strings"
"unicode"
)
// Page returns an io.Writer whose input will be written to the pager program.
// The returned channel should be checked for an error using select before the
// writer is used.
// w, errch := Page("less")
// select {
// case... | {
"content_hash": "676228e8342d4cee6d06eda0dee65d59",
"timestamp": "",
"source": "github",
"line_count": 208,
"max_line_length": 91,
"avg_line_length": 23.73076923076923,
"alnum_prop": 0.6371555915721232,
"repo_name": "bmatsuo/jqsh",
"id": "35cce4eac86c3773312fd5c3d6055a87b39dc746",
"size": "4992",
... |
package com.gsposito.gae;
/**
* Contains the client IDs and scopes for allowed clients consuming your API.
*
* This is a prototype, you must fill the correct values below and rename de class to Constants
*/
public class myConstants {
public static final String WEB_CLIENT_ID = "replace this with your Android cli... | {
"content_hash": "97270709664a68a438234c6850e2d7b8",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 95,
"avg_line_length": 44.4,
"alnum_prop": 0.7567567567567568,
"repo_name": "GiulSposito/AcadSys",
"id": "e971536ac90cac8ff9123e57fd79cd70edb24192",
"size": "666",
"binar... |
package main
import (
"bufio"
"flag"
"fmt"
"hash/fnv"
"log"
"os"
"time"
"github.com/danieldk/conllx"
"github.com/danieldk/dpar/cmd/common"
"github.com/danieldk/dpar/features/symbolic"
"github.com/danieldk/dpar/ml/svm"
"github.com/danieldk/dpar/system"
"gopkg.in/danieldk/golinear.v1"
)
func init() {
fla... | {
"content_hash": "cc678a285f13d49e658ffcf40600a0bc",
"timestamp": "",
"source": "github",
"line_count": 110,
"max_line_length": 90,
"avg_line_length": 23.045454545454547,
"alnum_prop": 0.714792899408284,
"repo_name": "postfix/dpar",
"id": "a4a08ab0835468bbd397508c5273aefb42a8640e",
"size": "2697",
... |
using System;
using AutoPoco.Engine;
using AutoPoco;
namespace AutoPoco.KCL.DataSources
{
public class IdSameAsParentDataSource<TParent, TId> : DatasourceBase<TId>
where TParent : class
{
public Func<TParent, TId> IdExpression { get; private set; }
public IdSameAsParentDataSource(Func<TParent, T... | {
"content_hash": "995260c2fd7776df5a772b34e408ea47",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 81,
"avg_line_length": 27.976190476190474,
"alnum_prop": 0.548936170212766,
"repo_name": "KCL5South/KCLAutoPoco",
"id": "7f34b334fd65d80a2dd9303a4a54bd4d332aecac",
"size": ... |
var stamplayStripe = require('../lib/stripe')
var assert = require('assert')
var Stripe = stamplayStripe({
apiKey: 'apiKey',
appId: 'appId',
version: 'v1'
})
assert.equal(typeof Stripe.base, 'undefined')
assert.equal(typeof Stripe.deleteCustomer, 'function')
assert.equal(typeof Stripe.createSubscription, 'funct... | {
"content_hash": "c5330796b80389892dc79ac766b9ef69",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 58,
"avg_line_length": 34.8125,
"alnum_prop": 0.7719928186714542,
"repo_name": "Stamplay/stamplay-nodejs-sdk",
"id": "e029d1c78c96eb9f8786bae0e06e911221dc0777",
"size": "55... |
(function($) {
var methods = {
/**
* Kind of the constructor, called before any action
* @param {Map} user options
*/
init: function(options) {
var form = this;
if (!form.data('jqv') || form.data('jqv') == null ) {
... | {
"content_hash": "6b0bfd00e2aa14a618cfb62a4b2c4d31",
"timestamp": "",
"source": "github",
"line_count": 1662,
"max_line_length": 483,
"avg_line_length": 40.91034897713598,
"alnum_prop": 0.4884032179783213,
"repo_name": "applelee/dion",
"id": "6f6b17fb69ee5c18e4694b6a2d38a662ab973472",
"size": "6830... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Fahrenheit Cologne for Men by Christian Dior</title>
<meta name="description" content="Fahrenheit Cologne at discount price. Fahrenheit by Christian Dior available at FragranceS... | {
"content_hash": "ce08e80b44a6bd6ab15740cc391db26b",
"timestamp": "",
"source": "github",
"line_count": 1822,
"max_line_length": 708,
"avg_line_length": 34.6569703622393,
"alnum_prop": 0.5901496555546758,
"repo_name": "todor-dk/HTML-Renderer",
"id": "ff93fc9e5764d86567c23b774e492fa6c2659a66",
"size... |
<?php
namespace CRUDlex;
/**
* An interface used by the {@see ServiceProvider} to construct
* {@see Data} instances. By implementing this and handing it into
* the service provider, the user can control what database (-variation) he
* wants to use.
*/
interface DataFactoryInterface {
/**
* Creates in... | {
"content_hash": "183accc2a46bd991e5cb5b6b3dc89678",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 100,
"avg_line_length": 26.357142857142858,
"alnum_prop": 0.7073170731707317,
"repo_name": "thomas-lange-smf/CRUDlex",
"id": "add07514613a88a91ff7d23a6bb4b9fc83160704",
"si... |
@ECHO OFF
SET COMPOSE_FILE_PATH=%CD%\target\classes\docker\docker-compose.yml
IF [%M2_HOME%]==[] (
SET MVN_EXEC=mvn
)
IF NOT [%M2_HOME%]==[] (
SET MVN_EXEC=%M2_HOME%\bin\mvn
)
IF [%1]==[] (
echo "Usage: %0 {build_start|build_start_it_supported|start|stop|purge|tail|build_test|test}"
GO... | {
"content_hash": "3731ca31a67698f24867864e45ad233a",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 97,
"avg_line_length": 19.98989898989899,
"alnum_prop": 0.5977766548762001,
"repo_name": "abhinavmishra14/alfresco-sdk",
"id": "e735564a31075be537b02a143a696a2a03f4ac76",
"... |
import random
from Pyro5.api import expose, oneway
@expose
class GameServer(object):
def __init__(self, engine):
self.engine = engine
def register(self, name, observer):
robot = self.engine.signup_robot(name, observer)
self._pyroDaemon.register(robot) # make the robot a pyro object
... | {
"content_hash": "1a1ed4e37ce55f4ac603d815a2cd6a84",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 72,
"avg_line_length": 23.858974358974358,
"alnum_prop": 0.5706609349811929,
"repo_name": "irmen/Pyro5",
"id": "a7cdb4f3b9a81a3b0a0ff0077c71a5a2c78ded6d",
"size": "1861",
... |
package net.ccfish.talk.admin.jpa;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.springframework.data.jpa.domain.Spe... | {
"content_hash": "1d1d910d5d02d13a5cb64155171e9dad",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 97,
"avg_line_length": 26.86,
"alnum_prop": 0.6306775874906925,
"repo_name": "ccfish86/sctalk",
"id": "08b9bd1ca867e0012ccec36ad627a84d31f8a280",
"size": "1429",
"binary"... |
Note that `index.html` and `cache.manifest` are generated by couchapp `/couchapp/app.js` from `/couchapp/templates/`.
| {
"content_hash": "2dbd3d41e5707b7ca1a2aaf515dd4914",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 117,
"avg_line_length": 59.5,
"alnum_prop": 0.7478991596638656,
"repo_name": "cgreenhalgh/opensharingtoolkit-mediahub",
"id": "4f9792f163de0ddb6c1ec83baa7e376bedd403df",
"si... |
import Ember from 'ember';
const { inject: { service } } = Ember;
export default Ember.Route.extend({
session: service(),
beforeModel: function() {
return this.get('session').fetch().then(() => {
if(this.get('session.isAuthenticated')) {
return this.transitionTo('... | {
"content_hash": "32a3f64edc07958cef819d0e4d24ad10",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 63,
"avg_line_length": 25.59259259259259,
"alnum_prop": 0.4833574529667149,
"repo_name": "rogeliorv/xitomatl",
"id": "bbbc74e0edc95189cca59dc816d1e670984a19f7",
"size": "69... |
package org.apache.spark.network.buffer;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import com.google.common.base.Objects;
import io.netty.buffer.ByteBufInputStream;
import io.netty.buffer.Unpooled;
/**
* A {@link ManagedBuffer} backed by {@link ByteBuffer}.
*/
public fin... | {
"content_hash": "0e4e662fa5d6e93804c61ee6a1dee01c",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 63,
"avg_line_length": 19.383333333333333,
"alnum_prop": 0.711092003439381,
"repo_name": "andrewor14/iolap",
"id": "f55b884bc45cee4f51bd7c54f4e7a6911bc2a4ff",
"size": "1963... |
package net.lshift.spki;
import static net.lshift.spki.sexpform.Create.atom;
import static net.lshift.spki.sexpform.Create.list;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
import java.io.FileOutputStream;
import java.io.IOExceptio... | {
"content_hash": "bff458b602c9bb06eb63068319c7bcf5",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 109,
"avg_line_length": 37.8,
"alnum_prop": 0.6412698412698413,
"repo_name": "lshift/bletchley",
"id": "307762bcc0acd8cf0480dbda69d0746e7449c764",
"size": "3780",
"binar... |
NAME = AmplitudeImposer
# --------------------------------------------------------------
# Files to build
FILES_DSP = \
DistrhoPluginAmplitudeImposer.cpp
FILES_UI = \
DistrhoArtworkAmplitudeImposer.cpp \
DistrhoUIAmplitudeImposer.cpp
# --------------------------------------------------------------
# Do some mag... | {
"content_hash": "38bf65b98280a12574c4e90ee799308a",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 64,
"avg_line_length": 20.68421052631579,
"alnum_prop": 0.48982188295165396,
"repo_name": "DISTRHO/ndc-Plugs",
"id": "eee2cce221e702f681e381a86ada1bed9ee26271",
"size": "99... |
using System;
namespace Kekstoaster.Syntax
{
/// <summary>
/// Ebnf templates for frequently used elements.
/// </summary>
public static class EbnfTemplates
{
/// <summary>
/// Returnes a single space element.
/// </summary>
/// <value>A single space element.</value>
public static Ebnf Space {
get { ... | {
"content_hash": "bd1bbc58739a0c8459da5e5c01a4bafe",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 203,
"avg_line_length": 30.036036036036037,
"alnum_prop": 0.6157768446310737,
"repo_name": "kekstoaster/Syntax",
"id": "16add256cc49e1af004bc9daba270978212e98b3",
"size": ... |
Saving Finale
**Source** [_saving finale_](advanced/spells/savingFinale#_saving-finale)
Add your tier as a bonus on the saving throw reroll.
| {
"content_hash": "d849613268364c2df3f4f07781ee9728",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 73,
"avg_line_length": 24,
"alnum_prop": 0.7569444444444444,
"repo_name": "brunokoga/pathfinder-markdown",
"id": "96579bb9e94b7b4d12b4fad988c28e100a06b48b",
"size": "144",
... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "90f9100e306f9510071314a10a984b65",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "495dbc3174466c1104fa870970d99a8d995a9421",
"size": "19... |
CrashedExtensionInfoBarDelegate::CrashedExtensionInfoBarDelegate(
TabContents* tab_contents,
ExtensionsService* extensions_service,
const Extension* extension)
: ConfirmInfoBarDelegate(tab_contents),
extensions_service_(extensions_service),
extension_id_(extension->id()),
extension_nam... | {
"content_hash": "18a101c8dabcda0999f2e18b70ecf7bd",
"timestamp": "",
"source": "github",
"line_count": 42,
"max_line_length": 78,
"avg_line_length": 33.07142857142857,
"alnum_prop": 0.7652987760979122,
"repo_name": "rwatson/chromium-capsicum",
"id": "80ab865fb078dc8f739280a9c4808b1bc1c6d226",
"siz... |
package logger
//--------------------
// IMPORTS
//--------------------
import (
"log"
"log/syslog"
)
//--------------------
// SYSLOGGER
//--------------------
// SysLogger uses the Go syslog package as logging backend. It does
// not work on Windows or Plan9.
type SysLogger struct {
writer *syslog.Writer
}
//... | {
"content_hash": "27046db280d42ef74556e2b897e843c6",
"timestamp": "",
"source": "github",
"line_count": 58,
"max_line_length": 67,
"avg_line_length": 21.93103448275862,
"alnum_prop": 0.6320754716981132,
"repo_name": "simonz05/carry",
"id": "fa40fa609e4052db9412be56ac4c192ebbedceb2",
"size": "1523",... |
package com.google.cloud.datacatalog.v1beta1.samples;
// [START datacatalog_v1beta1_generated_datacatalogclient_createtagtemplate_stringstringtagtemplate_sync]
import com.google.cloud.datacatalog.v1beta1.DataCatalogClient;
import com.google.cloud.datacatalog.v1beta1.LocationName;
import com.google.cloud.datacatalog.... | {
"content_hash": "f9a26b22f8adbd0042c17a409fa15a0a",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 105,
"avg_line_length": 49.193548387096776,
"alnum_prop": 0.7842622950819672,
"repo_name": "googleapis/java-datacatalog",
"id": "66e16bd65c6ea482745624fa9dbffa3830725e51",
... |
Please raise issues to capture bugs or feature requests - or feel free
to contact us directly and discuss things if you have our contact details.
## Contributing Code or Reviewing
We really appreciate code or review contributions!
Code contributions are made by raising pull requests against the master
branch of htt... | {
"content_hash": "ef5afc8fbf258f7fa9e0d8af492052a4",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 78,
"avg_line_length": 40.916666666666664,
"alnum_prop": 0.7529531568228106,
"repo_name": "fionaRust/improver",
"id": "f7a9363561fbaa07c0deae822966c9eabec54bde",
"size": "... |
PyObject* get_open_files(long pid, HANDLE processHandle);
| {
"content_hash": "737448ae36281ebc873bc47187043ef0",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 57,
"avg_line_length": 58,
"alnum_prop": 0.7931034482758621,
"repo_name": "Crystalnix/house-of-life-chromium",
"id": "bd9d39b8b23965a6f5fefd2fb0da38c63e3c8917",
"size": "100... |
import {parse as babylonParser, ItBlock, Expect} from 'jest-editor-support';
import TypeScriptParser from './type_script_parser';
export type ParserReturn = {
itBlocks: Array<ItBlock>,
expects: Array<Expect>,
};
/**
* Converts the file into an AST, then passes out a
* collection of it and expects.
*/
functio... | {
"content_hash": "46c34d9cc484d6932073f58d09104749",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 76,
"avg_line_length": 20.423076923076923,
"alnum_prop": 0.687382297551789,
"repo_name": "skovhus/jest",
"id": "f8b0e729f237266d1077335408f69ad79b922c88",
"size": "848",
... |
package org.apache.accumulo.core.iterators.aggregation;
import org.apache.accumulo.core.data.Value;
/**
* @deprecated since 1.4, replaced by {@link org.apache.accumulo.core.iterators.user.MinCombiner} with
* {@link org.apache.accumulo.core.iterators.LongCombiner.Type#STRING}
*/
@Deprecated
public clas... | {
"content_hash": "681c27ae3d840964fad0d4a9f35ae95a",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 102,
"avg_line_length": 22.233333333333334,
"alnum_prop": 0.671664167916042,
"repo_name": "phrocker/accumulo",
"id": "48855b3595f18c4220fc94c7931b6ab743faa148",
"size": "14... |
package org.wildfly.security.util;
import static org.junit.Assert.*;
import org.junit.Test;
import org.wildfly.security.util._private.Arrays2;
/**
* Tests of org.wildfly.security.util.Arrays2
*
* @author <a href="mailto:jkalina@redhat.com">Jan Kalina</a>
*/
public class Arrays2Test {
@Test
public void... | {
"content_hash": "58328a4ad641ed079f3d051817bae870",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 114,
"avg_line_length": 41.39080459770115,
"alnum_prop": 0.5848375451263538,
"repo_name": "sguilhen/wildfly-elytron",
"id": "4abd93c3bf1efc66743bc55bff62e45adc02cb88",
"siz... |
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright 2012 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompa... | {
"content_hash": "46991600014fff907ad03f72c4d9d527",
"timestamp": "",
"source": "github",
"line_count": 83,
"max_line_length": 82,
"avg_line_length": 31.156626506024097,
"alnum_prop": 0.6349574632637278,
"repo_name": "kevinzhwl/ObjectARXCore",
"id": "5bb24641cc4fd5a218fd4798ba28075b5dfb1bc1",
"size... |
{{<govuk/startPage}}
{{$pageTitle}}Register to vote (armed forces){{/pageTitle}}
{{$main}}
<ol role="breadcrumbs" class="breadcrumbs">
<li><a href="https://www.gov.uk/">Home</a></li>
<li><a href="https://www.gov.uk/browse/citizenship">Citizenship and living in the UK</a></li>
<li><strong><a href="https://www.go... | {
"content_hash": "ba7d86c0c1615687022f256e71795ce5",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 195,
"avg_line_length": 46.983333333333334,
"alnum_prop": 0.6917346576800284,
"repo_name": "alphagov/ier-frontend",
"id": "406a46bb13e8fa58ee1c88dba930955c8b432886",
"size"... |
package be.swsb.fiazard.ordering.topping;
import be.swsb.fiazard.common.eventsourcing.Event;
import be.swsb.fiazard.common.eventsourcing.EventStore;
import be.swsb.fiazard.common.mongo.MongoDBRule;
import be.swsb.fiazard.common.test.ClientRule;
import be.swsb.fiazard.main.FiazardApp;
import be.swsb.fiazard.main.Fiazar... | {
"content_hash": "9984618122e9247295282a95471c41c2",
"timestamp": "",
"source": "github",
"line_count": 128,
"max_line_length": 119,
"avg_line_length": 39.2265625,
"alnum_prop": 0.6779525990838479,
"repo_name": "Jooones/Fiazard",
"id": "06e728a9de23c26d3dc6e9eebb831ffc875f1a57",
"size": "5021",
"... |
package com.sun.xml.internal.ws.addressing;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.namespace.QName;
import static com.sun.xml.internal.ws.addressing.W3CAddressingConstants.WSA_NAMESPACE_NAME;
/**
* @author Arun Gupta
*/
@XmlRootElement(name="P... | {
"content_hash": "8e015a4101af2da6a7c3526b2c19b98c",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 91,
"avg_line_length": 23.884615384615383,
"alnum_prop": 0.7407407407407407,
"repo_name": "rokn/Count_Words_2015",
"id": "9fa0af7396751c8ebcaad1f6eccf577a5f58d335",
"size":... |
module GemFresh
class Calculator
# If a gem is behind by a major version, it's worth more points
# than a minor version.
POINTS_FOR_MAJOR = 100
POINTS_FOR_MINOR = 10
POINTS_FOR_PATCH = 1
# Point multipliers based on how central the gem is to the application code.
MINIMAL_MULTIPLIER = 0.1... | {
"content_hash": "47793f16d54b03fdc5a218fbcaaf2de0",
"timestamp": "",
"source": "github",
"line_count": 67,
"max_line_length": 82,
"avg_line_length": 29.134328358208954,
"alnum_prop": 0.65625,
"repo_name": "dmcouncil/gem_fresh",
"id": "f0a49bbad03d6f3e1e26a99bae19d5545b4ee3d4",
"size": "1952",
"b... |
package org.apache.cloudstack.api.command.user.loadbalancer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.cloud.utils.exception.CloudRuntimeException;
import org.apache.log4j.Logger;
import org.ap... | {
"content_hash": "93d7b9ca1095eabd552280bf81d3165c",
"timestamp": "",
"source": "github",
"line_count": 182,
"max_line_length": 151,
"avg_line_length": 37.527472527472526,
"alnum_prop": 0.6001464128843338,
"repo_name": "GabrielBrascher/cloudstack",
"id": "1e730370801430930e4952038ebde59089895039",
... |
using System.Collections.Generic;
using System.Composition.Hosting;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using OmniSharp.Models.V2;
using OmniSharp.Roslyn.CSharp.Services;
using OmniSharp.Roslyn.CSharp.Services.CodeActions;
using OmniSharp.Roslyn.CSharp.Services.Ref... | {
"content_hash": "835b040ddebabaada9944baa99ca192a",
"timestamp": "",
"source": "github",
"line_count": 318,
"max_line_length": 126,
"avg_line_length": 33.83647798742138,
"alnum_prop": 0.5285315985130111,
"repo_name": "nabychan/omnisharp-roslyn",
"id": "20d5e644868e0e70209d94d707257beb92cce099",
"s... |
package edu.brown.cs.systems.pubsub.message;
public interface TopicMessage {
public byte[] topic();
public byte[] message();
}
| {
"content_hash": "f65d341996bfa5b5bfa516cf9fe029c2",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 44,
"avg_line_length": 15.444444444444445,
"alnum_prop": 0.6906474820143885,
"repo_name": "brownsys/tracing-framework",
"id": "c74486c6d5fe535c41732d103b4013d30d5296d8",
"si... |
/* IPC module for ISH */
/**
* IPC - Inter Processor Communication
* -----------------------------------
*
* IPC is a bi-directional doorbell based message passing interface sans
* session and transport layers, between hardware blocks. ISH uses IPC to
* communicate with the Host, PMC (Power Management Controll... | {
"content_hash": "90ff239b164ffd4a1b27f92f1a989003",
"timestamp": "",
"source": "github",
"line_count": 735,
"max_line_length": 80,
"avg_line_length": 26.632653061224488,
"alnum_prop": 0.6707535121328225,
"repo_name": "coreboot/chrome-ec",
"id": "1fd81e3d3f29dc684c70a0edf78f74ed70008a24",
"size": "... |
""" Utilities for driving sets of parcel model integration strategies.
Occasionally, a pathological set of input parameters to the parcel model
will really muck up the ODE solver's ability to integrate the model.
In that case, it would be nice to quietly adjust some of the numerical
parameters for the ODE solver and r... | {
"content_hash": "d5ea8bb6ecee8a210f01140b806324b1",
"timestamp": "",
"source": "github",
"line_count": 252,
"max_line_length": 94,
"avg_line_length": 31.22222222222222,
"alnum_prop": 0.5874428063040162,
"repo_name": "darothen/parcel_model",
"id": "6157074ab645acffa2de2ba44e252838ff7a6015",
"size":... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" c... | {
"content_hash": "73d228d9512630535dd088a012c5ab8b",
"timestamp": "",
"source": "github",
"line_count": 80,
"max_line_length": 289,
"avg_line_length": 49,
"alnum_prop": 0.7038265306122449,
"repo_name": "turol/smaaDemo",
"id": "a691b7f7237a39f3d0abc5ffddf013b4a25e9bcf",
"size": "3920",
"binary": f... |
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<dimen name="padding_body">8dp</dimen>
<dimen name="padding_unitbutton">3dp</dimen>
<dimen name="padding_unitreverse">5dp</dimen>
<dimen name="padding_from_to">5dip</dimen>
<dimen name="padding_subtitle">5dp</dimen>
<dimen name="padding_history">5dip</dimen>
... | {
"content_hash": "3824b9acc092bbc72a5d6948b8c5bc4c",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 58,
"avg_line_length": 36,
"alnum_prop": 0.7075163398692811,
"repo_name": "lbdremy/Bar",
"id": "b28cd3cdf41a57144b7624a7b61e842f7808cd1e",
"size": "612",
"binary": false,... |
export declare class AppComponent {
getSiteName(): string;
}
| {
"content_hash": "217f74a5e0f67745bd85ba0e53aa17cb",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 35,
"avg_line_length": 21.666666666666668,
"alnum_prop": 0.7230769230769231,
"repo_name": "rogallic/rogsit",
"id": "7e9ccc6d93f8198f4445cd2f83aba4de12794af7",
"size": "65",
... |
define(['angular', 'Controllers/controllers', 'Directives/directives'], function (angular, controllers, directives) {
var initialize = function () {
var app = angular.module('demo', []);
app.controller(controllers);
app.directive(directives);
angular.bootstrap(document, ['demo'])
... | {
"content_hash": "5149539c92bd7769b01e4f3319703a0d",
"timestamp": "",
"source": "github",
"line_count": 12,
"max_line_length": 117,
"avg_line_length": 31.5,
"alnum_prop": 0.6216931216931217,
"repo_name": "arnolf/jquery-slider",
"id": "68a865d23f645d0b8a80643952563e699173d662",
"size": "378",
"bin... |
from filebeat import BaseTest
import os
import time
"""
Tests for the multiline log messages
"""
class Test(BaseTest):
def test_java_elasticsearch_log(self):
"""
Test that multi lines for java logs works.
It checks that all lines which do not start with [ are append to the last line star... | {
"content_hash": "96fb2cc765d30d8dfab3ba9d5a2c43c7",
"timestamp": "",
"source": "github",
"line_count": 354,
"max_line_length": 300,
"avg_line_length": 31.44632768361582,
"alnum_prop": 0.554796981674452,
"repo_name": "taitan-org/inflog",
"id": "2bf67391f36d2f27e53618ecf725bf24eb38f60f",
"size": "11... |
// posix-threads.cc - interface between libjava and POSIX threads.
// TO DO:
// * Document signal handling limitations
#include <config.h>
#include "posix.h"
#include "posix-threads.h"
// If we're using the Boehm GC, then we need to override some of the
// thread primitives. This is fairly gross.
#ifdef HAVE_BOE... | {
"content_hash": "bcecf5b2507e5f3693f16c96acd82a17",
"timestamp": "",
"source": "github",
"line_count": 727,
"max_line_length": 79,
"avg_line_length": 25.609353507565338,
"alnum_prop": 0.6402943388119025,
"repo_name": "the-linix-project/linix-kernel-source",
"id": "66693abbc9b5fbbf44052ba567b0d16e658... |
package com.example.toidv.rxexample.ui.home;
import com.example.toidv.rxexample.data.pojo.Item;
import com.example.toidv.rxexample.ui.base.MvpView;
/**
* Created by TOIDV on 5/24/2016.
*/
public interface HomeMvpView extends MvpView {
void addUser(Item item);
void showProgress(boolean value);
void cr... | {
"content_hash": "da7c06ddeb9a4262c48bc04b653476ff",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 51,
"avg_line_length": 20.263157894736842,
"alnum_prop": 0.7402597402597403,
"repo_name": "toidv/android",
"id": "a069d22f184cc9c4e29c4d53b437a0d7c3cce1be",
"size": "385",
... |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Email Class — CodeIgniter 3.0.0 ... | {
"content_hash": "23ae86a9972f70d0c505281b7619e0b5",
"timestamp": "",
"source": "github",
"line_count": 1046,
"max_line_length": 490,
"avg_line_length": 59.67782026768642,
"alnum_prop": 0.6557839257965814,
"repo_name": "DavidJDJ/sacramento",
"id": "910de2cac159b8f33323a658dbfc2fc6f032be1c",
"size":... |
<content xml:space="preserve"
xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<!-- paths -->
<item id="iconPath">../icons/{0}</item>
<item id="stylePath">../styles/{0}</item>
<item id="scriptPath">../scripts/{0}</item>
<!-- locale -->
<item id="meta_locale">en-us</item>
<item id="meta_help20_desktopTech... | {
"content_hash": "8397ab1f1f4a55c534b2a31a82db16df",
"timestamp": "",
"source": "github",
"line_count": 126,
"max_line_length": 140,
"avg_line_length": 48.24603174603175,
"alnum_prop": 0.693535120908044,
"repo_name": "Sergey-Dvortsov/StockSharp",
"id": "98abecca4b699dcf39e62e99766ed23dbc504f8c",
"s... |
package cruise.umple.umple;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Anonymous constant Declaration 1</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link cruise.umple.umple.Anonymous... | {
"content_hash": "ce9529ddda34ef14ac7b77349ff2e265",
"timestamp": "",
"source": "github",
"line_count": 104,
"max_line_length": 125,
"avg_line_length": 31.96153846153846,
"alnum_prop": 0.6176293622141997,
"repo_name": "runqingz/umple",
"id": "ddf363431f5ba266e4f90f9181baa237d1ad169d",
"size": "3365... |
#pragma once
#include <aws/cloudfront/CloudFront_EXPORTS.h>
#include <aws/cloudfront/CloudFrontRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CloudFront
{
namespace Model
{
/*
The request to get a distribution configuration.
*/
class AWS_CLOUDFRONT_API GetDistribution... | {
"content_hash": "8cb7c6f6c80156ffaf90f54b270f0ba8",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 114,
"avg_line_length": 23.772727272727273,
"alnum_prop": 0.662842574888464,
"repo_name": "kahkeng/aws-sdk-cpp",
"id": "debe28f24e175321439e831173467e769c4e7907",
"size": "... |
/* zutil.c -- target dependent utility functions for the compression library
* Copyright (C) 1995-2005 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "zutil.h"
#ifndef NO_DUMMY_DECL
struct internal_state {int dummy;}... | {
"content_hash": "059add579e2db5d3ae2815b077311e41",
"timestamp": "",
"source": "github",
"line_count": 321,
"max_line_length": 76,
"avg_line_length": 22.358255451713397,
"alnum_prop": 0.5663926431656681,
"repo_name": "dplbsd/soc2013",
"id": "7d46e30b3edf4e0a50795f2ddd9d8568511a73f3",
"size": "7282... |
package shaft.poker.agent.bettingstrategy;
import java.util.List;
import shaft.poker.agent.IBettingStrategy;
import shaft.poker.agent.IHandEvaluator;
import shaft.poker.game.Card;
import shaft.poker.game.IAction;
import shaft.poker.game.ITable;
import shaft.poker.game.ITable.Round;
import shaft.poker.game.table.IActi... | {
"content_hash": "6e8168a4f7de9a3cdb43a5c0b547ad9c",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 132,
"avg_line_length": 37.52,
"alnum_prop": 0.535790435577216,
"repo_name": "loopfz/Lucki",
"id": "43423f6be0541d532ac0cefa044b65e7cd3eb810",
"size": "7733",
"binary": ... |
namespace GrizzenServer
{
public class PointCmd : Cmd
{
public PointCmd(Client client) : base(client) { }
public override void Run()
{
if (HasAccess)
{
Clients.TellScene(Scene, "Point", Actor);
}
}
}
}
| {
"content_hash": "c2ae1b8f468266bbe41ec2e4c1c548dd",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 57,
"avg_line_length": 19.933333333333334,
"alnum_prop": 0.4782608695652174,
"repo_name": "McBits/DungeonR",
"id": "d340edbc67c4353015a1e2a85d0dbfe8ed68b601",
"size": "299"... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "9e656b3b35203e2eb11001d9ca302b5e",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "0ba7ae2f286e2641f2536ae6d0f7579eeea8d15e",
"size": "177... |
#include "trikKit/robotModel/parts/trikObjectSensor.h"
using namespace trik::robotModel::parts;
using namespace kitBase::robotModel;
TrikObjectSensor::TrikObjectSensor(const DeviceInfo &info, const PortInfo &port)
: kitBase::robotModel::robotParts::VectorSensor(info, port)
{
}
| {
"content_hash": "0d8eabe7abe95270f27cf3de6d58a1d8",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 80,
"avg_line_length": 25.727272727272727,
"alnum_prop": 0.7950530035335689,
"repo_name": "DenisKogutich/qreal",
"id": "ae238ed0cd437fcf46e8a91cda387f7ea6f9daf8",
"size": "... |
layout: post
title: "Legendary for iOS"
date: 2013-01-15 06:40
comments: true
categories: [Open Source, Mobile, iOS, Titanium]
---
Last night I Open Sourced an iOS application called [Legendary](https://github.com/fusion94/Legendary). Legendary displays catchphrases and memorable quotes from the character Barney Stinso... | {
"content_hash": "2eaf8cdc493c09812ea16aee793afd70",
"timestamp": "",
"source": "github",
"line_count": 56,
"max_line_length": 488,
"avg_line_length": 52.767857142857146,
"alnum_prop": 0.7681895093062606,
"repo_name": "fusion94/fusion94.github.io",
"id": "73b2b517911c4b56806ed9a5389180425c663e5b",
... |
package com.twitter.mk_melics.sojobus;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest{
@Test
public void addition_isCorrect() throws Exception{
assertEquals(4, 2 + 2);
}
... | {
"content_hash": "8bef557e2454e914ac832f5b0852958e",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 78,
"avg_line_length": 20.0625,
"alnum_prop": 0.6947040498442367,
"repo_name": "MeilCli/SojoBus",
"id": "7fc7c3dfa8e68bacc7c0bc30d141ee2217c37f31",
"size": "321",
"binary... |
module.exports = (service) ->
options = service.options
## Engine
Default engine based on service discovery. The option "engine" is set if a
suitable database is found and match a pre-configured provider. Possible values
are 'mariadb', 'postgresql' and 'mysql' in this order of preference.
For exemple, an ... | {
"content_hash": "2dc872afc1c043e17dc14c02f89adc54",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 106,
"avg_line_length": 45.51748251748252,
"alnum_prop": 0.6865878015056076,
"repo_name": "ryba-io/ryba",
"id": "7033270498eb8b9f9f2955977be7f9199b0c5bc5",
"size": "6532",... |
package com.hongtu.designpattern.proxy.cglibProxy;
/**
* Created by hongtu on 16-11-21.
*/
public interface Hello {
void say(String name);
}
| {
"content_hash": "d3d14d49967fbda99b52378390b23e52",
"timestamp": "",
"source": "github",
"line_count": 8,
"max_line_length": 50,
"avg_line_length": 18.5,
"alnum_prop": 0.7027027027027027,
"repo_name": "zanghongtu2006/java_utils",
"id": "fbb278ee95c0385d2a6537f93ba6fc5c8eb7889b",
"size": "148",
"... |
package net.xenqtt.test;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.util.Arrays;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
/**
* This client sends data to a TCP ... | {
"content_hash": "524462292176c6b0d3fcbf92f663551f",
"timestamp": "",
"source": "github",
"line_count": 142,
"max_line_length": 168,
"avg_line_length": 32.070422535211264,
"alnum_prop": 0.733201581027668,
"repo_name": "codebeautiful/xenqtt",
"id": "b2e34d73a2ca98e25aaaca9af4ea67533fb419b7",
"size":... |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MOAL.algorithms.sorting.threaded_sort — ... | {
"content_hash": "462e7a117b90a36ef1d6545668d7285d",
"timestamp": "",
"source": "github",
"line_count": 265,
"max_line_length": 498,
"avg_line_length": 60.049056603773586,
"alnum_prop": 0.5981273172877521,
"repo_name": "christabor/MoAL",
"id": "12886f886408ac5da9ebd532f806a46e1f93479c",
"size": "15... |
<!DOCTYPE html>
<!-- saved from url=(0105)file:///Users/bradleyjupiterbaudot/Desktop/DBC/curriculum/JupiterLikeThePlanet.github.io/blog/indexB.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link type="text/css" rel="stylesheets" href="file:///Users/bradleyjupiterbaud... | {
"content_hash": "e108e62be4bd99986a7e80cb45fbff8e",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 216,
"avg_line_length": 34.17460317460318,
"alnum_prop": 0.6799814212726428,
"repo_name": "JupiterLikeThePlanet/phase-0",
"id": "9248804ee3a1304166503ed9600d0d8cc8247e48",
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
const vscode = require("vscode");
function getTabString(editor) {
let spacesUsed = editor.options.... | {
"content_hash": "9dc4c9c6f5f7acc5790040cea5a1dd14",
"timestamp": "",
"source": "github",
"line_count": 257,
"max_line_length": 195,
"avg_line_length": 55.494163424124515,
"alnum_prop": 0.4992287196746599,
"repo_name": "ealbertos/dotfiles",
"id": "d25f46f67655b5ca8af6aaf5cdcac413c879f2e3",
"size": ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.