repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
jennselby/WebDevTestApp
app.js
12870
var http = require('http'); var fs = require('fs'); var handlebars = require('handlebars'); var qs = require('querystring'); // setup the database functions based on which database is being used var database = 'mongoDB'; // change to postgreSQL or MySQL to use these databases instead var MongoClient = null; var saniti...
mit
SonataD/badpascal
main.cpp
6838
#include <iostream> #include <fstream> #include <string> #include <cstring> #include <algorithm> #include <atomic> #include <mutex> #include <thread> #include <utility> #include "lexer.h" #include "symtable.h" #include "parser.h" //clase que procesa los tokens generados por el FSM. //no es la versión final. class Tok...
mit
jamethy/battle_room
src/world/object_factory.cpp
5010
#include "world/object_factory.h" #include "world/player.h" #include "world/bullet.h" #include "world/ball.h" #include "common/logger.h" #include <map> namespace BattleRoom { std::map<ObjectType, ResourceDescriptor> OBJECT_TEMPLATES = { {ObjectType::Player, ResourceDescriptor("Player", "")}, ...
mit
mkpetrov/CSharpAdvanced
Regex/Sentence Extractor/SentenceExtractor.cs
673
using System; using System.Text.RegularExpressions; namespace Sentence_Extractor { class SentenceExtractor { static void Main(string[] args) { var keyWord = Console.ReadLine(); var inputLine = Console.ReadLine(); var regex=new Regex(@"([^.!?]+(?=[.!?])[.!?...
mit
win-k/CMSTV
evo/manager/processors/undelete_content.processor.php
2360
<?php if(!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE != 'true') exit(); if(!$modx->hasPermission('delete_document')) { $e->setError(3); $e->dumpError(); } $id = intval($_REQUEST['id']); // check permissions on the document if(!$modx->checkPermissions($id)) disp_access_permission_denied(); // get the timestamp o...
mit
distributions-io/weibull
lib/quantile.js
763
'use strict'; /** * FUNCTION: getQuantileFunction( a, b ) * Returns a quantile function for a Weibull distribution with with scale parameter `lambda` and shape parameter `k`. * * @private * @param {Number} lambda - shape parameter * @param {Number} k - scale prameter * @returns {Function} quantile function */ function...
mit
zapnap/riq-ruby
lib/riq.rb
2103
# The namespace from which all magic springs module RIQ # Could fetch defaults or something here end # Monkeypatches # cry about it, nerd module RIQExtensions refine Symbol do def to_cam temp = self.to_s.split('_').map(&:capitalize).join (temp[0].downcase + temp[1..-1]).to_sym end def to_s...
mit
binondord/laravel-scaffold
src/Exceptions/GeneratorException.php
309
<?php namespace Binondord\LaravelScaffold\Exceptions; class GeneratorException extends \Exception { /** * The exception description. *fgfg * @var string */ protected $message = 'Could not determine what you are trying to do. Sorry! Check your migration name.'; }
mit
mikeireland/pynrm
pynrm/aoinstrument.py
13805
# -*- coding: utf-8 -*- """Useful utilities that are not telescope-dependent. """ import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import astropy.io.fits as pyfits import csv class AOInstrument: """The AOInstrument Class """ #A blank dictionary on startup. csv_dict = dict() #Blank re...
mit
charlesreid1/dang-sunburst
pelican/angular/dynamic/slider_modcontrol.js
1207
/////////////////////////////////////// // // Slider Interactive Sunburst // // Module/Controller // var a = angular.module("sliderApp", [], function($interpolateProvider) { $interpolateProvider.startSymbol('[['); $interpolateProvider.endSymbol(']]'); } ); var datafactory = a.fact...
mit
ABASystems/react-interactive-tutorials
demo-site/demos.js
100
import { init } from 'uptick-demo-site' import SampleTutorial from './sample-tutorial.js' init();
mit
sam/harbor-ftp
lib/harbor/ftp/user_managers/hash_user_manager.rb
713
class Harbor module FTP module UserManagers class HashUserManager include UserManager DEFAULT_HOME = "/tmp" def initialize @users = {} end def add_user(username, password, home_directory = DEFAULT_HOME) @users[username] = User.new ...
mit
Mozu/mozu-dotnet
Mozu.Api/Urls/Commerce/Catalog/Storefront/ProductUrl.cs
19340
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a Codezu. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------...
mit
PartnerCenterSamples/Reseller-Web-Application
src/Storefront/BusinessLogic/Commerce/Transactions/PurchaseExtraSeats.cs
4428
// ----------------------------------------------------------------------- // <copyright file="PurchaseExtraSeats.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // ----------------------------------------------------------------------- namespace Microsoft.St...
mit
javieralfaya/tuitty
vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/SQLParserUtilsTest.php
18712
<?php namespace Doctrine\Tests\DBAL; use Doctrine\DBAL\Connection; use Doctrine\DBAL\SQLParserUtils; require_once __DIR__ . '/../TestInit.php'; /** * @group DBAL-78 * @group DDC-1372 */ class SQLParserUtilsTest extends \Doctrine\Tests\DbalTestCase { static public function dataGetPlaceholderPos...
mit
isayme/socks5-server
example/usernamepassword.js
408
var Socks5Server = require('../').Socks5Server; var AUTH_METHODS = require('../').AUTH_METHODS; var server = new Socks5Server(); // server.registerAuth(AUTH_METHOS.NOAUTH, auth.noauth); server.registerAuth(AUTH_METHODS.USERNAME_PASSWORD, { username: 'username', password: 'password' }); server.listen(1080, functi...
mit
eFounders/efounders-workable-client
src/application-form.js
381
class ApplicationForm { constructor({ client, subdomain, shortcode }) { this.client = client; this.subdomain = subdomain; this.shortcode = shortcode; } info() { const { client, subdomain, shortcode } = this; const endpoint = `/${subdomain}/jobs/${shortcode}/application_form`; return client...
mit
DreamHacks/dreamdota
DreamAuth2/ThreadPipe.cpp
7263
#include "stdafx.h" #include "Exception.h" #include "ThreadPipe.h" #include "Auth.h" #include "Locale.h" #include "Connection.h" #include "Message.h" #include "SharedMemory.h" #include "RemoteMemory.h" #include "Loggedin.h" #include "Utils.h" #include "SystemTools.h" #include "Injection.h" #include "../DreamWarcraft/Ve...
mit
GrognardsFromHell/TemplePlus
Tests/PartSysTests/stdafx.cpp
291
// stdafx.cpp : source file that includes just the standard includes // PartSysTests.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
mit
jamox/cert
cert_open_data_visualizer/lib/cert_open_data_visualizer/visualize.rb
1837
module CertOpenDataVisualizer require 'httparty' require 'tmpdir' require 'csv' require 'json' class Visualize attr_accessor :all_data, :cacher CSV_DATA_URL = "http://pilvilinna.cert.fi/opendata/autoreporter/csv.zip" def initialize @cacher = DummyCacher.new end def parse ma...
mit
dwivivagoal/KuizMilioner
application/libraries/php-google-sdk/google/apiclient-services/src/Google/Service/Proximitybeacon/Observation.php
1378
<?php /* * Copyright 2014 Google Inc. * * 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 applicable law or agreed t...
mit
dnl-jst/ownsocial
languages/en.php
7000
<?php return array( 'error' => 'An error occurred.', 'language_en' => 'English', 'language_de' => 'German', 'login_subheadline' => 'Please sign in', 'login_email' => 'E-mail address', 'login_password' => 'Password', 'login_btn_login' => 'Sign in', 'login_btn_create_account' => 'Create an account', 'login_f...
mit
ManifestWebDesign/dabl-orm
src/shim/JsonSerializable.php
168
<?php if (!interface_exists('JsonSerializable')) { /** * Polyfill for JsonSerializable */ interface JsonSerializable { public function jsonSerialize(); } }
mit
mmarcon/jhere
test/lib/mocks.js
8686
/* * Copyright (C) 2013 Massimiliano Marcon * 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, publ...
mit
ChimiDEV/Pomelo-dBot
src/commands/8ball.js
1738
const Command = require('../lib/Command'); const responses = [ 'It is certain.', 'It is decidedly so.', 'Without a doubt.', 'Yes - definitely.', 'You may rely on it.', 'As I see it, yes.', 'Most likely.', 'Outlook good.', 'Yes.', 'Signs point to yes.', 'Reply hazy, try again', 'Ask again later.'...
mit
EncontrAR/backoffice
src/components/firebase/index.js
3945
import React, { Component } from 'react'; import Button from '../uielements/button'; import Input from '../uielements/input'; import Modal from '../feedback/modal'; import { notification } from '../index'; import Firebase from '../../helpers/firebase/index'; export default class extends Component { constructor(props...
mit
mkuzak/csWeb
csComp/classes/datasource.ts
3484
module csComp.Services { export class SensorSet { id: string; title: string; type: string; propertyTypeKey: string; propertyType: IPropertyType; timestamps: number[]; values: any[]; activeValue: any; max: number = 100; min: number = 0; ...
mit
CindyPotvin/androidpreferences
src/com/cindypotvin/androidpreferences/SettingsActivity.java
522
package com.cindypotvin.androidpreferences; import android.app.Activity; import android.os.Bundle; /** * Settings activity that contains a fragment displaying the preferences. */ public class SettingsActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(saved...
mit
kazinduzi/kazinduzi
framework/library/phpmailer/language/phpmailer.lang-tr.php
1487
<?php /** * PHPMailer language file: refer to English translation for definitive list * Turkish version * Türkçe Versiyonu * ÝZYAZILIM - Elçin Özel - Can Yýlmaz - Mehmet Benlioðlu. */ $PHPMAILER_LANG['authenticate'] = 'SMTP Hatası: Doğrulanamıyor.'; $PHPMAILER_LANG['connect_host'] = 'SMTP Hatası: SMTP hosta bağlanılamı...
mit
webmonarch/multi_movingsign
lib/multi_movingsign/sign.rb
646
require 'movingsign_api' require 'multi_movingsign/sign' module MultiMovingsign # Represents an individual Movingsign LED sign being driven class Sign attr_accessor :path def initialize(path) self.path = path end def self.load(hash) path = hash['path'] || (raise InvalidInputError, "pa...
mit
horkman/vtrack
gulp/tasks/clean.js
218
const gulp = require('gulp'); const rimraf = require('gulp-rimraf'); module.exports = gulp.task('clean', function () { return gulp .src(['.dist', '.transpiled'], {read: false}) .pipe(rimraf()); });
mit
Kostarsus/MP3Manager
src/MP3Manager/userinterface/MainWindow.collection.xaml.cs
3319
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using MP3ManagerBase.manager; using MP3ManagerBase.model; using System.Windows.Forms; namespace MP3ManagerBase { public partial class MainWindow { private const lo...
mit
vicentehidalgo/parse_test
baseApp/app/scripts/controllers/loginController.js
760
'use strict'; angular.module('baseApp') .controller('loginController', ['$http','$rootScope', function($http, $rootScope) { var vm = this; vm.user = { // inputUserName: '', // inputPassword: '' }; // vm.user.inputUserName = 'vicente'; // vm.user.inputPassword = '1234'; vm.lo...
mit
EssaAlshammri/django-by-example
e-learning/educa/courses/urls.py
1505
from django.conf.urls import url from . import views urlpatterns = [ url(r'^mine/$', views.ManageCourseListView.as_view(), name='manage_course_list'), url(r'^create/$', views.CourseCreateView.as_view(), name='course_create'), url(r'^(?P<pk>\d+)/edit/$', views.CourseUpdateView.as_vi...
mit
pigmalien/pigmalien.github.io
games/grapplenight/c2runtime.js
277788
// Generated by Construct 2, the HTML5 game and app creator :: http://www.scirra.com 'use strict';var aa,ca,da,ea,ga,ha,ia,ja,ka,la,na,oa,pa,qa,ra,ta,ua,va,wa,xa,ya,za,Aa,B,Da,Ea,Fa,Ga,Ha,F,Ia,Ja,Ka,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Va,Wa,Xa,Ya,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Eb,Fb,...
mit
gautelinga/BERNAISE
problems/single_channel.py
6342
import dolfin as df import numpy as np import os from . import * from common.io import mpi_is_root from common.bcs import Fixed, Charged, Pressure __author__ = "Gaute Linga" class ChannelSubDomain(df.SubDomain): def __init__(self, Lx, Ly, Lx_inner): self.Lx = Lx self.Ly = Ly self.Lx_inner ...
mit
netcredit/NetCreditHub
src/NetCreditHub.Kernel/Application/Services/Dto/IHasLongPageCount.cs
315
namespace NetCreditHub.Application.Services.Dto { /// <summary> /// ³éÏóÒ»¸öΪ DTOs ¶¨ÒåÒ»¸ö±ê×¼µÄ'ÏîÄ¿×ÜÒ³Êý(long)'µÄ½Ó¿Ú. /// </summary> public interface IHasLongPageCount { /// <summary> /// ÏîÄ¿×ÜÒ³Êý(long). /// </summary> long PageCount { get; set; } } }
mit
luckydonald/pytg2
examples/dump.py
681
# -*- coding: utf-8 -*- __author__ = 'luckydonald' from pytg2.receiver import Receiver from pytg2.utils import coroutine @coroutine def example_function(receiver): try: while True: msg = (yield) print('Full dump: {array}'.format(array=str( msg ))) except KeyboardInterrupt: receiver.stop() print("Exiting"...
mit
ryanchanwo/FabricVegetation
documentation/html/search/functions_1.js
281
var searchData= [ ['bud',['Bud',['../_bud_8kl.html#a9fd193d7b03635da2b63cd2ebf99ccea',1,'Bud(Boolean active, Vec3 position):&#160;Bud.kl'],['../_bud_8kl.html#a190d273cd2108f4d38e8aec9138a3d40',1,'Bud(Boolean active, Vec3 position, Bud parent, UInt32 samples):&#160;Bud.kl']]] ];
mit
franklai/lyric-get-js
lyric_engine_js/index.js
2081
const fs = require('fs').promises; const path = require('path'); const urlModule = require('url'); const BlockedError = require('./include/blocked-error'); // let site_dict = {}; const site_array = []; class SiteNotSupportError extends Error { constructor(domain) { const message = `Site ${domain} is not suppor...
mit
l4l/android_sudoku
src/org/awesome_sudoku/io/FileManager.java
983
package org.awesome_sudoku.io; import java.io.File; import java.io.IOException; /** * Created by kitsu. * This file is part of AwesomeSudoku in package org.sudoku.io. */ public abstract class FileManager { protected final File file; /** * @param file is file for the next operation * @throws IOE...
mit
rootulp/exercism
ruby/exercises/roman-numerals/roman.rb
498
# Fixnum # HACK: I don't like monkey patching class Integer NUMERALS = { 1 => 'I', 4 => 'IV', 5 => 'V', 9 => 'IX', 10 => 'X', 40 => 'XL', 50 => 'L', 90 => 'XC', 100 => 'C', 400 => 'CD', 500 => 'D', 900 => 'CM', 1000 => 'M' }.freeze def to_roman result = '' ...
mit
pjtown/csharp-redis
Redis/RedisResponse.cs
1066
// Copyright 2012 Peter Townsend // Licensed under the MIT License using System.Collections.Generic; using System.Text; namespace Redis { public class RedisResponse { public string Value { get; set; } public List<RedisResponse> Responses { get; set; } public override string ToString() { ...
mit
inpsyde/WP-API-JSON-Adapter
test/bootstrap.php
775
<?php # -*- coding: utf-8 -*- namespace WPAPIAdapter\Test; use WPAPIAdapter; use Requisite; require_once dirname( __DIR__ ) . '/inc/init-requisite.php'; require_once dirname( __DIR__ ) . '/inc/register-autoloading.php'; require_once dirname( __DIR__ ) . '/vendor/autoload.php'; // there's a bug in WP_Mock's expectAct...
mit
mode51/Tungsten
Src/Tungsten.IO.Pipes/PipeReadWriteExtensions.cs
16251
using System; using System.Threading.Tasks; namespace W.IO.Pipes { /// <summary> /// Read/Write functionality for Pipe /// </summary> public static class PipeReadWriteExtensions { //#region Read/Write ///// <summary> ///// Write an array of bytes to the pipe ///// <...
mit
susisu/Loquat
packages/core/test.js
567
"use strict"; const $utils = require("./lib/utils")(); const $pos = require("./lib/pos")(); const $error = require("./lib/error")({ $pos }); const $parser = require("./lib/parser")({ $pos, $error }); const $stream = require("./lib/stream")({ $utils }); const $core = require("./lib/core")({ $utils, $pos, $error,...
mit
godaddy/node-soap-client-utils
integration/soap-client-utils.js
103
'use strict'; describe('soap-client-utils', function(){ it('does something', function(){ }); });
mit
yohanesmario/Skripsi
software/WiFiWebAutoLogin/WiFiWebAutoLogin.RuntimeComponents/Properties/AssemblyInfo.cs
1088
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("Wi...
mit
daxadax/tarot_backend
lib/tarot/entities/correspondence.rb
417
module Tarot module Entities class Correspondence < Entity attr_reader :golden_dawn def initialize(options) @golden_dawn = set_attribute options, :golden_dawn end private def set_attribute(options, name) options.fetch(name) do msg = "Missing required corr...
mit
StephenCleary/AsyncEx
test/AsyncEx.Coordination.UnitTests/AsyncProducerConsumerQueueUnitTests.cs
6478
using System; using System.Collections.Generic; using System.Threading.Tasks; using Nito.AsyncEx; using System.Linq; using System.Threading; using System.Diagnostics.CodeAnalysis; using Xunit; using Nito.AsyncEx.Testing; namespace UnitTests { public class AsyncProducerConsumerQueueUnitTests { [Fact] ...
mit
umpirsky/platform
src/Oro/Bundle/EmailBundle/Entity/EmailOrigin.php
4254
<?php namespace Oro\Bundle\EmailBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use JMS\Serializer\Annotation\Type; use JMS\Serializer\Annotation\Exclude; /** * Email Origin * * @ORM\Table(name="oro_email_origin") * @ORM\Entity * @ORM\InheritanceType("SINGLE_TABL...
mit
stripecoin/stripecoin
src/qt/locale/bitcoin_ro_RO.ts
110035
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About stripecoin</source> <translation>Despre stripecoin</translation> ...
mit
TwilioDevEd/api-snippets
notifications/rest/users/add-user-to-segment/add-user-to-segment.7.x.py
601
#!/usr/bin/env python # Install the Python helper library from twilio.com/docs/python/install import os from twilio.rest import Client # To set up environmental variables, see http://twil.io/secure ACCOUNT_SID = os.environ['TWILIO_ACCOUNT_SID'] AUTH_TOKEN = os.environ['TWILIO_AUTH_TOKEN'] client = Client(ACCOUNT_SID...
mit
cdetrio/remix
src/solidity/types/Address.js
407
'use strict' var util = require('./util') var ValueType = require('./ValueType') class Address extends ValueType { constructor () { super(1, 20, 'address') } decodeValue (value) { if (!value) { return '0x0000000000000000000000000000000000000000' } else { return '0x' + util.extractHexByte...
mit
kasperlewau/casketUI
BasicBuffs/BasicBuffs.lua
2554
local f = CreateFrame("Frame", "BasicBuffsFrame", UIParent) f:RegisterEvent("PLAYER_LOGIN") f:SetScript("OnEvent", function(display) if not BasicBuffsStorage then BasicBuffsStorage = {} end display:SetBackdrop({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background"}) display:SetFrameStrata("BACKGROUND")...
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_95/safe/CWE_95__GET__CAST-cast_float_sort_of__variable-concatenation_simple_quote.php
1182
<?php /* Safe sample input : reads the field UserData from the variable $_GET sanitize : cast via + = 0.0 construction : concatenation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software...
mit
bhaptics/tactosy-unity
samples/csharp/src/Bhaptics.Tact/CustomWebSocketSharp/WebSocketState.cs
2312
#region License /* * WebSocketState.cs * * The MIT License * * Copyright (c) 2010-2016 sta.blockhead * * 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 ...
mit
sahandy/lepp2
src/lepp2/visualization/StairVisualizer.hpp
3307
#ifndef LEPP2_VISUALIZATION_STAIR_VISUALIZER_H__ #define LEPP2_VISUALIZATION_STAIR_VISUALIZER_H__ #include <vector> #include <pcl/visualization/cloud_viewer.h> #include <pcl/visualization/pcl_visualizer.h> #include "lepp2/VideoObserver.hpp" #include "lepp2/StairAggregator.hpp" namespace lepp{ template<class PointT...
mit
ejl888/spring-hateoas-extended
src/main/java/nl/my888/springframework/hateoas/resource/TypedEmbeddedResourceSupport.java
1101
package nl.my888.springframework.hateoas.resource; import java.util.LinkedList; import java.util.List; import javax.xml.bind.annotation.XmlElement; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import nl.my888.springframework.hateoas.configuratio...
mit
NickLargen/Junctionizer
Utilities/Comparers/StringOrIntegerComparer.cs
1073
using System; using System.Collections.Generic; using JetBrains.Annotations; namespace Utilities.Comparers { /// <summary>If both strings represent integers (as determined by int.TryParse) then their integer values are compared. Otherwise normal string comparison is used.</summary> public class StringOrInteg...
mit
yeleman/ramed-desktop
ramed/tools/ramed_form_pdf_export.py
16484
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 nu import os import datetime from path import Path from reportlab.lib import colors from reportlab.lib.styles import getSampleStyleSheet from reportlab.lib.pagesizes import A4 from reportlab.platypus import (Paragraph, Table, TableStyle, Image...
mit
citruz/beacontools
examples/scanner_exposure_notification.py
380
import time from beacontools import BeaconScanner, ExposureNotificationFrame def callback(bt_addr, rssi, packet, additional_info): print("<%s, %d> %s %s" % (bt_addr, rssi, packet, additional_info)) # scan for all COVID-19 exposure notifications scanner = BeaconScanner(callback, packet_filter=[ExposureNotifi...
mit
kakashidinho/HQEngine
ThirdParty-mod/java2cpp/org/apache/http/impl/EnglishReasonPhraseCatalog.hpp
4226
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: org.apache.http.impl.EnglishReasonPhraseCatalog ================================================================================*/ #ifnde...
mit
walmartreact/babel-plugin-react-cssmoduleify
test/fixtures/compiled/logical-expression/actual.js
2391
"use strict"; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp...
mit
localheinz/opencfp
migrations/20181002234013_create_user_joind_in_username_column.php
2267
<?php declare(strict_types=1); /** * Copyright (c) 2013-2018 OpenCFP * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @see https://github.com/opencfp/opencfp */ use Cartalyst\Sentinel\Users\EloquentUser; use Phinx\Migration\Abstr...
mit
prometheusresearch/react-ui
src/DangerButton.js
1174
/** * @copyright 2015, Prometheus Research, LLC * @flow */ import {css} from 'react-stylesheet'; import * as ButtonStylesheet from './ButtonStylesheet'; import ButtonBase from './ButtonBase'; let textColor = css.rgb(255, 231, 231); export default class DangerButton extends ButtonBase { static stylesheet = Butto...
mit
portchris/NaturalRemedyCompany
src/app/code/core/Mage/Adminhtml/Block/System/Email/Template/Grid/Renderer/Sender.php
1737
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
mit
dr4fters/dr4ft
backend/pool.spec.js
4341
/* eslint-env node, mocha */ const assert = require("assert"); const Pool = require("./pool"); const {range, times, constant} = require("lodash"); const {getPlayableSets} = require("./data"); const assertPackIsCorrect = (got) => { const cardIds = new Set(); let expectedCardsSize = 0; got.forEach(pool => pool.fo...
mit
vynessa/dman
server/models/User.js
1273
import bcrypt from 'bcrypt'; import jwt from 'jsonwebtoken'; module.exports = (sequelize, DataTypes) => { const User = sequelize.define('User', { fullName: { type: DataTypes.STRING, allowNull: false, }, email: { type: DataTypes.STRING, allowNull: false, unique: true, ...
mit
Dubrzr/Statusctrl
manage.py
249
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Status.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
mit
maldrasen/archive
Rysh.3/spec/models/skill_spec.rb
68
require 'spec_helper' describe Skill do pending "Spec this" end
mit
egg82/Pi
Events/Patterns/Command/CommandEvent.cs
287
using System; namespace Events.Patterns.Command { class CommandEvent { //vars public const string COMPLETE = "complete"; public const string ERROR = "error"; public const string TIMER = "timer"; //constructor public CommandEvent() { } //public //private } }
mit
trustyou/tyluigiutils
tyluigiutils/url.py
6534
""" Adapted from https://github.com/edx/edx-analytics-pipeline/blob/master/edx/analytics/tasks/url.py Support URLs. Specifically, we want to be able to refer to data stored in a variety of locations and formats using a standard URL syntax. Examples:: s3://some-bucket/path/to/file /path/to/local/file.gz hdfs://some/dir...
mit
cookbookcms/contracts
OAuth/ConsumerRepositoryContract.php
716
<?php /* * This file is part of the congraph/contracts package. * * (c) Nikola Plavšić <nikolaplavsic@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Congraph\Contracts\OAuth; use Congraph\Contracts\Core\Repo...
mit
GeoSensorWebLab/arctic-portal
config/initializers/assets.rb
807
# Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. Rails.application.config.assets.version = '1.0' # Add additional assets to the asset load path. # Rails.application.config.assets.paths << Emoji.images_path Rails.application.config...
mit
crackcomm/chromedp
cdp/tethering/tethering.go
1389
// Package tethering provides the Chrome Debugging Protocol // commands, types, and events for the Tethering domain. // // The Tethering domain defines methods and events for browser port binding. // // Generated by the chromedp-gen command. package tethering // AUTOGENERATED. DO NOT EDIT. import ( "context" cdp "...
mit
conveyal/datatools-manager
lib/gtfsplus/components/GtfsPlusField.js
4631
// @flow import React, {Component} from 'react' import {FormControl} from 'react-bootstrap' import EditableTextField from '../../common/components/EditableTextField' import {getRouteName} from '../../editor/util/gtfs' import GtfsSearch from '../../gtfs/components/gtfs-search' import type {Props as GtfsPlusTableProps...
mit
Catel/Catel.Fody
src/Catel.Fody.TestAssembly.Shared/BackupTestModel.cs
265
namespace Catel.Fody.TestAssembly { using Catel.Data; public class BackupTestModel : ModelBase { [ExcludeFromBackup] public string A { get; set; } public string B { get; set; } public string C { get; set; } } }
mit
positive-js/mosaic
wallaby.js
354
module.exports = () => ({ autoDetect: true, files: [ 'packages/**/*.ts', "!packages/**/*.spec.ts", ], tests: [ "packages/**/*.spec.ts", "!packages/mosaic/schematics/**/*.spec.ts", "!packages/docs/**/*.*", "!packages/mosaic-dev/**/*.*", "!packages/...
mit
SmartPowerSocket/DesktopApp
app/components/Home.js
2456
import React, { Component, PropTypes } from 'react'; import { reduxForm, propTypes } from 'redux-form'; import styles from './Home.css'; import * as actions from '../actions/auth'; class Home extends Component { static contextTypes = { router: PropTypes.object }; static propTypes = { ...propTypes, ...
mit
Alec-WAM/CrystalMod
src/main/java/alec_wam/CrystalMod/CrystalMod.java
7606
package alec_wam.CrystalMod; import java.util.Collections; import java.util.Comparator; import java.util.Locale; import alec_wam.CrystalMod.api.CrystalModAPI; import alec_wam.CrystalMod.blocks.BlockCrystal.CrystalBlockType; import alec_wam.CrystalMod.blocks.ModBlocks; import alec_wam.CrystalMod.blocks.crops....
mit
ulisesantana/DAW
DOR/DOR_RECURSOS_UT5/numerosenInput.js
138
$(".classInput").keypress(function(e){ if((e.which!=8) && (e.which!=0) && (e.which<48 || e.which>57)) { return false; } });
mit
geex-arts/scrollity
src/utils/lethargy.ts
2165
export class Lethargy { lastUpDeltas = []; lastDownDeltas = []; deltasTimestamp = []; createInitialDeltas() { const results = []; for (let i = 1, ref = this.stability * 2; 1 <= ref ? i <= ref : i >= ref; 1 <= ref ? i++ : i--) { results.push(null); } return results; } constructor(p...
mit
lifeart/ember-hell-filters
addon/mixins/filter-group-message-receiver.js
2130
import Ember from 'ember'; const { get, set, run, RSVP, computed, merge } = Ember; export default Ember.Mixin.create({ _mapData: computed(function () { return {}; }), messageDebounce: computed(function () { return 50; }), _messageReceiver(uid,datum) { this._addDataToMap(uid,datum); this._debou...
mit
matarillo/dot-gimei
DotGimei/GenderIdentity.cs
501
using System; namespace DotGimei { /// <summary> /// ISO 5218に従って性自認を表現します。 /// </summary> public enum GenderIdentity { /// <summary>コード値0 不明</summary> NotKnown = 0, /// <summary>コード値1 男性</summary> Male = 1, /// <summary>コード値2 女性</summary> ...
mit
cizekm/dbfaker
src/Database/Driver/Driver.php
952
<?php namespace DbFaker\Database\Driver; use DbFaker\Config; use DbFaker\Database\Driver\Exception\UpdateException; abstract class Driver { /** @var Config */ protected $config = null; public function __construct(Config $config) { $this->config = $config; $this->connect($this->config); } abstract protec...
mit
zoedujeux/EI
src/EI/UserBundle/DependencyInjection/EIUserExtension.php
852
<?php namespace EI\UserBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and manages yo...
mit
sonata-project/SonataDoctrinePhpcrAdminBundle
tests/custom_bootstrap.php
1098
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Sonata\DoctrinePHPCRAdminBundle\Te...
mit
Masa331/pohoda
lib/pohoda.rb
527
require 'ox' require 'parser_core' require 'pohoda/requires' module Pohoda def self.parse(raw) parsed = Ox.load(raw, skip: :skip_none) if parsed.locate('dat:dataPack').any? Parsers::Dat::DataPackType.new(parsed.locate('dat:dataPack').first) elsif parsed.locate('rsp:responsePack').any? Parse...
mit
anchorchat/anchor-ui
src/checkbox/index.js
232
import Radium from 'radium'; import compose from 'recompose/compose'; import themeable from '../themeable'; import Checkbox from './component'; const enhance = compose( themeable(), Radium ); export default enhance(Checkbox);
mit
thesharp/daemonize
setup.py
1598
#!/usr/bin/python import re import ast from setuptools import setup, find_packages _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('daemonize.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) setup( name="daemonize", version=...
mit
vc3/ExoWeb
ExoWeb.UnitTests/JavaScriptTests.Helpers.cs
1860
using System; using ExoModel; using ExoWeb.UnitTests.Models.Requests; using Jurassic; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ExoWeb.UnitTests { public partial class JavaScriptTests { private static void Allocate(EventHandler onFinalized) { var data = new Request { Description = ...
mit
Chrisr850/Snake.io-player
test.py
583
import testnetwork as network import numpy as np import testPopulation def testCrossover(): x = network.network() x.graph('x') y = network.network() y.graph('y') z = x.crossover(y) x.mutation(1) combined_data = np.array([q[1][0],x.dna[1][0]]) _min, _max = np.amin(combined_data), np....
mit
cloew/kao-ng-auth
dist/kao_auth.js
3621
$traceurRuntime.ModuleStore.getAnonymousModule(function() { "use strict"; angular.module("kao.auth", ["kao.utils"]).value("userEvents", { login: "user-login", update: "user-update", logout: "user-logout" }).provider("AuthConfig", function() { this.configure = function(config) { for (var $__0...
mit
mllrsohn/gulp-protractor
index.js
3191
'use strict'; var es = require('event-stream'); var path = require('path'); var childProcess = require('child_process'); var PluginError = require('plugin-error'); var winExt = /^win/.test(process.platform) ? '.cmd' : ''; // optimization: cache for protractor binaries directory var protractorDir = null; function getP...
mit
MDE4CPP/MDE4CPP
src/common/umlReflection/src_gen/umlReflectionExec/InstanceSpecificationObject.cpp
38758
#include "umlReflectionExec/InstanceSpecificationObject.hpp" //General Includes #include "abstractDataTypes/SubsetUnion.hpp" #include "uml/InstanceSpecification.hpp" #include "umlReflection/UMLPackage.hpp" #include "fUML/Semantics/Loci/Locus.hpp" #include "uml/Class.hpp" //Includes From Composite Structures /*Not done...
mit
ehopealot/datastores-coloredboxes
ColoredBoxApp.js
1296
var DROPBOX_APP_KEY = '<YOUR APP KEY>'; function ColoredBox($el, record) { this.$square = $('.color-box', $el); this.$textbox = $('input', $el); this.record = record; this.update(); this.$textbox.on('focusout', this.changed.bind(this)); } ColoredBox.prototype.changed = function() { this.record.set('color', this...
mit
robo-coin/robocoin-wallet-source
src/qt/paymentserver.cpp
4505
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <QApplication> #include "paymentserver.h" #include "guiconstants.h" #include "ui_interface.h" #include "util.h" #i...
mit
dwslab/RoCA
src/main/java/de/dwslab/risk/gui/exception/RoCAException.java
368
package de.dwslab.risk.gui.exception; public class RoCAException extends RuntimeException { /** */ private static final long serialVersionUID = -6069816604710951328L; public RoCAException(String message) { super(message); } public RoCAException(String message, Throwable cause)...
mit
Mysh3ll/Pharma
app/src/main/java/fr/btssio/pharma/orm/runtime/util/handlers/IntegerResultSetHandler.java
710
package fr.btssio.pharma.orm.runtime.util.handlers; import android.database.Cursor; import android.database.SQLException; import fr.btssio.pharma.orm.runtime.util.ResultSetHandler; import java.util.LinkedList; import java.util.List; /** * Converts first column of every row in cursor into List<Integer>. */ public c...
mit