repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
USStateDept/thecurrent
models/entities/TC_DashboardSource_EntityModel.class.php
2533
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of TC_DashboardSource_Entity * * @author KottkeDP */ class TC_DashboardSource_EntityModel extends THOR_EntityModel{ public function __construct($entity_id = null, ...
mit
plivo/plivo-dotnet
src/Plivo/XML/S.cs
575
using dict = System.Collections.Generic.Dictionary<string, string>; using list = System.Collections.Generic.List<string>; namespace Plivo.XML { public class S : PlivoElement { public S(string body) : base(body) { Nestables = new list() { "Break", ...
mit
EddyVerbruggen/nativescript-plugin-firebase
src/mlkit/custommodel/index.d.ts
1252
import { MLKitCameraView, MLKitVisionOptions, MLKitVisionResult } from "../index"; export interface MLKitCustomModelResultValue { text: string; confidence: number; } export interface MLKitCustomModelResult extends MLKitVisionResult { result: Array<MLKitCustomModelResultValue>; } export type MLKitCustomModelTyp...
mit
mpkato/interleaving
interleaving/__init__.py
460
from .ranking import BalancedRanking from .ranking import CreditRanking from .ranking import ProbabilisticRanking from .ranking import TeamRanking from .ranking import PairwisePreferenceRanking from .balanced import Balanced from .probabilistic import Probabilistic from .team_draft import TeamDraft from .optimized imp...
mit
miloslavthon/uai628-rezervacni-system
RezervacniSystem.Data.NHibernate/PozadavekNaRegistraciKlientaRepository.cs
881
using RezervacniSystem.Domain.Model.Klienti; using RezervacniSystem.Domain.Model.PozadavkyNaRegistraciKlientu; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RezervacniSystem.Data.NHibernate { public class PozadavekNaRegistraciKlientaRepo...
mit
bevacqua/jscharting
bundle/Samples/PHP/Includes/DataEngine.php
59186
<?php //namespace JSCharting; Generates error for php older than 5.3 require_once "DataModel.php"; require_once "MySqlConnection.php"; class DataEngine { //public members public $sqlStatement = ""; public $dataFields = ""; public $startDate; public $endDate; public $showEmptyElement = FALSE; public $dateGro...
mit
hyonholee/azure-sdk-for-net
sdk/resources/Azure.Management.Resources/src/Generated/Models/ApplicationLockLevel.cs
482
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable namespace Azure.Management.Resources.Models { /// <summary> The managed application lock level. </summary> public enum ApplicationLockLevel { /// <summary> CanNot...
mit
mjafin/bcbio-nextgen
bcbio/distributed/objectstore.py
21006
""" Manage pushing and pulling files from an object store like Amazon Web Services S3. """ # pylint: disable=redefined-builtin import abc import collections import os import re import subprocess import sys import time import zlib try: import azure from azure import storage as azure_storage except ImportError:...
mit
chanan/AsyncOps
module/app/asyncOps/services/BasicOperation.java
561
package asyncOps.services; /** * Created by Chanan on 4/19/2014. */ public abstract class BasicOperation extends OperationBase { public BasicOperation(String message, String username, String group) { super(message, username, group); } @Override public boolean doCheck() { if(isComplet...
mit
ksoichiro/gitlabhq
app/helpers/diff_helper.rb
5402
# encoding: utf-8 module DiffHelper def diff_view params[:view] == 'parallel' ? 'parallel' : 'inline' end def allowed_diff_size if diff_hard_limit_enabled? Commit::DIFF_HARD_LIMIT_FILES else Commit::DIFF_SAFE_FILES end end def allowed_diff_lines if diff_hard_limit_enabled? ...
mit
ryanseys/escape-from-mouseville
MonsterTest.java
719
/** * To Test the Class Monster * * @author Ryan Seys * @version 1.0 */ public class MonsterTest extends junit.framework.TestCase { /** * Default constructor for test class MonsterTest */ public MonsterTest() { } public void testMonsterWin() { Mouseville mousevil1 = new Mouseville()...
mit
MindBuffer/nannou
generative_design/oscillation_figures/m_2_3_01.rs
4999
// M_2_3_01 // // Generative Gestaltung – Creative Coding im Web // ISBN: 978-3-87439-902-9, First Edition, Hermann Schmidt, Mainz, 2018 // Benedikt Groß, Hartmut Bohnacker, Julia Laub, Claudius Lazzeroni // with contributions by Joey Lee and Niels Poldervaart // Copyright 2018 // // http://www.generative-gestaltung.de...
mit
qegabbe/SimpleCMock
lib/com.github.uchang_nos.c_helper.src/pointer/Address.java
161
package com.github.uchan_nos.c_helper.pointer; /** * ポインタ変数が指すアドレス値を表す基底クラス. */ public abstract class Address { }
mit
codepreneur/github-explorer
client/app/routes/user.js
176
import Ember from 'ember'; export default Ember.Route.extend({ model: function (params) { return Ember.$.getJSON("https://api.github.com/users/" + params.login); } });
mit
trustify/oroplatform
src/Oro/Bundle/ChartBundle/Resources/public/js/app/components/horizontal_bar-chart-component.js
3914
define(function(require) { 'use strict'; var BarChartComponent; var Flotr = require('flotr2'); var numberFormatter = require('orolocale/js/formatter/number'); var BaseChartComponent = require('orochart/js/app/components/base-chart-component'); /** * @class orochart.app.components.BarChart...
mit
dngoins/RoomAliveToolkit
ProCamCalibration/ProjectionMappingSample/ProjectiveTexturingShader.cs
6859
using SharpDX; using SharpDX.D3DCompiler; using SharpDX.Direct3D11; using SharpDX.DXGI; using System.IO; using System.Runtime.InteropServices; using Device = SharpDX.Direct3D11.Device; namespace RoomAliveToolkit { public class ProjectiveTexturingShader { public const int depthImageWidth = ...
mit
rightjs/rightjs-ui
src/lightbox/lightbox/pager.js
1883
/** * Processes the link-groups showing things in a single Lightbox * * Copyright (C) 2010 Nikolay Nemshilov */ var Pager = { /** * Checks and shows the pager links on the dialog * * @param Dialog dialog * @param String url-address * @return void */ show: function(dialog, url) { if (dialog...
mit
Frannsoft/FrannHammer
src/Implementation/FrannHammer.WebScraping/Moves/PropertyResolvers/UltimateBaseDamageResolver.cs
5367
using FrannHammer.Domain.Contracts; using HtmlAgilityPack; using System.Linq; namespace FrannHammer.WebScraping.Moves { public class Smash4BaseDamageResolver { public string GetRawValue(HtmlNode node) => node.InnerText; } public class UltimateBaseDamageResolver { publ...
mit
bijanfallah/OI_CCLM
src/run_octave.py
10043
# run octave from python (IO code ) # This code will run the IO code and produce the plots for RMSE and save the out put data # Created by Bijan Fallah # info@bijan-fallah.com # ----------------------------------------------------------------------------------- # DO not change any line here, it will be changed automat...
mit
RelistenNet/RelistenApi
RelistenApi/Services/Data/SetlistSongService.cs
7618
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Dapper; using Relisten.Api.Models; namespace Relisten.Data { public class SetlistSongService : RelistenDataServiceBase { public SetlistSongService(DbService db) : base(db) { } public async Task<IEnumerabl...
mit
TeaLang/tea
builtin/dist/core.php
61
<?php #public interface IView { // no any } // program end
mit
snakamura/q3
q3/qm/src/ui/tabwindow.cpp
21649
/* * $Id$ * * Copyright(C) 1998-2008 Satoshi Nakamura * */ #ifdef QMTABWINDOW #pragma warning(disable:4786) #include <qmaccount.h> #include <qmapplication.h> #include <qmfilenames.h> #include <qmfolder.h> #include <qsmenu.h> #include <qsuiutil.h> #include "folderimage.h" #include "resource...
mit
marcj/php-rest-service
Test/Synthetic/CollectTest.php
1997
<?php namespace Test\Synthetic; use RestService\Server; use Test\Controller\MyRoutes; class CollectTest extends \PHPUnit\Framework\TestCase { /** * @var Server */ private $restService; public function setUp() { $this->restService = Server::create('/', new MyRoutes) ->se...
mit
xtrmstep/SwaggerTutorial
BookStoreApiService/SwaggerHelpers/Filters/MarkSecuredMethodsOperationFilter.cs
1492
using System.Collections.Generic; using System.Linq; using System.Web.Http; using System.Web.Http.Description; using System.Web.Http.Filters; using Swashbuckle.Swagger; namespace BookStoreApiService.SwaggerHelpers.Filters { /// <summary> /// This filter enforces authorization header to be applied for Swag...
mit
Warframe-Community-Developers/warframe-worldstate-parser
lib/CambionCycle.js
959
'use strict'; const WorldstateObject = require('./WorldstateObject.js'); /** * Represents the current Cambion Drift Fass/Vome Cycle * @extends {WorldstateObject} */ class CambionCycle extends WorldstateObject { /** * @param {CetusCycle} cetusCycle Match data from cetus cycle for data * @param {O...
mit
rjwut/ian
src/main/java/com/walkertribe/ian/protocol/core/ServerHeartbeatPacket.java
639
package com.walkertribe.ian.protocol.core; import com.walkertribe.ian.enums.Origin; import com.walkertribe.ian.iface.PacketReader; import com.walkertribe.ian.iface.PacketWriter; import com.walkertribe.ian.protocol.Packet; /** * A packet sent periodically by the server to demonstrate that it's still * alive. * @aut...
mit
jennieolsson/XChange
xchange-hitbtc/src/test/java/com/xeiam/xchange/hitbtc/HitbtcAdapterTest.java
5218
package com.xeiam.xchange.hitbtc; import static org.fest.assertions.api.Assertions.assertThat; import java.io.IOException; import java.io.InputStream; import java.util.Date; import java.util.List; import java.util.Map; import org.junit.Test; import com.fasterxml.jackson.databind.ObjectMapper; import com.xeiam.xchan...
mit
abouthiroppy/sweetpack
test/lib/webpack/build.js
335
import test from 'ava'; import build from '../../../lib/webpack/build'; test('fails when the config is empty', async(t) => { await build({}) .then(() => t.fail()) .catch(() => t.pass()); }); // test('successes when the config is correct', async (t) => { // // // [TODO] create tmp // const config = { // ...
mit
makcedward/nlpaug
test/profiler.py
1365
import nlpaug, transformers, torch, fairseq, nltk from platform import python_version import nlpaug.augmenter.audio as naa import nlpaug.augmenter.char as nac import nlpaug.augmenter.word as naw import nlpaug.augmenter.sentence as nas from pyinstrument import Profiler profiler = Profiler() def main(): model_paths =...
mit
divotkey/cogaen3-java
Cogaen LWJGL/src/org/cogaen/lwjgl/input/MouseButtonPressedEvent.java
2284
/* ----------------------------------------------------------------------------- Cogaen - Component-based Game Engine V3 ----------------------------------------------------------------------------- This software is developed by the Cogaen Development Team. Please have a look at our project ho...
mit
jaredgray/draw
app/model/stage.ts
57
export class Stage { canvas: CanvasDrawingRenderer; }
mit
Washi1337/AsmResolver
src/AsmResolver/Utf8String.cs
20707
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Text; namespace AsmResolver { /// <summary> /// Represents an immutable UTF-8 encoded string. This class supports preserving invalid UTF-8 code sequences. ...
mit
enilu/web-flash
flash-core/src/main/java/cn/enilu/flash/core/listener/CacheListener.java
1173
package cn.enilu.flash.core.listener; import cn.enilu.flash.cache.ConfigCache; import cn.enilu.flash.cache.DictCache; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.ste...
mit
zg/CSCWebsite
csc_new/pages/models.py
4991
from django.db import models from django.utils.encoding import force_bytes from django.utils import timezone # dependent on icalendar package - pip install icalendar from icalendar import Calendar, Event, vDatetime, LocalTimezone from datetime import datetime, timedelta import urllib.request, urllib.error, urllib.pars...
mit
AnewG/slim_readcode
tests/RouterTest.php
8571
<?php // DONE /** * Slim - a micro PHP 5 framework * * @author Josh Lockhart <info@slimframework.com> * @copyright 2011 Josh Lockhart * @link http://www.slimframework.com * @license http://www.slimframework.com/license * @version 2.4.2 * * MIT LICENSE * * Permission is hereby granted, f...
mit
djreimer/mini_cache
lib/mini_cache/data.rb
424
# frozen_string_literal: true module MiniCache class Data attr_reader :value attr_reader :expires_in def initialize(value, expires_in: nil) @value = value @expires_in = expires_in.nil? ? nil : Time.now + expires_in end def expired? !@expires_in.nil? && Time.now > @expires_in ...
mit
erickjth/SurveysAdmin
cache/frontapp/prod/config/modules_survey_config_security.yml.php
162
<?php // auto-generated by sfSecurityConfigHandler // date: 2011/05/31 16:23:13 $this->security = array ( 'all' => array ( 'is_secure' => false, ), );
mit
MogulMVC/MogulJS
src/ui/MPopup.js
755
var MPopup = (function() { function MPopup(width, height, title) { if(width == null || width == ''){ width = 400; } if(height == null || height == ''){ height = 300; } if(title == null || title == ''){ title = 'Popup'; } // Container var uiElement = document.createElement('div'); ...
mit
UniDyne/tritiumjs
src/Lang.js
752
// Language extensions Array.implement({ getFirst: function() { return this.length == 0 ? null : this[0]; }, getLast: function() { return this.length == 0 ? null : this[this.length - 1]; }, unique: function() { var a=[]; for(var i=0;i<this.length;i++)if(a.indexOf(this[i])<0)a.push(this[i]); return ...
mit
dlcs/elucidate-server
elucidate-server/src/main/java/com/digirati/elucidate/service/query/OAAnnotationService.java
209
package com.digirati.elucidate.service.query; import com.digirati.elucidate.common.model.annotation.oa.OAAnnotation; public interface OAAnnotationService extends AbstractAnnotationService<OAAnnotation> { }
mit
franciscogonzalez91/EmployeeAdminSoftware
Employee Admin Software V1/BuscarEmpleado.Designer.cs
4483
namespace Employee_Admin_Software_V1 { partial class BuscarEmpleado { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summ...
mit
gbtorrance/test
core/src/test/java/org/tdc/config/model/ModelConfigTest.java
4856
package org.tdc.config.model; import static org.assertj.core.api.Assertions.assertThat; import java.awt.Color; import java.nio.file.Path; import java.nio.file.Paths; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.tdc.config.schema.Sche...
mit
fgascon/home-api
index.js
150
var server = require('./lib/server'), routesLoader = require('./lib/routes-loader'); routesLoader(server); server.start(); require('./lib/logic');
mit
kinchan33/a1520mk_exercise4
lib/a1520mk_exercise4/version.rb
48
module A1520mkExercise4 VERSION = "0.1.5" end
mit
alejandrodumas/kodiak
kodiak/__init__.py
272
# -*- coding: utf-8 -*- """Top-level package for kodiak.""" from __future__ import absolute_import from kodiak.kodiak_dataframe import KodiakDataFrame from kodiak.config import * __author__ = """Ezequiel Erbaro""" __email__ = 'eerbaro@gmail.com' __version__ = '0.1.0'
mit
TaojingCoin-pd/TjcoinV2
src/qt/bitcoinstrings.cpp
13614
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = { QT_TRANSLATE_NOOP("bitcoin-core", "" "%s, you must set a rpcpassword in the configuration file:\n" "%s\n" "It is recomme...
mit
OpenGestureControl/Desktop
tests/Test-module/main.lua
1590
-- Copyright (c) 2017 ICT Group -- 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, distr...
mit
brunohbrito/Angular-VisualSearch
webpack.config.js
1370
var webpack = require("webpack"); var CopyWebpackPlugin = require('copy-webpack-plugin'); var path = require("path"); module.exports = { entry: { demoApp: "./example/src/start.ts", "angular-visual-search": "./src/AngularVisualSearchModuleBuilder.ts" }, output: { path: "./example/", ...
mit
xlvector/gocaffe
caffe_test.go
312
package gocaffe_test import ( "github.com/xlvector/gocaffe" "testing" ) func TestCaffe(t *testing.T) { pred := gocaffe.NewCaffePredictor("./examples/car_quick.prototxt", "./examples/car_quick_iter_8000.caffemodel.h5") t.Log(pred.Predict("./examples/car.png")) t.Log(pred.Predict("./examples/car.jpg")) }
mit
msanchex/testmasm
protected/models/ComprasDireccionesDespacho.php
5428
<?php /** * This is the model class for table "t_ComprasDireccionesDespacho". * * The followings are the available columns in table 't_ComprasDireccionesDespacho': * @property integer $idCompra * @property string $descripcion * @property string $nombre * @property string $direccion * @property string...
mit
adamjmoon/testabul
src/async/ex3-promises/ex3-fixed.js
792
import fakeAjax from "../fakeAjax-promise"; export default function () { // ************************************** // The promise way let getFile = (file) => fakeAjax(file); this.start = () => { "use strict"; return new Promise((resolve) => { var _output = []; // request all files at once in "parallel" ...
mit
MitchellMintCoins/MortgageCoin
src/qt/locale/bitcoin_tr.ts
119711
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Mortgagecoin</source> <translation>Mortgagecoin hakkında</translatio...
mit
VKCOM/vk-java-sdk
sdk/src/main/java/com/vk/api/sdk/streaming/actions/StreamingAbstractAction.java
470
package com.vk.api.sdk.streaming.actions; import com.vk.api.sdk.streaming.clients.VkStreamingApiClient; /** * Abstract action for Streaming API */ public abstract class StreamingAbstractAction { private VkStreamingApiClient streamingClient; public StreamingAbstractAction(VkStreamingApiClient streamingClie...
mit
Naatan/XenForo-CLI
library/CLI/Xf/Listener.php
360
<?php /** * XenForo CLI - Listener command (ie. xf listener) */ class CLI_Xf_Listener extends CLI { /** * @var string Help text */ protected $_help = ' Possible commands: (you can excute these commands with --help to view their instructions) xf listener .. - add - delete '; public funct...
mit
jostschmithals/three.js
src/math/Vector3.js
12371
import { _Math } from './Math'; import { Matrix4 } from './Matrix4'; import { Quaternion } from './Quaternion'; /** * @author mrdoob / http://mrdoob.com/ * @author *kile / http://kile.stravaganza.org/ * @author philogb / http://blog.thejit.org/ * @author mikael emtinger / http://gomo.se/ * @author egraether / htt...
mit
GustavoAmerico/IngressosOnline
IngressosOnlineSolution/Views/Ticket.Views.HttpApi/Models/RequestItemModel.cs
467
using System; using Ticket.Core; namespace Ticket.Views.HttpApi.Models { public class RequestItemModel : IRequestItemModel { /// <summary>Gets and sends identification from event</summary> public Guid Id { get; set; } /// <summary>Gets and sends the price for anuncies</summary> ...
mit
anfema/ember-addon-anfema-blueprints
blueprints/service-test/mocha-0.12-files/tests/unit/__path__/__name__-test.js
394
import { expect } from 'chai'; import { describe, it } from 'mocha'; import { setupTest } from 'ember-mocha'; describe('<%= friendlyTestDescription %>', function () { setupTest('service:<%= dasherizedModuleName %>', { // needs: ['service:foo'], }); // Replace this with your real tests. it('exists', function () ...
mit
NimzyMaina/planner
paging_product.php
1286
<?php // the page where this paging is used $page_dom = "index.php"; echo "<ul class=\"pagination\">"; // button for first page if($page>1){ echo "<li><a href='{$page_dom}' title='Go to the first page.'>"; echo "<<"; echo "</a></li>"; } // count all products in the database to calculate total page...
mit
sirarsalih/Hackathons
if-finland-hackathon-2014/OpenDataService/ClaimsService.svc.cs
4887
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Messaging; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Web; using System.Text; using System.Text.RegularExpressions; using System.Web.UI.WebControls; using OpenDataService.DataM...
mit
kohanyirobert/mongoroid
src/main/java/com/github/kohanyirobert/mongoroid/MongoMessageInsert.java
484
package com.github.kohanyirobert.mongoroid; import com.github.kohanyirobert.ebson.BsonDocument; import java.util.List; interface MongoMessageInsert extends MongoMessageRequest { String fullCollectionName(); void fullCollectionName(String fullCollectionName); List<BsonDocument> documents(); void documents...
mit
Fabiarm/spsmribbon
Code/1.0.0/dev/CONTROLTEMPLATES/SPS.MRibbon/JS/Settings.js
20170
var MRibbonSets = { InitializeVariables: function () { MRibbonSets.s_keys = [ "rib_p_edit", "rib_p_mng", "rib_p_share", "rib_p_apprl", "rib_p_wkf", "rib_p_acts", "rib_p_tags", "rib_wp_edit", "rib_wp_mng", "rib_wp_share", "rib...
mit
MTASZTAKI/ApertusVR
plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/parallel/test-child-process-fork-closed-channel-segfault.js
2115
'use strict'; const common = require('../common'); // Before https://github.com/nodejs/node/pull/2847 a child process trying // (asynchronously) to use the closed channel to it's creator caused a segfault. const assert = require('assert'); const cluster = require('cluster'); const net = require('net'); if (!cluster....
mit
takuya-takeuchi/Demo
Xamarin.Forms.Portable2/Xamarin.Forms.Portable2/Xamarin.Forms.Portable2/Views/MainPage.xaml.cs
327
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace Xamarin.Forms.Portable2.Views { public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); } ...
mit
guatebus/partyplanner
src/Party/Bundle/PublicBundle/Tests/Controller/DefaultControllerTest.php
408
<?php namespace Party\Bundle\PublicBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $th...
mit
d1str0/CoinAlert-Server
main.go
2624
package main import ( "fmt" "gopkg.in/mgo.v2" "html/template" "log" "net/http" "time" ) const version = "0.0.1" const templateDir = "templates/*" // Must be able to compile all template files. const url = "localhost" const database = "coinalert" const devices_collection = "devices" const alerts_collection = "a...
mit
ddegirmenci/hexgrid
hexgrid/__init__.py
5846
from collections import namedtuple import math from enum import Enum from itertools import combinations class Direction(Enum): East = (1, 0) NorthEast = (1, -1) NorthWest = (0, -1) West = (-1, 0) SouthWest = (-1, 1) SouthEast = (0, 1) class Hex(namedtuple("Hex", ["q", "r"])): def __add__...
mit
sevenfate/model-builder
src/test/java/de/microtema/model/builder/order/PurchaseItemBuilderTest.java
680
package de.microtema.model.builder.order; import de.microtema.model.builder.ModelBuilder; import de.microtema.model.builder.ModelBuilderFactory; import org.junit.Test; import static org.junit.Assert.assertNotNull; public class PurchaseItemBuilderTest { ModelBuilder<PurchaseItem> sut = ModelBuilderFactory.create...
mit
YanPes/DearGoogle
website/js/mapboxRoutes.js
5587
// MAPBOX SETUP mapboxgl.accessToken = 'pk.eyJ1IjoicmV0dGljaG1hbm4iLCJhIjoiY2o0Z29hZ2lyMDUxeDMzcmthM2p3dWl2MCJ9.K1aZmsG6jyUNgTPfnQiw0g'; var map = new mapboxgl.Map({ container: 'map', // container id style: 'mapbox://styles/rettichmann/cj4iej0o861jl2rnpswt7sjao', //stylesheet location center: [-73.99...
mit
Microsoft/ProjectOxford-ClientSDK
Face/Android/ClientLibrary/lib/src/main/java/com/microsoft/projectoxford/face/contract/Glasses.java
1645
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Cognitive Services (formerly Project Oxford): https://www.microsoft.com/cognitive-services // // Microsoft Cognitive Services (formerly Project Oxford) GitHub: // https://github.com/Microsoft/ProjectOxford-ClientSDK/ ...
mit
xuan6/admin_dashboard_local_dev
node_modules/react-icons-kit/md/ic_email.js
308
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ic_email = exports.ic_email = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z" } }] };
mit
vimeo/psalm
src/Psalm/Node/Expr/BinaryOp/VirtualGreater.php
206
<?php declare(strict_types=1); namespace Psalm\Node\Expr\BinaryOp; use PhpParser\Node\Expr\BinaryOp\Greater; use Psalm\Node\VirtualNode; class VirtualGreater extends Greater implements VirtualNode { }
mit
matiasleidemer/lotus-bookshelf
spec/web/views/books/new_spec.rb
765
require 'spec_helper' require_relative '../../../../apps/web/views/books/new' class NewBookParams < Lotus::Action::Params param :book do param :title, presence: true param :author, presence: true end end describe Web::Views::Books::New do let(:params) { NewBookParams.new({}) } let(:exposures) { Ha...
mit
jotatoledo/cqrs_web_api
CQRSExample.WebAPI/App_Start/UnityConfig.cs
5165
using System; using Microsoft.Practices.Unity; using CQRSExample.Data.Sql.StarterDb; using MediatR; using System.Reflection; using System.Linq; namespace CQRSExample.WebAPI.App_Start { internal static class IUnityContainerExtensionsMediatR { public static IUnityContainer RegisterMediator(this IUnityCon...
mit
humweb/push-notify
tests/AuthManagerTest.php
1318
<?php namespace Humweb\PushNotify\Tests; use Humweb\PushNotify\Auth; use Humweb\PushNotify\Auth\BaseAuth; use Humweb\PushNotify\Auth\Sentinel; use Humweb\PushNotify\Tests\Stubs\SentinelAuth; class AuthManagerTest extends TestCase { protected $manager; /** * Setup the test environment. */ pub...
mit
cstallings1/phase-0
week-4/errors.rb
8634
# Analyze the Errors # I worked on this challenge [by myself]. # I spent [1] hour 10 min. on this challenge. # --- error ------------------------------------------------------- # cartmans_phrase = "Screw you guys " + "I'm going home." # This error was analyzed in the README file. # --- error -----------------------...
mit
uniquoooo/CSManager
src/Manager/Migrations/Maps.php
1752
<?php /* * This file is apart of the CSManager project. * * Copyright (c) 2016 David Cole <david@team-reflex.com> * * This source file is subject to the MIT license that is bundled * with this source code in the LICENSE file. */ namespace Manager\Migrations; class Maps { /** * Runs the migrations. ...
mit
MatthieuSegret/graphql-rails-blog
client/src/components/flash/flashMessageLocalLink.ts
883
import { withClientState } from 'apollo-link-state'; import FLASH_MESSAGE from 'graphql/flash/flashMessageQuery.graphql'; // typings import { DataProxy } from 'apollo-cache'; import { FlashMessage } from 'types'; export const flashMessageLocalLink = withClientState({ Query: { // provide an initial state me...
mit
SkyIsTheLimit/vacation-planner
src/polyfills.ts
2506
/* tslint:disable */ /** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application i...
mit
kbond/ZenstruckBackupBundle
tests/DependencyInjection/Compiler/ProfileCompilerPassTest.php
914
<?php namespace Zenstruck\BackupBundle\Tests\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\ContainerBuilder; use Zenstruck\BackupBundle\DependencyInjection\Compiler\ProfileCompilerPass; /** * @author Kevin Bond <kevinbond@gmail.com> */ class ProfileCompilerPassTest extends RegisterCompile...
mit
dragosmocrii/picnic
src/Mjolnic/Picnic/Task.php
1814
<?php namespace Mjolnic\Picnic; class Task { /** * * @var string */ public $publicPath = false; /** * Task name (thumb folder name) * @var string */ public $name; /** * * @var string */ public $params = array(); /** * * @var stri...
mit
octawyan12/proiect.tw
src/Manager/AdminBundle/Repository/ProductRepository.php
269
<?php namespace Manager\AdminBundle\Repository; use Doctrine\ORM\EntityRepository; /** * ProductRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class ProductRepository extends EntityRepository { }
mit
ReapeR-MaxPayne/SU-TM-PF-Ext-0517-Excersises-CSharp
06-Lists-Exercises/Problem_02_Track Downloader/Properties/AssemblyInfo.cs
1430
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Pr...
mit
doug-martin/it
lib/browser/formatters/html.js
6272
"use strict"; var _ = require("../../extended"), AssertionError = require("assert").AssertionError, Reporter = require("../../formatters/reporter"), format = _.format, arraySlice = Array.prototype.slice; var pluralize = function (count, str) { return count !== 1 ? str + "s" : str; }; function get...
mit
plrthink/react-native-zip-archive
index.d.ts
907
declare module 'react-native-zip-archive' { enum encryptionMethods { 'STANDARD', 'AES-128', 'AES-256' } import { NativeEventSubscription } from 'react-native'; export function isPasswordProtected(source: string): Promise<boolean>; export function zip(source: string | string[], target: string): Pro...
mit
Blaubot/Blaubot
blaubot/src/main/java/eu/hgross/blaubot/admin/BowDownToNewKingAdminMessage.java
3689
package eu.hgross.blaubot.admin; import java.nio.ByteBuffer; import java.util.Arrays; import java.util.List; import eu.hgross.blaubot.core.BlaubotConstants; import eu.hgross.blaubot.core.acceptor.ConnectionMetaDataDTO; import eu.hgross.blaubot.messaging.BlaubotMessage; /** * Informs the peasants and the prince that...
mit
royaltm/node-murmurhash-native
test/randomchunkstream.js
817
"use strict"; var crypto = require('crypto'); var stream = require('stream'); var Readable = stream.Readable; require('util').inherits(RandomChunkStream, Readable); module.exports = RandomChunkStream; function RandomChunkStream(options) { this.maxchunksize = options.maxchunksize>>>0; this.size = options.size>>>...
mit
Quokkalinchen/The-Code-Hustlers
node_modules/@angular/cli/blueprints/module/index.js
2223
"use strict"; const path = require('path'); const Blueprint = require('../../ember-cli/lib/models/blueprint'); const dynamicPathParser = require('../../utilities/dynamic-path-parser'); const getFiles = Blueprint.prototype.files; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Blueprint....
mit
falling-sky/happy-eye-test
hedata.js
3593
/*global GIGO, MirrorConfig, jQuery, window, alert, Browser */ /*jslint browser: true */ /*jslint regexp: true */ /* TODO: Detect if window is backgrounded and hidden. If so, limit how many more times we run (say, to 1000 or 10000, or to 1 hour). If brought to foreground, unblock. http://stackoverflow.com...
mit
EmoLens/EmoLens
Assets/HoloToolkit/Utilities/Scripts/Extensions/TransformExtensions.cs
4786
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace HoloToolkit.Unity { public static class TransformExtensions ...
mit
robotii/sophielang
Sophie.Core/Objects/ObjRange.cs
1035
using Sophie.Core.VM; namespace Sophie.Core.Objects { public sealed class ObjRange : Obj { // The beginning of the range. // The end of the range. May be greater or less than [from]. // True if [to] is included in the range. // Creates a new range from [from] to ...
mit
playpossat/blocksattime
src/qt/locale/bitcoin_es_UY.ts
109983
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_UY" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About satoshimadness</source> <translation type="unfinished"/> </message> <message> <locat...
mit
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-3.1/Lib/re.py
14330
# # Secret Labs' Regular Expression Engine # # re-compatible interface for the sre matching engine # # Copyright (c) 1998-2001 by Secret Labs AB. All rights reserved. # # This version of the SRE library can be redistributed under CNRI's # Python 1.6 license. For any other use, please contact Secret Labs # AB (info@py...
mit
tmetsch/suricate
tests/analytics_exec_node_test.py
4342
import time import unittest from suricate.analytics import exec_node, proj_ntb_store class ExecNodeTest(unittest.TestCase): payload = {'uid': 'foo', 'token': 'bar', 'project_id': 'qwe'} mongo_uri = 'mongodb://foo:bar@localhost:27017/foo' amqp_uri = 'amqp://guest:guest@local...
mit
monicajimenez/weas
resources/views/request/purchase/file_old.php
13341
@extends("layouts/master") @section('sitetitle', 'File PR Request: ') @section('pagetitle', 'File PR Request: ') @section("content") <div class="row"> <div class="col l10 right"> <form class="form-horizontal" id="form_file" method="post" action="{{ route('request.store') }}"> <input type="hidden" name="_token...
mit
irodgal/visioapp
dist/users/UserController.js
2656
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_1 = require("../config"); class UserController { pruebaAccesoBD() { console.log('en pruebaAccesoBD'); //console.log(config.client); //const client = new Client<Foo>("http://localhost:5984", "visio"); ...
mit
raoulvdberge/refinedstorage
src/main/java/com/refinedmods/refinedstorage/screen/grid/sorting/QuantityGridSorter.java
923
package com.refinedmods.refinedstorage.screen.grid.sorting; import com.refinedmods.refinedstorage.api.network.grid.IGrid; import com.refinedmods.refinedstorage.screen.grid.stack.IGridStack; public class QuantityGridSorter implements IGridSorter { @Override public boolean isApplicable(IGrid grid) { ret...
mit
spesmilo/electrum
electrum/tests/__init__.py
1287
import unittest import threading import tempfile import shutil import electrum import electrum.logging from electrum import constants # Set this locally to make the test suite run faster. # If set, unit tests that would normally test functions with multiple implementations, # will only be run once, using the fastest...
mit
blood2/bloodcoin-0.9
src/qt/locale/bitcoin_fa.ts
135289
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.1"> <context> <name>AboutDialog</name> <message> <source>About Blood Core</source> <translation type="unfinished"/> </message> <message> <source>&lt;b&gt;Blood Core&lt;/b&gt; version</source> <translation typ...
mit
clinReasonTool/ClinicalReasoningTool
ClinReasonTool/src/scripts/crt_box.js
32572
/** * javascript for displaying the illness script tabs representation */ /******************** general add/del*******************************/ /** * user changes the course of time, we trigger an ajax call to save change. */ /*function changeCourseOfTime(){ var courseTime = $("#courseTime").val(); sendAjax(c...
mit
Touchwonders/testflight-exporter
lib/testflight_exporter/version.rb
50
module TestFlightExporter VERSION = "0.2.2" end
mit