code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
#import SYS
import ShareYourSystem as SYS
#Definition
MyBrianer=SYS.BrianerClass(
).collect(
"Neurongroupers",
'P',
SYS.NeurongrouperClass(
#Here are defined the brian classic shared arguments for each pop
**{
'NeurongroupingKwargVariablesDict':
{
'N':2,
'model':
'''
Jr : 1
... | Ledoux/ShareYourSystem | Pythonlogy/draft/Simulaters/Brianer/draft/07_ExampleDoc.py | Python | mit | 1,597 |
package tactician;
/**
* This class is responsible for converting between a {@link Move} object and chess algebraic
* notation. {@link #algebraicToMove(Board, String)} converts a string in algebraic notation to a
* {@link Move} and {@link #moveToAlgebraic(Board, Move)} does the opposite.
*
* @see <a href="https:... | philleski/tactician | src/tactician/AlgebraicNotation.java | Java | mit | 11,982 |
/**
*/
package rgse.ttc17.emoflon.tgg.task2;
import gluemodel.CIM.IEC61970.LoadModel.ConformLoadGroup;
import org.eclipse.emf.ecore.EObject;
import org.moflon.tgg.runtime.AbstractCorrespondence;
// <-- [user defined imports]
// [user defined imports] -->
/**
* <!-- begin-user-doc -->
* A representation of the mo... | georghinkel/ttc2017smartGrids | solutions/eMoflon/rgse.ttc17.emoflon.tgg.task2/gen/rgse/ttc17/emoflon/tgg/task2/ConformLoadGroupToConformLoadGroup.java | Java | mit | 2,906 |
require 'spec_helper'
describe Maxmind::ChargebackRequest do
before do
Maxmind.user_id = 'user'
Maxmind.license_key = 'key'
@request = Maxmind::ChargebackRequest.new(:client_ip => '198.51.100.2')
end
it "requires a License Key" do
Maxmind.license_key = nil
expect { @request.send(:validate) }... | jack-trikeapps/maxmind | spec/maxmind/chargeback_request_spec.rb | Ruby | mit | 691 |
package infrastructure
import (
"database/sql"
_ "github.com/mattn/go-sqlite3"
"log"
)
type SqliteHandler struct {
Path string
Connect *sql.DB
}
func (handler *SqliteHandler) Open() error {
db, err := sql.Open("sqlite3", handler.Path)
if err != nil {
log.Panic(err)
}
handler.Connect = db
return err
}
... | orleans-tech/s01e03-discover-node-js | 07-api-rest-go/src/server/src/infrastructure/sqlitehandler.go | GO | mit | 657 |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Paypal\Block\Payment\Form\Billing;
/**
* Paypal Billing Agreement form block
*/
class Agreement extends \Magento\Payment\Block\Form
{
/**
* @var string
*/
protected $_... | j-froehlich/magento2_wk | vendor/magento/module-paypal/Block/Payment/Form/Billing/Agreement.php | PHP | mit | 1,961 |
const template = require("../../../layouts/hbs-loader")("base.ftl");
module.exports = template({
body: require("./html/body.ftl")
}); | chenwenzhang/frontend-scaffolding | src/pages/freemarker/index/html.js | JavaScript | mit | 137 |
package com.thebluealliance.androidclient.gcm;
import com.thebluealliance.androidclient.TbaLogger;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.support.v4.content.WakefulBroadcastReceiver;
public class GCMBroadcastRec... | 1fish2/the-blue-alliance-android | android/src/main/java/com/thebluealliance/androidclient/gcm/GCMBroadcastReceiver.java | Java | mit | 881 |
export * from './login-form';
| javlaking/testangular2ci | src/components/login/index.ts | TypeScript | mit | 30 |
//1. consider terminate and return when found a bound condition.
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode *deleteDuplicates(ListNode *head) {
// Start typin... | Xe0n0/LeetCode | Remove Duplicates from Sorted List II.cpp | C++ | mit | 1,211 |
<?php
/**
* @Created By ECMall PhpCacheServer
* @Time:2015-01-23 00:46:43
*/
if(filemtime(__FILE__) + 1800 < time())return false;
return array (
'id' => 2397,
'goods' =>
array (
'goods_id' => '2397',
'store_id' => '131',
'type' => 'material',
'goods_name' => '烤干熟虾皮100g',
'descr... | guotao2000/ecmall | temp/caches/0090/c71737c6413b27861acfd0ee34eefe35.cache.php | PHP | mit | 14,910 |
Jx().package("T.UI.Controls", function(J){
// 严格模式
'use strict';
var _crrentPluginId = 0;
var defaults = {
// 选项
// fooOption: true,
// 覆写 类方法
// parseData: undefined,
// 事件
// onFooSelected: undefined,
// onFooChange: function(e, data){}
... | staticmatrix/Triangle | src/framework/controls/dtpicker/dtpicker.js | JavaScript | mit | 82,149 |
using System;
namespace Webhooks.API.Exceptions
{
public class WebhooksDomainException : Exception
{
}
}
| albertodall/eShopOnContainers | src/Services/Webhooks/Webhooks.API/Exceptions/WebhooksDomainException.cs | C# | mit | 121 |
using ZKWeb.Plugins.Common.Currency.src.Components.Interfaces;
using ZKWebStandard.Ioc;
namespace ZKWeb.Plugins.Common.Currency.src.Components.Currencies {
/// <summary>
/// 卢布
/// </summary>
[ExportMany]
public class RUB : ICurrency {
public string Type { get { return "RUB"; } }
public string Pref... | zkweb-framework/ZKWeb.Plugins | src/ZKWeb.Plugins/Common.Currency/src/Components/Currencies/RUB.cs | C# | mit | 412 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys.cryptography.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.CoreUtils;
/**
* Represents the details of decrypt operation result.
*/
@Immutable
pub... | selvasingh/azure-sdk-for-java | sdk/keyvault/azure-security-keyvault-keys/src/main/java/com/azure/security/keyvault/keys/cryptography/models/DecryptResult.java | Java | mit | 1,715 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FormField = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descript... | RWOverdijk/aurelia-form | dist/commonjs/component/form-field.js | JavaScript | mit | 6,802 |
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* CatsAdoptionEvents Controller
*
* @property \App\Model\Table\CatsAdoptionEventsTable $CatsAdoptionEvents
*/
class CatsAdoptionEventsController extends AppController
{
/**
* Index method
*
* @return \Cake\Network\Response|n... | TheParrotsAreComing/PAWS | src/Controller/CatsAdoptionEventsController.php | PHP | mit | 4,276 |
module kotlin.graphics.imgui.glfw {
requires kotlin.stdlib;
requires kotlin.graphics.imgui.core;
requires kotlin.graphics.uno.core;
requires kotlin.graphics.glm;
requires kotlin.graphics.kool;
requires org.lwjgl.glfw;
exports imgui.impl.glfw;
} | kotlin-graphics/imgui | glfw/src/main/java/module-info.java | Java | mit | 276 |
require 'spec_helper'
describe 'have_where_clause' do
class Test < ActiveRecord::Base
OLD_CUTOFF = 10.days.ago
scope :active, -> { where(active: true) }
scope :old, -> { where(Test.arel_table[:updated_at].lt(OLD_CUTOFF)) }
end
class Test2 < ActiveRecord::Base
has_many :tests
end
it 'should ... | serek/rspec-arel-matchers | spec/rspec/arel_matchers/matchers/have_where_clause_spec.rb | Ruby | mit | 872 |
# add a plugin manager
unless node[:vim_config][:skip_plugin_manager]
if ["pathogen","unbundle", "vundle"].include?(node[:vim_config][:plugin_manager].to_s)
include_recipe "vim_config::_plugin_manager"
else
Chef::Log.warn "Plugin manager not set or not recognized: #{ node[:vim_config][:plugin_manager] }"
... | promisedlandt/cookbook-vim_config | recipes/default.rb | Ruby | mit | 1,565 |
namespace OJS.Web.Areas.Administration.ViewModels.Contest
{
using System;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.SqlServer;
using System.Linq.Expressions;
using System.Web.Mvc;
using OJS.Data.Models;
using Resource = Resources.Areas.Administration.Contests.V... | nakov/OpenJudgeSystem | Open Judge System/Web/OJS.Web/Areas/Administration/ViewModels/Contest/ChangeParticipationEndTimeViewModel.cs | C# | mit | 3,487 |
class Solution {
public:
bool stoneGame(vector<int>& piles) {
return true;
}
};
| gzc/leetcode | cpp/871-880/Stone Game.cpp | C++ | mit | 96 |
/*
* $Id$
* Copyright (C) 2006 Klaus Reimer <k@ailis.de>
*
* 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, ... | delMar43/wlandsuite | src/main/java/de/ailis/wlandsuite/io/BitOutputStream.java | Java | mit | 7,613 |
// Copyright (c) 2015 ZZZ Projects. All rights reserved
// Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
// Website: http://www.zzzprojects.com/
// Feedback / Feature Requests / Issues : http://zzzprojects.uservoice.com/forums/283927
// All ZZZ Projects products: Entity Framework ... | huoxudong125/Z.ExtensionMethods | test/Z.Core.Test/System.Boolean/Boolean.ToString.cs | C# | mit | 1,005 |
'use strict';
angular.module('contactServices', [])
// Factory responsible for assembling the form data before it's passed over the php
.factory('assembleFormDataService', function(){
return {
populateFormData: function(fname, lname, address, city, zipcode, mnumber, lnumber, relation, email, photoSubmit){
var f... | andrewwiik/VTHSCompSciClub | admin/contacts/js/contactServices.js | JavaScript | mit | 1,741 |
# -*- coding: utf-8 -*-
import datetime
from django.contrib.auth.models import User
from django.db import models
from django.utils.translation import ugettext_lazy as _
class RegisterToken(models.Model):
user = models.ForeignKey(User)
token = models.CharField(_(u'token'), max_length=32)
created = models... | dotKom/studlan | apps/authentication/models.py | Python | mit | 674 |
//
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
#region Using Statements
using System;
using DotNetNuke.Entities.Modules;
#endregion
namespace _OWNER_._MODULE_
{
public partial class _CONTROL_ : Po... | nvisionative/Dnn.Platform | DNN Platform/Admin Modules/Dnn.Modules.ModuleCreator/Templates/C#/Module - User Control/_CONTROL_.ascx.cs | C# | mit | 1,111 |
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|31 Jul 2007 14:34:52 -0000
vti_extenderversion:SR|4.0.2.7802
| tauheedahmed/ecosys | project_files/_vti_cnf/frmMainAppts.aspx.cs | C# | mit | 109 |
<?php
/*
* This file is part of the DunglasApiBundle package.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Dunglas\ApiBundle\Api\Operation;
use Symfony\Component\Routing\Rou... | yelmontaser/DunglasApiBundle | Api/Operation/Operation.php | PHP | mit | 1,264 |
# frozen_string_literal: false
begin
require '-test-/iseq_load/iseq_load'
rescue LoadError
end
require 'tempfile'
class RubyVM::InstructionSequence
def disasm_if_possible
begin
self.disasm
rescue Encoding::CompatibilityError, EncodingError, SecurityError
nil
end
end
def self.compare_d... | rokn/Count_Words_2015 | fetched_code/ruby/iseq_loader_checker.rb | Ruby | mit | 2,424 |
class Good
{
public int Max(int a, int b)
{
return a > b ? a : b;
}
}
| github/codeql | csharp/ql/test/query-tests/Bad Practices/Control-Flow/ConstantCondition/ConstantConditionGood.cs | C# | mit | 90 |
/*
* The MIT License
*
* Copyright 2017 kuniaki.
*
* 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... | sugiuraii/WebSocketGaugeClientNeo | src/index/webpack.config.js | JavaScript | mit | 3,486 |
// COMPILER GENERATED CODE
// THIS WILL BE OVERWRITTEN AT EACH GENERATION
// EDIT AT YOUR OWN RISK
using System.Runtime.CompilerServices;
namespace PowerCalculator.Model.Test
{
[CompilerGenerated]
public class Power
{
public double Real { get; set; }
public double Reactive { get; set; }
... | GridProtectionAlliance/openECA | Source/Demo/PowerCalculator/PowerCalculator/Model/Test/Power.cs | C# | mit | 325 |
#!/usr/bin/ruby
#
# Demonstation for Ruby
#
puts $LOAD_PATH
# extend the load path for wosg
$LOAD_PATH << '../../bin/ruby'
# include all necessary libs
require 'wosg'
require 'wosgDB'
require 'wosgProducer'
class Viewer
def initialize()
# open a viewer
@viewer = WosgProducer::Viewer.new
# open
@vi... | cmbruns/osgswig | examples/ruby/viewer.rb | Ruby | mit | 711 |
var searchData=
[
['basepath',['BASEPATH',['../index_8php.html#ad39801cabfd338dc5524466fe793fda9',1,'index.php']]]
];
| forstermatth/LIIS | refman/search/variables_62.js | JavaScript | mit | 120 |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... | enclose-io/compiler | current/test/parallel/test-repl-tab-complete.js | JavaScript | mit | 19,230 |
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Link, browserHistory } from 'react-router';
import App from './App';
import NotFound from './Pages/NotFound/NotFound';
import Users from './Pages/Users/Users';
import Chats from './Pages/Chats/Chats';
import './index.css';
ReactDOM.... | ParkDyel/practice | WebDev/FE/JS/Reactjs/PRWF/src/index.js | JavaScript | mit | 599 |
require 'celluloid/current'
require 'celluloid/io'
module Celluloid
module SMTP
require 'celluloid/smtp/constants'
require 'celluloid/smtp/logging'
require 'celluloid/smtp/version'
require 'celluloid/smtp/extensions'
class Server
include SMTP::Extensions
require 'celluloid/smtp/server... | abstractive/celluloid-smtp | lib/celluloid/smtp.rb | Ruby | mit | 784 |
<div class="col-md-6 col-md-offset-3">
<div class="box box-success direct-chat direct-chat-success">
<div class="box-header with-border">
<h1 class="box-title"><i class="fa fa-file-text-o"></i> <?php echo $title; ?></h1>
<div class="pull-right">
<i class="fa fa-close" onclick="closeModal()"></... | Gincusoft/aksi | application/modules/messaging/views/outbox/detail.php | PHP | mit | 5,440 |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2016 Google Inc.
* https://developers.google.com/blockly/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | NTUTVisualScript/Visual_Script | static/javascript/blockly/core/events.js | JavaScript | mit | 11,197 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911
// .1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.... | AltisourceLabs/ecloudmanager | tmrk-cloudapi/src/main/java/org/ecloudmanager/tmrk/cloudapi/model/ArrayOfInternetServiceType.java | Java | mit | 2,395 |
from py_word_suggest.utils import *
import pytest
raw_json = """
{"lang:nl:0:ben":[["ik", 22.0], ["er", 8.0], ["een", 7.0], ["je", 5.0]],"lang:nl:0:Ik":[["heb", 66.0], ["ben", 52.0], ["denk", 15.0], [
"wil", 13.0], ["acht", 1.0]],"lang:eng:0:I":[["am", 100], ["want", 246], ["love", 999]],"lang:eng:0:am":[["the",100... | eronde/vim_suggest | tests/test_utils.py | Python | mit | 9,992 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About KappaCoin</source>
<translation>عن KappaCoin</translation>
</mes... | kombatcoin/KAP | src/qt/locale/bitcoin_ar.ts | TypeScript | mit | 97,707 |
var x = require("x-view");
var Raw = x.createClass({
propTypes: {
html: x.type.string
},
init: function() {
x.event.on(this, "updated", this.updateHTML);
},
updateHTML: function() {
this.root.innerHTML = this.props.html;
}
});
x.register("x-raw", Raw);
| lixiaoyan/x-view | tags/raw.js | JavaScript | mit | 279 |
// <copyright file="SparseMatrix.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
//
// Copyright (c) 2009-2013 Math.NET
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of thi... | albertp007/mathnet-numerics | src/Numerics/LinearAlgebra/Complex/SparseMatrix.cs | C# | mit | 60,593 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class BuildConfig(AppConfig):
name = 'build'
| inventree/InvenTree | InvenTree/build/apps.py | Python | mit | 150 |
type SerializeOptions = {
domain?: string,
encode?: (stringToDecode: string) => string,
expires?: Date,
httpOnly?: boolean,
maxAge?: number,
path?: string,
sameSite?: boolean | 'lax' | 'strict',
secure?: boolean,
...
};
type ParseOptions = { // Library itself does not specify output for decode functi... | flowtype/flow-typed | definitions/npm/cookie_v0.3.x/flow_v0.104.x-/cookie_v0.3.x.js | JavaScript | mit | 711 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Security.Permissions;
namespace StaThreadSyncronizer
{
[SecurityPermission(SecurityAction.Demand, ControlThread = true)]
public class StaSynchronizationContext : SynchronizationContext, IDi... | jmptrader/JRIAppTS | RIAppDemo/RIAPP.DataService/Utils/STAThreadSync/StaSynchronizationContext.cs | C# | mit | 1,996 |
<TS language="sv" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Högerklicka för att ändra adressen eller etiketten.</translation>
</message>
<message>
<source>Create a new address</source>
... | xieta/mincoin | src/qt/locale/bitcoin_sv.ts | TypeScript | mit | 124,283 |
/**
* --------------------------------------------------------------------------
* Bootstrap (v4.3.1): dom/selector-engine.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import { find as findFn, findOn... | stanwmusic/bootstrap | js/src/dom/selector-engine.js | JavaScript | mit | 2,277 |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package mlog
// Standard levels
var (
LvlPanic = LogLevel{ID: 0, Name: "panic", Stacktrace: true}
LvlFatal = LogLevel{ID: 1, Name: "fatal", Stacktrace: true}
LvlError = LogLevel{ID: 2, Name: "error"}
Lv... | 42wim/matterircd | vendor/github.com/mattermost/mattermost-server/v5/shared/mlog/levels.go | GO | mit | 2,097 |
version https://git-lfs.github.com/spec/v1
oid sha256:9e5db06495724b6fedb3e06776242c7ddb55da8532eb678a5a5b88757b8108df
size 1211
| yogeshsaroya/new-cdnjs | ajax/libs/mathjax/1.1a/jax/output/HTML-CSS/fonts/STIX/General/Italic/GeneralPunctuation.js | JavaScript | mit | 129 |
<?php
namespace App\Jobs;
use App\Classes\NewcomerMatching;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
class matchNewcomerGodfather implements ShouldQueue
{
u... | ungdev/integration-UTT | app/Jobs/matchNewcomerGodfather.php | PHP | mit | 750 |
using System;
using System.Collections.Generic;
namespace LightweightInfluxDb
{
public interface ISeriesPoint
{
string Name { get; }
Dictionary<string, string> Tags { get; }
List<string> Fields { get; }
List<object> Values { get; }
DateTime? Timestamp { get; }
}
} | N6UDP/LightweightInfluxDb | src/LightweightInfluxDb/ISeriesPoint.cs | C# | mit | 312 |
var spawn = require('child_process').spawn,
Promise = require('bluebird'),
uuid = require('node-uuid'),
path = require('path'),
fs = require('fs'),
mkdirp = require('mkdirp'),
_ = require('underscore'),
fs = require('fs'),
Sftp = require('sftp-upload');
var rosettaExecutable = path.join(__dirname, '../... | DURAARK/microservice-sipgenerator | bindings/rosetta/app.js | JavaScript | mit | 5,477 |
package main
import (
"log"
"time"
"github.com/spf13/cobra"
"github.com/brunetto/goutils/debug"
"github.com/brunetto/sltools/slt"
)
var (
noGPU, tf, as, noBinaries bool
icsFileName string
intTime string
randomNumber string
)
var kiraWrapCmd = &cobra.Command{
Use: "kiraWrap",
Short: "Wrapper for th... | brunetto/sltools-dev | cmd/kiraWrap/kiraWrap.go | GO | mit | 1,700 |
package edu.msudenver.cs3250.group6.msubanner.entities;
/**
* The professor class.
*/
public final class Professor extends User {
/**
* Default constructor, creates blank professor.
*/
public Professor() {
}
/**
* Constructor.
*
* @param firstName professors first name
... | cs3250-team6/msubanner | src/main/java/edu/msudenver/cs3250/group6/msubanner/entities/Professor.java | Java | mit | 698 |
import elem from "./_elem.js";
import clrPckr from "./_color-picker.js";
var s, x, y, z,
colorNum = 0,
arrMap = [],
c = document.getElementById("canvasGrid"),
ctx = c.getContext("2d");
var grid = {
//create grid and create boxes
createGridIllustrator: () => {
//module for creating a g... | CharlieGreenman/pixelatorV2_with_react | app/js/_grid.js | JavaScript | mit | 3,948 |
#!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.pardir)
from testing_harness import TestHarness
if __name__ == '__main__':
harness = TestHarness('statepoint.5.*', True)
harness.main()
| kellyrowland/openmc | tests/test_many_scores/test_many_scores.py | Python | mit | 212 |
'use strict';
//https://gist.github.com/yannickcr/6129327b31b27b14efc5
const instrumenter = require('isparta').Instrumenter;
module.exports = function (gulp, $, {src, testSrc, requires, coverageDir, disableCoverage}) {
const runTest = function runTest() {
return gulp.src(testSrc, {read: false})
... | k-sheth/hapi-getting-started | tasks/test.js | JavaScript | mit | 1,713 |
require 'chefspec'
describe 'group::create' do
platform 'ubuntu'
describe 'creates a group with the default action' do
it { is_expected.to create_group('default_action') }
it { is_expected.to_not create_group('not_default_action') }
end
describe 'creates a group with an explicit action' do
it { i... | chefspec/chefspec | examples/group/spec/create_spec.rb | Ruby | mit | 724 |
package collectors
import (
"fmt"
"math"
"regexp"
"strings"
"time"
"bosun.org/_third_party/github.com/StackExchange/wmi"
"bosun.org/metadata"
"bosun.org/opentsdb"
"bosun.org/slog"
)
func init() {
collectors = append(collectors, &IntervalCollector{F: c_network_windows, init: winNetworkInit})
c := &Interva... | vimeo/bosun | cmd/scollector/collectors/network_windows.go | GO | mit | 16,465 |
require_relative '../bm_helper'
RUN_TIMES = 10
MyBenchmark.group 'Table initialization' do |b|
# Current method used by Table#new
b.report('String#to_table') do
RUN_TIMES.times do
File.open('bm/fixtures/table_1.txt').read.to_table
end
end
b.report('Table#row:Hash') do
RUN_TIMES.times do
... | biotcm/biotcm | bm/biotcm/bm_table.rb | Ruby | mit | 1,478 |
module Github
module Representation
class PullRequest < Representation::Issuable
delegate :user, :repo, :ref, :sha, to: :source_branch, prefix: true
delegate :user, :exists?, :repo, :ref, :sha, :short_sha, to: :target_branch, prefix: true
def source_project
project
end
def ... | dplarson/gitlabhq | lib/github/representation/pull_request.rb | Ruby | mit | 3,306 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.09.07 at 0... | mozu-customer-success/Mozu.Integrations.Quickbooks | src/main/java/com/mozu/qbintegration/model/qbmodel/allgen/CheckModRsType.java | Java | mit | 5,304 |
require 'rails_helper'
describe 'Event', type: :feature do
describe 'index page' do
it "should link to the show page when an event's read more button is clicked" do
event = FactoryGirl.create :event
visit events_path
click_link event.name
expect(page).to have_current_path(event_path(event... | hpi-swt2/workshop-portal | spec/features/event_spec.rb | Ruby | mit | 16,955 |
<?php
/**
* The contents of this file was generated using the WSDLs as provided by eBay.
*
* DO NOT EDIT THIS FILE!
*/
namespace DTS\eBaySDK\Trading\Types;
/**
*
* @property \DTS\eBaySDK\Trading\Enums\PaymentStatusCodeType $eBayPaymentStatus
* @property \DateTime $LastModifiedTime
* @property \DTS\eBaySDK\Tra... | chain24/ebayprocess-lumen | vendor/dts/ebay-sdk-php/src/Trading/Types/CheckoutStatusType.php | PHP | mit | 3,035 |
class CouldNotSendError(Exception): pass
class AlertIDAlreadyInUse(Exception): pass
class AlertBackendIDAlreadyInUse(Exception): pass
class InvalidApplicableUsers(Exception): pass | jiaaro/django-alert | alert/exceptions.py | Python | mit | 180 |
/*
* The MIT License
*
* Copyright 2015 user.
*
* 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, me... | judovana/jenkins-scm-koji-plugin | fake-koji/src/main/java/org/fakekoji/core/utils/FileFileFilter.java | Java | mit | 1,407 |
"""
Combination of multiple media players into one for a universal controller.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/media_player.universal/
"""
import logging
# pylint: disable=import-error
from copy import copy
from homeassistant.components.... | instantchow/home-assistant | homeassistant/components/media_player/universal.py | Python | mit | 13,920 |
require 'spec_helper'
require_relative '../mock_servers'
##
# subclass the client we want to test so we can make test-methods easier
class TestFlightTestClient < Spaceship::TestFlight::Client
def test_request(some_param: nil, another_param: nil)
assert_required_params(__method__, binding)
end
def handle_res... | revile/fastlane | spaceship/spec/test_flight/client_spec.rb | Ruby | mit | 10,676 |
#include "aboutdialog.h"
#include "ui_aboutdialog.h"
#include "clientmodel.h"
#include "clientversion.h"
// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
const int ABOUTDIALOG_COPYRIGHT_YEAR = 2014;
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent),
... | chaosagent/pandacoin | src/qt/aboutdialog.cpp | C++ | mit | 1,047 |
require 'yaml'
require 'json'
require 'cucumber/cucumber_expressions/cucumber_expression_tokenizer'
require 'cucumber/cucumber_expressions/errors'
module Cucumber
module CucumberExpressions
describe 'Cucumber expression tokenizer' do
Dir['testdata/tokens/*.yaml'].each do |testcase|
expectation = YA... | cucumber/cucumber-expressions-ruby | spec/cucumber/cucumber_expressions/cucumber_expression_tokenizer_spec.rb | Ruby | mit | 863 |
/*
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <jni.h>
#include <webp/demux.h>
#include <webp/decode.h>
#include "exceptions.h"
#include "decoded_image.h"
#include "streams.h... | s1rius/fresco | static-webp/src/main/jni/static-webp/webp/webp_codec.cpp | C++ | mit | 3,114 |
"use strict";
/*
* ooiui/static/js/views/science/HighChartsStreamingDataView.js
*/
var HighchartsStreamingContainerView = Backbone.View.extend({
subviews : [],
showControls: true,
initialize: function(options) {
if (options && 'showControls' in options){
this.showControls = options.show... | FBRTMaka/ooi-ui | ooiui/static/js/views/science/HighChartsStreamingDataView.js | JavaScript | mit | 23,076 |
[assembly: Microsoft.Xrt.Runtime.NativeType("System.Diagnostics.Tracing.*")]
namespace Microsoft.Protocols.TestSuites.MS_OXCFXICS
{
using Microsoft.Modeling;
using Microsoft.Protocols.TestSuites.Common;
/// <summary>
/// Model program.
/// </summary>
public static class Model
{
... | XinwLi/Interop-TestSuites-1 | ExchangeMAPI/Source/MS-OXCFXICS/Model/Model.cs | C# | mit | 359,170 |
/*
* homeController.js
* Jami Boy Mohammad
*/
var homeController = angular.module('homeController', []);
homeController.controller('homeController', function($scope) {
}); | jamiboy16/bearded-ninja | public/app/components/home/homeController.js | JavaScript | mit | 179 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using System.Xml;
using System.Xml.Linq;
using System.IO;
using Nuterra;
namespace Sylver.PreciseSnapshots
{
public static class XMLSave
{
/// <summary>
/// Sa... | maritaria/terratech-mod | src/Sylver.PreciseSnapshots/XMLSave.cs | C# | mit | 3,819 |
<?php
namespace Ikerib\IkasiBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class QuestionControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient();
... | ikerib/sf2-instrucciones | src/Ikerib/IkasiBundle/Tests/Controller/QuestionControllerTest.php | PHP | mit | 1,945 |
package logviewer;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
/**
*
* @author Rene Zwanenburg
*/
public final class LogReader
{
private LogReader(){}
public static ArrayList<Unit> readFile(File f) {
ArrayList<Unit> l = new ArrayList<... | 166MMX/Dune-II---The-Maker | resources/tools/LogViewer/src/logviewer/LogReader.java | Java | mit | 2,290 |
/**
* The MIT License (MIT)
*
* Copyright (c) 2012-2018 DragonBones team and other contributors
*
* 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... | DragonBones/DragonBonesJS | Pixi/5.x/src/dragonBones/pixi/PixiTextureAtlasData.ts | TypeScript | mit | 4,172 |
/**
* 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.
*/
package com.microsoft.azure.cognitiveservices.vision.computervision.models;
import java... | navalev/azure-sdk-for-java | sdk/cognitiveservices/ms-azure-cs-computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/AnalyzeImageOptionalParameter.java | Java | mit | 4,218 |
<?php
return [
'plugin' => [
'name' => 'Utenti',
'description' => 'Gestione Utenti Front-End.',
'tab' => 'Utenti',
'access_users' => 'Gestisci Utenti',
'access_groups' => 'Gestisci Gruppi di Utenti',
'access_settings' => 'Gestisci Impostazioni Utenti'
],
'use... | LukeTowers/oc-queencityhack2k17-site | plugins/rainlab/user/lang/it/lang.php | PHP | mit | 10,511 |
'use strict';
/**@type {{[k: string]: string}} */
let BattleAliases = {
// formats
"randbats": "[Gen 8] Random Battle",
"uber": "[Gen 8] Ubers",
"ag": "[Gen 8] Anything Goes",
"mono": "[Gen 8] Monotype",
"randdubs": "[Gen 8] Random Doubles Battle",
"doubles": "[Gen 8] Doubles OU",
"dubs": "[Gen 8] Doubles OU",... | QuiteQuiet/Pokemon-Showdown | data/aliases.js | JavaScript | mit | 43,883 |
package router_test
import (
"testing"
"github.com/kataras/iris/v12"
"github.com/kataras/iris/v12/context"
"github.com/kataras/iris/v12/core/router"
"github.com/kataras/iris/v12/httptest"
)
var (
finalExecutionRulesResponse = "1234"
testExecutionResponse = func(t *testing.T, app *iris.Application, path strin... | kataras/gapi | core/router/handler_execution_rules_test.go | GO | mit | 3,347 |
import { moduleForComponent, test } from 'ember-qunit';
import wait from 'ember-test-helpers/wait';
import hbs from 'htmlbars-inline-precompile';
import startMirage from '../../helpers/setup-mirage';
moduleForComponent('data-table', 'Integration | Component | data table', {
integration: true,
setup: function() {
... | quantosobra/ember-data-table-light | tests/integration/components/data-table-test.js | JavaScript | mit | 602 |
import {useEntryStateConfig} from "./EntryStateProvider";
/**
* Returns an object containing theme asset paths.
*
* @example
*
* const theme = useTheme();
* theme // =>
* {
* assets: {
* logoDesktop: 'path/to/logoDesktop.svg',
* logoMobile: 'path/to/logoMobile.svg'
* },
* options:... | tf/pageflow | entry_types/scrolled/package/src/entryState/theme.js | JavaScript | mit | 548 |
# frozen_string_literal: true
shared_context 'survey_assignment' do
before do
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.deliveries = []
@user = create(:user, username: 'Jonathan', email: 'jonathan@wintr.us')
@user2 = create(:user, u... | Wowu/WikiEduDashboard | spec/support/shared_contexts/survey_assignment.rb | Ruby | mit | 2,341 |
<?php
header("Content-type: text/xml");
$fil = fopen("https://www.yr.no/sted/Norge/%C3%98stfold/Halden/Halden/varsel.xml","r")
while($linjer = fopen($fil)) {
echo $linjer;
}
?> | Donslayer/Introduction-to-programming-Javascript- | laptopWampInfoFiles/oppgave3/nas.proxy.php | PHP | mit | 190 |
using System.Collections.Generic;
namespace dotnet_toolbox.api.Query {
public interface ILatestPackagesIndex
{
IEnumerable<string> Get();
void Update(long timestamp, string packageName);
}
} | LukeWinikates/dotnet-toolbox | src/dotnet-toolbox.api/Query/ILatestPackagesIndex.cs | C# | mit | 219 |
class UsersController < ApplicationController
before_action :set_user, only: [:show, :edit, :update, :destroy]
# GET /users
# GET /users.json
def index
@users = current_admin.admin? ? User.all : current_admin.users
authorize! :read, User
@users.each do |user|
authorize! :read, user
end
... | fate83/MailAdmin | app/controllers/users_controller.rb | Ruby | mit | 2,318 |
<?php return array (
'ab' => 'Abchazisch',
'ada' => 'Adangme',
'ady' => 'Adygees',
'om' => 'Afaan Oromo',
'aa' => 'Afar',
'afh' => 'Afrihili',
'af' => 'Afrikaans',
'agq' => 'Aghem',
'ain' => 'Ainu',
'ak' => 'Akan',
'akk' => 'Akkadisch',
'ach' => 'Akoli',
'bss' => 'Akoose',
'akz' => 'Alabama'... | aanton03/language-list | data/nl_BE/language.php | PHP | mit | 14,046 |
/*
* The MIT License
* Copyright (c) 2012 Microsoft Corporation
*
* 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,... | relateiq/ews-java-api | src/main/java/microsoft/exchange/webservices/data/core/service/schema/ItemSchema.java | Java | mit | 24,413 |
// this exports a "masked" version of the WrapUp class.
var WrapUp = require("./wrapup")
module.exports = function(x){
return new WrapUp(x)
}
| kentaromiura/sugo | node_modules/wrapup/node_modules/prime/cov/node_modules/wrapup/lib/main.js | JavaScript | mit | 145 |
#Practica realizada por: Miguel Aurelio García González y Daura Hernández Díaz
#En esta practica desarrollamos tres clases, la clase Matriz, MatrizDensa y MatrizDispersa.
#La clase Matriz será la madre de las otras dos.
class Matriz
attr_accessor :m, :t
#definición del método initialize, donde crearemos la matriz... | alu0100600643/Practica12 | lib/matriz.rb | Ruby | mit | 7,713 |
#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "optionsmodel.h"
#include "transactiontablemodel.h"
#include "transactionfilterproxy.h"
#include "guiutil.h"
#include "guiconstants.h"
#include "askpassphrasedialog.h"
#include "util.h"
#include <QAbstra... | mammix2/boostcoin-core | src/qt/overviewpage.cpp | C++ | mit | 7,949 |
import gc
import os.path
from mock import Mock
from pythoscope.code_trees_manager import CodeTreeNotFound, \
FilesystemCodeTreesManager
from pythoscope.store import CodeTree, Module
from assertions import *
from helper import TempDirectory
class TestFilesystemCodeTreesManager(TempDirectory):
def setUp(self... | mkwiatkowski/pythoscope | test/test_code_trees_manager.py | Python | mit | 4,388 |
import * as React from 'react';
import PropTypes from 'prop-types';
import debounce from '../utils/debounce';
import useForkRef from '../utils/useForkRef';
import useEnhancedEffect from '../utils/useEnhancedEffect';
import ownerWindow from '../utils/ownerWindow';
function getStyleValue(computedStyle, property) {
ret... | callemall/material-ui | packages/material-ui/src/TextareaAutosize/TextareaAutosize.js | JavaScript | mit | 6,538 |
# -*- coding: utf-8 -
#
# This file is part of socketpool.
# See the NOTICE for more information.
import errno
import os
import platform
import select
import socket
import sys
try:
from importlib import import_module
except ImportError:
import sys
def _resolve_name(name, package, level):
"""Retur... | benoitc/socketpool | socketpool/util.py | Python | mit | 4,541 |
version https://git-lfs.github.com/spec/v1
oid sha256:ec9603f026a2a1295d751178e7e48bf8b945506e9b05818112c5166e1e950a67
size 9557
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.8.0/calendarnavigator/calendarnavigator.js | JavaScript | mit | 129 |