repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
jayphelps/ember.js
tests/node/app-boot-test.js
8176
/*globals global,__dirname*/ var path = require('path'); var distPath = path.join(__dirname, '../../dist'); var emberPath = path.join(distPath, 'ember.debug.cjs'); var templateCompilerPath = path.join(distPath, 'ember-template-compiler'); var defeatureifyConfig = require(path.join(__dirname, '../../features.json')); ...
mit
jueyang/almostatlas
js/reveal.js
129623
/*! * reveal.js * http://lab.hakim.se/reveal-js * MIT licensed * * Copyright (C) 2015 Hakim El Hattab, http://hakim.se */ (function( root, factory ) { if( typeof define === 'function' && define.amd ) { // AMD. Register as an anonymous module. define( function() { root.Reveal = factory(); return root.Re...
mit
digimatic/ogre
RenderSystems/GL/src/GLSL/src/OgreGLSLProgram.cpp
21209
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
mit
yomolify/cc-server
node_modules/react-gmaps/dist/components/infoWindow.js
424
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _entity = require('./entity'); var _entity2 = _interopRequireDefault(_entity); var _events = require('./events'); exports['default'] ...
mit
Discordius/Lesswrong2
packages/lesswrong/components/async/editor-plugins/markdown-shortcuts-plugin/modifiers/handleImage.js
577
import insertImage from './insertImage'; const handleImage = (editorState, character) => { const re = /!\[([^\]]*)]\(([^)"]+)(?: "([^"]+)")?\)/g; const key = editorState.getSelection().getStartKey(); const text = editorState.getCurrentContent().getBlockForKey(key).getText(); const line = `${text}${character}`;...
mit
ReplayMod/MCProtocolLib
src/main/java/com/github/steveice10/mc/protocol/data/game/entity/player/InteractAction.java
142
package com.github.steveice10.mc.protocol.data.game.entity.player; public enum InteractAction { INTERACT, ATTACK, INTERACT_AT; }
mit
jordannick/SymfonyTest
web/js/jquery-autosave/src/jquery.autosave.js
19237
/** * @fileOverview jQuery.autosave * * @author Kyle Florence * @website https://github.com/kflorence/jquery-autosave * @version 1.2-pre * * Inspired by the jQuery.autosave plugin written by Raymond Julin, * Mads Erik Forberg and Simen Graaten. * * Dual licensed under the MIT and BSD Licenses. */ ;(function(...
mit
rodrigoamaral/django-fullcalendar
fullcalendar/tests.py
2430
from django.test import TestCase from .util import snake_to_camel_case, convert_field_names, calendar_options class CamelCaseTest(TestCase): def test_one_word_variable(self): s = 'one' self.assertEqual(snake_to_camel_case(s), 'one') def test_two_word_variable(self): s = 'two_word' ...
mit
Remak-kickstart/remark-kickstart
extensions/imagecropper/assets/jquery-ui-1.8.9.custom.min.js
20654
/*! * jQuery UI 1.8.9 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI */ (function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility"...
mit
jonnybee/csla
Samples/NET/cs/ExtendableWcfPortalForDotNet/Rolodex.WPF/Views/PleaseWaitView.xaml.cs
636
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigati...
mit
kbond/symfony
src/Symfony/Component/Cache/DependencyInjection/CachePoolPass.php
11025
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Cache\DependencyInjection; use Symfony\Component\Cach...
mit
next-l/enju_flower
spec/dummy/db/migrate/059_create_libraries.rb
892
class CreateLibraries < ActiveRecord::Migration def change create_table :libraries do |t| t.string :name, :null => false t.text :display_name t.string :short_display_name, :null => false t.string :zip_code t.text :street t.text :locality t.text :region t.string :tel...
mit
anditto/bitcoin
src/rpc/mining.cpp
58575
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <amount.h> #include <chain.h> #include <chainparams.h> #include <consensus/co...
mit
whoisjake/thoughts
vendor/sequel/spec/extensions/string_date_time_spec.rb
3213
require File.join(File.dirname(__FILE__), 'spec_helper') context "String#to_time" do specify "should convert the string into a Time object" do "2007-07-11".to_time.should == Time.parse("2007-07-11") "06:30".to_time.should == Time.parse("06:30") end specify "should raise InvalidValue for an invalid tim...
mit
crcn/nofactor.js
test/custom-test.js
746
var expect = require("expect.js"), nofactor = require(".."), custom = require("../lib/custom"), string = require("../lib/string"); describe("custom#", function () { var c = custom(string); it("can register a custom element", function () { c.registerElement("br", string.Element.extend({ toString: fu...
mit
nrc/rustc-perf
collector/benchmarks/cranelift-codegen/cranelift-codegen/src/isa/riscv/settings.rs
1711
//! RISC-V Settings. use crate::settings::{self, detail, Builder}; use core::fmt; // Include code generated by `cranelift-codegen/meta-python/gen_settings.py`. This file contains a public // `Flags` struct with an impl for all of the settings defined in // `cranelift-codegen/meta-python/isa/riscv/settings.py`. includ...
mit
jackmagic313/azure-sdk-for-net
sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/GalleryImagesOperationsExtensions.cs
23533
// <auto-generated> // 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 // re...
mit
chainer/chainercv
chainercv/utils/download.py
4987
from __future__ import division from __future__ import print_function from distutils.util import strtobool import hashlib import os import shutil import tarfile import tempfile import zipfile import filelock from six.moves.urllib import request import sys import time from chainer.dataset.download import get_dataset...
mit
timshannon/rollup-166
src/js/lib/lodash/collection/size.js
750
import getLength from '../internal/getLength'; import isLength from '../internal/isLength'; import keys from '../object/keys'; /** * Gets the size of `collection` by returning its length for array-like * values or the number of own enumerable properties for objects. * * @static * @memberOf _ * @category Collecti...
mit
pragkent/aliyun-disk
vendor/github.com/denverdino/aliyungo/opensearch/search.go
920
package opensearch import "net/http" type SearchArgs struct { //搜索主体 Query string `ArgName:"query"` //要查询的应用名 Index_name string `ArgName:"index_name"` //[可以通过此参数获取本次查询需要的字段内容] Fetch_fields string `ArgName:"fetch_fields"` //[指定要使用的查询分析规则] Qp string `ArgName:"qp"` //[关闭已生效的查询分析功能] Disable string `Arg...
mit
gruberro/Sylius
src/Sylius/Bundle/PromotionBundle/Controller/PromotionCouponController.php
2637
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Bundle\PromotionBundle\Controller; use FOS\RestBundle\View...
mit
OfficeDev/PnP-Transformation
Transformation Tool - CSOM/Transformation.PowerShell/WebPart/TransformWebPartByWeb.cs
1644
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Management.Automation; using Transformation.PowerShell.Base; namespace Transformation.PowerShell.WebPart { [Cmdlet(VerbsCommon.Set, "TargetWebPartEnd2EndByUsageCSV")] public class T...
mit
rofrischmann/react-look
packages/react-look-native/test/beforeEach.js
236
import StyleContainer from '../modules/api/StyleContainer' export function clearStyleContainer() { StyleContainer.selectors.clear() StyleContainer.dynamics.clear() StyleContainer._selector = 0 } beforeEach(clearStyleContainer)
mit
billba/botchat
samples/07.advanced-web-chat-apps/b.sso-for-enterprise/app/src/microsoftGraphProfile/Context.js
145
import { createContext } from 'react'; // We will create an empty context here and fill it out via Composer.js. export default createContext();
mit
gubaojian/trylearn
WebLayoutCore/Source/WebCore/platform/glib/KeyedEncoderGlib.cpp
5296
/* * Copyright (C) 2015 Igalia S.L. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following dis...
mit
liammagee/fierce-planet-node
public/javascripts/fp-core-old/libs/one-color/slides/CPHJS-Oct2011/colorcat/js/colorcat.js
4218
window.onload = function () { var backgrounds = [ 'background-color', 'background-image' ]; var directions = [ 'top', 'right', 'bottom', 'left' ]; var colorElements = []; var traverse = function (el, fn) { fn(el); for (var i = 0; i ...
mit
jjimenezg93/ai-state_machines
moai/src/uslscore/USZip.cpp
5185
// Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved. // http://getmoai.com // based on zpipe.c Version 1.2 as provided to the public domain 9 November 2004 by Mark Adler #include "pch.h" #include <stdio.h> #include <string.h> #include <assert.h> #include <zlib.h> #include <uslscore/USByteStream.h> #in...
mit
mdsolver/WurmAssistant3
src/Apps/WurmAssistant/WurmAssistant3/Areas/Calendar/CalendarForm.Designer.cs
22368
using AldursLab.WurmAssistant3.Utils.WinForms; namespace AldursLab.WurmAssistant3.Areas.Calendar { partial class CalendarForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> ...
mit
rhosilver/rhodes-1
lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationSingleton.java
11757
package com.rho.notification; import java.io.InputStream; import java.nio.ShortBuffer; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import android.app.Activity; import android.app.Dialog; import android.app.NotificationManager; import android.app.Pendi...
mit
hpinsley/angular-mashup
tools/tasks/build.e2e_test.ts
721
import {join} from 'path'; import {APP_SRC, TEST_SRC, TEST_E2E_DEST} from '../config'; import {templateLocals, tsProjectFn} from '../utils'; export = function buildE2eTest(gulp, plugins) { let tsProject = tsProjectFn(plugins); return function () { let src = [ 'typings/browser.d.ts', join(APP_SRC, ...
mit
hovsepm/azure-sdk-for-java
compute/resource-manager/v2017_09_01/src/main/java/com/microsoft/azure/management/compute/v2017_09_01/ResourceSkuCapabilities.java
1063
/** * 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.management.compute.v2017_09_01; import com.fasterxml.jackso...
mit
babel/babel
packages/babel-plugin-transform-template-literals/test/fixtures/default/template-revision/output.js
1186
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8; tag(_templateObject || (_templateObject = babelHelpers.taggedTemplateLiteral([void 0], ["\\unicode and \\u{55}"]))); tag(_templateObject2 || (_templateObject2 = babelHelper...
mit
hovsepm/azure-sdk-for-java
logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/implementation/WorkflowRunActionRepetitionsImpl.java
4067
/** * 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.management.logic.v2016_06_01.implementation; import com....
mit
tagalpha/library
app/code/core/Mage/Weee/Model/Config/Source/Fpt/Tax.php
1718
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
mit
idosekely/python-lessons
lesson_5/__init__.py
22
__author__ = 'sekely'
mit
tmcgee/cmv-wab-widgets
wab/2.15/widgets/RelatedTableCharts/nls/pt-pt/strings.js
507
define({ "_widgetLabel": "Tabelas de Gráficos Relacionados", "searchHeaderText": "Pesquisar um endereço ou localizar no mapa", "addressInfowindowTitle": "Localização Pesquisada", "mouseOverTooltip": "Clique para ver os gráfico(s)", "errMsgNoResultsFound": "Não foram encontrados resultados", "errMsgNoFeature...
mit
pilor/azure-sdk-for-net
src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorResponseException.cs
291
using Microsoft.Rest; namespace Microsoft.Azure.ApplicationInsights.Models { public partial class ErrorResponseException : RestException { public override string ToString() { return Body != null ? Body.ToString() : Response.Content; } } }
mit
code-computerlove/quarry
bin/cli.js
336
#!/usr/bin/env node // Enable strict mode for older versions of node // eslint-disable-next-line strict, lines-around-directive 'use strict'; const updateNotifier = require('update-notifier'); const pkg = require('../package.json'); const program = require('./programBuilder.js'); updateNotifier({ pkg, callback: progr...
mit
MehdyKarimpour/extensions
Signum.Entities.Extensions/Basics/FileContent.cs
347
namespace Signum.Entities.Basics { public class FileContent { public string FileName { get; private set; } public byte[] Bytes { get; private set; } public FileContent(string fileName, byte[] bytes) { this.FileName = fileName; this.Bytes = byte...
mit
aratin/visualintelligence
models/allnewes.js
629
var keystone = require('keystone'), Types = keystone.Field.Types; var Allnewes = new keystone.List('Allnewes', { autokey: { from: 'name', path: 'key' } }); Allnewes.add({ image1: { type: Types.CloudinaryImage}, date1:{type: Date}, news1: { type: String }, image2: { type: Types.CloudinaryImage}, date2:{type: Da...
mit
misfit-inc/misfit.co
wp-content/plugins/wp-ses/vendor/Aws3/Aws/data/personalize-events/2018-03-22/paginators-1.json.php
139
<?php // This file was auto-generated from sdk-root/src/data/personalize-events/2018-03-22/paginators-1.json return ['pagination' => []];
mit
dharmatech/BrightstarDB
src/core/BrightstarDB/Storage/BPlusTreeStore/ResourceIndex/ResourceStore.cs
3359
using System; using System.Text; using BrightstarDB.Profiling; using BrightstarDB.Storage.Persistence; namespace BrightstarDB.Storage.BPlusTreeStore.ResourceIndex { internal class ResourceStore : IResourceStore { private readonly IResourceTable _resourceTable; private const int MaxLocalLitera...
mit
CSC322-Grinnell/notifications
spec/helpers/parent_helper_spec.rb
411
require 'spec_helper' # Specs in this file have access to a helper object that includes # the ParentHelper. For example: # # describe ParentHelper do # describe "string concat" do # it "concats two strings with spaces" do # expect(helper.concat_strings("this","that")).to eq("this that") # end # end #...
mit
Aldrien-/three.js
src/renderers/WebGLRenderer.js
62655
import { REVISION, RGBAFormat, HalfFloatType, FloatType, UnsignedByteType, TriangleFanDrawMode, TriangleStripDrawMode, TrianglesDrawMode, LinearToneMapping, BackSide } from '../constants.js'; import { _Math } from '../math/Math.js'; import { DataTexture } from '../textures/DataTexture.js'; import { Frustum } ...
mit
c1t1zen/Neveshtar
vendor/yangqi/htmldom/src/Yangqi/Htmldom/HtmldomServiceProvider.php
684
<?php namespace Yangqi\Htmldom; use Illuminate\Support\ServiceProvider; class HtmldomServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = true; /** * Bootstrap the application events. * * @return void */ public func...
mit
phillbaker/analytics-js-rails
spec/rails-app-3.2.14/config/environments/development.rb
1285
RailsApp::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web s...
mit
xzf158/yeoman-generator-ut-ss
node_modules/yeoman-generator/node_modules/cheerio/node_modules/cheerio-select/node_modules/CSSselect/lib/pseudos.js
8215
/* pseudo selectors --- they are available in two forms: * filters called when the selector is compiled and return a function that needs to return next() * pseudos get called on execution they need to return a boolean */ var DomUtils = require("domutils"), isTag = DomUtils.isTag, ge...
mit
planetargon/active_merchant
test/unit/gateways/authorize_net_cim_test.rb
47734
require 'test_helper' class AuthorizeNetCimTest < Test::Unit::TestCase include CommStub def setup @gateway = AuthorizeNetCimGateway.new( login: 'X', password: 'Y' ) @amount = 100 @credit_card = credit_card @address = address @customer_profile_id = '3187' @customer_payment_p...
mit
Triiistan/symfony
src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php
40995
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Tests\Loader; use PHPUnit\Framewo...
mit
lale-help/lale-help
db/migrate/20160417005737_create_file_uploads.rb
542
class CreateFileUploads < ActiveRecord::Migration def change enable_extension 'uuid-ossp' create_table :file_uploads, id: :uuid do |t| t.string :name t.string :upload_type t.boolean :is_public, default: false t.integer :uploader_id t.string :uploadable_type t.integer :...
mit
zweidner/hubzero-cms
core/modules/mod_myactivity/mod_myactivity.php
277
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ namespace Modules\MyActivity; require_once __DIR__ . DS . 'helper.php'; with(new Helper($params, $module))->display();
mit
geekhack/incsyncwebfinal
app/cache/prod/translations/catalogue.en.php
4455
<?php use Symfony\Component\Translation\MessageCatalogue; $catalogue = new MessageCatalogue('en', array ( 'validators' => array ( 'fos_user.username.already_used' => 'The username is already used', 'fos_user.username.blank' => 'Please enter a username', 'fos_user.username.short' => 'The username is t...
mit
daiyu/gitlab-zh
spec/lib/gitlab/data_builder/push_spec.rb
2197
require 'spec_helper' describe Gitlab::DataBuilder::Push, lib: true do let(:project) { create(:project) } let(:user) { create(:user) } describe '.build_sample' do let(:data) { described_class.build_sample(project, user) } it { expect(data).to be_a(Hash) } it { expect(data[:before]).to eq('1b12f15a1...
mit
influxdb/influxdb
kv/migration/all/0018_repair-missing-shard-group-durations_test.go
143
package all import "testing" func TestMigration_PostUpgradeShardGroupDuration(t *testing.T) { testRepairMissingShardGroupDurations(t, 18) }
mit
isaacs/express
test/res.sendfile.js
5671
var express = require('../') , request = require('./support/http') , assert = require('assert'); describe('res', function(){ describe('.sendfile(path, fn)', function(){ it('should invoke the callback when complete', function(done){ var app = express() , calls = 0; app.use(function(req, ...
mit
toukajiang/sztw
src/main/java/betahouse/service/power/PowerTypeServiceImpl.java
1960
package betahouse.service.power; import betahouse.mapper.PowerTypeMapper; import betahouse.model.Power; import betahouse.model.PowerType; import betahouse.model.VO.PowerVO; import betahouse.service.form.FormTypeService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotyp...
mit
icede/Gridcoin-master
src/boinc/boinc/OpenPop/source/OpenPop/Mime/Decode/QuotedPrintable.cs
14050
using System; using System.IO; using System.Text; using System.Text.RegularExpressions; namespace OpenPop.Mime.Decode { /// <summary> /// Used for decoding Quoted-Printable text.<br/> /// This is a robust implementation of a Quoted-Printable decoder defined in <a href="http://tools.ietf.org/html/rfc2045">RFC 2045</...
mit
corneliusweig/rollup
test/function/samples/member-expression-assignment-in-function/_config.js
388
const assert = require('assert'); module.exports = { description: 'detect side effect in member expression assignment when not top level', code(code) { assert.equal(code.indexOf('function set(key, value) { foo[key] = value; }') >= 0, true, code); assert.equal(code.indexOf('set("bar", 2);') >= 0, true, code); a...
mit
abhiesa-tolexo/ElasticsearchBundle
Tests/app/fixture/Acme/TestBundle/Document/Category.php
464
<?php /* * This file is part of the ONGR package. * * (c) NFQ Technologies UAB <info@nfq.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ONGR\ElasticsearchBundle\Tests\app\fixture\Acme\TestBundle\Document; use ONG...
mit
jakzale/ogre
OgreMain/src/OgreRenderTarget.cpp
18652
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2013 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
mit
briandilley/jsonrpc4j
src/main/java/com/googlecode/jsonrpc4j/JsonRpcService.java
491
package com.googlecode.jsonrpc4j; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * Annotation to define the path of a JSON-RPC service. */ @Target(TYPE) @Rete...
mit
never615/laravel-admin
src/Console/PublishCommand.php
913
<?php namespace Encore\Admin\Console; use Illuminate\Console\Command; class PublishCommand extends Command { /** * The console command name. * * @var string */ protected $signature = 'admin:publish {--force}'; /** * The console command description. * * @var string ...
mit
eugenkiss/kotlinfx-ensemble
src/main/java/ensemble/samples/controls/text/TextFieldSample.java
2125
/* * Copyright (c) 2008, 2012 Oracle and/or its affiliates. * All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
mit
ouraspnet/ENode.Standard
src/ENode.Standard/Eventing/Impl/InMemoryEventStore.cs
5594
using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using ECommon.IO; using ECommon.Logging; namespace ENode.Eventing.Impl { public class InMemoryEventStore : IEventStore { private const int Editing = 1; ...
mit
yogeshsaroya/new-cdnjs
ajax/libs/dojo/1.5.1/_base.js
128
version https://git-lfs.github.com/spec/v1 oid sha256:6003581f5682a735209c7a30edef3f002544a2a3c402a4a5b41eef8b5338c412 size 599
mit
labboy0276/cli
tests/unit_tests/test-products.php
413
<?php use \Terminus\Products; class ProductsTest extends PHPUnit_Framework_TestCase { /** * @vcr products_instance */ function testProductsInstance() { $products = Products::instance(); $test = $products->getById('3b754bc2-48f8-4388-b5b5-2631098d03de'); $this->assertEquals('CiviCRM Starter Kit',...
mit
Azure/azure-sdk-for-java
sdk/eventhubs/microsoft-azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/impl/TrackingUtil.java
908
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.azure.eventhubs.impl; import org.apache.qpid.proton.engine.Session; public final class TrackingUtil { public static final String TRACKING_ID_TOKEN_SEPARATOR = "_"; private TrackingUtil() { ...
mit
Beefster09/PlatE
lib/angelscript-sdk/source/as_context.cpp
159286
/* AngelCode Scripting Library Copyright (c) 2003-2016 Andreas Jonsson This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software f...
mit
ywong19/napa
lib/napa/deprecations/application_api.rb
412
module Napa class Deprecations URL = 'https://github.com/bellycard/napa/blob/master/lib/napa/cli/templates/new/app/apis/application_api.rb' WARNING = "no application_api.rb file found in app/apis, see #{URL} for an example" def self.application_api_check unless File.exists?('./app/apis/application_a...
mit
polats/aframe-polats-extras
src/lib/ParabolicCurve.js
496
/* global THREE */ // Parabolic motion equation, y = p0 + v0*t + 1/2at^2 function parabolicCurveScalar (p0, v0, a, t) { return p0 + v0 * t + 0.5 * a * t * t; } // Parabolic motion equation applied to 3 dimensions function parabolicCurve (p0, v0, a, t) { var ret = new THREE.Vector3(); ret.x = parabolicCurveScalar...
mit
mrkno/TvdbApi
tvdbApi/TvdbEpisode.cs
15326
using System; using System.ComponentModel; using System.Xml.Serialization; namespace MediaFileParser.MediaTypes.TvFile.Tvdb { /// <summary> /// Categories that an episode image could be. /// </summary> public enum TvdbEpisodeImageFlag { /// <summary> /// Indicates an image is a pro...
mit
akochurov/mxcache
mxcache-idea-api-stubs/src/main/java/com/intellij/psi/util/PsiTreeUtil.java
464
/* * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved. */ package com.intellij.psi.util; import com.intellij.psi.PsiElement; /** * THIS CLASS WAS GENERATED AUTOMATICALLY WITH StubGen BASED ON IDEA BINARIES * DON'T MODIFY IT MANUALLY! * @author Alexander Kochurov (alexander.kochurov@maxifier.com) */ pu...
mit
almadaocta/lordbike-production
errors/includes/src/phpseclib_Crypt_TripleDES.php
23979
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Pure-PHP implementation of Triple DES. * * Uses mcrypt, if available, and an internal implementation, otherwise. Operates in the EDE3 mode (encrypt-decrypt-encrypt). * * PHP versions 4 and 5 * * Here's a short example of how t...
mit
cdnjs/cdnjs
ajax/libs/primereact/6.4.0/components/utils/index.d.ts
72
export declare function classNames(...args: any[]): string | undefined;
mit
YMRYMR/duality
Test/Core/Components/ICmpInitializableTest.cs
8170
using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.IO; using Duality; using Duality.Resources; using Duality.Components; using Duality.Serialization; using Duality.Tests.Components; using NUnit.Framework; namespace Duality.Tests.Components { [TestFixture] public cl...
mit
stefsava/rspec_api_documentation
lib/rspec_api_documentation/dsl/endpoint.rb
3865
require 'rspec/core/formatters/base_formatter' require 'rack/utils' require 'rack/test/utils' module RspecApiDocumentation::DSL # DSL methods available inside the RSpec example. module Endpoint extend ActiveSupport::Concern include Rack::Test::Utils delegate :response_headers, :response_status, :respo...
mit
timshannon/rollup-166
src/js/lib/lodash/object/defaults.js
824
import assign from './assign'; import assignDefaults from '../internal/assignDefaults'; import createDefaults from '../internal/createDefaults'; /** * Assigns own enumerable properties of source object(s) to the destination * object for all destination properties that resolve to `undefined`. Once a * property is se...
mit
sarutobi/ritmserdtsa
rynda/geozones/tests/xUnit/test_models.py
331
# -*- coding: utf-8 -*- from django.test import TestCase from rynda.geozones.factories import RegionFactory class TestRegion(TestCase): def setUp(self): self.region = RegionFactory.build() def test_unicode(self): self.assertEqual( "%s" % self.region, self.region.name...
mit
JoshuaEstes/apostrophePlugin
modules/a/templates/_simpleEditButton.php
1926
<?php // Compatible with sf_escaping_strategy: true $class = isset($class) ? $sf_data->getRaw('class') : null; $controlsSlot = isset($controlsSlot) ? $sf_data->getRaw('controlsSlot') : null; $label = isset($label) ? $sf_data->getRaw('label') : null; $name = isset($name) ? $sf_data->getRaw('name') : null; $p...
mit
achojs/acho
test/index.js
3541
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ 'use strict' const should = require('should') const util = require('...
mit
hegemone/kore-poc
koredata-goa/vendor/github.com/goadesign/goa/middleware/xray/middleware_test.go
10770
package xray import ( "context" "encoding/json" "errors" "net" "net/http" "net/http/httptest" "net/url" "regexp" "strings" "sync" "testing" "time" "github.com/goadesign/goa" "github.com/goadesign/goa/middleware" ) const ( // udp host:port used to run test server udplisten = "127.0.0.1:62111" ) func ...
mit
zweidner/hubzero-cms
core/components/com_media/admin/views/medialist/tmpl/info.php
4160
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access. defined('_HZEXEC_') or die(); if ($this->data['type'] != 'folder'): $ext = Filesystem::extension($this->data['name']); $icon = Html::asset(...
mit
cmc333333/api-umbrella-web
app/assets/javascripts/admin/controllers/apis_form_controller.js
4403
Admin.ApisFormController = Ember.ObjectController.extend(Admin.Save, { needs: [ 'apis_server_form', 'apis_url_match_form', 'apis_sub_settings_form', 'apis_rewrite_form', ], backendProtocolOptions: [ { id: 'http', name: 'http' }, { id: 'https', name: 'https' }, ], balanceAlgorithmOpti...
mit
erubboli/gotrade
testdata/indicator-test-generator/Properties/AssemblyInfo.cs
999
using System.Reflection; using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle ("indicator-test-generator")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ...
mit
EvNaverniouk/doby-grid
examples/menuextensions.js
1493
/*global define*/ define(['faker', 'dataset'], function (Faker, dataset) { "use strict"; // Generate Grid Options return [function () { var idExtractor = function (item) { return item.id; }; // Generate Columns var columns = [ { id: "id", dataExtractor: idExtractor, name: "ID", maxW...
mit
ghetolay/angular
aio/tools/transforms/angular-base-package/index.js
5679
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ const path = require('path'); const Package = require('dgeni').Package; const jsdocPackage = require('dgeni-packages...
mit
sch8906/JSdep
src/js_wala/normalizer/test/data/normalized.test45.js
533
(function(__global) { var tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, tmp8, tmp9, tmp10; try { try { tmp1 = "f"; tmp0 = __global[tmp1]; tmp2 = tmp0(); } catch (e) { tmp4 = "alert"; tmp3 = __global[tmp4]; tmp5 = e; ...
mit
Taluu/symfony
src/Symfony/Component/Security/Core/Encoder/PlaintextPasswordEncoder.php
1674
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Core\Encoder; use Symfony\Component\Security...
mit
mda-ut/SubZero
src/model/interface/HwInterface.cpp
398
/* * HwInterface.cpp * * Created on: Jan 17, 2015 * Author: ahsueh1996 */ #include "HwInterface.h" /* ========================================================================== * CONSTRUCTOR AND DESTRUCTOR * ========================================================================== */ HwInterfa...
mit
jonathanleang/SpineMask
Assets/spine-csharp/SlotData.cs
3028
/****************************************************************************** * Spine Runtimes Software License * Version 2.3 * * Copyright (c) 2013-2015, Esoteric Software * All rights reserved. * * You are granted a perpetual, non-exclusive, non-sublicensable and * non-transferable license to use,...
mit
Sorsly/subtle
google-cloud-sdk/lib/surface/app/regions/list.py
1234
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
mit
sachintaware/PHP-DI
tests/UnitTest/Definition/Source/Fixtures/ReflectionFixtureChild.php
385
<?php /** * PHP-DI * * @link http://php-di.org/ * @copyright Matthieu Napoli (http://mnapoli.fr/) * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file) */ namespace DI\Test\UnitTest\Definition\Source\Fixtures; /** * Fixture class for the ReflectionDefinitionSource test...
mit
dbuhrman/extjs-reactor
packages/reactor/src/overrides.js
1162
import Template from './Template'; const Ext = window.Ext; // add support for functions that return JSX elements in place of XTemplates const getTpl = Ext.XTemplate.getTpl; const originalGet = Ext.XTemplate.get; Ext.XTemplate.get = function(fn) { if (typeof(fn) === 'function') { return new Template(fn);...
mit
Fenex/Pinta
Pinta.Core/Managers/ResourceManager.cs
1651
// // ResourceManager.cs // // Author: // Jonathan Pobst <monkey@jpobst.com> // // Copyright (c) 2010 Jonathan Pobst // // 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 r...
mit
innogames/gitlabhq
spec/features/projects/members/master_manages_access_requests_spec.rb
314
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'Projects > Members > Maintainer manages access requests' do it_behaves_like 'Maintainer manages access requests' do let(:entity) { create(:project, :public) } let(:members_page_path) { project_project_members_path(entity) } end end
mit
Djamy/platform
src/Oro/Bundle/FormBundle/Validator/DoctrineInitializer.php
1109
<?php namespace Oro\Bundle\FormBundle\Validator; use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\Util\OrderedHashMap; use Symfony\Component\Validator\ObjectInitializerInterface; /** * The default Symfony's implementation is decorated to avoid initialization * of all entity managers for widely ...
mit
cginternals/libzeug
source/reflectionzeug/source/base/Color.cpp
1957
#include <reflectionzeug/base/Color.h> #include <cassert> namespace reflectionzeug { Color::Color() : m_v{0u} { } Color::Color(unsigned int bgra) : m_v{bgra} { } Color::Color(int red, int green, int blue, int alpha) { m_rgba.a = static_cast<unsigned char>(alpha); m_rgba.r = static_cast<unsigned char>(re...
mit
stoye/LiveSplit
LiveSplit/LiveSplit.Core/Model/Comparisons/MedianSegmentsComparisonGenerator.cs
3273
using LiveSplit.Options; using System; using System.Collections.Generic; using System.Linq; namespace LiveSplit.Model.Comparisons { public class MedianSegmentsComparisonGenerator : IComparisonGenerator { public IRun Run { get; set; } public const string ComparisonName = "Median Segments"; //yo...
mit
OmicronPersei/nunit
src/NUnitFramework/framework/Interfaces/ITest.cs
4391
// *********************************************************************** // Copyright (c) 2007-2015 Charlie Poole, Rob Prouse // // 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 r...
mit
tagalpha/library
app/code/core/Mage/Adminhtml/Block/Widget/Accordion/Item.php
2648
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
mit