repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
AndreyAttr/Evo
ClientWeb/Evolution/Services/di-interaction-service-tokens.ts
2970
import {IEvent, IInteractEvent} from "./event-interaction.service"; import {Observable} from "rxjs/Observable"; //Abstract base token classes for 2 possible kinds of event: //Class used as a "narrowing" interface that exposes properties of real instance of service(which is hidden under the token) and the same time it ...
mit
CriticalPathTraining/GSA2016
Modules/13_NodeJS/Lab/Solution/project1/gulpfile.js
1089
var gulp = require('gulp'); var clean = require('gulp-clean'); var ts = require("gulp-typescript"); var tsProject = ts.createProject("tsconfig.json"); var browserSync = require('browser-sync'); gulp.task('clean', function() { console.log("Running clean task"); return gulp.src('dist/', {read: false}) .pipe(clea...
mit
RealityFactory/CEGUI
samples/browser/src/CEGuiOpenGL3BaseApplication.cpp
3521
/*********************************************************************** created: 24/9/2004 author: Paul D Turner *************************************************************************/ /*************************************************************************** * Copyright (C) 2004 - 2009 Paul D Turner & T...
mit
andion/CursoiOS
academy/db/schema.rb
1820
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative sou...
mit
datalogics-robb/scons
bin/scons-unzip.py
1802
#!/usr/bin/env python # # A quick script to unzip a .zip archive and put the files in a # subdirectory that matches the basename of the .zip file. # # This is actually generic functionality, it's not SCons-specific, but # I'm using this to make it more convenient to manage working on multiple # changes on Windows, wher...
mit
Kunstmaan/BootstrapCK4-Skin
plugins/image/lang/en-gb.js
954
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'image', 'en-gb', { alertUrl: 'Please type the image URL', alt: 'Alternative Text', border: 'Border', btnUpload: 'Send it to the Server', ...
mit
phpexpertsinc/DoctrineDetective
PHPExperts/DoctrineDetectiveBundle/DoctrineDetectiveBundle.php
153
<?php namespace PHPExperts\DoctrineDetectiveBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class DoctrineDetectiveBundle extends Bundle { }
mit
anjali-ui-dev/JavaScriptPaintApp
app.js
3685
// Paint App Javascript 'use strict'; (function () { var canvas = document.getElementById('paintArea'); var context = canvas.getContext('2d'); var drawnCircles = []; var currentDrawingcircle ; var isDebugMode = false; var refreshInterval = 20; var currentSelectedIndex = -1; var isDrag = false; canvas.onselects...
mit
entrotech/deployapp
Sabio.Web/Assets/Admin/js/form-wizards-validation.demo.min.js
755
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.7 Version: 2.1.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin-v2.1/admin/html/ */var handleBootstrapWizardsValidation=function(){"use strict";$("#wizard").bwizard({validating:function(e,t){if(t.index==...
mit
princesust/SUN-TASK
resources/views/partials/not-found.php
279
<div v-if="totalPage == 0 && loading == false"> <div id="content"> <div class="container"> <div class="not-found"> <h1>No Record Found</h1> </div> </div> </div> </div>
mit
aspose-cells/Aspose.Cells-for-Cloud
Examples/Java/SDK/src/main/java/com/aspose/cells/cloud/examples/worksheet/UnhideWorksheet.java
1791
package com.aspose.cells.cloud.examples.worksheet; import com.aspose.cells.api.CellsApi; import com.aspose.cells.cloud.examples.Configuration; import com.aspose.cells.cloud.examples.Utils; import com.aspose.storage.api.StorageApi; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; impo...
mit
lingxyd/nmqtt
nMQTT/ConnectionHandling/MqttConnection.cs
13038
/* * nMQTT, a .Net MQTT v3 client implementation. * http://wiki.github.com/markallanson/nmqtt * * Copyright (c) 2009 Mark Allanson (mark@markallanson.net) & Contributors * * Licensed under the MIT License. You may not use this file except * in compliance with the License. You may obtain a copy of the License ...
mit
mKeRix/home-assistant
homeassistant/scripts/check_config.py
9544
"""Script to check the configuration file.""" import argparse import asyncio from collections import OrderedDict from collections.abc import Mapping, Sequence from glob import glob import logging import os from typing import Any, Callable, Dict, List, Tuple from unittest.mock import patch from homeassistant import boo...
mit
tschaume/pymatgen
pymatgen/analysis/pourbaix_diagram.py
39890
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module is intended to be used to compute Pourbaix diagrams of arbitrary compositions and formation energies. If you use this module in your work, please consider citing the following: General formalis...
mit
magullo/jmxtrans
jmxtrans-core/src/main/java/com/googlecode/jmxtrans/model/JmxResultProcessor.java
7249
/** * The MIT License * Copyright © 2010 JmxTrans team * * 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, mo...
mit
darrelljefferson/themcset.com
bin/test/a/f/m.php
37
<?php namespace test\a\f; class m { }
mit
p-try/CakePdf
src/Pdf/Engine/DomPdfEngine.php
1511
<?php namespace CakePdf\Pdf\Engine; use CakePdf\Pdf\CakePdf; use Dompdf\Dompdf; class DomPdfEngine extends AbstractPdfEngine { /** * Generates Pdf from html * * @return string raw pdf data */ public function output() { $defaults = [ 'fontCache' => TMP, ...
mit
QuarnstromA/Tales-of-Kratos
lib/game/entities/menus/decreaseDemonFang.js
895
ig.module( 'game.entities.menus.decreaseDemonFang' ) .requires( 'game.entities.abstractions.decreaseSkill' ) .defines(function(){ ig.global.EntityDecreaseDemonFang = ig.global.EntityDecreaseSkill.extend({ update: function(){ if(ig.game.artesCatalog['demonFang'].points > 0 && ig.game.artesCatalog['demonFang'...
mit
noreiller/sfAssetsLibraryPlugin
modules/sfAsset/actions/actions.class.php
180
<?php require_once sfConfig::get('sf_plugins_dir'). '/sfAssetsLibraryPlugin/modules/sfAsset/lib/BasesfAssetActions.class.php'; class sfAssetActions extends BasesfAssetActions { }
mit
bitpay/bitcore-wallet-service
lib/emailservice.js
12005
'use strict'; var _ = require('lodash'); var $ = require('preconditions').singleton(); var async = require('async'); var Mustache = require('mustache'); var log = require('npmlog'); log.debug = log.verbose; var fs = require('fs'); var path = require('path'); var Utils = require('./common/utils'); var Defaults = requir...
mit
v-iam/azure-sdk-for-python
azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/topology_resource.py
1509
# 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
GenericHero/SSH.NET
src/Renci.SshNet.Tests/Classes/Messages/Authentication/BannerMessageTest.cs
777
using Renci.SshNet.Messages.Authentication; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using Renci.SshNet.Tests.Common; namespace Renci.SshNet.Tests.Messages.Authentication { /// <summary> ///This is a test class for BannerMessageTest and is intended ///to contain all Ba...
mit
andrewphan/node_todo_azure
node_modules/docker/src/docker.js
29115
// # docker.js // ### _A simple documentation generator based on [docco](http://jashkenas.github.com/docco/)_ // **Docker** is a really simple documentation generator, which originally started out as a // pure-javascript port of **docco**, but which eventually gained many extra little features // which somewhat break d...
mit
Unity-Technologies/ScriptableRenderLoop
com.unity.render-pipelines.high-definition/Runtime/Core/Debugging/Prefabs/Scripts/DebugUIHandlerWidget.cs
2419
using System; namespace UnityEngine.Experimental.Rendering.UI { public class DebugUIHandlerWidget : MonoBehaviour { [HideInInspector] public Color colorDefault = new Color(0.8f, 0.8f, 0.8f, 1f); [HideInInspector] public Color colorSelected = new Color(0.25f, 0.65f, 0.8f, 1f); ...
mit
ptyz030529/skysport
src/main/java/com/skysport/core/action/LoginAction.java
822
package com.skysport.core.action; import com.skysport.core.bean.permission.User; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org....
mit
axilleas/gitlabhq
spec/features/users/login_spec.rb
22558
require 'spec_helper' describe 'Login' do include TermsHelper include UserLoginHelper before do stub_authentication_activity_metrics(debug: true) end describe 'password reset token after successful sign in' do it 'invalidates password reset token' do expect(authentication_metrics) .to...
mit
bukun/maplet
setup.py
1249
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ''' For pypi ''' from setuptools import setup, find_packages desc = ('Maplet ') setup( name='torcms_maplet', version='0.1.1', keywords=('torcms', 'tornado'), description=desc, long_description=''.join(open('README.rst').readlines()), license='MIT ...
mit
ssgrn/Rust-Matrix-Computations
target/doc/clippy/reexport/sidebar-items.js
343
initSidebarItems({"struct":[["Ident","An identifier contains a Name (index into the interner table) and a SyntaxContext to track renaming and macro expansion per Flatt et al., \"Macros That Work Together\""],["Name","A name is a part of an identifier, representing a string or gensym. It's the result of interning."]],"t...
mit
danmcclain/ya-form
tests/unit/ya-form-test.js
761
import Ember from 'ember'; import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; const { Object: EmberObject, set } = Ember; moduleForComponent('ya-form', { integration: true, beforeEach() { set(this, 'wrapped', EmberObject.create({ user: { firstName: 'Der...
mit
rasmus/EventFlow
Source/EventFlow/Aggregates/IApply.cs
1440
// The MIT License (MIT) // // Copyright (c) 2015-2018 Rasmus Mikkelsen // Copyright (c) 2015-2018 eBay Software Foundation // https://github.com/eventflow/EventFlow // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Softwar...
mit
Temoto-kun/piano-keyboard
src/piano-keyboard.js
25463
/** * Script description. * @author TheoryOfNekomata * @date 2017-02-10 */ (function (root, name, dependencies, factory) { var Component = function Oatmeal(deps) { return (root[name] = factory.apply(null, deps)); }; if (typeof define === 'function' && define.amd) { define(dependencies,...
mit
J2/shade
src/com/shade/controls/InstructionImage.java
1893
package com.shade.controls; import org.newdawn.slick.Color; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.state.StateBasedGame; import com.shade.base.Animatable; /* Some image which hides, displays itself, pauses, then hides again. */ public class InstructionImage implem...
mit
joansmith/ontrack
ontrack-core/src/main/java/net/ontrack/core/model/ImportResponse.java
124
package net.ontrack.core.model; import lombok.Data; @Data public class ImportResponse { private final String uid; }
mit
ditup/ditapp-ng
src/app/tag/tag-resolver.service.spec.ts
520
import { TestBed, inject } from '@angular/core/testing'; import { TagResolver } from './tag-resolver.service'; import { ModelService } from '../model.service'; class FakeModelService { } describe('TagResolver', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ TagResolver,...
mit
yitzchak/dicy
packages/core/ext-types/command-join.d.ts
116
declare module 'command-join' { function commandJoin(args: string | string[]): string; export = commandJoin; }
mit
ceolter/ag-grid
community-modules/core/dist/cjs/utils/general.d.ts
1568
// Type definitions for @ag-grid-community/core v25.1.0 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby <https://github.com/ag-grid/> import { ICellRendererComp } from '../rendering/cellRenderers/iCellRenderer'; import { AgPromise } from './promise'; /** @deprecated */ export declare function getNam...
mit
TextFileDataTools/text-file-data-tools
src/main/java/stexfires/core/record/PairRecord.java
4278
package stexfires.core.record; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import stexfires.core.Field; import stexfires.core.Fields; import stexfires.core.TextRecord; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.stream.Stream; ...
mit
rainliu/algorithms
sort/QuickSort.go
881
package sort import ( "algorithms" "math/rand" "time" ) type QuickSort struct { sorter } func (this *QuickSort) Sort(a []algorithms.Comparable) { this.sort(a, 0, len(a)-1) } func (this *QuickSort) sort(a []algorithms.Comparable, low, high int){ if high<=low { return } j:= this.partition(a, low, high); ...
mit
webtown-php/KunstmaanBundlesCMS
src/Kunstmaan/AdminListBundle/Entity/LockableEntity.php
2694
<?php namespace Kunstmaan\AdminListBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Kunstmaan\AdminBundle\Entity\AbstractEntity; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity(repositoryClass="Kunstmaan\AdminListBundle\Repository\LockableEntityRepository") * @ORM\Table(name="kuma_locka...
mit
xrcat/x-guice
guice-property/src/test/java/com/maxifier/guice/property/converter/FileTypeConverterTest.java
1577
package com.maxifier.guice.property.converter; import com.google.inject.Guice; import com.google.inject.Inject; import com.google.inject.Injector; import com.google.inject.TypeLiteral; import com.maxifier.guice.property.Property; import com.maxifier.guice.property.PropertyModule; import org.testng.annotations.Test; i...
mit
medeiros/medeiros.github.io
#jekyll-theme-hydejack/assets/js/LEGACY-shadydom-hydejack-9.0.4.js
791
/*! * __ __ __ __ * /\ \/\ \ /\ \ __ /\ \ * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\ * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , < * \ \ \ \ \\ \ \_\ \ /\ \L\ \ ...
mit
rshaghoulian/HackerRank-solutions
Java/Advanced/Covariant Return Types/Solution.java
887
// github.com/RodneyShag class Flower { String whatsYourName() { return "I have many names and types."; } } class Jasmine extends Flower { @Override String whatsYourName() { return "Jasmine"; } } class Lily extends Flower { @Override String whatsYourName() { return...
mit
cpojer/jest
e2e/browser-resolver/__tests__/test.js
366
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-env browser */ 'use strict'; const div = require('../fake-pkg'); test('dummy test', () => { ex...
mit
Trojka/AndroidGestureDSL
androidGestureDSL/src/main/java/be/trojkasoftware/android/gestures/CheckRelationMilliSecondsOfTimingIdCondition.java
927
package be.trojkasoftware.android.gestures; public class CheckRelationMilliSecondsOfTimingIdCondition implements IGestureCondition { public CheckRelationMilliSecondsOfTimingIdCondition(RelationType relationType, int rangeValue, String key) { this.relationType = relationType; this.range = rangeValue; this.da...
mit
theRocket/wsbaracing
vendor/plugins/backgroundrb/server/lib/log_worker.rb
562
class LogWorker < Packet::Worker set_worker_name :log_worker #set_no_auto_load(true) attr_accessor :log_file def worker_init @log_file = Logger.new("#{RAILS_HOME}/log/backgroundrb_#{CONFIG_FILE[:backgroundrb][:port]}.log") end def receive_data p_data case p_data[:type] when :request: process_re...
mit
joseadame/phpsandbox
vendor/andres-montanez/magallanes/Mage/Task/BuiltIn/Filesystem/ApplyFaclsTask.php
1280
<?php namespace Mage\Task\BuiltIn\Filesystem; use Mage\Task\AbstractTask; use Mage\Task\SkipException; use Mage\Task\Releases\IsReleaseAware; class ApplyFaclsTask extends AbstractTask implements IsReleaseAware { /** * Returns the Title of the Task * @return string */ public function getName() ...
mit
Haacked/Subtext
src/Subtext.Framework/Syndication/RssCategoryHandler.cs
3179
#region Disclaimer/Info /////////////////////////////////////////////////////////////////////////////////////////////////// // Subtext WebLog // // Subtext is an open source weblog system that is a fork of the .TEXT // weblog system. // // For updated news and information please visit http://subtextproject.com/ // Su...
mit
intridea/omniauth
spec/omniauth/failure_endpoint_spec.rb
2361
require 'helper' describe OmniAuth::FailureEndpoint do subject { OmniAuth::FailureEndpoint } context 'raise-out environment' do before do @rack_env = ENV['RACK_ENV'] ENV['RACK_ENV'] = 'test' @default = OmniAuth.config.failure_raise_out_environments OmniAuth.config.failure_raise_out_en...
mit
wenjoy/homePage
node_modules/geetest/node_modules/request/node_modules/har-validator/node_modules/echint/node_modules/lintspaces/node_modules/editorconfig/editorconfig.js
3955
var fs = require('fs'); var path = require('path'); var minimatch = require('./lib/fnmatch'); var iniparser = require('./lib/ini'); var Version = require('./lib/version'); var pkg = require('./package.json'); var knownProps = ['end_of_line', 'indent_style', 'indent_size', 'insert_final_newline', 'trim_trailing_w...
mit
albertopeam/Android-Architecture-Components
app/src/main/java/es/albertopeam/apparchitecturelibs/domain/AddNote.java
181
package es.albertopeam.apparchitecturelibs.domain; /** * Created by Alberto Penas Amorberto Penas Amor on 27/05/2017. */ public interface AddNote { void add(String note); }
mit
navalev/nether
NetherLoadTest/Nether.Sdk/NetherClient.cs
4078
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using IdentityModel.Client; using Newtonsoft.Json; using System; using System.Net.Http; using System.Security.Authentication; using System.Text; using System.Threading...
mit
zephir-lang/zephir
Library/Variable/Globals.php
1959
<?php /** * This file is part of the Zephir. * * (c) Phalcon Team <team@zephir-lang.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Zephir\Variable; /** * Zephir\Variable\Globals. * * Represents a central knowl...
mit
antonradev/newscms
application/views/categories/menu.php
110
<li><a href="category.php?id=<?php echo $row['category_id']; ?>"><?php echo $row['category_name']; ?></a></li>
mit
Catchouli-old/Fariss
Farseer Physics Engine 3.2 XNA/Factories/JointFactory.cs
10429
using FarseerPhysics.Dynamics; using FarseerPhysics.Dynamics.Joints; using Microsoft.Xna.Framework; namespace FarseerPhysics.Factories { /// <summary> /// An easy to use factory for using joints. /// </summary> public static class JointFactory { #region Revolute Joint /// <summary...
mit
soccermetrics/match-result-app
resultapp/resultapp/main.py
212
# # main.py # # imports from flask import Flask import os # configuration DEBUG = int(os.environ["DEBUG"]) app = Flask(__name__) app.debug = bool(DEBUG) if __name__ == "__main__": app.run() import views
mit
stel-s/thedeb-symfony
app/cache/dev/annotations/df785bf2c76b8d46073dc8722d237e710985b1a6.cache.php
281
<?php return unserialize('a:2:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Entity":2:{s:15:"repositoryClass";N;s:8:"readOnly";b:0;}i:1;O:26:"Doctrine\\ORM\\Mapping\\Table":5:{s:4:"name";s:14:"reason_against";s:6:"schema";N;s:7:"indexes";N;s:17:"uniqueConstraints";N;s:7:"options";a:0:{}}}');
mit
obi-two/Rebelion
data/scripts/templates/object/tangible/powerup/weapon/shared_thrown_explosive.py
468
#### 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/powerup/weapon/shared_thrown_explosive.iff" result.attribute_templa...
mit
q2a-projects/CleanStrap
cleanstrap/qa-theme.php
5297
<?php $debug = false; /* don't allow this page to be requested directly from browser */ if (!defined('QA_VERSION')) { header('Location: /'); exit; } $cs_error =''; if($debug){ error_reporting(E_ALL); ini_set('display_errors', '1'); }else{ error_reporting(0); @ini_set('display_errors', 0); ...
mit
ceolter/angular-grid
grid-packages/ag-grid-docs/src/example-runner/chart-vanilla-to-vue.ts
4245
import { getFunctionName, isInstanceMethod, removeFunctionKeyword } from './parser-utils'; import { templatePlaceholder } from './chart-vanilla-src-parser'; import { toInput, toConst, toMember, toAssignment, convertTemplate, getImport } from './vue-utils'; import { wrapOptionsUpdateCode } from './chart-utils'; functio...
mit
odlp/antifreeze
vendor/code.cloudfoundry.org/cli/command/v6/restage_command.go
4392
package v6 import ( "github.com/cloudfoundry/noaa/consumer" "code.cloudfoundry.org/cli/actor/sharedaction" "code.cloudfoundry.org/cli/actor/v2action" "code.cloudfoundry.org/cli/actor/v2v3action" "code.cloudfoundry.org/cli/actor/v3action" "code.cloudfoundry.org/cli/api/cloudcontroller/ccversion" "code.cloudfoun...
mit
wp-plugins/nokautwl
vendor/nokaut/api-kit/src/Converter/Metadata/Facet/PropertyFacet/ValueConverter.php
556
<?php /** * Created by PhpStorm. * User: jjuszkiewicz * Date: 11.07.2014 * Time: 15:13 */ namespace Nokaut\ApiKit\Converter\Metadata\Facet\PropertyFacet; use Nokaut\ApiKit\Converter\ConverterInterface; use Nokaut\ApiKit\Entity\Metadata\Facet\PropertyFacet\Value; class ValueConverter implements ConverterInterfa...
mit
foretagsplatsen/widget-js
webpack.config.js
155
const config = require("./webpack.base.config.js"); config.entry = "./src/widgetjs.js"; config.output.filename = "widgetjs.js"; module.exports = config;
mit
mohsen-alizadeh/rails-pdate
test/time_shifting_test.rb
713
require 'test_helper' class TimeShiftingTest < ActiveSupport::TestCase test "time shifting" do assert_equal "1368/11/09".to_pdate.beginning_of_year.to_a, [1368, 1, 1] assert_equal "1368/11/09".to_pdate.beginning_of_month.to_a, [1368, 11, 1] assert_equal "1394/05/11".to_pdate.beginning_of_week.to_a, [13...
mit
johnbabb/C--Toggl-Api-Client
Toggl/Interfaces/ITaskService.cs
946
using System.Collections.Generic; namespace Toggl.Interfaces { public interface ITaskService { /// <summary> /// /// https://www.toggl.com/public/api#get_tasks /// </summary> /// <returns></returns> List<Task> List(); Task Get(int id); /// <su...
mit
BenGorUser/UserBundle
src/BenGorUser/UserBundle/DependencyInjection/Compiler/Routing/InviteRoutesLoaderBuilder.php
1444
<?php /* * This file is part of the BenGorUser package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace BenGorUser\UserBund...
mit
KSemenenko/Google-Analytics-for-Xamarin-Forms
Plugin.GoogleAnalytics/Plugin.GoogleAnalytics.Abstractions/Model/Transactions.cs
820
using System.Collections.Generic; namespace Plugin.GoogleAnalytics.Abstractions.Model { public sealed class Transaction { public Transaction() { Items = new List<TransactionItem>(); } public Transaction(string transactionId, long totalCostInMicros) : th...
mit
rslnautic/TriangleNet-Unity
TriangleNet/Assets/Triangle/Meshing/Converter.cs
17404
// ----------------------------------------------------------------------- // <copyright file="Converter.cs" company=""> // Original Triangle code by Jonathan Richard Shewchuk, http://www.cs.cmu.edu/~quake/triangle.html // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // </copyright> // -----...
mit
F483/picopayments
picopayments_hub/version.py
270
# coding: utf-8 # Copyright (c) 2016 Fabian Barkhau <f483@storj.io> # License: MIT (see LICENSE file) # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason __version__ = '1.0.5'
mit
Javier3131/ProyectoDAW
public/modules/tables/tables.module.js
71
'use strict'; ApplicationConfiguration.registerModule('app.tables');
mit
attilaolah/pinfeed
handler.go
2347
package main import ( "io" "io/ioutil" "net/http" "regexp" "strings" ) const ( origin = "https://www.pinterest.com/" repoURL = "https://github.com/attilaolah/pinfeed" ) var ( thumb = regexp.MustCompile("\\b(https?://[0-9a-z-]+.pinimg.com/)(\\d+x)(/[/0-9a-f]+.jpg)\\b") replacement = []byte("${1}1200x$...
mit
arteezy/vagrant-postgresql
cookbooks/apt/spec/spec_helper.rb
92
require 'chefspec' require 'chefspec/berkshelf' at_exit { ChefSpec::Coverage.report! }
mit
bitfluent/wheneva
vendor/plugins/formtastic/spec/label_spec.rb
1515
# coding: utf-8 require File.dirname(__FILE__) + '/test_helper' describe 'SemanticFormBuilder#label' do include FormtasticSpecHelper before do @output_buffer = '' mock_everything end it 'should humanize the given attribute' do semantic_form_for(@new_post) do |builder| builder.label(:logi...
mit
zedr0n/AngleSharp.Local
AngleSharp/Extensions/StyleExtensions.cs
6192
namespace AngleSharp.Extensions { using AngleSharp.Dom; using AngleSharp.Dom.Collections; using AngleSharp.Dom.Css; using AngleSharp.Dom.Html; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; /// <summary> /// A set of extension metho...
mit
ferblape/query_memcached
test/query_memcached_test.rb
1699
require 'test/unit' require File.expand_path(File.join(File.dirname(__FILE__), '/testing_app/config/environment.rb')) class QueryMemcachedTest < Test::Unit::TestCase def test_extract_table_names p = "select * from pets" q = "select * from author_favorites where (author_favorites.author_id = 36) AND (auth...
mit
adiyoss/DeepWDM
lib/utils.py
840
# run system commands from subprocess import call def easy_call(command): try: call(command, shell=True) except Exception as exception: print "Error: could not execute the following" print ">>", command print type(exception) # the exception instance print exception.arg...
mit
ror/ember-cli-cms
Brocfile.js
1738
/* global require, module */ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var app = new EmberApp(); var pickFiles = require('broccoli-static-compiler'); var bootstrapFonts = pickFiles('bower_components/bootstrap-sass-official/assets/fonts/bootstrap', { srcDir: '/', destDir: '/assets/bootstrap' }); v...
mit
christabor/jinja2_template_pack
tests/test_datetimes.py
760
"""Test munging filters.""" from dateutil.parser import parse as dtparse from flask_extras.filters import datetimes class TestStr2Dt: """All tests for str2dt function.""" def test_title_returns_valid(self): """Test function.""" timestr = '01-05-1900 00:00:00' res = datetimes.str2dt(...
mit
bookman25/jest
e2e/each/__tests__/failure.test.js
1452
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ it.each([[true, true], [true, false]])( 'array table fails on one row: expected %s == %s', (left, right) ...
mit
jim-parry/CodeIgniter4
tests/system/Database/Live/ForgeTest.php
20593
<?php namespace CodeIgniter\Database\Live; use CodeIgniter\Database\Exceptions\DatabaseException; use CodeIgniter\Database\Forge; use CodeIgniter\Test\CIDatabaseTestCase; /** * @group DatabaseLive */ class ForgeTest extends CIDatabaseTestCase { protected $refresh = true; protected $seed = 'Tests\Support\Database...
mit
lunastorm/wissbi
3rd_party/libcxx/test/containers/sequences/deque/deque.cons/move.pass.cpp
1774
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
mit
freidcreations/QueryMule
src/Query/Common/Select/HasOrderBy.php
1447
<?php declare(strict_types=1); namespace Redstraw\Hooch\Query\Common\Select; use Redstraw\Hooch\Query\Exception\InterfaceException; use Redstraw\Hooch\Query\Field\FieldInterface; use Redstraw\Hooch\Query\Sql; use Redstraw\Hooch\Query\Statement\SelectInterface; /** * Trait HasOrderBy * @package Reds...
mit
enettolima/magento-training
magento2ce/app/code/Magento/Cms/Test/Unit/Model/Template/FilterProviderTest.php
2400
<?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Cms\Test\Unit\Model\Template; class FilterProviderTest extends \PHPUnit_Framework_TestCase { /** * @var \Magento\Cms\Model\Template\FilterProvider */ protected $_model; /** ...
mit
skynode/eShopOnContainers
src/Services/Webhooks/Webhooks.API/Infrastructure/HttpGlobalExceptionFilter.cs
2410
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using System.Net; using Webhooks.API.Exceptions; using Webhooks.API.Infrastructure.ActionResult; namespac...
mit
davehorton/drachtio-server
deps/boost_1_77_0/tools/build/src/engine/modules/sequence.cpp
2973
/* * Copyright Vladimir Prus 2003. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE.txt or copy at * https://www.bfgroup.xyz/b2/LICENSE.txt) */ #include "../native.h" #include "../object.h" #include "../lists.h" #include "../compile.h" #include <stdlib.h> #ifndef ma...
mit
lindexi/lindexi_gd
WpfInk/WpfInk/PresentationCore/MS/Internal/Ink/EllipticalNodeOperations.cs
38057
// 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.Collections.Generic; using System.Windows; using System.Windows.Media; using System.Wind...
mit
origami99/SoftUni
01. ProgBasics/C# Basics/Exercises/05. Simple Loops/Half-Sum-Element/HalfSumElement.cs
660
using System; class HalfSumElement { static void Main() { int n = int.Parse(Console.ReadLine()); int max = int.MinValue; int sum = 0; for (int i = 1; i <= n; i++) { int num = int.Parse(Console.ReadLine()); sum += num; if (num > max) ...
mit
saguijs/sagui
spec/fixtures/project-with-node-modules/node_modules/dependencyA/index.js
123
var transientDependency = require('transient-dependency') module.exports = function () { return transientDependency() }
mit
MerlinTechnology/lmdo
lmdo/__init__.py
22
__version__ = '2.3.0'
mit
110035/kissy
src/dom/sub-modules/base/src/base/class.js
5848
/** * batch class operation * @ignore * @author yiminghe@gmail.com */ KISSY.add('dom/base/class', function (S, Dom) { var slice = [].slice, NodeType = Dom.NodeType, RE_SPLIT = /[\.\s]\s*\.?/; function strToArray(str) { str = S.trim(str || ''); var arr = str.split(RE_SPLIT),...
mit
mixcloud/django-speedbar
speedbar/media/js/speedbar.js
675
/*global _speedbar_panel_url:false */ $(function() { var expanded = false; var have_contents = false; var $speedbar_panel = $('#speedbar-panel'); var $body = $('.body', $speedbar_panel); var $tab = $('.tab', $speedbar_panel); $tab.click(function() { if(!have_contents) { $.get...
mit
Zazz-PlayerMe/upa-models
test/mocks/RawGameMetadataModel.js
569
var standard = { id: 234, title: "title", alias: null, description: "description", cover: { original: "cover.original", cached: "cover.cached", original_filename: "cover.original_filename" }, box: { original: "box.original", cached: "box.cached", ...
mit
genlu/roslyn
src/Workspaces/CoreTest/WorkspaceServiceTests/TemporaryStorageServiceTests.cs
14876
// 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.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System...
mit
BullisEntrepreneurship/LeanLaunchLab
db/schema.rb
26220
# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative sou...
mit
mrbigmouth/acgn-stock
server/publications/ruleAgenda/ruleAgendaDetail.js
1012
import { Meteor } from 'meteor/meteor'; import { check } from 'meteor/check'; import { dbRuleAgendas } from '/db/dbRuleAgendas'; import { dbRuleIssues } from '/db/dbRuleIssues'; import { dbRuleIssueOptions } from '/db/dbRuleIssueOptions'; import { limitSubscription } from '/server/imports/utils/rateLimit'; import { de...
mit
harryggg/coursemology2
db/migrate/20141205065248_create_instance_users.rb
361
# frozen_string_literal: true class CreateInstanceUsers < ActiveRecord::Migration def change create_table :instance_users do |t| t.references :instance, null: false t.references :user, null: false, index: :unique t.timestamps t.index [:instance_id, :...
mit
ee08b397/LeetCode-2
JAVA/RotateList.java
677
/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * next = null; * } * } */ public class Solution { public ListNode rotateRight(ListNode head, int n) { if (head == null) return head; ...
mit
eiriklv/hearsay-admin
helpers/index.js
138
exports = module.exports = function () { return { common: require('./common')(), react: require('./react')() }; };
mit
xiangsongtao/jikexueyuan_Homework
Lesson14-Web Security/1.开发手机版本的百度新闻/baidunewsThinkPHP/Public/BaiduNews/js/basic/findAll.js
1676
define(['jquery', 'createInnerBoxFragment'], function($, createInnerBoxFragment) { var offsetback; function findAll(table, offset, findNum) { // console.log("findNow::" + table); $.ajax({ type: "post", url: "/baidunewsThinkPHP/BaiduNews/Index/findAll", ...
mit
tkjone/django-starters
series_3/p_01/myproject/src/server/static/js/index.js
27
console.log('App Loaded');
mit
junwei-wang/com.hotfixs.books
thinking-in-java/enumerated/src/main/java/com/hotfixs/thinkinginjava/enumerated/EnumMaps.java
828
package com.hotfixs.thinkinginjava.enumerated; import static com.hotfixs.thinkinginjava.common.Print.print; import java.util.EnumMap; import java.util.Map; /** * @author Junwei Wang (i.junwei.wang@gmail.com) */ interface Command { void action(); } public class EnumMaps { public static void main(String[] a...
mit