repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
williambai/beyond-webapp
unicom/app/scripts/userApp/me/views/MeBonus.js
1840
var _ = require('underscore'); var $ = require('jquery'); var Backbone = require('backbone'); var ListView = require('../../_base/__ListView'); var config = require('../../conf'); var Utils = require('../../_base/__Util'); Backbone.$ = $; //** 模型 var Bonus = Backbone.Model.extend({ idAttribute: '_id', urlRoot: conf...
mit
3DRealms/jrpg
dominio/src/main/java/mensaje/MensajeAutenticacion.java
894
package mensaje; public class MensajeAutenticacion { private String username; private String password; private boolean registro; private String casta; private String raza; public MensajeAutenticacion(String username, String password, boolean registro, String casta, String raza) { this.username = username;...
mit
maxfoow/EventSourcingPoc
src/Processing/EventSourcing.Poc.CommandProcessing/ActionDispatcher.cs
1477
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using EventSourcing.Poc.EventSourcing; using EventSourcing.Poc.EventSourcing.Command; using EventSourcing.Poc.EventSourcing.Jobs; using EventSourcing.Poc.EventSourcing.Wrapper; using EventSourcing.Poc.Messages; namespace EventSourcing.P...
mit
sh-sh-dev/ir-studies
assets/crispRipple.js
1900
(function($) { 'use strict'; var els = $('.has-crr'); return els.each(function () { var el = $(this), color = el.css('background-color'); el.attr('data-crr-hold', 1); var data = el.data('crr-hold'); el.append('<div class="crisp-container" />').click(function(e...
mit
CupOfTea696/prism
components/prism-asciidoc.js
9031
(function (Prism) { var attributes = { pattern: /(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\]\\]|\\.)*\]|[^\]\\]|\\.)*\]/m, lookbehind: true, inside: { 'quoted': { pattern: /([$`])(?:(?!\1)[^\\]|\\.)*\1/, inside: { 'punctuation': /^[$`]|[$`]$/ } }, 'interpreted': { ...
mit
ZEROKISEKI/cube-generator
gulp/assets.js
1118
import gulp from 'gulp' import path from 'path' import { Path } from './config' (function () { 'use strict' gulp.task('fonts', () => { return gulp.src(path.join(Path.source, '/fonts/**/*.*')) .pipe(gulp.dest(path.join('..', Path.theme, Path.source, '/fonts'))) }) gulp.task('langua...
mit
javadev/underscore-java
spring-boot-example/src/test/java/com/example/demo/controller/XmlToJsonControllerTest.java
2342
package com.example.demo.controller; import static org.junit.jupiter.api.Assertions.assertSame; import com.github.underscore.lodash.U; import java.util.Map; import org.junit.jupiter.api.Test; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; class XmlToJsonControllerTest { ...
mit
AaronFriesen/Trydent
src/main/java/edu/gatech/cs2340/trydent/animation/AnimationEvent.java
521
package edu.gatech.cs2340.trydent.animation; import edu.gatech.cs2340.trydent.GameObject; /** * Stores information about an animation event. */ public class AnimationEvent { /** The GameObject associated with this event. */ public final GameObject gameObject; /** The Animation associated with this eve...
mit
uniplaces/ember-cli-uniq
addon/components/uni-auth-modal.js
342
import Component from '@ember/component'; import layout from '../templates/components/uni-auth-modal'; export default Component.extend({ tagName: '', layout, isOpen: false, baseCssClass: 'uni-auth-modal', hasSeparator: false, onCloseModal() {}, actions: { onCloseModal() { this.get('onCloseMod...
mit
reasonMix/netfoxpack
LuaFunction.cpp
3447
#include "LuaFunction.hpp" LuaRef::LuaRef(): L(nullptr), ref_(LUA_NOREF) { } LuaRef::LuaRef(lua_State* aL, int index) : L(aL), ref_(LUA_NOREF) { lua_pushvalue(L, index); ref_ = luaL_ref(L, LUA_REGISTRYINDEX); } LuaRef::~LuaRef() { unref(); } LuaRef::LuaRef(const LuaRef& other): L(nullptr), ref_(LUA_NORE...
mit
7odri9o/Sunshine
app/src/main/java/com/dreamdevs/sunshine/fragment/DetailFragment.java
9586
package com.dreamdevs.sunshine.fragment; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.LoaderManager; import android.support.v4.content.CursorLoader; import android.support.v4.conten...
mit
themichaelhall/bluemvc-core
src/Collections/SessionItemCollection.php
4667
<?php /** * This file is a part of the bluemvc-core package. * * Read more at https://bluemvc.com/ */ declare(strict_types=1); namespace BlueMvc\Core\Collections; use BlueMvc\Core\Interfaces\Collections\SessionItemCollectionInterface; /** * Class representing a collection of session items. * * @since 1.0.0 ...
mit
Choosue/lintcode
src/test/chushu/lintcode/datastructure/LongestConsecutiveSequence.java
2359
package test.chushu.lintcode.datastructure; import test.chushu.util.ArrayUtils; import java.util.Arrays; import java.util.HashSet; /** * Created by liuchushu on 4/14/16. */ public class LongestConsecutiveSequence { /** * @param num: A list of integers * @return an integer */ public int longe...
mit
qvazzler/Flexget
flexget/plugins/input/ftp_list.py
7937
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin from past.utils import old_div from future.moves.urllib.parse import quote import logging import ftplib import os import re from flexget.utils.tools import native_str_to_text f...
mit
mRabitsky/RIPmrHorn
RIP Mr Horn/src/pThree/DLinkedList.java
2950
package pThree; public class DLinkedList<T> { private DListNode<T> firstNode; private DListNode<T> lastNode; private int size; /** * Construct an empty list */ public DLinkedList() { firstNode = null; lastNode = null; size=0; } /** * Returns true if the list contains no elements ...
mit
EverlessDrop41/NumberGuesser
NumberGuesser/Properties/AssemblyInfo.cs
996
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("NumberGuesser")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ("")] [ass...
mit
samphippen/spe
src/uk/me/graphe/shared/graphmanagers/GraphManager2dImpl.java
12073
package uk.me.graphe.shared.graphmanagers; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import uk.me.graphe.client.Console; import uk.me.graphe.client.EdgeDrawable; import uk.me.graphe.client.VertexDrawabl...
mit
tirpitz-verus/enigma-in-scala
core/src/main/scala/mlesiewski/enigmainscala/core/Plugboard.scala
1338
package mlesiewski.enigmainscala.core object Plugboard { def apply (pluggedPairs: Seq[(Char, Char)]): Plugboard = new Plugboard (pluggedPairs) } class Plugboard private[core] ( /** pairs of letters that will be swapped during encryption */ pluggedPair...
mit
safesoftware/shout_at
lib/shout_at/shouter.rb
1214
# frozen_string_literal: true module ShoutAt class Shouter class << self attr_writer :logger def logger @logger ||= Logger.new($stdout) end end def initialize(group, level, **_options) @group = group.to_s.camelize @level = level.to_s.camelize end def logg...
mit
qious/ss-panel
src/api/nodes/detail.js
301
const errors = require('../../lib/errors') const nodeService = require('../../service/node') module.exports = async (ctx) => { let { nodeId } = ctx.params let node = await nodeService.getAsync(nodeId) if (!node) { throw new errors.NotFound('未找到相关节点') } ctx.body = node }
mit
2B5/ia-3B5
module1/app/requester.js
767
var request = require('request'); class Requester{ constructor(address){ this.options = address; } doRequest(hasResponseInBody, cb){ request(this.options, function(error, response, body){ if(error){ console.log(error); cb("Sorry, cannot answer th...
mit
rosshendrickson-wf/education
talks/2015-10-21-debug/debug/slide4.go
449
package main import ( "log" "strconv" ) func main() { a := generateStrings(10) sendToLog(a) } func mutate(s string) string { l := sumLength(s) s += strconv.Itoa(l) return s } func sendToLog(s string) { b := mutate(s) log.Print(b[len(s)+10]) } func sumLength(s string) int { return len(s) } func generate...
mit
LocalJoost/WpWinNl
portable-win81+wpa81/WpWinNl/Converters/NullToCollapsedConverter.cs
804
using System; using System.Globalization; using System.Windows; #if !WINDOWS_PHONE using Windows.UI.Xaml; #endif namespace WpWinNl.Converters { /// <summary> /// Returns Visibility.Collapsed for any value that is null, empty, only whitespaces or an empty guid. /// </summary> public class NullToCollapsedConver...
mit
NiallBegley/nestgraph
db/migrate/20170722182703_add_humidity_and_state.rb
304
class AddHumidityAndState < ActiveRecord::Migration[5.1] def change add_column :records, :hvac_state, :string add_column :records, :humidity, :float add_column :records, :name, :string add_column :records, :device_id, :string add_column :records, :time_to_target, :string end end
mit
JayH117/Assignment-3
ZombieTower/Assets/Scripts/Bullet.cs
691
using UnityEngine; using System.Collections; public class Bullet : MonoBehaviour { public float speed = 6; public Transform target; void FixedUpdate() { if (target) { Vector3 dir = target.position - transform.position; GetComponent<Rigidbody>()...
mit
dai-shi/es-beautifier
tests/lib/rules/jsx-separateline-literals.js
856
const { RuleTester } = require('eslint'); const rule = require('../../../lib/rules/jsx-separateline-literals.js'); const ruleTester = new RuleTester(); const parserOptions = { ecmaVersion: 2015, ecmaFeatures: { jsx: true }, }; ruleTester.run('jsx-separateline-literals', rule, { valid: [{ code: 'x=(<div>aaa...
mit
smeagonline-developers/OnlineEducationPlatform---SMEAGonline
src/Topxia/AdminBundle/Resources/public/js/controller/analysis/register.js
2017
define(function(require, exports, module) { var Morris=require("morris"); require("jquery.bootstrap-datetimepicker"); var autoSubmitCondition=require("./autoSubmitCondition.js"); var Validator = require('bootstrap.validator'); require('common/validator-rules').inject(Validator); var now = new D...
mit
hybridgroup/taskmapper-redmine
lib/provider/redmine.rb
866
module TaskMapper::Provider # This is the Yoursystem Provider for taskmapper module Redmine include TaskMapper::Provider::Base PROJECT_API = RedmineAPI::Project TICKET_API = RedmineAPI::Issue # This is for cases when you want to instantiate using TaskMapper::Provider::Yoursystem.new(auth) def s...
mit
Bojo966/SoftUni-JS-Fundamentals
Arrays-And-Matrices/add-remove-elements-from-array.js
541
function interpredCommands(input) { let initialValue = 1 let valuesArray = [1] for (var index = 1; index < input.length; index++) { var element = input[index] initialValue++ if (element === 'add') { valuesArray.push(initialValue) } else if (element === 'remove') ...
mit
simplyspoke/archiproject
config/env/default.js
2418
'use strict'; module.exports = { app: { title: 'AchiProject', description: 'A project manager and archive for architects.', keywords: 'mongodb, express, angularjs, node.js, mongoose, passport', googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_TRACKING_ID' }, ...
mit
karim/adila
database/src/main/java/adila/db/angus3a41_lenovo20a2020a40.java
238
// This file is automatically generated. package adila.db; /* * Lenovo A2020a40 * * DEVICE: angus3A41 * MODEL: Lenovo A2020a40 */ final class angus3a41_lenovo20a2020a40 { public static final String DATA = "Lenovo|A2020a40|"; }
mit
cncgl/springboot-doma-todo
src/main/java/com/example/DemoApplication.java
882
package com.example; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Reque...
mit
KlausBrunner/solarpositioning
src/main/java/net/e175/klaus/solarpositioning/PSA.java
6456
package net.e175.klaus.solarpositioning; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.TimeZone; /** * Compute sun position for a given date/time and longitude/latitude. * * This is a simple Java port of the "PSA" solar positioning algorithm, as documented in: * * Bla...
mit
bugknightyyp/yyper
public/js/common/underscore/1.6.0/underscore.js
45496
// Underscore.js 1.6.0 // http://underscorejs.org // (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Underscore may be freely distributed under the MIT license. (function() { // Baseline setup // -------------- // Establish the root object, `window` in the ...
mit
bkerley/r509-cert-validator
lib/r509/cert/validator/version.rb
87
module R509 class Cert class Validator VERSION = "0.0.4" end end end
mit
axodox/AxoTools
AxoCover/Models/Testing/Data/ITestResult.cs
259
using System; namespace AxoCover.Models.Testing.Data { public interface ITestResult { TimeSpan Duration { get; } string ErrorMessage { get; } TestMethod Method { get; } TestState Outcome { get; } StackItem[] StackTrace { get; } } }
mit
motorcyclets/motorcycle
packages/stream/src/sources/createProxy/index.ts
84
export * from './types' export * from './createProxy' export * from './ProxyStream'
mit
telcocoin-project/telcocoin
src/net.cpp
57397
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "irc.h" #include "db.h" #include "net.h" #include "init.h" #include "addr...
mit
svenberra/NewtonUnityPlugin
Demos/Assets/Scripts/RopeComponent.cs
1769
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RopeComponent : MonoBehaviour { public int Segments = 10; public float SegmentSize = 0.3f; private List<GameObject> gameObjects = new List<GameObject>(); private NewtonWorld world; private LineRenderer lin...
mit
xtina-starr/reaction
src/__generated__/PricingContextStoryQuery.graphql.ts
6918
/* tslint:disable */ import { ConcreteRequest } from "relay-runtime"; import { PricingContext_artwork$ref } from "./PricingContext_artwork.graphql"; export type PricingContextStoryQueryVariables = {}; export type PricingContextStoryQueryResponse = { readonly artwork: ({ readonly " $fragmentRefs": PricingCo...
mit
jaimegarcia/vega-examples
app/scripts/main.js
285
console.log('\'Allo \'Allo!'); function parse(spec) { console.log(spec); vg.parse.spec(spec, function(chart) { console.log(chart) var view = chart({ el:"#vis" }); view.viewport(null) .renderer("svg") .update(); }); } parse("charts-specs/node-io-9.json");
mit
kobayashi-tbn/watarase
tmp/dummy/db/migrate/20130316163018_create_users.rb
223
class CreateUsers < ActiveRecord::Migration def change create_table(:users, id: false) do |t| t.string :username t.timestamps end execute "ALTER TABLE users ADD PRIMARY KEY(username);" end end
mit
twin/synergy
app/decorators/project_decorator.rb
713
class ProjectDecorator < Draper::Decorator delegate_all translates :name, :description, :summary, :location, :age_restriction, :capacity decorates_association :category delegate :to_s def title h.smarty_pants [name, category.try(:name), h.date_range(begins_on, ends_on)].join(", ") end def descripti...
mit
goodwinxp/Yorozuya
library/ATF/_apex_send_trans.hpp
365
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE struct _apex_send_trans { int m_nRet; public: int size(); }; static_assert(ATF::checkSize<_apex_send_trans, ...
mit
WSlatton/ftc-nav
src/main/java/io/github/wslatton/ftc_nav/motion/Rotation.java
1685
package io.github.wslatton.ftc_nav.motion; import io.github.wslatton.ftc_nav.control.Correction; import io.github.wslatton.ftc_nav.util.Angle; /** * basic rotation */ public class Rotation { private Robot robot; private Correction<Double, Double> correction; private double tolerance; /** * cre...
mit
vanHeemstraSystems/libraries
library/rethinkdbdash.js
124
//import RethinkDBDash from 'rethinkdbdash'; // //export default RethinkDBDash; module.exports = require('rethinkdbdash');
mit
neilferreira/sf
src/NeilF/AdminBundle/Entity/Session.php
1682
<?php namespace NeilF\AdminBundle\Entity; /** * NeilF\AdminBundle\Entity\Session */ class Session { /** * @var integer $id */ private $id; /** * @var string $session_id */ private $session_id; /** * @var string $session_value */ private $session_value; /*...
mit
bsampietro/weirdy
test/dummy/config/application.rb
2570
require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(*Rails.groups) require "weirdy" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/ini...
mit
aichbauer/node-semantic-git-release-cli
src/helpers/cleanNodeModules.js
408
import execa from "execa"; import hasYarn from "has-yarn"; import fs from "fs-extra"; import path from "path"; const deleteNodeModules = () => { const cwd = process.cwd(); return fs.remove(path.join(cwd, "node_modules")); }; const installNodeModules = () => { if (hasYarn()) { return execa.shell("yarn"); ...
mit
mdraganov/Telerik-Academy
Java Script/JavaScript Fundmentals/Functions/Functions/06.Larger than neighbours.js
793
function checkNeighbours(arr, i) { var result, inputArray, position; if (arr == null) { inputArray = document.getElementById('numbersArray2').value.split(' '), position = +document.getElementById('num6').value; } else { inputArray = arr, position = i; } ...
mit
nitely/Spirit
spirit/comment/migrations/0001_initial.py
1847
# -*- coding: utf-8 -*- from django.db import models, migrations import django.utils.timezone from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('spirit_topic', '0001_initial'), ] operations...
mit
yangra/SoftUni
DataStructures/RopeTrieExercise/src/main/java/Main.java
3884
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) throws IOException {...
mit
tjpranic/Win33
Win33/Win33/Window.cpp
9776
#include "Window.h" #include "Application.h" #include "Error.h" #include "Misc.h" namespace Win33 { const Point Window::DefaultPosition = { CW_USEDEFAULT, CW_USEDEFAULT }; const Size Window::DefaultSize = { CW_USEDEFAULT, CW_USEDEFAULT }; Window::Window( const Point& position, ...
mit
CoderDojoPL/cd-sms
test/UserTest.php
7163
<?php /* * This file is part of the HMS project. * * (c) CoderDojo Polska Foundation * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Test; require_once __DIR__.'/../common/WebTestCaseHelper.php'; use Common\WebTestCase...
mit
gabrielprallon/SunProjectV2TheRiseOfTheTrueSun
SPV2TROTTS/Assets/Particle Playground/Extensions/Playground Recorder/PlaygroundRecorder.cs
34720
using UnityEngine; using System; using System.Collections; using System.Collections.Generic; namespace ParticlePlayground { /// <summary> /// The Particle Playground Recorder enables playback and scrubbing of recorded particles. /// The method used is storing built-in particle arrays as keyframes, then interpola...
mit
Tuxion/tx.cms-autologin
Views.php
144
<?php namespace components\autologin; if(!defined('TX')) die('No direct access.'); class View extends \dependencies\BaseComponent { }
mit
LiquidFire/jisho-quick-radicals
aliases.js
21067
aliases = { // Strokes: 1 // ----------- // 一 1: [ "一", "-", "1", "ichi", "iti", "one", // WaniKani ], // | 2: [ "|", "line", ], // 丶 3: [ "丶", "`", "drop", // WaniKani "tick", ], // ノ or 丿 4: [ "ノ", "丿", "/", "no", "slide", // Wa...
mit
VR-Robotica/AvatarComponents
Assets/VR_Robotica/SimpleEyeGaze/Scripts/Objects/VRR_Frustum_Object.cs
7965
using System.Collections; using UnityEngine; using com.VR_Robotica.AvatarComponents.Controllers; /// <summary> /// This script simply adds and removes potential ObjectsOfInterest from the Controller_Interest Script /// when objects enter or exit the collision area of the Frustum Collider Geometry /// </summary> name...
mit
TekMonks/monkshu
backend/server/lib/apiregistry.js
8188
/** * (C) 2015, 2016, 2017, 2018, 2019, 2020, 2021. TekMonks. All rights reserved. * License: MIT - see enclosed LICENSE file. * * This is our main API Manager class. */ const fs = require("fs"); const path = require("path"); const querystring = require("querystring"); const app = require(`${CONSTANTS.LIBDIR}/a...
mit
shuang1330/tf-faster-rcnn
lib/datasets/pascal_voc.py
11996
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ i...
mit
tealinuxos/tealinuxos-blog
database/migrations/2016_05_07_141929_create_taggings_table.php
467
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTaggingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('taggings', function(Blueprint $table) { $table->increments('id'); $tabl...
mit
TheOrangeAllianceNet/TheOrangeAlliance
src/app/ftc/regions/region.component.spec.ts
805
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RegionComponent } from './region.component'; import { RouterTestingModule } from '@angular/router/testing'; import { HttpClientModule } from '@angular/common/http'; describe('RegionComponent', () => { let component: RegionComponent;...
mit
whatever555/countries
components/ReadMore/ReadMore.js
4526
import React, { Component } from "react"; import styled from "styled-components"; const MAXIMUM_CONTAINER_HEIGHT = 2999; const ReadMoreCheckboxLabel = styled.label` color: #333334; cursor: pointer; top: 0px; font-size: 16px; font-weight: 700; line-height: 1.4; `; const ReadMoreButton = styled.button` po...
mit
niarora/Playground
Problems/BuildOrder.cs
4101
namespace Playground.Problems { using System; using System.Collections.Generic; using System.Linq; public class BuildDependency { public string Build { get; private set; } public string DependentOn { get; private set; } public BuildDependency(string build, string dependentO...
mit
akshaybabloo/Car-ND
Term_1/TensorFlow_3/cross_entropy_8.py
637
import tensorflow as tf def cross_entropy(): r""" Cross Entropy finds the distance between two probability vectors. The equation is given .. math:: D(S,L)=-\sum_{i}^{n}L_{i}~log(S_{i}) Returns ------- """ softmax_data = [0.7, 0.2, 0.1] one_hot_data = [1.0, 0.0, 0.0] softm...
mit
TsvetanMilanov/TelerikAcademyHW
08_HQC/11_TestDrivenDevelopment/TestDrivenDevelopment/Poker.Tests/PockerHandsCheckerTests.cs
33716
namespace Poker.Tests { using System; using System.Collections.Generic; using NUnit.Framework; [TestFixture] public class PockerHandsCheckerTests { private PokerHandsChecker pockerHandsChecker; private IList<ICard> allCards; private Dictionary<PockerHands, IHand> allPoc...
mit
3pillarlabs/hailstorm-sdk
hailstorm-client-exchange/src/test/java/com/tpg/labs/hailstorm/clientexchange/HailstormClientExchangeApplicationTests.java
394
package com.tpg.labs.hailstorm.clientexchange; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ContextConfiguration; @ContextConfiguration(classes = HailstormClientExchangeApplicationTestsConfig.class) @SpringBootTest class Hails...
mit
algolia/instantsearch.js
src/connectors/query-rules/connectQueryRules.ts
7800
import type { AlgoliaSearchHelper as Helper, SearchParameters, } from 'algoliasearch-helper'; import type { Connector, TransformItems, WidgetRenderState } from '../../types'; import { checkRendering, createDocumentationMessageGenerator, warning, getRefinements, isEqual, noop, } from '../../lib/utils'; i...
mit
anishathalye/gitlive
slurp/src/main/scala/slurp/Slurp.scala
1167
package slurp import java.util.concurrent.{ BlockingQueue, LinkedBlockingQueue } import com.typesafe.config.ConfigFactory import dispatch._, Defaults._ import morph.ast._, DSL._, Implicits._ object Slurp { def main(args: Array[String]) { val config = ConfigFactory.load() val clientId = config.getString(...
mit
SchizoCat3D/Ampersand
Assets/Scripts/Mechanics/UpgradeProp.cs
1084
using System.Collections; using System.Collections.Generic; using UnityEngine; public class UpgradeProp : MonoBehaviour { enum Tipo { Tronco, Planta, Comida } public int puntuacion; [Header("Características")] [SerializeField] Tipo tipo; public GameObject destroyed; public GameObject growed;...
mit
lehins/django-wepay
djwepay/management/commands/wepay_callback_update.py
1959
from optparse import make_option from django.core.management.base import BaseCommand from djwepay.api import get_wepay_model, DEFAULT_MODELS from wepay.exceptions import WePayHTTPError, WePayConnectionError class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--objects', def...
mit
larryjiang/cs_study
compilers/book_compilers/src/cptt/chapter2/easyexpressiontranslator/Postfix.java
1145
package cptt.chapter2.easyexpressiontranslator; import java.io.*; public class Postfix{ public static void main(String args[]) throws IOException{ Parser parser = new Parser(); parser.expr(); System.out.println(); } } class Parser{ private int lookahead; private InputStreamReader inputS...
mit
PinkyJie/angular1-webpack-starter
source/app/pages/dashboard/dashboard.controller.js
684
class DashboardController { constructor (UserAPI) { Object.assign(this, {UserAPI}); this.colors = ['indigo', 'red', 'pink']; const userInfo = this.UserAPI.getUserInfo(); this.welcomeMessage = `Welcome ${userInfo.name}!`; this._getProductsSummary(); } _getProductsSu...
mit
wbellang/cloudy
imports/ui/layouts/account/account.js
68
import './account.html'; import '../../layouts/header/header.html';
mit
rkeshmir/persian-angular-ui-bootstrap
src/pagination/docs/demo.js
436
angular.module('ui.bootstrap.demo').controller('PaginationDemoCtrl', function ($scope, $log) { $scope.totalItems = 64; $scope.currentPage = 4; $scope.setPage = function (pageNo) { $scope.currentPage = pageNo; }; $scope.pageChanged = function () { $log.log('Page changed to: ' + $sco...
mit
selvasingh/azure-sdk-for-java
sdk/network/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/network/v2019_11_01/implementation/ConnectionResetSharedKeyImpl.java
962
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.network.v2019_11_01.implementation; import com.m...
mit
crossgovernmentservices/csdigital-prototype
application/objectives/forms.py
1725
import datetime from flask.ext.wtf import Form from wtforms.validators import DataRequired, Required from wtforms.fields import StringField, TextAreaField from application.models import create_log_entry from application.utils import a_year_from_now class ObjectiveForm(Form): title = StringField('Title', validat...
mit
brett-harvey/Smart-Contracts
Ethereum-based-Roll4Win/node_modules/h2x-parse/lib/index.js
365
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _jsdom = require("jsdom"); var _h2xTypes = require("h2x-types"); /* eslint-disable no-restricted-syntax */ function parse(code) { return (0, _h2xTypes.fromHtmlElement)(_jsdom.JSDOM.fragment(code)); } var ...
mit
daogames/docs.daogames.com
api_docs/daoclient-csharp/daounity/documentation/html/search/functions_0.js
899
var searchData= [ ['addauthenticationcallback',['AddAuthenticationCallback',['../../../../daonet/documentation/html/class_dao_net_1_1_dao_access.html#a79fa5e28a78727c2e61895cfcf3a5f13',1,'DaoNet::DaoAccess']]], ['addlogger',['AddLogger',['../../../../daonet/documentation/html/class_dao_net_1_1_dao_client.html#a7591...
mit
jonathanvdc/Pixie
Pixie.Terminal/TerminalBase.cs
2694
namespace Pixie.Terminal { /// <summary> /// A base type for a terminal which can be used by Pixie /// to render markup nodes as text. /// </summary> public abstract class TerminalBase { /// <summary> /// Gets the style manager for this terminal. /// </summary> //...
mit
jaspervdm/pogoprotos-php
src/POGOProtos/Networking/Responses/GetInboxResponse/ClientInbox/Notification.php
18138
<?php /** * Generated by Protobuf protoc plugin. * * File descriptor : POGOProtos/Networking/Responses/GetInboxResponse.proto */ namespace POGOProtos\Networking\Responses\GetInboxResponse\ClientInbox; /** * Protobuf message : * POGOProtos.Networking.Responses.GetInboxResponse.ClientInbox.Notification */ class...
mit
lancetw/react-isomorphic-bundle
src/shared/components/AppContainer.js
550
import React, { Component, PropTypes } from 'react' const Translate = require('react-translate-component') export default class AppContainer extends Component { static propTypes = { children: PropTypes.any, translator: Translate.translatorType } static childContextTypes = { translator: Translate.t...
mit
rlishtaba/algorithmable
lib/algorithmable/data_structs/ordered_symbol_table.rb
443
module Algorithmable module DataStructs class OrderedSymbolTable extend Forwardable def_delegators :@imp, :[]=, :[], :key?, :empty?, :size, :keys, :max, :min, :floor, :ceiling, :rank, :delete def initialize(key_type, value_type) search_strategy_factory = Object.new.extend Algorithmable...
mit
martijnvermaat/wiggelen
tests/test_wiggle.py
8867
""" Tests for the wiggle module. """ import os from itertools import chain from nose.tools import * import wiggelen from wiggelen.index import INDEX_SUFFIX, clear_cache DATA_DIR = os.path.join(os.path.dirname(__file__), 'data') def open_(filename, mode='r'): """ Open a file from the test data. """ ...
mit
cloudfoundry-community/firehose-to-syslog
vendor/code.cloudfoundry.org/go-loggregator/servers_test.go
2170
package loggregator_test import ( "crypto/tls" "crypto/x509" "io/ioutil" "net" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/credentials" "code.cloudfoundry.org/go-loggregator/rpc/loggregator_v2" ) type testIngressServer struct { receivers chan loggregator_v2.Ingress_BatchS...
mit
Vectorface/auth
src/Plugin/SuccessPlugin.php
781
<?php namespace Vectorface\Auth\Plugin; use Vectorface\Auth\Auth; /** * An auth plugin that always succeeds. Useful in development. */ class SuccessPlugin extends BaseAuthPlugin { /** * Auth plugin hook to be fired on login. * * @param string $username * @param string $password * @retu...
mit
sasha240100/three.js
examples/js/exporters/GLTFExporter.js
29102
/** * @author fernandojsg / http://fernandojsg.com */ //------------------------------------------------------------------------------ // Constants //------------------------------------------------------------------------------ var WEBGL_CONSTANTS = { POINTS: 0x0000, LINES: 0x0001, LINE_LOOP: 0x0002, LINE_STRIP...
mit
koreamic/gitlabhq
spec/requests/api/users_spec.rb
26936
require 'spec_helper' describe API::API, api: true do include ApiHelpers let(:user) { create(:user) } let(:admin) { create(:admin) } let(:key) { create(:key, user: user) } let(:email) { create(:email, user: user) } let(:omniauth_user) { create(:omniauth_user) } describe "GET /users" do contex...
mit
pauldubois777/VendingMachineKataA2
src/app/app.component.spec.ts
1766
/* tslint:disable:no-unused-variable */ import { TestBed, async } from '@angular/core/testing'; // Services import { CoinReturnService } from './services/coin-return/coin-return.service'; import { MessageService } from './services/message/message.service'; import { InitialInventory } from './services/inventory/initia...
mit
fgborja/CivisAnalysis
routes/camara.js
6772
/* * GET camara resources and save to DB * NOTE: this functions will make a GET to camara.gov and update the mongo db. For regular queries use camaramongo.js */ exports.obterDeputados = function(requestify,xml2js,db){ return function(req, res){ requestify.post('http://www.camara.leg.br/SitCamaraWS/Deputados.as...
mit
a-ignatov-parc/Marrow
static/js/core/core.observatory.js
9371
// version: 1.1.4 // ------------- // // Объект реализующий паттерн _pub/sub_ с полной поддержкой событий _jQuery_ но работающий на много // быстрее (http://jsperf.com/custom-pub-sub-test/3) // // __Пример:__ // // 1. Выстреливает глобальное событие `event_name` и передает в обработчик два аргумента; // // ...
mit
tonysneed/GK.Patterns.160718
Review/DecoratorReview/DecoratorReview/Properties/AssemblyInfo.cs
1406
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("De...
mit
Jingru/CLRS
C15-Dynamic-Programming/rodcutting.cpp
1490
using namespace std; #include <iostream> #include <stdio.h> #include <algorithm> // this is the most basic recursive version implementation int cut_rod(int p[] , int n) { int q = -999; if (n == 0) { return 0; } for (int i=0; i<n; i++){ int res=p[i] + cut_rod(p,n -...
mit
mattleib/o365api-simple-code-flow
SimpleWebAppCodeFlow/SimpleWebAppCodeFlow/Controllers/HomeController.cs
15385
//Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file. // using Microsoft.IdentityModel.Clients.ActiveDirectory; using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Web...
mit
ma-lijun/jinghuan
static/h-ui.admin/js/H-ui.admin.js
7111
/* -----------H-ui前端框架------------- * H-ui.admin.js v2.4 * http://www.h-ui.net/ * Created & Modified by guojunhui * Date modified 15:42 2016.03.14 * * Copyright 2013-2016 北京颖杰联创科技有限公司 All rights reserved. * Licensed under MIT license. * http://opensource.org/licenses/MIT * */ var num=0,oUl=$("#min_title_list"),hide_nav...
mit
andrewsomething/droplet_kit
lib/droplet_kit/models/droplet.rb
1070
module DropletKit class Droplet < BaseModel [:id, :name, :memory, :vcpus, :disk, :locked, :created_at, :status, :backup_ids, :snapshot_ids, :action_ids, :features, :region, :image, :networks, :kernel, :size_slug, :tags, :volume_ids].each do |key| attribute(key) end # Used for crea...
mit
Teddy-Zhu/SilentGo-JSON
src/main/java/com/silentgo/json/parser/Reader.java
691
package com.silentgo.json.parser; /** * Project : SilentGo * Package : com.silentgo.json * * @author <a href="mailto:teddyzhu15@gmail.com" target="_blank">teddyzhu</a> * <p> * Created by teddyzhu on 2017/1/4. */ public abstract class Reader { public static final char NULL = 0; public in...
mit
fahad19/tydel
test/collection/Collection.toJS.spec.js
867
/* global describe, it */ import { expect } from 'chai'; import Types from '../../src/Types'; import createModel from '../../src/createModel'; import createCollection from '../../src/createCollection'; import isModel from '../../src/isModel'; describe('Collection :: toJS()', function () { it('converts to plain arra...
mit
oobj/oobj-directives
src/oobj-login/oobj-login.directive.js
693
/** * Created by ATILLA on 20/10/2015. */ (function () { 'use strict'; angular .module('oobj-directives') .directive('oobjLogin', oobjLogin); /** @ngInject */ function oobjLogin() { return { restrict: 'EA', templateUrl: 'js/directives/oobj-login/oobj-l...
mit
Destevit/Convay
docs/html/search/enumvalues_4.js
223
var searchData= [ ['safedrawing',['safeDrawing',['../class_convay_1_1_win_forms_game_1_1_settings_form.html#a7918e2a1b1587472aa065d4db7a13537a580b802bad2f7fd52207c99b2f4b61cf',1,'Convay::WinFormsGame::SettingsForm']]] ];
mit