repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
yogeshsaroya/new-cdnjs
ajax/libs/ammaps/3.10.0/maps/js/irelandLow.min.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:2bdfe5678cd560584ad9cf5e163bac4dcc8b54e7e5efd3369cb30a7f193cfae8 size 78833
mit
project-schumann/vmf-parser
src/test/java/com/drkharma/vmf/KeySignatureTest.java
1403
package com.drkharma.vmf; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * Test class for {@link KeySignature} */ public class KeySignatureTest { /** * Tests the case where a key signature has 0 sharps and 0 * flats. */ @Test public void testGetKeySignatureCode0...
mit
jordanabrahambaws/DotNetwork
DotNetwork/Oldscape/Network/Protocol/Packet/PacketBuilder.cs
14357
// Copyright(c) 2010-2011 Graham Edgecombe // Copyright(c) 2011-2016 Major<major.emrs@gmail.com> and other apollo contributors // // 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...
mit
CodeLizards/Jobs-Queue
server/models/website.js
236
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var websiteSchema = new Schema({ content: String, id: String, url: String, }); var website = mongoose.model('website', websiteSchema); module.exports = website;
mit
pepinho24/Demos
Design Patterns/Behavioral/ChainOfResponsibility/DeveloperTeams/DeveloperTeamFactory.cs
587
namespace ChainOfResponsibility.DeveloperTeams { internal class DeveloperTeamFactory : IDeveloperTeamFactory { public DeveloperTeam CreateAndAttachDeveloperTeams() { var juniorDeveloperTeam = new JuniorDeveloperTeam(); var regularDeveloperTeam = new RegularDeveloperTeam(...
mit
Qambar/romanNumerals
test/numerals/NumeralsGeneratorTest.java
1148
package numerals; import static org.junit.Assert.assertEquals; import org.junit.Test; import uk.co.bbc.roman.NumeralGenerator; import uk.co.bbc.roman.NumeralGeneratorInterface; public class NumeralsGeneratorTest { NumeralGeneratorInterface numeralGeneratorTest = new NumeralGenerator(); @Test(expected = Il...
mit
aj-michael/raft
src/main/scala/edu/rosehulman/collections/DistributedMap.scala
4221
package edu.rosehulman.collections import akka.actor._ import akka.event.Logging import akka.event.slf4j.Logger import akka.pattern.ask import akka.util.Timeout import edu.rosehulman.raft.messages.{CommandResponse, FailedCommandResponse, CommandRequest} import java.util.concurrent.TimeoutException import scala.concu...
mit
ThiagoFacchini/3DUX
app/i18n.js
891
// @flow import { addLocaleData } from 'react-intl' import enLocaleData from 'react-intl/locale-data/en' import { DEFAULT_LOCALE } from './structural/LanguageProvider/constants' import enTranslationMessages from './translations/en.json' export const appLocales = [ 'en', ] addLocaleData(enLocaleData) export const f...
mit
arz-ngs/arz-ngs
ng-service-ui/src/at/arz/ngs/ui/controllers/ServiceInstanceController.java
15093
package at.arz.ngs.ui.controllers; import java.io.IOException; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.annotation.PostConstruct; import javax.enterprise.context.SessionScoped; import javax.faces.context.FacesContext; import javax.inject.Inject; import ja...
mit
catedrasaes-umu/NoSQLDataEngineering
projects/es.um.nosql.s13e.datavisualization/NoSQLDataIndex/Movies/js/gen/_OBJ_E_Movies.js
34373
var DiffMethodsExclusive = { isOfExactType_Actor_1: function (obj) { if (!("Name" in obj) || !(typeof obj.Name === "string")) return false; if (!("Age" in obj) || !(typeof obj.Age === "number") || !(obj.Age % 1 === 0)) return false; if (!("Birthday" in obj) || !(typeof obj.Birthday === "string")) retur...
mit
adamgreenhall/openreviewquarterly
test/unit/helpers/author_helper_test.rb
73
require 'test_helper' class AuthorHelperTest < ActionView::TestCase end
mit
atomixnmc/AtomMini
src/sg/atom/ai/Mover.java
187
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sg.atom.ai; /** * * @author CuongNguyen */ public interface Mover { }
mit
iluu/algs-progfun
src/test/java/com/hackerrank/LeftRotationTest.java
365
package com.hackerrank; import org.junit.Test; import static com.hackerrank.LeftRotation.rotateLeft; import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat; public class LeftRotationTest { @Test public void simpleTestCase() { assertThat(rotateLeft(new int[]{1, 2, 3, 4, 5}, 4)) ...
mit
casser/asx
src/babel/transformation/modules/index.js
399
export default { commonStrict: require("./common-strict"), amdStrict: require("./amd-strict"), umdStrict: require("./umd-strict"), asxStrict: require("./asx-strict"), common: require("./common"), system: require("./system"), ignore: require("./ignore"), amd: require("...
mit
neonichu/xcode-install
spec/install_spec.rb
2830
require File.expand_path('../spec_helper', __FILE__) module XcodeInstall describe Command::Install do describe 'when invoked' do before do Installer.any_instance.stubs(:exists).returns(true) Installer.any_instance.stubs(:installed).returns([]) fixture = Pathname.new('spec/fixtures/x...
mit
haefele/Mileage
src/03 Server/Mileage.Server.Infrastructure/Api/Configuration/MileageExceptionLogger.cs
645
using System.Web.Http.ExceptionHandling; using Anotar.NLog; namespace Mileage.Server.Infrastructure.Api.Configuration { public class MileageExceptionLogger : ExceptionLogger { /// <summary> /// When overridden in a derived class, logs the exception synchronously. /// </summary> ...
mit
afritz1/OpenTESArena
OpenTESArena/src/World/SkyDefinition.cpp
5550
#include <algorithm> #include "SkyDefinition.h" #include "components/debug/Debug.h" SkyDefinition::LandPlacementDef::LandPlacementDef(LandDefID id, std::vector<Radians> &&positions) : positions(std::move(positions)) { this->id = id; } SkyDefinition::AirPlacementDef::AirPlacementDef(AirDefID id, std::vector<std::...
mit
error-404-unlam/jrpg-2017b-cliente
src/main/java/edu/unlam/wome/comandos/ActualizarTrueque.java
942
package edu.unlam.wome.comandos; import edu.unlam.wome.mensajeria.PaquetePersonaje; /** * Comando Actualizar Trueque * @author Miguel */ public class ActualizarTrueque extends ComandosEscucha { @Override public void ejecutar() { PaquetePersonaje paquetePersonaje = (PaquetePersonaje) getGson(). ...
mit
Filipkovarik/JS_projects
Polynomial.js
4385
var AdvMath; (function(){ function shallowCopy(a){var target={}; for (var i in a){if(a.hasOwnProperty(i)) target[i] = a[i];} return target} AdvMath = { Cartez:function(a,b){var c=[];for(var i=0;i<a.length;i++){for(var j=0;j<b.length;j++){c.push([a[i],b[j]])}}return c}, Monomial:function(a,b){if("string"==typeof a)retur...
mit
junyanz/iGAN
lib/activations.py
2424
import theano.tensor as T from lib.theano_utils import sharedX class Softmax(object): def __init__(self): pass def __call__(self, x): e_x = T.exp(x - x.max(axis=1).dimshuffle(0, 'x')) return e_x / e_x.sum(axis=1).dimshuffle(0, 'x') class ConvSoftmax(object): def __init__(self)...
mit
EvgenKostenko/go-harvest
authentication_test.go
1158
package harvest import ( "fmt" "net/http" "testing" ) func TestAcquireFail(t *testing.T) { setup() defer teardown() testMux.HandleFunc("/account/who_am_i", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") testRequestURL(t, r, "/account/who_am_i") // Emulate error w.WriteHeader(htt...
mit
7sDream/rikka
plugins/fs/fs.go
447
package fs import ( "flag" "github.com/7sDream/rikka/plugins" ) // plugin type type fsPlugin struct{} var ( l = plugins.SubLogger("[FS]") argFilesDir = flag.String("dir", "files", "Where files will be save when use fs plugin.") argFsDebugSleep = flag.Int("fsDebugSleep", 0, "Debug: sleep some ms before cop...
mit
JeroenZegers/Nabu-MSSS
nabu/processing/__init__.py
233
'''@package processing This package contains all the functionality for data processing: - feature computation - feature storing and loading - file interpretation ''' from . import feature_computers, processors, tfreaders, tfwriters
mit
didclab/stork
stork/feather/Session.java
8716
package stork.feather; import java.io.*; import java.util.*; import stork.feather.util.*; /** * A {@code Session} is a stateful context for operating on {@code Resource}s. * {@code Session}s serve as a nexus for all of the stateful information * related to operating on a particular class of {@code Resource}s, whi...
mit
robjohnson189/home-assistant
homeassistant/components/tts/voicerss.py
5028
""" Support for the voicerss speech service. For more details about this component, please refer to the documentation at https://home-assistant.io/components/tts/voicerss/ """ import asyncio import logging import aiohttp import async_timeout import voluptuous as vol from homeassistant.const import CONF_API_KEY from ...
mit
baconcoins/ChickenBaconRanch
src/qt/locale/bitcoin_nl.ts
119471
<?xml version="1.0" ?><!DOCTYPE TS><TS language="nl" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ChickenBaconRanch</source> <translation>Over ChickenBaconRanch</tran...
mit
ndelvalle/ng-giphy
src/directives/findbyid.directive.js
658
(function () { 'use strict'; angular.module('ng-giphy') .directive('giphyId', findGiphyById); /** * Directive: find gif by id */ function findGiphyById() { return { scope: { id: '=gId', rating: '=' }, controller: findGiphyByIdController, controllerAs: 'vm'...
mit
speedlog/mapping-tools-performance
domain/src/main/java/pl/speedlog/demo/entity/Address.java
237
package pl.speedlog.demo.entity; import lombok.Data; /** * @author Mariusz Wyszomierski <mariusz@wyszomierski.pl> */ @Data public class Address { private String street; private String postalCode; private String city; }
mit
ngovanbon16/dulichboss
application/controllers/login.php
3310
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Login extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model("mlogin"); } public function index() { //$this->_data['subview'] = 'login_view'; //$this->_data['title'] = 'Đăn...
mit
zuku/bmff
lib/bmff/box/degradation_priority.rb
460
# coding: utf-8 # vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent: class BMFF::Box::DegradationPriority < BMFF::Box::Full attr_accessor :priority register_box "stdp" def parse_data super sample_size_box = parent.find(BMFF::Box::SampleSize) if sample_size_box sample_count = s...
mit
AntonGrafstrom/select
matrix.js
11030
var js = (js || {}); (function(ctx){ ctx.matrix = function(ary){ return new ctx.Matrix((ary.e || ary)); } ctx.rowVector = function(ary){ return new ctx.Matrix([(ary.e || ary)]); } ctx.columnVector = function(ary){ var a = (ary.e || ary); return new ctx.Matrix(a.map(function(v) {return [v]})) } ctx.Matrix = fun...
mit
SkillsFundingAgency/das-employerapprenticeshipsservice
src/SFA.DAS.EmployerFinance/Models/Payments/PaymentFundsOut.cs
252
namespace SFA.DAS.EmployerFinance.Models.Payments { public class PaymentFundsOut { public int CalendarPeriodYear { get; set; } public int CalendarPeriodMonth { get; set; } public decimal FundsOut { get; set; } } }
mit
maxleiko/wsmsgbroker-java
src/main/java/fr/braindead/wsmsgbroker/protocol/Send.java
701
package fr.braindead.wsmsgbroker.protocol; import fr.braindead.wsmsgbroker.actions.client.Action; /** * Created by leiko on 30/10/14. */ public class Send { private String action = Action.SEND.toString(); private String ack; private Object message; private String[] dest; public String getAck()...
mit
ElegantWhelp/LWJGL-3-Tutorial
src/main/java/com/github/elegantwhelp/game/Main.java
3222
package com.github.elegantwhelp.game; import static org.lwjgl.glfw.GLFW.*; import static org.lwjgl.opengl.GL11.*; import org.lwjgl.opengl.GL; import com.github.elegantwhelp.assets.Assets; import com.github.elegantwhelp.gui.Gui; import com.github.elegantwhelp.io.Timer; import com.github.elegantwhelp.io.Window; import...
mit
lucasdesenna/generic-search-flow
src/app/main/main.controller.spec.js
192
describe('controllers', () => { let vm; beforeEach(angular.mock.module('generic-search-flow')); beforeEach(inject(($controller) => { vm = $controller('MainController'); })); });
mit
BitClubDev/ClubCoin
src/qt/locale/bitcoin_la.ts
119453
<?xml version="1.0" ?><!DOCTYPE TS><TS language="la" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ClubCoin</source> <translation type="unfinished"/> </message> <message> <location line=...
mit
rabbanyk/CommunityEvaluation
libs/matrix-toolkits-java-mtj-1.0.1/src/main/java/no/uib/cipr/matrix/sparse/ArpackSym.java
4783
package no.uib.cipr.matrix.sparse; import com.github.fommil.netlib.ARPACK; import lombok.extern.java.Log; import no.uib.cipr.matrix.*; import org.netlib.util.doubleW; import org.netlib.util.intW; import java.util.Comparator; import java.util.Map; import java.util.TreeMap; /** * Uses ARPACK to partially solve symmet...
mit
Carlodeboer/GFY1-03
Opleveren/Code/Website/admin/contentbeheer.php
1597
<?php /******************************************************************************* * Copyright (c) 2017 Carlo de Boer, Floris de Grip, Thijs Marschalk, * Ralphine de Roo, Sophie Roos and Ian Vredenburg * * This Source Code Form is subject to the terms of the MIT license. * If a copy of the MIT license was not ...
mit
alwintje/school-pvb
src/UserBundle/Entity/UserRepository.php
2053
<?php namespace UserBundle\Entity; use Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\User\UserProviderInterface; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Secur...
mit
aleacoin/aleacoin-release
src/rpcrawtransaction.cpp
20286
// Copyright (c) 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 <boost/assign/list_of.hpp> #include "base58.h" #include "bitcoinrpc.h" #inclu...
mit
vi-kon/laravel-bootstrap
src/ViKon/Bootstrap/FormBuilder.php
10037
<?php namespace ViKon\Bootstrap; use Collective\Html\HtmlBuilder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Session\Store; use Illuminate\Support\Arr; use Illuminate\Support\MessageBag; /** * Class FormBuilder * * @package ViKon\Bootstrap * * @author Kovács Vince<vincekovacs@hotmail.com> */ ...
mit
cgafeng/BTSMobileS
app/dl/src/stores/ImportKeysStore.js
370
import alt from "alt-instance" import ImportKeysActions from "actions/ImportKeysActions" class ImportKeysStore { constructor() { this.bindActions(ImportKeysActions) } onSetStatus(status) { this.setState({status}) } } export var ImportKeysStoreWrapped = alt.createStore(Impor...
mit
regenschauer490/TopicModel
SigTM/lib/model/lda_interface.hpp
7033
/* Copyright(c) 2014 Akihiro Nishimura This software is released under the MIT License. http://opensource.org/licenses/mit-license.php */ #ifndef SIGTM_LDA_INTERFACE_HPP #define SIGTM_LDA_INTERFACE_HPP #include "../sigtm.hpp" #include "../helper/compare_method.hpp" #include "../helper/data_format.hpp" namespace si...
mit
ybrs/Rhombus
src/main/java/com/pardot/rhombus/cobject/async/StatementIteratorConsumer.java
3970
package com.pardot.rhombus.cobject.async; import com.datastax.driver.core.*; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import com.google.common.util.concurrent.FutureCallback; import com.google.common.util.concurrent.Futures; import com.pardot.rhombus.RhombusException; import com.p...
mit
djtms/superputty
SuperPutty/Utils/PortableSettingsProvider.cs
11328
/* * Copyright (c) 2009 - 2015 Jim Radford http://www.jimradford.com * 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 rights * ...
mit
unmeshpro/easyPost
static/node_modules/react-document-meta/lib/index.js
5340
import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import { canUseDOM } from 'exenv'; import withSideEffect from 'react-side-effect'; import { clone, defaults, forEach } from './utils'; function reducePropsTostate ( propsList ) { const props = {}; let extend = true; for ...
mit
quyse/flaw
flaw-font-icu/src/icu/source/test/intltest/callimts.cpp
20265
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /*********************************************************************** * COPYRIGHT: * Copyright (c) 1997-2015, International Business Machines Corporation * and others. All Rights Reserved. ***********...
mit
SkuLpI/exozet
src/Exozet/BerlinBundle/Tests/Controller/IndexControllerTest.php
3582
<?php namespace Exozet\BerlinBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class IndexControllerTest extends WebTestCase { //initialise different testdata protected $emptydata = array(); protected $createdata = array( 'name' => "Batman", 'origin' => "Gotha...
mit
ptownsend1984/SampleApplications
ImageOrganizer/ImageOrganizer.Presentation/ImageOrganizerWindow.cs
2558
using System; using System.Linq; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using ImageOrganizer.ViewModels; using ImageOrganizer.ViewModels.Common; namespace ImageOrganizer.Presentation { public class ImageOrganizerWindow : System.Windows.Window { ...
mit
python-practice/lpthw
ex26/ex26.py
2281
def break_words(stuff): """This function will break up words for us.""" words = stuff.split(' ') return words def sort_words(words): """Sorts the words.""" return sorted(words) def print_first_word(words): """Prints the first word after popping it off.""" word = words.pop(0) print word...
mit
spthaolt/dmsnavigation
src/main.cpp
1531
/** The MIT License (MIT) Copyright (c) 2014 thelostcode 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 rights to use, cop...
mit
glejeune/Capcode.more
capcode-render-mail/examples/render-email.rb
1443
require 'rubygems' require 'capcode' require 'capcode/render/markaby' require 'capcode/render/erb' require 'capcode/render/static' require 'graphviz' $:.unshift( "../lib" ) require 'capcode/render/email' module Capcode set :email, { :server => '127.0.0.1', :port => 25 } set :erb, "mail" set :static, "mail" ...
mit
lubo-raykov/TelerikAcademy
Intro-Programming-Homework/PrintMyName/05_PrintMyName.cs
429
using System; class PrintMyName { static void Main() { /* Problem 5. Print Your Name Modify the previous application to print your name. Ensure you have named the application well (e.g. “PrintMyName”). You should submit a separate project Visual Studio project holding the PrintMyName class a...
mit
Tom94/osu-framework
osu.Framework/Platform/Windows/WindowsStorage.cs
908
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Diagnostics; using System.Text.RegularExpressions; namespace osu.Framework.Platform.Windows { public class WindowsStorage : DesktopStorag...
mit
visualjeff/paypal_ember_models
tests/unit/serializers/paypal-test.js
325
import { test, moduleFor } from 'ember-qunit'; moduleFor('serializer:paypal', 'PaypalSerializer', { // Specify the other units that are required for this test. // needs: ['serializer:foo'] }); // Replace this with your real tests. test('it exists', function() { var serializer = this.subject(); ok(serializer);...
mit
pleary/inaturalist
app/controllers/lists_controller.rb
12614
class ListsController < ApplicationController include Shared::ListsModule include Shared::GuideModule before_filter :authenticate_user!, :except => [:index, :show, :by_login, :taxa, :guide, :cached_guide, :guide_widget] load_except = [ :index, :new, :create, :by_login ] before_filter :load_list, :except ...
mit
Mrokkk/objective-kernel
drivers/keyboard.cpp
3927
#include <kernel/cpu/io.hpp> #include <kernel/kernel.hpp> #include "keyboard.hpp" namespace drivers { namespace keyboard { #define CMD_PORT 0x64 #define DATA_PORT 0x60 #define STATUS_PORT 0x64 #define CMD_ENABLE_FIRST 0xae #define CMD_DISABLE_FIRST 0xad #define CMD_DISABLE_SECOND ...
mit
xavier-berthiaume/HotelReservationSystem
src/dw317/lib/creditcard/MasterCard.java
1509
package dw317.lib.creditcard; public class MasterCard extends AbstractCreditCard{ private static final long serializeVersionUID = 42031768871L; public MasterCard(String number) throws IllegalArgumentException { super(cardtype.MASTERCARD, validateNumber(number)); } /** * This method evaluates the two first ...
mit
marianamn/Telerik-Academy-Activities
Homeworks/03. CSharp-Advance/04. Numeral Systems/03.DecimalToHexadecimal/Properties/AssemblyInfo.cs
1422
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("03...
mit
pwistbac/material
src/components/dialog/dialog.js
46663
/** * @ngdoc module * @name material.components.dialog */ angular .module('material.components.dialog', [ 'material.core', 'material.components.backdrop' ]) .directive('mdDialog', MdDialogDirective) .provider('$mdDialog', MdDialogProvider); /** * @ngdoc directive * @name mdDialog * @module materi...
mit
KLIM8D/AsmDiff.NET
AsmDiff.NET/Program.cs
10340
#region LICENSE /* The MIT License (MIT) Copyright (c) 2015 Morten Klim Sørensen See LICENSE.txt for more information */ #endregion using AsmAnalyzer; using AsmAnalyzer.Util; using NDesk.Options; using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.IO.Pipes; using S...
mit
jcenturion/dashboard
app/components/FormTextAreaGroup.react.js
1172
var React = require('react'); var FormControlMixin = require('../mixins/FormControlMixin'); var Codemirror = require('react-codemirror'); var beautify = require('js-beautify').js_beautify; require('codemirror/mode/javascript/javascript'); var FormTextAreaGroup = React.createClass({ propType...
mit
actsmart/actsmart
src/Utils/RegularExpressionHelper.php
2106
<?php namespace actsmart\actsmart\Utils; /** * Trait RegularExpressionHelper * @package actsmart\actsmart\Utils * * Helpful regex patterns, especially for conversations in Slack. */ trait RegularExpressionHelper { /** * Removes all usernames from the string. * * @param $message * @return ...
mit
Bernstern/Spartonics-2141
2019 Austin's Child/src/main/java/frc/robot/Robot.java
3702
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
mit
dazinator/GitVersion
src/GitVersionCore.Tests/VersionConverters/InformationalVersionBuilderTests.cs
3565
using System; using GitVersion; using GitVersionCore.Tests.Helpers; using NUnit.Framework; namespace GitVersionCore.Tests { [TestFixture] public class InformationalVersionBuilderTests : TestBase { [TestCase("feature1", "a682956dc1a2752aa24597a0f5cd939f93614509", "a682956d", 1, 2, 3, "unstable", "1c...
mit
edisond/zhihu-spider
src/constants/zhihu.js
2368
'use strict'; let zhihu = {}; zhihu.url = { home: () => 'https://www.zhihu.com', loginWithPhoneNum: () => 'https://www.zhihu.com/login/phone_num', captcha: () => `https://www.zhihu.com/captcha.gif?type=login&r=${new Date().getTime()}`, userProfile: (userName) => `https://www.zhihu.com/people/${userName}`, u...
mit
D4H/minimodel
lib/index.js
3270
var Model = require('./Model'); var schemaParser = require('./schemaParser'); var inherits = require('inherits'); var merge = require('lodash/merge'); var utils = require('./utils'); var modelsRegistry = require('./modelsRegistry'); var self = module.exports; function defaultArgsMapper() { return arguments; } fu...
mit
freelook/info
api/components/goods/goods.server.route.js
160
'use strict'; module.exports = function (app) { // Api routing var goods = require('./goods.server.controller'); app.route('/goods').get(goods); };
mit
neotracker/neo-blockchain
packages/neo-blockchain-core/src/utils/index.js
670
/* @flow */ import equals from './equals'; import lazy from './lazy'; import lazyAsync from './lazyAsync'; import lazyOrValue from './lazyOrValue'; import utils from './utils'; import weightedAverage from './weightedAverage'; import weightedFilter from './weightedFilter'; export { default as BinaryReader } from './Bin...
mit
karim/adila
database/src/main/java/adila/db/wecct.java
209
// This file is automatically generated. package adila.db; /* * oioo oioo Model 2 * * DEVICE: wecct * MODEL: Model 2 */ final class wecct { public static final String DATA = "oioo|oioo Model 2|"; }
mit
approached/laravel-image-optimizer
tests/CapitalizedTest.php
2250
<?php class CapitalizedTest extends TestCase { public function setUp() { parent::setUp(); $this->originalFile = __DIR__.'/files/capitalized.JPG'; $this->compressedFile = $temp_file = sys_get_temp_dir().'/php_image_optimizer.JPG'; copy($this->originalFile, $this->compressedFile)...
mit
cuckata23/wurfl-data
data/sie_ax72_ver1_sub1.php
125
<?php return array ( 'id' => 'sie_ax72_ver1_sub1', 'fallback' => 'sie_ax72_ver1', 'capabilities' => array ( ), );
mit
Camyul/The-Begining
07. Arrays/05. Maximal increasing sequence/05. Maximal increasing sequence.cs
768
using System; class Program { static void Main() { int n = Convert.ToInt32(Console.ReadLine()); int[] num = new int[n]; for (int i = 0; i < n; i++) { num[i] = Convert.ToInt32(Console.ReadLine()); } int count = 1; int maxCount = 1; for ...
mit
helsingborg-stad/api-event-manager
vendor/giggsey/locale/data/kea.php
6434
<?php /** * This file has been @generated by a phing task from CLDR version 34.0.0. * See [README.md](README.md#generating-data) for more information. * * @internal Please do not require this file directly. * It may change location/format between versions * * Do not modify this file directly! */ return array (...
mit
nazar/MediaCMS
db/migrate/021_drop_moderation_tables.rb
605
class DropModerationTables < ActiveRecord::Migration def self.up drop_table :moderatorships drop_table :monitorships end def self.down create_table "moderatorships", :force => true do |t| t.column "forum_id", :integer t.column "user_id", :integer end add_index "m...
mit
gjeck/design-patterns
strategy/java/src/main/java/AttackWithAxe.java
122
public class AttackWithAxe implements AttackBehavior { public String attack() { return "Axe attack!"; } }
mit
Dentosal/python-sc2
sc2/paths.py
2888
import os from pathlib import Path import platform import re import logging logger = logging.getLogger(__name__) BASEDIR = { "Windows": "C:/Program Files (x86)/StarCraft II", "Darwin": "/Applications/StarCraft II", "Linux": "~/StarCraftII", "WineLinux": "~/.wine/drive_c/Program Files (x86)/StarCraft II...
mit
LordKiRon/fb2converters
epublibrary/Content/Manifest/ManifestItemV2.cs
671
using System; using System.Collections.Generic; using System.Linq; using System.Text; using EPubLibraryContracts; namespace EPubLibrary.Content.Manifest { public class ManifestItemV2 { public string ID { get; set; } public string HRef { get; set; } public EPubCoreMediaType Med...
mit
unisport/thumblr
thumblr/views.py
1143
from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.shortcuts import redirect from django.template.context import Context from django_tables2 import tables from thumblr.models import ImageSize from forms import ImageSizeForm class SizeTable(tables.Table): """...
mit
billroy/jchart
public/js/three.js/examples/js/loaders/VRMLLoader.js
56142
/** * @author Mugen87 / https://github.com/Mugen87 */ /* global chevrotain */ THREE.VRMLLoader = ( function () { // dependency check if ( typeof chevrotain === 'undefined' ) { throw Error( 'THREE.VRMLLoader: External library chevrotain.min.js required.' ); } // class definitions function VRMLLoader( ma...
mit
openforis/collect
collect-core/src/main/java/org/openforis/idm/model/expression/internal/CustomFunction.java
2455
package org.openforis.idm.model.expression.internal; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import org.apache.commons.jxpath.Function; import org.apache.commons.jxpath.ri.compiler.Expression; import org.openforis.idm.metamodel.Node...
mit
nahusha1987/Hackerrank-java-solutions
30-days-of-code/Day 8 Dictionaries and Maps/Solution.java
790
//Complete this code or write your own from scratch import java.util.*; import java.io.*; class Solution{ public static void main(String []argh){ Scanner in = new Scanner(System.in); int n = in.nextInt(); Map<String, Integer> directory = new HashMap<>(); for(int i = 0; i < n; i++){ ...
mit
crossoverJie/springboot-cloud
sbc-user/user/src/main/java/com/crossoverJie/sbcuser/req/UserReq.java
410
package com.crossoverJie.sbcuser.req; import com.crossoverJie.sbcorder.common.req.BaseRequest; /** * Function: * * @author crossoverJie * Date: 2017/6/8 上午12:10 * @since JDK 1.8 */ public class UserReq extends BaseRequest { private long userId ; public long getUserId() { return userId; ...
mit
thomas-vds/thomas-vds.github.io
js/demo1.js
2425
var canvas = document.getElementById("demo1-canvas"); var ctx = canvas.getContext("2d"); var canvasPosition; canvas.width = window.innerWidth-95; canvas.height = 600; canvas.style.border = "5pt solid Indianred"; function getPosition(element){ var xPos = 0; var yPos = 0; while (element) { if (ele...
mit
rememberlenny/remind-to-read
app/models/account.rb
1224
class Account < ActiveRecord::Base has_many :users after_create :generate_uid after_create :send_welcome_emails after_create :make_default_forms def self.find_param(param) find_by! public_uid: param.split('-').first end def to_param "#{public_uid}-#{tile.gsub(/\s/,'-')}" end def make_def...
mit
jntkym/rappers
chainer_model/lyric_server.py
6360
#coding: utf-8 from __future__ import print_function, division from argparse import ArgumentParser import math import sys import time import os sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import utils import numpy as np import cPickle import chainer from chainer import cuda import ch...
mit
ld-test/pop3
lua/pop3/message.lua
25411
--- Implement class to decode mime messages -- @module pop3.message -- local DEFAULT_CP_CONV = require "pop3.charset" .convert local socket_mime = require "mime" -- luasocket local socket_ltn12 = require "ltn12" -- luasocket local CP = DEFAULT_CP_CONV local CRLF = '\r\n' loca...
mit
FagnerMartinsBrack/Servlet-URL-Convention
src/test/java/com/fagnerbrack/servlet/convention/test/unit/FileResourcePathTest.java
2241
package com.fagnerbrack.servlet.convention.test.unit; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.servlet.ServletContext; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.ru...
mit
atealxt/work-workspaces
easyFramework/prj/src/main/java/sshdemo/service/ServiceB.java
265
package sshdemo.service; import org.springframework.stereotype.Service; @Service("ServiceB") public class ServiceB { public void testTransaction() { System.out.println("will auto rollback"); throw new UnsupportedOperationException(); } }
mit
kidshenlong/warpspeed
Project Files/Assets/Scripts/UI/UIPauseMenuDimScript.cs
875
using UnityEngine; using System.Collections; public class UIPauseMenuDimScript : MonoBehaviour, IGameStateListener { private UISprite sprite; private TweenColor tColor; void Awake() { sprite = GetComponent<UISprite>(); tColor = GetComponent<TweenColor>(); } void Start() {...
mit
KHaertner/BAEmslandUsabilityGame
xmlsubmit.php
690
<?php $name = htmlentities($_POST['name']); $score = htmlentities($_POST['score']); $scores = new DOMDocument(); $scores->load("highscore.xml"); $scoresRoot = $scores->getElementsByTagName('highscore')->item(0); $scoresNode = $scores->createElement('player'); // erstellt das komplexe Element 'player' $scoresRoo...
mit
denormal/go-gitconfig
errors.go
186
package gitconfig import ( "github.com/denormal/go-gittools" ) var ( MissingGitError = gittools.MissingGitError MissingWorkingCopyError = gittools.MissingWorkingCopyError )
mit
meet-languages/test
src/app/app.component.ts
314
import { Component, OnInit } from '@angular/core'; import {UserService} from './services/user.service'; import {User} from '../User'; @Component({ selector: 'my-app', template: `<router-outlet></router-outlet>`, providers: [UserService], styleUrls: ['/style/style.css'] }) export class AppComponent { }
mit
mrayy/mrayGStreamerUnity
Plugin/sources/GstNetworkVideoPlayer.cpp
10098
#include "stdafx.h" #include "GstNetworkVideoPlayer.h" #include "CMyUDPSrc.h" #include "CMyUDPSink.h" #include "CMySrc.h" #include "CMySink.h" #include "VideoAppSinkHandler.h" #include "GstPipelineHandler.h" #include <gst/gst.h> #include <gst/app/gstappsink.h> namespace mray { namespace video { class GstNetwor...
mit
RenatoMAlves/AnimaSom-Game
.history/animaSom/js/play_20170606133359.js
1925
var playState = { create: function(){ var background = game.add.sprite(0, 0, 'cidade'); background.width = 1300; background.height = 650; graphics = game.add.graphics(0, 0); groupCidade = game.add.group(); groupCidade.inputEnableChildren = true; var x = 1...
mit
AzureDay/2017-WebSite
TeamSpark.AzureDay.WebSite.Config/Configuration.cs
1922
using System; using System.Configuration; namespace TeamSpark.AzureDay.WebSite.Config { public static class Configuration { #region general public static string Year => "2017"; public static string Host => "https://azureday.net"; #endregion #region cdn public static string CdnEndpointWeb => GetConfi...
mit
Sunikee/Knockback-extravaganza
Knockback Extravaganza/Game/Source/Scenes/MPHostScene.cs
887
using ECS_Engine.Engine.Network; using ECS_Engine.Engine.Scenes; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game.Source.Scenes { class MPHostScene : S...
mit
magnusjt/regtemplate_php
tests/RegTemplateParseTest.php
2571
<?php class TestRegTemplateParse extends PHPUnit_Framework_TestCase{ /** @var \RegTemplate\RegTemplate */ public $regtemplate; public function setUp(){ $this->regtemplate = new \RegTemplate\RegTemplate(); } public function syntaxErrorTemplateProvider(){ return [ ['Em...
mit
dhardtke/assetie
src/Dhardtke/Assetie/AssetieServiceProvider.php
879
<?php namespace Dhardtke\Assetie; use Illuminate\Support\ServiceProvider; class AssetieServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Bootstrap the application events. * * @return void */ public f...
mit
anorudes/redux-easy-boilerplate
app/containers/Posts/index.js
1370
import React, { Component, PropTypes } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { asyncConnect } from 'redux-connect'; import * as actionCreators from 'redux/modules'; import { apiGetPosts } from 'redux/modules/posts/post...
mit