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
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate...
cdnjs/cdnjs
ajax/libs/lit-grid-layout/1.1.4/lit-draggable.js
JavaScript
mit
4,479
using System; class A { internal string S; internal void Say() { Console.WriteLine(S); } } class Program { private static void doit(Action sayit) { sayit(); } static void Main(string[] args) { A a = new A(); a.S = "I am one"; A b = new A(); ...
autumn009/TanoCSharpSamples
Chap4/デリゲート型はインスタンスを区別する/デリゲート型はインスタンスを区別する/Program.cs
C#
mit
398
require 'commander' require 'applyrics/project' require 'applyrics/lyricsfile' module Applyrics class Setup def run(config = {}) platform = nil if is_ios? platform = :ios elsif is_android? platform = :android elsif is_unity? platform = :unity else ret...
applyrics/applyrics-gem
lib/applyrics/setup.rb
Ruby
mit
622
<?php /* Safe sample input : backticks interpretation, reading the file /tmp/tainted.txt sanitize : use mysql_real_escape_string via an object and a classic getter construction : interpretation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royal...
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_89/safe/CWE_89__backticks__object-func_mysql_real_escape_stringGetter__select_from-interpretation_simple_quote.php
PHP
mit
1,889
#include <Python.h> #include <maya/MFnPlugin.h> #include <maya/MGlobal.h> #include <maya/MPxNode.h> #include <maya/MFnTypedAttribute.h> #include <maya/MFnGenericAttribute.h> #include <maya/MFnNumericData.h> #include <maya/MFnNumericAttribute.h> #include <maya/MFnNumericData.h> #include <maya/MFnMatrixData.h> #include ...
ryusas/maya_exprespy
srcs/exprespy.cpp
C++
mit
49,535
import logging logging.basicConfig(level=logging.DEBUG) import nengo import nengo_spinnaker import numpy as np def test_probe_ensemble_voltages(): with nengo.Network("Test Network") as network: # Create an Ensemble with 2 neurons that have known gain and bias. The # result is that we know how the...
project-rig/nengo_spinnaker
regression-tests/test_voltage_probing.py
Python
mit
1,158
using System; namespace Proxy { class RealPhoto : IPhoto { private string fileName; public RealPhoto(string fileName) { this.fileName = fileName; LoadPhoto(fileName); } public void Display() { Console.WriteLine("Displaying "...
IvayloP/TelerikAcademy2016-2017
HQC/04.DesingPatterns/02.StructuralPatterns/Proxy/RealPhoto.cs
C#
mit
477
<div class="workplace"> <div class="row-fluid"> <div class="span12"> <?php $this->load->view('admin/includes/message'); ?> <div class="head clearfix"> <div class="isw-grid"></div> <h1>API Manager</h1> </div> <div class="bloc...
muhammad-shariq/exclusiveunlock
application/views/admin/apimanager/list.php
PHP
mit
3,622
<div class="nav_menu"> <div> <div class="top_menu" style="padding-left: 20px;"> <div class="container"><div class="row"><div class="col-md-12"> <div class="top_info"><span><i class="fa fa-phone-square"></i>+91 9829211106</span><span> <i class="fa fa-envelope-o"></i> <a hr...
ajaykumarparashar11/VD
application/views/manage/layout/header.php
PHP
mit
6,983
'use strict'; var Lab = require('lab'), Hapi = require('hapi'), Plugin = require('../../../lib/plugins/sugendran'); var describe = Lab.experiment; var it = Lab.test; var expect = Lab.expect; var before = Lab.before; var after = Lab.after; describe('sugendran', function() { var server = new Hapi.Server(); it(...
nvcexploder/hapi-lxjs
test/plugins/sugendran/index.js
JavaScript
mit
1,090
import app from 'flarum/forum/app'; import { extend } from 'flarum/common/extend'; import DiscussionControls from 'flarum/forum/utils/DiscussionControls'; import DiscussionPage from 'flarum/forum/components/DiscussionPage'; import Button from 'flarum/common/components/Button'; export default function addStickyControl(...
flarum/sticky
js/src/forum/addStickyControl.js
JavaScript
mit
1,121
from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import AdaBoostClassifier from skTMVA import convert_bdt_sklearn_tmva import cPickle import numpy as np from numpy.random import RandomState RNG = RandomState(21) # Construct an example dataset for binary classification n_vars = 2 n_events = 100...
yuraic/koza4ok
examples/bdt_sklearn_to_tmva_AdaBoost.py
Python
mit
1,493
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2020_08_01 module Models # # Defines values for ProcessorArchitecture # module ProcessorArchitecture A...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2020-08-01/generated/azure_mgmt_network/models/processor_architecture.rb
Ruby
mit
371
'use strict' import assert from 'assert' import { btoa } from 'Base64' import decode from 'jwt-decode' import token from './data/token' import tokenTimezone from './data/token-timezone' import ls from 'local-storage' import bluebird from 'bluebird' import sinon from 'sinon' const setTokenExp = (timestamp) => { // h...
lanetix/react-jwt-store
test/index.js
JavaScript
mit
8,273
<?php /** * This file is part of the fangface/yii2-concord package * * For the full copyright and license information, please view * the file LICENSE.md that was distributed with this source code. * * @package fangface/yii2-concord * @author Fangface <dev@fangface.net> * @copyright Copyright (c) 2014 Fangface <...
fangface/yii2-concord
src/models/eav/AttributeEntities.php
PHP
mit
865
<?php namespace Acme\PaymentBundle\Controller; use Payum\Bundle\PayumBundle\Controller\PayumController; use Payum\Core\Exception\RequestNotSupportedException; use Payum\Core\Request\BinaryMaskStatusRequest; use Payum\Core\Request\SyncRequest; use Symfony\Component\HttpFoundation\Request; class DetailsController exten...
a2xchip/SagepayBundleSandbox
src/Acme/PaymentBundle/Controller/DetailsController.php
PHP
mit
1,005
import sys script, encoding, error = sys.argv def main(language_file, encoding, errors): line = language_file.readline() if line: print_line(line, encoding, errors) return main(language_file, encoding, errors) def print_line(line, encoding, errors): next_lang = line.strip() raw_byte...
Herne/pythonplayground
lp3thw/ex23.py
Python
mit
563
using System; using Microsoft.AspNetCore.Mvc; using Smidge.CompositeFiles; using Smidge.Models; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.Extensions.FileProviders; using Microsoft.Extensions.Logging; using Smidge.FilePro...
Shazwazza/Smidge
src/Smidge/Controllers/SmidgeController.cs
C#
mit
10,731
'use strict'; module.exports = function(grunt) { require('jit-grunt')(grunt, { }); // Time how long tasks take. Can help when optimizing build times require('time-grunt')(grunt); grunt.initConfig({}); // Automatically inject Bower components into the app grunt.config.set('wiredep', { target: { ...
mcortesi/artviz
Gruntfile.js
JavaScript
mit
408
const angular = require('angular'); require('angular-ui-router'); require('bootstrap'); require('bootstrap/dist/css/bootstrap.css'); require('./config'); require('./services'); require('./filters'); require('./layout'); require('./list'); require('./detail'); require('./watchlist'); window.app = angular.module('app',...
SCThijsse/angularjs-single-page
app/index.js
JavaScript
mit
457
require './spec/spec_helper' describe Economic::CashBookEntry do let(:session) { make_session } subject { Economic::CashBookEntry.new(:session => session) } it "inherits from Economic::Entity" do Economic::CashBookEntry.ancestors.should include(Economic::Entity) end describe ".proxy" do it "should ...
kongens-net/rconomic
spec/economic/cash_book_entry_spec.rb
Ruby
mit
698
/** * @file KeyboardButton.cpp * @brief Contains KeyboardButton class implementation * @author Khalin Yevhen * @version 0.0.2 * @date 28.09.17 */ #include "KeyboardButton.h" #include "..\khalin03\Button.cpp" KeyboardButton::KeyboardButton(ButtonForm form, int code, string name) : Button(form), code(cod...
kit25a/se-cpp
khalin-yevhen/src/khalin04/keyboardButton.cpp
C++
mit
992
#include "perspectivecamera.h" #include <stdexcept> #include <gtc/matrix_transform.hpp> using namespace Camera; PerspectiveCamera::PerspectiveCamera(float verticalFieldOfView, float aspectRatio) : verticalFieldOfView(verticalFieldOfView), aspectRatio(aspectRatio) { changeZoomFactor(glm::vec2(1.0f, 1.0f)); change...
Vaub/uGL
Project/uGL/uGLCore/perspectivecamera.cpp
C++
mit
1,319
<?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\Validator\Constraints; use Symfony\Component\Validato...
curry684/symfony
src/Symfony/Component/Validator/Constraints/TimezoneValidator.php
PHP
mit
2,714
const path = require('path'); const fs = require('fs'); const webpack = require('webpack'); const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const VERSION = require('./package.json').version; class VersionFilePlugin { apply() { ...
molstar/molstar
webpack.config.common.js
JavaScript
mit
3,792
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public class FigureQuintupleDot11 : Figure { private const int score = 5; public FigureQuintupleDot11(int player): base(player) { figure[4, 4] = figure[5, 4] = figure[5, 5] = fi...
siderisltd/Telerik-Academy
All TeamProjects/TeamProject C# 1_ Blokus/Blokus/FigureQuintupleDot11.cs
C#
mit
2,564
using System; namespace C5 { [Serializable] internal class MultiplicityOne<K> : MappedCollectionValue<K, System.Collections.Generic.KeyValuePair<K, int>> { public MultiplicityOne(ICollectionValue<K> coll) : base(coll) { } public override System.Collections.Generic.KeyValuePair<K, int> Map(K...
sestoft/C5
C5/Enumerators/MultiplicityOne.cs
C#
mit
401
<?php // src/Blogger/BlogBundle/Controller/PageController.php namespace Blogger\BlogBundle\Controller; use Blogger\BlogBundle\Entity\Enquiry; use Blogger\BlogBundle\Form\EnquiryType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class PageController extends Controller { public function indexAction()...
leochaves/Blog-Symfony
src/Blogger/BlogBundle/Controller/PageController.php
PHP
mit
1,713
<?php /* * This file is part of the Sonata package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\UserBundle\Admin\Entity; use Sonata\AdminBundle\Admin\...
dunglas/SonataUserBundle
Admin/Entity/GroupAdmin.php
PHP
mit
1,228
<?php namespace Sustain\AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class ActivityType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $opti...
rlbaltha/sustain
src/Sustain/AppBundle/Form/ActivityType.php
PHP
mit
1,979
/** * @file SpriteInterface.cpp * @author Duncan Campbell * @version 1.0 * * @section LICENSE * * The MIT License (MIT) * * Copyright (c) 2016 Duncan Campbell * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
dacampbell/PseudoEngine
lib/Luna/src/SpriteInterface.cpp
C++
mit
1,312
module LightMobile::ApplicationHelper include AgentHelpers::DetectorHelper end
kaspernj/light_mobile
app/helpers/light_mobile/application_helper.rb
Ruby
mit
81
# Install NGINX include_recipe 'nginx' # Disable default site nginx_site 'default' do enable false end # Create web directory directory node[:site][:webserver][:root] do recursive true owner node[:site][:user] group node[:site][:group] mode 00755 action :create end # Create site directory directory "#{no...
mattidupre/chef-nginx
recipes/webserver.rb
Ruby
mit
2,049
package org.fluentjava.iwant.api.core; import org.fluentjava.iwant.api.model.Path; import org.fluentjava.iwant.api.model.Source; import org.fluentjava.iwant.api.model.Target; import org.fluentjava.iwant.apimocks.IwantTestCase; public class SubPathTest extends IwantTestCase { public void testParentAndRelativePath() ...
wipu/iwant
essential/iwant-api-core/src/test/java/org/fluentjava/iwant/api/core/SubPathTest.java
Java
mit
2,687
{ ("use strict"); var HTMLElement = scope.wrappers.HTMLElement; var mixin = scope.mixin; var registerWrapper = scope.registerWrapper; var unsafeUnwrap = scope.unsafeUnwrap; var unwrap = scope.unwrap; var wrap = scope.wrap; var contentTable = new WeakMap(); var templateContentsOwnerTable = new WeakMap...
stas-vilchik/bdd-ml
data/6744.js
JavaScript
mit
1,705
// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System.Linq; using Perspex.Controls; using Perspex.Controls.Presenters; using Perspex.Controls.Primitives; using Perspex.Controls.Templates; using P...
kekekeks/Perspex
tests/Perspex.Controls.UnitTests/ScrollViewerTests.cs
C#
mit
4,573
using System.Web; using System.Web.Mvc; namespace ForumSystem.WebApp { public class FilterConfig { public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } } }
Zakkgard/ASP.NET-MVC
ForumSystem/Source/Web/ForumSystem.WebApp/App_Start/FilterConfig.cs
C#
mit
273
package golog import . "fmt" import . "github.com/mndrix/golog/term" import . "github.com/mndrix/golog/util" import "bytes" import "github.com/mndrix/ps" // Database is an immutable Prolog database. All write operations on the // database produce a new database without affecting the previous one. // A database is a...
bransorem/golog
database.go
GO
mit
3,740
from cereal import car from opendbc.can.packer import CANPacker from selfdrive.car.mazda import mazdacan from selfdrive.car.mazda.values import CarControllerParams, Buttons from selfdrive.car import apply_std_steer_torque_limits VisualAlert = car.CarControl.HUDControl.VisualAlert class CarController(): def __init__...
commaai/openpilot
selfdrive/car/mazda/carcontroller.py
Python
mit
3,112
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { RelationComponent } from './relation/relation.component'; const routes: Routes = [{ path: 'relation', component: RelationComponent }]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterM...
cipchk/ng-alain
src/app/routes/data-v/data-v-routing.module.ts
TypeScript
mit
365
<?php namespace SleepingOwl\Html; use Illuminate\Html\HtmlBuilder as IlluminateHtmlBuilder; use SleepingOwl\Admin\Models\Form\FormItem; use SleepingOwl\DateFormatter\DateFormatter; use SleepingOwl\Admin\Admin; use SleepingOwl\Admin\AssetManager\AssetManager; use Session; /** * Class HtmlBuilder */ class HtmlBuilder...
procoders/admin
src/SleepingOwl/Html/HtmlBuilder.php
PHP
mit
15,241
package cz.pfreiberg.knparser.exporter.oracledatabase; import java.sql.SQLException; import java.util.List; import cz.pfreiberg.knparser.ConnectionParameters; import cz.pfreiberg.knparser.domain.jednotky.TJednotek; import cz.pfreiberg.knparser.util.VfkUtil; public class TJednotekOracleDatabaseJdbcExporter e...
pfreiberg/knparser
src/main/java/cz/pfreiberg/knparser/exporter/oracledatabase/TJednotekOracleDatabaseJdbcExporter.java
Java
mit
1,193
using System.Collections.Generic; using System.Text; namespace DB2DataContextDriver.CodeGen { public class ClassDefinition { public string Name { get; set; } public string Inherits { get; set; } public List<string> Methods { get; set; } public List<PropertyDefinition> Properties { get; set; ...
treytomes/DB2LinqPadDriver
DB2DataContextDriver/CodeGen/ClassDefinition.cs
C#
mit
941
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Di...
DJBuro/Telerik
C#1/ConditionalStatements/DigitAsWord/Properties/AssemblyInfo.cs
C#
mit
1,398
using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using PholioVisualisation.PholioObjects; namespace PholioVisualisation.ServicesTest { [TestClass] public class EntitiesControllerEndPointTest { [TestMethod] public void Te...
PublicHealthEngland/fingertips-open
PholioVisualisationWS/ServicesTest/EntitiesControllerEndPointTest.cs
C#
mit
4,435
import pprint from cytoolz import ( assoc, concatv, partial, pipe, ) from semantic_version import ( Spec, ) from eth_utils import ( add_0x_prefix, to_dict, to_tuple, ) from solc import ( get_solc_version, compile_standard, ) from solc.exceptions import ( ContractsNotFound...
pipermerriam/populus
populus/compilation/backends/solc_standard_json.py
Python
mit
6,140
import React from 'react'; import moment from 'moment'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import isInclusivelyAfterDay from '../src/utils/isInclusivelyAfterDay'; import isSameDay from '../src/utils/isSameDay'; import SingleDatePickerWrapper from '../exampl...
airbnb/react-dates
stories/SingleDatePicker_day.js
JavaScript
mit
1,865
/** * */ package com.forgedui.model.titanium; import com.forgedui.model.Element; import com.forgedui.model.titanium.annotations.Composite; import com.forgedui.model.titanium.annotations.EnumValues; import com.forgedui.model.titanium.annotations.Review; import com.forgedui.model.titanium.annotations.SupportedPlatform...
ShoukriKattan/ForgedUI-Eclipse
com.forgedui.core/src/com/forgedui/model/titanium/Window.java
Java
mit
4,862
import datetime from django.http import HttpResponse from django.shortcuts import get_object_or_404, render from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from ..tasks import trigger_instance from . import app_settings from .enums import StateEnum from .mod...
takeyourmeds/takeyourmeds-web
takeyourmeds/reminders/reminders_calls/views.py
Python
mit
2,634
package de.kumpelblase2.jhipsterwebsocket.domain.util; import java.io.IOException; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson...
kumpelblase2/jhipster-websocket-example
src/main/java/de/kumpelblase2/jhipsterwebsocket/domain/util/CustomDateTimeSerializer.java
Java
mit
944
require 'couchdb'
Gimi/couchdb-client
lib/couchdb-client.rb
Ruby
mit
18
namespace CodingDojo { public class InterlockedBoolean { private readonly bool _value; private static readonly InterlockedBoolean FalseValue = new InterlockedBoolean(false); private static readonly InterlockedBoolean TrueValue = new InterlockedBoolean(true); private Interlocked...
JanVoracek/interlocked-boolean
InterlockedBoolean.cs
C#
mit
3,117
require 'active_record' require "active_record/version" class ActiveRecord::Base class << self ################################# Generic where clause and inclusion builder ########################### # Query specification format # # Hash containing association specific query specification, # ...
kaushikd49/ar-auto-filter
lib/activerecord-auto_filter.rb
Ruby
mit
5,309
window.onload = () => { const root = new THREERoot({ fov: 60 }); root.renderer.setClearColor(0x222222); root.camera.position.set(0, 0, 100); let light = new THREE.DirectionalLight(0xffffff); root.add(light); light = new THREE.DirectionalLight(0xffffff); light.position.z = 1; root.add(light); ...
zadvorsky/three.bas
examples/skinning_prefabs/main.js
JavaScript
mit
4,231
import imp import os tools = [] for name in os.listdir(os.path.dirname(__file__)): if not name.startswith('_'): # _ in the front indicates that this tool is disabled directory = os.path.join(os.path.dirname(__file__), name) if os.path.isdir(directory): file = os.path.join(directory, na...
nullzero/wpcgi
wpcgi/tools/__init__.py
Python
mit
424
#!/usr/bin/env python # Copyright (c) 2011, 2013 SEOmoz, 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, copy, mo...
seomoz/s3po
setup.py
Python
mit
2,278
module Provision VERSION = "0.0.1" end
chenfisher/provision
lib/provision/version.rb
Ruby
mit
41
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using SysUt14Gr03.Classes; using SysUt14Gr03.Models; namespace SysUt14Gr03 { public partial class RapportTestForm : System.Web.UI.Page { protected void Page_PreIni...
divarsoy/Gruppe3HIN
kode/SysUt14Gr03/SysUt14Gr03/RapportTestForm.aspx.cs
C#
mit
1,177
@extends('admin') @section('title', 'Promotions') @section('content') <div class="row"> <div class="col-md-5"> <h3 class="modal-title">{{ $result->total() }} {{ str_plural('Promotion', $result->count()) }}</h3> </div> <div class="col-md-12 page-action text-right"> ...
ryanzzeng/laravelStarter
resources/views/promotion/index.blade.php
PHP
mit
3,673
<?php declare(strict_types = 1); namespace Rx\Functional; use Rx\Observable; class FromArrayTest extends FunctionalTestCase { /** * @test */ public function it_schedules_all_elements_from_the_array() { $xs = Observable::fromArray(['foo', 'bar', 'baz'], $this->scheduler); $resu...
ReactiveX/RxPHP
test/Rx/Functional/Operator/FromArrayTest.php
PHP
mit
1,767
package com.helospark.lightdi.it; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.isA; import static org.junit.Assert.assertThat; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import com.helospark.lightdi.LightDi; import com.helospark.ligh...
helospark/light-di
src/test/java/com/helospark/lightdi/it/ImportingClassAwareIT.java
Java
mit
1,536
package bg; import com.renren.api.RennException; /** 定时刷新信息. * @author ZCH */ public final class Driver { /** magic number. * set magic number 180000 */ private static final int MN = 180000; /** 调用dirive()函数. * @param args String[] */ public static void main(final String[] args)...
sibojia/ihomepage
infohub-yt/src/bg/Driver.java
Java
mit
1,054
namespace NServiceBus.AcceptanceTests.Basic { using System; using System.Threading.Tasks; using AcceptanceTesting; using EndpointTemplates; using NUnit.Framework; public class When_multiple_mappings_exists : NServiceBusAcceptanceTest { [Test] public async Task Fi...
sbmako/NServiceBus.MongoDB
src/NServiceBus.MongoDB.Acceptance.Tests/App_Packages/NSB.AcceptanceTests.6.0.0/Basic/When_multiple_mappings_exists.cs
C#
mit
2,894
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered.org <http://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
phase/Sponge
src/main/java/org/spongepowered/mod/mixin/core/event/entity/living/MixinEventLiving.java
Java
mit
2,143
import test from 'ava'; import snapshot from '../../helpers/snapshot'; import Vue from 'vue/dist/vue.common.js'; import u from '../../../src/lib/components/u/index.vue'; import commonTest from '../../common...
Morning-UI/morning-ui
test/unit/components/u.js
JavaScript
mit
586
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
reginafcompton/handelatnewberry
config/environments/production.rb
Ruby
mit
3,853
/*Création des cookies*/ $(document).ready(function () { CreateCookies(); $('input:not([type="submit"])').each(function () { $(this).val(''); }); }); /*Ajout des vols dans la recherche*/ function addResultVols(toAppend, compagnie, code, provenance, destination, imgSrc, date, heure, ArrDep, imgArrDe...
aimanwakidou/SiteAeroport
js/RechercheVol.js
JavaScript
mit
7,968
using System; using System.Collections.Generic; using System.Text; namespace CommandLineDeploymentTool { class Arguments { public string DeployType { get; private set; } public string BackupFolder { get; private set; } public string AppName { get; private set; } public string A...
erdalgokten/CommandLineDeploymentTool
CommandLineDeploymentTool/Arguments.cs
C#
mit
9,801
/* * * ProjectList constants * */ // export const DEFAULT_ACTION = 'app/ProjectList/DEFAULT_ACTION'; export const GET_PROJECTS_OWNED_ACTION = 'app/ProjectList/GET_PROJECTS_OWNED'; export const GET_PROJECTS_OWNED_SUCCESS_ACTION = 'app/ProjectList/GET_PROJECTS_OWNED_SUCCESS'; export const GET_PROJECTS_OWNED_ERROR_AC...
VeloCloud/website-ui
app/containers/ProjectList/constants.js
JavaScript
mit
642
from django.core.management import setup_environ import settings setup_environ(settings) from apps.modules.tasks import update_data update_data.delay()
udbhav/eurorack-planner
scripts/update_data.py
Python
mit
167
// // // MIT License // // Copyright (c) 2017 Stellacore 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 ...
transpixel/tpqz
libdat/Jump.cpp
C++
mit
2,242
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("sam...
dlmelendez/identitydocumentdb
sample/samplemvc/Properties/AssemblyInfo.cs
C#
mit
1,349
<?php namespace Oro\Bundle\MessageQueueBundle\Tests\Unit\DependencyInjection; use Oro\Bundle\MessageQueueBundle\DependencyInjection\Configuration; use Oro\Bundle\MessageQueueBundle\Tests\Unit\Mocks\FooTransportFactory; use Oro\Component\MessageQueue\DependencyInjection\DbalTransportFactory; use Oro\Component\MessageQu...
trustify/oroplatform
src/Oro/Bundle/MessageQueueBundle/Tests/Unit/DependencyInjection/ConfigurationTest.php
PHP
mit
7,174
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_72a.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.string.label.xml Template File: sources-sink-72a.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: ...
maurer/tiamat
samples/Juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_72a.cpp
C++
mit
3,040
import core from 'core-js'; var originStorage = new Map(); function ensureType(value){ if(value instanceof Origin){ return value; } return new Origin(value); } /** * A metadata annotation that describes the origin module of the function to which it's attached. * * @class Origin * @constructor * @param {st...
behzad88/aurelia-ts-port
aurelia-latest/metadata/origin.js
JavaScript
mit
1,546
import numpy as np import cv2 import matplotlib.image as mpimg import pickle from line import Line from warp_transformer import WarpTransformer from moviepy.editor import VideoFileClip calibration_mtx_dist_filename = 'dist_pickle.p' # load mtx, dist dist_pickle = pickle.load(open(calibration_mtx_dist_filename, "rb" )...
mez/carnd
P4_advance_lane_finding/main.py
Python
mit
9,709
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MyFramework.ServiceModel { /// <summary> /// 通用的服务返回结果. /// </summary> public class CommonServiceResult<T> { public CommonServiceResult() { } ...
wangzhiqing999/my-csharp-project
MyFramework.Service/ServiceModel/CommonServiceResult.cs
C#
mit
5,657
/** * @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 */ import {CommonModule, Location} from '@angular/common'; import {SpyLocation} from '@angular/common/testing'; import ...
hansl/angular
packages/router/test/integration.spec.ts
TypeScript
mit
182,197
/*global require module*/ var q = require('q'); var async = require('async'); var constants = require('./_constants'); var Logger = require('./logger'); var CompiledNode = require('./compiled-node'); var EvaluatedNode = require('./evaluated-node'); var _8a2a4f008c464f9b81b3b5f4e75772c5 = { evaluateValue: function...
cellanda/flexapi-core-js
lib/module.js
JavaScript
mit
6,246
from setuptools import setup, find_packages setup( name="Coinbox-mod-customer", version="0.2", packages=find_packages(), zip_safe=True, namespace_packages=['cbmod'], include_package_data=True, install_requires=[ 'sqlalchemy>=0.7, <1.0', '...
coinbox/coinbox-mod-customer
setup.py
Python
mit
654
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_file_w32_spawnv_82_bad.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-82_bad.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: file Read input from a fil...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s04/CWE78_OS_Command_Injection__char_file_w32_spawnv_82_bad.cpp
C++
mit
1,190
//= require jquery3 //= require popper //= require bootstrap //= require turbolinks //= require_tree .
mrysav/familiar
app/assets/javascripts/application.js
JavaScript
mit
102
module Quovo module Models class IframeToken < Base fields %i( user token ) def url "https://embed.quovo.com/auth/#{token}" end end end end
CanopyFA/quovo-ruby
lib/quovo/models/iframe_token.rb
Ruby
mit
200
#include "sendmessagedialog.h" #include "ui_sendmessagedialog.h" #include "clientcommandmanager.h" #include "clientcommand.h" SendMessageDialog::SendMessageDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SendMessageDialog) { ui->setupUi(this); errorPopup = new ErrorPopup(); attach(errorPopup)...
taragu/sharefile
sharefileclient/sendmessagedialog.cpp
C++
mit
2,196
<?php namespace Etk\Bundle\AdminBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link...
eibertek/etek10
src/Etk/Bundle/AdminBundle/DependencyInjection/Configuration.php
PHP
mit
909
<?php namespace spec\GrumPHP\Runner; use GrumPHP\Runner\TaskResult; use GrumPHP\Task\Context\ContextInterface; use GrumPHP\Task\TaskInterface; use PhpSpec\ObjectBehavior; class TaskResultSpec extends ObjectBehavior { const FAILED_TASK_MESSAGE = 'failed task message'; function it_creates_passed_task(TaskInte...
mikechernev/grumphp
spec/GrumPHP/Runner/TaskResultSpec.php
PHP
mit
2,248
#!/usr/bin/env node const fs = require('mz/fs'), path = require('path'), Promise = require('bluebird'), mongoose = require('mongoose'), uuid = require('uuid4') const config = require('../config/api_options.json') const MongoUtil = require('../dist/server/lib/mongo-util').default const Order = require('../di...
dasantonym/nano-ticketron-xl
bin/import-booth.js
JavaScript
mit
1,688
package admin import ( "encoding/json" "errors" "fmt" ) const ( // ErrUserExists - Attempt to create existing user ErrUserExists errorReason = "UserAlreadyExists" // ErrNoSuchUser - Attempt to create existing user ErrNoSuchUser errorReason = "NoSuchUser" // ErrInvalidAccessKey - Invalid access key specified...
ceph/go-ceph
rgw/admin/errors.go
GO
mit
4,043
<?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\Behat\Context\Ui\Admin; use Behat\Behat\Context\Context; u...
Brille24/Sylius
src/Sylius/Behat/Context/Ui/Admin/ManagingAdministratorsContext.php
PHP
mit
10,196
<?php /* @var $this RateToEurController */ /* @var $model CurrencyRateToEur */ ?> <div class="col-sm-3"> <?php $this->renderPartial('_menu', array('model' => $model, 'action' => 'view')); ?> </div> <div class="col-sm-9"> <br> <h3 class="text-center"><?php echo Yii::t('CurrencyModule.view', 'Rate Data'); ?></h3...
Anastaszor/yii1-currency
views/admin/rateToEur/view.php
PHP
mit
474
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About virtauniquecoin</source> <translation>virtauniquecoin Hakkında</translation> </message> <messag...
virtauniquecoin/virtauniquecoin-master
src/qt/locale/virtauniquecoin_tr.ts
TypeScript
mit
124,772
#!/usr/bin/env python ''' Retrospectively updates older FFV1/DV packages in order to meet our current packaging requirements. This should allow accession.py and makepbcore.py to run as expected. This script should work on files created by: makeffv1.py dvsip.py loopline.py ''' import argparse import sys import shutil im...
kieranjol/IFIscripts
loopline_repackage.py
Python
mit
12,437
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-04-05 14:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('story', '0037_auto_20170405_1401'), ] operations = [ migrations.AlterField(...
OrhanOdabasi/weirdbutreal
story/migrations/0038_auto_20170405_1404.py
Python
mit
509
package datastructs // Deque array implemented linked list type Deque struct { array []interface{} left, right int fixSize int } func NewDeque(capacity int) *Deque { d := new(Deque) if capacity <= 0 { panic("deque must have capacity") } d.array = make([]interface{}, capacity) d.fixSize = capacity ...
stoneflyop1/intro2algorithms
datastructs/deque.go
GO
mit
1,068
 // Currently unused, but don't want to delete it since // it might be useful later. //SmartRoutes.ComboBoxViewModel = function(data) { // // Private: // var comboboxChoices = ko.observableArray(); // var comboboxSelection = ko.observable(); // (function Init() { // if (data && Array.isArray(data...
SmartRoutes/SmartRoutes
SmartRoutes/Scripts/ViewModels/ComboBoxViewModel.js
JavaScript
mit
595
const TEXT_NODE = 3; import { clearSelection } from 'content-kit-editor/utils/selection-utils'; import { walkDOMUntil } from 'content-kit-editor/utils/dom-utils'; import KEY_CODES from 'content-kit-editor/utils/keycodes'; import isPhantom from './is-phantom'; function selectRange(startNode, startOffset, endNode, endO...
toddself/content-kit-editor
tests/helpers/dom.js
JavaScript
mit
5,235
class Fhir::CodeSystem attr_reader :symbolic, :display, :oid, :uris DECLARED_SYSTEMS = [{ symbolic: :unii, display: 'UNII', oid: '2.16.840.1.113883.4.9' }, { symbolic: :snomed, display: 'SNOMED', oid: '2.16.840.1.113883.6.96', uri: 'http://snomed.info/id' }, { ...
niquola/fhir
lib/fhir/handmade/code_system.rb
Ruby
mit
2,903
/* * Copyright (c) 2015, enlo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions and t...
enlo/jmt-projects
jmt-core/src/test/java/info/naiv/lab/java/jmt/infrastructure/SimpleServiceContainerTest.java
Java
mit
1,965
using System.Collections; using ForumSystem.Data.Common.Repository; using ForumSystem.Data.Models; using ForumSystem.Web.Areas.Administration.ViewModels.Posts; using Kendo.Mvc.UI; using Kendo.Mvc.Extensions; using System; using System.Linq; using System.Web.Mvc; using AutoMapper.QueryableExtensions; namespace ForumSy...
Dr4g0/TelerikForumSystem
Source/Web/ForumSystem.Web/Areas/Administration/Controllers/PostsController.cs
C#
mit
1,157
// Copyright (c) 2010-2013 SharpDX - Alexandre Mutel // // 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,...
shoelzer/SharpDX
Source/SharpDX/Half4.cs
C#
mit
10,134