repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
i-am-a-kernel/angular-global
src/app/pages/new-course/new-course.routes.ts
505
import { Routes, RouterModule } from '@angular/router'; import { NewCourse } from './new-course.component'; import { LoggedInGuard } from "../../core/services/index"; // Route Configuration const newCourseRouter: Routes = [ { path: 'courses/new', component: NewCourse, canActivate: [LoggedInGuard], data: {breadcrumb:"...
mit
intrepion/ember-2015-tdd-by-example
app/controllers/todos.js
614
import Ember from 'ember'; export default Ember.Controller.extend({ needs: 'application', isActiveRoute: Ember.computed.equal('controllers.application.currentRouteName', 'todos.index'), actions: { assign: function(todo) { todo.set('status_code', 2); } }, unassigned: function() { return this...
mit
syonfox/PixelPlanetSandbox
haxe/export/linux64/cpp/obj/src/openfl/display3D/textures/TextureBase.cpp
7955
#include <hxcpp.h> #ifndef INCLUDED_openfl__legacy_events_EventDispatcher #include <openfl/_legacy/events/EventDispatcher.h> #endif #ifndef INCLUDED_openfl__legacy_events_IEventDispatcher #include <openfl/_legacy/events/IEventDispatcher.h> #endif #ifndef INCLUDED_openfl__legacy_gl_GLFramebuffer #include <openfl/_legac...
mit
achrafYne/restaurants-guide
src/Application/Sonata/MediaBundle/Entity/Media.php
1413
<?php /** * This file is part of the <name> project. * * (c) <yourname> <youremail> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Application\Sonata\MediaBundle\Entity; use Sonata\MediaBundle\Entity\BaseMedia as Base...
mit
kelastutorial/kelastutorial-web-app
application/views/tutorials/html/left_sidebar.php
7801
<div class="tutorial-wall"></div> <div class="container" style="height:auto;width:100%;padding-top:30px;"> <div class="row"> <div class="col s12 m12 l3 hide-on-tablet"> <div class="left-sidebar-container"> <div class="grey lighten-...
mit
jenavarro/AllRules
packages/custom/rules/server/models/rule.js
1875
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Rule Schema */ var RuleSchema = new Schema({ created: { type: Date, default: Date.now }, name: { type: String, required: true, trim: true }, execWhenKey: { type: Str...
mit
RNanoware/robsonwebsite
actions/editsettings.php
926
<?php require '../config.php'; require 'passwordHash.php'; if (isset($_FILES['avatar']['size']) && !empty($_FILES['avatar']['size'])) { list($width, $height) = getimagesize($_FILES['avatar']['tmp_name']); if ($_FILES['avatar']['type'] == "image/gif" && $_FILES['avatar']['size'] / 1024 < 15 && $width == "...
mit
ArcherSys/ArcherSys
Producktiviti/owncloud/lib/public/iservercontainer.php
4620
<?php /** * ownCloud * * @author Thomas Müller * @copyright 2013 Thomas Müller deepdiver@owncloud.com * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3...
mit
PauliNiva/Sotechat
src/main/webapp/services/connectToServer.srvc.js
1805
/** * Palvelu huolehtii websocket-yhteyden muodostuspyynnosta * palvelimeen ja pitaa yhteyden elossa * kontrollerien valilla liikuessa. */ angular.module('commonMod') .service('connectToServer', ['stompSocket', '$timeout', '$window', function (stompSocket, $timeout, $window) { /** Serverin map...
mit
inanimatt/shufti
src/Shufti/DataBundle/Entity/DetailRepository.php
261
<?php namespace Shufti\DataBundle\Entity; use Doctrine\ORM\EntityRepository; /** * DetailRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class DetailRepository extends EntityRepository { }
mit
migrap/Migrap.AspNet.Multitenant
src/Migrap.AspNet.Multitenant/BuilderExtensions.cs
698
using Microsoft.AspNet.Builder; namespace Migrap.AspNet.Multitenant { public static class BuilderExtensions { public static IApplicationBuilder UseMultitenant(this IApplicationBuilder builder) { return builder.UseMiddleware<MultitenantMiddleware>(); } #if OPTIONS p...
mit
Maplenormandy/list-62x
python/dataProcessing/linearPlots.py
522
import pandas as pd import matplotlib.pyplot as plt import numpy as np data = pd.read_csv(open('optimalPointsWmask_16s.csv')) data['Exposure 0'] = data['Shutter 0']*data['Gain 0']/16.0 data['Exposure 1'] = data['Shutter 1']*data['Gain 1']/16.0 data['Exposure 1 Pred'] = np.clip(111.2148 + 0.6940*data['Exposure 0'] - ...
mit
CarpeDiemCoin/CarpeDiemLaunch
src/qt/locale/bitcoin_ru.ts
135474
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ru" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Carpediemcoin</source> <translation>&amp;О Carpediemcoin</translatio...
mit
jkbaumohl/kb_PRINSEQ
lib/src/us/kbase/kbprinseq/InputPRINSEQ.java
4922
package us.kbase.kbprinseq; import java.util.HashMap; import java.util.Map; import javax.annotation.Generated; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.Json...
mit
wangyanxing/Demi3D
src/tools/HonViewer/ViewerHelper.cpp
971
/********************************************************************** This source file is a part of Demi3D __ ___ __ __ __ | \|_ |\/|| _)| \ |__/|__| || __)|__/ Copyright (c) 2013-2014 Demi team https://github.com/wangyanxing/Demi3D Released under the MIT License https://github.com/wangyanxing/De...
mit
acrogame/acro
models/Game.ts
2738
/** * Game.ts * * Any classes, enums, or interfaces related to a Game. * */ import {IRoundVM, IRound, Round, ROUND} from './Round'; /** * GAME_STATUS * * An enum representing the Game's status. It should be used as a flag for * whether or not a Game is: * * 1. INACTIVE, meaning there aren't enough peo...
mit
kony/OAuthSample
visualizer code/KonySampleOAuth/studioactions/mobile/AS_Button_2f8c25a88a484dddbbc4890a9131bc3c.js
99
function AS_Button_2f8c25a88a484dddbbc4890a9131bc3c(eventobject) { return fbLogin.call(this); }
mit
kdzwinel/betwixt
src/dt/cm/overlay.js
3049
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // Utility function that allows modes to be combined. The mode given // as the base argument takes care of most of the normal mode // functionality, but a second (typically simple) mode is use...
mit
MrAsimov/architecture-styles-patterns
builder/src/main/java/com/design/builder/Animal.java
1263
/* * MIT License * * Copyright (c) 2017 Andy Holst * * 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, modif...
mit
dgoldman916/nyu-python
class1/session_6/while_loop.py
272
#!/usr/bin/env python3 import sys def conditional(): a = int(sys.argv[1]) b = int(sys.argv[2]) if ( a > b ): print("a > b") elif ( a < b ): print("a < b") else: print("a = b") if __name__ == '__main__': conditional()
mit
gjb7/is217-unit-test
js/main.js
1260
(function(global) { var $ = global.$, QUnit = global.QUnit; QUnit.test("prettyDate.format", function() { function date(then, expected) { QUnit.equal(prettyDate.format("2008/01/28 22:25:00", then), expected); } date("2008/01/28 22:24:30", "just now"); date("2008/01/28 22:25:30", "just now"); date("...
mit
MarcinMilewski/sqap
sqap-auth/src/main/java/com/sqap/auth/domain/UserRepository.java
237
package com.sqap.auth.domain; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Repository; public interface UserRepository { UserDetails loadUserByUsername(String username); }
mit
reutnagar/plastic-tableware
app/controllers/email.controller.js
2108
var nodemailer = require("nodemailer"); var Order = require('../models/Order'); var qs = require('querystring'); module.exports = { sendEmailserver: sendEmailserver, }; function sendEmailserver(req, res) { console.log("send Mail"); var body = ''; req.on('data', function (data) { body += data;...
mit
saraswatisc/seminar
application/views/peserta/sidebar.php
2982
<aside class="main-sidebar"> <!-- sidebar: style can be found in sidebar.less --> <section class="sidebar"> <!-- Sidebar user panel --> <div class="user-panel"> <div class="pull-left"> <!-- <?php //echo $this->session->userdata('f...
mit
mkoitzu/uc2-poc
src/client/app/+dragndrop/index.ts
158
/** * This barrel file provides the export for the lazy loaded HomeComponent. */ export * from './dragndrop.component'; export * from './dragndrop.routes';
mit
dollarshaveclub/furan
vendor/github.com/jackc/pgx/v4/pgxpool/stat.go
768
package pgxpool import ( "time" "github.com/jackc/puddle" ) type Stat struct { s *puddle.Stat } func (s *Stat) AcquireCount() int64 { return s.s.AcquireCount() } func (s *Stat) AcquireDuration() time.Duration { return s.s.AcquireDuration() } func (s *Stat) AcquiredConns() int32 { return s.s.AcquiredResource...
mit
ilogue/scrolls
test/viewtestcase.py
1306
from pyramid import testing from test.ditestcase import DITestCase from test.redirectioncontextmanager import RedirectionContextManager from mock import Mock class ViewTestCase(DITestCase): def setUp(self): super(ViewTestCase, self).setUp() self.pyramidconfig = testing.setUp() self.reques...
mit
quekshuy/go-sg-cinema-scraper
data/types.go
403
package data type Movie struct { Duration int // in mins Description string Title string CinemaName string ShowTimes []string } type Cinema struct { Name string Movies []*Movie } // URL, context for this current URL (basically a nest hierarchy), // channel for cinemas, channel for movies...
mit
ryfeus/lambda-packs
HDF4_H5_NETCDF/source2.7/Cython/Build/Dependencies.py
43610
from __future__ import absolute_import, print_function import cython from .. import __version__ import os import shutil import hashlib import subprocess import collections import re, sys, time from glob import iglob from io import open as io_open from os.path import relpath as _relpath from distutils.extension import...
mit
eapearson/kbase-ui
src/plugins/narrativemanager/modules/views/NewNarrative.js
5501
define([ 'preact', 'htm', '../reactComponents/OpenNarrative', '../narrativeManager', '../reactComponents/Loading', '../reactComponents/ErrorAlert', 'bootstrap' ], ( preact, htm, OpenNarrative, NarrativeManagerService, Loading, ErrorAlert ) => { const { h, Compon...
mit
jotaelesalinas/php-rwgen
src/Writers/ConsoleVarDump.php
246
<?php namespace JLSalinas\RWGen\Writers; use JLSalinas\RWGen\Writer; class ConsoleVarDump extends Writer { protected function outputGenerator() { while (($data = yield) !== null) { var_dump($data); } } }
mit
stagedhomes/iahsp-2017
assets/js/angular/controllers.js
2768
(function() { angular.module("iahsp2017") .controller("ctrlSendEmail", ["$scope", "$http", "factorySendEmail", "vcRecaptchaService", function($scope, $http, factorySendEmail, vcRecaptchaService){ $scope.contactDetails = factorySendEmail.contact; var btnSubmit = document.getElementByI...
mit
pinax/django-mailer
src/mailer/management/commands/purge_mail_log.py
929
import logging from django.core.management.base import BaseCommand from mailer.models import MessageLog, RESULT_SUCCESS, RESULT_FAILURE RESULT_CODES = { 'success': [RESULT_SUCCESS], 'failure': [RESULT_FAILURE], 'all': [RESULT_SUCCESS, RESULT_FAILURE] } logger = logging.getLogger(__name__) class Command(...
mit
HonzaMikula/masivnipostele
vendor/passwordlib/passwordlib/test/Unit/Password/Implementation/JoomlaTest.php
5275
<?php use PasswordLib\Core\Strength\Medium as MediumStrength; use PasswordLibTest\Mocks\Random\Generator as MockGenerator; use PasswordLib\Password\Implementation\Joomla; require_once 'Password_TestCase.php'; class Unit_Hash_Implementation_JoomlaTest extends Unit_Password_Implementation_Password_TestCase { prot...
mit
westoncolemanl/tabbr-web
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/5_AdjudicatorAllocationSetting/MinimumRelevantAdjudicatorPointChartControls/index.js
1610
import React, { PureComponent } from 'react' import Card, { CardContent } from 'material-ui/Card' import { NumberInput } from 'components' export default class extends PureComponent { constructor () { super() this.state = { adjudicatorPoint: '', error: false } } componentWillMount () ...
mit
mind0n/hive
Cache/Libs/net46/ndp/fx/src/commonui/System/Drawing/Advanced/StringAlignment.cs
1996
//------------------------------------------------------------------------------ // <copyright file="StringAlignment.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------...
mit
constantcontact/open-performance-platform
opp-service/src/main/java/com/opp/dto/ux/CustomUserTimingsAgg.java
759
package com.opp.dto.ux; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by ctobe on 6/13/17. */ @JsonIgnoreProperties(ignoreUnknown = true) public class CustomUserTimingsAgg extends WptTr...
mit
FubarDevelopment/WebDavServer
test/FubarDev.WebDavServer.Tests/Support/ServiceBuilders/ILockServices.cs
336
// <copyright file="ILockServices.cs" company="Fubar Development Junker"> // Copyright (c) Fubar Development Junker. All rights reserved. // </copyright> using System; namespace FubarDev.WebDavServer.Tests.Support.ServiceBuilders { public interface ILockServices { IServiceProvider ServiceProvider { g...
mit
fgreinacher/corefx
src/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Ssl.cs
12683
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Security.Cryptography.X50...
mit
Driftrock/chronos
spec/lib/chronos/worker_spec.rb
4801
require 'spec_helper' require './lib/chronos/worker' require './lib/chronos/errors' module Chronos RSpec.describe Worker do let(:job_type) { 'test_job_type' } let(:scope) { 'this_is_a_scope' } before do stub_const 'DummyWorker', Class.new DummyWorker.class_eval do include Chronos::Wor...
mit
xaxa89/mitmproxy
mitmproxy/ctx.py
150
import mitmproxy.master # noqa import mitmproxy.log # noqa master = None # type: "mitmproxy.master.Master" log = None # type: "mitmproxy.log.Log"
mit
aloisdeniel/Microcharts
Sources/Microcharts.Samples.iOS/ViewController.cs
3154
using System; using UIKit; using Microcharts.iOS; using System.Linq; namespace Microcharts.Samples.iOS { public partial class ViewController : UIViewController { protected ViewController(IntPtr handle) : base(handle) { // Note: this .ctor should not contain any initialization logic. } private UIView Cr...
mit
jbaldwin/project_euler
lib/permutations.php
418
<?php function permutate($str) { $permutations = array(); _permutate("", $str, $permutations); return $permutations; } function _permutate($prefix, $str, &$permutations) { $len = strlen($str); if($len == 0) { array_push($permutations, $prefix); } else { for($i = 0; $i < $len; $i++) { _permutate($prefix ....
mit
hoovercj/vscode
extensions/css-language-features/client/src/cssClient.ts
6766
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
erikdesjardins/slack-irc
test/username-decorator.test.js
1279
import chai from 'chai'; import { highlightUsername } from '../lib/helpers'; chai.should(); describe('Bare Slack Username Replacement', () => { it('should replace `username` with `@username`', () => { const message = 'hey username, check this out'; const expected = 'hey @username, check this out'; const ...
mit
FlexPress/plugin-bitly
src/FlexPress/Plugins/Bitly/Bitly.php
561
<?php namespace FlexPress\Plugins\Bitly; use FlexPress\Components\Hooks\Hooker; use FlexPress\Plugins\AbstractPlugin; class Bitly extends AbstractPlugin { /** * @var \FlexPress\Components\Hooks\Hooker */ protected $hooker; public function __construct(Hooker $hooker) { $this->hooker...
mit
HEXA-UA/supervisor-manager
components/gridView/views/gridTemplate.php
1162
<div class="box lteGridTemplate"> <?php if ($this->context->tableTitle):?> <div class="box-header"> <h3 class="box-title"><?php echo $this->context->tableTitle;?></h3> <div class="box-tools pull-right"></div> </div> <?php endif;?> <!-- /.box-header --> <div class=...
mit
bbondy/brightray
browser/net/devtools_network_transaction.cc
9698
// Copyright (c) 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-CHROMIUM file. #include "browser/net/devtools_network_transaction.h" #include "browser/net/devtools_network_controller.h" #include "browser/net/devtools_ne...
mit
d4l3k/ubc-course
server/config/environment/production.js
586
'use strict'; // Production specific configuration // ================================= module.exports = { // Server IP ip: process.env.OPENSHIFT_NODEJS_IP || process.env.IP || undefined, // Server port port: process.env.OPENSHIFT_NODEJS_PORT || process.env.PORT || ...
mit
TzuChieh/Photon-v2
EngineTest/Source/Math/TMatrix3_test.cpp
2844
#include <Math/TMatrix3.h> #include <gtest/gtest.h> typedef ph::TMatrix3<float> Matrix; namespace { void expect_all_zero(const Matrix& matrix) { EXPECT_EQ(matrix.m[0][0], 0.0f); EXPECT_EQ(matrix.m[0][1], 0.0f); EXPECT_EQ(matrix.m[0][2], 0.0f); EXPECT_EQ(matrix.m[1][0], 0.0f); EXPECT_EQ(matrix.m[1][1], 0....
mit
annapowellsmith/openpresc
openprescribing/dmd/models.py
7442
"""These models correspond with a subset of the tables whose schema is implied by the raw D+MD XML. There are no migrations for these models; the tables and their contents are generated directly from raw XML files by the `import_dmd` management command. We use the `db_table` attribute to set table names to match the ...
mit
kevinansfield/Ghost
core/server/web/well-known.js
650
const express = require('express'); const settings = require('../services/settings/cache'); const jose = require('node-jose'); const dangerousPrivateKey = settings.get('ghost_private_key'); const keyStore = jose.JWK.createKeyStore(); const keyStoreReady = keyStore.add(dangerousPrivateKey, 'pem'); const getSafePublicJ...
mit
xml315xiao/MCodeigniter
application/modules/front/services/User_service.php
120
<?php class User_service extends MY_Service { public function test() { echo '================='; } }
mit
acumb/LatticeDNAOrigami
tests/src/test_random_gens.cpp
5293
#include <catch.hpp> #define private public #define protected public #include "parser.h" #include "nearest_neighbour.h" #include "domain.h" #include "files.h" #include "simulation.h" #include "test_origami_system.h" using std::cout; using namespace Parser; using namespace Utility; using namespace Files; using names...
mit
portchris/NaturalRemedyCompany
src/app/code/core/Mage/Checkout/Model/Cart/Shipping/Api/V2.php
1188
<?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
naudet/ARCHITECTURE_LOGICIEL_DEBOUT_NAUDET
LetterGame/src/main/java/fr/esiea/unique/binome/name/dictionary/Game.java
3286
package fr.esiea.unique.binome.name.dictionary; public class Game { public static Lettre potCommun[] = new Lettre [25]; Player joueur1 = new Player(false); Player joueur2 = new Player(false); public static void remplirLePotCommun (Lettre lettre) { int flag=0; for(int i = 0; i<potCommun.length; i++) { if...
mit
ccxt/ccxt
examples/ccxt.pro/py/many-exchanges-many-symbols-watch-trades.py
1582
# -*- coding: utf-8 -*- import ccxtpro from asyncio import gather, get_event_loop async def symbol_loop(exchange, symbol): print('Starting the', exchange.id, 'symbol loop with', symbol) while True: try: trades = await exchange.watch_trades(symbol) now = exchange.milliseconds()...
mit
mgoeminne/github_etl
src/test/scala/gh/test/gh2013/model/GollumPageTest.scala
710
import gh2011.models.Repository import gh2013.models.{GollumPage, PullRequest} import net.liftweb.json._ import org.scalatest.{FlatSpec, Matchers} class GollumPageTest extends FlatSpec with Matchers { "A valid GollumPage" must "be correctly parsed" in { val json = parse( """ | { ...
mit
Sukrat/dj-suggester
build/app/services/authentication.service.spec.js
4184
"use strict"; var testing_1 = require("@angular/core/testing"); var platform_browser_1 = require("@angular/platform-browser"); var app_export_models_1 = require("../app.export.models"); var app_export_services_1 = require("../app.export.services"); describe('AuthenticationService:', function () { var authentication...
mit
Coyotealone/Coyote
html2pdf/lib/Html2Pdf/src/_tcpdf/fonts/utils/makefont.php
16269
<?php //============================================================+ // File name : makefont.php // Begin : 2004-12-31 // Last Update : 2010-03-19 // Version : 1.2.006 // License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html) // -------------------------------------------------------------------...
mit
ConnorMac/stokvel.io
etc/base_image/server/fabric_tasks.py
4446
from fabric.api import env, local, run, cd import dotenv import os # Load local .env file from fabric.contrib.project import rsync_project, upload_project from fabric.operations import sudo env.local_dotenv_path = os.path.join(os.path.dirname(__file__), './.server.env') env.local_dir = os.path.dirname(__file__) doten...
mit
HalcyonandHijinks/formBuilder
gulpfile.babel.js
6867
'use strict'; import gulp from 'gulp'; import gulpPlugins from 'gulp-load-plugins'; import bsync from 'browser-sync'; import pkg from './package.json'; const files = pkg.config.files; // Rather than manually defined each gulp plugin we need, gulpPlugins defines them for us. var plugins = gulpPlugins(), // for exec...
mit
plumer/codana
tomcat_files/6.0.0/StandardServiceMBean.java
1989
/* * Copyright 1999,2004 The Apache Software Foundation. * * 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...
mit
ofuangka/prop-messages
ui/src/app/app-routing.module.ts
769
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ConversationListComponent } from './conversation-list/conversation-list.component'; import { MessagesComponent } from './messages/messages.component'; import { PhoneCallComponent } from './phone-call/phone-call.co...
mit
ProfilerTeam/Profiler
protected/vendors/Zend/CodeGenerator/Php/Method.php
6300
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
mit
Druwerd/http_mailer
spec/mandrill/mandrill_service_handler_spec.rb
706
require 'spec_helper' describe HttpMailer::MandrillServiceHandler do describe "#send_message" do let(:settings){ {:host => "mandrillapp.com", :api_key => "1234567890"} } let(:mailer){ HttpMailer::MandrillServiceHandler.new(settings) } let(:from){ "papa@prose.com"} let(:from_name){ "Ernest Hemingwa...
mit
mark-rushakoff/influxdb
ui/src/variables/components/UpdateVariableOverlay.tsx
7729
// Libraries import React, {PureComponent, FormEvent} from 'react' import _ from 'lodash' import {connect} from 'react-redux' import {withRouter, WithRouterProps} from 'react-router' // Components import { Form, Input, Button, Grid, Dropdown, Columns, Overlay, } from '@influxdata/clockface' import Variab...
mit
mattvv/hectorsharp
lib/Apache/Cassandra 0.6.0/InvalidRequestException.cs
2166
/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.IO; using Thrift; using Thrift.Collections; using Thrift.Protocol; using Thrift.Transport; namespace Apache....
mit
adaluo/SimonTan
RealEstate/app/listings/controllers.js
1765
/// <reference path="../_all.ts" /> 'use strict'; var app; (function (app) { var listings; (function (listings) { var ListingsController = (function () { function ListingsController(scope, accountService, logger, location, NotifyingCache, $i18next) { var self = this; ...
mit
ivaylokanov/Java_OOP_Basics
c_inheritance/c_inheritance-lab/src/pr04_fragileBaseClass/Food.java
54
package pr04_fragileBaseClass; public class Food { }
mit
jesjens/jesdob
src/se/jesjens/jesdob/query/condition/HasNotAttributeCondition.java
2085
/** * Copyright (C) 2012 - 2013 Jens Stääf * * JeSDOb (Jens Simple Dynamic Objects) * * 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 ...
mit
dmsovetov/relight
src/relight/baker/IndirectLight.cpp
2864
/************************************************************************** The MIT License (MIT) Copyright (c) 2015 Dmitry Sovetov https://github.com/dmsovetov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ...
mit
kushniryb/minfraud-api-v2
lib/minfraud/model/email.rb
1689
# frozen_string_literal: true require 'minfraud/model/abstract' require 'minfraud/model/email_domain' module Minfraud module Model # Model containing information about the email address. class Email < Abstract # An object containing information about the email domain. # # @return [Minfraud...
mit
Catgov/12_whitehall
test/test_helper.rb
6180
$:.unshift(File.dirname(__FILE__)) ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) if ENV["TEST_COVERAGE"] Bundler.require(:test_coverage) SimpleCov.start 'rails' SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter end require 'rails/test_help' require 'mocha/setup...
mit
getcanal/boat
docs/src/components/app-marked/app-marked.tsx
397
import { Component, Prop, State } from '@stencil/core'; @Component({ tag: 'app-marked', }) export class AppMarked { @Prop() doc: any; @State() content: any; ionViewWillLoad() { fetch(`/docs-content/${this.doc}`) .then(response => response.text()) .then(data => this.content = data) } render() ...
mit
razsilev/TelerikAcademy_Homework
High-Quality_Code/21_Mocking with Moq and JustMock/Mocking with Moq and JustMock-Demos/Cars.Tests.JustMock/Mocks/JustMockCarsRepository.cs
1255
namespace Cars.Tests.JustMock.Mocks { using Cars.Contracts; using Cars.Models; using System.Linq; using Telerik.JustMock; public class JustMockCarsRepository : CarRepositoryMock, ICarsRepositoryMock { protected override void ArrangeCarsRepositoryMock() { this.CarsDa...
mit
rezoh/Skeleton-Stylus
gulpfile.js
515
var gulp = require('gulp'); var stylus = require('gulp-stylus'); var sourcemaps = require('gulp-sourcemaps'); var skeletonStyl = './stylus/skeleton.styl'; gulp.task('stylus', function () { gulp.src(skeletonStyl) .pipe(sourcemaps.init()) .pipe(stylus({ compress: true })) ...
mit
jodier/tmpdddf
web/private/tine20/library/Zend/OpenId/Extension/Sreg.php
8982
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license a...
mit
duivvv/points-to-vertices
__tests__/pointToVertex.test.js
3907
import pointToVertex from '../src/lib/pointToVertex'; describe(`returns the correct values`, () => { it(`returns correct vertices (x, y, z)`, () => { const point = { x: 1, y: 1, z: 1 }; expect(pointToVertex(point, {color: false})) .toEqual([1, 1, 1]); }); it(`returns corr...
mit
bit0001/trajectory_tracking
src/twist.py
400
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist publisher = None def send_computed_control_actions(msg): publisher.publish(msg) if __name__ == '__main__': rospy.init_node('twist') subscriber = rospy.Subscriber('computed_control_actions', Twist, send_computed_control_actions) ...
mit
nodule/react-material-ui
AvMovie.js
357
module.exports = { description: "", ns: "react-material-ui", type: "ReactNode", dependencies: { npm: { "material-ui/svg-icons/av/movie": require('material-ui/svg-icons/av/movie') } }, name: "AvMovie", ports: { input: {}, output: { component: { title: "AvMovie", ...
mit
GNOME/mistelix
src/Core/XmlStorage.cs
4736
// // Copyright (C) 2008-2009 Jordi Mas i Hernandez, jmas@softcatala.org // // 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 ...
mit
takkkun/langue-japanese
spec/langue/japanese/language_spec.rb
4335
require 'spec_helper' require 'langue/japanese/language' describe Langue::Japanese::Language do it 'is an instance of Class' do described_class.should be_an_instance_of(Class) end it 'extends Langue::Language' do described_class.superclass.should == Langue::Language end end describe Langue::Japanese:...
mit
ilya1st/configuration-go
sysconfig.go
3645
package configuration // IConfig is basic interface for all optional configuration structures type IConfig interface { // Set default config load settings. In case of file loader - filename // if first argument is map object -build config from this map object SetDefaultLoadSetting(sl ...interface{}) (err error) //...
mit
edbiler/BazaarCorner
module/facebook/include/plugin/theme_template_body__end.php
107
<?php if (Phpfox::getParam('facebook.enable_facebook_connect')) { // echo '<div id="fb-root"></div>'; } ?>
mit
smartive/generator-giuseppe
app/templates/src/app.ts
574
import * as bodyparser from 'body-parser'; import { Giuseppe } from 'giuseppe'; <% if(needAuth) { %> import authentication from './authentication'; <% } %> const giusi = new Giuseppe(); giusi.expressApp.use(bodyparser.json()); <% if(needAuth) { %> giusi.expressApp.use(authentication.initialize()); <% } %> giusi .l...
mit
MxMcG/validate-test
data.js
542
var goodUserData = { email: 'test@mailinator.com', phone: '7373737373', first_name: 'test', last_name: 'testtest', address: '123mainstreet', zip: '92008', dob_month: '03', dob_day: '23', dob_year: '1990', city: 'Carlsbad', state: 'CA' }; var badUserData = { email: 'testmailinatorcom', phone: '73+737-37307...
mit
paKanhu/replacer
Gruntfile.js
3794
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: { dist: { src: ['dist'] }, tmp: { src: ['.tmp'] }, grunt: { src: ['.grunt'] } }, copy: { dist: { files: [{ src: '...
mit
Aprogiena/StratisBitcoinFullNode
src/Stratis.Bitcoin.Features.BlockStore.Tests/BlockStoreControllerTests.cs
8951
using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using FluentAssertions; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Moq; using NBitcoin; using Stratis.Bitcoin.Base; using Stratis.Bitcoin.Controllers.Models; using Stratis.Bitcoin.Features.BlockStore.Controllers; ...
mit
codyrobbins/syllabify
lib/cody_robbins/syllabify.rb
9692
# encoding: UTF-8 require('yaml') module CodyRobbins class Syllabify # Create a new syllabified representation of an [IPA](http://en.wikipedia.org/wiki/International_Phonetic_Alphabet) transcription. # # @param language [Symbol, String] The [ISO 639](http://en.wikipedia.org/wiki/ISO_639) code of the lan...
mit
levilucio/SyVOLT
ECore_Copier_MM/transformation-Large/HereferencelefteOppositeSolveRefEReferenceEReferenceEReferenceEReference.py
5055
from core.himesis import Himesis class HereferencelefteOppositeSolveRefEReferenceEReferenceEReferenceEReference(Himesis): def __init__(self): """ Creates the himesis graph representing the AToM3 model HereferencelefteOppositeSolveRefEReferenceEReferenceEReferenceEReference. """ # ...
mit
Aichifan/MiniWms
src/main/java/ndm/miniwms/vo/CompanyVO.java
2013
package ndm.miniwms.vo; import java.util.Date; public class CompanyVO { private Integer id; private String name; private String anothername; private String address; private String description; private String contactName; private String contactTel; private String contactFax; private String contactEmail; priv...
mit
apo-j/Projects_Working
S/SOURCE/SOURCE.EspaceCandidature/SOURCE.EspaceCandidature.Web.ViewModels/ViewModels/Generated/ActionModeAffichageViewModel.cs
809
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------...
mit
gamelab/particle-pack-2-plugin
src/blue/flamethrowerblue.js
1947
/** * ParticlePack2 Flamethrowerblue Effect. * @method Flamethrowerblue * @param state {Kiwi.State} Current state * @param x {Number} X position * @param y {Number} Y position * @return Kiwi.Group * @public * @static */ Kiwi.Plugins.ParticlePack2.Flamethrowerblue = function( state, x, y ) { this.config = { "numPart...
mit
layabox/layaair
src/samples/3d/LayaAir3D_Advance/CommandBufferDemo/GlassWithoutGrabMaterial.ts
2646
import { VertexMesh } from "laya/d3/graphics/Vertex/VertexMesh"; import { Shader3D } from "laya/d3/shader/Shader3D"; import { SubShader } from "laya/d3/shader/SubShader"; import { Material } from "laya/d3/core/material/Material"; import GlassShaderVS from "./GlassShader.vs"; import GlassShaderFS from "./GlassShader.fs"...
mit
HudsonNicoletti/crm
apps/Manager/controllers/TasksController.php
12129
<?php namespace Manager\Controllers; use Manager\Models\Logs as Logs, Manager\Models\Team as Team, Manager\Models\Projects as Projects, Manager\Models\Tasks as Tasks; use Mustache_Engine as Mustache; use Phalcon\Forms\Form, Phalcon\Forms\Element\Text, Phalcon\Forms\Element\Password, Phalcon\...
mit
cellog/react-selection
.storybook/webpack.config.js
829
const path = require('path'); module.exports = { resolve: { extensions: ['', '.js', '.jsx'] }, module: { loaders: [ { test: /\.css?$/, loaders: [ 'style', 'raw' ], include: [ path.resolve(__dirname, '../') ] }, { test: /\.less?$/, ...
mit
lordmos/blink
Source/core/animation/InertAnimation.cpp
2531
/* * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
mit
apkoponen/jytkytin2015
public/js/comp.js
13232
var defaultTrack, drum, instrumentNames, instruments, songs; if (!window.btoa) { window.btoa = function(str) { return Base64.encode(str); }; } if (!window.atob) { window.atob = function(str) { return Base64.decode(str); }; } drum = angular.module('drum', ["mgcrea.ngStrap"]); drum.filter('range', fun...
mit
OctoLinker/browser-extension
packages/blob-reader/index.js
1530
import Blob from './blob'; import { getBlobWrapper, getPath, readLines, getParentSha, isGist, } from './helper'; function parseBlob(el) { const path = getPath(el); const lines = readLines(el); if (!lines.length) { return; } // Does not work if left side is empty (eg new files) https://github....
mit