repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
gazzlab/LSL-gazzlab-branch
liblsl/external/lslboost/numeric/conversion/bounds.hpp
721
// (c) Copyright Fernando Luis Cacciola Carballal 2000-2004 // Use, modification, and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.lslboost.org/LICENSE_1_0.txt) // See library home page at http://www.lslboost.org/libs/numeri...
mit
NCuculova/Roommates
src/main/java/mk/ukim/finki/mp/roommates/model/ListLook.java
1025
package mk.ukim.finki.mp.roommates.model; import java.util.Date; import javax.persistence.Entity; import javax.persistence.ManyToOne; import javax.persistence.Table; import mk.ukim.finki.mp.roommates.util.CustomLocalDateSerializer; import com.fasterxml.jackson.databind.annotation.JsonSerialize; /** * ...
mit
llalov/Issue-Tracking-System
services/SoftUniIssueTracker.Models/Project.cs
1609
using SIT.Models.Interfaces; namespace SIT.Models { using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; public class Project : IDentificatable { private ICollection<ProjectPriority> projectPriorities; private ICollection<ProjectLabel> ...
mit
20steps/alexa
web/wp-content/plugins/cac-addon-acf/classes/Free/Setting/Field/Media.php
1106
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } class ACA_ACF_Free_Setting_Field_Media extends ACA_ACF_Free_Setting_Field { public function get_grouped_field_options() { add_filter( 'acf/location/rule_match/user_type', '__return_true', 16 ); add_filter( 'acf/location/rule_match/page_type', '__return_true', 16 )...
mit
it-projects-llc/website-addons
website_sale_clear_cart/controllers/website_sale_clear_cart.py
346
from odoo import http from odoo.http import request class PosWebsiteSale(http.Controller): @http.route(["/shop/clear_cart"], type="json", auth="public", website=True) def clear_cart(self): order = request.website.sale_get_order() if order: for line in order.website_order_line: ...
mit
zenkovnick/pfr
apps/frontend/modules/flight/templates/_plane_field.php
533
<?php $options = array(); if(isset($class)){ $options['class'] = $class; } if(isset($placeholder)) $options['placeholder'] = $placeholder; if(isset($disabled) && $disabled){ $options['disabled'] = 'disabled'; } ?> <?php if(!($field->getWidget() instanceof sfWidgetFormInputHidden)){ if(isset($label)){...
mit
Filipkovarik/JS_projects
DCBw7M351.js
8271
const Discord = require("discord.js"); const client = new Discord.Client(); const http = require("http"); const auth = require("./auth.json"); const req = require("./req.json") const jsdom = require("jsdom"); const { JSDOM } = jsdom; const prefix = "§"; parseargs = (x, delimiter='"') => x.split(" ").reduce( (arr, v...
mit
Breta01/MemoryKing
src/actions/actionCreators.js
678
// Load stats export function loadStats(stats) { return { type: 'LOAD_STATS', stats } } // Add stats export function addStats(stat) { return { type: 'ADD_STATS', stat: stat } } // Change account export function changeAcconut(accountId) { return { type: 'CHAN...
mit
patrys/qcheck
qcheck/__init__.py
3312
from __future__ import print_function import collections import itertools import random import string import sys Spec = collections.namedtuple('Spec', 'instance model actions properties') Action = collections.namedtuple('Action', 'callable args kwargs') def signature(*args, **kwargs): def decorator(func): ...
mit
hayes/unpm
index.js
1410
var Router = require('unpm-router') var auth = require('unpm-auth') var http = require('http') var controllers = require('./lib/controllers') var Package = require('./lib/models/Package') var add_defaults = require('./lib/config') var logging = require('./lib/logging') var handler = require('./lib/handler') var cidr =...
mit
epam/Constellation
app/scripts/router.js
249
App.Router.map(function () { this.route("loginForm", {path: "/"}); this.resource("openflow", {path: "/openflow"}, function () { this.route("topology", {path: "/topology"}); this.route("flows", {path: "/flows"}); }); });
mit
enilu/web-flash
flash-vue-h5/src/page/official_site/news.js
848
import {XHeader, Panel, Swiper, SwiperItem} from 'vux' import footMenu from '../../components/footer/footMenu' import api from '../../fetch/api' import {getApiUrl} from '../../util/tool' export default { components: { XHeader, footMenu, Panel, Swiper, SwiperItem }, data () { return { banner: {}, ...
mit
cliftonm/clifton
Clifton.Core/Clifton.Core.TemplateEngine/TemplateEngine.cs
7427
/* The MIT License (MIT) * * Copyright (c) 2015 Marc Clifton * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
mit
QuinntyneBrown/SecurityApi
SecurityApi/Auth/JwtOptions.cs
500
using Microsoft.Owin.Security.Jwt; using SecurityApi.Config; namespace SecurityApi.Auth { public class JwtOptions : JwtBearerAuthenticationOptions { public JwtOptions() { var config = AppConfiguration.Config; AllowedAudiences = new[] { config.JwtAudience }; ...
mit
mimmi20/browscap-js
test/issue-1442.js
14981
'use strict'; const assert = require('assert'); const Browscap = require('../src/index.js'); suite('checking for issue 1442. (2 tests)', function () { test('issue-1442-A ["Mozilla/4.0 (compatible; Linux 2.6.22) NetFront/3.4 Kindle/2.0 (screen 600x800)"]', function () { const browscap = new Browscap(); const...
mit
C2FO/comb
test/base/regexp.test.js
1301
"use strict"; var it = require('it'), assert = require('assert'), comb = require("../../index"); it.describe("comb/base/regexp.js", function (it) { //Super of other classes it.should("escape it properly", function () { var chars = [".", "$", "?", "*", "|", "{", "}", "(", ")", "[", "]", "\\", "/",...
mit
Repugnus/halftest
guns.lua
6253
bullet = { {"halftest:bullet","halftest:smg1_bullet", "halftest:9mm_bullet_entity", "halftest:smg1_bullet_entity", "halftest:9mm_clip", "halftest:smg1_clip", "halftest:spas12_bullet_entity", "halftest:spas12_shell"}, } local halftest_shoot_bullet = function(itemstack, player) for _,bullet in ipairs(bullet) do if p...
mit
devcycle/devcycle.github.io
vendor/bundle/gems/tzinfo-data-1.2019.3/lib/tzinfo/data/definitions/Europe/Madrid.rb
13551
# encoding: UTF-8 # This file contains data derived from the IANA Time Zone Database # (http://www.iana.org/time-zones). module TZInfo module Data module Definitions module Europe module Madrid include TimezoneDefinition timezone 'Europe/Madrid' do |tz| t...
mit
ZhaoJianQiu/TurScript
src/vm/CmdType.java
697
package vm; public enum CmdType { NOP, // 空指令 HALT, // 关闭虚拟机 POP, // 弹出栈顶元素 POPN, // 弹出栈顶N个元素 OPTR, // 执行计算 LOAD_CONST, // 加载常量 LOAD_NULL, // 加载NULL NEW_VAR, // 创建变量 SET_VAR, // 赋值变量 LOAD_VAR, // 加载变量 CALL, // 调用函数 TEST, // 真值跳转 JMP, // 无条件跳转 JMP_BACK, // 向后无条件跳转 LOAD_TRUE, // 加载TRUE LOAD_FALSE, // 加载...
mit
Kononnable/typeorm-model-generator
test/integration/entityTypes/mssql/entity/Post.ts
1655
import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("Post") export class Post { @PrimaryColumn() id: number; @Column() name: string; @Column("bigint") bigint: string; @Column("bit") bit: boolean; @Column("decimal") decimal: number; @Column("int") int: n...
mit
cliffano/swaggy-jenkins
clients/cpp-tizen/generated/src/PipelineRunNode.cpp
7694
#include <map> #include <cstdlib> #include <glib-object.h> #include <json-glib/json-glib.h> #include "Helpers.h" #include "PipelineRunNode.h" using namespace std; using namespace Tizen::ArtikCloud; PipelineRunNode::PipelineRunNode() { //__init(); } PipelineRunNode::~PipelineRunNode() { //__cleanup(); } void Pip...
mit
coldspire/OrgByDate
Program.cs
427
using System; using System.Windows.Forms; namespace OrgByDate { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Applicati...
mit
chinemelu/BC_28-more_recipes_v2
server/models/review.js
636
module.exports = (sequelize, DataTypes) => { const Review = sequelize.define('Review', { title: { type: DataTypes.STRING, allowNull: false }, message: { type: DataTypes.TEXT, allowNull: false }, userId: { type: DataTypes.INTEGER, allowNull: false }, ...
mit
ssqsignon/ssqsignon-proxy
dotnet/nancyfx/SSQSignonProxyNancyFx/AuthProxyModule.cs
7884
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Nancy.ModelBinding; using RestSharp; namespace SSQSignon { public abstract class AuthProxyModule : Nancy.NancyModule { public AuthProxyModule(string path, string moduleName, string clientId, string clientSecret,...
mit
glav/CognitiveServicesFluentApi
Glav.CognitiveServices.FluentApi.Face/Domain/LargePersonGroupPerson/LargePersonGroupPersonDeleteAnalysisContext.cs
1298
using Glav.CognitiveServices.FluentApi.Core.Contracts; using Glav.CognitiveServices.FluentApi.Core.Configuration; using Glav.CognitiveServices.FluentApi.Core.ScoreEvaluation; using System.Collections.Generic; using Glav.CognitiveServices.FluentApi.Core.Communication; using System.Linq; namespace Glav.CognitiveSer...
mit
thebravoman/software_engineering_2016
c04/B_11_Daniel_Tuechki.rb
333
require 'csv' path_to_file = ARGV[0].to_s user = [] video = [] count = [] CSV.foreach(File.path(path_to_file)) do |row| user << row[0].to_i video << row[1].to_i count << row[2].to_f end task_1 = Hash.new i = 0 sum = 0 video.each do |every_video| sum = sum + count[i] task_1[every_video] = sum end...
mit
vlsi1217/leetlint
src/nineChap6_LL/MergeKsortList.java
2067
package nineChap6_LL; import misc.ListNode; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.PriorityQueue; import java.util.Queue; public class MergeKsortList { public ListNode mergeKLists(List<ListNode> lists) { // write your code here int[] arr1 = new int...
mit
milkokochev/Telerik
C#1/HomeWorks/05. Conditional Statements/Digit as Word/DigitWords.cs
1045
//Write a program that asks for a digit (0-9), and depending on the input, shows the digit as a word (in English). //Print “not a digit” in case of invalid input. //Use a switch statement. using System; class DigitWords { static void Main() { Console.Write("Enter digit 0-9:"); string digit = ...
mit
subramaniashiva/searchReact
public/src/js/app.js
6319
/* Helper function to load data from server */ function loadProductsFromServer(url, dataType, reference, params) { $.ajax({ url: url, dataType: dataType, cache: false, success: function(data) { this.setState({data: data}); }.bind(reference), error: function(xhr, status, err) { co...
mit
xiongziliang/ZLMediaKit
src/Player/PlayerProxy.cpp
11914
/* * Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit). * * Use of this source code is governed by MIT license that can be found in the * LICENSE file in the root of the source tree. All contributing project aut...
mit
stve/analytics-proxy-helpers
test/test_view_helpers.rb
1176
require File.dirname(__FILE__) + '/helper.rb' include GoogleAnalytics::Proxy::ViewHelpers class ViewHelpersTest < Test::Unit::TestCase context "GoogleAnalyticsProxy" do should "embed the analytics proxy js" do assert_equal google_analytics_proxy, '<script type="text/javascript" src="/javascripts/g...
mit
samkariu/nairobi-routes
boilerplate/config.py
4180
""" This is the boilerplate default configuration file. Changes and additions to settings should be done in the config module located in the application root rather than this config. """ config = { # webapp2 sessions 'webapp2_extras.sessions' : {'secret_key': '_PUT_KEY_HERE_YOUR_SECRET_KEY_'}, # webapp2 authenticatio...
mit
bigfont/2013-128CG-Vendord
HelpfulStuff/MVVMDemoApp/DemoApp/ViewModel/MainWindowViewModel.cs
4740
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Windows.Data; using DemoApp.DataAccess; using DemoApp.Model; using DemoApp.Properties; namespace DemoApp.Vi...
mit
dodolangus/rep_bnv_app
application/views/pendaftaran/view_pendaftaran.php
7964
<!-- Map --> <section id="contact" class="map"> <div class="container"> <div class="row text-left"> <div class="col-lg-12 "> <hr/> <div class="row"> <div class="col-lg-12"> <form method="post" action = "<?php echo site_url('pendaftaran/input...
mit
willnewton10/node-algs
test/permutations.js
555
var assert = require('assert'); var permutations = require('../lib/permutations'); describe("permutations", function () { it('should return similar array when 0 or 1 elements', function () { assert.deepEqual([ ], permutations([ ]) ); assert.deepEqual([[1]], permutations([1]) ); }); it('should return a...
mit
cerad/cerad
src/Cerad/Bundle/ArbiterBundle/Schedule/Tourn/Game.php
3414
<?php namespace Zayso\ArbiterBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Entity(repositoryClass="Arbiter\GameRepo") * Table(name="arbiter.games") */ class Game { /** * @Id * @Column(type="integer",name="id") */ //@GeneratedValue private $id; /** @Column(type="integ...
mit
arxopia/uirusu
test/functional/vtfile_test.rb
3014
# Copyright (c) 2010-2017 Jacob Hammack. # # 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, publish,...
mit
UpBeet/dungeon-generator
Assets/Scripts/BoardGenerator.cs
2052
using UnityEngine; using UnityEditor; /// <summary> /// This component is effectively used to mimic the server-side /// generation of boards that will be sent to the client. /// </summary> public class BoardGenerator : MonoBehaviour { /// <summary> /// Reference to the tile prefab for loading boards. /// </summar...
mit
codelegant/TypeScript
declaration-merging/merging-moduel-with-function.js
270
function buildLabel(name) { return buildLabel.prefix + name + buildLabel.suffix; } var buildLabel; (function (buildLabel) { buildLabel.suffix = ""; buildLabel.prefix = "Hello, "; })(buildLabel || (buildLabel = {})); console.log(buildLabel("lai chuanfeng"));
mit
aaronroyer/styles
test/test_helper.rb
131
require 'rubygems' require 'minitest/autorun' require "mocha/setup" require File.join(File.dirname(__FILE__), *%w[.. lib styles])
mit
techdude101/C-Sharp
Course Documents/Section 1 - Projects/Projects/GradeCheck/GradeCheck/Form1.Designer.cs
2998
namespace GradeCheck { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param n...
mit
bradmontgomery/django-blargg
blargg/tests/test_admin.py
2475
from django.conf import settings from django.contrib.admin.sites import AdminSite from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from django.test import TestCase, override_settings from ..models import Entry from ..admin import TagAdmin, EntryAdmin @override_settings(SITE...
mit
kolide/osquery-go
gen/osquery/osquery-consts.go
429
// Autogenerated by Thrift Compiler (1.0.0-dev) // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING package osquery import ( "bytes" "context" "reflect" "fmt" "github.com/apache/thrift/lib/go/thrift" ) // (needed to ensure safety because of naive import list construction.) var _ = thrift.ZERO va...
mit
jpartogi/dosboxgo
command/cmd_cd.go
680
package command import ( "errors" ) type CmdCd struct { Command } func (c CmdCd) CheckParams(Params []string) error { var err error if err := c.CheckNumberOfParams(Params); err != nil { return err } if err := c.CheckParamValues(Params); err != nil { return err } return err } func (c CmdCd) GetName() ...
mit
DanielFryyEPN/FinalJSProject
FrontEnd/src/app/components/books/manage-books/manage-books.component.ts
1560
import { Component, OnInit } from '@angular/core'; import { BookClass } from '../../../classes/BookClass'; import { BookService } from '../../../services/book.service'; import { AuthService } from '../../../services/auth.service'; import { Router } from '@angular/router'; @Component({ selector: 'app-manage-books', ...
mit
shawnspears/phase-0
week-7/group-project/group_project_solution.js
7678
// Release 1: Tests to User Stories (Shawn Spears) // ------ User Stories ------ // As a user, I want to be able to be able to take two ordered lists of integers, and find the // sum, mean, and median of each (Three different stories). // The first list contains 7 integers: 1, 2, 3, 4, 5, 5, and 7. Therefore the le...
mit
meln1k/reactive-telegrambot
src/main/scala/com/github/meln1k/reactive/telegrambot/models/ResponseEntity.scala
703
package com.github.meln1k.reactive.telegrambot.models trait ResponseEntity /** * This object represents an incoming update. * @param update_id The update‘s unique identifier. * Update identifiers start from a certain positive number and increase sequentially. * This ID becomes es...
mit
grecosoft/NetFusion
netfusion/src/Integration/NetFusion.RabbitMq/Settings/BusHost.cs
618
using System.ComponentModel.DataAnnotations; namespace NetFusion.RabbitMQ.Settings { /// <summary> /// Settings for a host associated with a specific bus connection. /// </summary> public class BusHost { /// <summary> /// The name of the host computer running RabbitMQ. /// <...
mit
ppc-web/ppcweb
web/donation/users/classes/Redirect.php
2115
<?php /* UserSpice 4 An Open Source PHP User Management System by the UserSpice Team at http://UserSpice.com 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 3 of the License, or (at yo...
mit
erikzhouxin/CSharpSolution
NetSiteUtilities/AopApi/Domain/AlipayMarketingCashlessvoucherTemplateCreateModel.cs
5918
using System; using System.Xml.Serialization; namespace EZOper.NetSiteUtilities.AopApi { /// <summary> /// AlipayMarketingCashlessvoucherTemplateCreateModel Data Structure. /// </summary> [Serializable] public class AlipayMarketingCashlessvoucherTemplateCreateModel : AopObject { /// <su...
mit
zewa666/cli
lib/resources/src/main-webpack.ts
1247
/// <reference types="aurelia-loader-webpack/src/webpack-hot-interface"/> // we want font-awesome to load as soon as possible to show the fa-spinner import {Aurelia} from 'aurelia-framework' import environment from './environment'; import {PLATFORM} from 'aurelia-pal'; import * as Bluebird from 'bluebird'; // remove o...
mit
nfelix/mvmt
spec/views/brands/index.html.haml_spec.rb
600
require 'rails_helper' RSpec.describe "brands/index", :type => :view do before(:each) do assign(:brands, [ Brand.create!( :title => "Title", :desc => "MyText", :website => "Website" ), Brand.create!( :title => "Title", :desc => "MyText", :website ...
mit
shadeslayor/DestinyAPI.NET
DestinyAPI/PlayerSearch.cs
1676
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.Script.Serialization; namespace DestinyAPI { public sealed class PlayerSearch { //Const Variables private readonly String _html_method = "GET"; private r...
mit
szaretsky/test_cars
exe/etaserver.rb
357
$LOAD_PATH.unshift('lib/') require 'testcars' ################################## # # ETA service. # Gets and responds by means of msgpacked hash # Req: { "cmd" => "eta", "lat" => ..., "lon" => ... } # Resp: { "eta" => ... } # ################################## # port for eta service Testcars.etaserver( dbname: ...
mit
apcurium/resxible
src/Resxible.Tests/Localization/Platforms/iOSResourceFileHandlerFixture.cs
1769
using System.IO; using Com.Apcurium.Resxible.Localization.iOS; using NUnit.Framework; namespace Com.Apcurium.Resxible.Tests.Localization.Platforms { [TestFixture] public class iOSResourceFileHandlerFixture { private const string iOSFileName = "Localizable.Copy.strings"; [SetUp] pu...
mit
triggertoo/whatsup
src/vendor/zend/tests/Zend/Stdlib/SplPriorityQueueTest.php
2365
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
mit
crubier/lil
projects/com.crubier.lil/src-gen/com/crubier/lil/lil/DataTypeQueue.java
1443
/** */ package com.crubier.lil.lil; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Data Type Queue</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link com.crubier.lil.lil.DataTypeQueue#getElementType <em>Element Type</em>}</li...
mit
tomgrohl/jCountdown
test/unit/jcountdown.js
13711
module("jCountdown - jQuery Countdown Plugin"); $.fn.countdown.locale['de'] = { yearText: 'Jahre', monthText: 'Monate', weekText: 'Wochen', dayText: 'Tage', hourText: 'Stunden', minText: 'Minuten', secText: 'Sekunden', timeSeparator: ':', isRTL: false }; $.fn.countdown.locale['fr'] = { yearText: 'Années', ...
mit
tempbottle/rust-peg
src/bin.rs
948
extern crate peg; use std::env; use std::fs::File; use std::io::{Read, Write}; use std::io::{stdin, stdout, stderr}; use std::path::Path; use std::process; fn main() { let args = env::args_os().collect::<Vec<_>>(); let progname = &args[0]; let mut log = stderr(); let fname: &str; let mut source = String::new();...
mit
emmanuelroecker/php-sync-sftp
tests/GlSyncFtpTest.php
7828
<?php /** * Test GlSyncFtp * * PHP version 5.4 * * @category GLICER * @package GlHtml\Tests * @author Emmanuel ROECKER * @author Rym BOUCHAGOUR * @copyright 2015 GLICER * @license MIT * @link http://dev.glicer.com/ * * Created : 22/05/15 * File : GlSyncFtpTest.php * */ namespace GlSyncFt...
mit
vuonghuynhthanhtu/administrator.lacasa.com
application/libraries/braintree-php-2.38.0/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature/Logger.php
6939
<?php /** * PHPUnit * * Copyright (c) 2001-2014, Sebastian Bergmann <sebastian@phpunit.de>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source...
mit
palicao/symrsvp
web/app_dev.php
1195
<?php use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Debug\Debug; // If you don't want to setup permissions the proper way, just uncomment the following PHP line // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information //umask(0000); // This chec...
mit
conversionfoundry/breeze_commerce
spec/models/breeze/commerce/shipping_method_spec.rb
2024
require 'spec_helper' describe Breeze::Commerce::ShippingMethod do it "has a valid factory" do create(:shipping_method).should be_valid end it "is invalid without a name" do build(:shipping_method, name: nil).should_not be_valid end it "is invalid with a duplicate name" do create(:shipping_method, name: "Du...
mit
Vedin/corefxlab
src/System.Buffers.Experimental/System/Buffers/BufferManager.cs
1633
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace System.Buffers.Pools { public unsafe sealed partial class NativeBufferPool : BufferPool { internal sealed class BufferManager : ReferenceCoun...
mit
raavanan/photosticker-app
js/app.js
381
angular.module('origami', ['ui.router']) .config(function($stateProvider, $urlRouterProvider) { $stateProvider .state('editor', { url: "/editor", templateUrl: "partials/editor.html", controller: "editorCtrl" }) $urlRouterProvider.otherwise("/editor"); }) .controller('appCtrl', ["$scope"...
mit
Karasiq/scalajs-highcharts
src/main/scala/com/highstock/config/PlotOptionsHeatmapPathfinderMarker.scala
5378
/** * Automatically generated file. Please do not edit. * @author Highcharts Config Generator by Karasiq * @see [[http://api.highcharts.com/highstock]] */ package com.highstock.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScript...
mit
cuo9958/jquery-xcalendar
src/xcalendar.lite.js
7066
$.fn.xcalendar = function(options) { var obj = $(this); var defaults = { onRender: null, onRefresh: null, onEnter: null, onEnd: null, onSelect: null } var options = $.extend(defaults, options); var title, p...
mit
qcam/3llo
spec/3llo/command/card/list_spec.rb
2170
require "spec_helper" describe "card list", type: :integration do include IntegrationSpecHelper before { $application = build_container() } after { $application = nil } it "requires board to be selected" do interface = make_interface($application) execute_command("card list") output_string = in...
mit
conan-io/conan
conans/test/functional/command/export_test.py
833
import textwrap import unittest import pytest from conans.model.ref import ConanFileReference from conans.test.utils.tools import TestClient class ExportMetadataTest(unittest.TestCase): conanfile = textwrap.dedent(""" from conans import ConanFile class Lib(ConanFile): revision_mode ...
mit
yogakurniawan/phone-catalogues
app/routes.js
4765
// These are the pages you can go to. // They are all wrapped in the App component, which should contain the navbar etc // See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information // about the code splitting business import { getAsyncInjectors } from './utils/asyncInjectors'; const errorLoading = ...
mit
hawkphantomnet/leetcode
InterleavingString/Solution.js
873
/** * @param {string} s1 * @param {string} s2 * @param {string} s3 * @return {boolean} */ var isInterleave = function(s1, s2, s3) { let size1 = s1.length; let size2 = s2.length; let size3 = s3.length; if (size1 + size2 != size3) return false; let dp = []; for (let i = 0; i <= size1; i++) { ...
mit
qweqq/dwmb
ui/js/route.js
794
( function () { var menuUrl; var jsUrl; if ( HELPERS_MODULE.checkCookie( 'sessionId' ) ) { menuUrl = "../loged-user-header.html"; jsUrl = "js/user.js"; } else { menuUrl = "../main-header.html"; } var mainJsUrl = "js/main.js"; var contentUrl = "../main-content.html"; $.ajax({ url: men...
mit
lidox/nccn-distress-thermometer
NCCN/app/src/main/java/com/artursworld/nccn/controller/util/OperationType.java
515
package com.artursworld.nccn.controller.util; import java.util.HashMap; import java.util.Map; public enum OperationType { PRE, POST, FOLLOW_UP; private static final Map<String, OperationType> lookupByName = new HashMap<String, OperationType>(); static { for (OperationType g : values()) { ...
mit
barulicm/GazeboWorldDesigner
sdf/Color.cpp
903
#include "Color.h" #include <sstream> using namespace std; Color::Color() {} Color::Color(double red, double green, double blue, double alpha) : r(red), g(green), b(blue), a(alpha) {} QDomElement Color::toXML(QDomDocument &document) const { QDomElement element = document.createElement("color"); element....
mit
kb-diangelo/phase-0
week-7/group_project_solution.js
737
function sum(array_of_vals) { var container = 0; for (var counter = 0; counter < array_of_vals.length; counter++) { container += array_of_vals[counter]; } return container; } function median(array_of_vals) { array_of_vals.sort() if (array_of_vals.length % 2 != 0) { var median_index = Math.floor(ar...
mit
dherault/serverless-offline
examples/tools/nodemon/src/handler.js
164
'use strict' const { stringify } = JSON exports.hello = async function hello() { return { body: stringify({ hello: 'nodemon' }), statusCode: 200, } }
mit
fashionweb/moraso
library/Aitsu/Init/SkinSource.php
2802
<?php /** * SkinSource. * * @author Christian Kehres, webtischlerei.de * @author Frank Ammari, Ammari & Ammari GbR * @author Andreas Kummer, w3concepts AG * @copyright Copyright &copy; 2010,webtischlerei.de * @copyright Copyright &copy; 2011, w3concepts AG */ class Aitsu_Init_SkinSource implements Aitsu_Event...
mit
swimmesberger/OSUtil
org/fseek/thedeath/os/linux/LinuxUserDirectoryGuess.java
3495
/* * The MIT License * * Copyright 2014 Simon Wimmesberger. * * 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, c...
mit
prototypely/mageflow
app/code/community/Mageflow/Connect/Helper/Media.php
9026
<?php /** * Media.php * * PHP version 5 * * @category MFX * @package Mageflow_Connect * @subpackage Helper * @author Prototypely Ltd, Estonia <info@prototypely.com> * @copyright Copyright © 2017 Prototypely Ltd, Estonia (http://prototypely.com)  * @license MIT Copyright (c) 2017 Prototypely Ltd * ...
mit
rs/SDAdvancedWebView
SDAWVPluginOrientation.js
1463
/** * This class provides access to the device orientation. * @constructor */ function Orientation() { /** * The current orientation, or null if the orientation hasn't changed yet. */ this.currentOrientation = null; this.init = function() { this._notifyCurrentOrientation(this.currentOrientatio...
mit
odinhaus/Suffuz
Altus.Suffūz.Observables.SignalR/Properties/AssemblyInfo.cs
1442
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("Al...
mit
jbenjore/JPs-love-project
annotate-models/ruby/1.9.1/gems/fog-0.8.1/lib/fog/compute/requests/bluebox/destroy_block.rb
525
module Fog module Bluebox class Compute class Real # Destroy a block # # ==== Parameters # * block_id<~Integer> - Id of block to destroy # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # TODO def destroy_blo...
mit
thipokKub/Clique-WebFront-Personnal
src/reducers/reducer_fetch_all_channels.js
893
import { FETCH_ALL_CHANNELS } from '../actions/types'; const initalState = { fetching: false, fetched: false, error: null, response: null, } export default ( state = initalState, action ) => { switch (action.type) { case `${FETCH_ALL_CHANNELS}_PENDING`: return { ...
mit
xhad/codetodo
server/tests/controllers/tokens.controller.spec.js
1909
const chai = require('chai'); const expect = chai.expect; const Token = require('../../controllers/tokens'); const UsersCtrl = require('../../controllers/usersCtrl'); const usersCtrl = new UsersCtrl(); let res = {}; res.status = function(error) { return { json: function() {} } }; let next = {}; let req = {}; ...
mit
instacart/rails_workflow
app/controllers/rails_workflow/processes_controller.rb
1989
module RailsWorkflow class ProcessesController < ::ActionController::Base layout 'rails_workflow/application' respond_to :html before_action :set_process, only: [:show, :edit, :update, :destroy] before_filter do @processes_section_active = true end def index @processes = Process...
mit
WellCommerce/CompanyBundle
Tests/Entity/CompanyTest.php
1121
<?php /** * WellCommerce Open-Source E-Commerce Platform * * This file is part of the WellCommerce package. * * (c) Adam Piotrowski <adam@wellcommerce.org> * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ namespace WellCommerce\B...
mit
limpoxe/Android-Plugin-Framework
Samples/PluginTest/src/main/java/com/example/plugintest/manymethods/d/c/A2.java
8249
package com.example.plugintest.manymethods.d.c; public class A2 { public static void a0(String msg) { System.out.println("msg=" + msg + 0); } public static void a1(String msg) { System.out.println("msg=" + msg + 1); } public static void a2(String msg) { System.out.println("msg=" + msg + 2); } public st...
mit
autorealm/faddle
src/Faddle/Storage/Cache/MySQLStore.php
3321
<?php namespace Faddle\Storage\Cache; /** * MySQL adapter. Basically just a wrapper over \PDO, but in an exchangeable * (KeyValueStore) interface. * * @author Matthias Mullie <scrapbook@mullie.eu> * @copyright Copyright (c) 2014, Matthias Mullie. All rights reserved. * @license LICENSE MIT */ class MySQLStore e...
mit
nathanhood/mmdb
app/components/Card/index.js
268
import styled from 'styled-components'; import theme from 'theme'; const Card = styled.div` background: ${theme.white}; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.06); border-radius: 2px; margin-bottom: 25px; padding: 15px; `; export default Card;
mit
aleripe/QueryBuilder
QueryBuilder/Select/From/FromClause.cs
523
using ReturnTrue.QueryBuilder.Elements; namespace ReturnTrue.QueryBuilder.Select.From { public abstract class FromClause : QueryClause { public string Alias { get; private set; } protected FromClause() { } protected FromClause(string alias) { Alias...
mit
aspnetboilerplate/sample-blog-module
app/MyAbpZeroProject.Core/MultiTenancy/Tenant.cs
156
using Abp.MultiTenancy; using MyAbpZeroProject.Users; namespace MyAbpZeroProject.MultiTenancy { public class Tenant : AbpTenant<User> { } }
mit
vithati/vsts-agent
src/Agent.Worker/Release/ZipStreamDownloader.cs
4342
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Linq; using System.Threading.Tasks; using Microsoft.VisualStudio.Services.Agent.Util; namespace Microsoft.VisualStudio.Services.Agent.Worker.Release { [ServiceLocator(Default = typeof(ZipStreamDownloader))] ...
mit
blakcat7/aegis-infinite
js/scrolling-nav.js
10177
//jQuery to collapse the navbar on scroll $(window).scroll(function () { if ($(".navbar").offset().top > 60) { $(".navbar-fixed-top").addClass("top-nav-collapse"); } else { $(".navbar-fixed-top").removeClass("top-nav-collapse"); } }); //jQuery for page scrolling feature - requires jQuery Ea...
mit
Azure/azure-sdk-for-java
sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/models/NodeStatus.java
1489
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.databoxedge.models; import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; import...
mit
myo/Experimental
MySharpSupport/Evade/Config.cs
828
namespace MySharpSupport.Evade { internal static class Config { public const int CrossingTimeOffset = 250; public const int DiagonalEvadePointsCount = 7; public const int DiagonalEvadePointsStep = 20; public const int EvadePointChangeInterval = 300; public const int ...
mit
doctrine/mongodb-odm
tests/Doctrine/ODM/MongoDB/Tests/Functional/HasLifecycleCallbacksTest.php
6106
<?php declare(strict_types=1); namespace Doctrine\ODM\MongoDB\Tests\Functional\Ticket; use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; use Doctrine\ODM\MongoDB\Tests\BaseTest; class HasLifecycleCallbacksTest extends BaseTest { public function testHasLifecycleCallbacksSubExtendsSuper(): void { $...
mit
PeqNP/GameKit
src/ad/NetworkModule.lua
763
-- -- @copyright 2015 Upstart Illustration LLC. All rights resevered. -- local NetworkModule = Class() NetworkModule.abstract(Protocol( -- Return the ID of the network. Method("getAdNetwork") -- Returns dictionary containing configuration. , Method("getConfig") -- Returns the ad network ID used by t...
mit
philou/concurrency-kata
src/main/java/net/bourgau/philippe/concurrency/kata/actors/threads/real/ActorsRealThreads.java
1606
package net.bourgau.philippe.concurrency.kata.actors.threads.real; import net.bourgau.philippe.concurrency.kata.common.*; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUni...
mit
bbojkov/MushroomMusicLibrary
MusicLibrary.Web/Account/ResetPasswordConfirmation.aspx.cs
133
using System.Web.UI; namespace MusicLibrary.Web.Account { public partial class ResetPasswordConfirmation : Page { } }
mit
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-2.2/Lib/distutils/version.py
11519
# # distutils/version.py # # Implements multiple version numbering conventions for the # Python Module Distribution Utilities. # # written by Greg Ward, 1998/12/17 # # $Id: version.py,v 1.6 2001/12/06 20:51:35 fdrake Exp $ # """Provides classes to represent module version numbers (one class for each style of version n...
mit