repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
richard-shepherd/monopyly
AIs/James Tyas/decision_utils.py
15632
__author__ = 'James' from monopyly import * from .property_probs_calcs import PropertyProbCalcs from .property_sim import * from .board_utils import * class DecisionUtils(): def __init__(self, property_probs): self.property_probs = property_probs self.board_utils = BoardUtils(self.property_probs) ...
mit
stantler/pinball_testjob
pinball_testjob/Assets/Scripts/Kernel.Game/FileLoader.cs
2645
using System; using System.Collections; using Helpers.Extension; using Helpers.Modules; using UnityEngine; namespace Kernel.Game { [Module(Dependecies = new[] { typeof(DataProvider) })] public class FileLoader : MonoBehaviour, IModule { private const string Ext = ".u3d"; private string _pa...
mit
michaeltandy/log4j-json
src/test/java/uk/me/mjt/log4jjson/SimpleJsonLayoutTest.java
4157
package uk.me.mjt.log4jjson; import org.apache.log4j.Logger; import org.apache.log4j.MDC; import org.apache.log4j.Priority; import org.junit.Test; import static org.junit.Assert.*; /** * * @author Michael Tandy */ public class SimpleJsonLayoutTest { private static final Logger LOG = Logger.g...
mit
sp4cerat/Java-Random-Texture-Generator
src/textur/Textur.java
23996
package textur; import java.awt.Button; import java.awt.Choice; import java.awt.Image; import java.awt.Panel; import java.awt.Scrollbar; import java.awt.TextField; import java.awt.Toolkit; import java.awt.image.MemoryImageSource; public class Textur { // ##########################################################...
mit
jpinho/soaba
src/test/java/soaba/core/gateway/drivers/tests/KNXGatewayDriverTest.java
11893
package soaba.core.gateway.drivers.tests; import static org.junit.Assert.fail; import java.net.UnknownHostException; import org.apache.log4j.Logger; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import soaba.core.api.IDatapoint.ACCESSTYPE; im...
mit
sebastiaanluca/laravel-modules
src/Repositories/HandlesMethodExtensions.php
2264
<?php namespace Nwidart\Modules\Repositories; trait HandlesMethodExtensions { /** * Get the dynamically handled method extensions. * * @return array */ protected function getMethodExtensions() : array { return []; } /** * Check if a called method is has a dyna...
mit
cmu-delphi/delphi-epidata
integrations/server/test_fluview.py
2247
"""Integration tests for the `fluview` endpoint.""" # standard library import unittest # third party import mysql.connector # first party from delphi.epidata.client.delphi_epidata import Epidata class FluviewTests(unittest.TestCase): """Tests the `fluview` endpoint.""" @classmethod def setUpClass(cls): ...
mit
intersystems-ru/Globals-EF
GlobalsFrameworkModel/Linq/DeferredOrdering/IDeferredOrderedEnumerable.cs
222
using System.Linq; namespace GlobalsFramework.Linq.DeferredOrdering { internal interface IDeferredOrderedEnumerable { IOrderedEnumerable<TResult> GetLoadedOrderedEnumerable<TResult>(); } }
mit
Skippeh/Oxide.Ext.ServerManager
Oxide.PluginWebApi/Properties/AssemblyInfo.cs
1411
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("Ox...
mit
IcecaveLabs/heroku
test/suite/Console/ApplicationTest.php
721
<?php namespace Icecave\Heroku\Console; use PHPUnit_Framework_TestCase; use Phake; class ApplicationTest extends PHPUnit_Framework_TestCase { public function setUp() { $this->application = Phake::partialMock( Application::CLASS ); } public function testConstructor() { ...
mit
collapsedev/circlecash
src/qt/locale/bitcoin_cy.ts
99576
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Circlecash</source> <translation type="unfinished"/> </message> ...
mit
jojanper/draal-jsapp
src/graphql/resolvers.js
131
const { resolvers: UserResolvers } = require('../apps/user/graphql'); module.exports = { Query: { ...UserResolvers.Query } };
mit
dksr/REMIND
python/base/utils/pyswip/__init__.py
910
# -*- coding: utf-8 -*- # pyswip -- Python SWI-Prolog bridge # (c) 2006-2007 Yüce TEKOL # 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 of the License, or # (at your option) an...
mit
fjyuan/Exporter
Assets/Scripts/AssetManager/AssetBundleManager.cs
2335
using UnityEngine; using System.Collections; using System.Collections.Generic; using System; static public class AssetBundleManager { // A dictionary to hold the AssetBundle references static private Dictionary<string, AssetBundleRef> dictAssetBundleRefs; static AssetBundleManager () { dictAssetBundleRefs = ...
mit
phpManufaktur/kfConfirmationLog
Data/Filter/Persons.php
2926
<?php /** * ConfirmationLog * * @author Team phpManufaktur <team@phpmanufaktur.de> * @link https://kit2.phpmanufaktur.de/ConfirmationLog * @copyright 2013 Ralf Hertsch <ralf.hertsch@phpmanufaktur.de> * @license MIT License (MIT) http://www.opensource.org/licenses/MIT */ namespace phpManufaktur\ConfirmationLog\...
mit
brucou/component-combinators
examples/CombineDemo/src/index.js
1489
import { App } from "./app" import defaultModules from "cycle-snabbdom/lib/modules" import { createHistory } from "history" import { makeHistoryDriver } from '@cycle/history'; import * as Rx from "rx"; // drivers import { makeDOMDriver } from "cycle-snabbdom" import { run } from "@cycle/core" // utils import { DOM_SINK...
mit
ROpsal/qt-topaz31
Players.cpp
25250
/// // Author: Richard Opsal // // Purpose: Implementation of regions for the "31" board. // CS3350 demonstration program. // // Location: Qt.Demo/Topaz31 // $RCSfile$ // // Started: 2009/12/16 // $Revision$ // $Date$ /// /// // C / C++ / STL includes. /// #include <cstdlib> #include <algorit...
mit
pereamengual/QuadraMat
public/javascripts/Tone.js-master/Tone/event/Part.js
14878
define(["Tone/core/Tone", "Tone/event/Event", "Tone/type/Type", "Tone/core/Transport"], function (Tone) { "use strict"; /** * @class Tone.Part is a collection Tone.Events which can be * started/stoped and looped as a single unit. * * @extends {Tone.Event} * @param {Function} callback The callba...
mit
Xenapto/resque-rate_limited
spec/spec_helper.rb
505
# Configure Simplecov and Coveralls unless ENV['NO_SIMPLECOV'] require 'simplecov' require 'coveralls' SimpleCov.start { add_filter '/spec/' } Coveralls.wear! if ENV['COVERALLS_REPO_TOKEN'] end require 'resque/rate_limited' RSpec.configure do |_config| RedisClassy.redis = Redis.new(db: 15) # Use database 1...
mit
DesertBot/DesertBot
desertbot/modules/urlfollow/Wikipedia.py
1147
""" @date: 2021-02-06 @author: HelleDaryd """ import urllib.parse from twisted.plugin import IPlugin from zope.interface import implementer from desertbot.message import IRCMessage from desertbot.moduleinterface import IModule from desertbot.modules.commandinterface import BotCommand import re2 as re WIKIPEDIA_URL_R...
mit
pjfanning/sorm
src/test/scala/sorm/test/features/RegexTest.scala
846
package sorm.test.features import org.scalatest._ import sorm.Entity import RegexTest._ import sorm.core.DbType import sorm.test.MultiInstanceSuite @org.junit.runner.RunWith(classOf[junit.JUnitRunner]) class RegexTest extends FunSuite with Matchers with MultiInstanceSuite { def entities = Set() + Entity[User]() ...
mit
alinous-core/alinous-elastic-db
lib/src_java/java.io/FilterInputStream.cpp
2277
#include "include/global.h" #include "java.io/FilterInputStream.h" namespace java {namespace io { bool FilterInputStream::__init_done = __init_static_variables(); bool FilterInputStream::__init_static_variables(){ Java2CppSystem::getSelf(); ThreadContext* ctx = ThreadContext::newThreadContext(); { GCNotifi...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_cosmosdb/lib/2019-12-12/generated/azure_mgmt_cosmosdb/module_definition.rb
287
# 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 end module Azure::Cosmosdb end module Azure::Cosmosdb::Mgmt end module Azure::Cosmosdb::Mgmt::V2019_12_12 end
mit
FireB1ack/ZhiHuiBeiJing
ZhiHuiBeiJing/app/src/main/java/com/fireblack/zhihuibeijing/base/menudetail/InteractMenuDetailPager.java
869
package com.fireblack.zhihuibeijing.base.menudetail; import android.app.Activity; import android.graphics.Color; import android.view.Gravity; import android.view.View; import android.widget.TextView; import com.fireblack.zhihuibeijing.base.BaseMenuDetailPager; /** * 菜单详情页-互动 * Created by ChengHao on 2016/7/19. */...
mit
stefchrys/dores
src/Front/FrontBundle/Form/ContactType.php
1561
<?php namespace Front\FrontBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class ContactType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options ...
mit
bellrichm/weather
api/src/BellRichM.Weather.Api/Repositories/IConditionRepository.cs
4360
using BellRichM.Weather.Api.Data; using BellRichM.Weather.Api.Models; using System.Collections.Generic; using System.Threading.Tasks; namespace BellRichM.Weather.Api.Repositories { /// <summary> /// The condition repository. /// </summary> public interface IConditionRepository { /// <summar...
mit
andalex/fall-2016-portfolio
app/services/scroll.js
2039
export default function(angularModule) { angularModule.service('anchorSmoothScroll', function(){ this.scrollTo = function(eID) { // This scrolling function // is from http://www.itnewb.com/tutorial/Creating-the-Smooth-Scroll-Effect-with-JavaScript var startY = currentYPosition(); ...
mit
remomueller/slice
db/migrate/20181210193552_create_ae_documents.rb
494
class CreateAeDocuments < ActiveRecord::Migration[5.2] def change create_table :ae_documents do |t| t.bigint :project_id t.bigint :ae_adverse_event_id t.bigint :user_id t.string :file t.string :filename t.string :content_type t.bigint :byte_size, default: 0, null: false ...
mit
gabrielnau/capybara-pdiff
lib/capybara/pdiff/rspec/matchers.rb
1334
module Capybara module Pdiff module RSpecMatchers class StayTheSame def matches?(actual) # should lookup automatically for the baseline # then compare actual and baseline end def description "stay the same as the matching baseline (TODO: give the refe...
mit
EcoGame/Eco
src/eco/game/NoiseSampler.java
1177
package eco.game; /** * This class samples multiple octaves of open simplex noise, and blends them * together. * * @author phil */ public class NoiseSampler { private static int octaves = 8; private static OpenSimplexNoise simplexNoise; private static int noiseScale; private static float ampl...
mit
lucaseras/pokedex
config/routes.rb
1629
Pokedex::Application.routes.draw do resources :pokemons # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" # root 'welcome#index' # Example of regular route: # ...
mit
rivr/rivr
src/qt/locale/bitcoin_id_ID.ts
113887
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Rivr</source> <translation>Tentang Rivr</translation> </message> <message> <location...
mit
crillab/gophersat
bf/parser.go
5523
package bf import ( "fmt" "go/token" "io" "text/scanner" ) type parser struct { s scanner.Scanner eof bool // Have we reached eof yet? token string // Last token read } // Parse parses the formula from the given input Reader. // It returns the corresponding Formula. // Formulas are written using the f...
mit
peggyrayzis/react-native-create-bridge
__tests__/ios-swift.test.js
3076
import path from 'path'; const fileOperations = require('../src/file-operations'); const { readFile, parseFile } = fileOperations; describe('iOS/Swift: UI Components', () => { const templateName = 'TestModule'; const readDirPath = path.join( __dirname, '..', 'templates', 'ui-components', 'ios-...
mit
SergeantSod/blame_gun
lib/blame_gun.rb
269
require "blame_gun/version" require_relative "blame_gun/cli" require_relative "blame_gun/statistics" require_relative "blame_gun/factory" require_relative "blame_gun/runner" require_relative "blame_gun/composite_runner" module BlameGun # Your code goes here... end
mit
Depechie/FormsCommunityToolkit
src/Effects/Effects.UWP/Effects/Entry/EntryRemoveBorder.cs
973
using Windows.UI.Xaml.Controls; using Xamarin.Forms; using Xamarin.Forms.Platform.UWP; using RoutingEffects = FormsCommunityToolkit.Effects; using PlatformEffects = FormsCommunityToolkit.Effects.UWP; [assembly: ExportEffect(typeof(PlatformEffects.EntryRemoveBorder), nameof(RoutingEffects.EntryRemoveBorder))] namespac...
mit
mhkeller/indian-ocean
src/readers/readdir.js
3454
// Used internally by `readdir` functions to make more DRY /* istanbul ignore next */ import fs from 'fs' /* istanbul ignore next */ import queue from 'd3-queue/src/queue' import matches from '../helpers/matches' import identity from '../utils/identity' import {joinPath} from '../utils/path' export default function re...
mit
DannyBerova/Exercises-Programming-Fundamentals-Extended-May-2017
ArraysAndMethodsExercises-Extended/21.TetrisDebug/Properties/AssemblyInfo.cs
1406
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("_2...
mit
derdesign/protos
middleware/cookie_parser/response.js
2194
/* Cookie Parser » Response extensions */ var app = protos.app, http = require('http'), slice = Array.prototype.slice, OutgoingMessage = http.OutgoingMessage; /** Sets a cookie @param {string} name @param {string} value @param {object} opts @public */ OutgoingMessage.prototype.setCookie = fu...
mit
hkdnet/komonjo
app.rb
2794
require 'sinatra' require 'sinatra/reloader' require 'slim' require 'slim/include' require 'compass' require 'coffee-script' require 'lib/mocks/slack_mock' require 'lib/connections/slack_connection' require 'lib/services/messages_service' require 'lib/services/channels_service' require 'lib/models/api/response_base' ...
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_89/safe/CWE_89__object-classicGet__CAST-func_settype_int__select_from_where-sprintf_%d_simple_quote.php
1798
<?php /* Safe sample input : get the field userData from the variable $_GET via an object sanitize : use of settype_int construction : use of sprintf via a %d with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and ...
mit
opengl-8080/Samples
java/spring-security/namespace/src/test/java/sample/spring/security/test/MyMockUserPostProcessors.java
552
package sample.spring.security.test; import org.springframework.security.core.authority.AuthorityUtils; import org.springframework.test.web.servlet.request.RequestPostProcessor; import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.*; public class MyMockUserP...
mit
anagardi/knight-tour
Source/Knight.cs
399
using System.Windows.Controls; using System.Windows.Media.Imaging; using System.Windows; using System; namespace knights_tour { public class Knight : Image { public Knight() { Source = new BitmapImage(new Uri("../Images/knight.png", UriKind.Relative)); Width = 50; ...
mit
SiLab-Bonn/online_monitor
online_monitor/examples/converter/example_converter.py
919
import zmq import numpy as np from online_monitor.utils import utils from online_monitor.converter.transceiver import Transceiver class ExampleConverter(Transceiver): def deserialize_data(self, data): return zmq.utils.jsonapi.loads(data, object_hook=utils.json_numpy_obj_hook) def interpret_data(sel...
mit
fstoerkle/leaflet-custom-paths
lib/leaflet/0.3.1/src/geometry/Bounds.js
1519
/* * L.Bounds represents a rectangular area on the screen in pixel coordinates. */ L.Bounds = L.Class.extend({ initialize: function (min, max) { //(Point, Point) or Point[] if (!min) { return; } var points = (min instanceof Array ? min : [min, max]); for (var i = 0, len = points.length; i < len; i++) { ...
mit
lany/phototagger
src/com/drew/lang/NullOutputStream.java
1274
/* * Copyright 2002-2011 Drew Noakes * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
mit
taoromera/quimby
lib/foursquare/photo.rb
1027
module Foursquare class Photo def initialize(foursquare, json) @foursquare, @json = foursquare, json end def id @json["id"] == nil ? nil : @json["id"] end def name @json["name"] == nil ? nil : @json["name"] end def created_at @json["createdAt"] == nil ? nil : @js...
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.3.0/dom/dom-base.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:e9c44c78b7bb212198faddb9a5f1fe1a65e6c6c91c4475bc30d3c1590836b955 size 30945
mit
venanciolm/afirma-ui-miniapplet_x_x
afirma_ui_miniapplet/src/main/java/com/lowagie/text/pdf/codec/wmf/MetaBrush.java
3241
/* * $Id: MetaBrush.java 3373 2008-05-12 16:21:24Z xlv $ * * Copyright 2001, 2002 Paulo Soares * * The contents of this file are subject to the Mozilla Public License Version 1.1 * (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://w...
mit
CS2103AUG2016-T14-C3/main
src/main/java/seedu/taskmanager/logic/commands/ListCommand.java
650
package seedu.taskmanager.logic.commands; //@@author A0135792X /** * Lists all items in the task manager to the user, regardless of the type. */ public class ListCommand extends Command { public static final String COMMAND_WORD = "list"; //@@author A0140060A public static final String SHORT_COMMAN...
mit
StartPolymer/gulp-html-postcss
lib/process.js
1089
'use strict'; const PluginError = require('plugin-error'); const postcss = require('postcss'); const applySourceMap = require('./applySourceMap'); const loadConfig = require('./loadConfig'); function process (buffer, file, config) { function handleResult (result) { file.postcss = result; applySourceMap(file, resu...
mit
unindented/little-yam
packages/yam-web/lib/components/GroupLink/GroupLink.story.tsx
378
/* tslint:disable:no-unused-variable */ import * as React from 'react' /* tslint:enable:no-unused-variable */ import {fromJS} from 'immutable' import {storiesOf} from '@kadira/storybook' import GroupLink from '.' const group = fromJS({ id: '1', name: 'Some Group' }) storiesOf('Group Link', module) .add('default...
mit
mattstyles/icarus
lib/cli/commands/deploy.js
24568
// > The deploy command tars up a directory and streams it to the server // // > Copyright © 2013 Matt Styles // > Licensed under the MIT license 'use strict'; // Includes. var icarus = require( './../../icarus' ), fs = require( 'fs' ), path = require( 'path' ), util = require( 'util' ), async = re...
mit
JaeGyu/PythonEx_1
deeplearning_5.py
207
import numpy as np import matplotlib.pylab as plt def step_function(x): return np.array(x>0, dtype=int) x = np.arange(-5.0,5.0,0.1) y = step_function(x) plt.plot(x,y) plt.ylim(-0.1, 1.1) plt.show()
mit
CanyonCounty/CCServiceCtl
CCServiceCtl/Properties/AssemblyInfo.cs
1389
using System.Reflection; 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("IccServiceCtl")] [assembly: AssemblyDescr...
mit
reidlindsay/gostop
gostop/core/utils.py
23
def _(s): return s
mit
rzeem7/InsideInning
InsideInning/InsideInning/Pages/Setting.cs
1065
using System; using System.Collections.Generic; using System.Text; using Xamarin.Forms; namespace InsideInning.Pages { class Setting : BaseViewPage { public Setting() { var stack = new StackLayout { Orientation = StackOrientation.Vertical,...
mit
kaffau/Ballet
node_modules/grunt-testem/Gruntfile.js
1025
module.exports = function(grunt) { "use strict"; grunt.initConfig({ 'testem': { options : { launch_in_ci : [ 'PhantomJS' ] }, success : { files : { 'test/actual/success.tap': [ 'test/source/success-*.html' ] } }, ...
mit
Tooyz/moysklad
src/Components/Specs/LinkingSpecs.php
712
<?php namespace MoySklad\Components\Specs; class LinkingSpecs extends AbstractSpecs { protected static $cachedDefaultSpecs = null; /** * Get possible variables for spec * name: what name to use when linking * fields: what fields will be used when linking, others will be discarded * exc...
mit
phalcon/zephir
Library/functions.php
6784
<?php /* * This file is part of the Zephir. * * (c) Phalcon Team <team@zephir-lang.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Zephir; use const INFO_GENERAL; use const PHP_INT_SIZE; use const PHP_OS; use cons...
mit
angular/angular-cli-stress-test
src/app/services/service-552.service.ts
320
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Injectable } from '@angular/core'; @Injectable() export class Service552Service { constructor() { } }
mit
D3A7H13/4HeadRankingSystem
src/FourHeadRankingSystem/Program.cs
560
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; namespace FourHeadRankingSystem { public class Program { public static void Main(string[] args) { var host = new WebHostBuilder() ...
mit
Cysha/casino-holdem
tests/Game/ActionTest.php
6720
<?php namespace Cysha\Casino\Holdem\Tests\Game; use Cysha\Casino\Cards\CardCollection; use Cysha\Casino\Cards\Deck; use Cysha\Casino\Game\Chips; use Cysha\Casino\Game\Client; use Cysha\Casino\Holdem\Cards\Evaluators\SevenCard; use Cysha\Casino\Holdem\Game\Action; use Cysha\Casino\Holdem\Game\Dealer; use Cysha\Casino\...
mit
i12345/spacelator
Translatadora.TS/panels/panel.ts
81
interface Panel { name: string; html: HTMLElement; id: number; }
mit
chncwang/FoolGo
src/board/position.cc
1004
#include "position.h" #include <boost/format.hpp> namespace foolgo { using boost::format; using std::string; const BoardLen Position::STRAIGHT_ORNTTIONS[4][2] = { { 0, -1 }, { 1, 0 }, { 0, 1 }, { -1, 0 } }; const BoardLen Position::OBLIQUE_ORNTTIONS[4][2] = { { 1, -1 }, { 1, 1 }, { -1, 1 }, { -1, -1 } }; ...
mit
ZaoLahma/PyCHIP-8
keyboard.py
1323
#!/usr/bin/env python3 import pygame import threading KEYS = { 0x0: pygame.K_KP0, 0x1: pygame.K_KP1, 0x2: pygame.K_KP2, 0x3: pygame.K_KP3, 0x4: pygame.K_KP4, 0x5: pygame.K_KP5, 0x6: pygame.K_KP6, 0x7: pygame.K_KP7, 0x8: pygame.K_KP8, 0x9: pygame.K_KP9, 0xA: pygame.K_a, ...
mit
GoodUncleFood/petite
test/integration/_tmpData.js
144
/* * Dependencies * */ var app = require('./../../index'); /* * Config * */ var data = { }; /* * Export * */ module.exports = data;
mit
MontealegreLuis/php-testing-tools
ui/web/tests/acceptance/_bootstrap.php
162
<?php declare(strict_types=1); /** * PHP version 7.4 * * This source file is subject to the license that is bundled with this package in the file LICENSE. */
mit
iAJTin/iExportEngine
source/library/iTin.Export.Core/Model/Resources/Conditions/Condition/WhenChangeConditionModel.designer.cs
495
namespace iTin.Export.Model { using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Xml.Serialization; [GeneratedCode("System.Xml", "4.0.30319.18033")] [Serializable()] //[DebuggerStepThrough()] [DesignerCategory("code")] ...
mit
Nuel631/Aulas_de_python
Nome e idade no vetor.py
264
#Armazena nome e idade no vetor. i=0 n=[0,0,0,0,0,0,0,0,0,0] I=[0,0,0,0,0,0,0,0,0,0] print("Informe 10 nomes e 10 idades, a seguir.") for i in range(10): n[i]=input("Digite nome: ") I[i]=input("Digite idade: ") i=i+1 print(n) print(I)
mit
RicardoJohann/frappe
frappe/public/js/frappe/form/controls/code.js
2244
frappe.ui.form.ControlCode = frappe.ui.form.ControlText.extend({ make_input() { if (this.editor) return; this.load_lib().then(() => this.make_ace_editor()); }, make_ace_editor() { const ace_editor_target = $('<div class="ace-editor-target"></div>') .appendTo(this.input_area); // styling ace_editor_tar...
mit
laqs84/Geo
application/logs/log-2015-01-21.php
219729
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> DEBUG - 2015-01-21 13:57:46 --> Config Class Initialized DEBUG - 2015-01-21 13:57:46 --> Hooks Class Initialized DEBUG - 2015-01-21 13:57:46 --> UTF-8 Support Enabled DEBUG - 2015-01-21 13:57:46 --> Utf8 Class Initialized DEBUG - 2015-01-21 13:57...
mit
nickelkr/yfi
setup.py
461
from distutils.core import setup setup( name='yfi', packages=['yfi'], version='0.0.2', license='MIT', summary='Library for Yahoo YQL', description="YFi allows you to create and run queries against Yahoo's YQL datatables", author='Kyle Nickel', url='https://github.com/nickelkr/yfi', ...
mit
cbaatz/knit
lib/upload.js
5090
/*globals console*/ var http = require('http'), colors = require('colors'), https = require('https'), url = require('url'), async = require('async'), ensureResources = require('./utils').ensureResources, force = require('./force'); function doForce (task, callback) { "use strict"; force...
mit
PM-Master/PM
src/gov/nist/csd/pm/user/platform/win32/GDI32Ext.java
4108
package gov.nist.csd.pm.user.platform.win32; import com.sun.jna.Native; import com.sun.jna.Pointer; import com.sun.jna.Structure; import com.sun.jna.platform.win32.GDI32; import com.sun.jna.platform.win32.WinDef.HBITMAP; import com.sun.jna.platform.win32.WinDef.HDC; import com.sun.jna.platform.win32.WinUser.SIZE; impo...
mit
umpirsky/zymfony-validator
src/Zymfony/Component/Validator/ValidatorPluginManager.php
503
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ namespace Zymfony\Component\Validator; use Zend\Validator\ValidatorPluginManager as BaseValidatorPluginManager; /** * Used to build available validators list. * * @author Саша Стаменковић <umpirsky@gmail.com...
mit
taiki3/grablu_casino
pokerReadGameData.py
10887
# -*- coding: utf-8 -*- import pokerHandsClass import pokerDoubleUp def handName(hand_id): if( hand_id == 11 ): return u'役なし' elif( hand_id == 10 ): return u'ワンペア' elif( hand_id == 9 ): return u'ツーペア' elif( hand_id == 8 ): return u'スリーカード' elif( hand_id ...
mit
dnialwill/project_3
public/js/controllers/delete-profile.js
2353
angular.module('MyApp').controller('deleteProfileController', ['$http', '$scope', function ($http, $scope) { // initialise needed variables var ctrl = this; this.showConfirm = false; this.showMsg = false; this.msgContent = ''; // function creates buttons to abort or confirm delete this.confirmDelet...
mit
NickTitle/starfield
app/constants.rb
3354
WINDOW_WIDTH = 1200 WINDOW_HEIGHT = 900 WIDTH = 640 HEIGHT = 480 WORLD_SIZE = 20000.0 # WORLD_SIZE = 500 # DEBUG = true DEBUG = false STORY = [ ["It's all gone; it must be.", true], #0 ["...and it's been weeks since I touched these controls.", true], ["( COMMA and PERIOD control the radio )", true]...
mit
ocproducts/convertr
classes/FileSystem.php
1817
<?php /* Convertr Copyright (c) ocProducts, 2015-2015 */ /** * @license MIT Licence * @copyright ocProducts Ltd * @package Convertr */ namespace Convertr; abstract class FileSystem { const DIFF_ONLY_IN_OLDER = 1; const DIFF_ONLY_IN_NEWER = 2; protected $id; private $cached_diff_from; ...
mit
raideer/tweech-framework
src/Tweech/Chat/ChatHelper.php
530
<?php namespace Raideer\Tweech\Chat; class ChatHelper { protected $chat; public function __construct(Chat $chat) { $this->chat = $chat; } public function send($message) { $this->chat->privmsg($message); } public function message($message) { $this->send($m...
mit
travishorn/valivore
index.js
152
'use strict'; var valivore = { cleanValidate: require('./lib/clean-validate'), validate: require('./lib/validate'), }; module.exports = valivore;
mit
mongorian-chop/progress
app/helpers/application_helper.rb
479
module ApplicationHelper def select_by_model(object, method) select object.class.name.downcase, method, build_model_list(method), :selected => object.send(method.to_s) end private def build_model_list(method) default = [[t('Please select'), '']] str = method.to_s.humanize list = str. ...
mit
nnaabbcc/exercise
windows/pw6e.official/CSharp/Chapter03/RoutedEvents6/RoutedEvents6/App.xaml.cs
3618
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.P...
mit
iurimatias/embark-framework
packages/core/utils/src/toposort.js
2277
// from https://github.com/marcelklehr/toposort /** * Topological sorting function * * @param {Array} edges * @returns {Array} */ module.exports = function(edges) { return toposort(uniqueNodes(edges), edges); }; module.exports.array = toposort; function toposort(nodes, edges) { var cursor = nodes.length, so...
mit
misshie/bioruby-ucsc-api
lib/bio-ucsc/cb3/chaincaerem2link.rb
3085
# Copyright:: # Copyright (C) 2011 MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp> # License:: The Ruby licence (Ryby's / GPLv2 dual) # # this table is actually separated # into "chr1_*", "chr2_*", etc. This class dynamically # define *::Chr1_*, *::Chr2_*, etc. The # Rmsk.find_by_interval calls ...
mit
YoshinoriN/Kinugasa
Source/Shared/System/Kinugasa.Map/Properties/AssemblyInfo.cs
1283
using System.Resources; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("Kinugasa.Map")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfigu...
mit
gliss/oscommerce-bootstrap
catalog/includes/modules/boxes/bm_currencies.php
4674
<?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class bm_currencies { var $code = 'bm_currencies'; var $group = 'boxes'; var $title; var $description; var $sort_order; ...
mit
bitzesty/import_csv
app/utils/csv_import_util.rb
790
class CsvImportUtil # begin # financial.currency = Currency.find_by!(code: attributes[:currency]) # rescue ActiveRecord::RecordNotFound => e # financial.errors.add(:base, "Currency was not found - #{attributes[:currency]}") # raise e # end def self.assign_belongs_to_relation(object, attribute, relat...
mit
phpinpractice/event-store
src/Stream/Event.php
5961
<?php namespace PhpInPractice\EventStore\Stream; use PhpInPractice\EventStore\Stream\Event\Metadata; use PhpInPractice\EventStore\Stream; /** * Immutable entity representing a single event from the event stream. * * When an instance of this class is created it is not associated with an Event Stream yet and some i...
mit
ugent-cros/cros-core
test/UserTest.java
18791
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import controllers.SecurityController; import exceptions.IncompatibleSystemException; import models.User; import org.fest.assertions.Fail; import org.junit.AfterCl...
mit
NikolayKostov-IvayloKenov/TripExchangeSystem
Client/app/js/controllers/TripDetailsCtrl.js
1335
'use strict'; tripExchange.controller('TripDetailsCtrl', ['$scope', '$routeParams', '$location', 'identity', 'notifier', 'TripsResource', function TripDetailsCtrl($scope, $routeParams, $location, identity, notifier, TripsResource) { TripsResource.byId($routeParams.id) .$promise .the...
mit
darkrasid/gitlabhq
app/assets/javascripts/main.js
11106
/* eslint-disable func-names, space-before-function-paren, no-var, quotes, consistent-return, prefer-arrow-callback, comma-dangle, object-shorthand, no-new, max-len, no-multi-spaces, import/newline-after-import, import/first */ /* global bp */ /* global Flash */ /* global ConfirmDangerModal */ /* global Aside */ impor...
mit
kamil-mrzyglod/Scythe.Fody
Scythe.Fody/Scythes/ParametersCount.cs
1094
namespace Scythe.Fody.Scythes { using System.Collections.Generic; using System.Linq; using System.Xml.Linq; using Mono.Cecil; public class ParametersCount : IScythe { /// <summary> /// Checks whether given method parameters count /// is less than the defined threshold ...
mit
skeiter9/javascript-para-todo_demo
webapp/node_modules/webpack/benchmark/fixtures/752.js
104
require("./94.js"); require("./188.js"); require("./376.js"); require("./751.js"); module.exports = 752;
mit
eloquent/lockbox-java
src/test/java/co/lqnt/lockbox/test/FunctionalTest.java
12489
/* * This file is part of the Lockbox package. * * Copyright © 2013 Erin Millard * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package co.lqnt.lockbox.test; import co.lqnt.lockbox.BoundDecryptionCipher; import co.lqnt.lockbox.B...
mit
barumel/ultritium-radio-player
src/js/components/song/modal/Playlist.js
2445
import React from 'react'; import { Row, Col, Button, Modal, FormGroup, ControlLabel, ListGroup, ListGroupItem, Checkbox, ToggleButton } from 'react-bootstrap'; import { filter } from 'lodash'; export class PlaylistModal extends React.Component { constructor() { super(); this.state = { active: [] ...
mit
Onefootball/onefootball-angular-components
src/filters/ofCyrillic2latin.filter.js
1849
angular .module('onefootball.components.filters') .filter('ofCyrillic2Latin', ofCyrillic2Latin); function ofCyrillic2Latin() { return function (input) { var a = { "Ё": "YO", "Й": "I", "Ц": "TS", "У": "U", "К": "K", "Е": "E", ...
mit
cusmanof/fp_ci
application/controllers/Auth.php
25948
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Auth extends CI_Controller { function __construct() { parent::__construct(); $this->load->database(); $this->load->library(array('ion_auth','form_validation')); $this->load->helper(array('url','language')); $this->form_validat...
mit
SuLab/scheduled-bots
scheduled_bots/inxight/load_data.py
5648
import base64 import datetime import pickle import time from collections import defaultdict from itertools import chain import requests from tqdm import tqdm # url = "https://stitcher.ncats.io/api/stitches/v1/9ZOQ3TZI87" # d = requests.get(url).json() xref_keys = ['CAS', 'Cas', 'ChEMBL', 'ChemblId', 'CompoundCID', 'Co...
mit