repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
shobhit-m/meta_notification
spec/models/meta_notification/user_notification_setting_spec.rb
818
require 'rails_helper' module MetaNotification RSpec.describe UserNotificationSetting, type: :model do 10.times do it 'check valid user notification settings' do type = FactoryGirl.build(:valid_user_notification_settings) pp type expect(type).to be_valid end end 3.tim...
mit
pellaea/mushroom-observer
test/controllers/sequence_controller_test.rb
16204
# frozen_string_literal: true require "test_helper" # Controller tests for nucleotide sequences class SequenceControllerTest < FunctionalTestCase def test_list_sequences get_with_dump(:list_sequences) assert(:success) end def test_sequence_search get(:sequence_search, pattern: Sequence.last.id) ...
mit
KMFleischer/PyEarthScience
Transition_examples_NCL_to_PyNGL/read_data/test.py
755
""" Transition Guide Python Example: TRANS_read_netCDF.py - read netCDF file - retrieve variable informations Test_6h.csv 2.00;3.50;5.10;8.20 2.40;3.10;4.80;8.90 2.60;3.70;5.30;10.10 2.75;3.90;5.55;10.25 3.00;4.10;6.05;10.50 2018-08-28 kmf """ import numpy as np import Ngl,Nio print("") #-- d...
mit
phan91/STOMP_agilis
Stomp/server/server.py
14354
import socket import threading import uuid import argparse from Stomp.Decoder import Decode from Stomp.Encoder import Encode class Server(object): """ Server class for STOMP server functionality. Listen on a given socket and respond to STOMP clients depends on the input message. """ def __init__(...
mit
motki/motkid
vendor/github.com/leekchan/accounting/formatnumber_test.go
4341
package accounting import ( "math/big" "testing" ) func TestFormatNumber(t *testing.T) { AssertEqual(t, FormatNumber(123456789.213123, 3, ",", "."), "123,456,789.213") AssertEqual(t, FormatNumber(123456789.213123, 3, ".", ","), "123.456.789,213") AssertEqual(t, FormatNumber(-12345.123123, 5, ",", "."), "-12,345....
mit
alanning/meteor-package-stubber
package-stubber/community-stubs/iron-router.js
2794
// iron-router package var _emptyFn = function emptyFn () {}, _returnStringFn = function () { return '' }, _returnBooleanFn = function () { return true }, _returnArrayFn = function () { return '' } RouteController = function () { this.options = {} this.router = null this.route = null this.path = '...
mit
andyautida14/tamaraw-reservation
src/main/listeners/tour.js
621
'use strict'; module.exports = (function(){ return function(Tour) { var listener = { getTours: function(event) { Tour.findAll({ order: [['for_date', 'ASC']] }).then(function(tours) { event.returnValue = tours; }).catch(function(reason) { console.log(reason); }); }, createTour...
mit
richlander/test-repo
foo/Controllers/TestController.cs
314
using Microsoft.AspNet.Mvc; using System.Collections.Generic; namespace MvcSample.Web { [Route("api/[controller]")] public class TestController : Controller { [HttpGet] public IEnumerable<string> GetAll() { return new string[] {"1", "two", "III"}; } } }
mit
fcc-joemcintyre/pollster
app/client/src/components/app/NavAuth.js
3557
// @ts-check import { useState } from 'react'; import { Link, useHistory, useLocation } from 'react-router-dom'; import styled from '@emotion/styled'; import { AppBar, Button, Drawer, IconButton, List, ListItemText, ListItem, Toolbar, Typography, useMediaQuery } from '@mui/material'; import MenuIcon from '@mui/icon...
mit
paulcuth/starlight
Gruntfile.js
4120
module.exports = function(grunt) { require('grunt-task-loader')(grunt); grunt.initConfig({ starlight: { test: { src: 'test/lua/**/*.lua', dest: 'dist/test/test.lua.js', options: { main: 'test-runner.lua', basePath: 'test/lua' } } }, concat: { 'browser-lib': { src: [ ...
mit
GlowstoneMC/GlowstonePlusPlus
src/main/java/net/glowstone/net/rcon/RconFramingHandler.java
1235
package net.glowstone.net.rcon; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.ByteToMessageCodec; import java.nio.ByteOrder; import java.util.List; /** * Framing handler that splits up Rcon messages using their length prefix. */ public class RconFraming...
mit
heisedebaise/tephra
tephra-dao/src/main/java/org/lpw/tephra/dao/orm/hibernate/HibernateOrmImpl.java
7685
package org.lpw.tephra.dao.orm.hibernate; import org.hibernate.LockOptions; import org.hibernate.query.Query; import org.lpw.tephra.bean.BeanFactory; import org.lpw.tephra.dao.Mode; import org.lpw.tephra.dao.model.Model; import org.lpw.tephra.dao.orm.OrmSupport; import org.lpw.tephra.dao.orm.PageList; import org.lpw.t...
mit
gBritz/ShellProgress
ShellProgress/ProgressBar.cs
1587
using System; namespace ShellProgress { public class ProgressBar : IProgressing { private readonly Int32 maxValue; public ProgressBar(Int32 maxValue) { if (maxValue <= 0) throw new ArgumentException("Max value should be greater than zero.", "maxValue"); ...
mit
PNNL-Comp-Mass-Spec/Atreyu
DevDocs/html API Documentation/namespace_viewer_1_1_properties.js
270
var namespace_viewer_1_1_properties = [ [ "Resources", "class_viewer_1_1_properties_1_1_resources.html", "class_viewer_1_1_properties_1_1_resources" ], [ "Settings", "class_viewer_1_1_properties_1_1_settings.html", "class_viewer_1_1_properties_1_1_settings" ] ];
mit
arturhoo/ADVISe
python/p1.py
1661
#coding: utf-8 import MySQLdb import uuid try: from mysql_local_settings import * except ImportError: sys.exit("No MySQL settings found!") conn = MySQLdb.connect( host=host, \ user=user, \ passwd=passwd, \ db=db, \ ...
mit
continuousphp/tools
tests/ToolsTest/Service/Queue/Adapter/SqsTest.php
4562
<?php /** * SqsTest.php * * @date 05.02.2016 * @author Pascal Paulis <pascal.paulis@continuousphp.com> * @file SqsTest.php * @license Unauthorized copying of this source code, via any medium is strictly * prohibited, proprietary and confidential. */ namespace ToolsTest\Servi...
mit
sherlockcoin/growthcoin-resurection
src/qt/guiutil.cpp
13320
#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include <QString> #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #include <QUrl> #include <QTextDocument> // For Qt::escape #include ...
mit
blumug/georges
server/publications/tags.js
163
Meteor.publish('tags', function() { return Tags.find(); }); Meteor.publish('user-tags', function() { return UserTags.find({ userId: this.userId }); });
mit
yotsuashi/cbtrainer
tool/training-cnv.rb
1430
# -*- coding: utf-8 -*- require 'csv' require 'json' # class Training < Hash # def initialize(keys, values) @weight = 0 @params = Hash.new keys.each_with_index { |key, i| value = values[i] case key when '[name]' self[:name] = value when '[card1]', '[card2]', '[card3]' ...
mit
asiaon123/examples
examples-ds/src/main/java/com/gyz/examples/ds/tree/Tree.java
351
package com.gyz.examples.ds.tree; /** * Created by YaZhou.Gu on 2018/2/27. */ public interface Tree<E> { void addRoot(E e); void addChild(E e, E parent); void remove(E e); void removeAll(); void clear(); // update E get(int index); boolean contains(E e); ...
mit
FlyingTopHat/PoliceUK.NET
PoliceUK/Entities/Neighbourhood/NeighbourhoodTeamMember.cs
1024
namespace PoliceUk.Entities.Neighbourhood { using System.Runtime.Serialization; /// <summary> /// Description of a member of a Neighbourhood Team /// </summary> [DataContract] public class NeighbourhoodTeamMember { /// <summary> /// Name of the Neighbourhood Team Member. ...
mit
KristianOellegaard/django-health-check
health_check/contrib/celery_ping/__init__.py
126
import django if django.VERSION < (3, 2): default_app_config = 'health_check.contrib.celery_ping.apps.HealthCheckConfig'
mit
kodmunki/ku4js-workers
example/scripts/example/bin/example-workers-uncompressed.js
515
(function(l){ function calculator() { } calculator.prototype = { calculateNumberOfAnswers: function(iteration){ var answers = $.list(), i = 0, value = 0; while(iteration > i++) { var answer = $.math.round(Math.random() * Math.random() * 10, -5); answers.add(answer); }...
mit
hliang71/jmeter-amq-plugin
src/main/java/com/hliang/jmeter/protocol/amqp/AMQPSampler.java
18117
package com.icix.jmeter.protocol.amqp; import java.io.IOException; import java.util.*; import java.security.*; import org.apache.jmeter.samplers.AbstractSampler; import org.apache.jmeter.testelement.ThreadListener; import org.apache.jorphan.logging.LoggingManager; import org.apache.log.Logger; import com.rabbitmq.cl...
mit
dladowitz/rails-testing
db/migrate/20140608184055_add_editor_to_users.rb
113
class AddEditorToUsers < ActiveRecord::Migration def change add_column :users, :editor, :boolean end end
mit
pcg79/marvel_api
test/marvel_api/configuration_test.rb
577
require 'test_helper' describe MarvelApi::Configuration do before do MarvelApi.reset! end it "should have nil default keys" do assert_nil MarvelApi.api_key assert_nil MarvelApi.private_key end it "allows setting the api key" do MarvelApi.config do |config| config.api_key = "new key" ...
mit
faisal-bhatti/pos
db/migrate/20130703080904_add_cash_register_id_to_payment_method_items.rb
332
class AddCashRegisterIdToPaymentMethodItems < ActiveRecord::Migration def change add_column :payment_method_items, :cash_register_id, :integer Vendor.connection.execute("UPDATE payment_method_items SET cash_register_id = orders.cash_register_id from orders WHERE orders.id = payment_method_items.order_id"...
mit
rgeyer/rs_selfservice
module/SelfService/test/SelfService/Controller/Api/ProvisionedProductControllerTest.php
5055
<?php namespace SelfServiceTest\Controller\Api; use Zend\Http\Request; use Zend\Http\Response; use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase; class ProvisionedProductControllerTest extends AbstractHttpControllerTestCase { public function setUp() { $this->setApplicationConfig( include _...
mit
claudiosanchez/QBank
QBank.Model/IAccountRepository.cs
198
using System.Collections.Generic; namespace QBank.Model { public interface IAccountRepository { IEnumerable<Account> Accounts(); Account GetById(int id); } }
mit
wwidea/bootstrap_feedbacker
db/migrate/20170306210545_convert_source_url_to_text.rb
234
class ConvertSourceUrlToText < ActiveRecord::Migration[5.1] def up change_column :bootstrap_feedbacker_remarks, :source_url, :text end def down change_column :bootstrap_feedbacker_remarks, :source_url, :string end end
mit
frogocomics/SpongeAPI
src/main/java/org/spongepowered/api/data/properties/ApplicableEffect.java
3275
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
mit
pitpitman/GraduateWork
Java_tutorial/essential/threads/example/Consumer.java
425
public class Consumer extends Thread { private CubbyHole cubbyhole; private int number; public Consumer(CubbyHole c, int number) { cubbyhole = c; this.number = number; } public void run() { int value = 0; for (int i = 0; i < 10; i++) { value = cubbyhole....
mit
gromver/rx-form
src/permissions/InScenariosPermission.spec.ts
1040
declare const jest; declare const describe; declare const it; declare const expect; declare const require; import InScenariosPermission from './InScenariosPermission'; import Model from '../Model'; import ValueContext from '../ValueContext'; function getTestModel(attributes?) { return Model.object( {}, attr...
mit
buildo/webseed
paths.js
621
var path = require('path'); module.exports = { SRC: path.resolve(__dirname, 'src'), APP: path.resolve(__dirname, 'src/app'), THEME: path.resolve(__dirname, 'src/app/theme'), THEME_FONTS: path.resolve(__dirname, 'src/app/theme/fonts'), BUILD: path.resolve(__dirname, 'build'), ASSETS: path.resolve(__dirname,...
mit
mstoppert/grr
public/js/select.js
418
(function() { $('#result').on('click', function() { $(this).find('input').select(); }); var clip = new ZeroClipboard($('#clipboard'), { moviePath: "js/ZeroClipboard.swf", hoverClass: "zeroclipboard-is-hover", activeClass: "zeroclipboard-is-active", forceHandCursor: true }); clip...
mit
BeSite/jQuery.mmenu
src/addons/sidebar/mmenu.sidebar.ts
3546
import Mmenu from '../../core/oncanvas/mmenu.oncanvas'; import OPTIONS from './options'; import * as DOM from '../../_modules/dom'; import * as media from '../../_modules/matchmedia'; import { extend } from '../../_modules/helpers'; export default function (this: Mmenu) { // Only for off-canvas menus. if (!thi...
mit
zarqman/can_has_state
lib/can_has_state/machine.rb
3117
module CanHasState module Machine extend ActiveSupport::Concern module ClassMethods def state_machine(column, &block) d = Definition.new(column, self, &block) define_method "allow_#{column}?" do |to| state_machine_allow?(column.to_sym, to.to_s) end self.stat...
mit
BenPhegan/renderconfig
source/RenderConfig.MSBuild/RenderConfig.cs
6438
// Copyright (c) 2010 Ben Phegan // 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,...
mit
marcelohg/NasajonWebTeamplateProject
vendor/composer/autoload_real.php
1665
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInit686f8f191939dfbe9c01f3b6b1cfd352 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
mit
brad7928/new.bradlysharpe.com.au
grunt/tasks/optimise.js
122
module.exports = function(grunt) { grunt.registerTask('optimise', [ 'imagemin', 'htmlmin', 'cmq', 'postcss:sass' ]); };
mit
rishii7/vscode
src/vs/workbench/parts/debug/common/debugViewModel.ts
4023
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
Musashi178/GenericStl
GenericStl.Tests/TestDataStructures/Vertex.cs
1307
using System; namespace GenericStl.Tests.TestDataStructures { public class Vertex : IEquatable<Vertex> { private readonly float _x; private readonly float _y; private readonly float _z; public Vertex(float x, float y, float z) { _x = x; _y = y; ...
mit
romainneutron/PHPExiftool
lib/PHPExiftool/Driver/Tag/XMPPlus/LicenseEndDate.php
839
<?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\XMPPlus; use JMS\Serializer\Annotation\ExclusionPolicy;...
mit
aurelia/templating
src/element-events.js
4119
import {DOM} from 'aurelia-pal'; interface EventHandler { eventName: string; bubbles: boolean; capture: boolean; dispose: Function; handler: Function; } /** * Dispatches subscribets to and publishes events in the DOM. * @param element */ export class ElementEvents { static defaultListenerOptions: boole...
mit
WaywardGame/developertools
out/action/helpers/CopyStats.d.ts
94
import Entity from "entity/Entity"; export default function (from: Entity, to: Entity): void;
mit
php-api-clients/github
src/Resource/Git/Tree.php
1104
<?php declare(strict_types=1); namespace ApiClients\Client\Github\Resource\Git; use ApiClients\Foundation\Hydrator\Annotation\Collection; use ApiClients\Foundation\Hydrator\Annotation\EmptyResource; use ApiClients\Foundation\Resource\AbstractResource; /** * @Collection( * tree="Git\NamedBlob" * ) * @EmptyRes...
mit
blodstone/CCS590v2
collinsHead/fig/basic/BipartiteMatcher.java
9140
package fig.basic; import java.util.*; /** * An implementation of the classic hungarian algorithm for the assignment problem. * * Copyright 2007 Gary Baker (GPL v3) * @author gbaker * Modified by pliang 12/28/07, 11/26/08 */ public class BipartiteMatcher { public double[][] copy(double[][] matrix) { doubl...
mit
ucsd-ccbb/jupyter-genomics
src/dnaSeq/VAPr/variantannotation/tests/test_parse_csv.py
2088
import unittest import sys #quick and dirty way of importing functions from variantannotation import csv_to_df sys.path.append('/Users/carlomazzaferro/Documents/Code/variant-annotation/variantannotation') file_name = "/Users/carlomazzaferro/Desktop/CSV to be tested/Tumor_targeted_processed.csv" sample_list = csv_to_df...
mit
mitelg/sw-cli-tools
src/Extensions/Shopware/AutoUpdate/Bootstrap.php
3337
<?php /** * (c) shopware AG <info@shopware.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Shopware\AutoUpdate; use Humbug\SelfUpdate\Updater; use Shopware\AutoUpdate\Command\RollbackCommand; use Shopware\AutoUpdate\...
mit
adcox/ofxPlots
src/interactiveObj.cpp
12597
/** * @author Andrew Cox * @version July 7, 2016 * * Copyright (c) 2016 Andrew Cox * * 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 limitatio...
mit
philnash/twilio-node
lib/rest/autopilot/v1/assistant/dialogue.js
7032
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Q = require('q'); /* jshint ignore:line */ var _ = require('lodash'); /* jshint ignore:line */ var Page = require('../../../../base/...
mit
wongatech/remi
ReMi.Api/BusinessLogic/ReMi.BusinessEntities/ExecPoll/CommandStateType.cs
180
namespace ReMi.BusinessEntities.ExecPoll { public enum CommandStateType { NotRegistered = 1, Waiting, Running, Success, Failed } }
mit
EFSKnyc/Programy-Java
BEZ KOMENTARZA_komunikat.java
117
class Program { public static void main(String[] args) { System.out.println("Hello world!"); } }
mit
juui/juui.org
tasks/test.js
154
'use strict'; var gulp = require('gulp'); function test(done) { console.log('Testing'); done(); } gulp.task('test', test); module.exports = gulp;
mit
mnipper/AndroidSurvey
src/org/adaptlab/chpir/android/survey/QuestionFragments/ListOfItemsQuestionFragment.java
2434
package org.adaptlab.chpir.android.survey.QuestionFragments; import java.util.ArrayList; import org.adaptlab.chpir.android.survey.QuestionFragment; import org.adaptlab.chpir.android.survey.R; import org.adaptlab.chpir.android.survey.Models.Option; import android.text.Editable; import android.text.TextWatcher; import...
mit
dianbaer/grain
httpclient/src/test/java/org/grain/httpclient/HttpUtilTest.java
1916
//package org.grain.httpclient; // //import static org.junit.Assert.assertEquals; // //import java.io.File; //import java.io.UnsupportedEncodingException; //import java.net.URLEncoder; //import java.util.HashMap; // //import org.junit.BeforeClass; //import org.junit.Test; // //public class HttpUtilTest { // // @BeforeC...
mit
rohit00082002/intro
vendor/autoload.php
182
<?php // autoload.php generated by Composer require_once __DIR__ . '/composer' . '/autoload_real.php'; return ComposerAutoloaderInit9ce3a7f93aad22dda3e2e92183afb784::getLoader();
mit
shashank7200/FreeCodeCamp-Projects
Intermediate Front End Development Projects/twitch-client/src/App.js
244
import React, { Component } from 'react'; import Home from './helpers/Home' import './App.css' class App extends Component { render() { return ( <div className="App"> <Home /> </div> ); } } export default App;
mit
kmlewis/_old_stuff
ReferralTracker/MisInfrastructure/Models/MisTeacherClass.cs
362
namespace Mock_MisInfrastructure.Models { public class Mock_MisTeacherClass { public string ClassName { get; set; } public string Subject { get; set; } public string StaffCode { get; set; } public string StaffName { get; set; } public int PersonId { get; set; } p...
mit
cesarAugusto1994/blog3
web/assets/build/Components/modal.js
2048
/** * Created by cesar on 22/10/16. */ $(function () { var Modal = React.createClass({displayName: "Modal", componentDidMount: function() { $(this.getDOMNode) .modal({backdrop: "static", keyboard: true, show: false}); }, componentWillUnmount: function() { ...
mit
OfficeDev/PnP-OfficeAddins
Samples/Outlook.MailCRM/DXDemos.Office365/Properties/AssemblyInfo.cs
1365
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("DXD...
mit
SMUnlimited/sonar-stash
src/test/java/org/sonar/plugins/stash/StashPluginConfigurationTest.java
2988
package org.sonar.plugins.stash; import java.util.Optional; import org.junit.Test; import org.sonar.api.CoreProperties; import org.sonar.api.config.Settings; import static org.junit.Assert.assertEquals; public class StashPluginConfigurationTest { @Test public void testStashPluginConfiguration_Cons...
mit
OfficialTitcoin/titcoin-wallet
src/qt/sendcoinsdialog.cpp
9228
#include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "optionsmodel.h" #include "sendcoinsentry.h" #include "guiutil.h" #include "askpassphrasedialog.h" #include "base58.h" #include <QMessageBox> #include <QTextDocument> #...
mit
srycyk/mine
test/support/html_example.rb
1532
class HtmlExample attr_accessor :content def initialize(content='') self.content = content end def call(excerpt=nil) html.sub(/PLACEHOLDER/, excerpt || content) end def html <<-END_OF_HTML <!doctype html> <html> <head> <title>Example Domain</title> <meta charset="utf-8" /> <meta htt...
mit
surfcoalho/catalogo
src/main/java/com/catalogo/api/dtos/CadastroPFDto.java
2709
package com.catalogo.api.dtos; import java.util.Optional; import org.hibernate.validator.constraints.Email; import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.NotEmpty; import org.hibernate.validator.constraints.br.CNPJ; import org.hibernate.validator.constraints.br.CPF; pu...
mit
sprinkle-tool/sprinkle
lib/sprinkle/commands/reconnect.rb
184
module Sprinkle module Commands class Reconnect < Command def initialize() end def inspect ":RECONNECT" end end end end
mit
upfluence/oss-components
index.js
2048
/* jshint node: true */ 'use strict'; const mergeTrees = require('broccoli-merge-trees'); const Funnel = require('broccoli-funnel'); const fs = require('fs'); const { name, version } = require('./package'); let faPath = 'node_modules/@fortawesome/fontawesome-pro'; if (!fs.existsSync(faPath)) { faPath = 'node_modul...
mit
mybuilder/cronos-bundle
MyBuilderCronosBundle.php
145
<?php namespace MyBuilder\Bundle\CronosBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class MyBuilderCronosBundle extends Bundle { }
mit
Weisses/Ebonheart-Mods
ViesCraft/Archived/1.9.4 - 1976/src/main/java/com/viesis/viescraft/common/entity/airshipcolors/EntityAirshipV4Core.java
43707
package com.viesis.viescraft.common.entity.airshipcolors; import java.util.List; import com.viesis.viescraft.api.FuelVC; import com.viesis.viescraft.common.utils.events.EventHandlerAirship; import com.viesis.viescraft.configs.ViesCraftConfig; import com.viesis.viescraft.init.InitItemsVC; import com.viesis.viescraft.n...
mit
likelion-goals320/SE_assingment
application/config/database.php
4618
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
mit
DenysZakharov/task-tracker
src/UserBundle/Tests/Controller/ManagerSecurityTest.php
794
<?php namespace UserBundle\Tests\Controller; use Symfony\Component\HttpFoundation\Response; use AppBundle\Tests\Controller\WebTestCase; class ManagerSecurityTest extends WebTestCase { /** * @dataProvider urlProvider */ public function testPageIsSuccessful($url) { $client = static::crea...
mit
TheOneTheOnlyDavidBrown/crunchpowjs
example/scripts/Routes.js
680
// puts routes on the router class import Router from './Router'; // TODO: not attach this to the global namespace window.router = window.router || new Router(); window.router.state({ name: '/users', templateUrl: 'templates/userindex.html', }).state({ name: '/user/:id', templateUrl: 'templates/user.html', }).s...
mit
pellucidanalytics/decks
lib/events/decksevent.js
861
var validate = require("../utils/validate"); /** * A custom event class for use within decks.js * * @class * @param {!String} type - The type of event (e.g. "item:changed") * @param {!*} sender - The sender of the event (e.g. the object which is emitting the event) * @param {?*} [data={}] - Custom data to includ...
mit
CPGFinanceSystems/verita
verita-api/src/main/java/de/cpg/oss/verita/event/Event.java
1109
package de.cpg.oss.verita.event; import java.io.Serializable; import java.util.Optional; import java.util.UUID; /** * Represents a persistent immutable event within the system - A business fact which happened in the past. * The events are processed by the {@link de.cpg.oss.verita.service.EventBus} and handled by th...
mit
gryphonmyers/weddell
src/plugins/router/index.js
21339
var Mixin = require('@weddell/mixwith').Mixin; var mix = require('@weddell/mixwith').mix; var Router = require('./router'); var StateMachineMixin = require('./state-machine-mixin'); var MachineStateMixin = require('./machine-state-mixin'); var defaults = require('defaults-es6/deep-merge'); var RouterState = mix(class ...
mit
longde123/MultiversePlatform
client/Movie/Codecs/DirectShowLib/TvRatings.cs
9176
/******************************************************************** The Multiverse Platform is made available under the MIT License. Copyright (c) 2012 The Multiverse Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
mit
pakoito/DT3
DT3Core/Types/FileBuffer/Package.hpp
2756
#ifndef DT3_PACKAGE #define DT3_PACKAGE //============================================================================== /// /// File: Package.hpp /// /// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved. /// /// This file is subject to the terms and conditions defined in /// file 'LICE...
mit
ggustilo/rails_blog
peanut_gallery/config/routes.rb
2530
Rails.application.routes.draw do # homepage get "/" => "posts#index" # login and writers routes get "/login" => "writers#login_form" post "/login" => "writers#login" delete "/logout" => "writers#logout" get "/register" => "writers#new" post "/register" => "writers#create" get "/writers/:id" =...
mit
dgg/Papayoo-Scores
app/src/main/java/net/dgg/papayoo_scores/core/BusObserver.java
298
package net.dgg.papayoo_scores.core; import com.squareup.otto.Bus; public class BusObserver implements IObserver{ private final Bus _bus; public BusObserver(Bus bus){ _bus = bus; } @Override public void notify(Object message) { _bus.post(message); } }
mit
MaxZoosk/johnny-five-build-light
node_modules/johnny-five/lib/motor.js
22621
var IS_TEST_MODE = !!process.env.IS_TEST_MODE; var Board = require("./board"); var Expander = require("./expander.js"); var EVS = require("./evshield"); var __ = require("./fn"); var events = require("events"); var util = require("util"); var Collection = require("./mixins/collection"); var Sensor = require("./sensor")...
mit
techa03/goodsKill
goodskill-spring-boot-starter/src/main/java/com/goodskill/autoconfigure/oauth2/OAuth2LoginConfig.java
4468
package com.goodskill.autoconfigure.oauth2; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties; import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientPropertiesRegistrationAdapter; import org....
mit
TristanBaoui/PB
src/PB/BijouterieBundle/DependencyInjection/PBBijouterieExtension.php
764
<?php namespace PB\BijouterieBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and mana...
mit
alkammar/morkim
examples/src/main/java/lib/morkim/examples/screen/ExampleNonGenericFragment.java
349
package lib.morkim.examples.screen; import lib.morkim.examples.R; import lib.morkim.mfw.ui.MorkimFragment; /** * Created by Kammar on 12/10/2016. */ public class ExampleNonGenericFragment extends MorkimFragment { @Override protected int layoutId() { return R.layout.fragment_example; } @Override public void...
mit
sairion/Loaderlet
src/loaderlet_bookmark.js
371
(function(window){ if(typeof(lodrlt)==="undefined"){ var l = document.createElement('script'); //l.setAttribute('type', 'text/javascript'); l.setAttribute('charset', 'UTF-8'); l.setAttribute('src', 'https://raw.github.com/sairion/Loaderlet/master/src/loaderlet_v0_01_min.js' + Math.random() * 99999999); document.b...
mit
mode777/electron-play
src/db.retro-play/platform.source.ts
523
import { Injectable } from "@angular/core"; import { DbSource, DbConnection } from "../db"; import { PlatformModel, PlatformEntity } from "./platform.model"; import { RetroPlayConnection } from "./retro-play.connection"; import { TableSource } from "../db/common/table.source"; @Injectable() export class PlatformSource...
mit
zoowii/readerproxy
RP/src/RP/controllers/SiteController.php
5893
<?php /** * Created by PhpStorm. * User: zoowii * Date: 14-2-3 * Time: 下午10:10 */ namespace RP\controllers; use RP\core\CCache; use RP\models\Role; use RP\models\User; use RP\util\Common; use RP\util\HttpClient; use RP\util\UserCommon; class SiteController extends BaseController { protected function routes...
mit
Department-for-Work-and-Pensions/ClaimCapture
c3/app/controllers/circs/report_changes/GBreaksInCareSummary.scala
2255
package controllers.circs.report_changes import play.api.Play._ import play.api.mvc.Controller import models.view.{CachedChangeOfCircs, Navigable} import scala.language.postfixOps import play.api.data.{FormError, Form} import play.api.data.Forms._ import utils.helpers.CarersForm._ import controllers.mappings.Mappings....
mit
ReceipeFinder/frontend
src/components/app.js
2464
import React, {Component} from 'react'; import c from 'classnames' import TopBar from '../_components/TopBar' import UserProfile from '../components/UserProfile' import RecipeFinder from '../components/RecipeFinder' import RecipesList from '../components/RecipesList' import '../styles/main.less' import './UserProfil...
mit
SofiaRin/Game
template/runtime/native_require.js
2148
var game_file_list = [ //以下为自动修改,请勿修改 //----auto game_file_list start---- "libs/modules/egret/egret.js", "libs/modules/egret/egret.native.js", "libs/modules/game/game.js", "libs/modules/game/game.native.js", "libs/modules/res/res.js", "libs/modules/tween/tween.js", "bin-debug/Animation.js", "bin-debug/...
mit
slavaschmidt/akka-antipatterns
src/test/scala/scalaua2017/ConnectionPoolBenchmark.scala
1772
package scalaua2017 import akka.actor._ import akka.pattern.ask import akka.util.Timeout import scala.concurrent._ import scala.concurrent.duration._ import scala.language.postfixOps import org.scalameter.api._ import org.scalameter.picklers.Implicits._ import scalaua2017.database._ trait ConnectionPoolBenchmark ex...
mit
igee/igeey.com
test/unit/sync_test.rb
151
require 'test_helper' class SyncTest < ActiveSupport::TestCase # Replace this with your real tests. test "the truth" do assert true end end
mit
avbotz/eva-public
src/camera.hpp
2342
/* _ ___ __ _ _ __ ___ ___ _ __ __ _ | |__ _ __ _ __ / __/ _` | '_ ` _ \ / _ \ '__/ _` | | '_ \| '_ \| '_ \ | (_| (_| | | | | | | __/ | | (_| |_| | | | |_) | |_) | \___\__,_|_| |_| |_|\___|_| \__,_(_)_| |_| .__/| .__/ ...
mit
katherinealbany/rodentia
logger/logger.go
1476
package logger import ( "fmt" "os" "strconv" "time" ) type Logger struct { Level uint8 Name string } var start time.Time func init() { start = time.Now() } func New(name string) *Logger { return &Logger{ Name: name, Level: 6, } } func (logger *Logger) Debug(args ...interface{}) { if logger.Level >...
mit
accelazh/TetrixGame
src/com/accela/tetrixgame/conn/connectionLauncher/FailedToLaunchConnectionException.java
611
package com.accela.tetrixgame.conn.connectionLauncher; import com.accela.tetrixgame.conn.shared.IConstants; public class FailedToLaunchConnectionException extends Exception { private static final long serialVersionUID = IConstants.SERIAL_VERSION_UID; public FailedToLaunchConnectionException() { super(); ...
mit
Azure/azure-sdk-for-go
services/preview/synapse/mgmt/2021-06-01-preview/synapse/workspacemanagedsqlserverblobauditingpolicies.go
16133
package synapse // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated...
mit
drahmel/chirpchirp
js/identityBank.js
226
function identityBank(bar) { this.bar = bar; this.blank = { firstName: '', lastName: '', category: '', bio: '', interestes: '', }; } identityBank.prototype.name = function() { }; module.exports = identityBank;
mit
AlexeyPopovUA/Java-disign-patterns
decorator/src/com/studying/decorator/decorators/Whip.java
502
package com.studying.decorator.decorators; import com.studying.decorator.business.Beverage; import com.studying.decorator.business.CondimentDecorator; public class Whip extends CondimentDecorator{ Beverage beverage; public Whip(Beverage beverage) { this.beverage = beverage; } @Override ...
mit
LugosFingite/LudOS
kern/i686/pc/terminal/termio.hpp
1689
/* termio.hpp Copyright (c) 13 Yann BOUCHER (yann) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
mit
yukik/cocotte-htmlparser
lib/tags/svg/rect.js
241
var rule = require('../../rule'); // SVG 四角形 module.exports = { type: { flow: true }, empty: true, attributes: 'x,y,width,height,rx,ry,fill', parent: 'svg', rules: [ rule.hasAllAttributes('x,y,width,height') ] };
mit
digiworks/libcutl
cutl/details/boost/regex/v4/regex_merge.hpp
2804
/* * * Copyright (c) 1998-2002 * John Maddock * * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) * */ /* * LOCATION: see http://www.boost.org for most recent versio...
mit