repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
PiranhaCMS/piranha.core
core/Piranha/Models/RoutedContentBase.cs
4470
/* * Copyright (c) .NET Foundation and Contributors * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * * https://github.com/piranhacms/piranha.core * */ using System; using System.Collections.Generic; using System.ComponentModel.DataAnno...
mit
bknopper/TSPEvolutionaryAlgorithmsDemo
TSPEADemo/backend/src/main/java/nl/bknopper/tspeademo/ea/SingleThreadedAlgorithmRunner.java
1402
package nl.bknopper.tspeademo.ea; import org.springframework.stereotype.Component; @Component public class SingleThreadedAlgorithmRunner implements AlgorithmRunner { private Algorithm algorithm; public SingleThreadedAlgorithmRunner() { } @Override public synchronized void startAlgorithm(Algorit...
mit
stevefsp/Lizitt-Unity3D-Utilities
Source/Plugins/Lizitt/Utils/Core/DefaultTag.cs
2393
/* * Copyright (c) 2015 Stephen A. Pratt * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, ...
mit
gazzlab/LSL-gazzlab-branch
liblsl/external/lslboost/mpl/modulus.hpp
667
#ifndef BOOST_MPL_MODULUS_HPP_INCLUDED #define BOOST_MPL_MODULUS_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.lslboost.org/LICENSE_1_0.txt) // // See http://www.lslboost.org/li...
mit
destiny1020/java-learning-notes-cn
Image & Video/video/XuggleTest.java
9894
package video; import java.awt.Color; import java.awt.Graphics2D; import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.nio.ShortBuffer; import javax.imageio.ImageIO; import org.junit.Test; import com.xuggle.mediatool.IMediaDebugListener....
mit
zladovan/scalagine
engine/resource/src/main/scala/sk/scalagine/resource/ResourceImplicitConversions.scala
273
package sk.scalagine.resource /** * Created with IntelliJ IDEA. * User: zladovan * Date: 9/6/14 * Time: 6:33 PM */ object ResourceImplicitConversions { implicit final def resourceToTextResource(resource: ResourceLoader): TextResource = new TextResource(resource) }
mit
haciel/sistema_comtable
vendor/tcpdf/examples/barcodes/example_1d_svgi.php
2105
<?php //============================================================+ // File name : example_1d_svgi.php // Version : 1.0.000 // Begin : 2011-07-21 // Last Update : 2013-03-17 // Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick...
mit
koalasw/UBCCourseScheduler
json-test.js
7070
/** * Created by Tiffy on 15-08-28. */ var course = [ { "hasSection": true, "hasTutorial": false, "hasLaboratory": true, "sections1": ["CPSC 213 101"], "sections2": ["CPSC 213 203", "CPSC 213 204"], "tutorials1": [], "tutorials2": [], "labs1": ["CP...
mit
chasethenag420/sbs
src/main/java/com/asu/cse545/group12/dao/RoleDaoImpl.java
1113
package com.asu.cse545.group12.dao; import java.util.ArrayList; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.criterion.Restrictions; import org.spri...
mit
togusafish/vehicle-history-_-npm-vehicle-history-model
lib/mapHelper.js
1079
var assert = require('assert-plus'); var logger = require('./logger/logger').logger; var exports = {}; exports.getMapValue = function (map, field) { assert.object(map, 'map'); assert.string(field, 'field'); if (map.hasOwnProperty(field)) { var value = map[field]; if (value === null) { logger.info...
mit
yiweimatou/doctor-antd
src/components/Avatar/index.js
3372
import React, { Component, PropTypes } from 'react' function getStyles(props) { const { backgroundColor, color, size, src } = props const avatar = { color: '#00bcd4', backgroundColor: 'white' } const styles = { root: { col...
mit
periaptio/empress
app/Base/Controller.php
661
<?php /** * app/Base/Controller.php * * Local Controller class for controllers to extend. * * @author Vince Kronlein <vince@19peaches.com> * @license https://github.com/periaptio/empress/blob/master/LICENSE * @copyright Periapt, LLC. All Rights Reserved. */ namespace Empress\Base; use Illuminate\Foundation\B...
mit
igormironchik/components-observation
samples/qtreeview_client/treeview.cpp
2435
/*! \file \author Igor Mironchik (igor.mironchik at gmail dot com). Copyright (c) 2012 Igor Mironchik 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, incl...
mit
gagle/node-speedy
examples/typeof.js
641
"use strict"; var speedy = require ("../lib"); var s = "string"; //1 closure lookup and 1 variable definition per test speedy.run ({ cache: function (){ var type = typeof s; type === "number"; type === "string"; }, "no-cache": function (){ var str = s; typeof str === "number"; typeof s...
mit
sphereority/sphereority
Extasys/Network/TCP/Server/Listener/TCPListenerThread.java
2389
/*Copyright (c) 2008 Nikos Siatras Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
mit
mitoma/tplot
lib/tplot.rb
60
require_relative "tplot/version" module Tplot # noop end
mit
nirdobovizki/MiniMvc
MiniMvc/DefaultPipelineFIlter.cs
1506
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MiniMvc { public class DefaultPipelineFilter : IPipelineFilter { public void BeginRequest(string controllerName, string actionName, Dictionary<string, object> parameters) ...
mit
almadaocta/lordbike-production
app/code/community/Inovarti/Onestepcheckout/Block/Onestep/Form/Review/Terms.php
403
<?php /** * * @category Inovarti * @package Inovarti_Onestepcheckout * @author Suporte <suporte@inovarti.com.br> */ class Inovarti_Onestepcheckout_Block_Onestep_Form_Review_Terms extends Mage_Checkout_Block_Agreements { public function canShow() { if (count($this->getAgreements())...
mit
djmaze/twister-core
libtorrent/include/libtorrent/aux_/session_impl.hpp
39297
/* Copyright (c) 2006, Arvid Norberg 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 the f...
mit
hedrox/ecg-classification
old_keras_impl/run.py
2363
from keras.layers import Convolution1D from keras.models import Sequential from keras.layers import Activation, Dense, Flatten, Dropout from data import process_data from keras import backend as K import numpy as np import os if not os.listdir('datasets/processed'): process_data() arrhy_data = np.loadtxt(open('d...
mit
krawthekrow/synth-unnamed
src/utils/Utils.js
4063
class Vector{ constructor(x, y){ this.x = x; this.y = y; } static fromPolar(r, phi){ return new Vector( r * Math.cos(phi), r * Math.sin(phi) ); } add(oVec){ return new Vector( this.x + oVec.x, this.y + oVec.y ...
mit
uhef/Oskari-Routing-frontend
bundles/framework/bundle/divmanazer/locale/uz.js
4155
Oskari.registerLocalization({ "lang": "uz", "key": "DivManazer", "value": { "LanguageSelect": { "title": "Til", "tooltip": "NOT TRANSLATED", "languages": { "af": "afrikancha", "ak": "akancha", "am": "amxarcha", ...
mit
lampaa/imageLib
modules/png-node.js
8820
/* # MIT LICENSE # Copyright (c) 2011 Devon Govett # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to use, copy, modify, merg...
mit
visualing/VisualingVideoPlayer
app/src/main/java/cn/visualing/demo/ExtendsNormalActivity.java
1155
package cn.visualing.demo; import android.app.Activity; import android.os.Bundle; import com.squareup.picasso.Picasso; import cn.visualing.JZVideoPlayer; import cn.visualing.JZVideoPlayerStandard; /** * Created by Nathen on 2017/9/19. */ public class ExtendsNormalActivity extends Activity { @Override pr...
mit
jameszhan/mulberry_preview
lib/mulberry_preview/version.rb
48
module MulberryPreview VERSION = '0.0.10' end
mit
brianbbsu/program
code archive/CF/1176F.cpp
3416
//{ #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef double lf; typedef pair<ll,ll> ii; #define REP(i,n) for(ll i=0;i<n;i++) #define REP1(i,n) for(ll i=1;i<=n;i++) #define FILL(i,n) memset(i,n,sizeof i) #define X first #define Y second #define SZ(_a) (int)_a.size() #define ALL(_a) _a.begin(),_...
mit
tohenk/php-ntreport
src/Report.php
23531
<?php /* * The MIT License * * Copyright (c) 2014-2021 Toha <tohenk@yahoo.com> * * 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 ...
mit
flextry/books-coding-horror
Concurrency in C# - Cookbook/Functional-Friendly OOP/10. 3. Async Initialization Pattern/Imp/MyFundamentalType.cs
971
namespace AsyncInitializationPattern.Imp { using System; using System.Threading.Tasks; using AsyncInitializationPattern.Abstract; internal class MyFundamentalType : IMyFundamentalType, IAsyncInitialization { private readonly ILogger logger; public MyFundamentalType(ILogger logger)...
mit
sherxon/AlgoDS
src/problems/utils/Interval.java
451
package problems.utils; /** * Created by sherxon on 1/28/17. */ public class Interval { public int start; public int end; public Interval() { start = 0; end = 0; } public Interval(int s, int e) { start = s; end = e; } @Override public String toString...
mit
TravisWheelerLab/NINJA
docs/search/all_15.js
241
var searchData= [ ['which_303',['which',['../struct_heap_return.html#a92d5327a236a872dd1d0598fac7685ba',1,'HeapReturn']]], ['write_304',['write',['../class_distance_reader.html#ac6c565a94488665715dac977d32353a2',1,'DistanceReader']]] ];
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_90/unsafe/CWE_90__object-indexArray__func_FILTER-CLEANING-email_filter__name-sprintf_%s_simple_quote.php
1811
<?php /* Unsafe sample input : get the field userData from the variable $_GET via an object, which store it in a array Uses an email_filter via filter_var function construction : use of sprintf via a %s with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement...
mit
emersonthis/fae
spec/dummy/config/initializers/fae.rb
410
Fae.setup do |config| config.devise_secret_key = '79a3e96fecbdd893853495ff502cd387e22c9049fd30ff691115b8a0b074505be4edef6139e4be1a0a9ff407442224dbe99d94986e2abd64fd0aa01153f5be0d' # models to exclude from dashboard list config.dashboard_exclusions = %w( Aroma ) # language support config.languages = { e...
mit
treytomes/ASCIIWorld2
ASCIIWorld/ASCIIWorld/Data/Generation/Labyrinth/LabyrinthChunkGenerator.cs
6091
using CommonCore.Math; using System; using System.Collections.Generic; using System.Linq; namespace ASCIIWorld.Data.Generation.Labyrinth { public class LabyrinthChunkGenerator : BaseChunkGenerator { #region Fields private int _doorId; private int _floorId; private int _wallId; #endregion #region Cons...
mit
tutelagesystems/billr
application/app/Http/Routes/Settings.php
556
<?php Route::group(['prefix' => 'settings'], function(){ Route::get('/', array( 'as' => 'settings', 'uses' => 'SettingsController@index') ); Route::post('/update', array( 'as' => 'settings.update', 'uses' => 'SettingsController@update') ); Route::get('/testSMS', ...
mit
bhanuprasad143/refinerycms-authentication
spec/controllers/refinery/admin/users_controller_spec.rb
2191
require "spec_helper" describe Refinery::Admin::UsersController do login_refinery_superuser shared_examples_for "new, create, update, edit and update actions" do it "loads roles" do Refinery::Role.should_receive(:all).once{ [] } get :new end it "loads plugins" do plugins = Refinery:...
mit
DevChampsBR/MeDaUmFilme
src/MeDaUmFilme.Language/Properties/AssemblyInfo.cs
832
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: AssemblyConfigurat...
mit
phpwaymx/phpwaymx.github.io
assets/js/init.js
3541
/** * Init JS * * TABLE OF CONTENTS * --------------------------- * 1. Preloader * 2. Ready Function * a) Auto height for the home page * b) Smooth Scroll * c) 3d gallery * d) Vimeo Video * e) Schedule Accordian * f) Speaker Slider * g) Animation * h) Registration Form * i) Subscr...
mit
manuelnelson/patient-pal
dist/api/curriculum-routes.js
2435
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _express = require('express'); var _express2 = _interopRequireDefault(_express); var _expressValidation = require('express-validation'); var _expressValidation2 = _interopRequireDefault(_expressValidation); var _curriculumValidatio...
mit
ahajri/AppWeb
backend/anonymous-routes.js
4337
var express = require('express'); var personService = require('./service/personService.js'); var countries = require('./countries'); var countryList = require('./countries.json'); var async = require('async'); var node_xj = require("xls-to-json"); var fs = require("fs"); var Converter = require("csvtojson").Converter; ...
mit
Loomie/KinoSim
finance/src/main/java/de/outstare/kinosim/finance/expenses/Expense.java
321
package de.outstare.kinosim.finance.expenses; import de.outstare.kinosim.finance.Cents; import de.outstare.kinosim.finance.NamedAmount; /** * An Expense is an amount of money we spent. */ public class Expense extends NamedAmount { public Expense(final Cents amount, final String name) { super(amount, name); } }...
mit
tjtorres/SentiMap
static/js/jquery.eventsource.js
6529
/*! * jQuery.EventSource (jQuery.eventsource) * * Copyright (c) 2011 Rick Waldron * Dual licensed under the MIT and GPL licenses. */ (function( jQuery, global ) { jQuery.extend( jQuery.ajaxSettings.accepts, { stream: "text/event-stream" }); var stream = { defaults: { // Stream identity label: null...
mit
karabeliov/Telerik-Academy
Courses/JavaScript Fundamentals/05.Arrays/04.MaximalIncreasingSequence/Properties/AssemblyInfo.cs
1394
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("_0...
mit
jvasileff/aos-xp
src.java/org/anodyneos/xpImpl/tagext/TagLibraryRegistryImpl.java
920
package org.anodyneos.xpImpl.tagext; import java.io.IOException; import org.anodyneos.xp.tagext.TagLibraryInfo; import org.anodyneos.xp.tagext.TagLibraryRegistry; import org.anodyneos.xpImpl.tld.TLDParser; import org.xml.sax.EntityResolver; import org.xml.sax.InputSource; import org.xml.sax.SAXException; public clas...
mit
tamouse/kaprekar_kata
spec/spec_helper.rb
1192
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec....
mit
zoubin/async-array-methods
example/chain.js
1384
var AsyncArray = require('..').Array Promise.resolve() .then(function () { var origin = AsyncArray([1, 2, 3, 4, 5, 6]) var odd = origin.filter(isOdd) var even = origin.filter(isEven) return odd.then(function (res) { // [1, 3, 5] console.log(res) return even }) .then(function (res) { // [2,...
mit
lordjancso/LordjancsoDevelopmentBundle
src/LordjancsoDevelopmentBundle.php
150
<?php namespace Lordjancso\DevelopmentBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class LordjancsoDevelopmentBundle extends Bundle { }
mit
brianmains/Nucleo.NET
src/Nucleo.Orm/Orm/UnitOfWorkManager.cs
3613
using System; using System.Collections.Generic; using System.Linq; using Nucleo.Orm.Caching; using Nucleo.Orm.Configuration; using Nucleo.Orm.Creation; using Nucleo.Orm.Discovery; namespace Nucleo.Orm { /// <summary> /// Represents the manager that can serve up unit of work implementations. /// </summary> /// <...
mit
KMK-ONLINE/xbt
src/Xbt/Template.php
1928
<?php // strict namespace Xbt; class Template extends TagNode { protected $extends; protected $blocks; protected $doctype; public function __construct(TagAttributes $attributes, NodeList $children, $blocks = []) { if ($attributes->offsetExists(':extends') && !$attributes->offsetGet(':exten...
mit
velidar/Telerik-Academy-ASP.NET-Web-Forms-Exam-September-2013
LibrarySystem/ApsNetWebFormsExam/App_Start/Startup.Auth.cs
1082
using Owin; namespace ApsNetWebFormsExam { public partial class Startup { // For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301883 public void ConfigureAuth(IAppBuilder app) { // Enable the application to use a cookie to ...
mit
bitovi-components/bit-graph
Gruntfile.js
1035
var path = require('path'); var docConfig = require('./documentjs.json'); var isCI = process.env.CI === 'true'; module.exports = function (grunt) { grunt.loadNpmTasks('steal-tools'); grunt.loadNpmTasks('testee'); grunt.loadNpmTasks('grunt-serve'); grunt.loadNpmTasks('documentjs'); var config = { documentjs: ...
mit
ideaworld/FHIR_Tester
FHIR_Tester_statics/js/build/.module-cache/0cea89157bfa64f3fd553de7a685b92de1a0abdf.js
10633
var app = app || {}; (function(){ app.TestButton = React.createClass({displayName: "TestButton", handleClick: function() { this.props.submitTestTask(this.props.btnType); }, render: function() { return ( React.createElement("button", {onClick: this.handleClick, ...
mit
GoZOo/Drupaloscopy
hashs-database/hashs/core___assets___vendor___ckeditor___plugins___a11yhelp___dialogs___lang___fo.js
3211
8.0.0-beta16:b0059dc8606caba3ed932149b662b2be1bd6b7bf013b663a769ea5f99ca6830b 8.0.0-rc1:b0059dc8606caba3ed932149b662b2be1bd6b7bf013b663a769ea5f99ca6830b 8.0.0-rc2:b0059dc8606caba3ed932149b662b2be1bd6b7bf013b663a769ea5f99ca6830b 8.0.0-rc3:b0059dc8606caba3ed932149b662b2be1bd6b7bf013b663a769ea5f99ca6830b 8.0.0-rc4:b0059dc...
mit
akrherz/iem
htdocs/plotting/auto/scripts100/p135.py
7105
"""Accumuldated days""" import datetime from pandas.io.sql import read_sql from pyiem.plot import figure_axes from pyiem.util import get_autoplot_context, get_dbconn from pyiem.exceptions import NoDataFound PDICT = { "high_above": "High Temperature At or Above", "high_below": "High Temperature Below", "lo...
mit
angularjs-tutorial/movie-trailer-app
app/services/CommentService.js
407
/** * Created by avipokhrel on 6/22/17. */ 'use strict'; angular.module('myApp') .factory('CommentService', ['$http', function ($http) { return { getbyId: function (id) { return $http.get('/api/comment/' + id); }, save: function (commentObj) { ...
mit
BaranovNikita/Page-About-Me
src/frontend/components/NoMatchRoutePage/NoMatchRoutePage.js
851
import React from 'react'; import { browserHistory } from 'react-router'; import { RaisedButton } from 'material-ui'; import * as styles from './style.pcss'; class NoMatchRoutePage extends React.Component { static propTypes = { }; render() { return ( <div className={`${styles.fof} ${styles.clear}`}> <h1>...
mit
elafrikano/HelpDesk
scripts/scriptAddArea.php
465
<?php require ("scriptValidaSession.php"); require ("../clases/area.class.php"); require ("../clases/baseDatos.class.php"); $conexion = new baseDatos(); if ($conexion->connect_errno) { echo "Fallo la conexion: ".$conexion->connect_error; } $zona = new Area(); $zona->setCodigo($_POST['codigo...
mit
shogo82148/go-gracedown
gracedown.go
1913
// +build go1.8 package gracedown import ( "context" "net" "net/http" "sync" "sync/atomic" "time" ) // Server provides a graceful equivalent of net/http.Server. type Server struct { *http.Server KillTimeOut time.Duration mu sync.Mutex closed int32 // accessed atomically. doneChan chan struct{} }...
mit
arkanox/MistShowdown
test/simulator/moves/quash.js
1882
'use strict'; const assert = require('./../../assert'); let battle; describe('Quash', function () { afterEach(function () { battle.destroy(); }); it('should cause the target to move last if it has not moved yet', function () { battle = BattleEngine.Battle.construct('battle-quash-1', 'doublescustomgame'); ba...
mit
cytopia/devilbox
.devilbox/www/htdocs/vendor/phpmyadmin-5.0.4/libraries/classes/SysInfo.php
1651
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Library for extracting information about system memory and cpu. * Currently supports all Windows and Linux platforms * * This code is based on the OS Classes from the phpsysinfo project * (https://phpsysinfo.github.io/phpsysinfo/) * * @package PhpMyAdmin-sysi...
mit
FilipPaluch/SimpleDataGenerator
Source/SimpleDataGenerator.Core/Mapping/Implementations/PropertyConfiguration.cs
1347
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Ploeh.AutoFixture.Kernel; using SimpleDataGenerator.Core.Customization.Specimens; using SimpleDataGenerator.Core.Mapping.Interfaces; namespace SimpleDataGenerator.Core.Map...
mit
brightmarch/major-api
src/MajorApi/AppBundle/Tests/Controller/WebConnectionStripeControllerTest.php
620
<?php namespace MajorApi\AppBundle\Tests\Controller; use MajorApi\AppBundle\Tests\Controller\WebTestCase; /** * @group FunctionalTests * @group WebTests */ class WebConnectionStripeControllerTest extends WebTestCase { public function testConnectingWithStripeRequiresCodeParameter() { $client = sta...
mit
K-Phoen/Random-Stuff-Generator
app/config/config.php
1341
<?php require_once __DIR__.'/../../vendor/autoload.php'; $app = new Silex\Application(); $app->register(new Silex\Provider\SerializerServiceProvider()); $app->register(new Silex\Provider\TwigServiceProvider(), array( 'twig.path' => __DIR__.'/../views', )); $app->register(new Silex\Provider\ServiceControllerServic...
mit
wix/wix-style-react
packages/wix-style-react/src/AutoCompleteWithLabel/AutoCompleteWithLabel.js
6071
import React from 'react'; import PropTypes from 'prop-types'; import StatusAlertSmall from 'wix-ui-icons-common/StatusAlertSmall'; import Input from '../Input'; import LabelledElement from '../LabelledElement'; import Text from '../Text'; import InputWithOptions from '../InputWithOptions'; import { classes } from '....
mit
miter-framework/miter
src/decorators/orm/associations/belongs-to.decorator.ts
1652
import { StaticModelT, ModelT } from '../../../core/model'; import { ForeignModelSource } from '../../../metadata/orm/associations/association'; import { ModelBelongsToAssociationsSym, BelongsToMetadata, BelongsToMetadataSym } from '../../../metadata/orm/associations/belongs-to'; function isStaticModelT(test: any): te...
mit
tomp2p/TomP2P.NET
TomP2P/TomP2P.Tests/Extensions/InteropRandomTest.cs
1403
using System; using NUnit.Framework; using TomP2P.Extensions; namespace TomP2P.Tests.Extensions { [TestFixture] public class InteropRandomTest { [Test] public void TestSeed() { // create a random seed var r = new Random(); var seed = (ulong)r.Nex...
mit
dorayaki4369/CutImageFromVideo
CutImageFromVideo/Properties/Annotations1.cs
41188
/* MIT License Copyright (c) 2016 JetBrains http://www.jetbrains.com 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...
mit
wknishio/variable-terminal
src/lanterna/com/googlecode/lanterna/TerminalTextUtils.java
23537
/* * This file is part of lanterna (https://github.com/mabe02/lanterna). * * lanterna is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any lat...
mit
anotheri/cleverstack-visualCaptcha-demo
frontend/app/modules/users/module.js
688
define(['angular'], function (ng) { 'use strict'; ng.module('users.providers', []); ng.module('users.controllers', []); ng.module('users.services', []); var module = ng.module('users', [ 'cs_common', 'users.providers', 'users.controllers', 'users.services' ]); module.config([ '$rout...
mit
dolimoni/ensa-Project
application/models/filiere_model.php
1828
<?php if(!defined ('BASEPATH')) exit ('No direct script access allowed'); class Filiere_model extends CI_Model { function __construct() { parent::__construct(); $this->load->database('ensa_project'); $this->load->helper('url'); } public function getListFiliere() { $this->db->select('id,titre,abreviation,...
mit
veeseekay/wifi-streamer-v1
src/main/java/com/guidestone/wifi/streamer/controllers/MediaController.java
2564
package com.guidestone.wifi.streamer.controllers; import com.guidestone.wifi.streamer.entities.MediaEntity; import com.guidestone.wifi.streamer.services.MediaService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot....
mit
Uter1007/socialmscrm
uter.sociallistener.general/Twitter/Models/Mapping/TwitterHashTagMapper.cs
1616
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xrm.Sdk; using Twitterizer.Entities; using LinqToTwitter; namespace uter.sociallistener.general.Twitter.Models.Mapping { public class TwitterHashTagMapper { ...
mit
gustavomrs/app-almoxarifado
app/models/user.rb
272
class User < ActiveRecord::Base # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable validates :login, :password, presence: true validates :login, uniqueness: true end
mit
davidlibrera/scoped_associations
lib/scoped_associations/version.rb
50
module ScopedAssociations VERSION = "0.1.4" end
mit
eeveorg/GMSI
program/ui/ScriptChoosePanel.java
2509
/* * Decompiled with CFR 0_119. */ package program.ui; import java.awt.Component; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.LayoutManager; import java.awt.event.ActionListener; import java.io.File; import javax.swing.JButton; impo...
mit
croxis/Panda-Core-Technology
NotAsOldPlanet/atmo_only.py
3587
from pandac.PandaModules import loadPrcFileData loadPrcFileData('', 'frame-rate-meter-scale 0.035') loadPrcFileData('', 'frame-rate-meter-side-margin 0.1') loadPrcFileData('', 'show-frame-rate-meter 1') loadPrcFileData('', 'window-title ' + "Planet Prototype") loadPrcFileData('', "sync-video 0") loadPrcFileData('', 'ba...
mit
JayTeeGeezy/pyracing
pyracing/test/performances.py
3692
from .common import * class GetPerformancesByHorseTest(EntityTest): @classmethod def setUpClass(cls): cls.meet = pyracing.Meet.get_meets_by_date(historical_date)[0] cls.race = cls.meet.races[0] cls.runner = cls.race.runners[0] cls.performances = pyracing.Performance.get_performances_by_horse(cls.runner.ho...
mit
sehoone/seed
app/bower_components/jquery/src/traversing.js
4322
define( [ "./core", "./traversing/var/dir", "./traversing/var/siblings", "./traversing/var/rneedsContext", "./core/init", "./traversing/findFilter", "./selector" ], function( jQuery, dir, siblings, rneedsContext ) { var rparentsprev = /^(?:parents|prev(?:Until|All))/, // methods guaranteed to prod...
mit
lucianot/dealbook-node-api
routes/index.js
745
/** * Routes */ 'use strict'; var express = require('express'); var router = express.Router(); var auth = require('./auth'); var companies = require('./companies'); // var user = require('./users.js'); /* * Routes that can be accessed by anyone */ router.get('/', function(req, res) { res.send('Hello! Welcom...
mit
beatrizjesus/my-first-blog
pasta/Scripts/django-admin.py
165
#!C:\Users\Beatriz\Desktop\django\pasta\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
mit
isbasex/blog-engine
packages/server/middleware/pre-processing/normalization/index.ts
321
const normalization = (req, res, next) => { const json = res.json res.json = function(...args) { const [obj] = args if (obj && !('success' in obj)) { args[0] = { success: true, ...obj } } res.json = json res.json(...args) } next() } export default [normalization]...
mit
chilimatic/chilimatic-framework
lib/database/sql/mysql/MySQL.php
21245
<?php /** * Mysql database abstraction class * please feel free to add or modify this class as you like * as long you don't spoil the old functionality * * @author j * @version $id$ * */ namespace chilimatic\lib\database\sql\mysql; use chilimatic\lib\database\AbstractDatabase; use chilimatic\lib\config\Confi...
mit
shipd/prow
lib/prow/paths.rb
538
module Prow class Paths < Struct.new(:source_path, :compile_path) def source source_path || `pwd`.chomp end def compile compile_path || source + "/public" end [:templates, :sass, :config].each do |path| define_method(path) { composite_path(source, path) } end def pages...
mit
swiss-php-friends/Neo4jUserBundle
DependencyInjection/Neo4jUserExtension.php
1352
<?php namespace Frne\Bundle\Neo4jUserBundle\DependencyInjection; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\Exception\BadMethodCallException; use Symfony\Component\...
mit
mateusjatenee/cms
public/js/app/admin/page-versions.js
67
devise.define(['jquery', 'pageData'], function ($, pageData) { });
mit
ahmednuaman/generator-radian
app/templates/assets/js/controller/app-controller.js
1487
define([ 'config', 'angular', 'controller/radian-controller', 'partials', 'routes', <% if (includeExample) { %>'controller/header/header-controller', 'controller/footer-controller', 'factory/page-loader-factory', 'factory/page-title-factory' <% } %>], function(cfg, A, RC) { RC('AppController', [ ...
mit
samueljackson92/csa
db/migrate/20130903103221_create_broadcasts.rb
356
class CreateBroadcasts < ActiveRecord::Migration def change create_table :broadcasts do |t| t.text :content, null: :no # Must have some text, empty broadcasts not allowed t.references :user, null: :no, index: true # Must have been initiated by someone t.timestamps # Created at will double up ...
mit
kouuki/CROWDRISEPIDEV
src/PIDEV/CrowdRiseBundle/Entity/Vote.php
618
<?php namespace PIDEV\CrowdRiseBundle\Entity; use DCS\RatingBundle\Entity\Vote as BaseVote; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\ChangeTrackingPolicy("DEFERRED_EXPLICIT") */ class Vote extends BaseVote { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(stra...
mit
sosegon/sunshine
app/src/androidTest/java/com/keemsa/sunshine/data/TestUriMatcher.java
3002
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
mit
Producenta/TelerikAcademy
C# 2/DomashnoMultiDimensionalArrays/05.SortArrayOfStrings/Properties/AssemblyInfo.cs
1418
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("05...
mit
snags88/cafe-latency
db/migrate/20150721002739_create_stores.rb
384
class CreateStores < ActiveRecord::Migration def change create_table :stores do |t| t.string :name t.string :uid t.string :url t.float :rating t.string :address t.string :city t.string :postal_code t.string :neighborhood t.string :state_code t.string :di...
mit
syonfox/PixelPlanetSandbox
haxe/export/linux64/cpp/obj/src/openfl/_legacy/net/SharedObject.cpp
28312
#include <hxcpp.h> #ifndef INCLUDED_Reflect #include <Reflect.h> #endif #ifndef INCLUDED_StringTools #include <StringTools.h> #endif #ifndef INCLUDED_Sys #include <Sys.h> #endif #ifndef INCLUDED_Type #include <Type.h> #endif #ifndef INCLUDED_haxe_Log #include <haxe/Log.h> #endif #ifndef INCLUDED_haxe_Serializer #inclu...
mit
trabus/markdown-it-terminal
tests/test.js
5951
'use strict'; var styles = require('ansi-styles'); var MarkdownIt = require('markdown-it'); var terminal = require('../'); var path = require('path'); var expect = require('chai').expect; /*eslint-env mocha*/ describe('markdown-it-terminal', function () { var md; beforeEach(function () { md =...
mit
alf-tool/alf-sql
lib/alf/predicate/nodes/qualified_identifier.rb
199
module Alf class Predicate module QualifiedIdentifier def to_sql(buffer = "") buffer << qualifier.to_s << Sql::Expr::DOT << name.to_s buffer end end end end
mit
ddieffen/YellowBrickV6Plotter
ZedGraph/LineObj.cs
12970
//============================================================================ //ZedGraph Class Library - A Flexible Line Graph/Bar Graph Library in C# //Copyright © 2006 John Champion // //This library is free software; you can redistribute it and/or //modify it under the terms of the GNU Lesser General Public //Lice...
mit
albertboada/relativechange.js
test/relativechangeSpec.js
5912
describe("relativechange.js lib", function () { var tests_data = [ { ini: 100, fin: 400, chng: 3, pctg: 300, mltplr: 4 }, { ini: 400, fin: 100, chng: -0.75, pctg: -75, mltplr: 0.25 }, { ini: 100, fin: 100, chng: 0, pctg: 0, mltplr: 1 }, { ini: 1, fin: 2, chng: 1, pc...
mit
mjhapp/EWZSearchBundle
Tests/DependencyInjection/SearchExtensionTest.php
817
<?php namespace EWZ\Bundle\SearchBundle\Tests\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag; use EWZ\Bundle\SearchBundle\DependencyInjection\EWZSearchExtension; class SearchExtensionTest extends \PHPUnit_Framework...
mit
KatoTek/Gar
Gar.Business/Properties/AssemblyInfo.cs
294
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("Gar.Business")] [assembly: AssemblyDescription("")] [assembly: Guid("ac77c187-ac2f-4c9a-af93-d9c5c7d42574")] [assembly: AssemblyVersion("1.0.2016.308")] [assembly: AssemblyFileVersion("1.0.2016.308")]
mit
Gunbard/ThreadWatch
theadwatch/src/main/java/honkhonk/threadwatch/retrievers/PostsRetriever.java
7308
package honkhonk.threadwatch.retrievers; import android.content.Context; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.preference.PreferenceManager; import android.util.Log; import com.android.volley.Request; import com.android.volley....
mit
Marcdnd/cryptoescudo
src/qt/locale/bitcoin_hi_IN.ts
106583
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Cryptoescudo</source> <translation>बिटकोइन के संबंध में</translat...
mit
zerkms/symfony
src/Symfony/Component/Validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php
8826
<?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\Tests\Mapping\Factory; use PHPUnit\Framewor...
mit