text
stringlengths
2
1.04M
meta
dict
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:color="#1abc9c"/> <item android:state_checked="true" android:color="#1abc9c"></item> <item android:state_focused="true" android:color="#7f7f7f"/> <ite...
{ "content_hash": "2d1f345fb9947e5ff9707c293c1de388", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 71, "avg_line_length": 39.27272727272727, "alnum_prop": 0.6875, "repo_name": "bestarandyan/ShoppingMall", "id": "1e7e78c95103a42f8e81da6f99ded864ea7ba3b2", "size": "432", ...
layout: portfolio --- <article class="posts gallery"> <header class="post__item post__item--intro"> <div class="post__body"> <h5><strong>{{ page.title }}</strong></h5> <p> {% for product in page.tags %} <span>{{ product.tag }}</span> {%...
{ "content_hash": "e4465a0207d683c5021b2686a014ebc8", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 121, "avg_line_length": 34.46666666666667, "alnum_prop": 0.44680851063829785, "repo_name": "asilvadesigns/portfolionew", "id": "7973378ab743e95e62e3e9dbd30a544421629360", "...
namespace Fluent; /// <summary> /// Todo /// </summary> public enum IconSize { /// <summary> /// Small icon size. Usually 16x16. /// </summary> Small, /// <summary> /// Medium icon size. Usually 24x24. /// </summary> Medium, /// <summary> /// Large icon size. Usually 32x32. ...
{ "content_hash": "01604261e99e9d1f206cce8cce9cabc1", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 40, "avg_line_length": 15.703703703703704, "alnum_prop": 0.5165094339622641, "repo_name": "fluentribbon/Fluent.Ribbon", "id": "9955c95125f50bdc0073258849e58085e5616d5c", "s...
My Resume
{ "content_hash": "b902fd0fcd9944eab235f843a668b3aa", "timestamp": "", "source": "github", "line_count": 1, "max_line_length": 9, "avg_line_length": 10, "alnum_prop": 0.8, "repo_name": "RishabGoel/Rishab_Goel_Resume", "id": "e080ca0bc9a9f9f52a04912e33f544632cc7fd8f", "size": "31", "binary": false,...
package org.apache.wicket.authroles.authorization.strategies.role.metadata; import java.util.HashMap; import java.util.Map; import org.apache.wicket.Component; import org.apache.wicket.authroles.authorization.strategies.role.Roles; import org.apache.wicket.request.component.IRequestableComponent; import org.apache.w...
{ "content_hash": "3746fd3420fd1dffb40542824985898e", "timestamp": "", "source": "github", "line_count": 149, "max_line_length": 97, "avg_line_length": 28.181208053691275, "alnum_prop": 0.7168373422243391, "repo_name": "selckin/wicket", "id": "d449090389eef0688c518e4ce07acac569de0c7d", "size": "5001...
package com.google.gerrit.server.group; import com.google.common.base.Objects; import com.google.common.base.Strings; import com.google.gerrit.common.data.GlobalCapability; import com.google.gerrit.common.data.GroupDescription; import com.google.gerrit.common.data.GroupDescriptions; import com.google.gerrit.common.err...
{ "content_hash": "455224075fb13bf8a0346ed2686299b8", "timestamp": "", "source": "github", "line_count": 121, "max_line_length": 93, "avg_line_length": 40.30578512396694, "alnum_prop": 0.7736313307361082, "repo_name": "bootstraponline-archive/gerrit-mirror", "id": "4ca0200b9a83e7b4bc4d82a103dd2b7aab58...
package org.apache.flink.connector.jdbc; import org.apache.flink.types.Row; import org.junit.After; import org.junit.Test; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLDataException; import ja...
{ "content_hash": "ad7ef2e58d8e641dbcd7a90f25917c56", "timestamp": "", "source": "github", "line_count": 336, "max_line_length": 105, "avg_line_length": 34.166666666666664, "alnum_prop": 0.735191637630662, "repo_name": "sunjincheng121/flink", "id": "226d86f5c0f9cf8f75b3d2a530e05e6030784c25", "size":...
package fi.aalto.dmg.frame.bolts.windowed; import backtype.storm.topology.BasicOutputCollector; import backtype.storm.topology.OutputFieldsDeclarer; import backtype.storm.tuple.Fields; import backtype.storm.tuple.Tuple; import backtype.storm.tuple.Values; import fi.aalto.dmg.exceptions.DurationException; import fi.aal...
{ "content_hash": "aea814b7dd3e605f550c43fcfdc69aee", "timestamp": "", "source": "github", "line_count": 123, "max_line_length": 133, "avg_line_length": 37.7479674796748, "alnum_prop": 0.617273314667241, "repo_name": "wangyangjun/StreamBench", "id": "141320897f109df40504d2ac9415e21fae893429", "size"...
package sample.data.cassandra; import org.cassandraunit.spring.CassandraDataSet; import org.cassandraunit.spring.EmbeddedCassandra; import org.junit.ClassRule; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.IntegrationTest; import org.springframework.boot.test.r...
{ "content_hash": "8cf7de2bae6515adb766036047314166", "timestamp": "", "source": "github", "line_count": 39, "max_line_length": 80, "avg_line_length": 33.48717948717949, "alnum_prop": 0.8169984686064319, "repo_name": "lenicliu/spring-boot", "id": "8f48ab7ce6e8ef27ce698f3f36e5ac694489a0b9", "size": "...
There are things in the world that we know as "restaurants" -- for example, in Austin you can't to better than "Torchy's Tacos". It, like all restaurants, have some notion of a "name" and a "menu". * "Restaurant" is a _*type*_: a group sharing common properties. * "Torchy's Tacos" is an _*individual*_. * "name" and "m...
{ "content_hash": "01e94fe2a22ad0972469b3ff8259c062", "timestamp": "", "source": "github", "line_count": 275, "max_line_length": 115, "avg_line_length": 48.95636363636363, "alnum_prop": 0.5836737725618362, "repo_name": "infochimps-labs/icss", "id": "710c8cca260740dcfe21e2df08a8e5d7aeb7af30", "size":...
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <scenarioConfiguration domain="ISAnalytics" name="ConfigureAlertLongSessions" scenario="ConfigureAlertLongSessions"> <description>Configure long session duration detection</description> <parameterMap> <entry> <key>sessionDurationThresh...
{ "content_hash": "afb36a98374a4a879abe2596232be20c", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 117, "avg_line_length": 42.5, "alnum_prop": 0.7035294117647058, "repo_name": "manoramahp/analytics-is", "id": "5364ead40484eb139cd50d86650386b6ee119815", "size": "425", "...
import time # from mufsim.errors import MufRuntimeError from mufsim.insts.base import Instruction, instr @instr("date") class InstDate(Instruction): def execute(self, fr): when = time.localtime() fr.data_push(int(when.tm_mday)) fr.data_push(int(when.tm_mon)) fr.data_push(int(when....
{ "content_hash": "53144d39a2c3329aa194949830f1afd5", "timestamp": "", "source": "github", "line_count": 68, "max_line_length": 60, "avg_line_length": 25.235294117647058, "alnum_prop": 0.6317016317016317, "repo_name": "revarbat/mufsim", "id": "f56dcdf173ea668782ad8e708aae523b012338d0", "size": "1716...
<?xml version="1.0" ?> <container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> <parameters> <parameter key="sonata.payment.ge...
{ "content_hash": "3a55ec15424facb8dd2e41090ea2d23b", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 120, "avg_line_length": 37.23529411764706, "alnum_prop": 0.6872037914691943, "repo_name": "kinkinweb/lhvb", "id": "86635953f833615ffa8d1158ea87db0e323dbc1c", "size": "633",...
"""Template tags and filters for Zinnia""" import re from hashlib import md5 from datetime import date try: from urllib.parse import urlencode except ImportError: # Python 2 from urllib import urlencode from django.db.models import Q from django.db.models import Count from django.conf import settings from dja...
{ "content_hash": "16ffd5c9296d3c568e996ae8d32f6e09", "timestamp": "", "source": "github", "line_count": 488, "max_line_length": 79, "avg_line_length": 33.618852459016395, "alnum_prop": 0.6169694014384981, "repo_name": "marctc/django-blog-zinnia", "id": "00511a4fceb5ea7e46b2eaba456dccaea490b84f", "s...
/* eslint-disable no-path-concat */ var fs = require('fs'); var cwd = fs.workingDirectory; var scriptName = fs.absolute(require('system').args[3]); var __dirname = scriptName.substring(0, scriptName.lastIndexOf('/')); var selectorNotFoundPath = __dirname + '/resources/selectorNotFound_noun_164558_cc.png'; var hiddenS...
{ "content_hash": "417e3d3f83874510f4fc7ac6ab8220c9", "timestamp": "", "source": "github", "line_count": 325, "max_line_length": 228, "avg_line_length": 35.784615384615385, "alnum_prop": 0.6388650042992261, "repo_name": "klausbayrhammer/BackstopJS", "id": "0364da16a646d83cecb233a40cb375a05736fd4e", ...
from ...models import Judge from ...utils.logging import logger import click import requests import json from .utils import get_data, login_oauth from beautifultable import BeautifulTable from ...utils.Errors import AuthenticationError from .models import Problem, Contest, Testcase from ...utils import style class Co...
{ "content_hash": "faa397e2e86d0eb90d65f52d44158d90", "timestamp": "", "source": "github", "line_count": 208, "max_line_length": 82, "avg_line_length": 38.9375, "alnum_prop": 0.5711816273614027, "repo_name": "termicoder/termicoder", "id": "dc0025936bd34c1234f3e3fc4e018d13c947a496", "size": "8264", ...
<?hh final class RefactorCodegenTestCase extends CodegenBaseTest { /** * In this example, the contents of OldClass get put into NewClass. * OldClass had some partially generated code that's going to get * transported into the like sections of NewClass. */ public function testClassRename() { $old_...
{ "content_hash": "8a6935d1a64024628edb53213f08988c", "timestamp": "", "source": "github", "line_count": 61, "max_line_length": 77, "avg_line_length": 37.40983606557377, "alnum_prop": 0.6801051709027169, "repo_name": "vimokumar/hack-codegen", "id": "02cb90b7fdba87e4fec1732464241d148e6dcebb", "size":...
""" Created on Wed Mar 16 15:40:29 2016 @author: okada $Id: signature.py 205 2017-08-08 06:25:59Z aokada $ """ ########### js template js_header = """(function() { sig_data = {}; """ js_footer = """ })(); Object.freeze(sig_data); """ js_dataset = """ sig_data.tooltip_format = {{ signature_title:{signature_title...
{ "content_hash": "114ea6b2e88b13003142c474e18ac163", "timestamp": "", "source": "github", "line_count": 257, "max_line_length": 176, "avg_line_length": 35.68093385214008, "alnum_prop": 0.5735005452562705, "repo_name": "Genomon-Project/paplot", "id": "d0bf131cfe23e230013b8aeca123af12e2a3b595", "size...
package org.apache.flink.table.catalog; import org.apache.flink.api.common.typeinfo.TypeInformation; import org.apache.flink.api.java.DataSet; import org.apache.flink.api.java.ExecutionEnvironment; import org.apache.flink.streaming.api.datastream.DataStream; import org.apache.flink.streaming.api.environment.StreamEx...
{ "content_hash": "31b7012d3f89707344238d1bce4d7a7b", "timestamp": "", "source": "github", "line_count": 80, "max_line_length": 103, "avg_line_length": 28.35, "alnum_prop": 0.777336860670194, "repo_name": "hequn8128/flink", "id": "8e08fa27da8bfe75c023c866b9a856d4b5200b5d", "size": "3073", "binary"...
package org.sfs.nodes.compute.object; import io.vertx.core.logging.Logger; import org.sfs.Server; import org.sfs.VertxContext; import org.sfs.io.BufferEndableWriteStream; import org.sfs.vo.TransientVersion; import rx.Observable; import rx.functions.Func1; import static io.vertx.core.logging.LoggerFactory.getLogger;...
{ "content_hash": "7b1e0b53da4738764480dcc69613408e", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 131, "avg_line_length": 35.048780487804876, "alnum_prop": 0.7821851078636047, "repo_name": "pitchpoint-solutions/sfs", "id": "92fda7ac0663fccc268c10dc47b6c7a0e650ae77", "si...
Use this overwrite to create customized CSS for your Blogger Template. It is easier than the Template Designer and opens new possibilities ###Usage Change the variables and compile the file into CSS which you can then place in your code. If you don't have SASS installed on your computer (which is a shame! Check SASS o...
{ "content_hash": "d6e9d73aaf55425163eacff6a9af4925", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 303, "avg_line_length": 76.73684210526316, "alnum_prop": 0.7914951989026063, "repo_name": "mynimi/Photosheet", "id": "59f56fd257ab0283bb2bbd9c090ae4565e1e6d75", "size": "15...
using System; using System.Collections; using System.Collections.Generic; namespace De.Osthus.Ambeth.Collections { /** * Implementierung einer &uuml;blichen HashSet mit dem Vorteil, dass sie a) direkt Collectable ist, also ohne Umwege &uuml;ber den ObjectCollector verwaltet * werden kann. Daraus folgt, d...
{ "content_hash": "6fc89d2da87bd772d58c9d84becde8b6", "timestamp": "", "source": "github", "line_count": 121, "max_line_length": 164, "avg_line_length": 34.81818181818182, "alnum_prop": 0.6014716354141941, "repo_name": "Dennis-Koch/ambeth", "id": "e74486ad0af35075ddf9f0bb44bf697648a36193", "size": "...
package com.app.graduationproject.services; import android.app.IntentService; import android.content.Intent; import android.support.v4.content.LocalBroadcastManager; import android.util.Log; import com.app.graduationproject.db.Learn; import com.app.graduationproject.net.CloudAPIService; import com.app.graduationproje...
{ "content_hash": "4c1eb80d565c534fcf064457fe9f92f6", "timestamp": "", "source": "github", "line_count": 80, "max_line_length": 94, "avg_line_length": 29.7125, "alnum_prop": 0.6916281026503996, "repo_name": "ahaliulang/Graduation-Project", "id": "70cfd989d5e35112ac771f11d7c2369276e6c93f", "size": "2...
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <link type="text/css" href="<?php base_url(); ?>assets/style/bootstrap.min.css" media="screen" rel="...
{ "content_hash": "9cf80122168d646acf54c80bfc877209", "timestamp": "", "source": "github", "line_count": 81, "max_line_length": 126, "avg_line_length": 52.58024691358025, "alnum_prop": 0.540972059168819, "repo_name": "PBWim/JTI_LeasingPHP", "id": "828f0e22dfbe919a81246677097bf1a011e740f7", "size": "...
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name Polypodium setuliferum Alderw. ### Remarks null
{ "content_hash": "47bbaaf8f9f16a646246c7dcad31628b", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 11.692307692307692, "alnum_prop": 0.7368421052631579, "repo_name": "mdoering/backbone", "id": "b4f697a8769d06cc100ae210ee98d978098e4b8b", "size": "21...
<?xml version="1.0" encoding="UTF-8"?> <ldswebml type="image" uri="/media-library/images/recreation#youth-softball-887502" xml:lang="eng" locale="eng" status="publish" xmlns:its="http://www.w3.org/2005/11/its"> <search-meta> <uri-title its:translate="no">youth-softball-887502</uri-title> <source>youth-sof...
{ "content_hash": "081bb7806672d6f3138aeb17e011a22c", "timestamp": "", "source": "github", "line_count": 63, "max_line_length": 171, "avg_line_length": 45.65079365079365, "alnum_prop": 0.5935326842837274, "repo_name": "freshie/ml-taxonomies", "id": "4ffce39158b8626dfad87a29ffc7b3017c211a90", "size":...
package de.lukasniemeier.gamecenterlivesender.data; import java.util.Collection; import java.util.List; import de.lukasniemeier.gamecenterlivesender.model.games.Game; import de.lukasniemeier.gamecenterlivesender.model.teams.Team; public interface DataManager { List<Game> getGames(); Collection<...
{ "content_hash": "c73fa233e932e00c61c8954a677ca296", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 62, "avg_line_length": 23.75, "alnum_prop": 0.7552631578947369, "repo_name": "lukasniemeier/gcls", "id": "f3bcdf2e6b9e6f9572c5e814011f3bb459bc415c", "size": "380", "binar...
package com.github.fge.grappa.matchers.predicates; import com.github.fge.grappa.matchers.MatcherType; import com.github.fge.grappa.matchers.base.CustomDefaultLabelMatcher; import com.github.fge.grappa.matchers.base.Matcher; import com.github.fge.grappa.parsers.BaseParser; import com.github.fge.grappa.rules.Rule; imp...
{ "content_hash": "911d2bdad7763beb7a2ae16744278269", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 79, "avg_line_length": 30.870967741935484, "alnum_prop": 0.7147335423197492, "repo_name": "fge/grappa", "id": "7fb7bf9bf02172bdd40adf801d77653d01f761bf", "size": "2517", ...
package org.apache.lucene.index; import java.io.IOException; import java.util.concurrent.atomic.AtomicInteger; import org.apache.lucene.codecs.LiveDocsFormat; import org.apache.lucene.store.Directory; import org.apache.lucene.store.IOContext; import org.apache.lucene.util.Bits; import org.apache.lucene.u...
{ "content_hash": "f2c32440cd93a9fd871fe7e162e59c0b", "timestamp": "", "source": "github", "line_count": 282, "max_line_length": 242, "avg_line_length": 35.08156028368794, "alnum_prop": 0.6371171535429091, "repo_name": "terrancesnyder/solr-analytics", "id": "b3c93cbf76dc9378fcd9d6440eed58540d824d92", ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace ASP.NETMVC { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pa...
{ "content_hash": "c2fc627b18ffa104146e73c7dbafc821", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 99, "avg_line_length": 25.130434782608695, "alnum_prop": 0.5847750865051903, "repo_name": "todor-enikov/TelerikAcademy", "id": "0b14ccbd4f23256c35cd1e965ce48511e363a6b6", "...
FROM ubuntu # make sure the package repository is up to date RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update # install memcached RUN apt-get install -y memcached # run as user daemon (memcached doesn't allow to run as root) USER daemon # expose memcac...
{ "content_hash": "eda1469f492762e172bbe0e81fe19cc6", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 93, "avg_line_length": 24.470588235294116, "alnum_prop": 0.7740384615384616, "repo_name": "ndemoor/dockerbel", "id": "4053b4a781b6c6743bc9b0acded2d5dc56a16ff4", "size": "41...
package websocket import os__ "os" import bytes__ "bytes" import http__ "net/http" import json__ "encoding/json" import exec__ "os/exec" import ioutil__ "io/ioutil" import ( "encoding/json" ) // WriteJSON is deprecated, use c.WriteJSON instead. func WriteJSON(c *Conn, v interface{}) error { return c.WriteJSON(v) }...
{ "content_hash": "d693fbbecd918e814f1c6c598ced725e", "timestamp": "", "source": "github", "line_count": 75, "max_line_length": 151, "avg_line_length": 23.826666666666668, "alnum_prop": 0.6603245663122552, "repo_name": "rancherio/host-proxy", "id": "77a26c200c6dc11b9213e37316a9469982437180", "size":...
@{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '5.1.5' # Supported PSEditions # CompatiblePSEditions = @() # ID used to uniquely identify this module GUID = '698c387c-bd6b-41c6-82ce-721f1ef39548' # Author of this module Aut...
{ "content_hash": "37cb879da3aac44cfd89777f566ca75c", "timestamp": "", "source": "github", "line_count": 145, "max_line_length": 170, "avg_line_length": 42.4, "alnum_prop": 0.7260897852960312, "repo_name": "AzureAutomationTeam/azure-powershell", "id": "13e74f33788b24e99987059d0c391976b19e0cca", "siz...
fn test_cpu() { use sysinfo::{CpuExt, SystemExt}; if sysinfo::System::IS_SUPPORTED { let mut s = sysinfo::System::new(); assert!(s.cpus().is_empty()); s.refresh_cpu(); assert!(!s.cpus().is_empty()); let s = sysinfo::System::new_all(); assert!(!s.cpus().is_empty(...
{ "content_hash": "bd3e74f5421e9c10439fc0004d1b3aa9", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 65, "avg_line_length": 24.925925925925927, "alnum_prop": 0.5260029717682021, "repo_name": "GuillaumeGomez/sysinfo", "id": "fbeb65b8157f3ec1fb8201fd59ee8ff9e61119b9", "size"...
#ifndef BITCOINAMOUNTFIELD_H #define BITCOINAMOUNTFIELD_H #include <QWidget> QT_BEGIN_NAMESPACE class QDoubleSpinBox; class QValueComboBox; QT_END_NAMESPACE /** Widget for entering blakecoin amounts. */ class BitcoinAmountField: public QWidget { Q_OBJECT Q_PROPERTY(qint64 value READ value WRITE setValue N...
{ "content_hash": "fc11c469a17d0b87d9418e443737e8af", "timestamp": "", "source": "github", "line_count": 61, "max_line_length": 121, "avg_line_length": 23.737704918032787, "alnum_prop": 0.6975138121546961, "repo_name": "BlueDragon747/Blakecoin", "id": "6b5e4f81aaf9fd208f523ed340c3252ea9d60665", "siz...
<?php namespace frontend\controllers; use Yii; use common\models\LoginForm; use frontend\models\PasswordResetRequestForm; use frontend\models\ResetPasswordForm; use frontend\models\SignupForm; use frontend\models\ContactForm; use yii\base\InvalidParamException; use yii\web\BadRequestHttpException; use yii\web\Controll...
{ "content_hash": "cddf213389fc03eb572f7ccfdf92fcc0", "timestamp": "", "source": "github", "line_count": 176, "max_line_length": 132, "avg_line_length": 26.863636363636363, "alnum_prop": 0.4640439932318105, "repo_name": "edarkzero/Yii2Test", "id": "d658bafef76fca21df6bb92a48f3dc0de47f8c5b", "size": ...
<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>A Pen by Angela Choudhary</title> </head> <body> NOTES FOR GETTING STARTED WITH HTML <br> <br> <b>World Wide Web</b> <br> A collection of HTML documents <br> <br> <b>HTML (Hypertext Markup Languag...
{ "content_hash": "4150d5f9a8aba1d7d0837e83b9c3fff7", "timestamp": "", "source": "github", "line_count": 69, "max_line_length": 72, "avg_line_length": 20.202898550724637, "alnum_prop": 0.6255380200860832, "repo_name": "angelachoudhary/getting-started-with-html_1", "id": "0b586b2246f2740348fd9d2a37ba5a...
/* * Message buffers build functionality on top of FreeRTOS stream buffers. * Whereas stream buffers are used to send a continuous stream of data from one * task or interrupt to another, message buffers are used to send variable * length discrete messages from one task or interrupt to another. Their * implemen...
{ "content_hash": "53a5abde084e6437f676f8db0d6906b2", "timestamp": "", "source": "github", "line_count": 754, "max_line_length": 248, "avg_line_length": 46.43899204244032, "alnum_prop": 0.7395116378694845, "repo_name": "DF4IAH/FindMeSAT", "id": "91e34fa17c83ca1330caec7c086683004616d753", "size": "36...
package com.amazonaws.services.connect.model.transform; import java.math.*; import javax.annotation.Generated; import com.amazonaws.services.connect.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static co...
{ "content_hash": "cff6633b59c34379120482f860f8f9b7", "timestamp": "", "source": "github", "line_count": 67, "max_line_length": 142, "avg_line_length": 39.53731343283582, "alnum_prop": 0.672329180822952, "repo_name": "aws/aws-sdk-java", "id": "de8de9035a079e68e4c36b23af4090a7b1ac3245", "size": "3229...
<?php set_include_path( get_include_path().PATH_SEPARATOR.".."); include_once("xlsxwriter.class.php"); $header = array( 'c1-text'=>'string',//text 'c2-text'=>'@',//text ); $rows = array( array('abcdefg','hijklmnop'), ); $writer = new XLSXWriter(); $writer->setRightToLeft(true); $writer->writeSheetHeader('Sheet1...
{ "content_hash": "0e473ab9d15d439306f29dfd08f63ac2", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 58, "avg_line_length": 23.526315789473685, "alnum_prop": 0.6644295302013423, "repo_name": "mk-j/PHP_XLSXWriter", "id": "a8cd74f4e93f82cf1973b11da95217e94d01e7bf", "size": "...
using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated ...
{ "content_hash": "d639e3f77101f19e2fd46cb317e7d8e9", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 96, "avg_line_length": 40.836363636363636, "alnum_prop": 0.7564559216384684, "repo_name": "DebajyotiMondal/automatic-graph-layout", "id": "156e3cb4349d384e6b7e3b84b7c5ca2293e...
<HTML> <HEAD> <TITLE>cgGetNamedSamplerState</TITLE> <STYLE TYPE="text/css" MEDIA=screen> <!-- BODY { font-family: Arial,Helvetica; } BLOCKQUOTE { margin: 10pt; } H1,A { color: #336699; } /*** Top menu style ****/ .mmenuon { font-family: Arial,Helvetica; font-weight: bold; text-decoration: none; color: #ff6...
{ "content_hash": "16fb5f3426835a6e4237baddc3764c58", "timestamp": "", "source": "github", "line_count": 331, "max_line_length": 93, "avg_line_length": 22.114803625377643, "alnum_prop": 0.6678961748633879, "repo_name": "ayoubg/gem5-graphics", "id": "c342bbe9e6f3da9424b4ef8269385b467f771679", "size":...
package org.renjin.primitives; import org.renjin.eval.Context; import org.renjin.eval.EvalException; import org.renjin.primitives.annotations.processor.ArgumentException; import org.renjin.primitives.annotations.processor.ArgumentIterator; import org.renjin.primitives.annotations.processor.WrapperRuntime; import org.r...
{ "content_hash": "2a7e2f3d4a53a2c83811667f492ba206", "timestamp": "", "source": "github", "line_count": 80, "max_line_length": 385, "avg_line_length": 45.4, "alnum_prop": 0.6643722466960352, "repo_name": "bedatadriven/renjin-statet", "id": "6d16d1c980f61d0bc9f552d61d64ffcfec7cdea1", "size": "3633",...
class User < ApplicationRecord serialize :admin_of def admin_of_space_names admin_of.map{|url| url.split('/').last} end end
{ "content_hash": "ac220f198d33395faed114ff001af04b", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 43, "avg_line_length": 19.142857142857142, "alnum_prop": 0.6940298507462687, "repo_name": "cobot/cobot_office_space", "id": "c367466b7d5db67911f313a10eb7d02047787dad", "size...
import "babel-polyfill" import React from 'react' import ReactDOM from 'react-dom' import Gallery from './Gallery' import {createStore, applyMiddleware} from 'redux' import createSagaMiddleware from 'redux-saga' import reducer from './reducer' import {loadImages} from './sagas' const store = createStore( reduc...
{ "content_hash": "670a1b10e86ef9b17ce643f849fdb7fd", "timestamp": "", "source": "github", "line_count": 28, "max_line_length": 53, "avg_line_length": 22.5, "alnum_prop": 0.719047619047619, "repo_name": "yevheniyc/C", "id": "dfbec33ecbf89bf3c46e45ab45581d4b395c9db9", "size": "630", "binary": false...
package pl.wcislo.neo4j_sbql.ast.terminal; import pl.wcislo.neo4j_sbql.visitor.ASTVisitor; public class BooleanTerminal extends SimpleValueTerminal<Boolean> { public BooleanTerminal(Boolean value) { super(value); } @Override public void accept(ASTVisitor visitor) { visitor.visitBooleanTerminal(t...
{ "content_hash": "ac3f8ebae1f68e5bcebaefe2ece2ce59", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 67, "avg_line_length": 21, "alnum_prop": 0.7410714285714286, "repo_name": "emil-wcislo/sbql_neo4j", "id": "7232c35ae317d9f20bcd4614953c3b0dfa53e643", "size": "336", "bina...
package com.streamsets.pipeline.stage.origin.kafka; import com.streamsets.pipeline.api.Config; import com.streamsets.pipeline.api.StageException; import com.streamsets.pipeline.config.DataFormat; import org.junit.Assert; import org.junit.Test; import java.util.ArrayList; import java.util.HashMap; import java.util.Li...
{ "content_hash": "cb58221f0b05be4dc3999f2a968cbd36", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 101, "avg_line_length": 46.833333333333336, "alnum_prop": 0.7692307692307693, "repo_name": "z123/datacollector", "id": "e9ccd1ef8cc453bda2c62ae037e2d80a5b047af5", "size": "...
#include <bson.h> #include "TestSuite.h" #include "json-test.h" #include "corpus-test.h" #define IS_NAN(dec) (dec).high == 0x7c00000000000000ull typedef struct { const char *scenario; const char *test; } skipped_corpus_test_t; skipped_corpus_test_t SKIPPED_CORPUS_TESTS[] = { /* CDRIVER-1879, can't make Co...
{ "content_hash": "b3695f28a6aca71bb43e9229d8d1d12f", "timestamp": "", "source": "github", "line_count": 291, "max_line_length": 80, "avg_line_length": 25.329896907216494, "alnum_prop": 0.5985619318952652, "repo_name": "ajdavis/mongo-c-driver", "id": "42ae68e54c811dd9e2611143843679a12b5863d5", "size...
using System; using System.Collections.Generic; namespace CloudinaryDotNet.Actions { public class StreamingProfileCreateParams : StreamingProfileBaseParams { /// <summary> /// The identification name to assign to the new streaming profile. The name is /// case-insensitive and can cont...
{ "content_hash": "f06daff704436a0a7104c82eead3931e", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 102, "avg_line_length": 32.5, "alnum_prop": 0.5982905982905983, "repo_name": "RTLcoil/CloudinaryDotNet", "id": "ee06d16cb28bca84cde9a25af9383f6fe377ae47", "size": "1172", ...
/* * File: PLACeS.hpp * Author: Emanuele Di Pascale * * Created on 03 May 2012, 14:29 */ #ifndef PLACES_HPP #define PLACES_HPP #include <limits> #include "boost/foreach.hpp" #include "boost/program_options.hpp" #include <boost/log/trivial.hpp> namespace po = boost::program_options; /** * Basic granularity of...
{ "content_hash": "9233d8142388476f3a5eb83e668f1a71", "timestamp": "", "source": "github", "line_count": 84, "max_line_length": 82, "avg_line_length": 32.285714285714285, "alnum_prop": 0.726401179941003, "repo_name": "manuhalo/PLACeS", "id": "b44e4f46ca5a95ae73972b80a76386ca3f46d1c0", "size": "2712"...
package org.cache2k.test.core; import org.cache2k.Cache; import org.cache2k.core.api.InternalCache; import org.cache2k.test.util.TestingBase; import org.cache2k.testing.category.FastTests; import org.junit.Test; import org.junit.experimental.categories.Category; import static org.assertj.core.api.Assertions.assertT...
{ "content_hash": "824f09634b1a41c4ec5862cd99493b64", "timestamp": "", "source": "github", "line_count": 83, "max_line_length": 87, "avg_line_length": 30.132530120481928, "alnum_prop": 0.6873250699720111, "repo_name": "cache2k/cache2k", "id": "10b92aafc0933020c527bc51a843abd490059a1a", "size": "3175...
#include "FlatBuffersSerialize.h" #include "base/ObjectFactory.h" #include "ui/CocosGUI.h" #include "editor-support/cocostudio/CocoStudio.h" #include "CSParseBinary_generated.h" #include "WidgetReader/NodeReaderProtocol.h" #include "WidgetReader/NodeReaderDefine.h" #include "WidgetReader/NodeReader/NodeReader.h" #...
{ "content_hash": "3fe499cc4965812ea7c5e2b0beea1e1c", "timestamp": "", "source": "github", "line_count": 1556, "max_line_length": 127, "avg_line_length": 31.044987146529564, "alnum_prop": 0.5097296402103259, "repo_name": "yangosoft/cocos2d-x-arm-opengles", "id": "b0c33ff49cb1cf6aa44e497fd2573fb8a70e4f...
namespace drive { namespace internal { class WebkitFileStreamReaderImplTest : public ::testing::Test { protected: // Because the testee should live on IO thread, the main thread is // reused as IO thread, and UI thread will be run on background. WebkitFileStreamReaderImplTest() : thread_bundle_(content::T...
{ "content_hash": "38ac0948460ae5b215260705e17dc0ed", "timestamp": "", "source": "github", "line_count": 204, "max_line_length": 80, "avg_line_length": 36.65686274509804, "alnum_prop": 0.682401711687617, "repo_name": "M4sse/chromium.src", "id": "dd0420f1eafa733f1e397622cfc0d5bb0a85e46d", "size": "85...
API to get values from xpl-db server
{ "content_hash": "28f0c807c6abb8988558556e6ec0532e", "timestamp": "", "source": "github", "line_count": 1, "max_line_length": 36, "avg_line_length": 37, "alnum_prop": 0.7837837837837838, "repo_name": "oeuillot/xpl-dbclient", "id": "5510c700c0518f0ea055c5f2e42d7acc48c93f0a", "size": "52", "binary"...
""" Utility functions from 2to3, 3to2 and python-modernize (and some home-grown ones). Licences: 2to3: PSF License v2 3to2: Apache Software License (from 3to2/setup.py) python-modernize licence: BSD (from python-modernize/LICENSE) """ from lib2to3.fixer_util import (FromImport, Newline, is_import, ...
{ "content_hash": "ee3b0bf4a13fddf3684abca1efbd0742", "timestamp": "", "source": "github", "line_count": 520, "max_line_length": 105, "avg_line_length": 33.64230769230769, "alnum_prop": 0.5923745284097405, "repo_name": "ryfeus/lambda-packs", "id": "48e4689db96917b39586f1f939142741dd46203d", "size": ...
require 'yaml' module Backup class Repository attr_reader :progress def initialize(progress) @progress = progress end def dump(max_concurrency:, max_storage_concurrency:) prepare if max_concurrency <= 1 && max_storage_concurrency <= 1 return dump_consecutive end ...
{ "content_hash": "fb5c3d3741105f71f79505e7fd91ad84", "timestamp": "", "source": "github", "line_count": 243, "max_line_length": 110, "avg_line_length": 28.79423868312757, "alnum_prop": 0.6212662569672717, "repo_name": "mmkassem/gitlabhq", "id": "51fac9e8706391827235ab94fb4a301227376200", "size": "7...
<?php /** * @file * Contains Drupal\locale\Tests\LocaleUpdateCronTest. */ namespace Drupal\locale\Tests; /** * Tests for using cron to update project interface translations. * * @group locale */ class LocaleUpdateCronTest extends LocaleUpdateBase { protected $batchOutput = array(); /** * {@inheritdoc...
{ "content_hash": "48dafac317c7afcfb5406b5aa39b1a0a", "timestamp": "", "source": "github", "line_count": 114, "max_line_length": 182, "avg_line_length": 37.96491228070175, "alnum_prop": 0.6739833641404805, "repo_name": "casivaagustin/drupalcon-mentoring", "id": "74f18d3d562c6bf349f118dd55fec75130a62fc...
@interface ThumbnailsViewController : NSViewController @end
{ "content_hash": "27851570f7f9f3a3e023747bc2efaf27", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 54, "avg_line_length": 20.333333333333332, "alnum_prop": 0.8524590163934426, "repo_name": "BionBilateral/BBFrameworks", "id": "b8e4374589f368a80eb000d6883d58818d72fc7c", "si...
"""Default Hyperparameter configuration.""" import ml_collections def get_config(): """Get the default hyperparameter configuration.""" config = ml_collections.ConfigDict() config.learning_rate = 0.1 config.momentum = 0.9 config.batch_size = 128 config.num_epochs = 10 return config
{ "content_hash": "b21250a2fdaf79635009a8242d647516", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 53, "avg_line_length": 21.5, "alnum_prop": 0.7209302325581395, "repo_name": "google/flax", "id": "822bf7fb8d382bd8bfc8f06761f2c8107d4c8cb2", "size": "883", "binary": fals...
/** * Created by tomtz on 2/14/2017. */ function createIndexSpaceGeometry( N, M, K, cellSize, center, matmul ) { var lattice = new THREE.Geometry(); if (center) { for ( var i = -N/2; i <= N/2; i++ ) { for ( var j = -M/2; j <= M/2; j++ ) { for ( var k = -K/2; k <= K/2; k++ ...
{ "content_hash": "bf5970f20a6e17969ff8f05cab64ea84", "timestamp": "", "source": "github", "line_count": 80, "max_line_length": 111, "avg_line_length": 36.125, "alnum_prop": 0.527681660899654, "repo_name": "stillwater-sc/domain-flow-viz", "id": "7ccbbd2a5a120c9acca7f0b1202a49dbab4bc5aa", "size": "28...
using System; using System.Collections.Generic; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.AgFoodPlatform.Models; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.AgFoodPlatform { public partial class FarmBeatData : IUtf8JsonSerializable { void IUtf8JsonSer...
{ "content_hash": "eb1a3b4d63c3cd5b9933ab85c06fb8fc", "timestamp": "", "source": "github", "line_count": 186, "max_line_length": 279, "avg_line_length": 44.763440860215056, "alnum_prop": 0.47898150372327647, "repo_name": "Azure/azure-sdk-for-net", "id": "6cc98e59cea7c37da225fbdd945d557666defe9f", "s...
/** * AdSenseSettingsAdType.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfp.axis.v201306; public class AdSenseSettingsAdType implements java.io.Serializable { private java.lang.String _value_; privat...
{ "content_hash": "38b78bfaa5ac10ad18ac2cca0e836ee6", "timestamp": "", "source": "github", "line_count": 72, "max_line_length": 138, "avg_line_length": 41.44444444444444, "alnum_prop": 0.6886729222520107, "repo_name": "nafae/developer", "id": "eb7e1daef18878f34bb2909ae4f653272921a59b", "size": "2984...
package org.apache.spark.sql.execution.aggregate import scala.collection.mutable import org.apache.spark.sql.catalyst.InternalRow import org.apache.spark.sql.catalyst.expressions._ import org.apache.spark.sql.catalyst.expressions.codegen.GenerateUnsafeProjection import org.apache.spark.sql.execution.ExternalAppendO...
{ "content_hash": "1789ce97917f0592b5ec7a0662c74d49", "timestamp": "", "source": "github", "line_count": 203, "max_line_length": 99, "avg_line_length": 35.793103448275865, "alnum_prop": 0.7342416735480319, "repo_name": "wangmiao1981/spark", "id": "bb474a19222c3e771c24359e6c6acf300dad8a45", "size": "...
cask 'postbox' do version '7.0.12' sha256 '6815f16ffce788638dd3f73f38f16951e89f0e3eaa991834f9e4f01135be67b9' # d3nx85trn0lqsg.cloudfront.net/mac was verified as official when first introduced to the cask url "https://d3nx85trn0lqsg.cloudfront.net/mac/postbox-#{version}-mac64.dmg" appcast 'https://www.postbox...
{ "content_hash": "38bd87ac4f893706ad4526aecd128efe", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 96, "avg_line_length": 40.2962962962963, "alnum_prop": 0.6553308823529411, "repo_name": "shoichiaizawa/homebrew-cask", "id": "d95cf8f098463cbe37c3b09ad365ef52f522249e", "si...
package com.despegar.soffheap.heapcache; import com.codahale.metrics.Counter; import com.codahale.metrics.Gauge; import com.codahale.metrics.MetricRegistry; import com.despegar.soffheap.metrics.SoffHeapMetricsRegistryHolder; import static java.text.MessageFormat.format; public abstract class AbstractHeapMap<Key,Valu...
{ "content_hash": "7f0420fceba8e56bbd4b177a67721a5d", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 109, "avg_line_length": 38.333333333333336, "alnum_prop": 0.722463768115942, "repo_name": "despegar/soffheap", "id": "b34a3b8d548c1e7224a8864117ec440353805622", "size": "13...
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The source code</title> <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../resources/prettify/prettify.js"></script> </head> <body onload="p...
{ "content_hash": "d7903f9f145e01aeb7d7c6fbb6050918", "timestamp": "", "source": "github", "line_count": 73, "max_line_length": 144, "avg_line_length": 47.95890410958904, "alnum_prop": 0.6686660954013139, "repo_name": "xenophy/xFrameworkPX", "id": "6994eed3aeee305a288f6099c69a829e552663cb", "size": ...
<?php if (isset($error)): ?> <div class="alert alert-error"><?php echo $error; ?></div> <?php endif; ?> <?php if ($this->session->flashdata('message') == TRUE): ?> <div class="alert alert-success"><?php echo $this->session->flashdata('message'); ?></div> <?php endif; ?> <?php $attributes = array('name' => 'cus...
{ "content_hash": "2714ff596f63951062b1ffe8dea520d0", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 144, "avg_line_length": 38.5625, "alnum_prop": 0.593192868719611, "repo_name": "talentegra/TesNow", "id": "71e40cbb8df9235b6d903605a142160752f80545", "size": "1234", "bin...
.. _how-to: ############# How-to guides ############# These guides presuppose some familiarity with django CMS. They cover some of the same territory as the :doc:`/introduction/index`, but in more detail. ****** Set-up ****** .. toctree:: :maxdepth: 1 Install django CMS by hand <install> ***************...
{ "content_hash": "ed2a957320fd0a935b0d62110b861e4b", "timestamp": "", "source": "github", "line_count": 61, "max_line_length": 76, "avg_line_length": 20.83606557377049, "alnum_prop": 0.6207710464201416, "repo_name": "benzkji/django-cms", "id": "2c41573f2267bfc15dc35a8a9ef9cac33d4f911d", "size": "12...
'use strict' var sortedObject = require('sorted-object') module.exports = function deepSortObject (obj, sortBy) { if (obj == null || typeof obj !== 'object') return obj if (obj instanceof Array) return obj.sort(sortBy) obj = sortedObject(obj) Object.keys(obj).forEach(function (key) { obj[key] = deepSortObj...
{ "content_hash": "8a94a63d33c4c96430ef23f0b3727afd", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 56, "avg_line_length": 27.923076923076923, "alnum_prop": 0.6859504132231405, "repo_name": "Pierre-LouisTALBOT/24h_code_6emeEdition_server", "id": "aa34eb7dd9b24840a8eab6ade4c...
package com.livegameengine.scxml.js; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.Serializable; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.Set; import java.util.Stack; imp...
{ "content_hash": "1810af919c25f194ce93fcd09258c1d4", "timestamp": "", "source": "github", "line_count": 227, "max_line_length": 121, "avg_line_length": 27.515418502202643, "alnum_prop": 0.6487351905219341, "repo_name": "donniet/livegame", "id": "19f583ec3e6758262241692a733f399b529287c0", "size": "6...
#import <objcthemis/ssession.h> #import <objcthemis/error.h> @interface TSSession () @property (nonatomic) secure_session_t * session; @end @implementation TSSession - (instancetype)initWithUserId:(NSData *)userId privateKey:(NSData *)privateKey callbacks:(TSSessionTransportInterface *)cal...
{ "content_hash": "82568c931918cb72352ceca6e3ba1abe", "timestamp": "", "source": "github", "line_count": 134, "max_line_length": 132, "avg_line_length": 32.09701492537314, "alnum_prop": 0.67565682399442, "repo_name": "mnaza/themis", "id": "c9a086f6bf9272da8d27139542b3f6a5f790b9d2", "size": "4890", ...
<?php /* Safe sample input : get the field userData from the variable $_GET via an object sanitize : none construction : use of sprintf via a %u with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute thi...
{ "content_hash": "190a2f8c2db352eadbef5818f2bda9e7", "timestamp": "", "source": "github", "line_count": 70, "max_line_length": 75, "avg_line_length": 21.9, "alnum_prop": 0.7266797129810828, "repo_name": "stivalet/PHP-Vulnerability-test-suite", "id": "b1fa212c3fc90d5523ee0552de15d196fd2c92a9", "size...
"""Models of the aps_purchasing app.""" from django.db import models from django.utils.translation import ugettext_lazy as _ class AML(models.Model): """ Approved Manufacturer List. List of IPNs that may only be purchased through approved manufacturers. :ipn: The IPN instance. :manufacturer: A m...
{ "content_hash": "ef1d1e735fa58db2d9dd9c488f89cd2b", "timestamp": "", "source": "github", "line_count": 405, "max_line_length": 77, "avg_line_length": 22.94814814814815, "alnum_prop": 0.592317624273725, "repo_name": "bitmazk/django-aps-purchasing", "id": "56f4ed51a73d8c22f66836bfe0ac66ee4e30f1a1", ...
package shadowsocks.crypto; import org.bouncycastle.crypto.StreamBlockCipher; import org.bouncycastle.crypto.StreamCipher; import org.bouncycastle.crypto.engines.AESEngine; import org.bouncycastle.crypto.modes.CFBBlockCipher; import org.bouncycastle.crypto.params.KeyParameter; import org.bouncycastle.crypto.params.Pa...
{ "content_hash": "1912a9143e8ba9b95b80204c6f610223", "timestamp": "", "source": "github", "line_count": 86, "max_line_length": 102, "avg_line_length": 30.25581395348837, "alnum_prop": 0.6452728670253651, "repo_name": "Bestoa/shadowsocks-vertx", "id": "1d0e985e2d40ae39762779e466c80af62c6550cb", "siz...
using NPoco; using Umbraco.Cms.Core; using Umbraco.Cms.Infrastructure.Persistence; using Umbraco.Cms.Infrastructure.Persistence.Dtos; using Umbraco.Extensions; namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_8_0_0; public class RefactorVariantsModel : MigrationBase { public RefactorVariantsModel(IMigrat...
{ "content_hash": "10c0d84a074c7771d0efae86f3048e33", "timestamp": "", "source": "github", "line_count": 99, "max_line_length": 116, "avg_line_length": 39.93939393939394, "alnum_prop": 0.6421345472938796, "repo_name": "arknu/Umbraco-CMS", "id": "500db8a4bc2910b3a9d0abc75ec40c640f147bc5", "size": "39...
module OData module AbstractSchema class Property < SchemaObject cattr_reader :edm_null @@edm_null = 'Edm.Null'.freeze attr_reader :entity_type attr_accessor :return_type, :nullable def initialize(schema, entity_type, name, return_type = @@edm_null, nullable = true) s...
{ "content_hash": "97d428365798e7e2cade79925e53b903", "timestamp": "", "source": "github", "line_count": 35, "max_line_length": 97, "avg_line_length": 23.2, "alnum_prop": 0.5665024630541872, "repo_name": "lmcalpin/odata_server", "id": "950c359f2d8e33a3b7f8bde441b290383a093eba", "size": "812", "bin...
#include <pthread.h> #include <stdio.h> #include <unistd.h> #include "native_client/src/include/nacl_assert.h" class ClassWithInitializer { public: ClassWithInitializer() { // Sleep for 0.1 seconds. This should be long enough for both threads // to enter the static initializer at the same time. str...
{ "content_hash": "e0c3d43bae1307b9c7a8c5bb56b8d500", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 74, "avg_line_length": 20.675675675675677, "alnum_prop": 0.6601307189542484, "repo_name": "cohortfsllc/cohort-cocl2-sandbox", "id": "12c2c4cc5df8b0165cc45876982ec43b6a159102"...
using System; using System.Collections.Generic; using System.IO; using Moq; using MusicFileCop.Core.Configuration; using MusicFileCop.Core.FileSystem; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Xunit; using Directory = MusicFileCop.Core.FileSystem.Directory; namespace MusicFileCop.Core.Test.Configuratio...
{ "content_hash": "df82e777f82d2b02941f14310537be40", "timestamp": "", "source": "github", "line_count": 160, "max_line_length": 131, "avg_line_length": 35.08125, "alnum_prop": 0.6041332620701942, "repo_name": "ap0llo/MusicFileCop", "id": "5235bbb5bf070b55aa1deb0642c9159c779a2409", "size": "5615", ...
const mongoose = require('mongoose'); const sensorDataSchema = new mongoose.Schema({ device:{type:String}, data: {type: Number}, time: {type:Date} }, { timestamps: true }); const Measurement = mongoose.model('Measurement', sensorDataSchema); module.exports = Measurement;
{ "content_hash": "276fd87bab5f933774025319d963dc51", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 68, "avg_line_length": 25.545454545454547, "alnum_prop": 0.7188612099644128, "repo_name": "AlexJoom/gr-iot-temperature-sensor", "id": "c61073dc8e6411c5682dcd7cbf22a7badbfcb32...
(function(){ 'use strict' function ComingSoonController(comingSoon) { var soon = this; soon.bills = comingSoon.data.results; console.log(soon.bills); } ComingSoonController.$inject = ['comingSoon']; angular .module('legislately') .controller('ComingSoonController', ComingSoonControlle...
{ "content_hash": "ab52b51b585dd76ead63fc2085260381", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 62, "avg_line_length": 19.529411764705884, "alnum_prop": 0.677710843373494, "repo_name": "radditude/legislately", "id": "bfc236136b802b605169e54f1ade459aaacb4c68", "size": ...
title: Mutability version: 1.0.0 --- The moment object in Moment.js is mutable. This means that operations like add, subtract, or set change the original moment object. When first using Moment.js many developers are confused by scenarios like this: ```js var a = moment('2016-01-01'); var b = a.add(1, 'week'...
{ "content_hash": "b3f73a38d865c69ab12f4ff5d0d64702", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 131, "avg_line_length": 28.227272727272727, "alnum_prop": 0.6682769726247987, "repo_name": "moment/momentjs.com", "id": "aabbe2bf0916272515008b95ec1383ad1f726bf7", "size": ...
<section class="section projects-section"> <h2 class="section-title"><i class="fa fa-code-fork"></i>Projects</h2> <div class="intro"> <p>Below are some of the open source projects that am currently and actively working on in my free time.</p> </div><!-...
{ "content_hash": "2ff7b9e8dad1a22381e496a2cb9a2c3e", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 300, "avg_line_length": 79.54545454545455, "alnum_prop": 0.5756190476190476, "repo_name": "muraguri64/muraguri64.github.io", "id": "f3b6b61f83950ca88e973cca2ff1c2415002373b",...
import tensorflow as tf import numpy as np import threading # Generating some simple data r = np.arange(0.0,100003.0) raw_data = np.dstack((r,r,r,r))[0] raw_target = np.array([[1,0,0]] * 100003) # are used to feed data into our queue queue_input_data = tf.placeholder(tf.float32, shape=[20, 4]) queue_input_target = tf...
{ "content_hash": "62f36c093c129929f311e1f9fbad9783", "timestamp": "", "source": "github", "line_count": 68, "max_line_length": 112, "avg_line_length": 34.838235294117645, "alnum_prop": 0.6956521739130435, "repo_name": "kafkasl/contextualLSTM", "id": "b9ce68ac88dfac0076bdb0e0a3542f2fc6b585cc", "size...
import serial import create # Create the Create! robot = create.Create("/dev/ttyUSB0") # Safe Mode does not allow Create to move why plugged in, run off cliffs, and stops and adjusts when bumped. # Full Mode ignores all that #robot.toSafeMode() robot.toFullMode() # Move forward in millimeters; optional second param...
{ "content_hash": "b175817ad0c48d6c0a90d847e0efee83", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 108, "avg_line_length": 24.185185185185187, "alnum_prop": 0.6983154670750383, "repo_name": "Kaceykaso/design_by_roomba", "id": "346bd8093bb39906100372db4f0e902e5c123ac2", "...
<!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 http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <me...
{ "content_hash": "5847b1669920c648801303107716a9f0", "timestamp": "", "source": "github", "line_count": 213, "max_line_length": 190, "avg_line_length": 31.220657276995304, "alnum_prop": 0.5989473684210527, "repo_name": "FlaneurApp/flaneur-geocoder", "id": "c128a9d9a2fef2c39266c4f0c7ee0f738928d1dc", ...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. 'use strict'; /** * TODO(dzvorygin): Here we use this hack, since 'hidden' is standard * attribute and we can't use it's setter as usual. * @param...
{ "content_hash": "f38bea61a8975425c514d868fd2493cd", "timestamp": "", "source": "github", "line_count": 809, "max_line_length": 80, "avg_line_length": 30.26823238566131, "alnum_prop": 0.6704782129293094, "repo_name": "anirudhSK/chromium", "id": "c9653087a99843d48c14f9a931fd4226b0b0416a", "size": "2...
package config import ( "github.com/cockroachdb/cockroach/pkg/util/stop" "github.com/cockroachdb/cockroach/pkg/util/syncutil" ) type zoneConfigMap map[uint32]ZoneConfig var ( testingZoneConfig zoneConfigMap testingHasHook bool testingPreviousHook zoneConfigHook testingLock syncutil.Mutex ) // T...
{ "content_hash": "7e578ee55cb0342af2990a83e78a8e43", "timestamp": "", "source": "github", "line_count": 75, "max_line_length": 81, "avg_line_length": 27.213333333333335, "alnum_prop": 0.766780989710926, "repo_name": "paperstreet/cockroach", "id": "1186da16a9a046348cff657a2937e4d2c9a261e6", "size": ...
package jsystem.framework.doc; import java.util.ArrayList; import jsystem.extensions.report.html.summary.Table; import jsystem.framework.report.ListenerstManager; import junit.framework.AssertionFailedError; import junit.framework.Test; import junit.framework.TestListener; /** * Support documentation summary model...
{ "content_hash": "7a753b735024d031ef5c3b6c9cb5b93b", "timestamp": "", "source": "github", "line_count": 128, "max_line_length": 135, "avg_line_length": 29.078125, "alnum_prop": 0.7302525523911876, "repo_name": "Top-Q/jsystem", "id": "38ab4fb401f05636b3c35b87c083010e7c2ecd24", "size": "3798", "bin...
#ifndef ZBE_CORE_DAEMONS_DAEMON_H #define ZBE_CORE_DAEMONS_DAEMON_H #include "ZBE/core/system/system.h" namespace zbe { /** \brief Interface for all daemons. Daemons are responsible for execute automated processes. Basically Daemons rules the world. */ class Daemon { public: /** \brief Do the actual Daemon job...
{ "content_hash": "41f5947ffb0925951acdce080f04b8eb", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 129, "avg_line_length": 18.115384615384617, "alnum_prop": 0.6815286624203821, "repo_name": "Degryll/ZBE", "id": "30b54f8574f0997ed7ea70bc78730a4bac365e2d", "size": "654", ...
package com.javadeobfuscator.deobfuscator.analyzer.frame; import com.javadeobfuscator.deobfuscator.org.objectweb.asm.Opcodes; import java.util.List; public class MultiANewArrayFrame extends Frame { private List<Frame> dims; public MultiANewArrayFrame(List<Frame> dims) { super(Opcodes.MULTIANEWARRA...
{ "content_hash": "c5f2edea7aa979ffed96c1a51f096535", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 67, "avg_line_length": 23.263157894736842, "alnum_prop": 0.6855203619909502, "repo_name": "FFY00/deobfuscator", "id": "d3f4c80e769488d7dcef6e2104321c3aafd28140", "size": "1...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys\timeb.h> #include "appsguid.h" char **getcgivars() ; int main ( int argc, char* argv[], char* envp[] ) { int i ; char **cgivars ; char szEvent[9] ; char szListItem [53] ; char szButton[9] ; strcpy( szListItem, "unknown" ) ; strcpy(...
{ "content_hash": "297d9e6192414c48d9c01a7b08b658b3", "timestamp": "", "source": "github", "line_count": 315, "max_line_length": 90, "avg_line_length": 30.419047619047618, "alnum_prop": 0.5658526403673555, "repo_name": "OS2World/DEV-SAMPLES-The-IBM-Developer-Connection-Release-2--Volume-2_CD4", "id": ...
package com.intellij.psi.impl.source.tree.injected; import com.intellij.injected.editor.DocumentWindow; import com.intellij.injected.editor.DocumentWindowImpl; import com.intellij.injected.editor.VirtualFileWindow; import com.intellij.lang.Language; import com.intellij.lang.injection.InjectedLanguageManager; import ...
{ "content_hash": "a21756f68ea56e3887046ab8ae4066c4", "timestamp": "", "source": "github", "line_count": 206, "max_line_length": 132, "avg_line_length": 37, "alnum_prop": 0.7083442665966938, "repo_name": "Distrotech/intellij-community", "id": "ff7fa6c865ed754d91b47139d169f09ed57d9e92", "size": "8222...
package org.apache.causeway.applib.jaxb; import java.util.Date; import javax.xml.bind.annotation.adapters.XmlAdapter; import lombok.experimental.UtilityClass; /** * Provides JAXB XmlAdapters for Java util temporal types. * * <p> * Example:<pre> * &#64;XmlElement &#64;XmlJavaTypeAdapter(JavaUtilJaxbAdapters.Da...
{ "content_hash": "2e721359f555b821f462091a578cefff", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 84, "avg_line_length": 24.324324324324323, "alnum_prop": 0.6733333333333333, "repo_name": "apache/isis", "id": "c2431d33357d033c86fcae3a2ed1e1fc31c4b1f8", "size": "1725", ...
title: GumProjectSave --- # Gum.DataTypes.GumProjectSave ## Introduction The GumProjectSave object is a serializable object representing a Gum project. Specifically, the GumProjectSave object can directly serialize to the .gumx file format. The GumProjectSave provides access to all Screens, Components, and Standard ...
{ "content_hash": "7579cb815d7e481942eb1502dec41f20", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 337, "avg_line_length": 33.625, "alnum_prop": 0.8057620817843866, "repo_name": "vchelaru/Gum", "id": "837d52478f44a1219c7d602a1619324941cf9406", "size": "1080", "binary":...
package com.twitter.finagle.buoyant.h2 package service import com.twitter.finagle.buoyant.h2.service.H2ReqRepFrame.{FinalFrame, RepAndFrame} import com.twitter.util.{Return, Throw, Try} case class H2ReqRep(request: Request, response: Try[Response]) object H2ReqRep { @inline def apply(req: Request, rep: Response): H...
{ "content_hash": "2840069271145cc971eb87c8e66796e9", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 94, "avg_line_length": 32.84313725490196, "alnum_prop": 0.6949253731343283, "repo_name": "linkerd/linkerd", "id": "f6a2aa919af5f27f30b493453baaea7db5d8ab98", "size": "1675"...
/** * @author Claire Jaja * @version 11/1/14 * * Project Euler * Problem 4 * Largest palindrome product * * A palindromic number reads the same both ways. * The largest palindrome made from the product of two 2-digit numbers * is 9009 = 91 X 99 * Find the largest palindrome made from the product of two 3-digit numbers....
{ "content_hash": "569ac05a948f952438d3e6de13928668", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 87, "avg_line_length": 25.451612903225808, "alnum_prop": 0.6438529784537389, "repo_name": "clairejaja/project-euler", "id": "df1cfac477a64ada4a2cf6aac6b619714cd2cf3c", "siz...
using base::Time; using base::TimeDelta; using base::win::RegKey; using base::win::ScopedCOMInitializer; using base::win::ScopedComPtr; using base::win::ScopedHandle; namespace { const wchar_t kChromeRegClientsKey[] = L"Software\\HouseOfLife\\BitpopUpdate\\Clients\\" L"{5B73C40A-84CA-406C-B1FD-5863DA4A41EE}";...
{ "content_hash": "20ef527189860b4a78948705dc9c97c2", "timestamp": "", "source": "github", "line_count": 600, "max_line_length": 80, "avg_line_length": 34.42333333333333, "alnum_prop": 0.6212840127820277, "repo_name": "leiferikb/bitpop-private", "id": "41660102437f7a3cd469cd5fa87d0649e3bbdb1c", "siz...
package scalaxy import scala.annotation.implicitNotFound import scala.language.experimental.macros import scala.util.Either package evidence { /** Evidence that T has an annotation of type A */ @implicitNotFound(msg = "${T} does not have an annotation of type ${A}.") sealed trait HasAnnotation[T, A] /** Evi...
{ "content_hash": "8b4500a760e614f21246d15b971424d9", "timestamp": "", "source": "github", "line_count": 59, "max_line_length": 91, "avg_line_length": 30.372881355932204, "alnum_prop": 0.6551339285714286, "repo_name": "nativelibs4java/scalaxy-evidence", "id": "4ede4207ccb097c41b6be2e533358db9838bac39"...
@REM Copyright (c) Microsoft. All rights reserved. @REM Licensed under the MIT license. See LICENSE file in the project root for full license information. @setlocal EnableDelayedExpansion @REM Script arguments: @REM %1 Local path to the project to be released. set project_path=%1 set hg_commit_message="1.1.3" se...
{ "content_hash": "9fa7382d8ecd0dd19edf91cbdfe13bcd", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 122, "avg_line_length": 28.727272727272727, "alnum_prop": 0.740506329113924, "repo_name": "tkopacz/2017IotHubGatewaySDK", "id": "eab90dd547ea9de7f14c0029065bfb520c3ecc2c", ...
/** * @file * @brief Macros to generate structure member offset definitions * * This header contains macros to allow a nanokernel implementation to * generate absolute symbols whose values represents the member offsets for * various nanokernel structures. These absolute symbols are typically * utilized by ass...
{ "content_hash": "9eb597f48e427326377c6e46181e5c94", "timestamp": "", "source": "github", "line_count": 80, "max_line_length": 80, "avg_line_length": 35.2625, "alnum_prop": 0.7259836937256292, "repo_name": "mirzak/zephyr-os", "id": "d3c19b3e803ea9b7ffb912f62bd31404478ecf3c", "size": "3444", "bina...