repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Naturaily/review
app/serializers/api/v1/trade_serializer.rb
807
class Api::V1::TradeSerializer < ActiveModel::Serializer root false def attributes { name: object.name, owner: project_owner, type: object.trade_details, url: review_url, expiration_date: object.deadline, unreviewed_commits: commits_as_json, } end private def pro...
mit
rekyyang/ArtificalLiverCloud
echarts-for-react/webpack.config.js
608
var webpack = require('webpack'); var uglifyJsPlugin = webpack.optimize.UglifyJsPlugin; module.exports = { entry: './demo/demo.jsx', output: { path: './demo/dist/', filename: 'bundle.js' }, module: { loaders:[{ test: /\.js[x]?$/, exclude: /node_modules/, loader: 'babel-loa...
mit
AutorestCI/azure-sdk-for-python
azure-cognitiveservices-search-entitysearch/azure/cognitiveservices/search/entitysearch/models/query_context.py
3555
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
mit
bburnichon/PHPExiftool
lib/PHPExiftool/Driver/Tag/Canon/MeasuredRGGB.php
867
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Canon; use JMS\Serializer\Annotation\ExclusionPolicy;...
mit
hollyschinsky/ionic
js/utils/dom.js
8606
(function(window, document, ionic) { var readyCallbacks = []; var isDomReady = false; function domReady() { isDomReady = true; for(var x=0; x<readyCallbacks.length; x++) { ionic.requestAnimationFrame(readyCallbacks[x]); } readyCallbacks = []; document.removeEventListener('DOMContentLoa...
mit
Timvdv/riot-api-challenge
src/index.js
152
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('react-root'));
mit
hardfist/CS61b
proj2/src/GitletPublicTest.java
7500
import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; im...
mit
shprink/ionic-cross-platform-boilerplate
lib/typings/globals/cordova/index.d.ts
4062
// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/844831b968857a9dc2f44e0698ff282863c5c238/cordova/cordova.d.ts interface Cordova { /** Invokes native functionality by specifying corresponding service name, action and optional parameters. * @param success A su...
mit
MongkonEiadon/mtapi
MtApi/MtOrder.cs
1229
using System; namespace MtApi { public class MtOrder { public int Ticket { get; set; } public string Symbol { get; set; } public TradeOperation Operation { get; set; } public double OpenPrice { get; set; } public double ClosePrice { get; set; } public...
mit
unplannedcompany/tryup.org
src/repeat.js
153
// Returns a new string consisting of `count` copies of `text`. export default function repeat(text, count) { return new Array(count + 1).join(text) }
mit
georghinkel/ttc2017smartGrids
solutions/NMF/Schema/IEC61970/LoadModel/SubLoadAreaLoadGroupsCollection.cs
2118
//------------------------------------------------------------------------------ // <auto-generated> // Dieser Code wurde von einem Tool generiert. // Laufzeitversion:4.0.30319.42000 // // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn // der Code erneut generi...
mit
renotoaster/flame.js
view.js
5615
//= require_tree ./mixins //= require ./layout_manager //= require_self //= require_tree ./views Ember.View.reopen({ // Finds the first descendant view for which given property evaluates to true. Proceeds depth-first. firstDescendantWithProperty: function(property) { var result; this.forEachChi...
mit
banzsolt/wot-api
lib/wargaming_api.rb
2987
require 'wargaming_api/version' Dir[File.dirname(__FILE__) + '/wargaming_api/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/accounts/*.rb'].each { |f| require f } Dir[File.dirname(__FILE_...
mit
StorytellerCZ/Socialize-admin
client/modules/core/intl/en.js
46
export default { dashboard: 'Dashboard', };
mit
TheFehr/Orsum-consilii-scholai
platforms/windows/www/plugins/cordova-plugin-contacts/www/ContactFindOptions.js
1651
cordova.define("cordova-plugin-contacts.ContactFindOptions", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership...
mit
mazulo/taskbuster_project
taskbuster/settings/production.py
101
from .base import * # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False
mit
umbraco/Umbraco-CMS
src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs
2547
// Copyright (c) Umbraco. // See LICENSE for more details. using System; using System.Globalization; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Umbraco.Cms.Core.Models.PublishedContent; using Umbraco.Extensions; namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { /// <summary> ...
mit
jezell/iserviceoriented
IServiceOriented.ServiceBus/Delivery/Formatters/CompositeMessageDeliveryConverter.cs
2677
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.ObjectModel; namespace IServiceOriented.ServiceBus.Delivery.Formatters { internal class CompositeMessageDeliveryConverter : MessageDeliveryConverter { public CompositeMessageDeliveryConverter...
mit
igemsoftware/SYSU-Software2013
project/Python27_32/Lib/site-packages/pypm/external/2/sqlalchemy/ext/declarative.py
54113
# ext/declarative.py # Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ Synopsis ======== SQLAlchemy object-relational configuration involves the comb...
mit
suclike/centrifugo
libcentrifugo/mediator_test.go
973
package libcentrifugo import ( "testing" "github.com/centrifugal/centrifugo/Godeps/_workspace/src/github.com/stretchr/testify/assert" ) type testMediator struct { connect int subscribe int unsubscribe int disconnect int message int } func (m *testMediator) Connect(pk ProjectKey, client ConnID, use...
mit
kachick/mspec
lib/mspec/helpers/ruby_exe.rb
4236
require 'mspec/guards/platform' require 'mspec/helpers/tmp' # The ruby_exe helper provides a wrapper for invoking the # same Ruby interpreter with the same flags as the one running # the specs and getting the output from running the code. # # If +code+ is a file that exists, it will be run. # Otherwise, +code+ will be...
mit
mgusmano/ext-angular-generator
ext-angular/classic/src/app/view/inherit/ext.base.ts
738
// import { Component, ViewContainerRef, QueryList, ContentChildren } from '@angular/core'; // import { ExtGrid2 } from './ext.grid'; // @Component({ // selector: 'ext-base2', // template: '<div>ext-base2</div>' // }) // export class ExtBase { // // @ContentChildren(ExtBase, { read: ViewContainerRef }) ExtBaseRef: ...
mit
rynomad/CCNx-Federated-Wiki-Prototype
client/plugins/data/data.js
3547
// Generated by CoffeeScript 1.4.0 (function() { var summary, thumbs, __hasProp = {}.hasOwnProperty; window.plugins.data = { emit: function(div, item) { $('<p />').addClass('readout').appendTo(div).text(summary(item)); return $('<p />').addClass('label').appendTo(div).html(wiki.resolveLinks(ite...
mit
gilluminate/angular-filter
src/_filter/collection/join.js
445
/** * @ngdoc filter * @name join * @kind function * * @description * join a collection by a provided delimiter (space by default) */ angular.module('a8m.join', []) .filter('join', function () { return function (input, delimiter) { if (isUndefined(input) || !isArray(input)) { return input; ...
mit
paska27/unit-of-work
spec/Isolate/UnitOfWork/Entity/Identifier/EntityIdentifierSpec.php
3064
<?php namespace spec\Isolate\UnitOfWork\Entity\Identifier; use Isolate\UnitOfWork\Entity\ClassName; use Isolate\UnitOfWork\Entity\Definition; use Isolate\UnitOfWork\Exception\NotExistingPropertyException; use Isolate\UnitOfWork\Exception\RuntimeException; use Isolate\UnitOfWork\Tests\Double\EntityFake; use PhpSpec\Ob...
mit
blakek/my-files
bin/bootswatch-download.js
1116
var fs = require('fs'), http = require('http'), BOOTSWATCH_API_URL = 'http://api.bootswatch.com/3/', verbose = false; function getThemeList (on_complete) { var response_data = ''; var request = http.get(BOOTSWATCH_API_URL, function (res) { if (verbose) console.log('API_STATUS: ' + res.statusCode); ...
mit
samwisehawkins/wrftools
wrftools/commentedfile.py
669
class CommentedFile: def __init__(self, f, commentstring="#"): self.f = f self.commentstring = commentstring def _skip(self, line): skip = line.startswith(self.commentstring) or line.isspace() return skip def _detrail(self, line): return line.split(self.comm...
mit
Bhavdip/SparkleMotion
demo/src/main/java/com/ifttt/sparklemotiondemo/ScaleViewPagerActivity.java
923
package com.ifttt.sparklemotiondemo; import android.app.Activity; import android.os.Bundle; import android.support.v4.view.ViewPager; import com.ifttt.sparklemotion.Page; import com.ifttt.sparklemotion.SparkleMotion; import com.ifttt.sparklemotion.animations.ScaleAnimation; /** * Demo Activity for {@link ScaleAnimat...
mit
clagraff/parg
doc.go
2724
// Package argparse is a Golang command line argument parsing library, taking heavy influance from Python's argparse module. // // Using argparse, it is possible to easily create command-line interfaces, such // as: // // > exc --help // // usage: main [-h] [-v] [-e] [-x ...] [-n] [-f] [-k] [p PATTERN] [s SPLIT] [c ...
mit
metamx/d8a-conjure
src/main/java/io/d8a/conjure/IntSpec.java
563
package io.d8a.conjure; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; public class IntSpec extends Spec{ @JsonCreator public IntSpec( @JsonProperty("count") int count, @JsonProperty("cardinality") int cardinality, ...
mit
fredericjoanis/actimania
src/server/src/main/java/com/backend/models/Competition.java
3894
package com.backend.models; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import org.bson.types.ObjectId; import com.fasterxml.jackson.annotation.JsonProperty; import com.framework.helpers.Database; import com.framework.models.Essentials; public class Competition { public ...
mit
JoshuaBradley/Dnn.Platform
DNN Platform/Library/Services/Installer/Log/Logger.cs
10901
#region Copyright // // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2014 // by DotNetNuke Corporation // // 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 restricti...
mit
yuokada/httploop
signal.go
288
package main import ( "os" "syscall" ) var ( sigChan = make(chan os.Signal, 1) exitChan = make(chan int, 1) ) func signalHandler() { for { s := <-sigChan switch s { // kill -SIGHUP XXXX case syscall.SIGINT: fallthrough case syscall.SIGHUP: exitChan <- 0 } } }
mit
jongerrish/robolectric
shadows/framework/src/main/java/org/robolectric/shadows/ShadowAsyncTaskLoader.java
1517
package org.robolectric.shadows; import android.content.AsyncTaskLoader; import android.content.Context; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.FutureTask; import org.robolectric.annotation.Implementation; import org.robolectric.annotation.Impl...
mit
meanie/boilerplate-server
app/components/user/avatar.ctrl.js
1447
'use strict'; /** * Avatar controller */ module.exports = { /** * Save avatar */ save(req, res, next) { //Get user and uploaded file const user = req.user; const file = req.file; //Save file data user.avatar = file; //Save user user.save() .then(user => user.avatar) ...
mit
darshanhs90/Java-InterviewPrep
src/Mar2021Leetcode/_0056MergeIntervals.java
1643
package Mar2021Leetcode; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.List; public class _0056MergeIntervals { public static void main(String[] args) { System.out.println(merge( new int[][] { new int[] { 1, 3 }, new int[] { 2, 6 }, new int[] { 8, 10 }, new ...
mit
retrohacker/jsBeowulfServer
filesystem.go
1752
package main import( "fmt" "io/ioutil" "os" "github.com/Crackerz/fsUtils" ) func initFileSystem(folder string) { fmt.Printf("Configuring Directory \"%s/\"...\n",folder) dir,err:=ioutil.ReadDir(folder) if err!=nil { panic("Directory Not Found Error: "+err.Error()) } dirNames:=[]string{pendingDir,processingD...
mit
navalev/azure-sdk-for-java
sdk/eventgrid/mgmt-v2020_01_01_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2020_01_01_preview/implementation/OperationsInner.java
6187
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.eventgrid.v2020_01_01_preview.implementation; im...
mit
densylkin/SimpleLocalization
SimpleLocalization/Editor/Helpers/CSVHelper.cs
3096
using System; using UnityEngine; using System.Collections; using System.IO; using CsvHelper; using SimpleLocalization.Core; using System.Linq; namespace SimpleLocalization.Helpers { public static class CSVHelper { public static ILocalizationData<string> Import(string path) { var te...
mit
Shtian/transmissionFrontend
jspm_packages/github/aurelia/dependency-injection@0.4.2.js
206
System.register(["github:aurelia/dependency-injection@0.4.2/system/index"], function($__export) { return { setters: [function(m) { for (var p in m) $__export(p, m[p]); }], execute: function() {} }; });
mit
alecw/picard
src/test/java/picard/sam/markduplicates/UmiAwareMarkDuplicatesWithMateCigarTest.java
30939
/* * The MIT License * * Copyright (c) 2017 The Broad Institute * * 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...
mit
shudhy/projectketiga
app/views/guest/index.blade.php
183
@section('asset') @include('layouts.partials.datatable') @stop @section('content') <h1 class="uk-heading-large">{{ $title }}</h1> @include('books._borrowdatatable') @stop
mit
anhstudios/swganh
data/scripts/templates/object/tangible/scout/camp/shared_camp_multi.py
442
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/scout/camp/shared_camp_multi.iff" result.attribute_template_id = -1...
mit
xCeptic/PIT
PIT.API/Clients/IClient.cs
255
using System.Collections.Generic; namespace PIT.API.Clients { public interface IClient<T> { IEnumerable<T> GetAll(); T GetById(int id); T Create(T entity); T Update(T entity); void Delete(T entity); } }
mit
pivotal/projectmonitor
app/assets/javascripts/application.js
710
//= require jquery //= require jquery_ujs //= require jquery_ui //= require underscore //= require backbone //= require backbone_rails_sync //= require backbone_datalink //= require backbone/project_monitor //= require Coccyx //= require moment.min //= require d3.v3.js //= require_tree ./initializers //= require ./ref...
mit
stevenhaddox/omniauth-dice
spec/test_apps/test_rack_app.rb
282
class TestRackApp attr_reader :request_body def initialize @request_headers = {} end def call(env) @env = env @request_body = env['rack.input'].read [ 200, { 'Content-Type' => 'text/plain' }, [ 'Hello Rack' ] ] end def [](key) @env[key] end end
mit
uktrade/data-hub-fe-beta2
src/client/modules/Contacts/CollectionList/constants.js
719
export const LABELS = { status: 'Status', sector: 'Sector', country: 'Country', ukRegion: 'UK region', contactName: 'Contact name', companyName: 'Company name', } export const STATUS_OPTIONS = [ { label: 'Active', value: 'false' }, { label: 'Inactive', value: 'true' }, ] export const SORT_OPTIONS = [ ...
mit
cbitstech/git_tagger
lib/git_tagger/version.rb
49
# nodoc module GitTagger VERSION = "1.1.8" end
mit
topsitemakers/ultima
extensions/preprocess/preprocess.php
167
<?php /** * @file * Main preprocess function. * * Created by: Topsitemakers * http://www.topsitemakers.com/ */ function ultima_preprocess(&$vars) { // }
mit
firegurafiku/opencl-device-lookup
tools/generate_test_registry.py
3021
#!/usr/bin/env python2 template = """/* AUTOGENERATED, DO NOT EDIT! */ #include <cmocka.h> {% for _, suiteInit, suiteClean, suiteTests in registry %} {% if suiteInit and suiteClean %} extern int {{suiteInit}}(void**); extern int {{suiteClean}}(void**); {% endif %} {% for testName in suiteTests %} extern void {{testNa...
mit
swalters/ng-grid
src/js/core/services/gridClassFactory.js
4585
(function () { 'use strict'; /** * @ngdoc object * @name ui.grid.service:gridClassFactory * * @description factory to return dom specific instances of a grid * */ angular.module('ui.grid').service('gridClassFactory', ['gridUtil', '$q', '$compile', '$templateCache', 'uiGridConstants', '$log', ...
mit
chain24/ebayprocess-lumen
vendor/dts/ebay-sdk-php/src/Trading/Types/PolicyComplianceDashboardType.php
1092
<?php /** * The contents of this file was generated using the WSDLs as provided by eBay. * * DO NOT EDIT THIS FILE! */ namespace DTS\eBaySDK\Trading\Types; /** * */ class PolicyComplianceDashboardType extends \DTS\eBaySDK\Types\BaseType { /** * @var array Properties belonging to objects of this class. ...
mit
pimier15/PLInspector
PLImg_V41_TDI/PLImg_V2/Core/Core.cs
8338
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MachineControl.Camera.Dalsa; using MachineControl.Stage.ACSController; using DALSA.SaperaLT.SapClassBasic; using Emgu.CV; using Emgu.CV.Structure; using Accord.Math; using MachineControl.MathClac; ...
mit
almadaocta/lordbike-production
app/code/core/Mage/CatalogInventory/Model/Mysql4/Stock/Status.php
1318
<?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 re...
mit
1974kpkpkp/operaextensions.js
examples/catalog/to-read-sites-4.1-3-1/locales/tr/popup.js
141
var tr = { addButtonLabel: "Þu anki sayfayý listeye ekle", deleteButtonLabel: "Sayfayý listeden sil", lockButtonLabel: "Siteyi kilitle" };
mit
darshanhs90/Java-Coding
src/GeeksforGeeksPractice/_0043LCA.java
1997
package GeeksforGeeksPractice; import java.util.Arrays; /* * Link : http://www.geeksforgeeks.org/sum-numbers-formed-root-leaf-paths/ */ public class _0043LCA { public static void main(String[] args) { TreeNode tn=new TreeNode(1); tn.left=new TreeNode(2); tn.right=new TreeNode(3); tn.left.left=n...
mit
bigobject-inc/BigObject-ODBC
Source/Driver/API/SQLGetDiagField.cpp
1198
/* * ---------------------------------------------------------------------------- * Copyright (c) 2014-2015 BigObject Inc. * All Rights Reserved. * * Use of, copying, modifications to, and distribution of this software * and its documentation without BigObject's written permission can * result in the violation o...
mit
csemrm/PHP_SDK
source/optimalpayments/cardpayments/pagerator.php
1959
<?php /* * Copyright (c) 2014 Optimal Payments * * 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,...
mit
crisbeto/material2
src/material/schematics/ng-add/theming/theming.ts
8138
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {normalize, logging} from '@angular-devkit/core'; import {ProjectDefinition} from '@angular-devkit/core/src/wo...
mit
jackylee0424/walkingplant
software/environment_sensing/parsedht_arduino.py
2067
import sys import serial import time import os import requests import json import pickle import thread url = "https://timeseriesvisual.firebaseio.com/.json" device = "/dev/tty.usbmodemfd111" #block_list = [] block_dict = dict() machine_name = "old_raspi" if not os.path.exists("data"): os.makedirs("data") # remo...
mit
pdp10/sbpipe
sbpipe/snakemake/pe_collection.py
2365
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2018 Piero Dalle Pezze # # 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 ...
mit
lemmy/tlaplus
tlatools/org.lamport.tlatools/test/tlc2/debug/TLCDebuggerTestCase.java
24438
/******************************************************************************* * Copyright (c) 2020 Microsoft Research. All rights reserved. * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "S...
mit
kataras/gapi
httptest/httptest.go
5685
package httptest import ( "crypto/tls" "net/http" "net/http/httptest" "testing" "github.com/kataras/iris/v12" "github.com/kataras/iris/v12/context" "github.com/kataras/iris/v12/core/router" "github.com/kataras/iris/v12/i18n" "github.com/iris-contrib/httpexpect/v2" ) type ( // OptionSetter sets a configura...
mit
RyderReed15/LightningMaterials
src/main/java/lightningmats/entity/chest/ChestRenderer.java
6702
package lightningmats.entity.chest; import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import java.util.Calendar; import net.minecraft.block.Block; import net.minecraft.block.BlockChest; import net.minecraft.client.model.ModelChest; import net.minecraft.c...
mit
Kryptos-FR/markdig-wpf
src/Markdig.Wpf/Renderers/Xaml/CodeBlockRenderer.cs
1115
// Copyright (c) Nicolas Musset. All rights reserved. // This file is licensed under the MIT license. // See the LICENSE.md file in the project root for more information. using System; using Markdig.Syntax; namespace Markdig.Renderers.Xaml { /// <summary> /// A XAML renderer for a <see cref="CodeBlock"/>. ...
mit
gregumo/victoire
Bundle/WidgetBundle/Tests/Generator/WidgetGeneratorTest.php
1921
<?php namespace Bundle\WidgetBundle\Tests\Generator; use Sensio\Bundle\GeneratorBundle\Tests\Generator\GeneratorTest; use Victoire\Bundle\WidgetBundle\Generator\WidgetGenerator; class WidgetGeneratorTest extends GeneratorTest { public function testGenerate() { $this->getGenerator()->generate( ...
mit
yojimbo87/Arango.VelocyPack
src/Arango.VelocyPack/Arango.VelocyPack.Tests/Deserialization/Numbers/SmallIntegerValueDeserializationTests.cs
5367
using NUnit.Framework; using Arango.VelocyPack.Tests.Utils; namespace Arango.VelocyPack.Tests.Deserialization.Numbers { [TestFixture] public class SmallIntegerValueDeserializationTests { [Test] public void DeserializeZeroIntValue() { // given var...
mit
nathanvda/docx
lib/docx/elements/bookmark.rb
2465
require 'docx/elements/element' module Docx module Elements class Bookmark include Element attr_accessor :name def self.tag 'bookmarkStart' end def initialize(node) @node = node @name = @node['w:name'] end # Insert text before ...
mit
croudcare/ethon_061
spec/ethon/multi/stack_spec.rb
2129
require 'spec_helper' describe Ethon::Multi::Stack do let(:multi) { Ethon::Multi.new } let(:easy) { Ethon::Easy.new } describe "#add" do context "when easy already added" do before { multi.add(easy) } it "returns nil" do expect(multi.add(easy)).to be_nil end end context "...
mit
Azure/azure-sdk-for-net
sdk/websites/Microsoft.Azure.Management.WebSites/src/Generated/StaticSitesOperationsExtensions.cs
186562
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
mit
darrelljefferson/themcset.com
bin/test/h/f/m.php
37
<?php namespace test\h\f; class m { }
mit
alexandresalome/mailcatcher
Tests/AbstractTest.php
1823
<?php namespace Alex\MailCatcher\Tests; use Alex\MailCatcher\Client; abstract class AbstractTest extends \PHPUnit_Framework_TestCase { public function getClient() { if (!isset($_SERVER['MAILCATCHER_HTTP'])) { $this->markTestSkipped('mailcatcher HTTP missing'); } return ne...
mit
continuoustests/AutoTest.Net
lib/NUnit/src/NUnit-2.6.0.12051/src/NUnitFramework/framework/Constraints/SameAsConstraint.cs
1893
// **************************************************************** // Copyright 2007, Charlie Poole // This is free software licensed under the NUnit license. You may // obtain a copy of the license at http://nunit.org // **************************************************************** using System; namespac...
mit
emilsoman/rails-4-api
config/environments/development.rb
1117
Rails4Api::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web...
mit
turingou/sdk
dist/factory.js
3399
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.lowLevel = lowLevel; exports.highLevel = highLevel; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _url = require('url'); var _url2 = _interopRequireDefault(_url); var _loda...
mit
beni55/fortune
test/integration/serializers/form.js
4619
import http from 'http' import qs from 'querystring' import FormData from 'form-data' import { run, comment } from 'tapdance' import { ok, deepEqual, equal } from '../../helpers' import httpTest from '../http' import json from '../../../lib/serializer/serializers/json' import { formUrlEncoded, formData } from '../....
mit
guymguym/webrtc-native
test/dataChannel.js
4725
var WEBRTC = require('../'); function P2P(alice, bob) { alice.onicecandidate = function(event) { var candidate = event.candidate || event; bob.addIceCandidate(candidate); }; bob.onicecandidate = function(event) { var candidate = event.candidate || event; alice.addIceCandidate(candidate); }; ...
mit
matt9mg/concrete5
concrete/tools/users/bulk_group_add.php
3607
<?php defined('C5_EXECUTE') or die("Access Denied."); $searchInstance = Loader::helper('text')->entities($_REQUEST['searchInstance']); if (!strlen($searchInstance)) { $searchInstance = 'user'; } $form = Loader::helper('form'); $ih = Loader::helper('concrete/ui'); $tp = new TaskPermission(); $users = array(); if (...
mit
AJ-Moore/Blockrus
libraries/include/glm/detail/type_mat3x3.hpp
8860
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2015 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
mit
ihym/ng-lightning
src/app/components/select/select.component.ts
169
import { Component } from '@angular/core'; @Component({ selector: 'app-demo-select', templateUrl: './select.component.html', }) export class DemoSelectComponent {}
mit
rgabbard-bbn/bue-common-open
common-core-open/src/main/java/com/bbn/bue/common/files/NoSuchKeyException.java
481
package com.bbn.bue.common.files; /** * Thrown to indicate that a non-existent key has been requested. * * @author Constantine Lignos, Ryan Gabbard */ public final class NoSuchKeyException extends RuntimeException { NoSuchKeyException() { super(); } NoSuchKeyException(String message) { super(messag...
mit
enriclluelles/route_translator
test/integration/generated_path_test.rb
1931
# frozen_string_literal: true require 'test_helper' class GeneratedPathTest < ActionDispatch::IntegrationTest include RouteTranslator::ConfigurationHelper include RouteTranslator::RoutesHelper def setup setup_config end def teardown teardown_config end def test_path_generated get '/show' ...
mit
adsofmelk/art
app/Console/Commands/ResetPasswordsCommand.php
1919
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; use phpDocumentor\Reflection\Types\This; use Illuminate\Support\Facades\Hash; class ResetPasswordsCommand extends Command { /** * The name and signature of the console command. * * @var string...
mit
OmerHerera/react-marvel
data/characters.js
707141
module.exports = { "code": 200, "status": "Ok", "copyright": "© 2015 MARVEL", "attributionText": "Data provided by Marvel. © 2015 MARVEL", "attributionHTML": "<a href=\"http://marvel.com\">Data provided by Marvel. © 2015 MARVEL</a>", "etag": "422034efe955c73af06f5be31561401a4230d521", "data"...
mit
jackfrancis/acs-engine
test/e2e/dcos/dcos_test.go
3016
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package dcos import ( "fmt" "log" "os" "path/filepath" "time" "github.com/Azure/acs-engine/pkg/api/common" "github.com/Azure/acs-engine/test/e2e/config" "github.com/Azure/acs-engine/test/e2e/engine" . "github.co...
mit
bbengfort/hadoop-fundamentals
wordcount/StreamingWordCount/reducer.py
853
#!/usr/bin/env python """ A Reducer in Python that is memory efficient by using iterators. """ import sys from itertools import groupby from operator import itemgetter class Reducer(object): def __init__(self, infile=sys.stdin, separator="\t"): self.infile = infile self.sep = separator d...
mit
eastbanctechru/e2e4
src/async-subscriber.ts
3974
// tslint:disable:max-classes-per-file /** * Internal contract to implement abstracted subscription proxy which hides any details of underlying subscription */ export interface SubscriptionProxy { /** * Subscribes to passed object * @param target object to subscribe * @param completeAction action ...
mit
christinahedges/PyKE
pyke/kepio.py
26033
""" This module contains utility functions for i/o operations. """ from . import kepmsg, kepkey import numpy as np import os import glob import tempfile import shutil from astropy.io import fits as pyfits __all__ = ['delete', 'overwrite', 'openascii', 'closeascii', 'splitfits', 'readfitstab', 'readfitscol'...
mit
l2edzl3oy/vtnwebapp
app/cache/prod/twig/88/88/3b13198f5513cdcdefcafd88ef46a94adb28a819c0df53ddd8d66a52e2f3.php
723
<?php /* TwigBundle:Exception:error.rdf.twig */ class __TwigTemplate_88883b13198f5513cdcdefcafd88ef46a94adb28a819c0df53ddd8d66a52e2f3 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
mit
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/DAL-DR/SelfLoadSoftDelete.Business/ERLevel/G05_SubContinent_Child.cs
2138
namespace SelfLoadSoftDelete.Business.ERLevel { public partial class G05_SubContinent_Child { #region OnDeserialized actions /*/// <summary> /// This method is called on a newly deserialized object /// after deserialization is complete. /// </summary> ...
mit
leeola/kite
handlers.go
3905
package kite import ( "fmt" "net/http" "net/url" "os/exec" "runtime" "sync" "time" "github.com/gorilla/websocket" "github.com/koding/kite/sockjsclient" "github.com/koding/kite/systeminfo" "golang.org/x/crypto/ssh/terminal" ) func (k *Kite) addDefaultHandlers() { // Default RPC methods k.HandleFunc("kite...
mit
twilio/twilio-php
src/Twilio/Rest/Preview/Sync/ServiceContext.php
5392
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Preview\Sync; use Twilio\Exceptions\TwilioException; use Twilio\InstanceContext; use Twilio\ListResource; use Twilio\Options; use Twilio\Rest\Preview\Sync\Service\DocumentList; use...
mit
Eiskis/baseline-php
docs/backend/utilities/jade/src/Jade/Parser.php
7607
<?php namespace Jade; class Parser { protected $lexer; public $basepath; //current file basepath, used for include type public function __construct(Lexer $lexer) { $this->lexer = $lexer; } public function parse($input) { $source = ( is_file($input) ) ? file_get_contents($input) :...
mit
centur/orleans
test/TesterAzureUtils/AzureRemindersTableTests.cs
2184
using System.Threading.Tasks; using Orleans; using Orleans.AzureUtils; using Orleans.Runtime; using Orleans.Runtime.ReminderService; using Tester; using Tester.AzureUtils; using TestExtensions; using UnitTests.MembershipTests; using UnitTests.StorageTests; using Xunit; namespace UnitTests.RemindersTest { /// <sum...
mit
MANHIGA/www.gangauthority.com
app/cache/dev/annotations/04dee053d74e8a63f86a31cfa7ad302660724b43.cache.php
430
<?php return unserialize('a:2:{i:0;O:26:"Doctrine\\ORM\\Mapping\\Table":5:{s:4:"name";s:12:"typebatiment";s:6:"schema";N;s:7:"indexes";a:1:{i:0;O:26:"Doctrine\\ORM\\Mapping\\Index":2:{s:4:"name";s:27:"FK_TypeBatiment_idTypeSbire";s:7:"columns";a:1:{i:0;s:24:"TypeBatiment_idTypeSbire";}}}s:17:"uniqueConstraints";N;s:7:"...
mit
ylastapis/Sylius
src/Sylius/Bundle/ResourceBundle/DependencyInjection/SyliusResourceExtension.php
4033
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Bundle\ResourceBundle\DependencyInjection; use Sylius\Bund...
mit
lmazuel/azure-sdk-for-python
azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/operations/skus_operations.py
4078
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
mit
guotao2000/ecmall
temp/caches/0446/7c052bc0edf1747d05512118d442b4bd.cache.php
220
<?php /** * @Created By ECMall PhpCacheServer * @Time:2015-01-18 11:51:23 */ if(filemtime(__FILE__) + 600 < time())return false; return array ( 'inbox' => '0', 'outbox' => '0', 'total' => 0, ); ?>
mit
crabcanon/angular-es6-demo
app/js/timer/timer.service.js
595
class TimerService { constructor() {} // Return the counter with format '00D 00H 00M 00S' render(time) { let days = Math.floor(time / 86400); let hours = Math.floor(time / 3600) % 24; let minutes = Math.floor(time / 60) % 60; let seconds = Math.floor(time % 60); let result = (days < 10 ? '...
mit
gardebring/DocumentDBStudio
DocumentDBStudio/Providers/EmbeddedResourceProvider.cs
1175
using System.IO; using System.Reflection; namespace Microsoft.Azure.DocumentDBStudio.Providers { public static class EmbeddedResourceProvider { public static string ReadEmbeddedResource(string resourceLocation) { try { var assembly = Assembly.GetExecutin...
mit