repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
IngbertPalm/project.dike
src/Dike.Core/UI/Inputs/LocalizableComboboxItem.cs
1523
namespace Dike.Core.UI.Inputs { using System; /// <summary> /// Represents a localizable ComboBox item. /// </summary> /// <seealso cref="Dike.Core.UI.Inputs.ILocalizableComboboxItem" /> [Serializable] public class LocalizableComboboxItem : ILocalizableComboboxItem { #r...
mit
roganmelo/slush-feathers
templates/base/connection/sequelize.js
743
import Sequelize from 'sequelize'; export default function() { const app = this; const connectionString = app.get('<%= database %>'); const sequelize = new Sequelize(connectionString, { dialect: '<%= database %>', logging: false, define: { freezeTableName: true } }); const oldSetup = ap...
mit
HackPack/HackUnit
src/Assertion/KeyedContainerAssertion.php
6159
<?hh // strict namespace HackPack\HackUnit\Assertion; use HackPack\HackUnit\Event\Failure; use HackPack\HackUnit\Event\FailureEmitter; use HackPack\HackUnit\Event\FailureListener; use HackPack\HackUnit\Event\SuccessEmitter; use HackPack\HackUnit\Event\SuccessListener; use HackPack\HackUnit\Util\Trace; use HackPack\...
mit
cuckata23/wurfl-data
data/mot_mb525_ver1_sub_funnyua.php
149
<?php return array ( 'id' => 'mot_mb525_ver1_sub_funnyua', 'fallback' => 'mot_mb525_ver1_sub_android221', 'capabilities' => array ( ), );
mit
DailyActie/Surrogate-Model
01-codes/numpy-master/numpy/matrixlib/tests/test_numeric.py
603
from __future__ import division, absolute_import, print_function import numpy as np from numpy.testing import assert_equal, TestCase, run_module_suite class TestDot(TestCase): def test_matscalar(self): b1 = np.matrix(np.ones((3, 3), dtype=complex)) assert_equal(b1 * 1.0, b1) def test_diagonal()...
mit
smoogipooo/osu
osu.Game/Graphics/UserInterface/ScreenBreadcrumbControl.cs
1547
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Linq; using osu.Framework.Extensions.IEnumerableExtensions; using osu.Framework.Screens; namespace osu.Game.Graphics.UserInterface { /// <summary> ...
mit
omise/omise-dotnet
Omise/Resources/CustomerSpecificCardResource.cs
441
using Omise.Models; namespace Omise.Resources { public class CustomerSpecificCardResource : BaseResource<Card>, IListable<Card>, IListRetrievable<Card>, IUpdatable<Card, UpdateCardRequest>, IDestroyable<Card> { public CustomerSpecificCardResource(IRequester requester, string cu...
mit
LuchunPen/FastHashCollection
FastCollection/FastDictionaryM2.cs
13680
/* Copyright (c) Luchunpen (bwolf88). All rights reserved. Date: 04.03.2016 6:42:37 */ using System; using System.Collections; using System.Collections.Generic; namespace Nano3.Collection { public class FastDictionaryM2<TKey, TValue> : IDictionary<TKey, TValue> where TKey : struct, IEquatable<TKey> ...
mit
ishisaka/nodeintellisense
nodelib/buffer.js
24573
var Buffer = function (args) { /// <summary> /// Allocates a new buffer, using subject as a size of octets or using it as an array of octets. /// </summary> /// <param name="subject">Number, array, or string.</param> /// <param name="encoding" optional="true" default="'utf-8'"></param> //...
mit
igrigorik/vimgolf
spec/models/challenge_spec.rb
3480
require 'spec_helper' describe Challenge do describe 'Validations' do it { is_expected.to validate_presence_of(:title) } it { is_expected.to validate_presence_of(:description) } it { is_expected.to validate_length_of(:input) } it { is_expected.to validate_length_of(:output) } it { is_expected.to...
mit
SourceHollandaise/TriggerSol
TriggerSol.JStore/StoreHandlers/Contracts/IDataStoreLoadAllHandler.cs
1444
// // IDataStoreLoadAllHandler.cs // // Author: // Jörg Egger <joerg.egger@outlook.de> // // Copyright (c) 2015 Jörg Egger // // 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 ...
mit
Moumou57/DMC
src/DMC/CrudBundle/Form/LignesDevisType.php
2198
<?php namespace DMC\CrudBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class LignesDevisType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options ...
mit
Apprenda/Log4Net-Onboarder
src/Tests/CustomAttributeTestTarget/CustomModuleTarget.cs
1759
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="CustomModuleTarget.cs" company="Apprenda, Inc."> // The MIT License (MIT) // // Copyright (c) 2015 Apprenda Inc. // // Permission is hereby granted, free of charge, to...
mit
MRH4287/HpClass
include/template.php
2051
<?php $right = $hp->getright(); $config = $hp->getconfig(); if ($config['titel'] != "") { $titel = $config['titel']; } if ($config['design'] != "") { $design = $config['design']; } // Template $template['titel']=$titel; if (isset($_SESSION['username'])) { $template['username']=$_SESSIO...
mit
GeoNode/geonode-announcements
announcements/admin.py
1398
from django.contrib import admin from announcements.models import Announcement, Dismissal # import our user model and determine the field we will use to search by user # support custom user models & username fields in django 1.5+ try: from django.contrib.auth import get_user_model User = get_user_model() exce...
mit
warpdesign/brackets-regex-diagram
main.js
8380
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */ /*global define, $, brackets, window */ define(function (require, exports, module) { "use strict"; // get access to needed singletons var CommandManager = brackets.getModule("command/CommandManager"), Edito...
mit
kpboyle1/devtreks
src/DevTreks.Models/Properties/AssemblyInfo.cs
827
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: AssemblyConfigurat...
mit
anithri/game_master
spec/game_master/config_loader/stages/game_file_loader_spec.rb
1036
require 'spec_helper' describe GameMaster::ConfigLoader::Stages::GameFileLoader do subject{GameMaster::ConfigLoader::Stages::GameFileLoader} let(:files){loader.find_game_files(TEST_GAME_DIR)} let(:game_opts){{}} let(:loader_opts){{game_dir: TEST_GAME_DIR}} let(:runtime_opts){{boot:{all_stages: [subject]},st...
mit
happner/happner-2
test/integration/component/component-init-start-secure.js
3788
module.exports = Explicit; var expect = require('expect.js'); function Explicit() {} Explicit.prototype.asyncStart = function($happn, opts, optionalOpts, callback) { if (typeof callback === 'undefined') callback = optionalOpts; setTimeout(function() { callback(null); }, 200); }; Explicit.prototype.asyncI...
mit
javierjulio/activeadmin
spec/unit/csv_builder_spec.rb
8583
# frozen_string_literal: true require "rails_helper" RSpec.describe ActiveAdmin::CSVBuilder do describe ".default_for_resource using Post" do let(:application) { ActiveAdmin::Application.new } let(:namespace) { ActiveAdmin::Namespace.new(application, :admin) } let(:resource) { ActiveAdmin::Resource.new(n...
mit
fuyuno/Norma
Source/Norma.Gamma/Models/Profile.cs
358
using Newtonsoft.Json; namespace Norma.Gamma.Models { [AppVersion("1.0.46")] public class Profile { [JsonProperty("userId")] public string UserId { get; set; } [JsonProperty("createdAt")] // [JsonConverter(typeof(Newtonsoft.Json.Converters.))] public /* DateTime */...
mit
Chris911/OpenWeather
lib/OpenWeather/version.rb
43
module OpenWeather VERSION = "0.0.4" end
mit
jcwoltz/mrrapi
examples/list_myrigs.py
4622
import json import urllib2 import mrrapi mkey = 'YourKey' msecret = 'YourSecret' mapi = mrrapi.api(mkey,msecret) debug = False #helper function to format floats def ff(f): return format(f, '.8f') #helper function to format floats def ff12(f): return format(f, '.12f') def getBTCValue(): # https://www.bi...
mit
sturoscy/canvas-app
app/controllers/synced_groups_controller.rb
1655
class SyncedGroupsController < ApplicationController before_filter :get_context, :only => [:index] def index if @context @synced_groups = @context.synced_groups.by_group_id else @synced_groups = SyncedGroup.by_group_id end respond_to do |format| format.json { render :json =>...
mit
JonnyOrman/EzApp
Src/EzApp.Data.Sql.Core/EzSqlOperators.cs
211
namespace EzApp.Data.Sql.Core { public enum EzSqlOperators { SELECT, INSERT, UPDATE, DELETE, SET, WHERE, FROM, AND, TOP } }
mit
Opiumtm/DvachBrowser3
DvachBrowser3.Core/Serialization/ISerializerCacheService.cs
505
using System; using System.Runtime.Serialization; namespace DvachBrowser3 { /// <summary> /// Сервис кэша сериализаторов. /// </summary> public interface ISerializerCacheService { /// <summary> /// Получить сериализатор. /// </summary> /// <typeparam name="T">Тип об...
mit
DogusTeknoloji/BatMap
BatMap.Tests/Model/ForTest.cs
1095
using System.Collections.Generic; using System.Collections.ObjectModel; namespace BatMap.Tests.Model { public class ForTest1 { [ExcludeFromCodeCoverage] public Address Address { get; set; } } public class ForTest2 { public string Number { get; set; } public int Number2 { ...
mit
svalyn/svalyn
backend/svalyn-application/src/main/java/com/svalyn/application/dto/input/DeleteProjectsInput.java
537
/************************************************************** * Copyright (c) Stéphane Bégaudeau * * This source code is licensed under the MIT license found in * the LICENSE file in the root directory of this source tree. **************************************************************/ package com.svalyn.applica...
mit
nofdev/fastforward
Godeps/_workspace/src/golang.org/x/crypto/ssh/kex.go
13864
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssh import ( "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/subtle" "errors" "io" "math/big" "github.com/nofdev/fastforward/...
mit
funkatron/CBTTool
app/config/production.php
338
<?php return array( "mode" => "production", "debug" => false, "log.enabled" => false, "cookies.encrypt" => true, "cookies.secure" => true, "cookies.httponly" => true, "twig.debug" => false, "db.type" => "sqlite", "db.pdo.connect" => "sqlite:{$_ENV['CONFIG_APP_BASE_PATH']}/data/cbtt...
mit
gersese/inv
application/models/module/Product/Product_model.php
285
<?php class Product_model extends GCA_Model { const PRODUCTS_TABLE = 'products'; public function __construct() { $this->load->database(); } public function addProduct($newProduct) { $this->db->insert(self::PRODUCTS_TABLE, $newProduct); } } ?>
mit
VadimRomansky/PICpp
RoeOsherSpherical/GridUpdating.cpp
5485
#include <time.h> #include "math.h" #include "stdio.h" #include <stdlib.h> #include "simulation.h" #include "util.h" #include "constants.h" #include "output.h" //èçìåíåíèå ñåòêè void Simulation::updateGrid(){ if ((shockWavePoint < 1) || (shockWavePoint > rgridNumber - 1)) return; if( !shockWaveMoved) { return; }...
mit
baoxuan/wxlbb
static/webroot-dev/js/address.js
2529
/*懒加载效果*/ var Lazy = { "Img": null, "getY": function(b) { var a = 0; if (b && b.offsetParent) while (b.offsetParent) a += b.offsetTop, b = b.offsetParent; else b && b.y && (a += b.y); return a; }, "getX": function(b) { var a = 0; if (b && b.offsetParent) while (b.offsetParent) a...
mit
khandy21yo/aplus
CMC040/smg/smg_create_virtual_keyboard.cc
198
// // Create virtual keyboard // #include "smg/smg.h" // // Create virtual keyboard // // NOTE: Currently does nothing. // long smg$create_virtual_keyboard( smg_keyboard_id &kbid) { return 1; }
mit
ronaldosvieira/javaframes
src/model/constraint/RangeConstraint.java
2143
package model.constraint; import com.sun.istack.internal.NotNull; import org.jetbrains.annotations.Contract; import java.util.HashMap; import java.util.function.BiPredicate; public class RangeConstraint implements Constraint { private final String constraint = "range"; private Comparable lo, hi; private ...
mit
kleberandrade/dream-net
DreamNet.TCPServer/Program.cs
12878
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; namespace DreamNet.TCPServer { class Program { public static void Main() { TCPServer server = new TCPServ...
mit
saysa/vyperS
src/Vyper/SiteBundle/Controller/ArtistController.php
5034
<?php namespace Vyper\SiteBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Vyper\SiteBundle\Entity\Artist; class ArtistController extends Controller { /** * @param \Symfony\Component\...
mit
martindevans/Myre
Myre/Myre.Graphics/Geometry/IGeometryProvider.cs
2647
using System; using Myre.Collections; using System.Collections.Generic; namespace Myre.Graphics.Geometry { public interface IGeometryProvider { void Query(string phase, NamedBoxCollection metadata, ICollection<IGeometry> result); } public class GeometryRenderer { private readonly ...
mit
mhamrah/gql
ast_test.go
742
package gql import ( "reflect" "testing" "github.com/stretchr/testify/assert" ) func TestTypeName(t *testing.T) { name := "InputTypeName" tests := []struct { input TypeDefinition expected TypeKind }{ {ObjectDefinition{Name: name}, TypeKind_OBJECT}, {ScalarDefinition{Name: name}, TypeKind_SCALAR}, ...
mit
Hunv/beRemote
Core/Common/beRemote.Core.Common.LogSystem/Properties/AssemblyInfo.cs
1564
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Allgemeine Informationen über eine Assembly werden über die folgenden // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, // die mit einer Assembly verknüpft sind. [assembly: As...
mit
zhangqiang110/my4j
pms/src/main/java/com/swfarm/biz/wish/job/BatchOrderDownloadTask.java
669
package com.swfarm.biz.wish.job; import org.apache.log4j.Logger; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.springframework.scheduling.quartz.QuartzJobBean; import com.swfarm.biz.wish.srv.WishService; public class BatchOrderDownloadTask extends QuartzJobBean{ ...
mit
fengalin/media-toc
ui/src/main/mod.rs
1532
mod controller; pub use self::controller::{Controller, State}; mod dispatcher; pub use self::dispatcher::Dispatcher; use std::path::PathBuf; use crate::{UIEventChannel, UIFocusContext}; #[derive(Debug)] pub enum Event { About, CancelSelectMedia, OpenMedia(PathBuf), Quit, ResetCursor, Restore...
mit
shokai/sinatra-rocketio-linda
lib/js/linda.js
2327
var Linda = function(io, opts){ var self = this; this.io = null; if(io === null || typeof io === "undefined"){ this.io = new RocketIO().connect(); } else{ this.io = io; } this.opts = opts || {}; this.TupleSpace = function(name){ if(name === null || typeof name !== "string") name = "__default...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_recovery_services_site_recovery/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/models/hyper_vreplica_base_replication_details.rb
4631
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10 module Models # # Hyper V replica provider specific settings base class. # c...
mit
djfroofy/beatlounge
bl/ugen.py
2186
import random from itertools import cycle __all__ = ['N', 'Cycle', 'C', 'Random', 'R', 'RandomPhrase', 'RP', 'RandomWalk', 'RW', 'W', 'Weight', 'Oscillate', 'O'] class _Nothing(object): def __str__(self): return 'N' def __repr__(self): return 'N' def __call__(self): ...
mit
talis/aspire-blackboard-learn-integration
src/org/oscelot/talis/Utils.java
8645
package org.oscelot.talis; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.ByteArrayOutputStream; import java.io.ObjectOutputStream; import java.io.ObjectInputStream; import org.apache.commons.codec.binary.Base64; import java.net.HttpURLConnection; ...
mit
getsenic/senic-hub
senic_hub/backend/tests/test_nuimo_components.py
11019
from os import remove from pytest import fixture, yield_fixture from tempfile import NamedTemporaryFile import yaml import responses from senic_hub.backend.views.nuimo_components import create_component @fixture def url(route_url): return route_url('nuimo_components', mac_address='00:00:00:00:00:00'.replace(':'...
mit
maldrasen/archive
jadefire-0.1/engine/models/character.js
6197
"use strict"; global.Character = class Character extends Model { constructor(data) { super() if (data.history == null) { data.history = []; } if (data.player) { this._role = 'player' } this.build(data); } static evictTemp() { Character.deleteWhere({ role:'temp' }); } get isPlayer() { re...
mit
Kiandr/CrackingCodingInterview
php/test/chapter07/question7.10/PointTest.php
267
<?php require_once __DIR__ . '/../../../src/chapter07/question7.10/Point.php'; class PointTest extends \PHPUnit\Framework\TestCase { public function testToString() { $point = new Point(3, 5); $this->assertEquals('3,5', (string) $point); } }
mit
ECOcoin-src/ECO-source
src/init.cpp
36095
// 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 "txdb.h" #include "walletdb.h" #include "bitcoinrpc.h" #include "net.h" #i...
mit
starkland/veggiemap
src/assets/js/Firebase.js
1314
import Events from '../../events/all'; class Firebase { constructor() { this.config = { apiKey: "AIzaSyCewtn3iS76Cw8N3JAlY-_I9Do92cdtxRw", authDomain: "form-location-jsday-recife.firebaseapp.com", databaseURL: "https://form-location-jsday-recife.firebaseio.com", storageBucket: "form-locat...
mit
rjgreaves/finances
app/components/Login/index.js
2306
/** * * Login * */ import React from 'react'; import styles from './styles.css'; import validator from 'email-validator'; import TextInput from '../TextInput'; class Login extends React.Component { // eslint-disable-line react/prefer-stateless-function static propTypes = { login: React.PropTypes.func.isRequire...
mit
cbrghostrider/Hacking
leetcode/020_validParentheses.cpp
938
// ------------------------------------------------------------------------------------- // Author: Sourabh S Joshi (cbrghostrider); Copyright - All rights reserved. // For email, run on linux (perl v5.8.5): // perl -e 'print pack "H*","736f75726162682e732e6a6f73686940676d61696c2e636f6d0...
mit
ianwcarlson/hatTeamSelector
outputToGDoc.js
4998
/** * @module outputToGDoc */ /** * @typedef {Object} SpreadsheetAuthInfoType * @property {String} spreadsheetID - Spreadsheet identification encoded in * url: https://docs.google.com/spreadsheet/ccc?key=<spreadsheetID>&usp=sharing * @property {String} worksheetID - Worksheet identification * @property {String}...
mit
StevenOosterbeek/oauth2-setup
client-server/server.js
5015
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0; // Necessary for this setup, because we don't have a CA signed certificate var https = require('https'), colors = require('colors'), q = require('q'), settings = require('../settings').clientServer, errorCodes = require('../shared/error-codes'), operat...
mit
habibmasuro/XChange
xchange-btce/src/main/java/com/xeiam/xchange/btce/v3/dto/trade/BTCEOrder.java
2797
/** * Copyright (C) 2012 - 2014 Xeiam LLC http://xeiam.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 to * use, copy,...
mit
postcss/postcss
test/node.test.ts
12305
import { resolve } from 'path' import { test } from 'uvu' import { is, equal, type, not } from 'uvu/assert' import postcss, { AnyNode, AtRule, Root, Rule, CssSyntaxError, Declaration, parse, Result, Plugin, Document } from '../lib/postcss.js' function stringify(node: AnyNode, builder: (str: string...
mit
tosyx/fuby
test/fuby/suffixes.rb
239
require 'fuby/suffixes' using Fuby describe Array do describe "suffixes" do it "returns an Enumerable of the suffixes of self, longest first" do [1, 2, 3].suffixes.to_a.must_equal [[1, 2, 3], [2, 3], [3]] end end end
mit
AbenezerMamo/crypto-signal
app/conf.py
1980
"""Load configuration from environment """ import os import ccxt import yaml class Configuration(): """Parses the environment configuration to create the config objects. """ def __init__(self): """Initializes the Configuration class """ with open('defaults.yml', 'r') as config_f...
mit
bebopjmm/woin-rpg-services
woin-entityReferenceData-service/src/main/java/com/rpgcampaigner/woin/entityReference/dal/ReferenceDynamoRepository.java
3495
package com.rpgcampaigner.woin.entityReference.dal; import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.Set; import java.util.function.Function; import java.util.stream.Collectors; import com.amazonaws.regions.Regions; import com.amazonaws.services.dynamodbv2.AmazonDynamoDB; im...
mit
seanpar203/validator
validator/fields.py
3114
from typing import Any from collections import OrderedDict FORMATTED_TYPE_NAMES = { 'str': 'String', 'int': 'Integer', 'list': 'List', 'float': 'Float', 'dict': 'Dictionary' } class DeclarativeFieldsMetaclass(type): """ Metaclass for removing declared Fields from Validator instances...
mit
testdouble/testdouble.js
test/unit/imitate/index.test.js
1859
let initializeNames, createImitation, overwriteChildren, subject module.exports = { beforeEach: () => { initializeNames = td.replace('../../../src/imitate/initialize-names').default createImitation = td.replace('../../../src/imitate/create-imitation').default overwriteChildren = td.replace('../../../src/i...
mit
mrjanczak/OPPEN2
src/AppBundle/Model/map/FileCatTableMap.php
3772
<?php namespace AppBundle\Model\map; use \RelationMap; use \TableMap; /** * This class defines the structure of the 'file_cat' table. * * * * This map class is used by Propel to do runtime db structure discovery. * For example, the createSelectSql() method checks the type of a given column used in an * ORDER...
mit
SmartGeoTools/SmartGeoToolsJava
SmartGeoToolsJava/src/cd/syna/geotools/ihms/MainForm.java
11946
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package cd.syna.geotools.ihms; import cd.syna.geotools.main.SplashScreen; import cd.syna.geotools.utils.MySwingUtilities; import java...
mit
yanhongwang/Codility
MaxProductOfThree.py
1442
""" A non-empty zero-indexed array A consisting of N integers is given. The product of triplet (P, Q, R) equates to A[P] * A[Q] * A[R] (0 ≤ P < Q < R < N). For example, array A such that: A[0] = -3 A[1] = 1 A[2] = 2 A[3] = -2 A[4] = 5 A[5] = 6 contains the following example triplets: (0, 1, 2), p...
mit
kartenmacherei/rest-framework
src/Response/HttpHeader.php
541
<?php namespace Kartenmacherei\RestFramework\Response; class HttpHeader { /** * @var string */ private $name = ''; /** * @var string */ private $value = ''; /** * @param string $name * @param string $value */ public function __construct($name, $value) { ...
mit
slinderman/theano_pyglm
pyglm/models/model_factory.py
15855
""" Make models from a template """ import numpy as np from scipy.optimize import nnls from standard_glm import StandardGlm from spatiotemporal_glm import SpatiotemporalGlm from shared_tuningcurve_glm import SharedTuningCurveGlm from simple_weighted_model import SimpleWeightedModel from simple_sparse_model import Simp...
mit
nvanheuverzwijn/naughty-chat
parsers.py
2756
def get_parser(parser_name): """ Try to instantiate a parser from the parser_name parser_name: The name of the parser to instantiate. throws: NameError, if the parser is not found returns: A Parser object. """ try: return globals()[parser_name]() except KeyError as e: raise NameError("The parser '"+parser_n...
mit
Seally/hamster-project
src/hamster-project-app/src/main/java/hamster/app/gui/ICommPortButton.java
177
package hamster.app.gui; import gnu.io.CommPortIdentifier; /** * Created by sealc on 11/24/2015. */ public interface ICommPortButton { CommPortIdentifier getPortID(); }
mit
hoangmle/crave-bundle-2015-07-22
crave/src/lib/ConstraintPartition.cpp
1584
#include "../crave/ir/ConstraintPartition.hpp" #include <ostream> namespace crave { template <typename ostream> ostream& operator<<(ostream& os, const ConstraintPartition& cp) { os << "[ "; BOOST_FOREACH(ConstraintPtr c, cp) { os << c->name() << " "; } os << "]"; os << std::flush; return os; } template st...
mit
johnnygreen/laravel-api
src/migrations/2013_09_09_023108_create_permissions_table.php
564
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePermissionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('permissions', function(Blueprint $table) { $table->engine = '...
mit
vchelaru/FlatRedBall
FRBDK/Glue/Glue/Elements/VariableDefinition.cs
5024
using FlatRedBall.Glue.CodeGeneration.CodeBuilder; using FlatRedBall.Glue.SaveClasses; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Serialization; namespace FlatRedBall.Glue.Elements { #region Enums public enum CsvInclusion ...
mit
dlcs/elucidate-server
elucidate-server/src/main/java/com/digirati/elucidate/service/statistics/W3CAnnotationStatisticsPageService.java
243
package com.digirati.elucidate.service.statistics; import com.digirati.elucidate.model.statistics.W3CStatisticsPage; public interface W3CAnnotationStatisticsPageService extends AbstractAnnotationStatisticsPageService<W3CStatisticsPage> { }
mit
will-gilbert/OSWf-OSWorkflow-fork
oswf/simulator/src/main/java/org/informagen/oswf/simulator/server/GraphvizServiceImpl.java
7638
package org.informagen.oswf.simulator.server; /** * From: http://stackoverflow.com/questions/4553316/gwt-image-from-database * * Here is the solution. First you should encode the byte array by using * * com.google.gwt.user.server.Base64Utils.toBase64(byte[]). * * But this method does not work for IE 7 an...
mit
etraiger/PCWG
pcwg_tool.py
171416
from Tkinter import * from tkFileDialog import * import tkSimpleDialog import tkMessageBox from dataset import getSeparatorValue from dataset import getDecimalValue import Analysis import configuration import datetime import os import os.path import pandas as pd import dateutil columnSeparator = "|" filterSeparator = ...
mit
ActiDoo/gamification-engine
gengine/app/alembic/versions/65c7a32b7322_achievement_date_unique.py
2270
"""achievement_date_unique Revision ID: 65c7a32b7322 Revises: d4a70083f72e Create Date: 2017-01-31 23:01:11.744725 """ # revision identifiers, used by Alembic. revision = '65c7a32b7322' down_revision = 'd4a70083f72e' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade...
mit
UTF2390/Racons
application/controllers/Alumno.php
2993
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Alumno extends CI_Controller { public $modelo_alumno; public function __construct() { parent::__construct(); If ($this->session->userdata['rol'] != 'alumno') { session_destroy(); redirect('/ho...
mit
previtus/MGR-Project-Code
Settings/independent_experiments/finetunning_tests/finetune_tests_varAdeep.py
1783
def Setup(Settings,DefaultModel): # finetune_tests_varA.py Settings["experiment_name"] = "Finetuning-tests_big_cca_10hrs_experiment_1k50_varAdeep-useFeat-152" Settings["graph_histories"] = ['together'] #['all','together',[],[1,0],[0,0,0],[]] n = 0 Settings["models"][n]["model_type"] = 'simple_cnn...
mit
jmagly/BlockScriptEditTools
BlockScriptItemTemplate/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("Bl...
mit
zhangtdavid/SimCity
src/city/gui/interiors/RestaurantZhangPanel.java
3427
package city.gui.interiors; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.image.BufferedImage; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import javax.image...
mit
wolli2710/SleepStagingVisualization
rawDataPreparation/create_pre_processed_rawdata_files.py
6808
#this file needs the filename format audio_26_mattrass instead of audio_1407157806 #this file needs the filename format acceleration_26_mattrass instead of acceleration_1407157806 import time import json import math import numpy as np import pandas as pd import datetime acceleration_filename = "acceleration...
mit
PTS3-S34A/Soccar
Soccar [Client]/src/nl/soccar/ui/input/Keyboard.java
4241
package nl.soccar.ui.input; import javafx.scene.input.KeyCode; import nl.soccar.physics.enumeration.HandbrakeAction; import nl.soccar.physics.enumeration.SteerAction; import nl.soccar.physics.enumeration.ThrottleAction; import java.util.ArrayList; import java.util.List; /** * The Keyboard class keeps tra...
mit
hunterae/cancan
lib/cancan/inherited_resource.rb
441
module CanCan # For use with Inherited Resources class InheritedResource < ControllerResource # :nodoc: def load_resource_instance if parent? @controller.send :parent elsif new_actions.include? @params[:action].to_sym @controller.send :build_resource else @controller.se...
mit
Mart-Bogdan/IoC-manager-net
Innahema.Ioc.Manager/Windsor/Installers/Helper.cs
532
using System; using Bender.Reflection; using Castle.MicroKernel.Registration; using Innahema.Ioc.Common.Attributes; namespace Innahema.Ioc.Manager.Windsor.Installers { internal static class Helper { public static ComponentRegistration<T> ConfigIsDefaultImpl<T>(this ComponentRegistration<T> cr, Type ty...
mit
holyman2k/commic
src/app/reducers/settingsReducer.js
586
import clone from "clone"; const initialState = { expand: false, }; export default function (state = initialState, action) { const { type, payload } = action; switch (type) { case "EXPAND": { const newState = clone(state); newState.settings = payload; newState....
mit
VelvetMirror/login
app/cache/dev/twig/96/e6/f79ee861b7e8f7d2e5ff4480d4ef.php
8155
<?php /* WebProfilerBundle:Collector:events.html.twig */ class __TwigTemplate_96e6f79ee861b7e8f7d2e5ff4480d4ef extends Twig_Template { protected $parent; public function __construct(Twig_Environment $env) { parent::__construct($env); $this->blocks = array( 'menu' => array($thi...
mit
ranian129/webworkbook
webworkbook/src/spms/dao/ProjectDao.java
382
package spms.dao; import java.util.HashMap; import java.util.List; import spms.vo.Project; public interface ProjectDao { List<Project> selectList(HashMap<String, Object> paramMap) throws Exception; int insert(Project project) throws Exception; Project selectOne(int no) throws Exception; int update(Project proje...
mit
hedwig-project/dashboard
src/routes/AccessModulePage/components/LightConfiguration.js
2990
import React, { Component, PropTypes, } from 'react' import styled from 'styled-components' import { Field } from 'redux-form' import { TextField } from 'redux-form-material-ui' import FontIcon from 'material-ui/FontIcon' import RaisedButton from 'material-ui/RaisedButton' const Form = styled.form` width: 100%; ...
mit
terrydash/XgxFrameWork
Dos.Common/EmitMapper/MappingConfiguration/MappingOperations/Interfaces/IDestReadOperation.cs
225
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EmitMapper.MappingConfiguration.MappingOperations { public interface IDestReadOperation : IDestOperation { } }
mit
south-coast-science/scs_core
src/scs_core/aws/client/api_auth.py
2332
""" Created on 2 Apr 2018 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) example document: {"endpoint": "xy1eszuu23.execute-api.us-west-2.amazonaws.com", "api-key": "de92c5ff-b47a-4cc4-a04c-62d684d74a1f"} """ from collections import OrderedDict from scs_core.data.json import PersistentJSONable # -----...
mit
dinukadesilva/music-ctrls
lib/infusion/tests/component-tests/pager/js/PagedTableTests.js
24375
/* Copyright 2008-2009 University of Cambridge Copyright 2008-2009 University of Toronto Copyright 2010-2014 OCAD University Licensed under the Educational Community License (ECL), Version 2.0 or the New BSD license. You may not use this file except in compliance with one these Licenses. You may obtain a copy of the ...
mit
adamahrens/RailsExploration
Scheduler/spec/features/audit_log_spec.rb
774
require 'rails_helper' describe 'AuditLog feature' do describe 'index' do before do @audit_log = FactoryGirl.create(:audit_log) @admin_user = FactoryGirl.create(:admin_user) login_as(@admin_user, scope: :user) visit audit_logs_path end it 'has an index page that can be reached' d...
mit
RemiFusade2/RubberTheGame
Rubber Game/Assets/Scripts/StopPlayerScript.cs
375
using UnityEngine; using System.Collections; public class StopPlayerScript : MonoBehaviour { public PlayerBehaviour playerScript; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnTriggerEnter(Collider col) { if (col.tag.Equals("Player"...
mit
digitalocean/droplet_kit
spec/lib/droplet_kit/client_spec.rb
3356
# frozen_string_literal: true require 'spec_helper' RSpec.describe DropletKit::Client do subject(:client) { DropletKit::Client.new(access_token: 'bunk') } describe '#initialize' do it 'initializes with an access token' do client = DropletKit::Client.new(access_token: 'my-token') expect(client.acc...
mit
neatphp/neat
src/Container/Exception/UnexpectedValueException.php
172
<?php namespace Neat\Container\Exception; /** * Container exception. */ class UnexpectedValueException extends \UnexpectedValueException implements ExceptionInterface {}
mit
chunkiat82/rarebeauty-ui
src/routes/appointment/ListAppointments.js
1639
import React from 'react'; import Layout from '../../components/Layout'; import AppointmentList from './components/List'; import { getServices } from './common/functions'; function show(store) { return () => { store.dispatch({ type: 'SHOW_LOADER' }); }; } function hide(store) { return () => { store.dis...
mit
rdkmaster/jigsaw
src/app/demo/mobile/graph/heat/demo.module.ts
589
import {NgModule} from "@angular/core"; import {CommonModule} from "@angular/common"; import {JigsawMobileGraphModule} from "jigsaw/mobile_public_api"; import {HeatGraphComponent} from "./demo.component"; import {JigsawDemoDescriptionModule} from "app/demo-description/demo-description"; import {JigsawMobileHeaderModul...
mit
Totokaelo/stellae
lib/stellae/requests/get_catalog_information_request.rb
248
module Stellae module Requests class GetCatalogInformationRequest < Base endpoint_name :get_catalog_information root_name :cir string :upc string :style string :season_code string :flags end end end
mit
mburgknap/Redmine-Time-Log-2
RedmineLog/UI/frmSubIssue.Designer.cs
7639
namespace RedmineLog.UI { partial class frmSubIssue { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ///...
mit
OpenSpace/OpenSpace
modules/kameleon/kameleonmodule.cpp
2249
/***************************************************************************************** * * * OpenSpace * * ...
mit