Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
chenyihan/Simple-SQLite-ORM-Android
src/org/cyy/fw/android/dborm/sqlite/InsertLogic.java
904
package org.cyy.fw.android.dborm.sqlite; import org.cyy.fw.android.dborm.sqlite.DBAccessTemplate.IDBAccessLogic; import android.database.sqlite.SQLiteDatabase; import android.text.TextUtils; /** * * * @author cyy * @version [V1.0, 2013-5-7] */ class InsertLogic implements IDBAccessLogic<long[]> { InsertItem[...
isc
sdeleon28/coda
src/music/tests/chords.test.js
7999
import { expect } from 'chai'; import { NOTES } from '../constants'; import Chord from '../Chord'; import chordSpecs from '../specs/chords'; const cMajor = { id: 'CM', specId: 'M', notes: ['C', 'E', 'G'], label: 'C Major', }; const cMinor = { id: 'Cm', specId: 'm', notes: ['C', 'D#', 'G'], label: 'C M...
isc
paddor/cztop
lib/cztop/version.rb
37
module CZTop VERSION = "1.0.0" end
isc
jussi-kalliokoski/depdiff
bin/depdiff.js
2364
#!/usr/bin/env node /*jshint maxlen:180 */ "use strict"; var fs = require("fs"); var _ = require("lodash"); var depdiff = require("../lib"); var outputStream = process.stdout; var write = function (data) { outputStream.write(data); }; var actions = module.exports = { displayHelp: function () { proce...
isc
io7m/jcamera
com.io7m.jcamera.examples.jogl/src/main/java/com/io7m/jcamera/examples/jogl/ExampleFPSStyleMouseAdapter.java
2416
/* * Copyright © 2021 Mark Raynsford <code@io7m.com> https://www.io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS P...
isc
i-am-tom/schemer
src/Formatter/Text.php
2390
<?php namespace Schemer\Formatter; /** * String formatter. */ class Text extends FormatterAbstract { /** * The value will be a string. */ public function __construct() { $this->transformations = [ function ($value) : string { return (string) $value; ...
isc
Japroriple/ripple-client
src/js/services/domainalias.js
3072
/** * DOMAIN ALIAS * * The domain alias service resolves ripple address to domains. * * In the AccountRoot entry of any ripple account users can provide a reference * to a domain they own. Ownership of the domain is verified via the ripple.txt * magic file. * * This service provides both the lookup in the ledg...
isc
DealerNextDoor/ApolloDev
src/org/apollo/game/model/inter/bank/BankUtils.java
3327
package org.apollo.game.model.inter.bank; import org.apollo.game.model.Inventory; import org.apollo.game.model.Item; import org.apollo.game.model.Player; import org.apollo.game.model.def.ItemDefinition; import org.apollo.game.model.inter.InterfaceListener; import org.apollo.game.model.inv.InventoryListener; import org...
isc
andrejewski/ascii-codes
index.js
1748
var symbolIndex = [ "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", "BS", "TAB", "LF", "VT", "FF", "CR", "SO", "SI", "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYN", "ETB", "CAN", "EM", "SUB", "ESC", "FS", "GS", "RS", "US", " ", "!", "\"", "#", "$", "%", "&", "'", "(", ...
isc
gatecat/prjoxide
fuzzers/LIFCL/067-copy-ebr/fuzzer.py
228
import database import libpyprjoxide def main(): db = libpyprjoxide.Database(database.get_db_root()) libpyprjoxide.copy_db(db, "LIFCL", "EBR_10", ["TRUNK_L_EBR_10", ], "PEWC", "") if __name__ == '__main__': main()
isc
jgillich/picoCDN
plugins.js
1081
var uglify = require('uglify-js'), beautify = require('js-beautify').js_beautify, sass = require('node-sass'), coffee = require('coffee-script'), marked = require('marked'), sanitizer = require('caja-sanitizer'); module.exports = { javascript: { uglif...
isc
BitGo/prova
wire/msggetaddr_test.go
2778
// Copyright (c) 2013-2016 The btcsuite developers // Copyright (c) 2017 BitGo // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package wire import ( "bytes" "reflect" "testing" "github.com/davecgh/go-spew/spew" ) // TestGetAddr tests the MsgGetAddr API. func Te...
isc
OpenCampaign/opencampaign
db/migrate/20151107000004_create_basic_auths.rb
452
class CreateBasicAuths < ActiveRecord::Migration def up create_table :basic_auths do |t| t.column :email, :string, null: false t.column :password_digest, :string t.column :username, :string t.column :identity_id, :integer end change_table :basic_auths do |t| t.index :email, ...
isc
taschik/ramcloud
src/SessionAlarm.cc
8080
/* Copyright (c) 2011-2012 Stanford University * * Permission to use, copy, modify, and distribute this software for any purpose * with or without fee is hereby granted, provided that the above copyright * notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(...
isc
AWildridge/ProtoScape
src/org/apollo/game/event/impl/PrivateChatEvent.java
1702
package org.apollo.game.event.impl; import org.apollo.game.event.Event; import org.apollo.util.NameUtil; public class PrivateChatEvent extends Event { /** * The friend. */ private final String friend; /** * The friend. */ private final long friendlong; /** * The friend's rights. */ private int ...
isc
fw1121/annot-nf
bin/genes_gff3_to_csv.lua
3108
#!/usr/bin/env gt --[[ Copyright (c) 2015 Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2015 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appea...
isc
Cosrnos/LynxJS
old/Geometry/Rectangle.js
2659
/* * Lynx Project * Started August 2013 * ------------------------------------------------------ * This file is covered under the LynxJS Game Library * License. Please read license.txt for more information * on usage of this library. * ------------------------------------------------------ ...
isc
bellbind/unicharadata
embed-udjson.js
393
"use strict"; const fs = require("fs"); const src = fs.readFileSync("unicharadata-raw.js", "utf8"); const unicodedata = fs.readFileSync("UnicodeData.json", "utf8"); const replace = `require("./UnicodeData.json")`; const head = `/* eslint comma-spacing: 0, indent: 0, max-len: 0 */ `; const result = `${head}${src.repla...
isc
simeonpp/Trip-Destination
Source/TripDestination/Services/TripDestination.Services.Data/Contracts/INewsletterServices.cs
366
namespace TripDestination.Services.Data.Contracts { using System.Linq; using Common.Infrastructure.Models; using TripDestination.Data.Models; public interface INewsletterServices { IQueryable<Newsletter> GetAll(); BaseResponseAjaxModel Create(string email, string ip, string userAg...
isc
dileepa79/goeasy
app/whatisgoingon/whatisgoingon-request.ts
82
export class WhatIsGoingOnRequest { pageNo: number; pageSize: number; }
isc
io7m/jfprop
io7m-jfprop-server/src/main/java/com/io7m/jfprop/JFPAdminCommandRemoteAdd.java
2308
/* * Copyright © 2014 <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
isc
ejhumphrey/harmonic-cnn
hcnn/driver.py
34382
"""Top-level routines, including: * extract_features * train_model * find_best_model * predict * analyze * fit_and_predict_one * fit_and_predict_cross_validation """ import boltons.fileutils import datetime import glob import json import logging import numpy as np import os import pandas as pd import shutil import sk...
isc
mashavorob/lfds
perftest/queues/queuetest.cpp
1548
/* * queuetest.cpp * * Created on: Jun 2, 2015 * Author: masha */ #include <xtomic/queue.hpp> #include <xtomic/aux/inttypes.hpp> #include <vector> #include "testfactory.hpp" #include "queuetest.hpp" #include "stdqueue.hpp" namespace xtomic { namespace perftest { namespace queues { typedef xtomic::uint6...
isc
vhermecz/python-disksorted
disksorted.py
5753
# -*- coding: utf-8 -*- """ Simple helper for sorting when your ordinary memory wont cut it. """ import itertools import sys import tempfile import operator import json import marshal import functools try: import cPickle as pickle except: import pickle import heapq __author__ = 'Vajk Hermecz' __email__ = 'vh...
isc
damienmortini/dlib
node_modules/@gltf-transform/core/src/core.ts
990
/** @module core */ export { Document, Transform, TransformContext } from './document'; export { JSONDocument } from './json-document'; export { Extension } from './extension'; export { Accessor, Animation, AnimationChannel, AnimationSampler, Buffer, Camera, ExtensionProperty, Property, Material, Mesh, Node...
isc
klpdotorg/tada-frontend
app/components/Institution/InsufficientPermissionMsg.js
379
import React from 'react'; const InsufficientPermissionMsg = () => { return ( <div> <div className="alert alert-danger"> <i className="fa fa-lock fa-lg" aria-hidden="true" /> Insufficient Privileges. Please contact administrator for permissions to modify the institution. </div...
isc
newbreedofgeek/react-stepzilla
src/examples/redux/reducer.js
390
const reducer = (state = {say: '', activeStep: 0}, action) => { switch (action.type) { case 'HELLO_REDUX': return { ...state, say : 'Hello World Redux' }; case 'BYE_REDUX': return { ...state, say : '' }; case 'UPDATE_ACTIVE_STEP': return { ...state, activeStep : action.payload }...
isc
io7m/r2
com.io7m.r2.rendering.translucent.api/src/main/java/com/io7m/r2/rendering/translucent/api/R2TranslucentBatchedType.java
2292
/* * Copyright © 2016 <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
isc
mortenae/webgl_bsp_thing
index.js
1186
window.onerror = function(message, blah, line) { //alert(line + ": " + message); document.title = message; } function getTime() { if(!window.start) window.start = new Date().getTime(); return (new Date().getTime() - window.start) / 1000.0; } var overlay = document.createElement("div"); overlay.style.zIndex = "10...
isc
acdenisSK/serenity
src/utils/argument_convert/channel.rs
7132
use super::ArgumentConvert; use crate::{model::prelude::*, prelude::*}; /// Error that can be returned from [`Channel::convert`]. #[non_exhaustive] #[derive(Debug)] pub enum ChannelParseError { /// When channel retrieval via HTTP failed Http(SerenityError), /// The provided channel string failed to parse, ...
isc
route4me/route4me-nodejs-sdk
examples/Routes/get-routes-from-date-range.js
859
"use strict" const path = require("path") const debug = require("debug")("route4me-node:examples") const chai = require("chai") require("../init-examples-suite") const helper = require("./../../test/helper") helper.describeIntegration(helper.toSuiteName(__filename), function T() { this.timeout(5000) this.slow(300...
isc
io7m/jparasol
io7m-jparasol-compiler-core/src/main/java/com/io7m/jparasol/untyped/ast/checked/UASTCVertexShaderVisitorType.java
2095
/* * Copyright © 2014 <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AN...
isc
Aryk/dead_simple_cms
lib/dead_simple_cms/section/builder.rb
2758
module DeadSimpleCMS class Section # Public: A Builder class which provides a nice DSL to describe different sections of the site that a user wants to modify # through a CMS. class Builder attr_accessor :group_hierarchy attr_reader :section delegate :display, :extend, :to => :current_g...
mit
aerdman-aws/QlikApp
QlikApp/app/js/messagePane/messagePane.ts
1496
/// <reference path="../../../Scripts/typings/angularjs/angular.d.ts" /> /// <reference path="../typings.d.ts" /> 'use strict'; class MessagePaneDirective implements ng.IDirective { static $inject = []; constructor() { } scope = {}; templateUrl = './app/js/messagePane/messagePane.html'; controller = 'MessageP...
mit
ArcherSys/ArcherSys
Lua/examples/luatask/test.lua
1909
require 'task' TEST = {} function TEST.ts() local tl = task.list() io.stdout:write( '\nID SCRIPT COUNT REG/ID\n' ) io.stdout:write( '---- ---------------- --------- ----------------\n' ) if tl then for i, t in pairs( tl ) do io.stdout:write( string.format( '%4d %-16...
mit
larios96/RicardoWEB
phpchat/demo/demo27_dice.class.php
3416
<?php /** * Dice rolling, * test routines at the end of this file * * @author Alessandro Pasotti www.itopen.it * @copyright (C) itOpen 2006 * @licence LGPL * * Valid strings: * xdx * xdxx * xdxxx * xdxxx+x * xdxxx-x */ class Dice { var $command; function check($text){ ...
mit
BeneathTheInk/temple-selector
test/lib.js
1332
var expect = require("./utils/expect"); var fromSelector = require("../"); var Temple = require("templejs"); describe("fromSelector Tests", function() { it("fromSelector should take a basic css selector and return a new Temple Element binding.", function() { var b = fromSelector("span.a-class#myid"); expect(b).t...
mit
sethgerou/DESC.org
app/models/page.rb
96
class Page < ApplicationRecord validates_presence_of :title validates_presence_of :body end
mit
Data2Semantics/mustard
mustard-learners/src/main/java/org/data2semantics/mustard/learners/evaluation/AUCPR.java
6170
package org.data2semantics.mustard.learners.evaluation; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import org.data2semantics.mustard.learners.Prediction; import org.data2semantics.mustard.learners.evaluation.utils.AUCUtils;...
mit
qudou/xmlplus
example/docs/15-optimization/03/index.js
295
xmlplus("xp", function (xp, $_, t) { $_().imports({ Index: { xml: "<h1 id='index'>hello,world</h1>", map: { nofragment: true }, fun: function (sys, items, opts) { console.log(sys.index.width()); } } }); });
mit
sgarciac/spec
core/float/next_float_spec.rb
1470
require File.expand_path('../../../spec_helper', __FILE__) describe "Float#next_float" do it "returns a float the smallest possible step greater than the receiver" do barely_positive = 0.0.next_float barely_positive.should == 0.0.next_float barely_positive.should > 0.0 barely_positive.should < barel...
mit
jjcollinge/blanky
Templates/c#/Swashbuckle.SwaggerGen/Generator/SchemaRegistry.cs
8943
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using Newtonsoft.Json.Converters; namespace Swashbuckle.SwaggerGen.Generator { public class SchemaRegistry : ISchemaRegistry { private readonly JsonSe...
mit
AndrewQuijano/SSTREU2017
CompareMobile/app/src/androidTest/java/edu/fiu/reu2017/ExampleInstrumentedTest.java
714
package edu.fiu.reu2017; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device....
mit
jedwards1211/frcs-notes
src/parseTripSummaries.js
4586
'use strict'; var tripStart = /^ {2}\d | {1}\d{2} |\d{3} |\d{4} /; /** * Parses data from a STAT_sum.txt file. Here is an excerpt of the format: <pre> 1 2/15/81 258.60 17 ENTRANCE DROPS, JOE'S "I LOVE MY WIFE TRAVERSE", TRICKY TRAVERSE EXCLUDED: 0.00 0 Pete...
mit
garlab/postfix-admin
app/views/domaines.php
1693
<h1>Domaines</h1> <?php if (!empty($domaines) && count($domaines)): ?> <table class="table"> <tr> <th>Name</th> <th>Active</th> </tr> <?php foreach ($domaines as $domain): ?> <tr> <td><?=$domain['name']?></td> <td><input type="checkbox" name="<?=$domain['name']?>" value="...
mit
gophertrain/material
web/apis/demos/example3/main.go
2713
// All material is licensed under the Apache License Version 2.0, January 2004 // http://www.apache.org/licenses/LICENSE-2.0 // Sample program to show how to create a basic CRUD based web api // for customers. package main import ( "encoding/json" "log" "net/http" "strconv" "github.com/ardanlabs/gotraining/topi...
mit
supperbowen/bw-wechat-mgr
app_console/controllers/defaultController.js
212
/** * @module controllers/defaultController */ async function index (options) { console.log('Hello world defaultController & index action with options: ' +JSON.stringify(options)); }; export {index};
mit
Justineo/postcss-sort-style-rules
dist/index.js
3266
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
mit
shipshapecode/ember-3d-nav
app/components/nav-trigger.js
63
export { default } from 'ember-3d-nav/components/nav-trigger';
mit
AlexMog/LibNet
doc/html/search/files_63.js
86
var searchData= [ ['condvar_2ehh',['CondVar.hh',['../_cond_var_8hh.html',1,'']]] ];
mit
Morteuille/projectmanager
src/Projectmanager/HomeBundle/Entity/User.php
2093
<?php namespace Projectmanager\HomeBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity */ class User { //Attributes /** * @ORM\Column(name="id", type="integer") * @ORM\Id */ var $id; // type : int /** * @ORM\Column(name="User_FName", type="string", length=255) */ var $User_FName;...
mit
jobinesh/jet-examples
node-jet1.2.0-mongo-app/public/js/libs/oj/v1.2.0/resources/nls/en-AU/localeElements.js
6494
define({main:{"en-AU":{identity:{version:{_cldrVersion:"24",_number:"$Revision: 9287 $"},generation:{_date:"$Date: 2013-08-28 21:32:04 -0500 (Wed, 28 Aug 2013) $"},language:"en",territory:"001"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"...
mit
kpocza/thriot
Service/Misc/Thriot.TestHelpers/InMemoryStorage/InMemoryCloudStorageClientFactory.cs
370
using Thriot.Framework.Azure.DataAccess; using Thriot.Framework.Azure.TableOperations; namespace Thriot.TestHelpers.InMemoryStorage { public class InMemoryCloudStorageClientFactory : ICloudStorageClientFactory { public ITableEntityOperation GetTableEntityOperation() { return new In...
mit
nico01f/z-pec
ZimbraServer/src/java/com/zimbra/cs/service/SpnegoAuthServlet.java
3840
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2011 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at...
mit
teetech/programming_interview_exposed-solved_problems
Chapter 4/Null or Cycle.java
281
public boolean hasCycle(){ if (head == null)return false; Node fast = head.next; Node slow = head; while(fast != null && fast.next != null && slow != null){ if(fast == slow){ return true; } fast = fast.next.next; slow = slow.next; } return false; }
mit
l33tdaima/l33tdaima
p189m/rotate.js
951
/** * @param {number[]} nums * @param {number} k * @return {void} Do not return anything, modify nums in-place instead. */ var rotate = function (nums, k) { const swap = function (s, e) { while (s < e) [nums[s++], nums[e--]] = [nums[e], nums[s]]; }; let n = nums.length; k = k % n; if (k === 0 || k ===...
mit
mathiasbynens/unicode-data
6.0.0/blocks/Number-Forms-code-points.js
647
// All code points in the Number Forms block as per Unicode v6.0.0: [ 0x2150, 0x2151, 0x2152, 0x2153, 0x2154, 0x2155, 0x2156, 0x2157, 0x2158, 0x2159, 0x215A, 0x215B, 0x215C, 0x215D, 0x215E, 0x215F, 0x2160, 0x2161, 0x2162, 0x2163, 0x2164, 0x2165, 0x2166, 0x2167, 0x2168, 0x2169, 0x216A, 0x216B...
mit
DazBoot/KamcordChatBot
python/src/dazbot.py
3027
import time from config import * from kamcordutils import * from messages import MessageManager USERNAME_INDEX = 0 MESSAGE_INDEX = 1 def compareMessages( firstMessage, secondMessage ): return firstMessage[ USERNAME_INDEX ] == secondMessage[ USERNAME_INDEX ] and firstMessage[ MESSAGE_INDEX ] == secondMessage[ MESS...
mit
georgiwe/TelerikAcademyExams
Web Services - 2014-09-23/Exam.Data/Repositories/IRepository.cs
387
namespace Exam.Data.Repositories { using System.Linq; public interface IRepository<TEntity> where TEntity : class { IQueryable<TEntity> All(); TEntity Find(object id); void Add(TEntity entity); void Update(TEntity entity); TEntity Delete(TEntity entity); ...
mit
plouc/nivo
packages/colors/src/schemes/diverging.ts
1421
import { schemeBrBG, interpolateBrBG, schemePRGn, interpolatePRGn, schemePiYG, interpolatePiYG, schemePuOr, interpolatePuOr, schemeRdBu, interpolateRdBu, schemeRdGy, interpolateRdGy, schemeRdYlBu, interpolateRdYlBu, schemeRdYlGn, interpolateRdYlGn, sch...
mit
debatanu-thakur/music-search
webpack.config.js
3596
require('babel-polyfill'); const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const DashboardPlugin = require('webpack-das...
mit
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
349