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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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
osulp/oe-ng2-seed
src/client/app/shared/components/share_link/share.link.component.ts
12471
import {Component, Input, Output, EventEmitter} from '@angular/core'; import 'rxjs/Rx'; declare var $: any; declare var toastr: any; @Component({ moduleId: module.id, selector: 'share-link', templateUrl: 'share.link.component.html', styleUrls: ['share.link.component.css'] }) export class ShareLinkCo...
mit
mbouclas/mcms-node-framework
App/projectServiceProvider.js
1861
module.exports = (function(App){ var express = require('express'); var miniApp = express(); var path = require('path'); var Command = App.Command(App); var lo = require('lodash'); function projectServiceProvider(){ this.packageName = 'project'; this.services = {}; this.c...
mit
KaySchneider/meanio4
lib/core_modules/server/ExpressEngine.jssave.js
6667
/** * patched only the line 63 to 74 * the original is inside the comment. Mean Core Version 4.4 * @type {exports} */ var express = require('express'), session = require('express-session'), mongoStore = require('connect-mongo')(session), cookieParser = require('cookie-parser'), expressValidator = re...
mit
convoyinc/apollo-client
src/optimistic-data/store.ts
1986
import { ApolloAction, isMutationInitAction, isMutationResultAction, isMutationErrorAction, } from '../actions'; import { data, NormalizedCache, } from '../data/store'; import { getDataWithOptimisticResults, Store, } from '../store'; import assign = require('lodash.assign'); import pick = require('lo...
mit
yushroom/FishEngine
Engine/Include/FishEngine/Generated/Enum_WrapMode.hpp
1884
#pragma once #include <ReflectEnum.hpp> #include <WrapMode.hpp> namespace FishEngine { /************************************************** * FishEngine::WrapMode **************************************************/ // enum count template<> constexpr int EnumCount<FishEngine::WrapMode>() { return 5; } // string arr...
mit
joshlevy89/the-book-thing
app/src/components/MyTrade.js
1881
import React, { Component } from 'react'; import Book from './Book'; import { connect } from 'react-redux'; import { reject_trade, accept_trade } from '../actions'; import { Button } from 'react-bootstrap'; class MyTrade extends Component { render() { const { mytrade, mybooks, reject_trade, accept_trade, ...
mit
devxkh/FrankE
src/include/XEngine/Controller/WindowManager.hpp
1042
#ifndef __WINDOWMANAGER_HPP__ #define __WINDOWMANAGER_HPP__ // //#include <sfml/Window/Window.hpp> //#include <sfml/System/String.hpp> #include <memory> namespace XE { class Scene; class Controller; class XEngine; //class WindowManager //{ //public: // WindowManager(); // ~WindowManager(); // //void Up...
mit
stijnster/appsignal-ruby
lib/appsignal/hooks/puma.rb
916
module Appsignal class Hooks class PumaHook < Appsignal::Hooks::Hook register :puma def dependencies_present? defined?(::Puma) && ::Puma.respond_to?(:cli_config) && ::Puma.cli_config end def install ::Puma.cli_config.options[:before_worker_boot] ||= []...
mit
fpommerening/PostSharpSamples
UiManipulation/FP.PostSharpSamples.UI.Controls/MainForm.cs
594
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace FP.PostSharpSamples.UI.Controls { public partial class MainForm : Form { publi...
mit
MuteG/gpmagic
GPMagicBase/Model/Database/CardAbilitie.cs
1937
using System; using System.Collections.Generic; using System.Text; namespace GPSoft.Games.GPMagic.GPMagicBase.Model.Database { public sealed class CardAbilitie : AbstractTableInstance { public CardAbilitie() { this.tableName = "ListAbilities"; } /// <sum...
mit
vikerman/angular
packages/common/locales/fa-AF.ts
2230
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js const u = undefined; fun...
mit
alexandrucucu/symfony-blog
src/AppBundle/Form/PostType.php
4483
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Component\F...
mit
GCallVietNam/GCALL-2-Android
GCALL2/app/src/main/java/vn/gcall/gcall2/DataStruct/CallLog.java
1783
package vn.gcall.gcall2.DataStruct; /** * Created by This PC on 28/06/2016. * Data struct describes Call log entity */ public class CallLog { private String group; private String dateCreated; private String duration; private String from; private String status; private String objectID; pr...
mit
mayugechief/srsg
app/controllers/concerns/cms/node_filter/view_cell.rb
1006
# coding: utf-8 module Cms::NodeFilter::ViewCell extend ActiveSupport::Concern include Cms::RssFilter included do helper ApplicationHelper before_action :prepend_current_view_path before_action :inherit_variables before_action :set_item end module ClassMethods def model(cls) se...
mit
Freshwood/matterbridge
src/main/scala/com/freshsoft/matterbridge/client/codinglove/CodingLoveIntegration.scala
3467
package com.freshsoft.matterbridge.client.codinglove import java.util.UUID import akka.event.Logging import akka.http.scaladsl.Http import akka.http.scaladsl.model.headers.Location import akka.http.scaladsl.model.{HttpRequest, HttpResponse, StatusCodes} import akka.util.ByteString import com.freshsoft.matterbridge.cl...
mit
bmdeveloper/bmdeveloper.github.io
gulpfile.js
4246
var gulp = require('gulp'); var jshint = require('gulp-jshint'); var concat = require('gulp-concat'); var rename = require('gulp-rename'); var uglify = require('gulp-uglify'); var less = require('gulp-less'); var path = require('path'); var minifyCSS = require('gulp-minify-css'); var replace = require('gulp-replace');...
mit
bootstrap-vue/bootstrap-vue
docs/content.js
3704
import { importAll, parseVersion, parseFullVersion } from '~/utils' import { version, dependencies, devDependencies, description } from '~/../package.json' const componentsContext = require.context('~/../src/components/', true, /package.json/) export const components = importAll(componentsContext) const directivesCon...
mit
EastsidePreparatorySchool/Ephemera
SpaceCritters/src/org/eastsideprep/spacecritters/gamelogic/AlienContainer.java
17940
/* * This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 United States License. * For more information go to http://creativecommons.org/licenses/by-nc/3.0/us/ */ package org.eastsideprep.spacecritters.gamelogic; import org.eastsideprep.spacecritters.gameengineinterfaces.AlienSpec; import or...
mit
golderboy/risk2
pages/user/rpt_007.php
4475
<?php if(isset($_POST['date_start']) && isset($_POST['date_end'])){ $text_sql = " AND risk_datetime Between '$_POST[date_start] 00:00:00' and '$_POST[date_end] 23:59:59' "; $date_show = "ระหว่างวันที่ ".$func->format_date($_POST['date_start'])." ถึง ".$func->format_date($_POST['date_end']); } ?> <?php ...
mit
Chamberlab/datadeck-nwjs
src/vue-ui/components/channel/index.js
207
import Grid from './grid'; import List from './list'; import Menu from './menu'; import Plot from './plot'; import Specs from './specs'; export default { Grid, List, Menu, Plot, Specs };
mit
requtize/query-builder
src/QueryBuilder/Container.php
556
<?php /** * Copyright (c) 2017 by Adam Banaszkiewicz * * @license MIT License * @copyright Copyright (c) 2017, Adam Banaszkiewicz * @link https://github.com/requtize/query-builder */ namespace Requtize\QueryBuilder; class Container { /** * @var Container */ protected $connections = []; ...
mit
pbnjay/clustering
distancemap_test.go
3710
package clustering import "testing" func TestDistanceMapClustering1(t *testing.T) { d := NewDistanceMapClusterSet(nil) if d == nil { t.Errorf("could not create empty DistanceMapClusterSet") } d = NewDistanceMapClusterSet(DistanceMap{"a": {"b": 0.0}}) if d == nil { t.Errorf("could not create 2-node DistanceM...
mit
danisio/MVC-Project
Source/Web/MySurveys.Web/Areas/Surveys/ViewModels/Creating/PossibleAnswerViewModel.cs
867
namespace MySurveys.Web.Areas.Surveys.ViewModels.Creating { using System.ComponentModel.DataAnnotations; using System.Web.Mvc; using AutoMapper; using Models; using MvcTemplate.Web.Infrastructure.Mapping; public class PossibleAnswerViewModel : IMapFrom<PossibleAnswer>, IHaveCustomMappings ...
mit
bcvsolutions/CzechIdMng
Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/model/repository/IdmAutomaticRoleAttributeRuleRequestRepository.java
443
package eu.bcvsolutions.idm.core.model.repository; import eu.bcvsolutions.idm.core.api.repository.AbstractEntityRepository; import eu.bcvsolutions.idm.core.model.entity.IdmAutomaticRoleAttributeRuleRequest; /** * Repository of rules for automatic role attribute request * * @author svandav * */ public interface...
mit
abjerner/Skybrud.Social.BitBucket
src/Skybrud.Social.BitBucket/Models/Users/BitBucketUserEmailsCollection.cs
2770
using System; using Newtonsoft.Json.Linq; using Skybrud.Essentials.Json.Extensions; namespace Skybrud.Social.BitBucket.Models.Users { /// <summary> /// Class describing a BitBucket user. /// </summary> public class BitBucketUserEmailsCollection : BitBucketObject { #region Properties ...
mit
CptFight/immofficev2
application/controllers/Profile.php
189
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Profile extends MY_Controller { public function index() { $this->load->view('template', $this->data); } }
mit
wellingWilliam/prometheus
remote/src/main/java/com/prometheus/service/RemoteAuthenticationService.java
2788
package com.prometheus.service; import static org.springframework.http.HttpMethod.GET; import static org.springframework.http.HttpMethod.POST; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.ResponseEntity; impor...
mit
thejandroman/jira_dependency_visualizer
spec/unit/jira_dependency_visualizer_spec.rb
161
require 'spec_helper' describe JiraDependencyVisualizer do it 'has a version number' do expect(JiraDependencyVisualizer::VERSION).not_to be nil end end
mit
bound1ess/toolset
spec/spec_helper.rb
124
require "simplecov" require "simplecov-json" SimpleCov.formatters = [SimpleCov::Formatter::JSONFormatter] SimpleCov.start
mit
Brunomm/br_boleto
test/br_boleto/retorno/base_test.rb
1939
require 'test_helper' describe BrBoleto::Retorno::Base do subject { BrBoleto::Retorno::Base.new('') } before do BrBoleto::Retorno::Base.any_instance.stubs(:read_file!) end describe "#initialize" do it "Se passar um arquivo por parâmetro deve setar o valor em @file e chamar o metodo read_file!" do BrBole...
mit
weaondara/BungeePerms
src/main/java/net/alpenblock/bungeeperms/platform/bungee/BungeeNotifier.java
7386
/* * Copyright (C) 2020 wea_ondara * * BungeePerms is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * BungeePerms is distribu...
mit
zporky/langs-and-paradigms
projects/G4R8AJ/C#/ProgNyelvekBead/States/SignedStart.cs
760
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProgNyelvekBead.States { class SignedStart : AbstractState { public SignedStart(String word, String curVal) : base(word, curVal) { } protected override void calculate...
mit
biplav/bakbak
app/controllers/bakbaks.js
2209
var userUtil = require(__dirname + '/user') , mongoose = require('mongoose') , ApplicationModel = mongoose.model('ApplicationModel') , everyauth = require('everyauth'); //create app created step and use it. exports.index = function(req,res) { userUtil.userById(req,function(user){ ApplicationModel.find...
mit
alextse/tutorials-node-js
00-hello-world/server.js
219
var http = require("http"); http.createServer(function(req,res) { res.writeHead(200, {"Content-Type": "text/plain"}); res.end("Hello World\n"); }).listen(1337, "127.0.0.1"); console.log("Server running at port 1337");
mit
tantalor/emend
app/test/homepage_test.py
645
# -*- coding: utf-8 -*- import unittest from urllib import urlencode from mocks import mock_handler from emend import stubs class TestHomepage(unittest.TestCase): def setUp(self): stubs.all() def test_unicode_suggest(self): original = u"the
original design" request = '/?%s' % urlencode(dict(or...
mit
jbmlaird/DiscogsBrowser
app/src/main/java/bj/vinylbrowser/home/HomeContract.java
1448
package bj.vinylbrowser.home; import android.app.Activity; import android.support.v7.widget.Toolbar; import com.mikepenz.materialdrawer.Drawer; import java.util.List; import bj.vinylbrowser.model.listing.Listing; import bj.vinylbrowser.model.order.Order; import io.reactivex.Single; /** * Created by j on 18/02/201...
mit
JonkiPro/REST-Web-Services
web/src/main/java/com/web/web/security/package-info.java
71
/** * Extension of Spring Security. */ package com.web.web.security;
mit
kekeh/vsdatatable
js/directive/vsdttablebodyrow.js
2776
/** * @ngdoc object * @name tableBodyRow * @description tableBodyRow directive handles row clicks done by user. It also hover the row in case defined in * the configuration. */ vsdt.directive('tableBodyRow', ['vsdtServ', function (vsdtServ) { return { restrict: 'A', scope: false, link: ...
mit
ivargrimstad/dukes-microprofile
dukes-kumuluz/src/main/java/eu/agilejava/dukes/RootResource.java
1506
/* * The MIT License * * Copyright 2015 Ivar Grimstad ([email protected]). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the...
mit