text
stringlengths
2
1.04M
meta
dict
title: Try.flatMap - Kotlin utility classes based on Scala --- [Kotlin utility classes based on Scala](../../index.html) / [it.czerwinski.kotlin.util](../index.html) / [Try](index.html) / [flatMap](./flat-map.html) # flatMap `abstract fun <R> flatMap(transform: (`[`T`](index.html#T)`) -> `[`Try`](index.html)`<`[`R`]...
{ "content_hash": "cb6ab238611e5db3d6f0f97757dfb345", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 370, "avg_line_length": 66.27777777777777, "alnum_prop": 0.7041072925398156, "repo_name": "sczerwinski/sczerwinski.github.io", "id": "de941544b0cd5581b09c40b22e9bfab79e2f02cb...
require "spec_helper" describe "Assets" do subject(:asset) { page.body } it "serves images, eg the crown header" do visit "/assets/govuk_admin_template/header-crown.png" expect(asset).not_to be_empty end describe "Compiling javascript" do it "compiles library code" do visit "/assets/govuk-a...
{ "content_hash": "e9987d6b2750cf8c0994921d97cf41de", "timestamp": "", "source": "github", "line_count": 24, "max_line_length": 57, "avg_line_length": 24.791666666666668, "alnum_prop": 0.6621848739495798, "repo_name": "alphagov/govuk_admin_template", "id": "72a92eaa60c08d1491692fc212fe6e9f8f7868b7", ...
using namespace std; #include <map> #include <vector> #include <string> #include <algorithm> typedef struct tagStudentInfo { int nID; string strName; bool operator < (tagStudentInfo const& _A) const { //这个函数指定排序策略,按nID排序,如果nID相等的话,按strName排序 if(...
{ "content_hash": "743bd60077816d12d357cc629cbe3ba5", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 71, "avg_line_length": 27.975, "alnum_prop": 0.610366398570152, "repo_name": "echoorchid/hua-wei-shang-ji-ti-hui-zong", "id": "1a3439ae0d8197407b5be4e03b858bfe73f13cb0", "s...
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/segmentation_platform/internal/service_proxy_impl.h" #include <inttypes.h> #include <memory> #include <sstream> #include "base/observer_list.h" #include ...
{ "content_hash": "961a6c5c15c98f42d5b0ea307e745599", "timestamp": "", "source": "github", "line_count": 229, "max_line_length": 88, "avg_line_length": 36.60698689956332, "alnum_prop": 0.700942383394966, "repo_name": "nwjs/chromium.src", "id": "3d12b87fa0cbf5d59eb694b91e9b99cce9af7d44", "size": "838...
GTFCreator::Application.routes.draw do devise_for :users mount RailsAdmin::Engine => '/admin', :as => 'rails_admin' # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" ...
{ "content_hash": "c6fe4df2bcff720c400fdaaff8bdb4ba", "timestamp": "", "source": "github", "line_count": 58, "max_line_length": 84, "avg_line_length": 29.103448275862068, "alnum_prop": 0.6463270142180095, "repo_name": "teriiehina/GTFSCreator", "id": "6be1373f7c16ef58ca93c083c5ec12e64edd2d96", "size"...
 /** * @ignore * File overview: Clipboard support. */ // // COPY & PASTE EXECUTION FLOWS: // -- CTRL+C // * if ( isCustomCopyCutSupported ) // * dataTransfer.setData( 'text/html', getSelectedHtml ) // * else // * browser's default behavior // -- CTRL+X // * listen onKey (onkeydown) // * fire 'saveSnapshot...
{ "content_hash": "7d90e2ea8bba075396a9dda5728d85df", "timestamp": "", "source": "github", "line_count": 2777, "max_line_length": 271, "avg_line_length": 36.88656823910695, "alnum_prop": 0.6552804732803561, "repo_name": "gfrodriguez/yii2-ckeditor", "id": "42191cf70793c1a8cf06b81c82ea7fc01576f6a0", "...
#ifndef TrackBase_h #define TrackBase_h #include "core/events/EventTarget.h" #include "wtf/RefCounted.h" namespace WebCore { class TrackBase : public RefCounted<TrackBase>, public EventTargetWithInlineData { REFCOUNTED_EVENT_TARGET(TrackBase); public: virtual ~TrackBase() { } enum Type { TextTrack, Au...
{ "content_hash": "5710fc3e7f1abf19966312955c0d2413", "timestamp": "", "source": "github", "line_count": 28, "max_line_length": 82, "avg_line_length": 18.821428571428573, "alnum_prop": 0.7039848197343453, "repo_name": "lordmos/blink", "id": "38ead6489f06ed437ee6bd750dffa58f5be083d1", "size": "1878",...
module Elmas class BadRequestException < StandardError def initialize(response, parsed) @response = response @parsed = parsed super(message) end def message if @parsed.error_message.present? "code #{@response.status}: #{@parsed.error_message}" else @response....
{ "content_hash": "f1fcdac99a6f0aa315cae1543aabb137", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 60, "avg_line_length": 21.473684210526315, "alnum_prop": 0.6470588235294118, "repo_name": "exactonline/exactonline-api-ruby-client", "id": "237bc9014c20b576005022412295503d1e...
/* Insta-QRP Firmware - OLED Display Library Written By: Joyce Ng & Bertrand Teo Version: 1.0 Date: 21/2/2018 */ #include "oled.h" /* Shift register connections: QA - Connected to Register Select pin or pin 4 of OLED QE - Least Significant Bit, it is connected to DB4 or pin 11 of OLED QF - 2nd bit,...
{ "content_hash": "c01d5e72558b9a87b946cc62546929ae", "timestamp": "", "source": "github", "line_count": 191, "max_line_length": 117, "avg_line_length": 25.57068062827225, "alnum_prop": 0.6552006552006552, "repo_name": "hyantechnologies/insta-qrp", "id": "f276ae78abe9912abc707e17e9aec1ba7a4c0f0b", "...
require "log4r" module Vagrant module Plugin module V1 # This is the superclass for all V1 plugins. class Plugin # Special marker that can be used for action hooks that matches # all action sequences. ALL_ACTIONS = :__all_actions__ # The logger for this class. ...
{ "content_hash": "9407932f874ea60a933736614d21f8df", "timestamp": "", "source": "github", "line_count": 272, "max_line_length": 97, "avg_line_length": 36.05882352941177, "alnum_prop": 0.5954323001631321, "repo_name": "rickard-von-essen/vagrant", "id": "decc7aaaec41b39e168709ee7d03c32a45922bda", "si...
package org.apache.hadoop.hive.metastore; import java.io.IOException; import java.util.HashMap; import javax.security.auth.login.LoginException; import javax.security.sasl.AuthenticationException; import org.apache.commons.lang3.StringUtils; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hiv...
{ "content_hash": "e05bdf04be12f8410fdc67adc6516513", "timestamp": "", "source": "github", "line_count": 210, "max_line_length": 105, "avg_line_length": 47.333333333333336, "alnum_prop": 0.7275653923541248, "repo_name": "jcamachor/hive", "id": "84ae7b51814ee5043fe9c0080827b7142d39395c", "size": "107...
<?php /** * * Created by mtils on 11.08.19 at 11:53. **/ namespace Ems\Routing; use Ems\Contracts\Core\Exceptions\Termination; use Ems\Contracts\Core\SupportsCustomFactory; use Ems\Contracts\Routing\Input; use Ems\Contracts\Routing\MiddlewareCollection as MiddlewareCollectionContract; use Ems\Core\Exceptions\UnCon...
{ "content_hash": "4f3b92e5124cae55289dea0f814cce64", "timestamp": "", "source": "github", "line_count": 100, "max_line_length": 115, "avg_line_length": 26.84, "alnum_prop": 0.646795827123696, "repo_name": "mtils/php-ems", "id": "2a0e2a452ad9d5a982d09eb3b907baa6aef35f86", "size": "2684", "binary":...
{% extends "layout_unbranded.html" %} {% block page_title %} GOV.UK prototype kit {% endblock %} {% block content %} <main id="content" role="main"> <div class="grid-row"> <div class="column-two-thirds"> <div id="global-breadcrumb"> <a class="link-b...
{ "content_hash": "84c2891db4d12dff41d3172518ed030a", "timestamp": "", "source": "github", "line_count": 64, "max_line_length": 188, "avg_line_length": 42.8125, "alnum_prop": 0.5262773722627737, "repo_name": "steven-borthwick/check-support", "id": "269a0ff7a6e1b2d7c447799fe014d0d3e3a6c888", "size": ...
package iht.controllers.application.exemptions.qualifyingBody import iht.config.AppConfig import iht.controllers.application.ApplicationControllerTest import iht.models.application.exemptions.QualifyingBody import iht.testhelpers.CommonBuilder import iht.views.html.application.exemption.qualifyingBody.qualifying_bod...
{ "content_hash": "c98ccb38f6c87d6de3e1302940f2eb1f", "timestamp": "", "source": "github", "line_count": 183, "max_line_length": 168, "avg_line_length": 46.01092896174863, "alnum_prop": 0.7781472684085511, "repo_name": "hmrc/iht-frontend", "id": "b81cba597bc0598e339978951092f9cc2b8c8495", "size": "9...
- Basic grammar imported from language-ruby and modified to handle comments
{ "content_hash": "7638d330530cdb9699049b54a52a80b9", "timestamp": "", "source": "github", "line_count": 1, "max_line_length": 75, "avg_line_length": 76, "alnum_prop": 0.8289473684210527, "repo_name": "Peekmo/atom-raxe-lang", "id": "ee15865dd2017809d7aebb5d6c513868f1b4a305", "size": "95", "binary"...
'use strict'; module.exports = function (grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'lib/*.js', 'tasks/*.js', '<%= nodeunit.tests %>' ], options: { ...
{ "content_hash": "2af0a0e26f1055e5f6fa103d91e53006", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 80, "avg_line_length": 25.205128205128204, "alnum_prop": 0.43540183112919634, "repo_name": "bitExpert/grunt-mntyjs", "id": "33260078c264b25ea8d819f3ee3816d4e00bbb69", "size...
import * as ActionType from './actions'; import * as StatusType from 'konux/common/constants/statusType'; import * as NotificationType from './notificationType'; import * as SwitchStatusType from './switch/statusType'; import * as AxelType from './axelType'; import * as ChartType from './actions/chartType'; import * as...
{ "content_hash": "3b07ad23a17ccbb2a151fe319f026699", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 111, "avg_line_length": 50, "alnum_prop": 0.76, "repo_name": "Haaarp/geo", "id": "ce1093a1f69b21443759dc5bfc1860b6762a215e", "size": "500", "binary": false, "copies": "...
export { assertResolversPresent } from './assertResolversPresent'; export { chainResolvers } from './chainResolvers'; export { addResolversToSchema } from './addResolversToSchema'; export { checkForResolveTypeResolver } from './checkForResolveTypeResolver'; export { extendResolversFromInterfaces } from './extendResolve...
{ "content_hash": "989fe6f1a691089cdc51076683455caf", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 80, "avg_line_length": 54.625, "alnum_prop": 0.7803203661327232, "repo_name": "BigBoss424/portfolio", "id": "68212c5ac907de0fe4970224c57f86be7e9570d5", "size": "437", "bin...
package org.apache.sshd.common.signature; import java.security.KeyPair; import java.util.Collections; import java.util.List; import java.util.concurrent.TimeUnit; import org.apache.sshd.client.SshClient; import org.apache.sshd.client.session.ClientSession; import org.apache.sshd.common.Factory; import org.apache.ss...
{ "content_hash": "19ad1c626e118e013d6e9e6ee39df1d5", "timestamp": "", "source": "github", "line_count": 113, "max_line_length": 137, "avg_line_length": 35.203539823008846, "alnum_prop": 0.6601307189542484, "repo_name": "avthart/mina-sshd", "id": "14a88b3eedd4b925c8247d8656d9a05c87a31318", "size": "...
var Transport = (function () { 'use strict'; var pendingRequestsCount = 0, pendingRequests = {}, maxPendingRequests = 6, sharedCache = new LruCache(10); // constructor // ----------- function Transport(o) { o = o || {}; this.cancelled = false; this.lastUrl = null; this._send...
{ "content_hash": "22bbf15be5048fcf47cb2d860436c2a4", "timestamp": "", "source": "github", "line_count": 156, "max_line_length": 80, "avg_line_length": 23.55128205128205, "alnum_prop": 0.5623298856831791, "repo_name": "quaintm/octopus", "id": "baca28dfc62f4b2274357f2526a409fadedb544a", "size": "3813...
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
{ "content_hash": "26b0676bd7812240f04be05e17574251", "timestamp": "", "source": "github", "line_count": 61, "max_line_length": 123, "avg_line_length": 43.47540983606557, "alnum_prop": 0.7530165912518854, "repo_name": "gro-mar/flowable-engine", "id": "9e64c9efc9e28b9d21815d8162a6e61fcb260e6d", "size...
package org.sakaiproject.tool.impl; import org.apache.commons.collections.iterators.IteratorChain; import org.apache.commons.lang.mutable.MutableLong; import org.sakaiproject.event.api.UsageSession; import org.sakaiproject.id.api.IdManager; import org.sakaiproject.thread_local.api.ThreadLocalManager; import org.saka...
{ "content_hash": "4b7bfb314e826c09540edd768c9f9a22", "timestamp": "", "source": "github", "line_count": 729, "max_line_length": 146, "avg_line_length": 28.790123456790123, "alnum_prop": 0.6636649514008005, "repo_name": "eemirtekin/Sakai-10.6-TR", "id": "d7f9041bf9af91a3eb1be18fab2f9b7c730cfea2", "s...
require 'spec_helper' describe 'assimilation' do let(:title) { 'assimilation' } ['Debian', 'RedHat'].each do |osfamily| describe "assimilation class without any parameters on #{osfamily}" do let(:params) {{ }} let(:facts) { { :osfamily => osfamily } } it { should create_class('assimilation...
{ "content_hash": "d5f4ca4327e716ed8d942f806b97b847", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 75, "avg_line_length": 29.6, "alnum_prop": 0.6054054054054054, "repo_name": "seattle-biomed/puppet-assimilation", "id": "23db1799a81e90227ea8e9a3696f88efcfa26f96", "size": ...
package android.app; import android.content.Intent; import android.os.RemoteException; /** * This class provides access to the system alarm services. These allow you * to schedule your application to be run at some point in the future. When * an alarm goes off, the {@link Intent} that had been registered for i...
{ "content_hash": "a5355017a26ec3391c5112f01c63de6d", "timestamp": "", "source": "github", "line_count": 291, "max_line_length": 91, "avg_line_length": 43.2852233676976, "alnum_prop": 0.6775960622419815, "repo_name": "haikuowuya/android_system_code", "id": "2fe682d1861f7521175d7bb8f850c6404a0e8b35", ...
class CCG::GameModel::GridSerializer CARD_SERIALIZER = CCG::GameModel::PlayedCardSerializer def self.load(value) grid = CCG::GameModel::Grid.new value.each do |row, col, card| grid[row, col] = CARD_SERIALIZER.load(card) end grid end def self.dump(value) grid = value.grid grid....
{ "content_hash": "410137b3027b0c831f2fec3c06dd2506", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 56, "avg_line_length": 20.285714285714285, "alnum_prop": 0.6244131455399061, "repo_name": "JPricey/joejoejoe", "id": "dfa729becaa3a9123f788929add9fee8e64b9085", "size": "42...
package net.sf.farrago.plugin; import java.util.*; import net.sf.farrago.catalog.*; import net.sf.farrago.resource.*; import net.sf.farrago.util.*; /** * FarragoPluginCache is an abstract private cache for loading instances of * {@link FarragoPlugin} (and their component sub-objects). It requires an * underlyin...
{ "content_hash": "cd1b165f916c4c30ea1af46a3e201dba", "timestamp": "", "source": "github", "line_count": 150, "max_line_length": 80, "avg_line_length": 28.446666666666665, "alnum_prop": 0.6158893836419029, "repo_name": "julianhyde/luciddb", "id": "de575c96a9a183dd4de2bb224db727fcb70111fe", "size": "...
<?php namespace Google\AdsApi\AdWords\v201609\cm; /** * This file was generated from WSDL. DO NOT EDIT. */ class BiddingStrategyOperation extends \Google\AdsApi\AdWords\v201609\cm\Operation { /** * @var \Google\AdsApi\AdWords\v201609\cm\SharedBiddingStrategy $operand */ protected $operand = null...
{ "content_hash": "0c9145001022e3c403c375dc30584e62", "timestamp": "", "source": "github", "line_count": 46, "max_line_length": 89, "avg_line_length": 24.23913043478261, "alnum_prop": 0.6493273542600897, "repo_name": "shakaran/googleads-php-lib", "id": "d0bd4e34ebbfcf0827ba9b40d874b5ef18ede310", "si...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace Carrotware.CMS.Mvc.UI.Admin.Models { public class FileUpModel { public FileUpModel() { } [DataType(DataType.Upload)] [Display(Name = "Posted File")] ...
{ "content_hash": "2b9633b1f7827f60a61c220cb28db93b", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 52, "avg_line_length": 19.894736842105264, "alnum_prop": 0.7116402116402116, "repo_name": "ninianne98/CarrotCakeCMS-MVC", "id": "82af2d85a0ea38cd9f4eaee8b07802c41ca257ec", ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.core.implementation.serializer; import com.azure.core.exception.HttpResponseException; import com.azure.core.http.HttpMethod; import com.azure.core.http.HttpRequest; import com.azure.core.http.HttpRespons...
{ "content_hash": "882b4b3f257f5a0c26da313f17b0983d", "timestamp": "", "source": "github", "line_count": 401, "max_line_length": 122, "avg_line_length": 46.244389027431424, "alnum_prop": 0.7134383088869716, "repo_name": "Azure/azure-sdk-for-java", "id": "fa4018801369bd682d5809da82fa25eb19d8c280", "s...
#ifndef __RotationAffector_H__ #define __RotationAffector_H__ #include "OgreMath.h" #include "OgreParticleFXPrerequisites.h" #include "OgreParticleAffector.h" #include "OgreStringInterface.h" namespace Ogre { /** This plugin subclass of ParticleAffector allows you to alter the rotation of particles. @remar...
{ "content_hash": "d9766b8be2a28e49f65887f95ae0d769", "timestamp": "", "source": "github", "line_count": 105, "max_line_length": 100, "avg_line_length": 34.95238095238095, "alnum_prop": 0.6689373297002725, "repo_name": "jakzale/ogre", "id": "1d0dd6fea5be9d6ddc57e9962130709f305d4ec6", "size": "5029",...
<?php // By default the code coverage files are written to the same directory // that contains the covered sourcecode files. Use this setting to change // the default behaviour and set a specific directory to write the files to. // If you change the default setting, please make sure to also configure // the same dire...
{ "content_hash": "947f0e111722f8021fce1632d31c119d", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 76, "avg_line_length": 39.1578947368421, "alnum_prop": 0.7244623655913979, "repo_name": "Harvard-ATG/Quizmo", "id": "59c868e9ed935c8e922d7c6a06aef36abdc31d94", "size": "274...
<?xml version="1.0" encoding="utf-8" ?> <objects default-autowire="no" xmlns="http://www.springframework.net" xmlns:db="http://www.springframework.net/database"> <object name="TwitterJob" type="Spring.Scheduling.Quartz.MethodInvokingJobDetailFactoryObject, Spring.Scheduling.Qua...
{ "content_hash": "99f56bfa2531e2ecdb13fb8d191bdedd", "timestamp": "", "source": "github", "line_count": 58, "max_line_length": 125, "avg_line_length": 47.672413793103445, "alnum_prop": 0.6918625678119349, "repo_name": "Uter1007/socialmscrm", "id": "735306f5d1845d212653b455d1f0acd02987b36a", "size":...
<!-- 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 License, Version 2.0 (the "...
{ "content_hash": "91f33057d799e911415d555b58d3dc9a", "timestamp": "", "source": "github", "line_count": 397, "max_line_length": 339, "avg_line_length": 41.53904282115869, "alnum_prop": 0.5240434176217331, "repo_name": "wooga/atlas-release", "id": "07428eeaffeb2b76886da2a8a4cd3abeef94987e", "size": ...
package org.jheaps.tree; import java.io.Serializable; import java.lang.reflect.Array; import java.util.Comparator; import java.util.NoSuchElementException; import org.jheaps.AddressableHeap; import org.jheaps.annotations.ConstantTime; import org.jheaps.annotations.LogarithmicTime; /** * An explicit d-ary tree addre...
{ "content_hash": "a33fa25e8b5b00ee44c1c2cad0b67bb7", "timestamp": "", "source": "github", "line_count": 556, "max_line_length": 112, "avg_line_length": 28.66726618705036, "alnum_prop": 0.46740698914611956, "repo_name": "d-michail/jheaps", "id": "4831b77f60ba0a31fe8743a17f91f8ffaa6e3a0f", "size": "1...
import React from 'react'; class ProjectInfoList extends React.Component { shouldComponentUpdate() { return false; } render() { const { subtitle, list } = this.props; return ( <div className="project-info-list-container"> <h3 className="project-subtitle">{subtitle}:</h3> <ul c...
{ "content_hash": "d213c114eb122762276bbdbada2e807e", "timestamp": "", "source": "github", "line_count": 29, "max_line_length": 70, "avg_line_length": 22.96551724137931, "alnum_prop": 0.6141141141141141, "repo_name": "evancorl/skate-scenes", "id": "2caa5e74055e372590b42a72296e508e378cacf3", "size": ...
FROM ubuntu:14.04 MAINTAINER Nathaniel Hoag, info@nathanielhoag.com RUN apt-get update && \ apt-get install -y wget && \ wget -q -O - https://deb.nodesource.com/setup_0.12 | sudo bash - && \ apt-get install -y build-essential nodejs && \ rm -rf /var/lib/apt/lists/*
{ "content_hash": "29793653302efb234e21c15093902382", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 71, "avg_line_length": 34.375, "alnum_prop": 0.6727272727272727, "repo_name": "nhoag/nodejs", "id": "32555c7983df341705ea3bd5cd0b3e7a44442453", "size": "299", "binary": fa...
import sbt._ import Keys._ import play.Project._ object ApplicationBuild extends Build { val appName = "kanban-salad-server" val appVersion = "1.0-SNAPSHOT" val appDependencies = Seq( // Add your project dependencies here, jdbc, anorm ) val main = play.Project(appName, appVersion...
{ "content_hash": "ae09f10fb31840eb56d7a72bd2d6c655", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 73, "avg_line_length": 19.238095238095237, "alnum_prop": 0.6608910891089109, "repo_name": "jthurne/kanban-salad", "id": "901f055c61b3fdb28bca1d73f0cd417886db5c94", "size": ...
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0012_auto_20160819_0709'), ] operations = [ migrations.AlterField( model_name='user', name='birthday', f...
{ "content_hash": "d17e40d15a6d12ba890d1e3d9c26873f", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 58, "avg_line_length": 21.27777777777778, "alnum_prop": 0.5900783289817232, "repo_name": "internship2016/sovolo", "id": "eb8d56cce4df4103ce2f97ca2f9d23d3ead16452", "size": ...
@class GroupMemberModel; @interface MemberListViewController : UIViewController - (instancetype)initWithAllMembersModel:(NSArray <GroupMemberModel *>*)members totalMember:(NSInteger)memberCount; @end
{ "content_hash": "a64e1c603f3ea1809687c637d28effff", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 114, "avg_line_length": 33.666666666666664, "alnum_prop": 0.8366336633663366, "repo_name": "huixinHu/XiaoYa", "id": "73acb41466c05955a8f4a14a359415320e6631f4", "size": "368"...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_char_declare_ncat_67a.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.string.label.xml Template File: sources-sink-67a.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: ...
{ "content_hash": "a2a161193b8a453b6e0f5b77e1987d6d", "timestamp": "", "source": "github", "line_count": 97, "max_line_length": 167, "avg_line_length": 35.154639175257735, "alnum_prop": 0.704692082111437, "repo_name": "maurer/tiamat", "id": "41678567bb3731b3090dd3b3c60de6ef94bba764", "size": "3410",...
// @@author A0130195M package jfdi.logic.events; import jfdi.storage.apis.TaskAttributes; /** * @author Liu Xinan */ public class RescheduleTaskDoneEvent { private TaskAttributes task; public RescheduleTaskDoneEvent(TaskAttributes task) { this.task = task; } public TaskAttributes getTask...
{ "content_hash": "b16e80020188e9fa781e28b384a7b165", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 57, "avg_line_length": 16.136363636363637, "alnum_prop": 0.6788732394366197, "repo_name": "cs2103jan2016-w13-4j/main", "id": "d4440b75b4161217d328e246b6517964ca2f6a03", "si...
from test import test_support from test.test_support import verbose, verify, TESTFN, TestSkipped test_support.requires('network') from SocketServer import * import socket import select import time import threading import os NREQ = 3 DELAY = 0.5 class MyMixinHandler: def handle(self): time.sleep(DELAY) ...
{ "content_hash": "fd21c08ce984690a6a13efb331d48806", "timestamp": "", "source": "github", "line_count": 163, "max_line_length": 78, "avg_line_length": 28.63803680981595, "alnum_prop": 0.6304627249357326, "repo_name": "OS2World/APP-INTERNET-torpak_2", "id": "36396daa6f93a87dc1782ae4883fc45a5bc11057", ...
<?php Route::get('/', 'HomeController@mainIndex'); Route::controllers([ 'auth' => 'Auth\AuthController', 'password' => 'Auth\PasswordController', ]); Route::get('landing', 'WelcomeController@index'); //////////////// //User Routes // //////////////// Route::get('users', 'UserController@index'); Route::get('...
{ "content_hash": "de1ac83c9a2f616f945bb7b9b0cfca16", "timestamp": "", "source": "github", "line_count": 303, "max_line_length": 113, "avg_line_length": 43.20462046204621, "alnum_prop": 0.7026201206936062, "repo_name": "scify/VoluntEasy", "id": "fe2691ee5a74b95516254d4612d3d3e0782bdbed", "size": "13...
package org.kuali.rice.krad.datadictionary; import java.beans.PropertyDescriptor; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; ...
{ "content_hash": "ef947bb2a5036c166ec0eacc98694453", "timestamp": "", "source": "github", "line_count": 965, "max_line_length": 170, "avg_line_length": 41.167875647668396, "alnum_prop": 0.644146298487175, "repo_name": "ua-eas/ksd-kc5.2.1-rice2.3.6-ua", "id": "89e46b1b2d82c34921a83b260420b40a3e8f6dc1"...
/** * @file * * Implementation of POSIX thread condition variable alikes using actual POSIX * threads condition variables. */ #include "amp_condition_variable.h" #include <assert.h> #include <errno.h> #include <stddef.h> #include "amp_return_code.h" #include "amp_mutex.h" #include "amp_raw_mutex.h" #include "...
{ "content_hash": "cad964459ea3ad7b6412b602451f0e2c", "timestamp": "", "source": "github", "line_count": 115, "max_line_length": 78, "avg_line_length": 21.4, "alnum_prop": 0.5798455912230801, "repo_name": "bjoernknafla/amp", "id": "ca07c9a0b20a553210450b19ef11e188b20f211d", "size": "4143", "binary...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep the fr...
{ "content_hash": "605e835fb141aa0d17b07563e2014b52", "timestamp": "", "source": "github", "line_count": 135, "max_line_length": 77, "avg_line_length": 30.414814814814815, "alnum_prop": 0.47832440331222603, "repo_name": "hadyfasters/aplikasi_cuti", "id": "8321e07e80483e9c54dbcc0e9796b310b258f09d", "...
layout: default modal-id: 1 date: 2014-07-18 img: command.png alt: image-alt project-date: April 2014 client: Start Bootstrap category: Web Development description: Version control is important ---
{ "content_hash": "091dc15be4c3ae1077def166e1992ade", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 41, "avg_line_length": 18.09090909090909, "alnum_prop": 0.7788944723618091, "repo_name": "RprogameR/RprogameR.github.io", "id": "a92a81899d38b9b79c41221eb1bfbfa88821e52b", ...
''' Production Configurations - Use djangosecure - Use Amazon's S3 for storing static files and uploaded media - Use mailgun to send emails - Use Redis on Heroku ''' from __future__ import absolute_import, unicode_literals from boto.s3.connection import OrdinaryCallingFormat from django.utils import six from .com...
{ "content_hash": "414d15daff74d54b7e39f65b95216472", "timestamp": "", "source": "github", "line_count": 191, "max_line_length": 117, "avg_line_length": 35.58638743455497, "alnum_prop": 0.6017360600264823, "repo_name": "aparamo/basicincome", "id": "c2c47fe6d6080c7841ebb4604222230e91b93a7a", "size": ...
package de.skuzzle.jeve; import java.util.HashMap; import java.util.Map; import java.util.Optional; /** * <p> * This class is the base of all events that can be fired. It holds the source * of the event and provides methods to stop delegation to further listeners if * this event has been handled by one listener. ...
{ "content_hash": "57bf5e7b6d88ed7d8b309eca092f4eb2", "timestamp": "", "source": "github", "line_count": 250, "max_line_length": 89, "avg_line_length": 33.568, "alnum_prop": 0.6357244995233555, "repo_name": "skuzzle/jeve", "id": "cf1994a402834698cd64d2fb819db9837ce084c5", "size": "8392", "binary":...
package org.nibiru.ui.core.api; public interface FramePanel extends Container { }
{ "content_hash": "860bc7761047b321e58f670917ee3688", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 47, "avg_line_length": 20.75, "alnum_prop": 0.7951807228915663, "repo_name": "AAJTechnologies/ui", "id": "0ff90803333c12a969838a9237a6d558316ce2fb", "size": "83", "binary"...
#include "stdafx.h" #include "dx103DFluidBlenders.h" #include "dx103DFluidManager.h" #include "dx103DFluidRenderer.h" namespace { // Volume texture width class cl_textureWidth : public R_constant_setup { virtual void setup(R_constant* C) { float tW = (float)FluidManager.GetTextureWidth(); RCache.s...
{ "content_hash": "7ac6c5e14722e1de1e56019b615ee5ed", "timestamp": "", "source": "github", "line_count": 427, "max_line_length": 99, "avg_line_length": 33.23653395784543, "alnum_prop": 0.6300028184892897, "repo_name": "Im-dex/xray-162", "id": "9013d144b23c8a9ff27a7cb4ce1c9742ef293a94", "size": "1419...
package edu.thinktank.togglz; import io.dropwizard.Configuration; import io.dropwizard.jetty.setup.ServletEnvironment; import io.dropwizard.setup.AdminEnvironment; import io.dropwizard.setup.Bootstrap; import io.dropwizard.setup.Environment; import org.junit.Test; import org.togglz.console.TogglzConsoleServlet; import...
{ "content_hash": "5af7c976c7d620ccee3fac0dfc757d70", "timestamp": "", "source": "github", "line_count": 125, "max_line_length": 162, "avg_line_length": 47.112, "alnum_prop": 0.7566649685854984, "repo_name": "3ddysan/dropwizard-togglz", "id": "54092e18bc45f84defa158bd766b50dbd7de62e6", "size": "5889...
<?xml version="1.0" encoding="UTF-8"?> <form name="frmFichaRPGmeister7_svg" align="client" theme="dark" margins="{top=1}"> <template name="smallInventory"> <rectangle align="client" color="black"/> <label left="5" top="1" width="150" height="20" text="$(title)"/> <textEditor left="5" top="25" width="190" hei...
{ "content_hash": "859457c0018b791b72ebd495b2868fd1", "timestamp": "", "source": "github", "line_count": 254, "max_line_length": 225, "avg_line_length": 57.30708661417323, "alnum_prop": 0.6582165430063204, "repo_name": "rrpgfirecast/firecast", "id": "34ecf80f90353d7b1974c6880da7bd83ade023d5", "size"...
package org.apache.samza.util; /** * An object that can provide time points (useful for getting the elapsed time between two time * points) and can sleep for a specified period of time. * <p> * Instances of this interface must be thread-safe. */ interface HighResolutionClock { /** * Returns a time point th...
{ "content_hash": "d5d8894e65dd36e53496a550d84f6328", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 100, "avg_line_length": 36.5, "alnum_prop": 0.7424657534246575, "repo_name": "InnovaCo/samza", "id": "69ba441ed087305dfe4e1272b00fad67b644e13f", "size": "1902", "binary":...
<?php namespace zpt\db\test\adapter; require_once __DIR__ . '/../test-common.php'; use PHPUnit_Framework_TestCase as TestCase; use zpt\db\DatabaseConnection; use zpt\db\adapter\PgsqlAdminAdapter; use zpt\db\exception\DatabaseException; /** * This class defines test cases for the PgsqlAdminAdapter class. * * @au...
{ "content_hash": "e7c73fc94b5f5f5191afee920c4462b5", "timestamp": "", "source": "github", "line_count": 56, "max_line_length": 76, "avg_line_length": 24.482142857142858, "alnum_prop": 0.6805251641137856, "repo_name": "pgraham/database", "id": "6302ec5b7defca1b088c4a915bc2b76798cf7530", "size": "159...
package natsx import ( "context" "github.com/altairsix/pkg/tracer" "github.com/altairsix/pkg/tracer/k" "github.com/savaki/nats-protobuf" ) // Log provides the standardized logging service for nats queries func Log(bc string) nats_protobuf.Filter { return func(fn nats_protobuf.HandlerFunc) nats_protobuf.HandlerF...
{ "content_hash": "d177b6b3933e06ab3adbda969c949443", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 110, "avg_line_length": 24.580645161290324, "alnum_prop": 0.6824146981627297, "repo_name": "altairsix/pkg", "id": "32e0094e4d9ec90e0878bde829bd920d209b8e10", "size": "762",...
<!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="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <tit...
{ "content_hash": "cf079b3ae270042ceda1becfac405937", "timestamp": "", "source": "github", "line_count": 97, "max_line_length": 93, "avg_line_length": 31.22680412371134, "alnum_prop": 0.5992076592934962, "repo_name": "Fewbytes/rubber-docker", "id": "cdd3bd38a31454d15d48198ccad4e960dd3e5f3b", "size":...
<?php /* * Author: Todd Motto | @toddmotto * URL: html5blank.com | @html5blank * Custom functions, support, custom post types and more. */ /*------------------------------------*\ External Modules/Files \*------------------------------------*/ // Load any external files you have here /*----------------------...
{ "content_hash": "9ef333823354a3a4acde06b6ad30138b", "timestamp": "", "source": "github", "line_count": 512, "max_line_length": 258, "avg_line_length": 38.607421875, "alnum_prop": 0.6214397733596398, "repo_name": "lawkng/html5blank-modified", "id": "f5760b21efd446b79e3171c1a5ac81298b322bdb", "size"...
namespace media { namespace cast { // Used by test code to create fake VideoEncodeAccelerators. The test code // controls when the response callback is invoked. class FakeVideoEncodeAcceleratorFactory { public: explicit FakeVideoEncodeAcceleratorFactory( const scoped_refptr<base::SingleThreadTaskRunner>& tas...
{ "content_hash": "1af009f36580c57d29ed000d00c66b11", "timestamp": "", "source": "github", "line_count": 49, "max_line_length": 79, "avg_line_length": 35.857142857142854, "alnum_prop": 0.7723392145702903, "repo_name": "scheib/chromium", "id": "8a52796fc8860c34a7fdac9d863843c53ec4a883", "size": "2352...
import sys import os from datetime import date sys.path.append(os.path.join(os.path.dirname(__file__), "..", "pox")) sys.path.append(os.path.join(os.path.dirname(__file__), "hassel/hsa-python")) def check_sw_version(path, remote_branch): ''' Return whether the latest commit of the git repo located at the give...
{ "content_hash": "31f0f1aef4a2224c5bf4b67d771c80e6", "timestamp": "", "source": "github", "line_count": 73, "max_line_length": 83, "avg_line_length": 38.10958904109589, "alnum_prop": 0.6599568655643422, "repo_name": "jmiserez/sts", "id": "2f694463ba9218477cfacf73f84512273adab5fe", "size": "3402", ...
title: Parsing with PetitParser2 layout: default --- # Parsing with PetitParser2 In this blog we describe [PetitParser2](https://github.com/kursjan/petitparser2) --- a modular and flexible high-performance top-down parsing framework. ## Structure ### Introduction This introduction describes basics of PetitParser2 a...
{ "content_hash": "4a40817f2bfce428f2d411e480f67488", "timestamp": "", "source": "github", "line_count": 73, "max_line_length": 272, "avg_line_length": 42.78082191780822, "alnum_prop": 0.7620877361511367, "repo_name": "kursjan/petitparser2", "id": "59b6f89e90a1598239e65869c6340e7e24af147c", "size": ...
@implementation HMMessageBusiness + (void)readNewestCommonMsgFromServerWithFamilyId:(NSString *)familyId messageType:(HMMessageType)messageType completion:(commonBlockWithObject)completion { // 获得本地数据库中当前家庭普通消息的最大序号 int maxUserSequence = [HMMessageCommonModel getMaxSequenceNumWithFamilyId:familyId messageType:...
{ "content_hash": "e8e20e0ea69c62b45a2491c8637ea650", "timestamp": "", "source": "github", "line_count": 187, "max_line_length": 192, "avg_line_length": 45.67379679144385, "alnum_prop": 0.5542676501580611, "repo_name": "kenny2006cen/GYXMPP", "id": "839e560e53aac1e42a12864c24b365cadf0bf03a", "size": ...
require 'rails_helper' RSpec.describe Nomis::Client do let(:api_host) { Rails.configuration.prison_api_host } let(:path) { 'v1/lookup/active_offender' } let(:params) { { noms_id: 'G7244GR', date_of_birth: Date.parse('1966-11-22') } } subject { described_class.new(api_host) } describe...
{ "content_hash": "f2327902f4e4895485ce3f6ae7f72037", "timestamp": "", "source": "github", "line_count": 126, "max_line_length": 130, "avg_line_length": 31.77777777777778, "alnum_prop": 0.6198801198801199, "repo_name": "ministryofjustice/prison-visits-2", "id": "d3eae063158efaa7710ab79e046f873b051dfff...
'use strict'; /** * Defines workload agnostic properties for a job. * */ class Job { /** * Create a Job. * @member {string} [entityFriendlyName] Friendly name of the entity on which * the current job is executing. * @member {string} [backupManagementType] Backup management type to execute * the c...
{ "content_hash": "347ccdf06bf30da6fd693a05f77e3f1f", "timestamp": "", "source": "github", "line_count": 110, "max_line_length": 79, "avg_line_length": 24.618181818181817, "alnum_prop": 0.48190546528803546, "repo_name": "xingwu1/azure-sdk-for-node", "id": "585c78c3b392683b9691485d87e24e401c5484db", ...
{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% import "_macros.html" as macros %} {% block title %}Ansible{% endblock %} {% block page_content %} <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <script> $(document).ready(function() { var ...
{ "content_hash": "c4eb640b575820efb3d110dcc4a2bf87", "timestamp": "", "source": "github", "line_count": 85, "max_line_length": 184, "avg_line_length": 29.011764705882353, "alnum_prop": 0.46877534468775345, "repo_name": "davismathew/netautgui", "id": "c46f05a0236f89a555ea19b7d080469a9513bfce", "size...
<?php namespace App\Model\Table; use Cake\ORM\Query; use Cake\ORM\RulesChecker; use Cake\ORM\Table; use Cake\Validation\Validator; /** * Skills Model * * @property \Cake\ORM\Association\BelongsTo $Talents * @property \Cake\ORM\Association\HasMany $Links * @property \Cake\ORM\Association\HasMany $Ranks * @proper...
{ "content_hash": "f7085bfb4f432d13ea0154e49929c541", "timestamp": "", "source": "github", "line_count": 139, "max_line_length": 122, "avg_line_length": 33.13669064748201, "alnum_prop": 0.546461137646548, "repo_name": "mobilefunuk/skilltree", "id": "51673d1551db12c0f61666bfd433ad04ce0b6722", "size":...
'use strict' /* Add controller to app by using the controller function */ /* Passing in a function that defines the controller include parameters with this * controller for the scope and services we might need to use. */ motoApp.controller('ListRidesCtrl', function($scope, motoRidesDataService){ motoRidesDataSe...
{ "content_hash": "8af16a4e07866f80dfdee833597bd3b9", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 81, "avg_line_length": 41.9, "alnum_prop": 0.7374701670644391, "repo_name": "josh-bradley/MotorcycleRidesWeb", "id": "0099bec9aeaa4defb2184d6e49b7f925e2c5f982", "size": "41...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Reflection; using System.Text; namespac...
{ "content_hash": "48216cd72ca0c86702c3484cd196fe45", "timestamp": "", "source": "github", "line_count": 633, "max_line_length": 184, "avg_line_length": 41.78988941548183, "alnum_prop": 0.5332476467697426, "repo_name": "TravisEz13/PowerShell", "id": "7760e86b13d1245daad2dd5dba5f1c96329dcaf7", "size"...
package gmapsfx.javascript; import netscape.javascript.JSObject; import java.util.HashMap; import java.util.Map; /** * JavascriptObject implementation of an array. * <p/> * Return values are supplied as their raw return value from Javascript, unless that value has previously been passed in * to the array as a ...
{ "content_hash": "70ca690f9317a7a416d552ec4b2438db", "timestamp": "", "source": "github", "line_count": 126, "max_line_length": 120, "avg_line_length": 35.41269841269841, "alnum_prop": 0.6443298969072165, "repo_name": "devinmcgloin/UCSDGraphs", "id": "f972812614fe85c28597322a9ee048d3eb09bb0f", "siz...
package blended.akka.http import domino.DominoActivator abstract class WebBundleActivator extends DominoActivator { val contentDir : String val contextName : String whenBundleActive { val uiRoute = new UiRoute(contentDir, getClass().getClassLoader()) // In an OSGi container this will be picked by the ...
{ "content_hash": "61fa1aaf776dfa459bc3fa067e9c4af3", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 99, "avg_line_length": 26.58823529411765, "alnum_prop": 0.7765486725663717, "repo_name": "woq-blended/blended", "id": "20f74c5ce5e1617627580b48a9b1e3bc0adb2cc5", "size": "4...
cd "$(dirname "${BASH_SOURCE}")" && source "../utils.sh" # Homebrew Formulae # https://github.com/Homebrew/homebrew declare -a HOMEBREW_FORMULAE=( "bash-completion" "caskroom/cask/brew-cask" "git" "imagemagick --with-webp" "vim --override-system-vi" "zopfli" ) # Homebrew Casks # https://githu...
{ "content_hash": "473f987ec8090db33c1a1750cac6c564", "timestamp": "", "source": "github", "line_count": 154, "max_line_length": 111, "avg_line_length": 23.87012987012987, "alnum_prop": 0.5269314472252449, "repo_name": "stevenirby/dotfiles-1", "id": "6c438512f50e661b1cddf95063ef141bfb6c0df5", "size"...
#include "tensorflow/lite/kernels/internal/reference/maximum_minimum.h" #include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/kernels/internal/common.h" #include "tensorflow/lite/kernels/internal/quantization_util.h" #include "tensorflow/lite/kernels/i...
{ "content_hash": "32e050ab0e403925f01fdfbe4312f82a", "timestamp": "", "source": "github", "line_count": 128, "max_line_length": 74, "avg_line_length": 29.453125, "alnum_prop": 0.6726790450928382, "repo_name": "ppwwyyxx/tensorflow", "id": "dbf819849f76d643b0ef4b7b51cc3cb490215c35", "size": "4438", ...
package com.example.android.asynctaskloader; import android.os.AsyncTask; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.EditText; import android.widget.ProgressBar; import android.widge...
{ "content_hash": "263641bb7205a80749b87a232d8b7495", "timestamp": "", "source": "github", "line_count": 165, "max_line_length": 130, "avg_line_length": 37.25454545454546, "alnum_prop": 0.6801691882218969, "repo_name": "f1dz/ud851-Exercises", "id": "1c9cff8ef918dd8a2b5789b2bec20d844f4b205d", "size":...
package com.arhs.cube.thats.my.spot.web.rest.errors; public final class ErrorConstants { public static final String ERR_CONCURRENCY_FAILURE = "error.concurrencyFailure"; public static final String ERR_ACCESS_DENIED = "error.accessDenied"; public static final String ERR_VALIDATION = "error.validation"; ...
{ "content_hash": "6bd16246bf8affe6a2468c809424abfc", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 85, "avg_line_length": 34.15384615384615, "alnum_prop": 0.75, "repo_name": "arhs-cube-gameofcode/gameofcode", "id": "86ddc78fc8aedda714453b6692968037199b39bc", "size": "444...
package desiredstatefetcher_test import ( "encoding/json" "fmt" . "github.com/cloudfoundry/hm9000/desiredstatefetcher" "github.com/cloudfoundry/hm9000/testhelpers/appfixture" . "github.com/cloudfoundry/hm9000/testhelpers/custommatchers" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("...
{ "content_hash": "1efbdcee0b72b6812c65acbe74460580", "timestamp": "", "source": "github", "line_count": 58, "max_line_length": 79, "avg_line_length": 28.137931034482758, "alnum_prop": 0.6795343137254902, "repo_name": "cloudfoundry/hm9000", "id": "d58912fcdeaa8be613d7fd3080172c7389c1bb57", "size": "...
package net.sf.katta.node; import net.sf.katta.node.Node.NodeOperationProcessor; import net.sf.katta.operation.node.NodeOperation; import net.sf.katta.protocol.NodeQueue; import net.sf.katta.testutil.mockito.SleepingAnswer; import org.I0Itec.zkclient.exception.ZkInterruptedException; import org.junit.Test; import s...
{ "content_hash": "361375609f50280a8d12544b8f76bbe8", "timestamp": "", "source": "github", "line_count": 76, "max_line_length": 108, "avg_line_length": 34.18421052631579, "alnum_prop": 0.7347959969207082, "repo_name": "sgroschupf/katta", "id": "3bc67fbb09eaefddae7ac8d49fa5534f7af354ba", "size": "320...
package org.apache.beam.runners.direct; import org.apache.beam.sdk.Pipeline; import org.apache.beam.sdk.runners.TransformTreeNode; import org.apache.beam.sdk.transforms.display.DisplayData; import org.apache.beam.sdk.transforms.display.HasDisplayData; /** * Validate correct implementation of {@link DisplayData} by ...
{ "content_hash": "8def5cf93bf31d0d350d96e71102c1df", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 96, "avg_line_length": 29.392156862745097, "alnum_prop": 0.7598398932621748, "repo_name": "tweise/incubator-beam", "id": "e09fe626f780ea7c2c29219720fc7ff3a937a4ca", "size":...
@interface PodsDummy_Dollar_iOS : NSObject @end @implementation PodsDummy_Dollar_iOS @end
{ "content_hash": "b5e2556101f33996382f276c725816b5", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 42, "avg_line_length": 22.5, "alnum_prop": 0.8111111111111111, "repo_name": "yariksmirnov/aerial", "id": "ec646dc5436e356940f24051d8139090019854cd", "size": "124", "binary...
#include "src/core/CL/kernels/CLDepthToSpaceLayerKernel.h" #include "arm_compute/core/CL/CLHelpers.h" #include "arm_compute/core/CL/ICLTensor.h" #include "arm_compute/core/utils/misc/ShapeCalculator.h" #include "src/core/CL/CLValidate.h" #include "src/core/helpers/AutoConfiguration.h" #include "src/core/helpers/Windo...
{ "content_hash": "3411a07720bf41bdf978f32626eeec6c", "timestamp": "", "source": "github", "line_count": 120, "max_line_length": 156, "avg_line_length": 42.541666666666664, "alnum_prop": 0.6973555337904016, "repo_name": "ARM-software/ComputeLibrary", "id": "efc6f820f2369dbaf7b9f899503c1d294436f9c1", ...
<?php /* * You can remove this if you are confident that your PHP version is sufficient. */ if (version_compare(PHP_VERSION, '5.5.9') < 0) { trigger_error('Your PHP version must be equal or higher than 5.5.9 to use CakePHP.', E_USER_ERROR); } /* * You can remove this if you are confident you have intl instal...
{ "content_hash": "0cc3b263e1364010b21910df52b1657f", "timestamp": "", "source": "github", "line_count": 259, "max_line_length": 129, "avg_line_length": 28.671814671814673, "alnum_prop": 0.6951252356584972, "repo_name": "ribafs/cake-control", "id": "2c7a2d09ddb4ed10542447ec06d89679a91452e4", "size":...
package org.assertj.core.api.url; import static org.mockito.Mockito.verify; import org.assertj.core.api.UrlAssert; import org.assertj.core.api.UrlAssertBaseTest; /** * Test for <code>{@link org.assertj.core.api.UrlAssert#hasProtocol(String)}</code>. */ class UrlAssert_hasProtocol_Test extends UrlAssertBaseTest { ...
{ "content_hash": "c811b3347508cbd226cdd7f2dbcccb8c", "timestamp": "", "source": "github", "line_count": 24, "max_line_length": 89, "avg_line_length": 25.666666666666668, "alnum_prop": 0.7516233766233766, "repo_name": "hazendaz/assertj-core", "id": "1ca280c1c0164572e58ddae3a28d794f658452dd", "size":...
CPqD ASR Recognizer =================== O Recognizer é uma API para criação de aplicações de voz que utilizam o servidor CPqD Reconhecimento de Fala (CPqD ASR). Para maiores informações sobre o CPqD ASR, consulte o [site do produto](http://speechweb.cpqd.com.br/asr/docs/latest/). Para entender como usar esta bibliot...
{ "content_hash": "9b2f5ed809a386df23422943a6a6ee38", "timestamp": "", "source": "github", "line_count": 57, "max_line_length": 177, "avg_line_length": 36.63157894736842, "alnum_prop": 0.7447318007662835, "repo_name": "CPqD/asr-sdk-cpp", "id": "c5db47695a0d9d23570231cbf13daad51db39085", "size": "212...
try { Object.defineProperty(null, null, null); assertTrue(false); } catch (e) { assertTrue(/called on non-object/.test(e)); } // Check that an exception is thrown when undefined is passed as object. try { Object.defineProperty(undefined, undefined, undefined); assertTrue(false); } catch (e) { assertTrue(/c...
{ "content_hash": "db66c4cfa054c80dcbce55b51fdee785", "timestamp": "", "source": "github", "line_count": 837, "max_line_length": 78, "avg_line_length": 28.25448028673835, "alnum_prop": 0.7452746416338957, "repo_name": "sinisterchipmunk/tomato", "id": "b258aa75bf375e279e207746c383168d5ba62dd6", "size...
/** * Created by Wayne on 16/3/17. */ 'use strict'; var async = require('async'), error = require('../../errors/all'); var appDb = require('../mongoose').appDb, TransportEvent = appDb.model('TransportEvent'); var self = exports; function getEventByOrder(orderIds, callback) { if (!orderIds || !Array.isArray(...
{ "content_hash": "3997ad1fffbbf1e2cd50cf51fb574313", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 57, "avg_line_length": 22.484848484848484, "alnum_prop": 0.6469002695417789, "repo_name": "hardylake8020/youka-server", "id": "d33edc06cb6c9356ed7aba518951e1d758e3e094", "s...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>lc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel...
{ "content_hash": "f38f6f45481bc2020dcc2805c0c98e36", "timestamp": "", "source": "github", "line_count": 179, "max_line_length": 188, "avg_line_length": 41.06703910614525, "alnum_prop": 0.5490409468099579, "repo_name": "coq-bench/coq-bench.github.io", "id": "11533350c65fc84ced201d9f65946092e8a5af3d", ...
iOS Digest #2 ======================= ## Coding I confess I really like to use managers in my projects. NetworkManager, DataManager, CryptoManager. Using managers could be sign a bad app architectural. [The Trouble with Manager Objects](https://sandofsky.com/blog/manager-classes.html) Building your app remember ther...
{ "content_hash": "993cef0ae8925f0428a7c5e89f89c5a0", "timestamp": "", "source": "github", "line_count": 49, "max_line_length": 163, "avg_line_length": 39.16326530612245, "alnum_prop": 0.7665450755601876, "repo_name": "jeksys/iOSDigest", "id": "f62c46546f05f807afe61c2d2567820f91e1df14", "size": "191...
Godot Engine is developed by a community of voluntary contributors who contribute code, bug reports, documentation, artwork, support, etc. It is impossible to list them all; nevertheless, this file aims at listing the developers who contributed significant patches to this MIT licensed source code. "Significant" is arb...
{ "content_hash": "58a999d971b4944ffba32d62d70c0958", "timestamp": "", "source": "github", "line_count": 77, "max_line_length": 77, "avg_line_length": 28.051948051948052, "alnum_prop": 0.7092592592592593, "repo_name": "ficoos/godot", "id": "728ba5f6eecf0951bb0026cfef85d21b34931ed0", "size": "2196", ...
title: "Booyah!" layout: "post" permalink: "/2012/09/booyah.html" uuid: "8029689439193204577" guid: "tag:blogger.com,1999:blog-4897882164686544357.post-8029689439193204577" date: "2012-09-01 21:00:00" updated: "2012-09-01 21:00:02" description: blogger: siteid: "4897882164686544357" postid: "8029689439193204577...
{ "content_hash": "cb36db4e6c036891738c7941694e010e", "timestamp": "", "source": "github", "line_count": 117, "max_line_length": 799, "avg_line_length": 63.72649572649573, "alnum_prop": 0.5802038626609443, "repo_name": "bradorego/beerbatterbreakfast", "id": "b547d4f0df50d4b28357f6dfa54f794a11ed3c0c", ...
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QStyleOptionViewItemV2.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:24 Warning : this file is machine gener...
{ "content_hash": "6e0783d6f271747b64524c366e5f0782", "timestamp": "", "source": "github", "line_count": 99, "max_line_length": 155, "avg_line_length": 36.717171717171716, "alnum_prop": 0.7433287482806052, "repo_name": "uduki/hsQt", "id": "efcdf5ca14ae6d4d60edffef6d1bdfb0822e5aa2", "size": "3635", ...
package com.javarush.task.task14.task1408; public class MoldovanHen extends Hen { public MoldovanHen() { System.out.println(getDescription()); } @Override int getCountOfEggsPerMonth() { return 5; } public String getDescription() { return super.getDescription() + " Моя...
{ "content_hash": "8142ab3e738fe3fbb014406e0fc21d4a", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 96, "avg_line_length": 24.333333333333332, "alnum_prop": 0.6141552511415526, "repo_name": "pshynin/JavaRushTasks", "id": "270b98d53f956c08ada2b4f9f6616c9aae5f6895", "size":...
import json import serf import pipe def handler(obj): name, payload = obj serf.serf_plain('event', name, json.dumps(payload)) if __name__ == '__main__': pipe.server('/serfnode/parent', handler)
{ "content_hash": "19fbd50b2d79e01279b416a2ccc88468", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 55, "avg_line_length": 16.23076923076923, "alnum_prop": 0.6445497630331753, "repo_name": "waltermoreira/serfnode", "id": "c9eb64a1b551f216438647966510eea582b8330e", "size":...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="search.css"/> <script type="text/javascript" src="all_74...
{ "content_hash": "68f0dad9b25717bb588228e86db15497", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 121, "avg_line_length": 38.84, "alnum_prop": 0.7075180226570545, "repo_name": "superdyzio/PWR-Stuff", "id": "3cfbf70f37e95b97bded39fa876c959db721024c", "size": "972", "bi...
<?php namespace App\WebBundle\Entity; use Doctrine\ORM\EntityRepository; /** * EtapaConcursoRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class EtapaConcursoRepository extends EntityRepository { public function findAllEtapas($idConcurso,$tipo...
{ "content_hash": "c6818a43c7f1ccbeb7f43cb957a95f63", "timestamp": "", "source": "github", "line_count": 68, "max_line_length": 140, "avg_line_length": 35.661764705882355, "alnum_prop": 0.5682474226804124, "repo_name": "yumini/PNC", "id": "0dfcd26859c2a533f7a6407bdc5a3df65b5c48cd", "size": "2425", ...
/** * @author Daisuke Homma */ new function() { // block an.PathSplitter = function() { an.g.PathSplitter = this; }; var self = an.PathSplitter; // inherit from an.EventState; self.prototype = new an.EventState(); self.prototype.test = function(e) { this.select(); return true; } self.prototype.select =...
{ "content_hash": "cadef41ccbf4fe8c83fbf422669d1fdb", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 70, "avg_line_length": 15.215686274509803, "alnum_prop": 0.654639175257732, "repo_name": "homma/Anima", "id": "e99ef86436910b2e5fca47271c8cb850331f7232", "size": "776", "...
#include <folly/experimental/symbolizer/SignalHandler.h> int main() { folly::symbolizer::installFatalSignalHandler(); __builtin_trap(); }
{ "content_hash": "eb884473d75adedfaa5cd822a77ff9d7", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 56, "avg_line_length": 18.125, "alnum_prop": 0.7310344827586207, "repo_name": "facebook/folly", "id": "17ff8968c1060630f466ae0451efd4bd982be982", "size": "763", "binary": ...
XOCC=xocc CC=g++ #Host code HOST_SRC=./chain.cpp crmsd.cpp eef1.cpp leaf.cpp node.cpp pairtree.cpp pdb.cpp rss.cpp simulation.cpp slist.cpp spheres.cpp #HOST_HDRS=MatVec.h RectDist.h RectDistCL.h kernel.h AA.hpp bv.hpp chain.hpp cl.hpp crmsd.hpp eef1.hpp leaf.hpp leafCL.hpp node.hpp pairtree.hpp pdb.hpp rss.hpp sli...
{ "content_hash": "f2a6b4b52d3c20349f73d786ad338b55", "timestamp": "", "source": "github", "line_count": 115, "max_line_length": 268, "avg_line_length": 30.48695652173913, "alnum_prop": 0.7162007986309185, "repo_name": "lorenzoditucci/sda_examples_aws", "id": "42e6b59fa4e0740eb5c7fee67c01ed794971ae10"...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Capsule : MonoBehaviour { public bool Assigned; public bool Landed; private void OnCollisionEnter(Collision other) { if (other.collider.tag == "Building" && !Landed) { if (othe...
{ "content_hash": "947c9681c608dd6f7d6cf874d36d9034", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 72, "avg_line_length": 23.96, "alnum_prop": 0.5542570951585977, "repo_name": "Aspekt1024/MazeOfAI", "id": "bb22c2241f3ed10f5175aa988e66d2cdb14b25a9", "size": "601", "bina...
<?xml version="1.0" encoding="UTF-8"?> <Text xmlns="http://www.opentravel.org/OTM/Common/v2" language="en" textFormat="PlainText">Formatted text example.</Text>
{ "content_hash": "24a8d5af088f29d2f824d3e89c4a6267", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 121, "avg_line_length": 80.5, "alnum_prop": 0.7267080745341615, "repo_name": "OpenTravel-Forum-2016/otaforum-mock-content", "id": "2f320d445497f46bfc8d06bae5a6376a272773b6", ...
from h2o.estimators.xgboost import * from tests import pyunit_utils def xgboost_insurance_poisson_small(): assert H2OXGBoostEstimator.available() # Import big dataset to ensure run across multiple nodes training_frame = h2o.import_file(pyunit_utils.locate("smalldata/testng/insurance_train1.csv")) tes...
{ "content_hash": "cfc35aa9ab5a9f5479550e0587b27ed2", "timestamp": "", "source": "github", "line_count": 43, "max_line_length": 120, "avg_line_length": 47, "alnum_prop": 0.6605640771895102, "repo_name": "h2oai/h2o-3", "id": "f24652951aebca0494ada74501fc14f2e313ac5e", "size": "2021", "binary": fals...
<?php namespace Doctrine\ORM\Query; /** * This class is used to generate DQL expressions via a set of PHP static functions * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @author Guilherme Blanco <guilhermeblanco@hotmail.com...
{ "content_hash": "3d4a72267310754fb58ed86618d368ba", "timestamp": "", "source": "github", "line_count": 575, "max_line_length": 96, "avg_line_length": 30.321739130434782, "alnum_prop": 0.5501577287066246, "repo_name": "krishcdbry/z-zangura", "id": "877ef1025cdb7d9abc4df0cec32bb49beb4cd692", "size":...