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
package com.paratussoftware.ui.cli; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class GrimoireCLI { private static final String TITLE_FILE_NAME = "./lib/grimoire_title.txt"; public static void startGrimoireCLI(String[] args){ showTitle(); CLIM...
JArthurJohnston/Grimoire-V2
Demo/src/main/java/com/paratussoftware/ui/cli/GrimoireCLI.java
Java
mit
754
<?php namespace BDN\Migrations; use Doctrine\DBAL\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** * Auto-generated Migration: Please modify to your needs! */ class Version20170820234613 extends AbstractMigration { /** * @param Schema $schema */ public function up(Schema $schema...
Parabot/BDN-V3
app/Migrations/Version20170820234613.php
PHP
mit
32,193
package com.openknowl.okhttpexample; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import java.io.IOException; import okhttp3.Call; import okhttp3.Callback; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; public class MainActivity e...
openknowl/android-prototyper-tutorials
android/android_tutorial_8/OkHttpExample/app/src/main/java/com/openknowl/okhttpexample/MainActivity.java
Java
mit
1,171
(function($){ $.fn.onImagesLoaded = function(_cb,_ca) { return this.each(function() { var $imgs = (this.tagName.toLowerCase()==='img')?$(this):$('img',this), _cont = this, i = 0, _loading=function() { if( typeof _cb === 'function') _cb(_cont); }, _done=func...
flashycud/timestack
static/js/lib.js
JavaScript
mit
614
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions. | | T...
z32556601/90ping_backend
application/config/routes.php
PHP
mit
1,971
@NodeEntity public class Country{ @GraphId private Long id; @Indexed(unique=true) private String coutryName; @RelatedTo private Set<City> cities; public Country(){} public Country(String countryName){ this.countryName = countryName; } }
yanisIk/Hobdy
Domain/Country.java
Java
mit
254
<?php use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\Routing\RequestContext; /** * appDevUrlMatcher * * This class has been auto-generated * by the Symfony Routing Component. */ class appDevUrlMatcher ext...
rangakomarthicomo/SuperMarket
app/cache/dev/appDevUrlMatcher.php
PHP
mit
39,321
// Generated from ./Select.g4 by ANTLR 4.5 // jshint ignore: start var antlr4 = require('../../index'); var serializedATN = ["\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd", "\2\17\177\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t", "\b\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4\16\t\16\3\2\...
bvellacott/papu-force-adapter
lib/antlr4/parsers/select/SelectLexer.js
JavaScript
mit
4,185
using System; using Microsoft.VisualStudio.Shell.Interop; using NUnit.Framework; using Telerik.JustMock; using VisualStudioSync.Controllers; namespace VisualStudioSync.Tests { [TestFixture] public class SettingsControllerTest { private const string Path = "path"; private const string Value = "test"; private...
aquiladev/Coding4Fun.VisualStudioSync
VisualStudioSync.Tests/SettingsControllerTest.cs
C#
mit
4,052
import styled from 'styled-components'; const Wrapper = styled.div` width: 100%; height: 100%; display: block; align-items: space-between; `; export default Wrapper;
andyfrith/weather.goodapplemedia.com
app/containers/ForecastListItem/Wrapper.js
JavaScript
mit
176
<?php /** * Low Seg2Cat Language file * * @package low_seg2cat * @author Lodewijk Schutte <hi@gotolow.com> * @link http://gotolow.com/addons/low-seg2cat * @license http://creativecommons.org/licenses/by-sa/3.0/ */ $lang = array( 'category_groups' => 'Category groups', 'all_gro...
noslouch/pa
core/expressionengine/third_party/low_seg2cat/language/english/low_seg2cat_lang.php
PHP
mit
547
using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Reflection; namespace AKDK.Messages.DockerEvents.Converters { /// <summary> /// JSON converter that that enables custom selection logic during deserialisation of the object to create based on the JSON encountered. /// </summary> /// <ty...
tintoy/aykay-deekay
src/AKDK/Messages/DockerEvents/Converters/JsonCreationConverter.cs
C#
mit
3,851
<?php $files = array('global', 'module', 'admin', 'bootstrap', 'bootstrap-responsive', 'bootstrap-wysihtml5','datetimepicker'); $extended = array('install' => 'installation css', 'mailer' => 'Custom mailer css'); /* Do not edit below this line //-------------------------------*/ header("Content-Type: text/css; ch...
iantearle/Expanse-CMS-Public
expanse/css/expanse.css.php
PHP
mit
1,657
module.exports={ setup(context, cb){ //context.sigslot.signalAt('* * * * * *', 'sayHello') cb() }, sep(msg,next){ console.log(msg); return next() }, route(req, next){ switch(req.method){ case 'POST': return next() case 'GET': this.setOutput(this.time) default: return next(null, this.sigslot.abort()) ...
ldarren/pico-api
test/util.js
JavaScript
mit
464
<?php namespace Murky\HomeBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $this->asser...
rlbaltha/biblio
src/Murky/HomeBundle/Tests/Controller/DefaultControllerTest.php
PHP
mit
399
/*********************************************** * MIT License * * Copyright (c) 2016 珠峰课堂,Ramroll * 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...
njxiaohan/TransPal
app/domain/component/index.js
JavaScript
mit
1,752
goog.provide('ngeo.CreatefeatureController'); goog.provide('ngeo.createfeatureDirective'); goog.require('ngeo'); goog.require('ngeo.EventHelper'); /** @suppress {extraRequire} */ goog.require('ngeo.filters'); goog.require('ngeo.interaction.MeasureArea'); goog.require('ngeo.interaction.MeasureLength'); goog.require('ol...
ger-benjamin/ngeo
src/directives/createfeature.js
JavaScript
mit
6,955
using System.Collections.Generic; using System.Security.Claims; namespace FujiyBlog.Web.Areas.Admin.ViewModels { public class AdminRoleSave { public string Id { get; set; } public string Name { get; set; } public IEnumerable<string> Claims { get; set; } } }
fujiy/FujiyBlog
src/FujiyBlog.Web/Areas/Admin/ViewModels/AdminRoleSave.cs
C#
mit
302
using UnityEngine; using System.Collections; using UnityEngine.UI; public class StartMenuUIControl : MonoBehaviour { /*===================== GameObjects =====================================================================================*/ public GameObject characterCreationMenuPrefab; /*===================...
Ross-Byrne/Management_Mayhem
Assets/Scripts/UI/StartMenu/StartMenuUIControl.cs
C#
mit
2,906
Mini.define('layerTemplate', function(){ var $detail = $('#t-detail').html() return { detail: _.template($detail) } }); Mini.define('serviceLayer', [ 'layerTemplate' ], function(layerTemplate){ return { ctn: function(e) { layer.open({ title: '箱动态列表', ...
hoozi/hyd2
js/site/components/serviceLayer.js
JavaScript
mit
559
# frozen_string_literal: true Rails.application.routes.draw do match "lock/login", to: "lock#login", as: "lock_login", via: :get match "lock/refused", to: "lock#refused", as: "unlock_refused", via: :get match "lock/unlock", to: "lock#unlock", as: "unlock", via: :post end
charlotte-ruby/lock
config/routes.rb
Ruby
mit
279
// For vendors for example jQuery, Lodash, angular2-jwt just import them here unless you plan on // chunking vendors files for async loading. You would need to import the async loaded vendors // at the entry point of the async loaded file. Also see custom-typings.d.ts as you also need to // run `typings install x` wher...
katallaxie/generator-angular2-starter
template/src/vendor.ts
TypeScript
mit
756
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * Internal function to process the separation of a physics body from a tile. * * @function Phaser.Physics.Arcad...
rblopes/phaser
src/physics/arcade/tilemap/ProcessTileSeparationX.js
JavaScript
mit
901
<?php namespace Oro\Bundle\UserBundle\Tests\Unit\Type; use Oro\Bundle\UserBundle\Form\Type\ChangePasswordType; use Symfony\Component\Form\Test\FormIntegrationTestCase; class ChangePasswordTypeTest extends FormIntegrationTestCase { /** @var \PHPUnit_Framework_MockObject_MockObject */ protected $subscriber; ...
akeneo/platform
src/Oro/Bundle/UserBundle/Tests/Unit/Form/Type/ChangePasswordTypeTest.php
PHP
mit
1,781
export function mergeUsers({ props, state, uuid }) { if (props.response.result.users && props.response.result.users.length !== 0) { let orderKey = 1 for (const user of props.response.result.users) { user.orderKey = orderKey const usersInState = state.get('admin.users') const uidInState = Obj...
yacoma/auth-boilerplate
client/app/modules/admin/actions.js
JavaScript
mit
1,148
QuakeMap::Application.configure do # Settings specified here will take precedence over those in config/environment.rb # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test...
QuakeMap/quakemap
config/environments/test.rb
Ruby
mit
1,814
package errors import ( "net/http" "fmt" ) // NewValidationError creates a new APIError with 422 Unprocessable entity http status code to be used as reporting the validation failure func NewValidationError(e ... error) APIError { return APIError{ StatusCode: http.StatusUnprocessableEntity, Title: ...
uroshercog/kanban-board-backend
http/errors/validation.go
GO
mit
874
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
<?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
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
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 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
{ ("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
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
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
@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
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
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