repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Draeius/rhun-server
src/NavigationBundle/Location/GemShopLocation.php
588
<?php namespace NavigationBundle\Location; use AppBundle\Util\Price; /** * Description of GemShopLocation * * @author Draeius */ class GemShopLocation extends GenericLocation { public function getVariables() { $params = parent::getVariables(); $settings = $this->getManager()->getRepository('...
mit
jonathands/dhtiny
demos/webtop/taskbar.js
1752
// JScript ファイル $dh.newClass("Taskbar", GridManager, { // Only one taskbar deltaHeight: 5, init: function(_height) { _height= _height || 28; GridManager.prototype.init.apply(this, [90,3, 1, 5, 100, _height-3,0]); window.Taskbar = this; // Only one? this._height = _height...
mit
wilkgr76/curious-robot
start.py
1345
import random, pygame, os, sys from pygame.locals import * background_colour = (208,240,255) (width, height) = (256, 256) tw = 16 # Texture Width screen = pygame.display.set_mode((width, height)) pygame.display.set_caption('Curious Robot') screen.fill(background_colour) # Load Textures ground = pygame.image.load(...
mit
egg-/package-tracker
lib/tracker/ems.js
5743
'use strict' var request = require('request') var async = require('async') var cheerio = require('cheerio') var moment = require('moment') var tracker = require('../') var STATUS_MAP = { '접수': 'RECEIVE', '발송': 'DEPARTURE', '발송준비': 'DEPARTURE_READY', '도착': 'ARRIVAL', '발송교환국에도착': 'ARRIVAL_OUTWARD_OFFICE', ...
mit
plahteenlahti/Pakupaku
Pakupaku/src/main/java/pakupaku/piirrettavat/Syotava.java
635
/* * 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 pakupaku.piirrettavat; import java.awt.Graphics; import java.awt.Rectangle; import pakupaku.logiikka.Peli; import pakupaku.log...
mit
samatdav/jenkins
core/src/main/java/hudson/model/UpdateCenter.java
79635
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Yahoo! Inc., Seiji Sogabe * * 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 restric...
mit
lxy528/Benchmark
src/main/java/xss/BenchmarkTest/BenchmarkTest02130.java
2128
/** * OWASP Benchmark Project v1.3alpha * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see * <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>. * * The OWASP Benchmark is free software: you can redistrib...
mit
dorkbot/Dorkbots-Broadcasters
C#/Dorkbots/Broadcasters/BroadcastedEvents.cs
1693
/* * Author: Dayvid jones * http://www.dayvid.com * Copyright (c) Superhero Robot 2016 * http://www.superherorobot.com * Version: 1.0.0 * * Licence Agreement * * You may distribute and modify this class freely, provided that you leave this header intact, * and add appropriate headers to indicate your changes. Credit ...
mit
chr-krenn/chr-krenn-fhj-ws2017-sd17-pse
src/main/java/org/se/lab/service/PostService.java
388
package org.se.lab.service; import org.se.lab.db.data.Community; import org.se.lab.db.data.Post; import org.se.lab.db.data.User; import java.util.Date; public interface PostService { Post createRootPost(User user, String text, Date created); Post createChildPost(Post parentpost, Community community, User u...
mit
Mariya2/Trip_Assistant
client/app/routes/homePage/login/LoginUserController.js
1214
travelAssistant.controller("LoginUserController", ['$scope', 'userService', '$http', '$location', 'authentication', '$timeout', '$rootScope', function LoginUserController($scope, userService, $http, $location, authentication, $timeout, $rootScope){ $scope.user={}; $scope.login = function(){ var user = ...
mit
protherj/Umbraco-CMS
src/umbraco.businesslogic/BasePages/UmbracoEnsuredPage.cs
4854
using System; using Umbraco.Core.Logging; using System.Linq; using Umbraco.Core; using Umbraco.Core.IO; using Umbraco.Core.Logging; using umbraco.BusinessLogic; using umbraco.businesslogic.Exceptions; namespace umbraco.BasePages { /// <summary> /// UmbracoEnsuredPage is the standard protected page ...
mit
gmarciani/opmap
test/optmodel/TestRestricted.java
1873
package optmodel; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; import application.SampleApplication; import architecture.SampleArchitecture; import control.exceptions.ModelException; import control.exceptions.SolverException; import control.solver.OPPSolver; ...
mit
StoianCatalin/fiiPractic2016
app/Http/Controllers/ApplyController.php
1869
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use Validator; use Auth; use App\Question; use App\Response; use App\Training; use App\Applicant; class ApplyController extends Controller { public function registerUserResponses(Reques...
mit
Yukinoshita47/Yuki-Chan-The-Auto-Pentest
Module/Spaghetti/modules/fingerprints/framework/framework.py
617
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Spaghetti: Web Application Security Scanner # # @url: https://github.com/m4ll0k/Spaghetti # @author: Momo Outaadi (M4ll0k) # @license: See the file 'doc/LICENSE' import aspx_mvc import cakephp import cherry import django import nette import rack import rails import sym...
mit
iontorrent/Torrent-Variant-Caller-stable
public/java/src/org/broadinstitute/sting/analyzecovariates/AnalysisDataManager.java
5602
/* * Copyright (c) 2010 The Broad Institute * * 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, mer...
mit
mctep/mc-auth-service
src/lib/password/index.js
705
const promisify = require('bluebird').promisify; const bcrypt = require('bcryptjs'); const crypto = require('crypto'); const generateHash = promisify(bcrypt.hash); const compareHash = promisify(bcrypt.compare); module.exports = { createPasswordHash, checkPasswordHash }; function makeBeacon(username, password, SECRET...
mit
CS2103JAN2017-F14-B3/main
src/test/java/guitests/SelectCommandTest.java
2785
package guitests; import static org.junit.Assert.assertEquals; import org.junit.Test; import onlythree.imanager.logic.commands.SelectCommand; import onlythree.imanager.model.task.ReadOnlyTask; public class SelectCommandTest extends TaskListGuiTest { @Test public void selectTask_nonEmptyList() { int...
mit
sconway/portfolio
js/freelancer.js
1979
// Freelancer Theme JavaScript (function($) { "use strict"; // Start of use strict // jQuery for page scrolling feature - requires jQuery Easing plugin $('.page-scroll a').bind('click', function(event) { var $anchor = $(this); $('html, body').stop().animate({ scrollTop: ($($anc...
mit
Carine2126/autoABS
src/ABS/ManageBundle/Controller/ManageController.php
465
<?php /** * Created by PhpStorm. * User: CarineFixe * Date: 19/01/2015 * Time: 21:37 */ namespace ABS\ManageBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; class ManageController e...
mit
robertBojor/rb-utils
src/RobertB/Utils/UtilsServiceProvider.php
628
<?php namespace RobertB\Utils; use Illuminate\Support\ServiceProvider; use Illuminate\Foundation\AliasLoader; class UtilsServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Register the service provider. *...
mit
doy/libvt100-python
t/mode_test.py
8405
from . import VT100Test class ModeTest(VT100Test): def test_modes(self): assert not self.vt.hide_cursor() assert not self.vt.application_keypad() assert not self.vt.application_cursor() assert not self.vt.mouse_reporting_press() assert not self.vt.mouse_reporting_press_relea...
mit
zaabjuda/GB_Fabrica
guest_book/admin.py
2423
# coding=utf-8 __author__ = "Dmitry Zhiltsov" __copyright__ = "Copyright 2015, Dmitry Zhiltsov" from django.contrib.auth.admin import admin from guest_book.models import GuestBook, GuestBookMessages from web.admin import admin_site class _BaseGuestBookAdmin(admin.ModelAdmin): def _check_sp(self): return...
mit
jiawen/Halide
src/StorageFolding.cpp
14096
#include "StorageFolding.h" #include "IROperator.h" #include "IRMutator.h" #include "Simplify.h" #include "Bounds.h" #include "IRPrinter.h" #include "Substitute.h" #include "Debug.h" #include "Monotonic.h" #include "ExprUsesVar.h" namespace Halide { namespace Internal { namespace { int64_t next_power_of_two(int64_t ...
mit
cezarykluczynski/stapi
etl/src/main/java/com/cezarykluczynski/stapi/etl/template/comic_series/dto/ComicSeriesTemplateParameter.java
312
package com.cezarykluczynski.stapi.etl.template.comic_series.dto; import com.cezarykluczynski.stapi.etl.template.publishable_series.dto.PublishableSeriesTemplateParameter; public class ComicSeriesTemplateParameter extends PublishableSeriesTemplateParameter { public static final String ISSUES = "issues"; }
mit
cstj/CSharpHelpers
Helpers.ActiveDirectoryHelpers/ActiveDirectoryHelpers.cs
3410
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.DirectoryServices.AccountManagement; using System.DirectoryServices; namespace Helpers { public class ActiveDirectoryHelpers { public static bool IsUserDomainMember(string domain, string group) {...
mit
liuhll/MvcCore.Demo.Solution
src/MvcCore.Demo/MvcCoreDemo.Application/Interfaces/IOrderAppService.cs
223
using MvcCoreDemo.Application.Interfaces.Common; using MvcCoreDemo.Domain.Entities.Model; namespace MvcCoreDemo.Application.Interfaces { public interface IOrderAppService : IAppService<Order> { } }
mit
bandzoogle/rackspace-email-api
lib/rackspace/email/api/customers.rb
260
# frozen_string_literal: true module Rackspace module Email module Api class Customers < Rackspace::Email::Api::Endpoint self.request_base = 'customers' self.data_class = Rackspace::Email::Api::Customer end end end end
mit
Daekesh/KeshUI
Docs/html/class_u_k_u_i_component_button_widget.js
1721
var class_u_k_u_i_component_button_widget = [ [ "UKUIComponentButtonWidget", "class_u_k_u_i_component_button_widget.html#a78e5549d076f1322c4262c4eac7714bc", null ], [ "GetButtonComponent", "class_u_k_u_i_component_button_widget.html#a25c39308eb7e384ba984120068a2f826", null ], [ "GetComponentIndex", "class_u...
mit
jmarkstevens/AngularPatterns
Angular1.x/ReduxFetch/ui-src/store/api.Actions.js
459
import 'whatwg-fetch'; let jsonHeader = {'Accept': 'application/json', 'Content-Type': 'application/json'}; export function apiSetData(data) { return (dispatch) => { fetch('/routes/setData', {method: 'POST', headers: jsonHeader, body: JSON.stringify(data)}) .then(() => { fetch('/routes/getData') ...
mit
tarunchhabra26/PythonPlayground
FSM/fsm2.py
2471
#!/usr/bin/python from __future__ import division,print_function import random,os #sys.dont_write_bytecode=True # usage: # python fsm.py 21083 # for a long-ish run # python fsm.py 1 # for a short run #---------------------------------------------- def fsm0(): m = Machine() entry = m.state("entry") # f...
mit
manishramanan15/SAPUI5
WebContent/d/view/MainContent.view.js
1628
sap.ui.jsview("sap.ui.fame.d.view.MainContent", { /** Specifies the Controller belonging to this View. * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller. * @memberOf d.view.MainContent */ getControllerName : function() { return "sap.ui.fame.d.view.MainC...
mit
Vizzuality/tocapu
public/scripts/controllers/default.js
3511
define([ 'underscore', 'backbone', 'backbone-super', 'handlebars', 'facade', 'config', 'views/abstract/base', 'views/account', 'views/query', 'views/chart', 'views/datatable', 'views/modal', 'collections/data', 'text!templates/default.handlebars', 'text!sql/scatter.pgsql', 'text!sql/pie....
mit
lexnapoles/bayuk
src/reducers/currentUser.js
869
import { REHYDRATE } from "redux-persist/constants"; import { REGISTER_USER, LOGIN_USER, FETCH_CURRENT_USER } from "../constants/actionTypes"; import { getJwtPayload, isNotEmpty } from "../utils"; const currentUser = (state = {}, action) => { switch (action.type) { case REHYDRATE: { return { ...
mit
albu89/Hive2Hive-dev
org.hive2hive.core/src/main/java/org/hive2hive/core/file/FileChunkUtil.java
4603
package org.hive2hive.core.file; import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.util.List; import org.apache.commons.io.FileUtils; import org.hive2hive.core.model.Chunk; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class FileChunkUtil { private stat...
mit
robo-coin/robocoin-wallet-source
src/qt/locale/bitcoin_zh_CN.ts
112165
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About robocoin</source> <translation>关于莱特币</translation> </message>...
mit
resd/massive-octo-batman
src/main/java/algorithm/bastrikov/Work1OldStableVersion.java
7296
package algorithm.bastrikov; import algorithm.util.DuplicatesMethods; import static algorithm.util.DuplicatesMethods.remove; public class Work1OldStableVersion extends WorkBase implements Methods { /*double[][] M0 = { // Need to test {0, 0, 83, 9, 30, 6, 50}, {0, 0, 66, 37, 17, 12, 26},...
mit
sineflow/ElasticsearchBundle
Document/Provider/AbstractProvider.php
1173
<?php namespace Sineflow\ElasticsearchBundle\Document\Provider; use Sineflow\ElasticsearchBundle\Document\DocumentInterface; /** * Base document provider */ abstract class AbstractProvider implements ProviderInterface { /** * Returns a PHP Generator for iterating over the full dataset of source data that ...
mit
maximebedard/remets
app/services/acquaintances_providers/github.rb
86
module AcquaintancesProviders class Github def fetch [] end end end
mit
kitboy/docker-shop
html/ecshop3/ecshop/h5/modules/my-balance/my-balance.controller.js
2603
(function () { 'use strict'; angular .module('app') .controller('MyBalanceController', MyBalanceController); MyBalanceController.$inject = ['$scope', '$http', '$window', '$location', '$state', '$rootScope', 'API', 'BalanceModel']; function MyBalanceController($scope, $http, $window, $locatio...
mit
ntaloventi/edocument
application/controllers/Mydept.php
19082
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Mydept extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('edocumentlibrary'); $this->load->model('edocumentmodel'); $apps_url = base_url().strtolower(get_c...
mit
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/MXF/WorkingTitle.php
775
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\MXF; use JMS\Serializer\Annotation\ExclusionPolicy; use...
mit
try-dash-now/gDasH
lib/common.py
13968
#!/usr/bin/python '''The MIT License (MIT) Copyright (c) 2017 Yu Xiong Wei(try.dash.now@gmail.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...
mit
Maayam/koza-extranet
src/AppBundle/Repository/MissionRepository.php
237
<?php namespace AppBundle\Repository; /** * MissionRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class MissionRepository extends \Doctrine\ORM\EntityRepository { }
mit
ttanimichi/rails
railties/lib/rails/commands/secrets/secrets_command.rb
1715
require "active_support" require_relative "../../secrets" module Rails module Command class SecretsCommand < Rails::Command::Base # :nodoc: no_commands do def help say "Usage:\n #{self.class.banner}" say "" say self.class.desc end end def setup ...
mit
adammcarth/OpenLog
js/capture.js
3170
var Logger = function() { this.l = window.location; this.SERVER = this.l.protocol + "//" + this.l.hostname + ":{{SERVER_PORT}}/log"; this.LOGGING_LEVELS = { info: true, warn: true, error: true }; var key = "openLogQueue", store = localStorage, tags = document.getElementsByTa...
mit
nicecoinx/nicecoin
src/qt/locale/bitcoin_zh_CN.ts
112199
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About NiceCoin</source> <translation>关于莱特币</translation> </message>...
mit
shvets/cafebabe
cafebabe/src/main/java/org/sf/cafebabe/task/classfile/SearchDialog.java
11534
// SearchDialog.java package org.sf.cafebabe.task.classfile; import org.sf.cafebabe.Constants; import org.sf.cafebabe.gadget.classtree.EntryNode; import org.sf.cafebabe.gadget.classtree.PlainClassTree; import org.sf.classfile.*; import org.sf.classfile.attribute.CodeAttribute; import org.sf.classfile.attribute.Method...
mit
Amossov/Margatsni
Margatsni/Properties/AssemblyInfo.cs
1433
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; // 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. [ass...
mit
skritter/skritter-html5
app/components/practice/toolbar/PracticePadToolbarComponent.js
3218
const GelatoComponent = require('gelato/component'); /** * @class PracticePadToolbarComponent * @extends {GelatoComponent} */ const PracticePadToolbarComponent = GelatoComponent.extend({ events: { 'click .nav-list-btn': 'handleNavListBtnClicked', 'click .vocab-item': 'handleVocabItemClicked', }, /**...
mit
hrtrftrtwqh/0000
src/qt/locale/bitcoin_fr.ts
133491
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Cleverbot</source> <translation>Au sujet de Cleverbot</translation> </message> <message> ...
mit
crayygy/cpp-primer-notes
sources/9/find-str.cpp
1669
/* * This file contains code from "C++ Primer, Fifth Edition", by Stanley B. * Lippman, Josee Lajoie, and Barbara E. Moo, and is covered under the * copyright and warranty notices given in that book: * * "Copyright (c) 2013 by Objectwrite, Inc., Josee Lajoie, and Barbara E. Moo." * * * "The authors a...
mit
rmulton/lawen
webservice_caller/VelibAPICaller.py
496
from webservice_caller._ParisOpenDataAPICaller import _ParisOpenDataAPICaller from model.Transport.Velib import Velib class VelibAPICaller(_ParisOpenDataAPICaller): ''' Class that calls api to get itinirary using velib ''' def __init__(self,request): super().__init__(request) self._url...
mit
Shahlal47/crud01
academicinfo/add.php
826
<?php //print_r($_POST); $level_of_education = $_POST['level_of_education']; $exam_title = $_POST['exam_title']; $subject = $_POST['subject']; $institution = $_POST['institution']; $result_type = $_POST['result_type']; $result = $_POST['result']; $passing_year = $_POST['passing_year']; $duration = $_POST['duration']; ...
mit
jns300/TravelAgency.NET
TravelAgency.WF/Default.aspx.designer.cs
767
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
mit
SharpeRAD/Cake
src/Cake/Autofac/CakeModule.cs
4248
using Autofac; using Cake.Arguments; using Cake.Commands; using Cake.Core; using Cake.Core.Configuration; using Cake.Core.Diagnostics; using Cake.Core.IO; using Cake.Core.IO.NuGet; using Cake.Core.Packaging; using Cake.Core.Scripting; using Cake.Core.Scripting.Analysis; using Cake.Diagnostics; using Cake.NuGet; using ...
mit
kevinladkins/rails-library
app/models/book.rb
2317
class Book < ApplicationRecord extend Searchable::ClassMethods enum classification: {fiction: 0, non_fiction: 1} belongs_to :author has_many :loans has_many :borrowers, :through => :loans, :source => :patron has_many :book_categories has_many :categories, through: :book_categories validates :copies,...
mit
fabricio-oliveira/tp_healthcheck
lib/tp_healthcheck.rb
109
# frozen_string_literal: true module TPHealthcheck require 'tp_healthcheck/engine' if defined?(Rails) end
mit
omniscale/anol
examples/dynamicgeojson.js
1536
proj4.defs("EPSG:25832","+proj=utm +zone=32 +ellps=GRS80 +units=m +no_defs"); var stationLayer; angular.module('example', ['anol.zoom']) .config(['MapServiceProvider', 'LayersServiceProvider', function(MapServiceProvider, LayersServiceProvider) { MapServiceProvider.addView(new ol.View({ projection: ol.proj...
mit
dpla/KriKri
lib/krikri/parsers/oai_parser_headers.rb
589
module Krikri ## # Concern for Krikri::XmlParsers with oai-style headers # @example # class MyOaiParser < Krikri::XmlParser # include Krikri::OaiParserHeaders # end module OaiParserHeaders extend ActiveSupport::Concern ## # @return [Krikri::Parser::ValueArray] a ValueArray containi...
mit
gionkunz/robolino
src/js/core/image-utilities.js
1221
export function isPowerOfTwo(length) { return (length & (length - 1)) === 0; } export function nextHighestPowerOfTwo(length) { --length; for (let i = 1; i < 32; i <<= 1) { length = length | length >> i; } return length + 1; } export function convertImageToPowerOfTwo(image) { if (!isPowerOfTwo(image.wi...
mit
Shartul/Page_Object_Framework
features/support/hooks.rb
709
include SauceLabs Before do ENV['BROWSER'] = "chrome" if ENV['BROWSER'].nil? ENV['WHERE'] = "local" if ENV['WHERE'].nil? if(ENV['WHERE']=="remote") @browser = SauceLabs.watir_browser(ENV['BROWSER'].to_sym,{url:"http://localhost:4444/wd/hub"}) else @browser = SauceLabs.watir_browser(ENV['BROWSER'].to_sym...
mit
hsp-users-jp/pkg.hsp-users.jp
fuel/app/migrations/009_create_hsp_specifications.php
840
<?php /** * pkg.hsp-users.jp - HSP Package DB * * @author sharkpp * @license MIT License * @copyright 2014 sharkpp * @link http://www.sharkpp.net/ */ namespace Fuel\Migrations; class Create_hsp_specifications { public function up() { \DBUtil::create_table('hsp_specifications', array( 'id' ...
mit
layersol/schoolwork
SmartSchoolManagementSystem/SmartSchoolManagementSystem/AssignClass.cs
400
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace SmartSchoolManagementSystem { public partial class AssignClass : Form { public...
mit
deregenboog/ecd
src/IzBundle/Form/DoelgroepType.php
898
<?php namespace IzBundle\Form; use AppBundle\Form\BaseType; use IzBundle\Entity\Doelgroep; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class DoelgroepType ex...
mit
GamerBet/lol-replay-downloader-cli
src/EloGank/Component/Configuration/Exception/ConfigurationFileNotFoundException.php
484
<?php /* * This file is part of the "EloGank League of Legends Replay Downloader" package. * * https://github.com/EloGank/lol-replay-downloader-cli * * For the full license information, please view the LICENSE * file that was distributed with this source code. */ namespace EloGank\Component\Configur...
mit
strawbrary/php-blake2
tests/b2sum.phpt
343
--TEST-- Verify the b2sum is an alias to blake2_file and have the same output --SKIPIF-- <?php if (!extension_loaded("blake2")) print "skip"; ?> --FILE-- <?php echo b2sum('tests/sample.txt').PHP_EOL; ?> --EXPECT-- a61b779ff667fbcc4775cbb02cd0763b9b5312fe6359a44a003f582ce6897c81a38a876122ce91dfec547d582fe269f6ea9bd291b6...
mit
kherge-abandoned/php-json
tests/KHerGe/JSON/JSONTest.php
8844
<?php namespace Test\KHerGe\JSON; use KHerGe\JSON\Exception\Decode\ControlCharacterException; use KHerGe\JSON\Exception\Decode\DepthException as DecodeDepthException; use KHerGe\JSON\Exception\Decode\StateMismatchException; use KHerGe\JSON\Exception\Decode\SyntaxException; use KHerGe\JSON\Exception\Decode\UTF8Excepti...
mit
knuu/competitive-programming
poj/poj3041.cpp
2666
// for poj (old g++ version, cannot use bits/stdc++.h) #include <cassert> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <map> #include <set> #include <queue> #include <vector> #include <iostream> #include <bitset> #include <algorithm> #include <complex> #include <string> #include <u...
mit
DennisWandschura/vxEngine
source/vxRenderAspectGL/dllExport.cpp
930
#include "dllExport.h" #include "RenderAspect.h" #include "EditorRenderAspect.h" #include <vxEngineLib/debugPrint.h> RenderAspectInterface* createRenderAspect() { auto result = (RenderAspect*)_aligned_malloc(sizeof(RenderAspect), __alignof(RenderAspect)); new (result) RenderAspect{}; return result; } void destroy...
mit
gabrielwr/React-Retirement-Calculator
server/index.js
934
const path = require('path'); const express = require('express'); const volleyball = require('volleyball'); const bodyParser = require('body-parser'); const session = require('express-session'); const app = express(); const PORT = process.env.PORT || 3000; app.use(express.static(path.join(__dirname, '../public'))); ...
mit
ppschweiz/MemberDatabase
Organigram/MemberAdmin/Resources.Designer.cs
35145
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.18444 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
mit
nileshk/myconnector
src/main/java/com/myconnector/web/controller/ReleaseUserSelectionController.java
2516
package com.myconnector.web.controller; import java.util.Iterator; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import org.springframework.validation.BindException; import org.springframework.web.servlet.ModelAndVi...
mit
waltertschwe/guide-to-the-stars
app/AppKernel.php
1550
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Sec...
mit
hakanensari/peddler
lib/peddler/xml_response_parser.rb
527
# frozen_string_literal: true require 'peddler/xml_parser' module Peddler # @!visibility private class XMLResponseParser < XMLParser MATCHER = /^Message$|^Node$|Report|Result/.freeze private_constant :MATCHER def next_token parse.fetch('NextToken', false) end private # FIXME: In n...
mit
ttasanen/ruby-ll
spec/ll/message_spec.rb
2355
require 'spec_helper' describe LL::Message do describe '#initialize' do before do @source_line = source_line('') @message = described_class.new(:error, 'Foobar', @source_line) end it 'sets the message type' do @message.type.should == :error end it 'sets the message' do ...
mit
CslaGenFork/CslaGenFork
branches/V4-3-RC/Solutions/CslaGenFork/Metadata/UnitOfWorkPropertyCollection.cs
805
using System.Collections.Generic; namespace CslaGenerator.Metadata { public class UnitOfWorkPropertyCollection : List<UnitOfWorkProperty> { public UnitOfWorkProperty Find(string name) { foreach (UnitOfWorkProperty c in this) { if (c.Name.Equals...
mit
minha-vida/molotov-ads
build/src/plugins/rubicon-fastlane-dfp/rubicon.fastlane.dfp.plugin.js
5877
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var viewport_1 = require("../../modules/viewport"); var rubicon_fastlane_dfp_adslot_1 = require("./rubicon.fastlane.dfp.adslot"); var logger_1 = require("../../modules/logger"); var autorefresh_1 = require("../../modules/autorefresh"); var Rub...
mit
ShelbyZ/UCWA.NET
UCWA.NET/Transport/Response.cs
160
using System.Net; namespace UCWA.NET.Transport { public class Response : WebAction { public HttpStatusCode StatusCode { get; set; } } }
mit
bluntsoftware/glue-client
app/services/applicationPersistentToken/applicationPersistentToken.js
558
'use strict'; // UserManager ApplicationPersistentToken Service catwalkApp.factory('UserManagerApplicationPersistentToken', ['UserManagerBaseService',function (UserManagerBaseService) { var entityUrl = UserManagerBaseService.getEntityUrl('applicationPersistentToken'); return UserManagerBaseService.getResource...
mit
openfact/openfact
src/main/java/org/openfact/core/files/ftp/FtpRouter.java
1815
package org.openfact.core.files.ftp; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.cdi.ContextName; import org.apache.camel.component.properties.PropertiesComponent; import org.jboss.logging.Logger; import org.wildfly.swarm.spi.runtime.annotations.ConfigurationValue; import org.wildfly.swarm.sp...
mit
fabiosv/arquiteturadesoftware
asw.rpg1/src/com/github/awvalenti/arquiteturadesoftware/rpg1/versao5/arquiteturadefinida/logicajogo/Elemento.java
447
package com.github.awvalenti.arquiteturadesoftware.rpg1.versao5.arquiteturadefinida.logicajogo; public enum Elemento { AGUA("/agua.png"), MACA("/maca.png"), PERSONAGEM("/personagem.png"), GRAMA("/grama.png"), PORTAL("/passagem.png"), ; private final String caminhoImagem; Elemento(String caminho...
mit
mabsimms/azure-samples-events-sandbox
eph-reader/src/main/java/com/microsoft/azure/samples/ephreader/EventHubReaderConfiguration.java
751
package com.microsoft.azure.samples.ephreader; import java.time.Duration; import java.util.function.Function; public class EventHubReaderConfiguration { public String ConsumerGroupName; public String EventHubNamespace; public String EventHubName; public String SasKeyName; public String SasKeyValue...
mit
chooie/Aurelia-Playground
src/app.js
530
import {Router} from 'aurelia-router'; export class App { static inject() { return [Router]; } constructor(router) { this.router = router; this.router.configure(config => { config.title = 'Aurelia'; config.map([ { route: ['','welcome'], moduleId: 'welcome', nav: true, ti...
mit
my0sot1s/son-goku
globals.js
2491
var path = require('path'); const config = { dbGenUrl: dbInfor => { if (dbInfor.isLocal) { return `${dbInfor.url}:${dbInfor.port}/${dbInfor.dbName}`; } else { return `mongodb://${dbInfor.dbuser}:${dbInfor.dbpassword}@${dbInfor.url}:${dbInfor.port}/${dbInfor.dbName}`; } }, logFile: path.joi...
mit
xanthakita/toque
htdocs/phpwork/phpplot/classes/plotstyles/StylePointConnected.php
1481
<?php /* * Created on 02.12.2006 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class StylePointConnected extends PlotStyle { private $linewidth; private $radius; private $vertices; public $color; public $labelcolor; priv...
mit
bradyhullopeter/root
app/views/architecture/architecture.spec.js
397
'use strict'; import { assert } from 'chai'; import ArchCtrl from './architecture-controller'; let archCtrl; describe('app.architecture module', () => { beforeEach(() => { archCtrl = new ArchCtrl(); }); it('should be initialized', () => { assert.equal(archCtrl.name, 'Architecture Contro...
mit
georgesks/sistema
versiones/v_1_11_0/views/header.php
26204
<?php defined('BASEPATH') OR exit('No se puede acceder al archivo directamente.'); ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="description"...
mit
FloKnapp/faulancer
src/Controller/Controller.php
5481
<?php namespace Faulancer\Controller; use Faulancer\Exception\FileNotFoundException; use Faulancer\Exception\InvalidArgumentException; use Faulancer\Exception\ServiceNotFoundException; use Faulancer\Http\Http; use Faulancer\Http\Request; use Faulancer\Http\Response; use Faulancer\Service\AuthenticatorService; use Fau...
mit
rokon12/Generic-CrudDao
CodeExplosion.GenericDAO/test/org/codexplo/cruder/dao/test/UserDaoTest.java
1625
/**************** * @author: Bazlur Rahman Rokon * @email: anm_brr@live.com * @Dated: Jun 20, 2012 **************/ package org.codexplo.cruder.dao.test; import static org.junit.Assert.assertNotNull; import java.util.List; import junit.framework.Assert; import org.codexplo.cruder.dao.IUserDao; ...
mit
andruby/chef-suricata
recipes/pulledpork.rb
837
# Installs and configures pulled pork (to keep your rulesets up to date) # Install pre-requisites package "libcrypt-ssleay-perl" package "liblwp-protocol-https-perl" # Install latest version van svn trunk remote_file node['pulledpork']['bin'] do source node['pulledpork']['source_url'] end file node['pulledpork']['...
mit
hshn-labsw-nfc/schnitzel
client/src/app/admin/menue/menue.component.ts
767
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core'; @Component({ selector: 'app-admin-menue', templateUrl: './menue.component.html', styleUrls: ['./menue.component.css'] }) export class AdminMenueComponent implements OnInit { public menueItems: Array<string>; currentSelection = '';...
mit
sriram-mahavadi/extlp
tests/algo/test_stable_ksort.cpp
2042
/*************************************************************************** * tests/algo/test_stable_ksort.cpp * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2003, 2008 Roman Dementiev <dementiev@mpi-sb.mpg.de> * * Distributed under the Boost Software License, Version 1.0. * (Se...
mit
Arakis/get-color-of-image
src/Properties/AssemblyInfo.cs
991
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("GetColorOfImage")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [ass...
mit
AnthonyClergeot/gsbfrais
src/ACYG/GsbFraisBundle/Entity/Lignefraisforfait.php
2741
<?php namespace ACYG\GsbFraisBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Lignefraisforfait * * @ORM\Table(name="LigneFraisForfait", indexes={@ORM\Index(name="FK_LigneFraisForfait_id_FraisForfait", columns={"id_FraisForfait"}), @ORM\Index(name="FK_LigneFraisForfait_id_FicheFrais", columns={"id_FicheFrais...
mit
ChaseMalik/DestinyRaidReport
src/services/raid-report/util.ts
680
import { Observable, of as observableOf, throwError as observableThrowError } from 'rxjs'; import { map, mergeMap } from 'rxjs/operators'; import { RaidReportResponse } from '../../types/raid-report'; import { createRequest } from '../util'; import { API_PATH, RAID_REPORT_URL } from './constants'; export const create...
mit
welchbj/tt
docs/conf.py
1918
import codecs import os import sys from datetime import datetime HERE = os.path.dirname(os.path.abspath(__file__)) BASE_DIR = os.path.dirname(HERE) TT_MODULE_DIR = os.path.join(BASE_DIR, 'tt') TT_VERSION_FILE = os.path.join(TT_MODULE_DIR, 'version.py') sys.path.insert(0, BASE_DIR) with codecs.open(TT_VERSION_FILE, ...
mit
steve9164/server-config
scripts/create_layer.py
18593
#!/usr/bin/env python3 # Written for Python 3.6 'Create vector tile layers with correspondong vector-tile-server (or Tessera) and TerriaMap configuration files' # Ideas: # - Main function that converts 1 GeoJSON/shapefile to a vector tile layer with TerriaMap config and test files # - Use asycnio from contextlib impo...
mit
Logi-CE/fmup
tests/Import/Config/Field/Formatter/TextToBool.php
2444
<?php /** * TextToBool.php * @author: jmoulin@castelis.com */ namespace FMUPTests\Import\Config\Field\Formatter; class TextToBoolTest extends \PHPUnit_Framework_TestCase { public function testFormatErrorWhenEmpty() { $formatter = new \FMUP\Import\Config\Field\Formatter\TextToBool(); $this-...
mit
williangringo/php-framework
lib/Mremi/UrlShortener/Provider/ChainProvider.php
1696
<?php /* * This file is part of the Mremi\UrlShortener library. * * (c) Rémi Marseille <marseille.remi@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Mremi\UrlShortener\Provider; /** * Chain provider class...
mit
elumbantoruan/epi-csharp
15-BinarySearchTree/15.04-ComputeLCA/Program.cs
1728
using System; using System.Diagnostics; using _15._00_Tree; namespace _15._04_ComputeLCA { class Program { static void Main(string[] args) { Tree<int> tree = new Tree<int>(19); tree.Insert(7); tree.Insert(3); tree.Insert(2); ...
mit