repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
rcapel/FRED-API-Toolkit | Version 2.0/FREDApi/FREDApi/Core/Requests/Request.cs | 5358 | using FRED.Api.Core.Arguments;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Net;
using System.Threading.Tasks;
using System.Xml;
namespace FRED.Api.Core.Requests
{
/// <summary>
/// Provides behavior for communicating with FRED service endpoints.
/// </summary>
public class Request : IReques... | mit |
ajlopez/AjRools | Src/AjRools.Expert/AjRools.Expert.Tests/Rules/RuleTests.cs | 1697 | using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AjRools.Expert.Rules;
using AjRools.Expert.Facts;
namespace AjRools.Expert.Tests.Rules
{
[TestClass]
public class RuleTests
{
[TestMethod]
... | mit |
668Jerry/Official-Tutorial-My-First-App | app/src/main/java/me/leisureapp/omyfirstapp/DisplayMessageActivity.java | 1631 | package me.leisureapp.omyfirstapp;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.... | mit |
dotnetsoutheast/dotnetsoutheast-website | _site/webpack.config.js | 2862 | const env = process.env.NODE_ENV;
const webpack = require('webpack');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const SvgSpritePlugin = require('webpack-svg-sprite-plugin');
const { path, resolve } = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const WebpackCritical = requ... | mit |
sonitgregorio/nbc | application/config/routes.php | 5857 | <?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... | mit |
ycabon/presentations | 2018-user-conference/arcgis-js-api-road-ahead/demos/gamepad/api-snapshot/esri/layers/support/StreamPurger.js | 5895 | // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define("../../core/declare ../../core/promiseUtils ../../core/Accessor ../../core/Promise dojo/_base/lang dojo/Deferred".split(" "),function(l,m,n,p,q,k){return l([... | mit |
daisybill/daisybill_api | spec/daisybill_api/models/referring_provider_spec.rb | 734 | require "spec_helper"
describe DaisybillApi::Models::ReferringProvider do
it_behaves_like DaisybillApi::Ext::Attributes, :id, :first_name, :last_name, :middle_initial, :suffix,
:npi, :state_license_number, :active, :billing_provider_id, :created_at, :updated_at
it_behaves_like DaisybillApi::Ext::Attributes::Se... | mit |
Taig/lokal | modules/tests/jvm/src/test/scala/net/slozzer/babel/HoconLoaderTest.scala | 201 | package net.slozzer.babel
import _root_.cats.effect.{IO, Resource}
final class HoconLoaderTest extends LoaderTest {
override val loader: Resource[IO, Loader[IO]] = Resource.pure(HoconLoader[IO])
}
| mit |
EddieVanHalen98/vision | vision-main/src/com/evh98/vision/ui/Window.java | 1533 | package com.evh98.vision.ui;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
import com... | mit |
ChrisRowtcliff/JudoPayDotNet4 | JudoPayDotNetDotNet/Logging/DotNetLoggerFactory.cs | 583 | using System;
using log4net;
using ILog = JudoPayDotNet.Logging.ILog;
namespace JudoPayDotNetDotNet.Logging
{
/// <summary>
/// Creates a log4net instance wrapper in the judopay sdk ILog logger interface.
/// </summary>
public static class DotNetLoggerFactory
{
/// <summary>
/// Create an instance of I... | mit |
aleksandra992/TelerikAcademy | CSharp Part 1/Intro-Programming-Homework/AgeAfter10Years/Properties/AssemblyInfo.cs | 1406 | 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("Ag... | mit |
AlexandreOuellet/halite-bot | nn/CattleV2.py | 7971 | import os
import sys
class RedirectStdStreams(object):
def __init__(self, stdout=None, stderr=None):
self._stdout = stdout or sys.stdout
self._stderr = stderr or sys.stderr
def __enter__(self):
self.old_stdout, self.old_stderr = sys.stdout, sys.stderr
self.old_stdout.flush(); ... | mit |
RizwanMehmood/platters | application/views/CaptainFood/includes/footer-menu.php | 379 | <div class="footer padd" style="background-color:#000;">
<div class="container">
<div class="footer-copyright">
<p style="float:left;font-family: 'Droid Serif', serif;">© Copyright 2016 CAPTAINfood
<a href="#">Facebook</a> <a href="#">Linkedin</a> <a href="#">Supp... | mit |
WiiPlayer2/MessageNetwork | MessageNetwork/Messages/NodeLeftMessage.cs | 439 | using System;
namespace MessageNetwork.Messages
{
[Serializable]
internal class NodeLeftMessage : SystemMessage
{
public override SystemMessageType Type
{
get
{
return SystemMessageType.NodeLeft;
}
protected set
{... | mit |
magenta-aps/OpenDESK-UI | app/tests/e2e/documents/searchDocumentPage.po.js | 1180 | var globalHeaderMenu = require('../common/globalHeader.po.js');
var constants = require('../common/constants');
var date = new Date();
var searchedDocument = constants.file_1.name;
var breadcrumb = "";
var SearchDocumentPage = function () {
var public = {};
public.getBreadcrumb = function() {
//last elem... | mit |
sejen/abssh | web/static/js/ckeditor/lang/tt.js | 28800 | /*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['tt'] = {
"editor": "Форматлаулы текст өлкәсе",
"editorPanel": "Rich Text Editor panel",
"common": {
"editorHelp": "Ярдәм өчен ALT 0 басыгы... | mit |
ustream/daemon | src/Ustream/Daemon/PreconfiguredTaskDelegator.php | 2208 | <?php
/**
* @author pepov <pepov@ustream.tv>
*/
/**
* Ustream_Daemon_PreconfiguredTaskDelegator
*/
class Ustream_Daemon_PreconfiguredTaskDelegator extends Ustream_Daemon_Daemon implements Ustream_Daemon_Starter
{
/**
* @var Ustream_Daemon_Task
*/
private $task;
/**
* @var string
*/
private $id;
/**
... | mit |
mrtrizer/babel | packages/babylon/src/parser/statement.js | 30315 | import { types as tt } from "../tokenizer/types";
import Parser from "./index";
import { lineBreak } from "../util/whitespace";
const pp = Parser.prototype;
// ### Statement parsing
// Parse a program. Initializes the parser, reads any number of
// statements, and wraps them in a Program node. Optionally takes a
//... | mit |
serg-kovalev/open_flash_chart | lib/open_flash_chart.rb | 2006 | module OpenFlashChart
end
begin
require 'rails'
rescue LoadError
#do nothing
end
$stderr.puts <<-EOC if !defined?(Rails)
warning: no framework detected.
Your Gemfile might not be configured properly.
---- e.g. ----
Rails:
gem 'open_flash_chart'
EOC
require 'open_flash_chart/base'
require 'open_flash_chart/bar_... | mit |
luoshao23/ML_algorithm | Naive_Bayes/docclass.py | 6690 | import re
import math
from pysqlite2 import dbapi2 as sql
def sampletrain(cl):
cl.train('Nobody owns the water.', 'good')
cl.train('the quick rabbit jumps fences', 'good')
cl.train('buy pharmaceuticals now', 'bad')
cl.train('make quick money at the online casino', 'bad')
cl.train('the quick brown ... | mit |
sphereio/commercetools-php-symfony | src/CtpBundle/Tests/TestKernel.php | 2749 | <?php
namespace Commercetools\Symfony\CtpBundle\Tests;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Http... | mit |
phpDocumentor/phpDocumentor2 | src/phpDocumentor/Descriptor/TraitDescriptor.php | 5475 | <?php
declare(strict_types=1);
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @link https://phpdoc.org
*/
namespace phpDocumentor\Descriptor;
use InvalidArgumentException;
use phpDocu... | mit |
argob/cofra | src/Framework/GeneralBundle/Form/DireccionIndustrialType.php | 934 | <?php
namespace Framework\GeneralBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Framework\GeneralBundle\Form\Type\ComboPartidoType;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class DireccionIndustrialType extends AbstractType {
public function ... | mit |
sdl/Testy | src/test/unit/java/com/sdl/selenium/extjs3/form/RadioGroupTest.java | 1213 | package com.sdl.selenium.extjs3.form;
import com.sdl.selenium.extjs3.ExtJsComponent;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
public class RadioGroupTest {
public sta... | mit |
czim/laravel-cms-models | src/ModelInformation/Data/ModelMetaData.php | 3224 | <?php
namespace Czim\CmsModels\ModelInformation\Data;
use Czim\CmsModels\Contracts\ModelInformation\Data\ModelMetaDataInterface;
/**
* Class ModelMetaData
*
* Meta-information about a model in the context of the CMS.
*
* @property string $controller
* @property string $default_controller_method
* @pr... | mit |
frederickfg/APP3 | FeuilleAST.java | 462 | package APP3;
/** @author Ahmed Khoumsi */
/**
* Classe representant une feuille d'AST
*/
public class FeuilleAST extends ElemAST
{
// Attribut(s)
/**
* Constructeur pour l'initialisation d'attribut(s)
*/
public FeuilleAST()
{ // avec arguments
//
}
/**
* Evaluation de feuille d'AST
*/
public in... | mit |
RossCasey/SecureDrop | src/server/Persistence/Connectors/Sqlite.js | 1068 | const sqlite = require('sqlite');
function getDropApi(sqlite) {
return {
create(id, cipherText) {
return sqlite.run('INSERT INTO drops(id, cipherText) VALUES(:id, :cipherText)', {':id':id, ':cipherText':cipherText});
},
get(id) {
return sqlite.get('SELECT * FROM drops WHERE claimed = 0 AND c... | mit |
famoser/OfflineMedia | Famoser.OfflineMedia.View/ViewModels/BaseViewModelLocator.cs | 3606 | /*
In App.xaml:
<Application.Resources>
<vm:ViewModelLocator xmlns:vm="clr-namespace:OfflineMediaV3"
x:Key="Locator" />
</Application.Resources>
In the View:
DataContext="{Binding Source={StaticResource Locator}, Path=ViewModelName}"
You can also use Blend to do all this... | mit |
bstauff/orleans | test/TesterAzureUtils/Streaming/AQStreamFilteringTests.cs | 2997 | using System;
using System.Threading.Tasks;
using Orleans.Providers.Streams.AzureQueue;
using Orleans.Runtime.Configuration;
using Orleans.TestingHost;
using Tester.StreamingTests;
using TestExtensions;
using UnitTests.StreamingTests;
using Xunit;
namespace Tester.AzureUtils.Streaming
{
[TestCategory("Streaming"),... | mit |
gesh123/MyLibrary | src/client/app/poker/connection/protocol/core/serializers/PokerCommandSerializer.ts | 3938 | import {IPokerCommandSerializer} from "./IPokerCommandSerializer";
import {IPokerCommand} from "../commands/IPokerCommand";
import {ICommandSerializersMap} from "../maps/ICommandSerializersMap";
import {ICommandsMap} from "../maps/ICommandMap";
import {PokerCommandHeader} from "../data/PokerCommandHeader";
import {Poke... | mit |
tsnorri/gonia | project/src/test/java/fi/iki/tsnorri/gonia/logic/HexPointTest.java | 7776 | /*
* Copyright (c) 2012, 2015 Tuukka Norri, tsnorri@iki.fi.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*/
package f... | mit |
grnhse/greenhouse-tools-php | src/Services/Exceptions/GreenhouseApplicationException.php | 204 | <?php
namespace Greenhouse\GreenhouseToolsPhp\Services\Exceptions;
use Greenhouse\GreenhouseToolsPhp\Exceptions\GreenhouseException;
class GreenhouseApplicationException extends GreenhouseException {}
| mit |
Need4Speed402/tessellator | src/renderers/FullScreenTextureRenderer.js | 3979 | /**
* Copyright (c) 2015, Alexander Orzechowski.
*
* 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, ... | mit |
bow-fujita/jacc-halloween | backend/lib/apperr/index.js | 545 | /**
* Copyright (C) 2018 Hiro Fujita <bow.fujita@gmail.com>
*/
'use strict';
const util = require('util')
, _ = require('underscore')
;
module.exports = function(message, extra) {
Error.captureStackTrace(this, this.constructor);
this.name = 'AppError';
this.message = message;
if (extra) {
if (_.is... | mit |
the-zebulan/CodeWars | tests/beta_tests/test_fractions_of_a_currencies_smallest_value.py | 544 | import unittest
from katas.beta.fractions_of_a_currencies_smallest_value import PriceDisplayFraction
class PriceDisplayFractionTestCase(unittest.TestCase):
def test_equals(self):
pdf = PriceDisplayFraction(32)
self.assertEqual(pdf.to_internal('123.45/0'), 12345)
self.assertEqual(pdf.to_di... | mit |
lzire/powershell-csharp-winlogon | winlogonSignature.cs | 2035 | using System;
using System.Text;
using System.Runtime.InteropServices;
namespace WIN32_Wrapper
{
public static class WindowsLogon
{
private const UInt32 FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000;
private const Int32 FORNAT_MESSAGE_BUFFER_SIZE = 512;
/// <summary>
/// https://msdn... | mit |
Shaojia/ZHCarPocket | MaintainService/src/com/coortouch/android/urlimagehelper/UrlLruCache.java | 531 | package com.coortouch.android.urlimagehelper;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
public class UrlLruCache extends LruCache<String, BitmapDrawable> {
public UrlLruCache(int maxSize) {
super(maxSize);
}
@Override
protected int sizeOf(String key, Bit... | mit |
clockworkk/Personal-Stat-Tracker | site_project/site_project/wsgi.py | 401 | """
WSGI config for site_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | mit |
morenice/learn-algorithms | acmicpc/1620/test.py | 1656 | import unittest
import solve
class PocketBookTest(unittest.TestCase):
def setUp(self):
input_data = """
Bulbasaur
Ivysaur
Venusaur
Charmander
Charmeleon
Charizard
Squirtle
Wartortle
Blastoise
Caterpie
Metapod
B... | mit |
BorisKozo/EndGate | EndGate/EndGate.Core.JS/Collision/CollisionManager.js | 4115 | var EndGate;
(function (EndGate) {
/// <reference path="../Interfaces/IUpdateable.ts" />
/// <reference path="../Interfaces/ITyped.ts" />
/// <reference path="Collidable.ts" />
/// <reference path="CollisionData.ts" />
/// <reference path="../Utilities/EventHandler2.ts" />
/// <reference path=".... | mit |
killoblanco/TemplateManagerBundle | DependencyInjection/Configuration.php | 863 | <?php
namespace killoblanco\TemplateManagerBundle\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 {@li... | mit |
standart-n/spacepro | public/client/signin/controllers/app.js | 484 | var Backbone, Resolve, Signin;
Backbone = require('backbone');
Signin = require('signin');
Resolve = require('resolve');
module.exports = Backbone.Router.extend({
routes: {
'signin/force': 'force',
'signin/resolve': 'resolve'
},
initialize: function() {
this.signin = new Signin();
this... | mit |
EuadeLuxe/MessageLib | Packets/In/PacketRoomMeta.cs | 580 | namespace MessageLib.Packets.In
{
[PacketInfo("updatemeta")]
public class PacketRoomMeta : IInboundPacket
{
public string Owner;
public string Title;
public int Plays;
public int Woots;
public int TotalWoots;
public void Read(PlayerIOClient.Message message)
... | mit |
Floatzel/Coding-World-Baseplate | users.js | 79130 |
/**
* Users
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Most of the communication with users happens here.
*
* There are two object types this file introduces:
* User and Connection.
*
* A User object is a user, identified by username. A guest has a
* us... | mit |
JaySon-Huang/WebModel | WebModel/database/databasehelper.py | 4676 | # -*- coding: utf-8 -*-
import sqlite3
VERBOSE = 0
CTABLE_DOMAIN = '''
CREATE TABLE IF NOT EXISTS Domains(
did INTEGER PRIMARY KEY AUTOINCREMENT,
domain VARCHAR(64) UNIQUE,
indegree INTEGER,
outdegree INTEGER
)'''
CTABLE_WEBSITE = '''
CREATE TABLE IF NOT EXISTS Websites(
wid INTEGER PRIMARY KEY AUTOINCREMENT,
... | mit |
destos/dotfiles | link/.hammerspoon/init.lua | 3739 | -- Load Extensions
local application = hs.application
local window = hs.window
local hotkey = hs.hotkey
local fnutils = hs.fnutils
local alert = hs.alert
local grid = hs.grid
-- Music controls
local spotify = hs.spotify
require "slowq" -- Avoid accidental cmd-Q
function reloadConfig(files)
doReload = false
... | mit |
ramunasd/platform | src/Oro/Bundle/ApiBundle/Request/EntityClassTransformerInterface.php | 574 | <?php
namespace Oro\Bundle\ApiBundle\Request;
interface EntityClassTransformerInterface
{
/**
* Transforms the FQCN of an entity to the type of an entity.
*
* @param string $entityClass The FQCN of an entity
*
* @return string The type of an entity
*/
public function transform($e... | mit |
MetaMemoryT/hot-table | test/spec/settings-parser-spec.js | 24541 | describe('SettingsParser', function() {
it('should be defined', function() {
expect(HotTableUtils.SettingsParser).toBeDefined();
});
it('should return object with defined public methods and properties', function() {
var parser = new HotTableUtils.SettingsParser(),
publish = parser.getPublishMeth... | mit |
florent-pallaver/temple | diet/WebContent/app/features/diary/diary.controller.js | 6759 | (function() {
const FOOD_RS_URL = BASE_URL + 'food/';
const module = angular.module('diary', [ 'user', 'meal' ]);
module.controller('DiaryController', [ '$http', '$routeParams', 'UserService', DiaryController ]);
function DiaryController($http, $routeParams, UserService) {
const self = this;
const baseUrl ... | mit |
wissamdagher/Temenos-T24-COB-Monitor | vendor/stack/builder/src/Stack/Builder.php | 1238 | <?php
namespace Stack;
use Symfony\Component\HttpKernel\HttpKernelInterface;
class Builder
{
private $specs;
public function __construct()
{
$this->specs = new \SplStack();
}
public function unshift(/*$kernelClass, $args...*/)
{
if (func_num_args() === 0) {
throw new \InvalidArgument... | mit |
steffen25/golang.zone | controllers/upload.go | 2326 | package controllers
import (
"bytes"
"io"
"io/ioutil"
"net/http"
"strings"
"time"
"github.com/steffen25/golang.zone/util"
)
const (
MB = 1 << 20
)
type UploadController struct{}
type UploadImageResponse struct {
ImageURL string `json:"imageUrl"`
}
func NewUploadController() *UploadController {
return &Up... | mit |
AlexandraMercier/StrategyIA | ai/STA/Strategy/WeirdmovementStrategy.py | 2053 | # Under MIT License, see LICENSE.txt
from ai.Algorithm.Node import Node
from ai.STA.Strategy.Strategy import Strategy
from ai.STA.Tactic.GoToPositionNoPathfinder import GoToPositionNoPathfinder
from ai.STA.Tactic.Stop import Stop
from RULEngine.Util.Pose import Position, Pose
from ai.STA.Tactic.tactic_constants import... | mit |
deciob/nightcharts | run.js | 3106 | (function(curl) {
var config = {
// baseUrl: '',
paths: {
'get_siblings': "app/utils/get_siblings",
'get_node_config': "app/utils/get_node_config"
},
packages: [
// Define application-level packages
{
name: 'welcome', location: 'app/welcome'
},
{
name: 'language_selector', ... | mit |
activewarehouse/activewarehouse-etl | lib/etl/parser/csv_parser.rb | 3248 | module ETL #:nodoc:
module Parser #:nodoc:
# Parses CSV files
class CsvParser < ETL::Parser::Parser
# Initialize the parser
# * <tt>source</tt>: The Source object
# * <tt>options</tt>: Hash of options for the parser, defaults to an empty hash
def initialize(source, options={})
... | mit |
MelnikVasya/exactonline-api-ruby-client | lib/elmas/response.rb | 1313 | require File.expand_path("../parser", __FILE__)
require File.expand_path("../utils", __FILE__)
module Elmas
class Response
attr_accessor :status_code, :body, :response
def initialize(response)
@response = response
raise_and_log_error if fail?
end
def success?
@response.success? ||... | mit |
Ataide/ckize-full | components/register/registerController.js | 803 | (function(){
'use strict';
angular
.module('app')
.controller('RegisterController', RegisterController);
RegisterController.$inject = ['$http','$state','$auth'];
function RegisterController($http,$state,$auth){
var vm = this;
$('body').removeClass('page-signin');
$('body').add... | mit |
DanielAndreasen/SWEETer-Cat | sweetercat/config.py | 6607 | # Sample Gunicorn configuration file.
#
# Server socket
#
# bind - The socket to bind.
#
# A string of the form: 'HOST', 'HOST:PORT', 'unix:PATH'.
# An IP is a valid HOST.
#
# backlog - The number of pending connections. This refers
# to the number of clients that can be waiting to be
# ser... | mit |
gvaduha/homebrew | csharp/wtf/MainForm.cs | 3386 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Windows.Forms;
namespace wtf
{
public partial class MainForm : Form
{
private Dictionary<string, string> _templateFiles;
private Dictionary<string, Variable> _variables;
private bool _caseSensitiveRegex;
... | mit |
VProfirov/Telerik-Academy | Telerik-Academy/Module 1/[02] CSharp Advanced and CSS/[performance improvement versions] C# Advanced/C# Advanced v0.1/Arrays/Combinatorics/Permutation.cs | 1318 |
namespace Combinatorics
{
using System.Collections.Generic;
using System.Text;
public class Permutation
{
private int length;
private int range;
StringBuilder permutations;
public Permutation(int length)
{
this.length = length;
this.rang... | mit |
quantumpayments/media | lib/handlers/random.js | 3185 | module.exports = handler
var debug = require('debug')('qpm_media:random')
var fs = require('fs')
var qpm_media = require('qpm_media')
var Negotiator = require('negotiator')
var wc = require('webcredits')
var wc_db = require('wc_db')
var qpm_ui = require('qpm_ui');
function handler(req, res) {
var origin = req.head... | mit |
ata/latumentent | protected/migrations/m110117_102801_user_add_fullname_column.php | 238 | <?php
class m110117_102801_user_add_fullname_column extends CDbMigration
{
public function up()
{
$this->addColumn('user','fullname','string NOT NULL');
}
public function down()
{
$this->dropColumn('user','fullname');
}
}
| mit |
TrollCoin2/TrollCoin-2.0 | src/qt/locale/bitcoin_fa.ts | 122484 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TrollCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line... | mit |
juunas11/mean_store | lib/tests/unit/server/authSpec.js | 1613 | /* jshint expr: true */
var chai = require('chai'),
should = chai.should(),
sinonChai = require('sinon-chai'),
sinon = require('sinon'),
auth = require('../../../config/auth');
chai.use(sinonChai);
describe("Auth methods: ", function(){
describe("isAuthenticated", function(){
it("calls next if authenticated... | mit |
hadicodes/NYT-React-Search | server.js | 1301 | // Include Server Dependencies
var express = require("express");
var bodyParser = require("body-parser");
var logger = require("morgan");
var mongoose = require("mongoose");
// Create Instance of Express
var app = express();
// Sets an initial port. We'll use this later in our listener
var PORT = process.env.PORT || 3... | mit |
kiyoaki/bitflyer-api-dotnet-client | BitFlyer.Apis/ResponseData/CryptoCurrencyAddress.cs | 584 | using System.Runtime.Serialization;
using System.Text;
using Utf8Json;
namespace BitFlyer.Apis
{
public class CryptoCurrencyAddress
{
[DataMember(Name = "type")]
public AddresseType Type { get; set; }
[DataMember(Name = "currency_code")]
public CurrencyCode Currenc... | mit |
wootaw/domain-flow | spec/support/contract_flow.rb | 880 | class ContractFlow
include DomainFlow::Map
def initialize
initial :drafting
status :drafting do
to :drafted, event: :draft, who: [Department.new(:business)]
end
status :drafted do
to :submitted, event: :pre, who: [Department.new(:manage)]
to :drafting, event: :pre_turn, ... | mit |
minimumcut/UnnamedEngine | UnnamedEngine/Sources/Engine/Base/Types/Component.cpp | 141 | #include "Component.h"
ComponentFlag ComponentStatics::SingletonGroupCounter = 0;
ComponentFlag ComponentStatics::StaticGroupCounter = 0;
| mit |
aa6my/GRR | fuel/modules/fuel/assets/js/editors/ckeditor/plugins/fuellink/plugin.js | 4318 | /**
* Basic sample plugin inserting abbreviation elements into CKEditor editing area.
*
* Created out of the CKEditor Plugin SDK:
* http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1
*/
// Register the plugin within the editor.
CKEDITOR.plugins.add( 'fuellink', {
// Register the icons.
icons: 'an... | mit |
namics/eslint-config-namics | test/es5-disable-styles/rules/style/linebreak-style.js | 132 | // DESCRIPTION = disallow mixed 'LF' and 'CRLF' as linebreaks
// STATUS = 0
// <!START
// END!>
document.window.append("", null);
| mit |
CarrKnight/MacroIIDiscrete | src/main/java/model/utilities/scheduler/TrueRandomScheduler.java | 12048 | /*
* Copyright (c) 2014 by Ernesto Carrella
* Licensed under MIT license. Basically do what you want with it but cite me and don't sue me. Which is just politeness, really.
* See the file "LICENSE" for more information
*/
package model.utilities.scheduler;
import com.google.common.base.Preconditions;
import ec.ut... | mit |
aingc/EPMS | js/library/HealthBar.standalone.js | 4340 | /**
Copyright (c) 2015 Belahcen Marwane (b.marwane@gmail.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, modify... | mit |
ramcn/demo3 | venv/lib/python3.4/site-packages/oauth2_provider/compat.py | 1052 | """
The `compat` module provides support for backwards compatibility with older
versions of django and python..
"""
from __future__ import unicode_literals
import django
from django.conf import settings
# urlparse in python3 has been renamed to urllib.parse
try:
from urlparse import urlparse, parse_qs, parse_qsl... | mit |
jeffjen/machine | lib/machine/recipe.go | 4230 | package machine
const SWARM_MASTER = `version: "2"
services:
swarm_manager:
image: swarm:latest
command: manage -H tcp://0.0.0.0:2376 --tlsverify --tlscacert /conf/ca.pem --tlscert /conf/server-cert.pem -tlskey /conf/server-key.pem nodes://{{ range $index, $element := .Nodes }}{{ if $index }}{{ print "," $e... | mit |
NataliaDymnikova/akka.scheduler | cluster-scheduler-akka/src/main/java/natalia/dymnikova/cluster/scheduler/impl/FlowHelper.java | 3108 | // Copyright (c) 2016 Natalia Dymnikova
// Available via the MIT license
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
// the rights to ... | mit |
FelipeOliver/StockManager | src/main/java/com/stockmanager/repositories/VendaRepository.java | 276 | package com.stockmanager.repositories;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.stockmanager.entities.Venda;
@Repository
public interface VendaRepository extends CrudRepository<Venda, Long>{
}
| mit |
fredefl/The-Haiku-Poem-Machine | application/views/tags_view.php | 4048 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo $this->lang->line("info_app_title");?> - <?php echo $this->lang->line("pages_home");?></title>
<link rel="stylesheet" href="<?php echo $base_url.$css_url; ?>style.css">
<link rel="stylesheet" href="<?php echo $base_url.$css... | mit |
airslie/renalware-core | spec/presenters/renalware/admissions/consult_presenter_spec.rb | 910 | # frozen_string_literal: true
require "rails_helper"
module Renalware
module Admissions
describe ConsultPresenter do
describe ".location" do
it "joins site ward and other location when all present" do
site = ConsultSite.new(name: "Site")
ward = Hospitals::Ward.new(name: "Ward")... | mit |
se-panfilov/betsson_test | e2e/app.po.ts | 201 | import { browser, by, element } from 'protractor'
export class AppPage {
navigateTo() {
return browser.get('/')
}
getParagraphText() {
return element(by.css('root h1')).getText()
}
}
| mit |
vsilent/smarty-bot | core/utils/sys/cpu.py | 1807 | # vim:syntax=python:sw=4:ts=4:expandtab
import re
from core.config.settings import logger
from core.utils.utils import parse_file
def interval():
return 2
SYSINFO = '/sys/class/thermal/'
FILE_TEMP = SYSINFO + 'thermal_zone0/temp'
RE_CPU = re.compile(r'^cpu MHz\s*:\s*(?P<mhz>\d+).*$')
RE_STATS = re.compile(r'^c... | mit |
chypriote/france-v2 | tests/AppBundle/Controller/Player/PlayersMembersControllerTest.php | 1855 | <?php
namespace Tests\AppBundle\Controller\Player;
use Symfony\Component\HttpFoundation\Request;
use Tests\WebTestCase;
class PlayersMembersControllerTest extends WebTestCase
{
const BASE_URL = '/players';
const PLAYER_TAMOZ_UUID = '5cef176d-1ded-40a7-97a4-a397f9aac16e';
const PLAYER_HYORAI_UUID = '1d18c... | mit |
PHP-Geek/aviation-job-portal | application/views/page/list_our_services.php | 5983 | <style type="text/css">
.table-responsive {
width: 100%;
margin-bottom: 15px;
overflow-y: hidden;
-ms-overflow-style: -ms-autohiding-scrollbar;
border: 1px solid #ddd;
}
.table-responsive > .table {
margin-bottom: 0;
}
.table-responsive > .table > thead >... | mit |
unoegohh/dandm | src/Unoegohh/MarkupBundle/DependencyInjection/Configuration.php | 885 | <?php
namespace Unoegohh\MarkupBundle\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 http://sym... | mit |
saedar/fate_character_manager | test/helpers/attribution_helper_test.rb | 78 | require 'test_helper'
class AttributionHelperTest < ActionView::TestCase
end
| mit |
askheaves/Its.Cqrs | Domain.Sql/CommandScheduler/CommandSchedulerDbContext.cs | 4479 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using System.Diagnostics;
using System.Linq;
namespace Microsoft.Its.Domain.Sql.C... | mit |
alar-saat/XRDv4WSDLConverter | src/main/java/ee/rmit/xrd/AbstractConfiguration.java | 4274 | package ee.rmit.xrd;
import ee.rmit.xrd.wsdl.Wsdl;
import ee.rmit.xrd.wsdl.WsdlTemplate;
import org.xml.sax.SAXException;
import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import s... | mit |
lovemybamboo/lovemybamboo.github.io | Data Management System/js/js_accuracy_calculation/accuracy_calculation.js | 507 | /**
* Created with JetBrains WebStorm.
* User: Luo Bo
* Date: 14-9-1
* Time: 下午9:45
* To change this template use File | Settings | File Templates.
*/
$(document).ready(function () {
initTable();
});
function initTable(){
$('#dataTables-data-result').dataTable();
$(".form_datetime").datetimepicker({... | mit |
calincru/Warlight-AI-Challenge-2-Bot | src/strategies/basicroundstrategy.cpp | 1676 | // This program is free software licenced under MIT Licence. You can
// find a copy of this licence in LICENCE.txt in the top directory of
// source code.
//
// Self
#include "basicroundstrategy.hpp"
// Project
#include "world.hpp"
#include "region.hpp"
#include "common/basicscore.hpp"
// C++
#include <limits>
name... | mit |
iogav/Partner-Center-Java-SDK | PartnerSdk/src/main/java/com/microsoft/store/partnercenter/network/PartnerServiceProxy.java | 25278 | // -----------------------------------------------------------------------
// <copyright file="PartnerServiceProxy.java" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
package com.microso... | mit |
kssujithcj/TestMobileCenter | node_modules/recursive-fs/index.js | 356 |
exports.readdirr = require('./lib/readdirr').readdirr;
exports.rmdirr = require('./lib/rmdirr').rmdirr;
exports.rmdirs = require('./lib/rmdirr').rmdirs;
exports.rmfiles = require('./lib/rmdirr').rmfiles;
exports.cpdirr = require('./lib/cpdirr').cpdirr;
exports.cpdirs = require('./lib/cpdirr').cpdirs;
exports.cpfiles... | mit |
qjloong/AssetHelper | www/AssetsHelper.js | 738 | var exec = require('cordova/exec');
var AssetsHelper = {
getAllPhotos:function(successCallback, errorCallback) {
exec(successCallback, errorCallback, "AssetsHelper", "getAllPhotos", []);
},
getThumbnails:function(urlList, successCallback, errorCallback) {
exec(successCallback, errorCallba... | mit |
Soaring-Outliers/news_graph | manage.py | 253 | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "news_graph.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| mit |
akonoupakis/jsnbt | src/app/tmpl/bundle.js | 8848 | var md5 = require('md5');
var path = require('path');
var fs = require('fs');
var _ = require('underscore');
_.str = require('underscore.string');
var getScriptRaw = function (app, data) {
var result = [];
var addBundleInfo = function (groupsNames) {
var combine = true;
if (groupsNames.length... | mit |
ICTrekProjects/ICTrekReminderBot | bot.php | 4881 | <?php
require_once("telegram.php");
require_once("functions.php");
$telegram = new Telegram(file_get_contents('token'));
$text = $telegram->Text();
$command = explode(" ", str_replace("@ICTrekReminderBot", "", $text));
$chat_id = $telegram->ChatID();
$user_id = $telegram->UserID();
$message_id = $telegram->MessageID()... | mit |
justinryder/PandAngular | src/js/controlsController.js | 5174 | app.controller('controlsController', ['$scope', '$http', function($scope, $http) {
$scope.types = ['line', 'spline', 'step', 'area', 'area-spline', 'area-step'];
$scope.type = 'area-spline';
$scope.$watch(function(scope){
return scope.type;
}, function(newValue){
for (var i in $scope.data.types) {
... | mit |
lixaviers/lixavier-console | lixavier-console-dal/src/main/java/com/lixavier/console/model/AddressExample.java | 15492 | package com.lixavier.console.model;
import java.util.ArrayList;
import java.util.List;
public class AddressExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public AddressExample() {
oredCriteria = new ArrayList<Criteria>();
}
... | mit |
basmoura/hello | app/lib/hello/user.rb | 600 | Hello.config.user do
# controller scope
set :success do
# @user
respond_to do |format|
format.html {
redirect_to hello.user_path, notice: 'Your profile was successfully updated.'
}
format.json {
# render json: @credential, status: :created, location: hello.password_... | mit |
cypreess/PyrateDice | game_server/game_server/board/tests.py | 775 | from django.test import TestCase
# Create your tests here.
from board.tasks import GameError, check_move
class CheckMoveTestCase(TestCase):
def test_check_move_1(self):
self.assertRaises(GameError, check_move, 0, 0, [], 3)
def test_check_move_2(self):
self.assertRaises(GameError, check_move,... | mit |
balderdashy/backbone-to-sails | sails.io.backbone.js | 7185 | /*!
* Backbone SDK for Sails and Socket.io
* (override for Backbone.sync and Backbone.Collection)
*
* c. 2013 @mikermcneil
* MIT Licensed
*
*
* Inspired by:
* backbone.iobind - Backbone.sync replacement
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
* MIT Licensed
*/
(function () {
// The acti... | mit |
jakejosol/warp-project | references/classes/Slang.php | 169 | <?php
/*
* Slang class
* @author Jake Josol
* @description Class that is responsible for the string languages
*/
class Slang extends Warp\Localization\Slang {}
?> | mit |
onlabsorg/olowc | jspm_packages/npm/lodash@4.17.4/_mapCacheDelete.js | 217 | /* */
var getMapData = require('./_getMapData');
function mapCacheDelete(key) {
var result = getMapData(this, key)['delete'](key);
this.size -= result ? 1 : 0;
return result;
}
module.exports = mapCacheDelete;
| mit |