code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
package com.mercangel.LifeTimer;
import android.app.*;
import android.os.*;
import java.util.*;
import android.widget.*;
public class DatePickerFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener {
public DatePickerDialog.OnDateSetListener Listener = null;
@Override
public Dialog on... | gngable/LifeTimer | LifeTimer/app/src/main/java/com/mercangel/LifeTimer/DatePickerFragment.java | Java | mit | 927 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Composite;
use JMS\Serializer\Annotation\ExclusionPol... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/Composite/Lens35efl.php | PHP | mit | 824 |
var SafeObject = require('../../dist/SafeObject.js');
function Human(name) {
SafeObject.call(this);
this.name = name;
}
Human.prototype = Object.create(SafeObject && SafeObject.prototype, {
constructor: {
value: Human,
enumerable: false, writable: true, configurable: true
}
});
Human.INSTANCE_PROPERTI... | Kelgors/SafeObject.js | tests/things/Human.js | JavaScript | mit | 495 |
package br.com.estocandowebjava.bean;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import br.com.estocandowebjava.dao.SetorDAO;
import br.com.estocandowebjava.domain.Setor;
import br.com.estoc... | suelbercosta/EstocandoWebJava | src/br/com/estocandowebjava/bean/SetorBean.java | Java | mit | 2,274 |
package lezchap.ttcore.asm;
import java.io.File;
import java.util.Map;
import lezchap.ttcore.TTCore;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
@MCVersion(value = "1.6.4")
public class FishHookFMLLoadingPlugin implements cpw.mods.fml.relauncher.IFMLLoadingPlugin {
//declare a placehold... | LezChap/Thaumic-Tools | lezchap/ttcore/asm/FishHookFMLLoadingPlugin.java | Java | mit | 995 |
"""
Module for adding stimulations to networks
"""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from numbers import Number
try:
basestrin... | Neurosim-lab/netpyne | netpyne/network/stim.py | Python | mit | 10,067 |
require 'spec_helper'
describe Yapfac::Apache::Scope do
subject { Yapfac::Apache::Scope }
before(:all) do
@scope = Yapfac::Apache::Scope.new("VirtualHost", "*:80")
@scope.add_directive Yapfac::Apache::Directive.parse("DocumentRoot /test")
@scope.add_directive "Order", "allow,deny"
@scope.add_scope... | eiwi1101/yapfac | spec/scope_spec.rb | Ruby | mit | 2,981 |
hackApp.service( 'ApiService', [ '$resource', function ( $resource ) {
return $resource('http://74.208.124.117/www/api/apiIndex.php/', {}, {
login : {
url : 'http://74.208.124.117/www/api/apiIndex.php/login',
method : 'POST',
params : {
},
transformR... | vilazae/ngcs-hack | www/app/common/services/apiServices.js | JavaScript | mit | 3,398 |
<?php
namespace Anax\Request;
use PHPUnit\Framework\TestCase;
/**
* Fail testing of Request.
*/
class RequestFailTest extends TestCase
{
/**
* Properties
*/
private $request;
/**
* Set up a request object
*
* @return void
*/
public function setUp() : void
{
... | canax/request | test/Request/RequestFailTest.php | PHP | mit | 634 |
import src.executor as executor
import src.dqn as dqn
import src.game_data as game_data
import src.graph as graph
import src.environment as environment
import numpy as np
import unittest
class TestIntegration(unittest.TestCase):
def setUp(self):
self.executor = executor.Executor()
self.dqn = dqn.... | escoboard/dqn | test/test_integration.py | Python | mit | 2,279 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
// アセンブリに関連付けられている情報を変更するには、
// これらの属性値を変更してください。
[assembly: AssemblyTitle("C31Q3")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: Assembly... | autumn009/TanoCSharpSamples | Chap31/C31Q3/C31Q3/Properties/AssemblyInfo.cs | C# | mit | 1,656 |
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import * as CCP4 from '../ccp4/parser';
function createCcp4Data() {
const data = new Uint8Array(4 * 256 + 6);
const dv = new DataView(data.buffer);
... | molstar/molstar | src/mol-io/reader/_spec/ccp4.spec.ts | TypeScript | mit | 1,173 |
require 'rails/generators/named_base'
module ActiveRedis
module Generators
class Base < ::Rails::Generators::NamedBase
def self.source_root
@_rspec_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'active_redis', generator_name, 'templates'))
end
end
end
end | sergio1990/active_redis | lib/generators/active_redis.rb | Ruby | mit | 311 |
/*
_ _ _
__ _(_)___(_) ___ _ __ | |__ _ __ _ __
\ \ / / / __| |/ _ \| '_ \ | '_ \| '_ \| '_ \
\ V /| \__ \ | (_) | | | |_| | | | |_) | |_) |
\_/ |_|___/_|\___/|_| |_(_)_| |_| .__/| .__/
|_| |_|
*/
/* Copyright (c) 2014 AVBo... | avbotz/eva-public | src/vision.hpp | C++ | mit | 2,848 |
var immediateAuth = false;
var Neutron = {
gdrive_api_loaded: false,
authorized: false,
authorizer: null,
OAuth: null,
UserId: null,
parent: null,
origin: null,
id: null,
init_token: null,
share: null
};
Neutron.auth_init = function (setkey, force_slow) {
if (setkey) {
gapi.client.setApiKey(G... | pizzapanther/Super-Neutron-Drive | server/ndrive/static/js/neutron.js | JavaScript | mit | 5,469 |
require 'spec_helper'
describe ContextPresenter do
context 'context_summary' do
let(:graph) { TestFactories::Graph.full }
let(:context) { graph.to_a[0..1] }
let(:context_presenter) { described_class.new(context: context) }
it '#context_summary returns the context_summuary' do
context_presente... | petervandenabeele/dbd_data_engine | spec/presenters/context_presenter/context_summary_spec.rb | Ruby | mit | 556 |
using System.Management.Automation;
namespace Codeless.SharePoint.PowerShell {
[Cmdlet(VerbsCommon.Get, "SPModelManager")]
public class CmdletGetSPModelManager : CmdletBaseSPModel {
protected override void ProcessRecord() {
base.ProcessRecord();
WriteObject(this.Manager);
}
}
}
| misonou/codeless | src/Codeless.SharePoint.PowerShell/CmdletGetSPModelManager.cs | C# | mit | 309 |
import Form from './Form';
import CheckboxList from './CheckboxList';
import RadioList from './RadioList';
import Select from './Select';
import TextInput from './TextInput';
Form.CheckboxList = CheckboxList;
Form.RadioList = RadioList;
Form.Select = Select;
Form.TextInput = TextInput;
export default Form;
| e1-bsd/omni-common-ui | src/components/Form/index.js | JavaScript | mit | 310 |
import { COLUMN_NAMES, COLUMNS } from './table.constant'
export function format(columnName, contents) {
switch (columnName) {
case COLUMN_NAMES.NUMBER:
return contents.slice(0, 2) + '-' + contents.slice(2)
default:
return contents
}
}
export function generateComparisonFunction(sorti... | gchatterjee/cit-gened-finder | ui/src/components/table/table.action.js | JavaScript | mit | 448 |
/**
*
*
*
*
*/
import {Component} from 'angular2/core';
import {ROUTER_DIRECTIVES} from 'angular2/router';
import {DrupalService} from './drupal.service';
import 'rxjs/Rx';
@Component({
selector: 'app-home',
templateUrl: './views/home.html',
providers: [DrupalService],
directives: [ROUTER_DIR... | ndavison/drupalauthor | app/home.component.ts | TypeScript | mit | 370 |
<?php
namespace AmsterdamPHP\JobBundle\Form;
use AmsterdamPHP\JobBundle\Form\ChoiceList\ContractType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class JobType extends AbstractType
{
public function buil... | AmsterdamPHP/job-board | src/AmsterdamPHP/JobBundle/Form/JobType.php | PHP | mit | 2,149 |
namespace OmniXaml.Typing
{
using System;
using System.Collections.Generic;
using System.Reflection;
using Glass.Core;
public class MetadataProvider
{
private readonly IDictionary<string, AutoKeyDictionary<Type, object>> lookupDictionaries = new Dictionary<string, AutoKeyDictionary<Typ... | Perspex/OmniXAML | Source/OmniXaml/Typing/MetadataProvider.cs | C# | mit | 2,302 |
/****************************************************************************
** Copyright (c) quickfixengine.org All rights reserved.
**
** This file is part of the QuickFIX FIX Engine
**
** This file may be distributed under the terms of the quickfixengine.org
** license as defined by quickfixengine.org and appearin... | SoftFx/FDK | FDK/QuickFix/Log.cpp | C++ | mit | 2,071 |
# -*- coding: utf-8 -*-
'''
canteen model tests
~~~~~~~~~~~~~~~~~~~
tests canteen's data modelling layer.
:author: Sam Gammon <sam@keen.io>
:copyright: (c) Keen IO, 2013
:license: This software makes use of the MIT Open Source License.
A copy of this license is included as ``LICENSE.md`` in
... | mindis/canteen | canteen_tests/test_model/__init__.py | Python | mit | 1,361 |
// --------------------------------------------
// Copyright KAPSARC. Open source MIT License.
// --------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2015 King Abdullah Petroleum Studies and Research Center
//
// Permission is hereby granted, free of charge, to any person obtaining... | ambah/KTAB | examples/comsel/src/democomsel.cpp | C++ | mit | 13,110 |
<?php
/**
* Copyright (c) 2004, 2011 Martin Takáč
*
* This program 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 2, or (at your option)
* any later version.
*
* This program is distrib... | tacoberu/phing-tasks | source/tests/tasks/taco/hg/HgTagTaskTest.php | PHP | mit | 3,849 |
/*
* This file is part of Flow Engine, licensed under the MIT License (MIT).
*
* Copyright (c) 2013 Spout LLC <http://www.spout.org/>
*
* 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 ... | flow/engine | src/main/java/com/flowpowered/engine/network/handler/FlowMessageHandler.java | Java | mit | 2,915 |
package com.joao.pedro.nardari.locationstrategysampleproject;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toas... | joaopedronardari/LocationStrategySampleProject | app/src/main/java/com/joao/pedro/nardari/locationstrategysampleproject/MainActivity.java | Java | mit | 1,526 |
namespace InControl
{
using System;
using System.IO;
using UnityEngine;
public class MouseBindingSource : BindingSource
{
public Mouse Control { get; protected set; }
public static float ScaleX = 0.05f;
public static float ScaleY = 0.05f;
public static float ScaleZ = 0.05f;
internal MouseBindingSour... | Hekaton/SolarWind | Assets/InControl/Source/Binding/MouseBindingSource.cs | C# | mit | 3,202 |
package com.github.kennedyoliveira.asteriskjava.khomp.manager.event;
import org.asteriskjava.manager.event.ManagerEvent;
/**
* Reports the detection of a {@code Collect Call}.
*
* @author kennedy
*/
public class CollectCallEvent extends ManagerEvent {
private String channel;
public CollectCallEvent(Object s... | kennedyoliveira/asterisk-java-khomp | src/main/java/com/github/kennedyoliveira/asteriskjava/khomp/manager/event/CollectCallEvent.java | Java | mit | 807 |
/**
* @author Gabriel Dodan , gabriel.dodan@gmail.com
* @copyright Copyright (c) 2012 Gabriel Dodan
* @license The MIT License http://www.opensource.org/licenses/mit-license.php , see LICENSE.txt file also
*/
/** @DEPENDENCIES = ["FORMS_LIB/controls/ListControl.js"]; */
/* wrapper for <select> tag */
Pd.Forms.Sele... | gabrieldodan/php-dancer | system/libraries/Forms/controls/Select.js | JavaScript | mit | 2,461 |
using AppCampus.Domain.Interfaces.Repositories;
using System;
using System.ComponentModel.DataAnnotations;
namespace AppCampus.PortalApi.Validation.ValidationAttributes
{
public sealed class UniqueCompanyIdAttribute : ValidationAttribute
{
public ICompanyRepository CompanyRepository { get; set; }
... | hendrikdelarey/appcampus | AppCampus.PortalApi/Validation/ValidationAttributes/UniqueCompanyIdAttribute.cs | C# | mit | 727 |
'use strict';
(function(module) {
const repos = {};
repos.all = [];
repos.requestRepos = function(callback) {
$.get('/github/user/repos')
.then(data => repos.all = data, err => console.error(err))
.then(callback(repos));
};
repos.with = attr => repos.all.filter(repo => repo[attr]);
module.... | Jamesbillard12/jamesPortfolio | public/js/repo.js | JavaScript | mit | 347 |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameScene : MonoBehaviour {
void Start () {
GameController gameController = GameController.Instance;
ItemSpawnManager itemSpawnManager = ItemSpawnManager.Instance;
RespawnManager respawnManager = Resp... | sasvdw/LD37 | Unity/LD37/Assets/Scripts/Scenes/GameScene.cs | C# | mit | 411 |
import { Injectable } from '@angular/core';
import { Http, Headers, Response, RequestOptions } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { AuthenticationService, AlertService } from '../services';
import { DttType } from '../models';
import 'rxjs/add/operator/map'
@Injectable()
export ... | manuelnelson/patient-pal | src/client/services/dtt-type.service.ts | TypeScript | mit | 3,176 |
<?php
namespace Tangent\Bundle\BookTrackerBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('TangentBookTrackerBundle:Default:index.html.twig', array('name' => $name... | gump/book-tracker | src/Tangent/Bundle/BookTrackerBundle/Controller/DefaultController.php | PHP | mit | 332 |
package com.grapapp.grapapp.adapter;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextVi... | Hz-Ryze/GrapApp | app/src/main/java/com/grapapp/grapapp/adapter/TupianTitleAdapter.java | Java | mit | 2,351 |
require_relative 'gluey/base/version'
require_relative 'gluey/base/exceptions'
# environments
require_relative 'gluey/base/environment'
require_relative 'gluey/workshop/workshop'
require_relative 'gluey/warehouse/warehouse'
# addons
require_relative 'gluey/base/rack_mountable'
| doooby/gluey | lib/gluey.rb | Ruby | mit | 281 |
<?php
namespace Somnambulist\Tenancy\Tests\Stubs\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->app->singleton('em', function... | dave-redfern/laravel-doctrine-tenancy | tests/Stubs/Providers/AppServiceProvider.php | PHP | mit | 644 |
<?php
namespace SiteBundle\Repository;
/**
* TagRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class UserGroupRepository extends \Doctrine\ORM\EntityRepository
{
}
| firestorm23/gyrolab-ste | src/SiteBundle/Repository/UserGroupRepository.php | PHP | mit | 236 |
<table >
<?php
$rq = "SELECT acquisto,utente,colloquio FROM acquisti_aperti join utenti using(utente)";
$trs = $db -> query($rq) -> fetchAll(PDO::FETCH_ASSOC);
?>
<?php
foreach ($trs as $k => $q) {
echo "<td style=\"width:1em\" >
<form name=input action=\"cassa.php\" method=POST>
<input type = hidden... | paolino/emporio | selezioneacquisto.php | PHP | mit | 702 |
package com.swallow.core.dom;
import org.w3c.dom.Element;
/**
* Swallow 2017-03-10 15:33
*/
public interface ElementUtil {
static String getAttributeValue(Element element, String name, String defaultValue) {
String value = element.getAttribute(name);
if (!(value == null || "".equals(value))) {
... | zhuzaixiaoshulin/swallow | src/main/java/com/swallow/core/dom/ElementUtil.java | Java | mit | 676 |
using System.Collections.Generic;
namespace Magnesium.OpenGL.Internals
{
public class GLNextPipelineLayout : IGLPipelineLayout
{
public GLUniformBinding[] Bindings { get; private set; }
public int NoOfBindingPoints { get; private set; }
public IDictionary<int, GLBindingPointOffsetInfo> Ranges { get; private s... | tgsstdio/Mg | Magnesium.OpenGL/DescriptorSets/GLNextPipelineLayout.cs | C# | mit | 4,510 |
'use strict'
const sprockets = require( __dirname + '/../../src/sprockets' )
const mkdir = require( __dirname + '/../../utils/mkdir' )
const fs = require( 'fs' )
let input = './src/index.html'
let output = './build/index.html'
sprockets.add( 'index', ( done ) => {
mkdir( output )
fs.createReadStream( input )
... | vladfilipro/sprockets | tasks/compile/index.js | JavaScript | mit | 417 |
/**
*
*/
package net.caiban.auth.dashboard.dao.bs.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import net.caiban.auth.dashboard.dao.BaseDao;
import net.caiban.auth.dashboard.dao.bs.BsDao;
import net.caiban.auth.dashboard.domain.bs.Bs;
import net.ca... | yysoft/yy-auth | auth-dashboard/src/main/java/net/caiban/auth/dashboard/dao/bs/impl/BsDaoImpl.java | Java | mit | 8,217 |
package demo.rest;
import demo.domain.RunningInfo;
import demo.service.RunningInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.HttpStatus;
import org.springframewo... | zjxjasper/running-info-service | src/main/java/demo/rest/RunningInfoRestController.java | Java | mit | 1,573 |
import {Injectable, EventEmitter, Inject, ElementRef, Renderer, Renderer2} from '@angular/core';
import { DOCUMENT } from '@angular/platform-browser';
import { Router } from '@angular/router';
import { MetaModel } from './meta.model';
export class MetaService {
public url: EventEmitter<string> = new EventEmitter<s... | schmist/dimensions-builder | src/app/meta/meta.service.ts | TypeScript | mit | 3,420 |
const create = require('./create')
const geom2 = require('../geometry/geom2')
const fromPoints = points => {
const geometry = geom2.fromPoints(points)
const newShape = create()
newShape.geometry = geometry
return newShape
}
module.exports = fromPoints
| jscad/csg.js | src/core/shape2/fromPoints.js | JavaScript | mit | 262 |
package com.plexobject.rx.util;
import java.util.Spliterator;
import java.util.function.Consumer;
public class ArraySpliterator<T> implements Spliterator<T> {
private final Object[] array;
private int origin; // current index, advanced on split or traversal
private final int fence; // one past the greates... | bhatti/RxJava8 | src/test/java/com/plexobject/rx/util/ArraySpliterator.java | Java | mit | 1,567 |
/****************************************************************************
Copyright (c) 2010-2011 cocos2d-x.org
Copyright (c) 2008-2010 Ricardo Quesada
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "So... | DmitriyKirakosyan/testNinjaX | libs/cocos2dx/layers_scenes_transitions_nodes/CCScene.cpp | C++ | mit | 2,012 |
<?php
namespace Fallen\FallenBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class ContactType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('email', 'email', array('attr'=>array('... | laureenw/Projet-Symfony2 | src/Fallen/FallenBundle/Form/ContactType.php | PHP | mit | 681 |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
// source: https://forum.unity3d.com/threads/a-free-simple-smooth-mouselook.73117/#post-3101292
// added: lockCursor
namespace UnityLibrary
{
public class SmoothMouseLookAveraged : MonoBehaviour
{
[Header("Info")]
p... | UnityCommunity/UnityLibrary | Assets/Scripts/Camera/SmoothMouseLookAveraged.cs | C# | mit | 3,365 |
<?php declare(strict_types=1);
namespace WyriHaximus\Travis\Resource\Sync;
use ApiClients\Foundation\Hydrator\CommandBus\Command\BuildAsyncFromSyncCommand;
use Rx\React\Promise;
use WyriHaximus\Travis\Resource\Repository as BaseRepository;
use WyriHaximus\Travis\Resource\RepositoryInterface;
use WyriHaximus\Travis\Re... | WyriHaximus/php-travis-client | src/Resource/Sync/Repository.php | PHP | mit | 5,196 |
namespace EnergyTrading.MDM.Test.Services
{
using System.Collections.Generic;
using NUnit.Framework;
using Moq;
using EnergyTrading.Data;
using EnergyTrading.Mapping;
using EnergyTrading.Search;
using EnergyTrading.Validation;
using EnergyTrading.MDM.Services;
[TestFixture]
p... | RWE-Nexus/EnergyTrading-MDM-Sample | Code/Service/MDM.UnitTest.Sample/Services/SourceSystemCreateFixture.cs | C# | mit | 2,997 |
////////////////////////////////////////////////////////////////////////////////
//
// keytreeutil.h
//
// Copyright (c) 2013-2014 Tim Lee
//
// 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 Softwar... | stequald/KeyTree-qt | keytree-qt/keytreeutil.cpp | C++ | mit | 5,198 |
'use strict';
var users = require('../../app/controllers/users.server.controller'),
streams = require('../../app/controllers/streams.server.controller');
module.exports = function(app){
app.route('/api/streams')
.get(streams.list)
.post(users.requiresLogin, streams.create);
app.... | plonsker/onetwo | app/routes/streams.server.routes.js | JavaScript | mit | 599 |
import Reflux from 'reflux';
//TODO: recheck the flow of these actions 'cause it doesn't seem to be OK
export default Reflux.createActions([
'eventPartsReady',
'eventPartsUpdate'
]);
| fk1blow/repeak | src/client/actions/event-part-actions.js | JavaScript | mit | 188 |
import { ConfigParams } from './ConfigParams';
/**
* Interface that can be implemented by classes that need to read ConfigParams from a certain
* source. Contains the abstract method {@link #readConfig}, which, upon implementation, should contain
* the logic necessary for reading and parsing ConfigParams.
*... | pip-services/pip-services-commons-node | src/config/IConfigReader.ts | TypeScript | mit | 1,008 |
<?php
namespace ProductBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class SausHotType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
... | Kelevari/webshop-opdracht | src/ProductBundle/Form/SausHotType.php | PHP | mit | 884 |
// ReSharper disable All
using System;
using System.Configuration;
using System.Diagnostics;
using System.Net.Http;
using System.Runtime.Caching;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Dispatcher;
using System.Web.Http.Hosting;
using System.Web.Http.Routing;
using Xunit;
namesp... | nubiancc/frapid | src/Frapid.Web/Areas/Frapid.Config/WebApi/Tests/AppRouteTests.cs | C# | mit | 11,134 |
/**
* @license Angular v5.2.2
* (c) 2010-2018 Google, Inc. https://angular.io/
* License: MIT
*/
import { EventEmitter, Injectable } from '@angular/core';
import { __extends } from 'tslib';
import { LocationStrategy } from '@angular/common';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked b... | RJ15/FixIt | badminton/node_modules/@angular/common/esm5/testing.js | JavaScript | mit | 11,979 |
package de.helwich.junit;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Annotation used to configure jasmine test runner.
*
* @author Hendrik Helwich
*/
@Target(TYP... | dddpaul/junit-jasmine-runner | src/main/java/de/helwich/junit/JasmineTest.java | Java | mit | 651 |
import javafx.application.Application;
// Scene
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
// Stage
import javafx.stage.Stage;
public class ChessApp extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public voi... | tlee753/chess-visualizer | src/ChessApp.java | Java | mit | 574 |
function router(handle, pathname, res, postdata) {
console.log('into the router request for->'+pathname);
// var newpathname = pathname;
// var newpostdata = postdata;
// console.log(pathname.lastIndexOf('.'));
var extendNM = pathname.substr(pathname.lastIndexOf('.')+1);
// console.log(extendNM);
// var cssFileR... | noprettyboy/my_portal_page | serverjs/router.js | JavaScript | mit | 744 |
require 'fog/core/model'
module Fog
module Brightbox
class Compute
class LoadBalancer < Fog::Model
identity :id
attribute :url
attribute :name
attribute :status
attribute :resource_type
attribute :nodes
attribute :policy
attribute :healthc... | jbenjore/JPs-love-project | annotate-models/ruby/1.9.1/gems/fog-0.8.1/lib/fog/compute/models/brightbox/load_balancer.rb | Ruby | mit | 1,025 |
ENV["RAILS_ENV"] ||= 'test'
require 'simplecov'
SimpleCov.start do
add_filter '/spec'
end
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'capybara/rails'
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
RSpec.configure do |config|
config.fixture_pa... | 7maples/backchannel-questions | spec/spec_helper.rb | Ruby | mit | 803 |
package com.eway.payment.sdk.android.entities;
import com.eway.payment.sdk.android.beans.CodeDetail;
import java.util.ArrayList;
public class CodeLookupResponse {
private String Language;
private ArrayList<CodeDetail> CodeDetails;
private String Errors;
public CodeLookupResponse(String errors, Strin... | eWAYPayment/eway-rapid-android | sdk/src/main/java/com/eway/payment/sdk/android/entities/CodeLookupResponse.java | Java | mit | 991 |
from bibliopixel import *
from bibliopixel.animation import BaseAnimation, AnimationQueue, OffAnim
from util import *
from static_objects import *
import loader
import config
import status
import traceback
import globals
class BPManager:
def __init__(self, off_timeout):
self.driver = []
... | ManiacalLabs/PixelWeb | pixelweb/bpmanager.py | Python | mit | 11,336 |
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class TModel(models.Model):
name = models.CharField(max_length=200)
test = models.OneToOneField(
'self',
null=True,
blank=True,
related_name='related_test_mo... | shubhamdipt/django-autocomplete-light | test_project/select2_one_to_one/models.py | Python | mit | 647 |
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("_1... | dobri19/OldRepos | Telerik/01-Programming-with-C#/01-C#-Fundamentals-2016-October/01-Intro-Programming/16.LongSequence/Properties/AssemblyInfo.cs | C# | mit | 1,426 |
package main
import (
"flag"
"runtime"
"testing"
"time"
)
var (
serverPort = flag.String("port", "8080", "port to use for benchmarks")
clientType = flag.String("client-type", "fasthttp",
"client to use in benchmarks")
)
var (
longDuration = 9001 * time.Hour
highRate = uint64(1000000)
)
func BenchmarkB... | codesenberg/bombardier | bombardier_performance_test.go | GO | mit | 1,610 |
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("Wo... | sharpninja/WorldBankBBS | WorldBankBBS.WCF.Data/Properties/AssemblyInfo.cs | C# | mit | 1,418 |
"use strict"
class Compress extends R.Compressor{
/**
*
*
*/
run(R,compressor){
this.compressBackbone(true);
}
}
module.exports=Compress; | williamamed/Raptor.js | @raptorjs-development/raptor-panel/Compressor/Compress.js | JavaScript | mit | 154 |
# requires all of the integrators at the end of the file
class Metriculator
@@integrations = {}
@parsed, @db_stored, @finished = false, false, false
# integration points are:
@@names = [:on_db_store, :on_finish, :on_metric_parse]
@@names.each {|name| @@integrations[name] = [] }
class << self
## Takes ... | princelab/metriculator | lib/integrators.rb | Ruby | mit | 1,530 |
var parserx = require('parse-regexp')
var EventEmitter = require('events').EventEmitter
var MuxDemux = require('mux-demux')
var remember = require('remember')
var idle = require('idle')
var timestamp = require('monotonic-timestamp')
var from = require('from')
var sync = require(... | dominictarr/rumours_ | index.js | JavaScript | mit | 6,007 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlackHole.Entity
{
public class UserInfo
{
}
public class BasicUserInfo
{
/// <summary>唯一识别码
///
/// </summary>
public string UserGUID { ... | 1024home/BlackHole | BlackHole/BlackHole.Entity/UserInfo.cs | C# | mit | 711 |
'use strict';
var xpath = require('xpath');
var dom = require('xmldom').DOMParser;
module.exports = function (grunt) {
var xml = grunt.file.read(__dirname + '/../pom.xml');
var doc = new dom().parseFromString(xml);
var select = xpath.useNamespaces({"xmlns": "http://maven.apache.org/POM/4.0.0"});
var... | bheiskell/HungerRain | changelog/Gruntfile.js | JavaScript | mit | 800 |
/*
The MIT License (MIT)
Copyright (c) 2013-2015 winlin
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, copy, modify, merge, p... | Akagi201/srs-librtmp | src/protocol/srs_rtmp_io.hpp | C++ | mit | 5,514 |
using Newtonsoft.Json;
using System.Collections.Generic;
namespace WizBot.Common.Pokemon
{
public class SearchPokemon
{
public class GenderRatioClass
{
public float M { get; set; }
public float F { get; set; }
}
public class BaseStatsClass
{
... | Wizkiller96/WizBot | src/WizBot/Common/Pokemon/SearchPokemon.cs | C# | mit | 1,319 |
package com.tomogle.iemclient.requests;
/**
* Represents a type of request in the IEM API.
* According to the IEM API docs, it represents the 'name of the API file in question'.
*
* We ignore the Java uppercase enum naming convention for ease of use.
*/
public enum RequestType {
subscribers,
authentication,
... | tom-ogle/InterspireEmailMarketerClient | src/main/java/com/tomogle/iemclient/requests/RequestType.java | Java | mit | 338 |
import Class from '../mixin/class';
import Media from '../mixin/media';
import {$, addClass, after, Animation, assign, attr, css, fastdom, hasClass, isNumeric, isString, isVisible, noop, offset, offsetPosition, query, remove, removeClass, replaceClass, scrollTop, toFloat, toggleClass, toPx, trigger, within} from 'uikit... | RadialDevGroup/rails-uikit-sass | vendor/assets/js/core/sticky.js | JavaScript | mit | 8,774 |
const fs = require('fs')
const getLanguages = require('./private/getLanguages')
const checkExistance = require('./private/checkExistance')
const getThisDir = require('./private/getThisDir')
const thisDir = getThisDir(module.parent.filename)
const configDir = thisDir + '/i18n-tracker.config.json'
const config = JSON.p... | kesupile/I18n-tracker | index.js | JavaScript | mit | 953 |
// app/models/article.js
var Mongoose = require('mongoose');
// define article schema
var articleSchema = Mongoose.Schema({
url: {
type: String,
required: true
},
tags: [String],
userId: {
type: String,
required: true
},
meta: {
title: String,
author: String,
readTime: String,
summary: String,
... | isaacev/Ink | app/models/article.js | JavaScript | mit | 615 |
#include "ReadAlignChunk.h"
#include "Parameters.h"
#include "OutSJ.h"
#include <limits.h>
#include "ErrorWarning.h"
int compareUint(const void* i1, const void* i2) {//compare uint arrays
uint s1=*( (uint*)i1 );
uint s2=*( (uint*)i2 );
if (s1>s2) {
return 1;
} else if (s1<s2) {
return ... | alexdobin/STAR | source/outputSJ.cpp | C++ | mit | 7,239 |
package sc_zap
import (
"crypto/sha256"
"encoding/base32"
"errors"
"github.com/watermint/toolbox/essentials/log/esl"
"github.com/watermint/toolbox/infra/app"
"github.com/watermint/toolbox/infra/control/app_control"
"github.com/watermint/toolbox/infra/control/app_resource"
"github.com/watermint/toolbox/infra/se... | watermint/toolbox | infra/security/sc_zap/zap.go | GO | mit | 1,823 |
using System;
using Xamarin.Forms;
namespace people
{
public partial class NewItemPage : ContentPage
{
public Item Item { get; set; }
public NewItemPage()
{
InitializeComponent();
Item = new Item
{
Text = "Item name",
... | pjsamuel3/xPlatformDotNet | mac_app/people/Views/NewItemPage.xaml.cs | C# | mit | 624 |
using Abstraction;
using System;
namespace CohesionAndCoupling
{
public static class PointUtils
{
public static double CalcDistance2D(Point3D first, Point3D second)
{
double distanceX = (second.X - first.X) * (second.X - first.X);
double distanceY = (second.Y - first.Y)... | dobri19/OldRepos | Telerik/01-Programming-with-C#/03-HighQualityCode01-2016-August/08-HighClasses/Cohesion-and-Coupling/PointUtils.cs | C# | mit | 642 |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... | bionikspoon/playing-with-laravel-5---getting-up-to-speed | app/Http/routes.php | PHP | mit | 768 |
module Fontello
module Rails
class Engine < ::Rails::Engine
end
end
end
| blackxored/fontello-rails | lib/fontello-rails/engine.rb | Ruby | mit | 84 |
const webModel = require('../webModel');
const webModelFunctions = require('../webModelFunctions');
const robotModel = require('../robotModel');
const getCmdVelIdleTime = require('../getCmdVelIdleTime');
const WayPoints = require('../WayPoints.js');
const wayPointEditor = new WayPoints();
function pickRandomWaypoint()... | chrisl8/ArloBot | node/behaviors/pickRandomWaypoint.js | JavaScript | mit | 2,341 |
/**
* Created by zhibo on 15-8-20.
*/
/*
* 上传图片插件改写
* @author:
* @data: 2013年2月17日
* @version: 1.0
* @rely: jQuery
*/
$(function(){
/*
* 参数说明
* baseUrl: 【字符串】表情路径的基地址
*/
var lee_pic = {
uploadTotal : 0,
uploadLimit : 8, //最多传多少张
uploadify:fu... | zl0314/ruida | static/js/lee_pic.js | JavaScript | mit | 6,916 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Cart extends CI_Controller {
private $data;
public function __construct()
{
parent::__construct();
$this->load->library('cart');
$this->load->model("cart_model");
$this->load->model("product_model");
}
public function in... | sygcom/diesel_2016 | application/controllers/Cart_2016_09_28.php | PHP | mit | 17,322 |
module Fintech
class Stat
attr_accessor :date, :previous, :rate, :installment, :payments, :fees_assessed
def initialize(attrs = {})
attrs.each { |k, v| send("#{k}=", v) if respond_to?("#{k}=") }
end
def scheduled_payment_cents
@scheduled_payment_cents ||= if payments.any?
[paymen... | dvanderbeek/fintech | lib/fintech/stat.rb | Ruby | mit | 3,844 |
<?php
namespace Numa\DOAApiBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('NumaDOAApiBundle:Default:index.html.twig', array('name' => $name));
}
}
| genjerator13/doa | src/Numa/DOAApiBundle/Controller/DefaultController.php | PHP | mit | 303 |
import pytest
from aiohttp_json_api.common import JSONAPI_CONTENT_TYPE
class TestDocumentStructure:
"""Document Structure"""
@pytest.mark.parametrize(
'resource_type',
('authors', 'books', 'chapters', 'photos', 'stores')
)
async def test_response_by_json_schema(self, fantasy_client,
... | vovanbo/aiohttp_json_api | tests/integration/test_document_structure.py | Python | mit | 587 |
from collections import defaultdict
from collections import namedtuple
from itertools import izip
from enum import Enum
from tilequeue.process import Source
def namedtuple_with_defaults(name, props, defaults):
t = namedtuple(name, props)
t.__new__.__defaults__ = defaults
return t
class LayerInfo(named... | tilezen/tilequeue | tilequeue/query/common.py | Python | mit | 15,803 |
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
module AliasMethodChainSpec # namespacing
describe "alias method chain" do
module ModifiedAliasMethodChain
# From Tammo Freese's patch:
# https://rails.lighthouseapp.com/projects/8994/tickets/285-alias_method_chain-limits-exte... | jpartlow/graph_mediator | spec/investigation/alias_method_chain_spec.rb | Ruby | mit | 4,078 |
'use strict';
$(function() {
$('a.page-scroll').bind('click', function(event) {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1750, 'easeInOutSine');
event.preventDefault();
});
});
| mskalandunas/parcel | app/js/lib/smooth_scroll.js | JavaScript | mit | 270 |
// @flow
import React, { Component } from 'react'
import Carousel, { Modal, ModalGateway } from '../../../../src/components'
import { videos } from './data'
import { Poster, Posters } from './Poster'
import View from './View'
import { Code, Heading } from '../../components'
type Props = {}
type State = { currentModa... | jossmac/react-images | docs/pages/CustomComponents/AlternativeMedia/index.js | JavaScript | mit | 1,796 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.maizegenetics.util;
import net.maizegenetics.dna.snp.GenotypeTable;
/**
*
* @author qs24
*/
public class VCFUtil {
// variables for calculating OS and PL for VCF, might not be in the cor... | yzhnasa/TASSEL-iRods | src/net/maizegenetics/util/VCFUtil.java | Java | mit | 4,777 |