repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
snukal/All-Telerik-Homeworks
C#OOP/Defining-Classes-Part-1-Constructors-Properties/1. Define class/Calls.cs
445
namespace GSMove { using System; public class Call { private DateTime date; private DateTime time; private string dialedNumber; private int duration; public Call(DateTime date, DateTime time, string dialed, int duration) { this.date = date; ...
mit
scci/security-employee-tracker
resources/views/visit/create.blade.php
486
@extends('layouts.master') @section('title', 'Add A Visit') @section('content') <div class="card"> <div class="card-content"> <div class="card-title">Add a Visit</div> {!! Form::open(array('action' => ['VisitController@store', $user->id], 'method' => 'POST')) !!} ...
mit
nemesis-platform/platform
src/NemesisPlatform/Modules/Game/QAGame/Controller/Admin/RoundController.php
3598
<?php /** * Created by PhpStorm. * User: Pavel Batanov <pavel@batanov.me> * Date: 19.06.2015 * Time: 14:58 */ namespace NemesisPlatform\Modules\Game\QAGame\Controller\Admin; use Doctrine\ORM\EntityManager; use NemesisPlatform\Modules\Game\QAGame\Entity\QARound; use Sensio\Bundle\FrameworkExtraBundle\Configuratio...
mit
dcrystalj/RubiKS
rubiKS/app/database/migrations/2014_03_16_193026_create_credits_table.php
474
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateCreditsTable extends Migration { public function up() { Schema::create('credits', function(Blueprint $table) { $table->increments('id'); $table->string('organization'); $table->string('address'); ...
mit
petehouston/bladie
src/BladieServiceProvider.php
1278
<?php namespace Petehouston\Bladie; use Illuminate\Support\ServiceProvider; class BladieServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { $this->registerBladeExtensions(); } /** * Regi...
mit
McShooterz/OpenSpace4x
Assets/Scripts/Enum/StarType.cs
470
/***************************************************************************************************************************************** Author: Michael Shoots Email: michael.shoots@live.com Project: Open Space 4x License: MIT License Notes: ***************************************************************************...
mit
AshwinKumarVijay/ECS-Development
ECS/Project/Project/Systems/RenderingSystem/RenderingSystem.cpp
19462
#include "RenderingSystem.h" #include "../../ECS/EntityManager/EntityManager.h" #include "../ECS/DispatcherReceiver/EventDispatcher/EventDispatcher.h" #include "../ECS/DispatcherReceiver/EventReceiver/EventReceiver.h" #include "../../ECS/ECSEvent/ECSEvent.h" #include "../Events/ResourceEvent/ResourceEvent.h" #include...
mit
levjj/esverify-web
src/components/user_study.tsx
1614
import * as React from 'react'; import { AppState, Action, UserStudyStep } from '../app'; import UserStudyTutorial1 from './user_study_tutorial_1'; import UserStudyTutorial2 from './user_study_tutorial_2'; import UserStudyTutorial3 from './user_study_tutorial_3'; import UserStudyTutorial4 from './user_study_tutorial_4'...
mit
matsko/angular
packages/platform-server/testing/src/server.ts
1103
/** * @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 {createPlatformFactory, NgModule, PlatformRef, StaticProvider} from '@angular/core'; import {BrowserDynamicTe...
mit
TheIndifferent/jenkins-scm-koji-plugin
fake-koji/src/main/java/org/fakekoji/jobmanager/JenkinsJobUpdater.java
6171
package org.fakekoji.jobmanager; import org.fakekoji.Utils; import org.fakekoji.jobmanager.model.Job; import org.fakekoji.jobmanager.model.JobUpdateResult; import org.fakekoji.jobmanager.model.JobUpdateResults; import org.fakekoji.xmlrpc.server.JavaServerConstants; import java.io.File; import java.io.IOException; imp...
mit
lostinplace/filtered-intervaltree
test/test_interval.py
3792
from intervaltree.interval import * def test_basic(): t = Interval(1, 2) assert t.begin is 1 assert t.end is 2 def test_removal_no_overlap(): interval_one = Interval(10, 15) interval_two = Interval(8, 10) result = interval_one.remove(interval_two) assert result == [interval_one] def te...
mit
nakamura-yuta-i7/ietopia-appli
src/pages/parts/CheckboxesSection.js
1748
import Html from "./Html"; import "./checkboxes_section.scss"; var moji = require('moji'); export default class CheckboxesSection extends Html { constructor(params={}) { super(); var title = params.title || ""; var identifier = params.identifier || ""; this.identifier = identifier; this.apiResult...
mit
mustafasezgin/bubbles
spec/bubbles/pcp/mmv/table_of_contents_spec.rb
174
require 'spec_helper' describe Bubbles::TableOfContents do it "should have a total length of 16 bytes" do Bubbles::TableOfContents.new.num_bytes.should be 16 end end
mit
bartsch-dev/jabref
src/main/java/org/jabref/gui/push/PushToLyx.java
3551
package org.jabref.gui.push; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.List; import javax.swing.Icon; import javax.swing.JLabel; import javax.swing.JPanel; import org.jabref.Globals; import org.jabref.JabRefExecutorService; import org....
mit
jwbay/i18next-json-sync
tests/primary-language-zh/options.ts
135
import { IOptions } from '../../src'; const options: IOptions = { primary: 'zh', createResources: ['pt-BR'] }; export = options;
mit
softsky/site-security-site
app/public/js/main.js
2841
$(document).ready(() => { console.log('ready'); // making all client links opening in a new window $('#clients a').attr('target', '_new'); $("input[name=url]:eq(0)").focus(); // TODO add some initialization stuff here $('img[src*=class]').each((idx, it) => { const clazz = $(it).att...
mit
FMTCco/fmtc-php
src/Feeds/NetworkFeed.php
1644
<?php namespace Fmtc\Feeds; use Illuminate\Database\Capsule\Manager as DB; class NetworkFeed extends Feed { protected $url = 'http://services.fmtc.co/v2/getNetworks'; protected function storeFull($json) { $networks = json_decode($json, true); // grab networks from the database $dbNetworks = collect(DB::tab...
mit
alvarolobato/blueocean-plugin
blueocean-dashboard/src/main/js/credentials/bitbucket/BbCredentialsManager.js
2385
import { action, observable } from 'mobx'; import PromiseDelayUtils from '../../util/PromiseDelayUtils'; import BbCredentialsApi from './BbCredentialsApi'; import BbCredentialState from './BbCredentialsState'; import { LoadError, SaveError } from './BbCredentialsApi'; const MIN_DELAY = 500; const { delayBoth } = Pro...
mit
philiplaureano/Akka.Configuration.Lambdas
Akka.Configuration.LambdaTests/Properties/AssemblyInfo.cs
1436
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("Ak...
mit
CloudI/CloudI
src/api/go/erlang/erlang_test.go
23969
package erlang //-*-Mode:Go;coding:utf-8;tab-width:4;c-basic-offset:4-*- // ex: set ft=go fenc=utf-8 sts=4 ts=4 sw=4 noet nomod: // // MIT License // // Copyright (c) 2017-2019 Michael Truog <mjtruog at protonmail dot com> // Copyright (c) 2009-2013 Dmitry Vasiliev <dima@hlabs.org> // // Permission is hereby granted, ...
mit
Nascom/TeamleaderApiClient
src/Request/Ticket/ListMessagesRequest.php
1552
<?php namespace Nascom\TeamleaderApiClient\Request\Ticket; use Nascom\TeamleaderApiClient\Request\AbstractPostRequest; /** * Class ListMessagesRequest * * @package Nascom\TeamleaderApiClient\Request\Ticket */ class ListMessagesRequest extends AbstractPostRequest { /** * ListMessagesRequest constructor. ...
mit
Azure/azure-sdk-for-go
services/datafactory/mgmt/2018-06-01/datafactory/pipelineruns.go
13593
package datafactory // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regener...
mit
bcoe/routers-news
lib/sources/news/major/latimes.js
922
var jDistiller = require('jdistiller').jDistiller, Source = require('../../../source').Source; exports.source = new Source({ source: "LATimes", description: "The business and culture of our digital lives, from the L.A. Times.", headlineURL: 'http://www.latimes.com/business/technology/', headlineDistiller: ne...
mit
naspinski/utilities
Naspinski.Utilities/StringConversions.cs
6440
using System; using System.Collections.Generic; using System.ComponentModel; using System.Web.Security; using System.Linq; using System.Globalization; using System.Text.RegularExpressions; namespace Naspinski.Utilities { public class Strings { /// <summary> /// Generated a random ...
mit
quiaro/chunches
app/src/routes/index.js
995
import HomePublic from './HomePublic' import HomePrivate from './HomePrivate' import OfferedItems from './OfferedItems' import OwnedItems from './OwnedItems' import MyNetwork from './Network' import LoginCallback from './LoginCallback' import NotFoundPage from './NotFoundPage' const routes = [ { path: '/', n...
mit
pakx/the-mithril-diaries
src/app-structure-as-es6-modules/src/js/actions.js
249
export default createActions var model = undefined function createActions(mdl) { model = mdl return { onIncrease: onIncrease } } function onIncrease() { model.clickCount += 1 model.msg = model.msg.toUpperCase() }
mit
alexander-emelyanov/yii2-articles-module
views/articles/update.php
682
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model AlexanderEmelyanov\yii\modules\articles\models\Article */ $this->title = Yii::t('app', 'Update {modelClass}: ', [ 'modelClass' => 'Article', ]) . ' ' . $model->article_id; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', '...
mit
AnkangLee/newcoder-oj-js_assessment
09 数组合并/app.js
59
function concat(arr1, arr2) { return arr1.concat(arr2); }
mit
jdwil/xsd-tool
src/Output/Php/Traits/AnnotatedObjectTrait.php
441
<?php declare(strict_types=1); namespace JDWil\Xsd\Output\Php\Traits; trait AnnotatedObjectTrait { /** * @var string */ private $annotation; /** * @return string */ public function getAnnotation() { return $this->annotation; } /** * @param string $annotat...
mit
yousefmansour/Symfony-Practice-Project
app/cache/dev/twig/bc/bc1f6fa65f0b79d51f14745693073fc2e141e8b160f0472138d51eaaeb701309.php
12055
<?php /* @WebProfiler/Router/panel.html.twig */ class __TwigTemplate_5e1572ea257fd168027c5526c810c7536f87f9db78ccd64a102fcfb436c63380 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
mit
simondean/camel-mingle-spike
camel-mingle/src/main/java/org/simondean/camel/mingle/component/MingleConsumer.java
1581
package org.simondean.camel.mingle.component; import org.apache.camel.Processor; import org.apache.camel.impl.DefaultConsumer; import java.io.IOException; import java.util.concurrent.ScheduledExecutorService; public class MingleConsumer extends DefaultConsumer { private final MingleEndpoint endpoint; private boo...
mit
CrOrc/Cr.ArgParse
src/Cr.ArgParse.Tests/TestCases/TestTypeUserDefined.cs
1543
using System; namespace Cr.ArgParse.Tests.TestCases { public class TestTypeUserDefined : ParserTestCase { public class MyType : IEquatable<MyType> { public override int GetHashCode() { return (Value != null ? Value.GetHashCode() : 0); ...
mit
micheljung/downlords-faf-client
src/test/java/com/faforever/client/game/CustomGamesControllerTest.java
5450
package com.faforever.client.game; import com.faforever.client.i18n.I18n; import com.faforever.client.preferences.Preferences; import com.faforever.client.preferences.PreferencesService; import com.faforever.client.test.AbstractPlainJavaFxTest; import com.faforever.client.theme.UiService; import com.faforever.client.v...
mit
Vertexwahn/appleseed
src/appleseed.python/bindframe.cpp
3503
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2012-2013 Esteban Tovagliari, Jupiter Jazz Limited // Copyright (c) 2014-2015 Esteban Tovagliari, The appleseedhq Organizati...
mit
Gustavo/reconsnet
app/helpers/versions_helper.rb
1968
module VersionsHelper def self.event_name_i18n(name) case name when 'update' then return 'editou' when 'create' then return 'adicionou' when 'destroy' then return 'excluiu' end end def self.changeset(version, resource) # Esta listagem inclui os ignored para todos os objetos que es...
mit
UUDigitalHumanitieslab/persistent-forking
templates/public_fork_box.php
2630
<?php /** * Render the inset with fork button and parent link for the * public view of a post. * * Required parameters: * $post_id the ID of the post for which the inset will be * rendered * $image_url the URL of the fork icon image file */ $fork_url = add_query_arg( array( 'action' => 'persistent_fork', ...
mit
SSStormy/Stormbot
Bot.Core/Modules/Twitch/BttvEmoteSource.cs
1358
using System; using System.IO; using System.Net.Http; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using Stormbot.Bot.Core.Services; using StrmyCore; namespace Stormbot.Bot.Core.Modules.Twitch { internal sealed class BttvEmoteSource : CentralziedEmoteSource { protected override string Dat...
mit
ktmud/david
david/static/js/lib/bootstrap.js
138
//@nowrap //@import ../../bower_components/hammerjs/dist/jquery.hammer.js //@import ../../bower_components/bootstrap/dist/js/bootstrap.js
mit
cuckata23/wurfl-data
data/nokia_n86_ver1_sub20067.php
152
<?php return array ( 'id' => 'nokia_n86_ver1_sub20067', 'fallback' => 'nokia_n86_ver1', 'capabilities' => array ( 'aac' => 'true', ), );
mit
Norbyte/enigma
test/enigma/transaction-assign.php
406
<?php // Tests that a connection with an open transaction won't get assigned // to other handles on the same pool $poolOptions = ['persistent' => true, 'pool_size' => 2]; include 'connect.inc'; query('begin'); $pid1 = get_pg_pid($pool); $pool2 = Enigma\create_pool($connectionOptions, $poolOptions); for ($i = 0; $i ...
mit
tdgs/image_editor
spec/image_editor/vertical_draw_command_spec.rb
339
require 'spec_helper' describe ImageEditor::VerticalDrawCommand do let(:image) {ImageEditor::Image.new(2,3)} before do ImageEditor.image = image end it "draws horizontaly" do image.should_receive(:draw_vertical).with(1, 2, 3, "A") ImageEditor::VerticalDrawCommand.run(x: "1", y1: "2", y2: "3", col...
mit
tupamba/kardex
node_modules/firebase/storage/implementation/array.js
1476
/*! @license Firebase v4.5.0 Build: rev-f49c8b5 Terms: https://firebase.google.com/terms/ */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.contains = contains; exports.clone = clone; exports.remove = remove; /** * Copyright 2017 Google Inc. * * Licensed under the Apache Lic...
mit
PareshNavalakha/ObjectDiffUtil
src/main/java/com/paresh/diff/calculators/ObjectDiffCalculator.java
1480
package com.paresh.diff.calculators; import com.paresh.diff.dto.Diff; import java.util.Collection; import java.util.concurrent.ConcurrentLinkedQueue; public class ObjectDiffCalculator extends DiffCalculator { @Override public Collection<Diff> apply(Object before, Object after, String description) { ...
mit
progitlabs/Ripple
public/js/beta-ripple.js
12168
document.onreadystatechange = function () { if (document.readyState == 'loaded' || document.readyState == 'complete') { setTimeout(function () { $('.ripple-loader').fadeOut(1000).remove(); }, 500); } }; $(document).ready(function () { "use strict"; //setInterval(function ()...
mit
EricCharnesky/CIS2353-Fall2017
HoldemYall/src/holdemyall/HoldemYall.java
5031
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package holdemyall; import java.util.ArrayList; import stacks.LinkedStack; import java.util.Random; /** * * @author etcharn1 */ pu...
mit
ThiagoNP/jaimito
lib/generators/jaimito/templates/mailer_seed.rb
671
ActiveRecord::Base.transaction do MailTemplate.create!( subject: 'Welcome [[User - Name]]!', body: %Q( <b>Welcome [[User - Name]]</b> to our platform! <br> <a href='example'>Click here</a> if you don't wish to receive emails. ), mailer_name: 'sample_mailer', method_name: 'welcome...
mit
ageweke/parcels
lib/parcels/fortitude/widget_engine.rb
668
require 'tilt' module Parcels module Fortitude class WidgetEngine < Tilt::Template self.default_mime_type = 'text/css' def self.engine_initialized? true end def initialize_engine require_template_library 'fortitude' end def prepare end def evalu...
mit
mglezh/visual-studio-2012
WebAppOperaciones/WebAppOperaciones/Contact.aspx.cs
308
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebAppOperaciones { public partial class Contact : Page { protected void Page_Load(object sender, EventArgs e) { } } }
mit
jbt00000/RevolutionaryStuff
src/RevolutionaryStuff.Core/RandomHelpers.cs
474
namespace RevolutionaryStuff.Core; public static class RandomHelpers { public static string NextString(this Random r, int characterCount, string characterSet) { var s = ""; for (int z = 0; z < characterCount; ++z) { var i = r.Next(characterSet.Length); var ch = ...
mit
exercism/x-api
test/v1_helper.rb
212
require_relative 'test_helper' require 'rack/test' require 'approvals' require 'yaml' require 'xapi' require_relative '../api/v1' Approvals.configure do |c| c.approvals_path = './test/fixtures/approvals/' end
mit
jonathan-beard/Raft
ASTNodes/LOROp.cpp
300
/** * LOROp.cpp - * @author: Jonathan Beard * @version: Tue Feb 11 12:51:41 2014 */ #include "LOROp.hpp" using namespace Node; LOROp::LOROp() : CondOp( "LOROp" ) { class_tree.addRelation( typeid( Node::CondOp ).hash_code(), typeid( Node::LOROp ).hash_code() ); }
mit
erikzhouxin/CSharpSolution
EZWebTemplate/Areas/Help/Models/EnumValueDescription.cs
241
namespace EZOper.TechTester.EZWebTemplate.Areas.Help { public class EnumValueDescription { public string Documentation { get; set; } public string Name { get; set; } public string Value { get; set; } } }
mit
daryl314/markdown-browser
pycmark/taggedtext/TaggedCmarkDocument.py
5901
from . import TaggedTextDocument as TTD class TaggedTextDocument(TTD.TaggedTextDocument): """ Class representing a document as a list of TaggedTextBlocks """ @classmethod def fromAST(cls, ast, width=80, **kwargs): """Parse an AST representation of a markdown document into a TaggedTextDocu...
mit
Paybook/sync-java
src/main/java/com/paybook/sync/User.java
5848
package com.paybook.sync; import java.io.IOException; import java.util.HashMap; import java.util.List; import org.apache.commons.lang3.StringUtils; import org.json.JSONObject; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.data...
mit
sqlectron/sqlectron-core
src/utils.js
2200
import fs from 'fs'; import { homedir } from 'os'; import path from 'path'; import mkdirp from 'mkdirp'; import envPaths from 'env-paths'; import { readFile, resolveHomePathToAbsolute } from 'sqlectron-db-core/utils'; export { createCancelablePromise, getPort, readFile, resolveHomePathToAbsolute, versionCom...
mit
summera/retscli
test/display_adapter_test.rb
12161
require 'test_helper' describe Retscli::DisplayAdapter do let(:dummy_client) do Class.new do def login; end def logout; end def find(quantity, params={}) if params[:count] == 2 2 elsif params[:query] == '(ListingID=0+)' [{ 'heading1' => 'value1'...
mit
ygorkrs/SYSGYM
SYSGYM/Classes/Classe_Aluno.cs
935
using System.Windows.Forms; public class Classe_Aluno : Classe_Pessoa { private bool ativo; public bool Ativo { get { return ativo; } set { ativo = Ativo; } } private long matricula; public long Matricula { get { return matricula; } set { matricu...
mit
bittisiirto/viitenumero
lib/viitenumero/viite.rb
742
require 'active_model' module Viitenumero class Viite include ActiveModel::Validations attr_reader :number def initialize(s) if FIViite.valid?(s) @number = FIViite.new(s) elsif RFViite.valid?(s) @number = RFViite.new(s) else @number = FIViite.new(s) end ...
mit
Adar/dacato
src/main/java/co/ecso/dacato/config/ApplicationConfig.java
1370
package co.ecso.dacato.config; import co.ecso.dacato.connection.ConnectionPool; import java.sql.Connection; import java.util.concurrent.ExecutorService; /** * ApplicationConfig. * * @author Christian Scharmach (cs@e-cs.co) * @since 25.08.16 */ public interface ApplicationConfig { /** * Database Pool n...
mit
giggals/Software-University
Exercises-Defining Classes/10 CarSalesman/Program.cs
4644
using System; using System.Linq; class Program { static void Main() { char[,] matrix = new char[8, 8]; ReadMatrix(matrix); while (true) { string input = Console.ReadLine(); if (input == "END") { break; } ...
mit
LampardNguyen/fibonacci
service-worker.js
4287
// tick this to make the cache invalidate and update /*const CACHE_VERSION = 1; const CURRENT_CACHES = { 'read-through': 'read-through-cache-v' + CACHE_VERSION }; self.addEventListener('activate', (event) => { // Delete all caches that aren't named in CURRENT_CACHES. // While there is only one cache in thi...
mit
haggi/OpenMaya
src/mayaToThea/src/Thea/TheaWorld.cpp
886
#include "world.h" #include "utilities/logging.h" #include "../mtth_common/mtth_swatchRenderer.h" #include "mayaSceneFactory.h" namespace MayaTo{ void MayaToWorld::cleanUp() { mtth_SwatchRendererInterface::cleanUpStaticData(); } void MayaToWorld::initialize() { mtth_SwatchRendererInterface::initializeStatic...
mit
filepress/proofOfConcept
generate.js
5950
/* Generate static HTML pages from markdwon. */ /** * @typedef {Object} mdInfos * */ const start = Date.now() process.on('exit', logTime) const path = require('path') const fs = require('fs') const Stream = require('stream') const _ = require('highland') const YAML = require('yamljs') const hljs = require(...
mit
teco-kit/ARDevKitPlayer_Android
app/src/main/java/teco/ardevkit/andardevkitplayer/PausableARELActivity.java
22289
package teco.ardevkit.andardevkitplayer; import android.annotation.SuppressLint; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; import android.media.MediaScan...
mit
aiming/Vagrant-template
Sandbox-fluent-plugin-secure-forward/site-cookbooks/create-user/recipes/default.rb
179
# # Cookbook Name:: create-user # Recipe:: default # # Copyright 2013, YOUR_COMPANY_NAME # # MIT License. # user 'fluentd' do supports manage_home: true action :create end
mit
xrcat/x-guice
guice-mbean/src/test/java/com/maxifier/guice/mbean/Sandbox.java
1238
package com.maxifier.guice.mbean; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.matcher.Matchers; import net.sf.cglib.proxy.Enhancer; import net.sf.cglib.proxy.NoOp; import org.aopalliance.intercept.MethodInterceptor; import org.aop...
mit
PanosGr94/DSA-proyecto-REST
service/src/main/java/edu/upc/eetac/dsa/beeter/cors/CORSResponseFilter.java
1225
package edu.upc.eetac.dsa.beeter.cors; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerRequestFilter; import javax.ws.rs.container.ContainerResponseContext; import java.io.IOException; /** * Created by Panos on 18-Mar-16. */ public class CORSResponseFilter implements Cont...
mit
meatballhat/proximity
cmd/proximity-web/main.go
389
package main import ( "fmt" "os" "github.com/meatballhat/proximity/web" ) const ( usage = "Usage: proximity-web <addr>\n" ) func main() { addr := ":" + os.Getenv("PORT") if addr == ":" { if len(os.Args) < 2 { fmt.Fprintf(os.Stderr, usage) return } addr = ":" + os.Args[1] } server := web.NewSer...
mit
bironran/spring_issues_proxy_factory
src/main/java/com/rb/springissues/sample/Bean2.java
303
package com.rb.springissues.sample; import javax.inject.Inject; import javax.inject.Named; import javax.inject.Provider; import com.rb.springissues.LoggerBase; public class Bean2 extends LoggerBase { @Inject Provider<DummyBeanA> provider; @Inject @Named("bean1") Bean1 bean1; }
mit
jesseflorig/www.mtgdb.info
src/www.mtgdb.info/www.mtgdb.info/Content/javascript/mtgdb.info.js
4226
function updateTotal(n) { var amount = parseInt($('#total').text()); amount = amount + n; $('#total').text(amount); }; function updateUnique(n) { var amount = parseInt($('#unique').text()); amount = amount + n; $('#unique').text(amount); }; function updateSetCount(set, n) { var amount = pa...
mit
jrbeaumont/workcraft
CpogPlugin/src/org/workcraft/plugins/cpog/commands/GraphToCpogConversionCommand.java
1220
package org.workcraft.plugins.cpog.commands; import org.workcraft.commands.AbstractConversionCommand; import org.workcraft.plugins.cpog.Cpog; import org.workcraft.plugins.cpog.CpogDescriptor; import org.workcraft.plugins.cpog.VisualCpog; import org.workcraft.plugins.cpog.converters.GraphToCpogConverter; import org.wor...
mit
DimensionDataResearch/daas-demo
src/DaaSDemo.UI/webpack.config.js
1773
const path = require('path'); const webpack = require('webpack'); const { AureliaPlugin } = require('aurelia-webpack-plugin'); const bundleOutputDir = './wwwroot/dist'; module.exports = (env) => { const isDevBuild = !(env && env.prod); return [{ stats: { modules: false }, entry: { 'app': 'aurel...
mit
kuldipem/fabric.js
test/unit/polyline.js
5581
(function() { function getPoints() { return [ {x: 10, y: 12}, {x: 20, y: 22} ]; } var REFERENCE_OBJECT = { 'type': 'polyline', 'originX': 'left', 'originY': 'top', 'left': 10, 'top': ...
mit
muratg/fsdemo
CSharpProject/Properties/AssemblyInfo.cs
1428
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: AssemblyTi...
mit
brianb12321/RemotePlus
src/RemotePlusClientCmd/Requests/ConsoleReadLineRequest.cs
1147
using RemotePlusLibrary.Core; using RemotePlusLibrary.RequestSystem; using RemotePlusLibrary.RequestSystem.DefaultRequestBuilders; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RemotePlusClientCmd.Requests { public class ConsoleReadLi...
mit
ISO-tech/sw-d8
web/2006-2/600/600_04_ViewsInBrief.php
8777
<html> <head> <title> Views in brief </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include "../../legacy-includes/Script.htmlf" ?> </head> <body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0"> <table width="744" cells...
mit
RobertDober/lab42_streams
spec/support/expect_subject.rb
150
module ExpectSubject def expect_subject; expect subject end end # module ExpectSubject RSpec.configure do | conf | conf.include ExpectSubject end
mit
zachdj/ultimate-tic-tac-toe
models/game/Board.py
6215
import numpy class Board(object): """ Abstract base class for board objects. Implements some methods that are common to both microboards and macroboards. """ """ constants for UTTT boards. These are defined such that the sum of three cells is 3 iff X holds all three cells and the sum is 6 iff O h...
mit
meltingmedia/MODX-Shell
src/Configuration/Base.php
922
<?php namespace MODX\Shell\Configuration; /** * A base configuration class to extend */ abstract class Base implements ConfigurationInterface { protected $items = array(); public function get($key, $default = null) { if (isset($this->items[$key])) { return $this->items[$key]; ...
mit
bdamage/tshirtStore
index.php
17037
<!DOCTYPE html> <html> <head> <title>Your T-shirt store</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <link href="css/bootstrap.css" rel="stylesheet" media="screen"> <link href="css/bootstrap-responsive.css" rel="stylesheet"> <link rel="stylesheet"...
mit
mlechler/Bewerbungscoaching
resources/views/backend/layoutpurchases/detail.blade.php
1103
@extends('layouts.backend') @section('title', 'Details of VALUE') @section('content') <table class="table table-hover"> <tbody> <tr> <td> <h4>Member</h4> </td> <td> <h4>{{ $layoutpurchase->member->getName() }}</h4> </t...
mit
abiosoft/caddy-git
github_hook.go
3696
package git import ( "crypto/hmac" "crypto/sha1" "encoding/hex" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "strings" ) // GithubHook is webhook for Github.com. type GithubHook struct{} type ghRelease struct { Action string `json:"action"` Release struct { TagName string `json:"tag_name"...
mit
cairn-software/jornet
src/server/server.js
544
import express from 'express'; import path from 'path'; import setupMiddleware from './middleware'; import logger from './logger'; const app = express(); setupMiddleware(app, { outputPath: path.resolve(__dirname, '../../dist'), publicPath: '/', }); const PORT = process.env.PORT || 7347; const HOST = process.env.H...
mit
Eleonore9/Elle-est-au-nord
elleestaunord/site.py
764
#!/env/bin/python import os, sys from flask import Flask, render_template, url_for port = int(os.environ.get('PORT', 33507)) #heroku config:add PORT=33507 app = Flask(__name__) app.config.update( DEBUG = False, ) # Simple site: just 3 routes for the Hone page and 2 pages @app.route("/", methods=["GET"]) def index(...
mit
xcjs/fetlife-oss
app/src/main/java/net/goldenspiral/fetlifeoss/cookie/SerializableHttpCookie.java
6452
package net.goldenspiral.fetlifeoss.cookie; /* * Copyright (c) 2011 James Smith <james@loopj.com> * Copyright (c) 2015 Fran Montiel * * 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 * ...
mit
gorelikov/testcontainers-java
core/src/main/java/org/testcontainers/images/builder/ImageFromDockerfile.java
5941
package org.testcontainers.images.builder; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.api.command.BuildImageCmd; import com.github.dockerjava.api.exception.DockerClientException; import com.github.dockerjava.api.model.BuildResponseItem; import com.github.dockerjava.core.command.BuildIm...
mit
handcraftsman/QIFGet
src/QIFGet/MvbaCore/CodeQuery/MemberInfoExtensions.cs
935
// * ************************************************************************** // * Copyright (c) McCreary, Veselka, Bragg & Allen, P.C. // * This source code is subject to terms and conditions of the MIT License. // * A copy of the license can be found in the License.txt file // * at the root of this distributio...
mit
HlebForms/SchoolSystemProject
SchoolSystem/SchoolSystem.Data/Contracts/IUnitOfWork.cs
142
using System; namespace SchoolSystem.Data.Contracts { public interface IUnitOfWork : IDisposable { bool Commit(); } }
mit
juanleal/perfilResolve
app/Http/Controllers/EventosController.php
3491
<?php namespace Camp\Http\Controllers; use Illuminate\Contracts\Routing\ResponseFactory; use Illuminate\Http\Request; use Illuminate\Http\Response; use Camp\Http\Requests; use Camp\Eventos; use Tymon\JWTAuth\JWTAuth; use Camp\Http\Controllers\Crypt; use Hash; class EventosController extends Controller { private...
mit
fmdjs/fmd.js
test/specs/remote/f2.js
88
define( 'specs/remote/f2', ['specs/remote/f21'], function( F21 ){ return F21+'f2'; } );
mit
ISKU/Algorithm
BOJ/7569/Main.java
2168
/* * Author: Minho Kim (ISKU) * Date: January 22, 2018 * E-mail: minho1a@hanmail.net * * https://github.com/ISKU/Algorithm * https://www.acmicpc.net/problem/7569 */ import java.util.*; public class Main { public static void main(String... args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); ...
mit
camsys/transam_core
app/jobs/asset_schedule_disposition_update_job.rb
700
# -------------------------------- # # DEPRECATED see TTPLAT-1832 or https://wiki.camsys.com/pages/viewpage.action?pageId=51183790 # -------------------------------- #------------------------------------------------------------------------------ # # AssetScheduleDispositionUpdateJob # # Updates an assets scheduled dis...
mit
misshie/bioruby-ucsc-api
lib/bio-ucsc/mm9/chainrn4.rb
3076
# Copyright:: # Copyright (C) 2011 MISHIMA, Hiroyuki <missy at be.to / hmishima at nagasaki-u.ac.jp> # License:: The Ruby licence (Ryby's / GPLv2 dual) # # In the hg18 database, this table is actually separated # into "chr1_*", "chr2_*", etc. This class dynamically # define *::Chr1_*, *::Chr2_*, etc. The # Rmsk.f...
mit
koobonil/Boss2D
Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/rtp_rtcp/source/rtcp_packet/bye.cc
4803
/* * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
mit
goldenratio/youtube-to-XBMC
src/js/background_scripts/sites/default.js
1896
;(function(player) { class DefaultSite extends AbstractSite { constructor(player) { super(player); console.log("DefaultSite"); let customExtensions = [ "/videoplayback?" ]; let videoExtensions = [ "mp4...
mit
ruslana-net/ai-gallery
src/Ai/GalleryBundle/Resources/assets/components/fineuploader-dist/dist/azure.fine-uploader.js
411723
/*! * Fine Uploader * * Copyright 2015, Widen Enterprises, Inc. info@fineuploader.com * * Version: 5.1.3 * * Homepage: http://fineuploader.com * * Repository: git://github.com/Widen/fine-uploader.git * * Licensed only under the Widen Commercial License (http://fineuploader.com/licensing). */ /*globals window, naviga...
mit
MiniverCheevy/voodoo
Voodoo.Patterns/ModelHelper.cs
2687
using System; using System.Linq; using System.Text; using Voodoo.Logging; namespace Voodoo { public static class ModelHelper { public static string ExtractUserNameFromDomainNameOrEmailAddress(string name) { if (string.IsNullOrWhiteSpace(name)) return string.Empty; ...
mit
idle-code/ContextControl
tests/Expression.cpp
2177
#include "Expression.hpp" #include "gtest/gtest.h" using namespace ContextControl; class ExpressionTest : public ::testing::Test { protected: TreeNode root_node; virtual void SetUp(void) { ASSERT_EQ(0, root_node.Size()); root_node.Create(NodeKind::Integer, "int_node"); root_node["int_node"].SetVa...
mit
rednaxelafx/jvm.go
jvmgo/jvm/rtda/class/descriptor_parser.go
2611
package class import ( "strings" ) type MemberDescriptorParser struct { descriptor string offset int md *MethodDescriptor } func (self *MemberDescriptorParser) parse() *MethodDescriptor { self.md = &MethodDescriptor{} self.md.d = self.descriptor self.startParams() self.parseParamTypes() self.end...
mit
ngocson8b/6jar
fuel/app/config/config.php
8654
<?php /** * Part of the Fuel framework. * * @package Fuel * @version 1.8 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2016 Fuel Development Team * @link http://fuelphp.com */ return array( /** * base_url - The base URL of the application. * MUST contain ...
mit