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 |
|---|---|---|---|---|---|
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-present Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any pers... | OGRECave/ogre | RenderSystems/Vulkan/src/OgreVulkanQueue.cpp | C++ | mit | 40,249 |
function foo() {
var bar = '';
};
| michaelghinrichs/hello-world | scope-chains-closures/scopes.js | JavaScript | mit | 37 |
/*--
简单测试node.js端使用的air-js
-note 所有的模块以模块简称为属性名挂载在air上
*/
var air = require('air-js');
var byteLength = air.byteLength;
console.log(byteLength('中国人')); // => 6
console.log(byteLength('air')); // => 3
console.log(air.byteLength('air')); // => 3
console.log(air.clip('我是中国人', 8)); // => 我是中国…
console.log(ai... | erniu/air | test-air.js | JavaScript | mit | 442 |
import forIn from '../core/forIn'
import forElements from '../core/forElements'
export default function _parseAndApply (parse, apply, elements, options) {
forIn(options, parse.bind(null, options))
return forElements(elements, apply.bind(null, options))
}
| chirashijs/chirashi | lib/_internals/_parseAndApply.js | JavaScript | mit | 261 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\DICOM;
use JMS\Serializer\Annotation\ExclusionPolicy;... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/DICOM/SelectorSequencePointer.php | PHP | mit | 822 |
<?php
namespace kiwi\Http\Middleware;
use kiwi\Http\Request;
trait AuthorizesRequests
{
/**
* Dont access without authorizing.
*
* @return void
*/
public function middleware()
{
if (!auth()->check()) {
Request::redirect('/login');
}
}
}
| jakobjohansson/Verbalizer | framework/Http/Middleware/AuthorizesRequests.php | PHP | mit | 304 |
<?php
namespace NilPortugues\ForbiddenFunctions\Console;
use NilPortugues\ForbiddenFunctions\Command\CheckCommand;
class Application extends \Symfony\Component\Console\Application
{
/**
* Construct method
*/
public function __construct()
{
$name = <<<NAME
------------------------------... | nilportugues/php_forbidden_functions | src/ForbiddenFunctions/Console/Application.php | PHP | mit | 778 |
/**
* This class is generated by jOOQ
*/
package de.piratenpartei.berlin.ldadmin.dbaccess.generated.routines;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.4" },
comments = "This class is generated by jOOQ")
@java.lang.Sup... | plattformbrandenburg/ldadmin | src/main/java/de/piratenpartei/berlin/ldadmin/dbaccess/generated/routines/DelegationChainForClosedIssue.java | Java | mit | 2,840 |
using Microsoft.Azure.ServiceBus;
using Microsoft.Extensions.Logging;
using System;
using System.IO;
namespace Microsoft.eShopOnContainers.BuildingBlocks.EventBusServiceBus
{
public class DefaultServiceBusPersisterConnection :IServiceBusPersisterConnection
{
private readonly ILogger<DefaultServiceBusP... | TypeW/eShopOnContainers | src/BuildingBlocks/EventBus/EventBusServiceBus/DefaultServiceBusPersisterConnection.cs | C# | mit | 1,621 |
/// <reference path="./event.ts" />
module Fusion {
/**
* Represents a component of discrete functionality in a Fusion application
*/
export interface Widget extends EventEmittable {
}
/**
* Represents a component of discrete functionality in a Fusion application
*/
... | jumpinjackie/mapguide-ajax-viewer | shared/src/fusion/widget.ts | TypeScript | mit | 448 |
'use strict';
app.controller('DeleteTripModalCtrl', function($scope, $uibModalInstance, TripFactory, $routeParams, $window, ActivityFactory, MemberFactory){
let tripId = $routeParams.tripId;
$scope.close = () => {
$uibModalInstance.close();
};
//Not only do we want to delete the trip object connected to... | delainewendling/NP_trip_planner | deploy/app/controllers/DeleteTripModalCtrl.js | JavaScript | mit | 1,660 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace XmlGuy
{
public class XmlElement : AbstractXmlElement
{
public XmlElement(XmlElement parent = null) : base(parent)
{
Children = new List<IXmlElement>();
Attributes = new Dictionary<string, string>();
}
pub... | windracer/xmlguy | src/XmlElement.cs | C# | mit | 1,589 |
import isArray from '../../util/isArray'
import forEach from '../../util/forEach'
import TreeIndex from '../../util/TreeIndex'
import NodeIndex from './NodeIndex'
class PropertyIndex extends NodeIndex {
constructor(property) {
super()
this._property = property || 'id'
this.index = new TreeIndex()
}
... | andene/substance | model/data/PropertyIndex.js | JavaScript | mit | 2,682 |
/*
* Smush In - jQuery plugin
*
* Copyright (c) 2013 Shane Donnelly
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* http://shanejdonnelly.github.io/smush-in
* Version: 1.0
*
*/
;(function ($) {
"use strict";
/* CLASS DEFINITION
* =========... | shanejdonnelly/smush-in | smushIn.js | JavaScript | mit | 3,613 |
<?php
// SonataMediaBundle:Form:media_widgets.html.twig
return array (
);
| DevKhater/YallaWebSite | app/cache/prod/assetic/config/4/423e5d4324992a3bd20ae71d066b011d.php | PHP | mit | 75 |
<?php
defined('_JEXEC') or die('Restricted access');
/**
* Mercado Pago plugin
*
* @author Developers Mercado Pago <modulos@mercadopago.com>
* @version 2.0.5
* @package VirtueMart
* @subpackage payment
* @link https://www.mercadopago.com
* @copyright Copyright © 2016 MercadoPago.com
* @license http://www.gnu... | yaelduckwen/lo_imaginario | web2/plugins/vmpayment/mercadopago/mercadopago/tmpl/mercadopago_checkout_standard.php | PHP | mit | 491 |
#!/usr/bin/env node
"use strict";
// XXX currently this project is written to support node 0.10.*
// when Meteor 1.4 is ready, we can rewrite in es6
var Vorpal = require("vorpal")(),
Path = require("path"),
Fs = require("fs"),
Exec = require("child_process").exec,
Spawn = require("child_process").spawn... | NewSpring/apollos-core | .bin/index.js | JavaScript | mit | 5,565 |
function calculaIMC(altura, peso) { return peso / (altura * altura); }
console.log("O seu imc é: " + calculaIMC(prompt("Sua altura? "), prompt("Seu peso? ")));
//https://pt.stackoverflow.com/q/327751/101
| maniero/SOpt | JavaScript/Algorithm/Bmi2.js | JavaScript | mit | 207 |
/*
* Sample Adjuster
*
*/
#include "LimitAdjuster.h"
// Sample Simple Adjuster
class Sample1 : public SimpleAdjuster
{
public:
const char* GetLimitName() { return GetGVM().IsSA()? "FoodLimit" : nullptr; }
void ChangeLimit(int, const std::string& value) { injector::WriteMemory(0xF00D, std::stof... | ThirteenAG/limit_adjuster_gta3vcsa | src/sample/sample.cpp | C++ | mit | 2,162 |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Class Vc_Vendor_Woocommerce
*
* @since 4.4
* @todo move to separate file and dir.
*/
class Vc_Vendor_Woocommerce {
protected static $product_fields_list = false;
protected static $order_fields_list = false;
/**
* @since 4.4
*/
public function lo... | jujudellago/yc2016 | web/app/plugins/js_composer/include/classes/vendors/plugins/class-vc-vendor-woocommerce.php | PHP | mit | 55,910 |
using System;
using System.Threading;
namespace Remotus.Base.Observables
{
public sealed class DelegateObserver<T> : IObserver<T>, IDisposable
{
private readonly Action _onCompleted;
private readonly Action<Exception> _onError;
private readonly Action<T> _onNext;
private int _i... | LazyTarget/ProcHelper | src/Remotus.Base/Observables/DelegateObserver.cs | C# | mit | 1,134 |
from django.conf.urls.defaults import *
urlpatterns = patterns('',
url(r'^$', 'topics.views.topics', name="topic_list"),
url(r'^(?P<topic_id>\d+)/edit/$', 'topics.views.topic', kwargs={"edit": True}, name="topic_edit"),
url(r'^(?P<topic_id>\d+)/delete/$', 'topics.views.topic_delete', name="topic_delete"),
... | ericholscher/pinax | pinax/apps/topics/urls.py | Python | mit | 399 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel.Com... | abock/roslyn | src/VisualStudio/Core/Def/Implementation/TaskList/ExternalErrorDiagnosticUpdateSource.cs | C# | mit | 31,502 |
package main
import (
"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"html/template"
"log"
"net/http"
"os"
)
const (
addr = "127.0.0.1:8090"
)
var (
indexTemplate = template.Must(template.ParseFiles("index.html"))
tasks = []Task{
Task{1, "Learn golang", true},
Task{2, "Write webapp", tru... | vinzBad/checklost | main.go | GO | mit | 965 |
module Pwb
class OmniauthController < ApplicationController
# https://github.com/plataformatec/devise/wiki/How-To:-OmniAuth-inside-localized-scope
def localized
# Just save the current locale in the session and redirect to the unscoped path as before
session[:omniauth_login_locale] = I18n.locale
... | etewiah/property-web-builder | app/controllers/pwb/omniauth_controller.rb | Ruby | mit | 520 |
<?php
namespace Alterway\Component\Workflow\Exception;
class MoreThanOneOpenTransitionException extends \LogicException
{
public function __construct()
{
return parent::__construct('More than one open transition with current context');
}
}
| alterway/component-workflow | src/Exception/MoreThanOneOpenTransitionException.php | PHP | mit | 264 |
/**
* JS initialization and core functions for API test servlet
*
* @depends {3rdparty/jquery.js}
* @depends {3rdparty/bootstrap.js}
* @depends {3rdparty/highlight.pack.js}
*/
var ATS = (function(ATS, $, undefined) {
ATS.apiCalls = [];
ATS.selectedApiCalls = [];
ATS.init = function() {
hljs.... | YawLife/LIFE | html/ui/js/ats.js | JavaScript | mit | 6,337 |
<?php
/**
* ======================================================================
* LICENSE: This file is subject to the terms and conditions defined in *
* file 'license.txt', which is part of this source code package. *
* ======================================================================
*/
/**
* A... | mandino/nu | wp-content/plugins/advanced-access-manager/Application/Core/Subject.php | PHP | mit | 7,033 |
package org.diorite.impl.connection.packets.play.server;
import java.io.IOException;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.diorite.impl.connection.EnumProtocol;
import org.diorite.impl.connection.EnumProtocolDirection;
import org.di... | marszczybrew/Diorite | DioriteCore/src/main/java/org/diorite/impl/connection/packets/play/server/PacketPlayServerResourcePackSend.java | Java | mit | 2,319 |
using UnityEngine;
using System.Collections;
public class ShapeInfo
{
public int Column { get; set; }
public int Row { get; set; }
}
| michael-munoz/MooMooPlanet | Project455/Assets/Scripts/ShapeInfo.cs | C# | mit | 145 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.trafficmanager.implementation;
import com.azure.core.management.Region;
import com.azure.resourcemanager.resources.fluentcore.utils.ResourceManagerUtils;
import com.azure.resourcemanager.t... | selvasingh/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-trafficmanager/src/main/java/com/azure/resourcemanager/trafficmanager/implementation/TrafficManagerNestedProfileEndpointImpl.java | Java | mit | 1,325 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _assign = require('lodash/assign');
var _assign2 = _interopRequireDefault(_assign);
exports.default = termsAggregation;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defin... | evgenypoyarkov/bodybuilder | lib/aggregations/terms-aggregation.js | JavaScript | mit | 1,036 |
YUI.add('selector', function (Y, NAME) {
}, '3.10.3', {"requires": ["selector-native"]});
| braz/mojito-helloworld | node_modules/mojito/node_modules/yui/selector/selector.js | JavaScript | mit | 93 |
using System.Linq;
using Xunit;
using Signum.Engine;
using Signum.Entities;
using Signum.Utilities;
using Signum.Test.Environment;
namespace Signum.Test.LinqProvider
{
/// <summary>
/// Summary description for LinqProvider
/// </summary>
public class JoinGroupTest
{
public Joi... | AlejandroCano/framework | Signum.Test/LinqProvider/JoinGroupTest.cs | C# | mit | 6,007 |
<?php
session_start();
require('php/userProfile.class.php'); //load userProfileclass
?>
<!DOCTYPE html>
<html>
<head>
<?php
require("head_userpage.php"); //load special header only for this page
?>
</head>
<body>
<?php
if(isset($_SESSION['ID'])){ //load the appropriate menu
require("menu_co.php");
}else{
... | KamevoTeam/Kamevo | kamevo_src/user.php | PHP | mit | 962 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Pentax;
use JMS\Serializer\Annotation\ExclusionPolicy... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/Pentax/InternalSerialNumber.php | PHP | mit | 862 |
using StyletIoC.Creation;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
namespace StyletIoC.Internal.Creators
{
/// <summary>
/// Base class for all ICreators (which want to use it). Provides convenience
/// </summary>
internal abstract class CreatorBase : ICreator
... | canton7/Stylet | Stylet/StyletIoC/Internal/Creators/CreatorBase.cs | C# | mit | 2,037 |
import { Directive, ElementRef, EventEmitter, Output, Input, OnInit } from '@angular/core';
import { TcCollectionService } from '../tc-collection/tc-collection.service';
import { TcCollection } from '../tc-collection/tc-collection.class';
declare var $: any;
@Directive({ selector: '[tc-sortable]' })
export class ... | OlivierCoue/invow | src/app/tc-shared/tc-sortable.directive.ts | TypeScript | mit | 2,177 |
#include "stdafx.h"
#include "WindowClient.h"
#include <SDL2/SDL.h>
int main(int, char *[])
{
try
{
CWindow window(ContextProfile::RobustOpenGL_3_2, ContextMode::Normal);
// window.ShowFullscreen("Demo #19 (Particle Systems)");
window.Show("Demo #19 (Particle Systems)", {800, 600});
... | PS-Group/cg_course_examples | chapter_4/lesson_19/main.cpp | C++ | mit | 620 |
/**
*/
package gluemodel.COSEM.COSEMObjects.impl;
import gluemodel.COSEM.COSEMObjects.COSEMObjectsPackage;
import gluemodel.COSEM.COSEMObjects.PushSchedule;
import gluemodel.COSEM.InterfaceClasses.impl.SingleactionscheduleImpl;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementatio... | georghinkel/ttc2017smartGrids | solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/COSEM/COSEMObjects/impl/PushScheduleImpl.java | Java | mit | 844 |
//------------------------------------------------------------------------------
// dummyFSWrapper.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "dummyFSWrapper.h"
namespace Oryol {
namespace _priv {
//---------------------------------------------------... | floooh/oryol | code/Modules/LocalFS/private/dummy/dummyFSWrapper.cc | C++ | mit | 1,707 |
module Jekyll
VERSION = '3.0.0.pre.beta6'
end
| mixxmac/jekyll | lib/jekyll/version.rb | Ruby | mit | 48 |
import logging
from django.conf import settings
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.db import models
from django.utils.translation import ugettext_lazy as _
from wagtail.admin.edit_handlers import FieldPanel, MultiFieldPanel
from wagtail.core.fields import RichTextField... | ilendl2/wagtail-cookiecutter-foundation | {{cookiecutter.project_slug}}/gallery/models.py | Python | mit | 4,587 |
//
// client.cpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <asio.hpp>
#include <boost/lambda/lamb... | mojmir-svoboda/BlackBoxTT | 3rd_party/asio/src/examples/cpp03/porthopper/client.cpp | C++ | mit | 6,839 |
'use strict';
//Setting up route
angular.module('mean.articles').config(['$stateProvider', 'markedProvider',
function($stateProvider, markedProvider) {
markedProvider.setOptions({
gfm: true,
tables: true,
breaks: true,
highlight: function (code) {
/* jshint ignore:start */
... | darul75/nsjoy.github.io2 | packages/articles/public/routes/articles.js | JavaScript | mit | 1,768 |
/****************************************************************************
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
... | EngineDreamer/DreamEngine | Engine/script/runtimelibrary/MeshRenderComponent_register.cs | C# | mit | 2,409 |
using System;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;
namespace net.authorize.sample
{
class PayPalPriorAuthorizationCapture
{
public static voi... | rmorrin/sample-code-csharp | PaypalExpressCheckout/PriorAuthorizationCapture.cs | C# | mit | 3,051 |
BASE.require(["Object"], function () {
BASE.namespace("LG.core.dataModel.core");
LG.core.dataModel.core.PeopleGroupToPermission = (function (Super) {
var PeopleGroupToPermission = function () {
var self = this;
if (!(self instanceof arguments.callee)) {
return ne... | jaredjbarnes/WoodlandCreatures | packages/WebLib.2.0.0.724/content/lib/weblib/lib/BASE/LG/core/dataModel/core/PeopleGroupToPermission.js | JavaScript | mit | 545 |
<?php
/*
* This File is part of the Lucid\Mux package
*
* (c) iwyg <mail@thomas-appel.com>
*
* For full copyright and license information, please refer to the LICENSE file
* that was distributed with this package.
*/
namespace Lucid\Mux\Tests;
use Lucid\Mux\Route;
/**
* @class RouteTest
*
* @package Lucid... | lucidphp/mux | tests/RouteTest.php | PHP | mit | 4,374 |
"""Splits the time dimension into an reftime and a leadtime
so that multiple files can be concatenated more easily"""
import sys
from netCDF4 import Dataset, num2date, date2num
for f in sys.argv[1:]:
dataset = Dataset(f, 'a')
# rename record dimension to reftime
dataset.renameDimension('record', 'reftime... | samwisehawkins/wrftools | util/split_time_dimension.py | Python | mit | 1,878 |
/* global chrome */
const VERSION = 1;
const handlers = {
'vclub:screenShare:requestSourceId': () => {
chrome.runtime.sendMessage({ type: 'vclub:requestSourceId' }, (response) => {
window.postMessage({
type: 'vclub:screenShare:response',
response,
}, '*');
});
},
'vclub:ping'... | VirtualClub/vclub | browserExtensions/chromeExtension/content-script.js | JavaScript | mit | 658 |
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... | GlobalcachingEU/GAPP | GAPPSF/UIControls/UpDownCtrls/TimeCtrl.xaml.cs | C# | mit | 35,541 |
/*
* The MIT License
*
* Copyright (c) 2015, Mahmoud Ben Hassine (mahmoud@benhassine.fr)
*
* 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 witho... | dmullins78/easybatch-framework | easybatch-integration/easybatch-apache-commons-csv/src/test/java/org/easybatch/integration/apache/common/csv/ApacheCommonCsvRecordReaderTest.java | Java | mit | 3,254 |
"""
Module. Includes classes for all time dependent lattice.
"""
import sys
import os
import math
from orbit.teapot import TEAPOT_Lattice
from orbit.parsers.mad_parser import MAD_Parser, MAD_LattLine
from orbit.lattice import AccNode, AccActionsContainer
from orbit.time_dep import waveform
class TIME_DEP_Lattice(TEAP... | PyORBIT-Collaboration/py-orbit | py/orbit/time_dep/time_dep.py | Python | mit | 4,174 |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
// This is used internally to create best fit behavior as per the original windows best fit behavior.
//
using S... | sjsinju/coreclr | src/mscorlib/src/System/Text/EncoderBestFitFallback.cs | C# | mit | 8,893 |
'use strict';
var Pagelet = require('pagelet')
, async = require('async')
, path = require('path');
Pagelet.extend({
view: 'view.ejs',
css: 'css.styl',
js: 'client.js',
//
// Allow FORM submits to be streaming.
//
streaming: true,
//
// Force a name.
//
name: 'service-select',
//
/... | nodejitsu/service-select | index.js | JavaScript | mit | 3,961 |
#region Licence
/* The MIT License (MIT)
Copyright © 2015 Ian Cooper <ian_hammond_cooper@yahoo.co.uk>
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 limitat... | BrighterCommand/Brighter | tests/Paramore.Brighter.Core.Tests/CommandProcessors/TestDoubles/MyPostLoggingHandlerAsyncAttribute.cs | C# | mit | 1,576 |
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace DotMaysWind.Data.Test
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
... | GuanLee1990/DotMaysWind.Data | DotMaysWind.Data.Test/Program.cs | C# | mit | 465 |
using System;
using Fluky.Extensions;
using Fluky.Types;
namespace Fluky
{
public partial class Randomizer
{
public float DistributionNormal(float mean, float standardDeviation)
{
// Get random normal from Standard Normal Distribution
var randomNormalNumber = DistributionStandardNormal();
... | michaeljbaird/Fluky | src/Fluky/Randomizer.Distribution.cs | C# | mit | 6,560 |
/*
* The MIT License
*
* Copyright (c) 2019 CloudBees, Inc.
*
* 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, co... | jenkinsci/credentials-plugin | src/test/java/com/cloudbees/plugins/credentials/builds/CredentialsParameterBinderReplayActionIntegrationTest.java | Java | mit | 5,191 |
export * from './card-demo.component';
| blackbaud/skyux2 | src/demos/card/index.ts | TypeScript | mit | 39 |
function listEvent(login, userCity, done, fail, always) {
done = typeof done !== 'undefined' ? done : function() {
};
fail = typeof fail !== 'undefined' ? fail : function() {
};
always = typeof always !== 'undefined' ? always : function() {
};
$.ajax({
url : 'rest/event/' + login + '/' + userCity,
type : 'G... | michada/HYS2 | DAAExample-master/src/main/webapp/js/dao/event.js | JavaScript | mit | 737 |
require 'fileutils'
require 'simplecov'
SimpleCov.start
def fixture *args
File.join File.dirname(__FILE__), "fixtures", *args
end
def directory path
full = fixture(path)
FileUtils::mkdir_p full
return full
end
def file *args
file = File.join(*args[0..-2])
directory File.dirname(file)
File.open(file, 'w... | clarete/s3sync | spec/spec_helper.rb | Ruby | mit | 912 |
// Copyright (c) 2007-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "checkpo... | goldcoin/Goldcoin-GLD | src/rpc/blockchain.cpp | C++ | mit | 65,642 |
package silent
// silent import - e.g. only referenced in Go code, not in json imports
// frizz
type Silent interface {
Silent()
}
| kego/ke | tests/packer/silent/silent.go | GO | mit | 134 |
module.exports = Transport;
var C = {
// Transport status codes
STATUS_READY: 0,
STATUS_DISCONNECTED: 1,
STATUS_ERROR: 2
};
/**
* Expose C object.
*/
Transport.C = C;
/**
* Dependencies.
*/
var debug = require('debug')('JsSIP:Transport');
var debugerror = require('debug')('JsSIP:ERROR:Tr... | rusekr/JsSIP | lib/Transport.js | JavaScript | mit | 8,034 |
import { async, fakeAsync, tick, ComponentFixture, TestBed } from '@angular/core/testing';
import { TagsRelatedToTagsComponent } from './tags-related-to-tags.component';
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { By } from '@angular/platform-browser';
import * as _ from 'lodash';... | ditup/ditapp-ng | src/app/tags/tags-related-to-tags/tags-related-to-tags.component.spec.ts | TypeScript | mit | 2,949 |
using System.Collections.Generic;
using System.Linq;
using Xunit;
using static LanguageExt.Prelude;
namespace LanguageExt.Tests.Transformer.Traverse.IEnumerableT.Collections
{
public class QueIEnumerable
{
[Fact]
public void EmptyEmptyIsEmptyEmpty()
{
Que<IEnumerable<int>> m... | StanJav/language-ext | LanguageExt.Tests/Transformer/Traverse/IEnumerable/Collections/Que.cs | C# | mit | 1,668 |
'use strict';
require('../../../lib/common/init');
var assert = require('assert'),
request = require('supertest'),
danf = require('../../../lib/server/app')(require('../../fixture/http/danf'), null, {environment: 'test', verbosity: 0, cluster: null})
;
danf.buildServer(function(app) {
describe('SessionHa... | Gnucki/danf | test/unit/http/session-handler.js | JavaScript | mit | 2,669 |
require 'uri'
module Biller::WHMCSAutoAuth
def self.redirect_url(email, action)
ensure_autoauth_params
time = Time.now.to_i
query= ["email=#{email}","timestamp=#{time}",
"hash="+ autoauth_hash(email, time),
"goto="+ URI.encode("clientarea.php?action=#{actio... | jaeko44/nilavu | lib/biller/whmcs_auto_auth.rb | Ruby | mit | 701 |
require 'test_helper'
describe Factree::Aggregate do
describe ".alternatives" do
let(:facts) { :facts }
let(:nil_decision) { -> (_) { nil } }
let(:final_decision) { -> (_) { conclusion } }
let(:conclusion) { Factree::Conclusion.new(:b) }
let(:decisions) { [] }
subject { Factree::Aggregate.alt... | ConsultingMD/factree | test/factree/aggregate_test.rb | Ruby | mit | 1,330 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model core\models\Station */
$this->title = 'Create Station';
$this->params['breadcrumbs'][] = ['label' => 'Stations', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="station-create">
<h1><?= Html::encode($thi... | tony-wuhongtao/OurYincart2 | star-core/modules/station/views/default/create.php | PHP | mit | 417 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var CONST = require('../../const');
var Smoothing = require('./Smoothing');
// The pool into which the canvas elements are placed.
var pool = [... | mahill/phaser | src/display/canvas/CanvasPool.js | JavaScript | mit | 7,526 |
from .cpu import Cpu
| Hexadorsimal/pynes | nes/processors/cpu/__init__.py | Python | mit | 21 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php require_once("globals.php"); ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $page_title = "Projects"; require_once("meta.php"); ?>
</head>
<body>
<div id="logo">
<?php require_once("hea... | JayWalker512/brandonfoltz.com | projects.php | PHP | mit | 1,055 |
<?php
/**
*
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Tax\Controller\Adminhtml\Rule;
use Magento\Framework\Controller\ResultFactory;
class Delete extends \Magento\Tax\Controller\Adminhtml\Rule
{
/**
* @return \Magento\Backend\Mo... | j-froehlich/magento2_wk | vendor/magento/module-tax/Controller/Adminhtml/Rule/Delete.php | PHP | mit | 1,412 |
/// <reference path="initialization.ts" />
function initializeAppInsights() {
try {
// only initialize if we are running in a browser that supports JSON serialization (ie7<, node.js, cordova)
if (typeof window !== "undefined" && typeof JSON !== "undefined") {
// get snippet or initiali... | reyno-uk/ApplicationInsights-JS | JavaScript/JavaScriptSDK/Init.ts | TypeScript | mit | 1,610 |
import React from 'react';
import { Link as RouterLink } from 'react-router';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import counterActions from 'actions/counter';
import Radium from 'radium';
import { Scroll, Link, Element, Events } from 'react-scroll';
import { FlatButton, ... | dont-fear-the-repo/fear-the-repo | src/views/HomeView.js | JavaScript | mit | 3,354 |
require 'test_helper'
class LockableTest < ActiveSupport::TestCase
def setup
setup_mailer
end
test "should respect maximum attempts configuration" do
user = create_user
user.confirm!
swap Devise, :maximum_attempts => 2 do
3.times { user.valid_for_authentication?{ false } }
assert use... | piousbox/microsites2-cities | vendor/ruby/1.9.1/gems/devise-2.2.3/test/models/lockable_test.rb | Ruby | mit | 8,403 |
#! /usr/bin/python2
#
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
import argparse
import collections
import re
import subprocess
import sys
__DESCRIPTION = """
Processes a perf.data sample file a... | hoho/dosido | nodejs/deps/v8/tools/ignition/linux_perf_report.py | Python | mit | 8,176 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... | jbrantly/ts-loader | test/comparison-tests/conditionalRequire/expectedOutput-2.8/bundle.js | JavaScript | mit | 3,132 |
<?php
namespace ApplicationInsights\Channel\Contracts;
/**
* Contains utilities for contract classes
*/
class Utils
{
/**
* Removes NULL and empty collections
* @param array $sourceArray
* @return array
*/
public static function removeEmptyValues($sourceArray)
{
$newArray = a... | fidmor89/appInsights-Concrete | appinsights/vendor/microsoft/application-insights/ApplicationInsights/Channel/Contracts/Utils.php | PHP | mit | 3,254 |
/* */
var cof = require("./_cof"),
TAG = require("./_wks")('toStringTag'),
ARG = cof(function() {
return arguments;
}()) == 'Arguments';
module.exports = function(it) {
var O,
T,
B;
return it === undefined ? 'Undefined' : it === null ? 'Null' : typeof(T = (O = Object(it))[TAG]) == 'st... | jdanyow/aurelia-plunker | jspm_packages/npm/core-js@2.1.0/modules/_classof.js | JavaScript | mit | 427 |
/*!
* address.js - address object for decentraland
* Copyright (c) 2014-2015, Fedor Indutny (MIT License)
* Copyright (c) 2014-2016, Christopher Jeffrey (MIT License).
* Copyright (c) 2016-2017, Manuel Araoz (MIT License).
* https://github.com/decentraland/decentraland-node
*/
'use strict';
var networks = requi... | decentraland/bronzeage-node | lib/primitives/address.js | JavaScript | mit | 15,225 |
using Microsoft.EntityFrameworkCore;
namespace Sample.RabbitMQ.MySql
{
public class Person
{
public int Id { get; set; }
public string Name { get; set; }
public override string ToString()
{
return $"Name:{Name}, Id:{Id}";
}
}
public class AppDbCo... | dotnetcore/CAP | samples/Sample.RabbitMQ.MySql/AppDbContext.cs | C# | mit | 689 |
// Copyright (c) MarinAtanasov. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the project root for license information.
using AppBrix.Cloning.Impl;
using AppBrix.Container;
using AppBrix.Lifecycle;
using AppBrix.Modules;
using System;
using System.Collections.Generic;
namespace App... | MarinAtanasov/AppBrix | Modules/AppBrix.Cloning/CloningModule.cs | C# | mit | 1,625 |
// @flow
declare module '@reach/portal' {
declare export default React$ComponentType<{|
children: React$Node,
type?: string,
|}>;
}
| flowtype/flow-typed | definitions/npm/@reach/portal_v0.2.x/flow_v0.84.x-/portal_v0.2.x.js | JavaScript | mit | 145 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Runtime.InteropServices;
using System.Globalization;
using System.Linq.Expressions;
using Mono.Linq.Expressions;
namespace V {
public enum Keyword : int {
_TypesStart, /... | cartman300/Vermin | V/Parser.cs | C# | mit | 3,763 |
shared_context 'optoro_zookeeper' do
before do
Chef::Recipe.any_instance.stub(:query_role).and_return('kitchen_role')
Chef::Recipe.any_instance.stub(:query_role_credentials).and_return('{ "Code" : "Success", "LastUpdated" : "2015-03-09T14:48:17Z", "Type" : "AWS-HMAC", "AccessKeyId" : "ACCESSKEY", "SecretAcces... | smedefind/optoro_zookeeper | spec/helpers.rb | Ruby | mit | 606 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Pentax;
use JMS\Serializer\Annotation\ExclusionPolicy... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/Pentax/FlashStatus.php | PHP | mit | 1,553 |
package com.merakianalytics.orianna.types.core.searchable;
public abstract interface SearchableObject {
public boolean contains(final Object item);
}
| robrua/Orianna | orianna/src/main/java/com/merakianalytics/orianna/types/core/searchable/SearchableObject.java | Java | mit | 155 |
version https://git-lfs.github.com/spec/v1
oid sha256:90773470146a0daefafb65539bea2a9c6537067655a435ffce48433658e3d73a
size 943
| yogeshsaroya/new-cdnjs | ajax/libs/highlight.js/7.5/languages/actionscript.min.js | JavaScript | mit | 128 |
/**
* 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.containerregistry.v2019_04_01;
import java.util.... | selvasingh/azure-sdk-for-java | sdk/containerregistry/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/OS.java | Java | mit | 1,118 |
using System;
using System.Diagnostics;
using Aspose.Email.Mail;
namespace Aspose.Email.Examples.CSharp.Email.SMTP
{
class SendingEMLFilesWithSMTP
{
public static void Run()
{
// The path to the File directory.
string dataDir = RunExamples.GetDataDir_SMTP();
... | jawadaspose/Aspose.Email-for-.NET | Examples/CSharp/SMTP/SendingEMLFilesWithSMTP.cs | C# | mit | 1,239 |
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... | rainlike/justshop | vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/NullObject/MethodGenerator/StaticProxyConstructor.php | PHP | mit | 2,514 |
/**
* Copyright (C) 2016 by Johan von Forstner under the MIT license:
*
* 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 us... | johan12345/opacclient | opacclient/libopac/src/main/java/de/geeksfactory/opacclient/objects/Copy.java | Java | mit | 11,432 |
package id.birokrazy.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.annotations.Type;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Indexed;
import javax.persistence.*;
import java.util.List;
/**
* @author Arthur Purnama (arthur@purnama.de)
... | purnama/birokrazy | src/main/java/id/birokrazy/model/Department.java | Java | mit | 5,175 |
/* The MIT License (MIT)
Copyright (c) IIIT-DELHI
authors:
HEMANT JAIN "hjcooljohny75@gmail.com"
ANIRUDH NAIN
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 wit... | COOLHEMANTJAIN/MAILDETECTIVE | maildetective1.0/src/check/email/EMAILRDF.java | Java | mit | 3,829 |
import argparse
import os
import sys
import numpy as np
from PIL import Image
import chainer
from chainer import cuda
import chainer.functions as F
from chainer.functions import caffe
from chainer import Variable, optimizers
import pickle
def subtract_mean(x0):
x = x0.copy()
x[0,0,:,:] -= 104
x[0,1,:,... | wf9a5m75/chainer-gogh | chainer-gogh.py | Python | mit | 7,054 |
App.SubmissionsResponseController = Ember.ObjectController.extend({
actions: {
saveNotes: function() {
var onSuccess = function(post) {
$(".alert-box").remove();
$("textarea").before("<div data-alert class='alert-box'>Your notes were saved!<a class='close'>×</a></div>");
};
... | andrewjadams3/Klassewerk | app/assets/javascripts/controllers/submissions_response_controller.js | JavaScript | mit | 648 |