repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
isneezy/confere.js
test/Validators.js
9545
import ConfereJs from '../src/Confere' import validators from '../src/validators' var assert = require('assert') var expect = require('expect.js') describe('Validators', function () { describe('required', done => { it('should validate without error', done => { validators.required('name', 'Ivan').then(don...
mit
duritong/ruby-rhn_satellite
lib/rhn_satellite/activation_key.rb
135
module RhnSatellite class ActivationKey < RhnSatellite::Connection::Base collection 'activationkey.listActivationKeys' end end
mit
JamesRandall/WebAPI2MobileFacebookAuthentication
ExternalProviderAuthentication.Web/ExternalProviderAuthentication.Web/App_Start/RouteConfig.cs
627
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace ExternalProviderAuthentication.Web { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { ro...
mit
Efrem-berhe/Lost-and-Found
application/models/resolved_model.php
751
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Community Auth - Examples Model * * Community Auth is an open source authentication application for CodeIgniter 3 * * @package Community Auth * @author Robert B Gottier * @copyright Copyright (c) 2011 - 2017, Robert B Gottier...
mit
robertsj/ME701_examples
compiled/control_case.cc
245
#include <iostream> using std::cout; using std::endl; int main() { int a = 1; switch (a) { case 1: cout << "a=1" << endl; break; case 2: // do something break; default: cout << "hi" << endl; } }
mit
NeoPhi/overlap
tools/disabledTestCheck.js
1048
var fs = require('fs'); var _ = require('underscore'); var wrench = require('wrench'); var path = require('path'); var EXT_TEST = /\.spec\.js$/; var DISABLED_TEST = /^\s*(xdescribe|xit)\s*\(/m; function extFilter(name) { return EXT_TEST.test(name); } function testForDisabled(file) { var data = fs.readFileSync(fi...
mit
datashade/datashade-android
src/android/protype/datashade/StudentTest.java
156
package android.protype.datashade; class StudentTest extends Student { StudentTest() { super("Grady", "Jones"); this.AddGoal( new GoalTest() ); } }
mit
bploetz/roper
spec/lib/roper/repository_spec.rb
342
require "spec_helper" describe Roper::Repository do after :each do Roper::Repository.repositories.delete(:repo1) end let(:repo1) { Object.new } let(:repo2) { Object.new } it "registers repositories under a key" do Roper::Repository.register(:repo1, repo1) expect(Roper::Repository.for(:repo1)).t...
mit
zhangf911/mio
test/test_unix_echo_server.rs
8654
use mio::*; use mio::net::*; use mio::net::pipe::*; use mio::buf::{ByteBuf, SliceBuf}; use mio::util::Slab; use std::io::TempDir; use mio::event as evt; type TestEventLoop = EventLoop<usize, ()>; const SERVER: Token = Token(0); const CLIENT: Token = Token(1); struct EchoConn { sock: UnixSocket, buf: ByteBuf,...
mit
CDLUC3/stash
stash_datacite/app/mailers/stash_datacite/user_mailer.rb
875
module StashDatacite # app/mailers/stash_datacite/user_mailer.rb class UserMailer < ApplicationMailer default from: APP_CONFIG['feedback_email_from'], return_path: 'dash2-dev@ucop.edu' # an example call: # UserMailer.notification(['catdog@mailinator.com', 'dogdog@mailinator.com'], # ...
mit
imazen/repositext
spec/repositext/service/score_subtitle_alignment_using_stid_spec.rb
657
require_relative '../../helper' class Repositext class Service class Filename describe ScoreSubtitleAlignmentUsingStid do describe 'call' do [ ['1234', '1234', 10], ['1234', '2345', -11], ].each do |left_stid, right_stid, xpect| it "handles #...
mit
hi-ko-wi/SharpTk
SharpTk/NumericExt.cs
1003
// -------------------------------------------------------------------------------------------------------------------- // Copyright (c) 2017-2017 // for information on the creator and copyright owner, please see the author list bellow and the assembly // information file. // - // All rights are reserved. Reproducti...
mit
piecoin/picoin
src/util.cpp
36611
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "sync.h"...
mit
npetzall/http-double
server/src/main/java/npetzall/httpdouble/server/registry/ServiceDoubleRegistry.java
234
package npetzall.httpdouble.server.registry; import java.util.Map; public interface ServiceDoubleRegistry { ServiceDoubleRef getServiceDoubleByURLPath(String urlPath); Map<String, ServiceDoubleRef> getAllServiceDoubles(); }
mit
TyreeJackson/atomic
Atomic.Net.Tests/Host/IIS/IISHttpHandler - tests.cs
1425
using System; using System.Web; using AtomicNet.IIS; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; namespace AtomicNet.tests { [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] [TestClass] public class IISHttpHandlerTests { private Mock<WebHandler.Router> mockRouter;...
mit
robust-team/angular-forms
test/group/data-table.model.spec.ts
916
import { assert } from 'chai'; import { DataTable } from '../../src/group'; import { Text } from '../../src/question'; import { Required } from '../../src/validation'; describe('AngularForms :: Group :: DataTable', () => { it('should be instantiable', () => { assert.ok(new DataTable('G-01', 'A simple group', [[]...
mit
itkg/core
tests/Itkg/Tests/Core/Command/Provider/ServiceCommandProviderTest.php
2829
<?php /* * This file is part of the Itkg\Core package. * * (c) Interakting - Business & Decision * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Itkg\Tests\Core\Command\Provider; use Doctrine\DBAL\Configuration; use Do...
mit
diversiforge/bookvault
config/environments/production.rb
3795
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web serve...
mit
KobusGamification/Gamification
Gamification/SVNExtension/Badges/SVNLvUpThirty.cs
1453
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Extension; using Extension.Badge; using MongoDB.Bson; namespace SVNExtension.Badges { public class SVNLvUpThirty : IBadge { public ObjectId id { get; private set; } public B...
mit
ChristianGaertner/TextAdventure
src/de/cpgaertner/edu/inf/games/datacenter/command/interact/InteractCommandParser.java
1309
package de.cpgaertner.edu.inf.games.datacenter.command.interact; import de.cpgaertner.edu.inf.api.adapter.Adapter; import de.cpgaertner.edu.inf.api.command.Command; import de.cpgaertner.edu.inf.api.level.Location; import de.cpgaertner.edu.inf.api.parsing.CommandParser; import lombok.Setter; public class InteractComma...
mit
ReneMuetti/RFTools
src/main/java/mcjty/rftools/blocks/screens/ScreenRenderer.java
6768
package mcjty.rftools.blocks.screens; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mcjty.rftools.RFTools; import mcjty.rftools.blocks.screens.modulesclient.ClientScreenModule; import mcjty.rftools.blocks.screens.network.PacketGetScreenData; import mcjty.network.PacketHandler; im...
mit
chakrit/go-bunyan
format_sink_test.go
2054
package bunyan_test import "os" import "bytes" import "time" import "testing" import . "github.com/chakrit/go-bunyan" import a "github.com/stretchr/testify/assert" var _ Sink = NewFormatSink(&bytes.Buffer{}) func TestNewFormatSink(t *testing.T) { buffer := &bytes.Buffer{} sink := NewFormatSink(buffer) a.NotNil(t,...
mit
xtina-starr/reaction
src/__generated__/PaymentMultipleCreditCardsQuery.graphql.ts
6925
/* tslint:disable */ import { ConcreteRequest } from "relay-runtime"; import { UserSettingsPayments_me$ref } from "./UserSettingsPayments_me.graphql"; export type PaymentMultipleCreditCardsQueryVariables = {}; export type PaymentMultipleCreditCardsQueryResponse = { readonly me: ({ readonly " $fragmentRefs"...
mit
VKCOM/vk-java-sdk
sdk/src/main/java/com/vk/api/sdk/objects/donut/DonatorSubscriptionInfoStatus.java
644
// Autogenerated from vk-api-schema. Please don't edit it manually. package com.vk.api.sdk.objects.donut; import com.google.gson.annotations.SerializedName; import com.vk.api.sdk.queries.EnumParam; public enum DonatorSubscriptionInfoStatus implements EnumParam { @SerializedName("active") ACTIVE("active"), ...
mit
dmitrya2e/filtration-bundle
Filter/Filter/AbstractFilter.php
27386
<?php /* * This file is part of the Da2e FiltrationBundle package. * * (c) Dmitry Abrosimov <abrosimovs@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Da2e\FiltrationBundle\Filter\Filter; use D...
mit
Albeoris/Memoria
Assembly-CSharp/Global/ChocographUI.cs
16697
using System; using System.Collections.Generic; using Assets.Scripts.Common; using Assets.Sources.Scripts.UI.Common; using UnityEngine; using Object = System.Object; public class ChocographUI : UIScene { public override void Show(UIScene.SceneVoidDelegate afterFinished = null) { UIScene.SceneVoidDelegate sceneVoi...
mit
hdrezei/dotnetcore-rabbitmq
nyom/nyom.infra/Migrations/Crm/20170817180832_CrmMigration17082017-2.cs
4946
using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace nyom.infra.Migrations.Crm { public partial class CrmMigration170820172 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTabl...
mit
shuheikawai/robosys2015
scripts/PlayMusicRobot.py
246
#!/usr/bin/env python #For Raspberry Pi2 import rospy from std_msgs.msg import String def callback(message): rospy.loginfo("%s",message.data) rospy.init_node('PlayMusicRobot') sub = rospy.Subscriber('HandOff',String,callback) rospy.spin()
mit
wgcrouch/scrum-board
src/Itsallagile/UserBundle/DependencyInjection/ItsallagileUserExtension.php
769
<?php namespace Itsallagile\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 m...
mit
qweer28/library
application/views/page.php
87
<br> <br> <div class="col-md-offset-5"> <h1> 简易图书管理系统 </h1> </div>
mit
Mewel/abbyy-to-alto
src/main/java/org/mycore/xml/alto/v2/ProcessingSoftwareType.java
4012
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.04.18 at 03:28...
mit
ramonli/RabbitMQResearch
src/test/java/com/mpos/lottery/te/thirdpartyservice/amqp/RabbitFirehoseMessageConsumerMain.java
1220
package com.mpos.lottery.te.thirdpartyservice.amqp; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; public class RabbitFirehoseMessageConsumerMain { privat...
mit
vvromanov/hilo_utils
src/SignalWatcher.cpp
2311
#include <zconf.h> #include <execinfo.h> #include "SignalWatcher.h" #include "LogBase.h" on_signal_t *on_sighup = nullptr; on_signal_t *on_sigusr1 = nullptr; static ev_signal sigint; static ev_signal sighup; static ev_signal sigusr1; static ev_signal sigterm; static ev_signal sigquit; static ev_signal sigsegv; stati...
mit
tom-ogle/InterspireEmailMarketerClient
src/main/java/com/tomogle/iemclient/requests/subscribers/getsubscribers/response/GetSubscribersData.java
819
package com.tomogle.iemclient.requests.subscribers.getsubscribers.response; import com.tomogle.iemclient.requests.lists.response.Item; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import java.util.List; @XmlRootElement(name = "data") public class GetSubscribersData { ...
mit
Karasiq/scalajs-highcharts
src/main/scala/com/highstock/config/SeriesIkhStatesHoverMarkerStates.scala
2098
/** * Automatically generated file. Please do not edit. * @author Highcharts Config Generator by Karasiq * @see [[http://api.highcharts.com/highstock]] */ package com.highstock.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScript...
mit
arthurtcabral/crescer-2016-1
modulo-ajax/CdZ/src/CdZ.MVC/Global.asax.cs
596
using CdZ.MVC.CustomModelBinders; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace CdZ.MVC { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ...
mit
MrIbby/PaperMario
src/main/java/io/github/mribby/papermario/item/ItemStoneCap.java
1516
package io.github.mribby.papermario.item; import io.github.mribby.papermario.Game; import io.github.mribby.papermario.PaperMarioMod; import net.minecraft.entity.Entity; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemArmor; import net....
mit
bpgabin/super-wow
Assets/Scripts/Rotate.cs
215
using UnityEngine; using System.Collections; public class Rotate : MonoBehaviour { // Test public Vector3 speed; void Update () { transform.Rotate(speed * Time.deltaTime); } }
mit
jhass/js_image_paths
lib/js_image_paths.rb
124
require "js_image_paths/version" require "js_image_paths/engine" require "js_image_paths/generator" module JsImagePaths end
mit
nrser/nrser-ruby
spec/lib/nrser/props/immutable/hash_spec.rb
9288
# Propertied Immutable Hashes # ============================================================================ # # The {NRSER::Props::Immutable::Hash} module can be mixed into subclasses of # {Hamster::Hash} (an immutable {Hash}) to provide property encoding, # decoding and reading backed by the elements of the hash its...
mit
sric0880/unity-framework
tools/flatc/src/UF/GameSave/Vec3.cs
1144
// <auto-generated> // automatically generated by the FlatBuffers compiler, do not modify // </auto-generated> namespace UF.GameSave { using global::System; using global::FlatBuffers; public struct Vec3 : IFlatbufferObject { private Struct __p; public ByteBuffer ByteBuffer { get { return __p.bb; } } public vo...
mit
kohsuke/rngom
src/org/kohsuke/rngom/ast/builder/DataPatternBuilder.java
1784
/* * Copyright (C) 2004-2011 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, dist...
mit
jelder/bownse
main.go
1168
package main import ( "fmt" "github.com/codegangsta/negroni" "github.com/gorilla/mux" "github.com/phyber/negroni-gzip/gzip" "net/http" ) var ( client = &http.Client{} ) func WebhookHandler(w http.ResponseWriter, r *http.Request) { err := r.ParseForm() if err != nil { http.Error(w, err.Error(), http.StatusB...
mit
mcarvalho/pagarme-bad-code
index.js
1499
const http = require('http'); const { db, api } = require('./src') db('localhost/bad-code') /** * Get port from environment and store in Express. */ const port = normalizePort(process.env.PORT || '3000'); api.set('port', port); /** * Create HTTP server. */ const server = http.createServer(api); /** * Listen...
mit
cacheflowe/haxademic
src/com/haxademic/core/draw/textures/pgraphics/shared/PGraphicsWrapper.java
630
package com.haxademic.core.draw.textures.pgraphics.shared; import com.haxademic.core.app.P; import com.haxademic.core.draw.context.PG; import processing.core.PGraphics; public class PGraphicsWrapper { public int width; public int height; public PGraphics pg; public int lastUpdated; public PGraphicsWrapper(i...
mit
markstiles/SitecoreCognitiveServices
src/Feature/OleChat/code/Areas/SitecoreCognitiveServices/Controllers/CognitiveOleChatController.cs
5070
using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Mvc; using Newtonsoft.Json; using Sitecore.ContentSearch; using Sitecore.Data; using Sitecore.Data.Managers; using SitecoreCognitiveServices.Feature.OleChat.Areas.SitecoreCognitiveServices.Models; using Sitec...
mit
joe-re/todoistize-mail
spec/todoistize_mail/mailer_spec.rb
832
require 'spec_helper' describe TodoistizeMail::Mailer do let(:host) { 'test.com' } let(:port) { '111' } let(:usessl) { true } let(:imap) { double('imap') } before { expect(Net::IMAP).to receive(:new).with(host, port, usessl).and_return(imap) } describe '#login' do let(:user) { 'test_user' } let(...
mit
ByrdOfAFeather/AlphaTrion
Announcements/forms.py
335
from django import forms from .models import Announcement class AnnouncementForm(forms.ModelForm): """ Form to create an announcement object from :model:'Announcements.Announcement' """ class Meta: model = Announcement fields = '__all__' widgets = { 'occuring_date': forms.DateInput(attrs={'class': 'date...
mit
pilot/qa
src/Qa/UserBundle/Entity/User.php
3239
<?php namespace Qa\UserBundle\Entity; use Doctrine\ORM\Mapping as orm; use Doctrine\Common\Collections\ArrayCollection; /** * @orm\Entity * @orm\Table(name="user") */ class User { /** * @orm\Id * @orm\Column(type="integer") * @orm\GeneratedValue(strategy="AUTO") * * @var integer $id ...
mit
tonnystark/unishop
UniShop.Web/Models/ProductViewModel.cs
1298
using System; namespace UniShop.Web.Models { [Serializable] public class ProductViewModel { public int ID { set; get; } public string Name { set; get; } public string Alias { set; get; } public int CategoryID { set; get; } public string Image { set; get; } ...
mit
eparimbelli/FeroGrammer
src/it/ferogrammer/process/Nucleotide.java
454
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package it.ferogrammer.process; import java.awt.Color; /** * * @author enea */ public enum Nucleotide implements ColorableNucleotide{ A(Color.GREEN), C(Color.BLUE), T(Color.RED), G(Color.BLACK); private Colo...
mit
GuiNaud/waww
client/src/app/components/tvDetail/factory.js
749
(function() { 'use strict'; function TvDetailService($http, $log) { var service = {}; service.detailtv = []; var key = 'bb7f1b623e15f1c323072c6f2c7c8a2d'; service.getOneMovie = function(movieID){ return $http.get('http://api.themoviedb.org/3/tv/' + movieID,{ ...
mit
bhdm/wzc
src/Wzc/MainBundle/Form/PublicationType.php
1761
<?php namespace Wzc\MainBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class PublicationType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $opti...
mit
dmayer/idb
lib/gui/default_protection_class_group_widget.rb
914
module Idb class DefaultProtectionClassGroupWidget < Qt::GroupBox def initialize(args) super(*args) setTitle "Default Data Protection" @layout = Qt::GridLayout.new label = Qt::Label.new "<b>Default Data Protection</b>", self, 0 @val = Qt::Label.new "No default set in the entitleme...
mit
tangcongyuan/WPI_CS542_rms
assets/grocery_crud/themes/flexigrid/js/flexigrid.js
10063
$(function(){ $('.quickSearchButton').click(function(){ $(this).closest('.flexigrid').find('.quickSearchBox').slideToggle('normal'); }); $('.ptogtitle').click(function(){ if ($(this).hasClass('vsble')) { $(this).removeClass('vsble'); $(this).closest('.flexigrid').find('.main-table-box').slideDown("slow");...
mit
alvarlagerlof/temadagar-android
app/src/main/java/com/alvarlagerlof/temadagarapp/Search/SearchObject.java
1229
package com.alvarlagerlof.temadagarapp.Search; /** * Created by alvar on 2015-07-10. */ public class SearchObject { public String id; public String title; public String date; public String description; public String introduced; public Boolean international; public String website; publ...
mit
mtrovilho/serenity_now
lib/serenity_now/version.rb
94
## # Serenity module :) # module SerenityNow ## # Gem version # VERSION = '1.0.0' end
mit
TelerikAcademy/Data-Structures-and-Algorithms
Exams/2017/MiniExam3/3. Squares/solution.cs
965
using System; using System.Numerics; using System.Collections.Generic; namespace Square { class Program { static void Main() { var n = int.Parse(Console.ReadLine()); var m = int.Parse(Console.ReadLine()); if(n < m) { var k = n; n = m; m = k; } var masks = new List<int>(); for(i...
mit
imerr/SFMLEngine
include/Engine/Factory.hpp
2343
#ifndef ENGINE_FACTORY_HPP #define ENGINE_FACTORY_HPP #include "Scene.hpp" #include "SpriteNode.hpp" #include <json/json.h> #include <iostream> #include <fstream> #include <map> namespace engine { class Factory { protected: static std::map<std::string, std::function<Node*(Json::Value& root, Node* parent) >> m_ty...
mit
elemgee/TBFoundation
Frameworks/TBFoundation/Sources/org/treasureboat/foundation/constants/TBFKnownFrameworkNames.java
360
package org.treasureboat.foundation.constants; /** * a class for known Framework names so we don't have to Hardcode the names */ public class TBFKnownFrameworkNames { public static final String TBFOUNDATION = "TBFoundation"; public static final String TBCONTENTSDELIVERY = "TBContentsDelivery"; public static f...
mit
QuintiGames/ShootingforA
Assets/Scripts/Player Controll/VirtualJoystickRight.cs
255
using System.Collections; using System.Collections.Generic; using UnityEngine; public class VirtualJoystickRight : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }
mit
alex-semenyuk/cactoos
src/test/java/org/cactoos/map/SolidMapTest.java
2773
/** * The MIT License (MIT) * * Copyright (c) 2017 Yegor Bugayenko * * 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
baislsl/java-class-decompiler
src/main/java/com/baislsl/decompiler/instruction/LSHR.java
342
package com.baislsl.decompiler.instruction; import com.baislsl.decompiler.engine.Frame; import com.baislsl.decompiler.structure.attribute.Code; public class LSHR extends OperationInstruction { @Override public Executable build(Code code, Frame frame) { this.operator = ">>"; return super.build(...
mit
EquipeB/SOSFeevale
library/f5-framework/core/config.inc.php
1505
<?php date_default_timezone_set('America/Sao_Paulo'); //Diretórios da aplicação, se for na raiz do servidor, utilizar apenas uma "/" //define("DIRETORIO_BASE", "http://f5digital.noip.me"); define("DIRETORIO_BASE", "localhost"); define("DIRETORIO_INICIAL", "/sos-feevale/"); define("DIRETORIO_ADMIN", DIRETORIO_INICIAL....
mit
stonghuuloc/g3c
public/js/traoDoi/module.js
355
'user strict'; angular.module('g3cApp.traoDoi',['ngRoute']) .config(['$routeProvider', function config($routeProvider){ $routeProvider.when('/traodoi',{ controller:'traoDoiCtrl', templateUrl:'html/traodoi/traodoi.html' }). when('/traodoi/xacnhan',{ controller:'traoDoiCtrl', templateUrl:'html/traodoi...
mit
bitconnectcoin/bitconnectcoin
src/util.cpp
37969
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 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 "util.h" #include "sync.h" #include "strlcpy.h" #include "version.h" #inc...
mit
muquit/mrdialog
test/test_mrdialog.rb
224
require 'helper' class TestMrdialog < Test::Unit::TestCase should "probably rename this file and start testing for real" do flunk "hey buddy, you should probably rename this file and start testing for real" end end
mit
rosswhitfield/javelin
javelin/fourier.py
20115
""" ======= fourier ======= This module define the Fourier class and other functions related to the fourier transformation. """ import numpy as np import pandas as pd from javelin.grid import Grid from javelin.utils import get_unitcell, get_positions, get_atomic_numbers from javelin.fourier_cython import calculate_cyt...
mit
neoneye/newton-commander
source/copymove/test_copy/5001 rename source1/main.rb
464
def run op = FileOperation.new op.perform_copy do |source_name, target_name, name, collision_type| operation = :replace if name == 'file1.txt' operation = [:rename_source, 'file1_new.txt'] end operation end end def verify_source assert_source_file('file1.txt', /source/) assert_source_no...
mit
Grizzlybeardesignltd/davidcullimore
js/skrollr.js
48699
/*! * skrollr core * * Alexander Prinzhorn - https://github.com/Prinzhorn/skrollr * * Free to use under terms of MIT license */ (function(window, document, undefined) { 'use strict'; /* * Global api. */ var skrollr = { get: function() { return _instance; }, //Main entry point. init: function(op...
mit
mingchia-andy-liu/chrome-extension-nba
src/app/containers/Modal/reducers.js
521
import types from './types' import modalType from './modal-types' const initState = { isOpen: false, type: { modalType: modalType.DEFAULT, payload: {}, }, } export default (state = initState, action) => { switch (action.type) { case types.TOGGLE_MODAL: { return { isOpen: !state.isOpe...
mit
codeandcats/eggs-benny
src/commands/download.ts
11982
import * as path from 'path'; import { deleteFile, ensureDirectoryExists, getFileSize } from '../utils/files'; import * as commander from 'commander'; import { EggHead, Technology, Course, Lesson, LessonWithFileSize, CourseWithLessons, ProgressCallbacks } from '../egghead'; import * as chalk from 'chalk'; import { auth...
mit
nikk-dzhurov/JS
HW2/Problem 9. Point in Circle and outside Rectangle.js
831
//Problem 9. Point in Circle and outside Rectangle //Write an expression that checks for given point P(x, y) if it is within the circle //K( (1,1), 3) and out of the rectangle R(top=1, left=-1, width=6, height=2). //(x[i]*x[i] + y[i]*y[i]) <= radius*radius var x = [1,2.5,0,2.5,2,4,2.5,2,1,-100]; var y = [2,2,1,1,0,0,1...
mit
OhMedrano/vanilla_guitar
src/Components/GuitarBody.js
882
import '../../css/style.scss'; import MakeElement from '../Tools/MakeElement.js'; let newElement = new MakeElement; function GuitarBody(){ console.log('ayy'); return true } GuitarBody.prototype = { homeBody : function() { let body = newElement.createEle('div','home',[12,12,12,12],['guitarBodies','guitarCon...
mit
activecollab/jobsqueue
src/Queue/Queue.php
524
<?php /* * This file is part of the Active Collab Jobs Queue. * * (c) A51 doo <info@activecollab.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ declare(strict_types=1); namespace ActiveCollab\JobsQueue\Queue; use Psr\Log\LoggerInterface...
mit
Tr0nYx/AlphaTraderApiBundle
src/Api/Methods/SecurityOrderController.php
4440
<?php namespace Alphatrader\ApiBundle\Api\Methods; use Alphatrader\ApiBundle\Api\ApiClient; /** * Class SecurityOrderController * * @package Alphatrader\ApiBundle\Api\Methods */ class SecurityOrderController extends ApiClient { /** * @param $secIdent * @return \Alphatrader\ApiBundle\Model\Error|\Al...
mit
TeamYAGNI/LibrarySystem
LibrarySystem/LibrarySystem.Framework/Exceptions/UserAuthException.cs
1400
// <copyright file = "UserAuthException.cs" company="YAGNI"> // All rights reserved. // </copyright> // <summary>Holds implementation of UserAuthException class.</summary> using System; namespace LibrarySystem.Framework.Exceptions { /// <summary> /// Represent a <see cref="UserAuthException"/> class, inherit...
mit
DrPandemic/aigar.io
game/src/test/scala/io/aigar/game/AIStateSpec.scala
3899
import io.aigar.game._ import scala.math._ import org.scalatest._ import com.github.jpbetz.subspace._ class AIStateSpec extends FlatSpec with Matchers { "NullState" should "return the same instance as the cell's target" in { val player = new Player(0, Vector2(0f, 0f)) val cell = player.cells.head cell.ta...
mit
nico01f/z-pec
ZimbraSoap/src/java/com/zimbra/soap/admin/message/ReloadMemcachedClientConfigRequest.java
1111
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2011 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at ...
mit
manland/draw-my-project
template_src/src/chartView/legendView/LegendViewCtrl.js
302
angular.module('app').controller('LegendViewCtrl', [ '$scope', 'LegendViewService', 'ConstantsService', function($scope, legendViewService, constantsService) { $scope.isAngularjsType = constantsService.getType() === 'angularjs'; $scope.isJavaType = constantsService.getType() === 'java'; } ]);
mit
telemark/api.t-fk.no
test/testRecruitments.js
858
'use strict'; var request = require('supertest'); var server = require('../server'); var config = require('../config'); request = request('http://localhost:' + config.SERVER_PORT); describe('Server recruitments', function() { before(function() { server.start(); }); after(function() { server.stop(); ...
mit
fjogeleit/dynamic-form-bundle
Tests/Unit/Admin/Services/FormField/TemplateGuesserTest.php
1726
<?php namespace DynamicFormBundle\Tests\Unit\Admin\Services\FormField; use DynamicFormBundle\Admin\Services\FormField\TemplateGuesser; use DynamicFormBundle\Entity\DynamicForm\FormField; use DynamicFormBundle\Tests\Utility\TemplateGuesserTestCase; /** * @package DynamicFormBundle\Tests\Unit\Admin\Services\FormField...
mit
kimpiljae/driving_zone_admin
ckeditor/plugins/youtubebootstrap/dialogs/youtubebootstrap.js
1614
/** * @license Edit and use as you want * * Creato da TurboLab.it - 01/01/2014 (buon anno!) * Modified by Eric van Eldik */ CKEDITOR.dialog.add( 'youtubebootstrapDialog', function( editor ) { return { title: 'Insert YouTube', minWidth: 400, minHeight: 75, contents: [ ...
mit
kugao222/geneticAlgorithmInLua
ref/src/Chapter10/Brainy Aliens/CAlien.cpp
9513
#include "CAlien.h" //the vertices making up its shape const int NumAlienVerts = 19; const SPoint Alien[NumAlienVerts] = { SPoint(1,3), SPoint(4,1), SPoint(4,-1), SPoint(2,-4), ...
mit
YABhq/Quazar
fixture/Services/TeamService.php
5149
<?php namespace App\Services; use DB; use Illuminate\Support\Str; use App\Services\UserService; use App\Models\User; use App\Models\Team; use Illuminate\Support\Facades\Schema; class TeamService { /** * Team Model * @var Team */ public $model; /** * UserService * @var UserServic...
mit
ng-seed/universal
tools/test/style-processor.js
224
const babelJest = require('babel-jest'); module.exports = { process: function(src, filename) { if (filename.match(/\.(css|less|scss|styl|sss)$/)) return ''; return babelJest.process(src, filename); }, };
mit
faidi/JourEtMenu
src/JourEtMenu/JourEtMenuBundle/Controller/ReservationsController.php
3007
<?php namespace JourEtMenu\JourEtMenuBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use JourEtMenu\JourEtMenuBundle\Entity\Reservations; use JourEtMenu\JourEtMenuBundle\Entity\Menus; use JourEtMenu\JourEtMenuBundle\Form\ReservationsType; use Sensio\Bundle\FrameworkExtraBundle\Configurati...
mit
crod93/googlePlacesEx-react-native
node_modules/react-native-code-push/windows/CodePushNativeModule.cs
11672
using Newtonsoft.Json.Linq; using ReactNative; using ReactNative.Bridge; using ReactNative.Modules.Core; using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Threading.Tasks; using Windows.Web.Http; namespace CodePush.ReactNative { internal class CodePushNativeMod...
mit
Luatix/OpenEx
openex-platform/openex-api/src/Kernel.php
2086
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Kernel as BaseKernel; use Symfony\Compo...
mit
stoeffel/react-motion-drawer
lib/styles.js
1537
export default function(val, props) { const { zIndex, left, right, height, handleWidth, overlayColor, fadeOut, offset } = props; let clientWidth = 1000; let width = props.width; if (typeof document !== "undefined") { clientWidth = document.body.clientWidth; if (/\D/.t...
mit
jakewendt/rails_extension
generators/rails_extension/rails_extension_generator.rb
2577
class RailsExtensionGenerator < Rails::Generator::Base def manifest # See Rails::Generator::Commands::Create # rails-2.3.10/lib/rails_generator/commands.rb # for code methods for record (Manifest) record do |m| File.open('.autotest','a'){|f| f.puts <<-EOF # From `script/generate simply_testable` ... D...
mit
apo-j/Projects_Working
EC/espace-client-dot-net/EspaceClient.BackOffice.Services.Implementations/ServiceTraductionCategorieClient.Generated.cs
3461
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-------...
mit
ARCANESOFT/Blog
src/Models/Post.php
9321
<?php namespace Arcanesoft\Blog\Models; use Arcanedev\LaravelSeo\Traits\Seoable; use Arcanesoft\Blog\Blog; use Arcanesoft\Blog\Events\Posts as PostEvents; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Arr; use Illuminate\Support\Facades\DB; use Illuminat...
mit
EkalayaProject/Sebar
codes/shortcodes/custom/custom.shortcode.php
5706
<?php /** * Prevent the file accessed directly */ if ( ! defined( 'ABSPATH' ) ) die( 'Cheating, uh?' ); class VcsShortcodeCustom { private $viral; private $options; private $extensionOptions; private $randSlider; private $notAvailableImage; public function __construct( &$viral, &$options, &$extensionOptions, ...
mit
vault/bugit
common/redis_client.py
293
import redis #redis_pool = redis.ConnectionPool(host='localhost', port=6379, db=0) class CommandQueue: queue = 'bugit_processing_queue' users = 'bugit_processing_users' processing = 'bugit_in_progress' def redis_db(): return redis.Redis(host='localhost', port=6379, db=0)
mit
jordanco/drafter-frontend
src/app/components/email_suggestion/index.js
2954
import React, { Component } from 'react'; export default () => { return ( <div className="suggestions" data-ix="hide-initial-off-600-left"> <div className="title-background-white"> <div className="suggestions-title">Suggestions</div> </div> <div className="template...
mit
mathieumack/MvvX.Plugins.HockeyApp
MvvX.Plugins.HockeyApp.MoqUnitTest/MoqHockeyAppException.cs
439
using System; using System.Collections.Generic; using System.Text; namespace MvvX.Plugins.HockeyApp.MoqUnitTest { public class MoqHockeyAppException { /// <summary> /// Current exception /// </summary> public Exception Exception { get; set; } /// <summary> /// ...
mit
stoplightio/gitlabhq
db/migrate/20180113220114_rework_redirect_routes_indexes.rb
2964
# See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. class ReworkRedirectRoutesIndexes < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. DOWNTIM...
mit
hansl/devkit
tests/@angular_devkit/build_optimizer/webpack/aio-app/src/app/navigation/navigation.model.ts
1549
/** * @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 */ // Pulled all interfaces out of `navigation.service.ts` because of this: // https://github.com/angular/angular-cli/is...
mit
WHCIBoys/nitpik-web
src/reducers/profile.js
581
import * as I from 'immutable'; import * as C from '../constants'; import * as ReduxActions from 'redux-actions'; const INITIAL_STATE = I.fromJS({ nits: [], friendships: [], }); export default ReduxActions.handleActions({ [C.PROFILE_ACTIONS.LOAD_USER_NITS_SUCCESS]: (state, { payload }) => { const { nits } =...
mit