repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
drivesense/server
src/helpers/client.js
263
import axios from 'axios'; export default token => { return axios.create({ headers: token ? {Authorization: `Bearer ${token}`} : {}, baseURL: process.env.WEBPACK_ENV !== 'client' ? `http://${process.env.API_HOST}:${process.env.API_PORT}/` : '/' }); }
mit
BillysInterns/hv-client
tests/elevate/HVObjects/Generic/AwakeningTest.php
906
<?php /** * Created by JetBrains PhpStorm. * User: bnissen * Date: 11/4/13 * Time: 2:55 PM * To change this template use File | Settings | File Templates. */ namespace elevate\test\HVObjects\Generic; use elevate\HVObjects\Generic\Date\DateTime; use elevate\HVObjects\Generic\Date\Date; use elevate\HVObjects\Gene...
mit
smallproject/library_system
source/Library_system/Library_system/Database/UnitOfWork/AccountUow.cs
1905
using System; using System.Text; using System.Windows.Forms; namespace Library_system.Database.UnitOfWork { interface IAccountUow : IBase { Account Account { get; set; } void ReadVarAccount(); } class AccountUow : IAccountUow { public bool Create() { us...
mit
CBurbidge/Konnie
Konnie/Runner/TaskRunner.cs
3389
using System; using System.Collections.Generic; using System.IO.Abstractions; using System.Linq; using Konnie.InzOutz; using Konnie.Model.FilesHistory; using Konnie.Model.Tasks; using Konnie.Runner.Logging; namespace Konnie.Runner { /// <summary> /// This is the concrete class to run stuff. /// This should...
mit
tomjebo/Open-XML-SDK
src/DocumentFormat.OpenXml/GeneratedCode/Packaging/StyleDefinitionsPart.g.cs
1401
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; namespace DocumentFormat.OpenXml.Packaging { /// <summary> /// Defines...
mit
dblock/slack-ruby-client
spec/slack/web/api/mixins/conversations_list_spec.rb
898
# frozen_string_literal: true require 'spec_helper' RSpec.describe Slack::Web::Client do context 'conversations_setTopic' do it 'does not invoke conversations_list', vcr: { cassette_name: 'web/conversations_setTopic' } do rc = subject.conversations_setTopic({ channel: 'C018Y6VH39D', topic: 'new topic' }) ...
mit
jcollado/rabbithole
stubs/pika.py
196
class URLParameters(object): def __init__(self, server): pass class BlockingConnection(object): def __init__(self, parameters): pass def channel(self): pass
mit
mcw0933/kimono_rss
spec/lib/kimono_labs_client/utils_spec.rb
486
require 'rails_helper' require 'json' RSpec.describe KimonoLabsClient::Utils do context 'given a diff to perform' do let(:a) { JSON.parse('{ "field1": "value", "field2": 5 }') } let(:b) { JSON.parse('{ "field2": 5, "field1": "value" }') } subject { described_class } it 'detects diffs' do expec...
mit
propelorm/Propel3
src/Generator/Behavior/Sortable/Component/SortableManager/MoveDownMethod.php
1354
<?php /** * This file is part of the Propel package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ namespace Propel\Generator\Behavior\Sortable\Component\SortableManager; use Propel\Generator\Builder\Om\Co...
mit
jhanley634/testing-tools
problem/nearby_zips/show_nearby_zips.py
3752
#! /usr/bin/env python # Copyright 2018 John Hanley. # # 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, me...
mit
autofac/Autofac.Extras.MvvmCross
src/Autofac.Extras.MvvmCross/AutofacPropertyInjectorOptions.cs
956
//----------------------------------------------------------------------- // <auto-generated /> //----------------------------------------------------------------------- namespace Autofac.Extras.MvvmCross { using Autofac.Core; using global::MvvmCross.IoC; /// <summary> /// Autofac property injection o...
mit
kazinduzi/kasoko
application/backend/controllers/configuration/PluginsController.php
1174
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of PluginsController * * @author Emmanuel Ndayiragije <endayiragije@gmail.com> */ class ConfigurationPlug...
mit
microsoftgraph/msgraph-sdk-java
src/main/java/com/microsoft/graph/requests/AuthenticationMethodConfigurationCollectionResponse.java
846
// Template Source: BaseEntityCollectionResponse.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -------------------------...
mit
bbonnin/mongo2els
src/main/java/io/millesabords/mongo2els/RealtimeIndexing.java
2361
package io.millesabords.mongo2els; import org.bson.Document; import org.elasticsearch.ElasticsearchException; import org.elasticsearch.client.Client; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Streaming mode of Mongo2Els. * * @author Bruno Bonnin */ public class RealtimeIndexing implements Opl...
mit
rodjek/bluster
lib/bluster/errors.rb
120
class Bluster class ObjectCacheNotFound < StandardError end class RedisConnectionError < StandardError end end
mit
jswanner/markdown-buttons
tests/integration/components/markdown-h3-test.js
1609
import hbs from 'htmlbars-inline-precompile'; import { moduleForComponent, test } from 'ember-qunit'; moduleForComponent('markdown-h3', 'Integration | Component | markdown h3', { integration: true }); test('with cursor in default position tokens are appended', function(assert) { assert.expect(1); this.set('val...
mit
VanceKingSaxbeA/FTSE-Engine
App/BLZ.php
8676
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@...
mit
lyschoening/meteor-ejson-python
ejson/__init__.py
4456
from base64 import b64decode, b64encode import calendar from collections import OrderedDict from datetime import date, datetime import json import six EJSON_KEYWORDS = ("$date", "$type", "$value", "$escape", "$binary") try: from datetime import timezone except ImportError: from datetime import tzinfo, timedel...
mit
GitsAndGlamour/lyre.com_lamp_stack
vendor/composer/autoload_files.php
1158
<?php // autoload_files.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', '667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Reso...
mit
sigopt/sigopt-python
test/cli/test_cluster_destroy.py
957
from click.testing import CliRunner from mock import Mock, patch from sigopt.cli import cli class TestClusterDestroyCli(object): def test_cluster_destroy_command(self): services = Mock() cluster = Mock() cluster.name = "foobar" cluster.provider_string = "aws" services.cluster_service.get_connec...
mit
i-square/LeetCode
561-array-partition-i/array-partition-i_[AC1_62ms].cpp
1155
// Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible. // // // Example 1: // // Input: [1,4,3,2] // // Output: 4 // Explanation: n is 2, and the maximum sum of pairs...
mit
tomvansteijn/idfpy
idfpy/cli.py
2105
#! /usr/bin/env python # -*- coding: utf-8 -*- # Tom van Steijn, Royal HaskoningDHV from idfpy import calc from idfpy import io from pathlib import Path import click def match_shape(idffile, desired_shape): '''check if the shape of idffile with is equal to desired shape''' desired_nrow, desired_ncol = desir...
mit
cicixiaoyan/OA_WEBApp
OA_WEBApp/src/pages/home-new/home-new.ts
5206
// import { LoginService } from './../login/LoginService'; import { Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { IonicPage, NavController, Nav, NavParams, ModalController, Events } from 'ionic-angular'; import { Storage } from '@ionic/storage'; export interface HomePageInterface { title: ...
mit
ThePaladinsForge/lib
forge/lite_logger.py
6921
#!/usr/bin/env python from inspect import getframeinfo from inspect import stack from threading import Lock from threading import Event from threading import Thread from time import clock from time import sleep from weakref import ref from colorama import Fore from colorama import Style from colorama import init as co...
mit
codemargonda-master/ccc-system
frontend/app/src/MailForm.js
655
import React, {Component} from 'react'; import './App.css'; class MailForm extends Component { render() { return ( <div className="col-md-5 col-sm-6 col-xs-12"> <div className="footer-text">Dapatkan berita terbaru & event yang akan datang</div> <div className="row"> <div className...
mit
Rickedb/OpenProtocolIntepreter
src/OpenProtocolInterpreter/LinkCommunication/Mid9998.cs
3435
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OpenProtocolInterpreter.LinkCommunication { /// <summary> /// MID: Communication acknowledge error /// Description: /// This message is used in conjunction with the use of...
mit
trein/inmapper-ws
src/main/java/com/inmapper/ws/service/MappingServiceImpl.java
3580
package com.inmapper.ws.service; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.google.common.coll...
mit
InnovateUKGitHub/innovation-funding-service
common/ifs-sil-resources/src/main/java/org/innovateuk/ifs/sil/email/resource/SilEmailBody.java
1556
package org.innovateuk.ifs.sil.email.resource; import com.fasterxml.jackson.annotation.JsonProperty; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.ToStringBuilder; /** * Represents the body of an email sent to t...
mit
leylabmpi/pyTecanFluent
tests/test_Fluent.py
1239
#!/usr/bin/env python # -*- coding: utf-8 -*- # import ## batteries import os import sys import pytest ## 3rd party import pandas as pd ## package from pyTecanFluent import Fluent from pyTecanFluent import Labware # data dir test_dir = os.path.join(os.path.dirname(__file__)) data_dir = os.path.join(test_dir, 'data') ...
mit
pingpongcms/settings
Database/Seeders/SettingsDatabaseSeeder.php
353
<?php namespace Pingpong\Cms\Settings\Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; class SettingsDatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $this->call(__NAMESPACE__ . '...
mit
caraldi/portland-restaurant-review
server/lib/setup-mongoose.js
756
const mongoose = require('mongoose'); const dbURI = process.env.MONGODB_URI || 'mongodb://localhost/restaurant-review'; mongoose.Promise = Promise; mongoose.connect(dbURI); mongoose.connection.on('connected', function () { console.log('Mongoose default connection open to ' + dbURI); }); mongoose.connection.on('err...
mit
erdc/proteus
proteus/tests/ProjScheme_with_EV/test_ns_convergence.py
11854
#!/usr/bin/env python """ Test module for projection scheme """ from builtins import range from builtins import object from proteus.iproteus import * from proteus import Comm comm = Comm.get() Profiling.logLevel=1 Profiling.verbose=True import os import numpy as np import tables from . import (parameters, ...
mit
issuran/BeblueTodo
BeBlueTodoApp/BeBlueTodoApp/Areas/HelpPage/ModelDescriptions/KeyValuePairModelDescription.cs
272
namespace BeBlueTodoApp.Areas.HelpPage.ModelDescriptions { public class KeyValuePairModelDescription : ModelDescription { public ModelDescription KeyModelDescription { get; set; } public ModelDescription ValueModelDescription { get; set; } } }
mit
kenxu95/admin-ankommen
src/app/pages/profile/profile.routing.ts
465
import { Routes, RouterModule } from '@angular/router'; import { Profile } from './profile.component'; import { ViewProfile } from './components/viewProfile'; import { EditAssets } from './components/editAssets'; const routes: Routes = [ { path: '', component: Profile, children: [ { path: 'view', ...
mit
rajasharan/Android-BezierCurve-sample
app/src/main/java/com/rajasharan/curvepaths/MainActivityFragment.java
1023
package com.rajasharan.curvepaths; import android.support.v4.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; /** * A placeholder fragment containing a simple view. */ public class MainActivityFragment extends Fragment { public...
mit
czim/laravel-jsonapi
tests/Helpers/Resources/AbstractTest/TestAbstractEloquentResource.php
1401
<?php namespace Czim\JsonApi\Test\Helpers\Resources\AbstractTest; use Czim\JsonApi\Support\Resource\AbstractEloquentResource; class TestAbstractEloquentResource extends AbstractEloquentResource { protected $availableAttributes = [ 'name', 'title', 'accessor', 'date_accessor', ]...
mit
sudheerpal/Learning-Angular2
manish/src/app/components/ideas/idea-create.component.ts
1090
import { Component } from '@angular/core'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { Idea } from '../../models/idea'; import { HttpService } from '../../services/http/http.service'; @Component({ selector: 'idea-create', templateUrl: 'app/views/ideas/create.html' })...
mit
mamuz/PhpDependencyAnalysis
tests/unit/PhpDATest/Parser/AdtTraverserTest.php
3112
<?php /** * The MIT License (MIT) * * Copyright (c) 2019 Marco Muths * * 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 * t...
mit
anthill-platform/anthill-social
anthill/social/model/social/google.py
3170
import datetime from anthill.common.social import APIError from anthill.common.social.apis import GoogleAPI from .. social import SocialAPI, SocialAuthenticationRequired from .. token import NoSuchToken class GoogleSocialAPI(SocialAPI, GoogleAPI): def __init__(self, application, tokens, cache): SocialA...
mit
thomasgalliker/ValueConverters.NET
ValueConverters.Forms/BoolToColorConverter.cs
471
using Xamarin.Forms; namespace ValueConverters { /// <summary> /// Converts a bool value to Color. /// </summary> /// <remarks> /// By default, TrueValue is Color.Accent, FalseValue is Color.Default. /// </remarks> public class BoolToColorConverter : BoolToValueConverter<Color> { ...
mit
thijser/ARGAME
ARGame/Assets/Scripts/Network/RotationUpdate.cs
2738
//---------------------------------------------------------------------------- // <copyright file="RotationUpdate.cs" company="Delft University of Technology"> // Copyright 2015, Delft University of Technology // // This software is licensed under the terms of the MIT License. // A copy of the license...
mit
phpie/users-plugin
src/Controller/AppController.php
530
<?php namespace Pie\Users\Controller; use App\Controller\AppController as BaseController; use Cake\Core\Configure; use Pie\Users\Controller\Component\UsersAuthComponent; /** * App Controller * * @property UsersAuthComponent $UsersAuth * * @package Users\Controller */ class AppController extends BaseController ...
mit
pixonic/ctop
src/main/java/com/pixonic/ctop/util/MetricUtils.java
2658
package com.pixonic.ctop.util; import com.codahale.metrics.ConsoleReporter; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.graphite.Graphite; import com.codahale.metrics.graphite.GraphiteReporter; import com.pixonic.ctop.metrics.MetricsCollector; import com.pixonic.ctop.metrics.MetricsType; i...
mit
PRkudupu/Angular2
app/users/user-list.component.ts
1021
import {Component, OnInit} from '@angular/core'; //Import interface import {IUser} from './user'; import {User} from './Models/user.model'; @Component({ templateUrl: 'app/users/user-list.component.html', styleUrls:['app/users/user-list.component.css'] }) //Angular Component export class UserComponent { fir...
mit
zachatrocity/hTunes
hTunes/hTunes/AboutBox1.cs
3388
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Reflection; using System.Threading.Tasks; using System.Windows.Forms; namespace hTunes { partial class About : Form { public About() { InitializeCompon...
mit
iovation/launchkey-java
sdk/src/test/java/com/iovation/launchkey/sdk/crypto/jwe/Jose4jJWEServiceTest.java
17802
package com.iovation.launchkey.sdk.crypto.jwe; import com.iovation.launchkey.sdk.crypto.JCECrypto; import org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.security.KeyPair; import java.security.KeyPairGenerator; import java....
mit
icomefromthenet/GeneralLedger
src/IComeFromTheNet/GeneralLedger/UnitOfWork.php
829
<?php namespace IComeFromTheNet\GeneralLedger; /** * Abstract for unit of work, a transaction guard * * @author Lewis Dyer <getintouch@icomefromthenet.com> * @since 1.0.0 */ interface UnitOfWork { //--------------------------------------------------------------------- # API Methods to control ...
mit
mdahamshi/data-visualization
js/data/worldgeo.js
918413
var worldgeo = { type: 'FeatureCollection', features: [ { type: 'Feature', id: 'AFG', properties: { name: 'Afghanistan' }, geometry: { type: 'Polygon', coordinates: [ [ [ 61.210817, 35.650072 ], ...
mit
geraldinas/LocalGuide
spec/controllers/tours_controller_spec.rb
82
require 'rails_helper' RSpec.describe ToursController, type: :controller do end
mit
ata/kkn
protected/extensions/giix/CCodeModel.php
10817
<?php /** * CCodeModel class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CCodeModel is the base class for model classes that are used to generate code. *...
mit
Smiithx/facturacion
app/Http/Kernel.php
1034
<?php namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { /** * The application's global HTTP middleware stack. * * @var array */ protected $middleware = [ \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,...
mit
SYCstudio/OI
Practice/2019.2.1/BZOJ3463.cpp
3932
#include<cstdio> #include<cstdlib> #include<algorithm> #include<queue> #include<iostream> #include<cstring> using namespace std; #define ll long long #define ld long double #define mem(Arr,x) memset(Arr,x,sizeof(Arr)) #define mp make_pair #define ft first #define sd second namespace IO { const int maxn((1 << 21) + 1)...
mit
palestar/darkspace
Ports/tutorial/template.lua
1270
---------------------------------------------------------------------------- function onInitialize() -- Perform any initialization here, this is called right after the script is loaded end ---------------------------------------------------------------------------- function onRelease() -- Called before the scrip...
mit
shlomiassaf/resty-stone
lib/decoration/sessionDecorator.js
4016
var rs = require('../RestyStone'), RestySession = require("../RestySession"), EventEmitter = require("events").EventEmitter, jwt = require('json-web-token'); var originalCookieParserMiddleware; var originalSessionMiddleware; var tokenHeaderName; /** * Replaces keystone session API with a proxy to handle ...
mit
touchhealth/touchgames
touch-games-web/src/main/java/br/com/touchtec/games/web/controller/JogosAction.java
4884
/* * Copyright (c) 1999-2009 Touch Tecnologia e Informatica Ltda. * Gomes de Carvalho, 1666, 3o. Andar, Vila Olimpia, Sao Paulo, SP, Brasil. * Todos os direitos reservados. * * Este software e confidencial e de propriedade da Touch Tecnologia e * Informatica Ltda. (Informacao Confidencial). As informacoes contid...
mit
gernberg/bookkeeping
config/initializers/session_store.rb
140
# Be sure to restart your server when you modify this file. Bookie::Application.config.session_store :cookie_store, key: '_bookie_session'
mit
NaseUkolyCZ/orleans
src/Orleans/Serialization/BuiltInTypes.cs
58234
/* Project Orleans Cloud Service SDK ver. 1.0 Copyright (c) Microsoft Corporation All rights reserved. MIT License 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, inc...
mit
Weisses/Ebonheart-Mods
ViesCraft/1.12.2 - 2655/src/main/java/com/viesis/viescraft/client/gui/airship/customize/balloon/sub/GuiCustomizeMenuBalloonTier3Pg1.java
4305
package com.viesis.viescraft.client.gui.airship.customize.balloon.sub; import org.lwjgl.input.Keyboard; import com.viesis.viescraft.api.GuiVC; import com.viesis.viescraft.common.entity.airships.EntityAirshipCore; import net.minecraft.inventory.IInventory; public class GuiCustomizeMenuBalloonTier3Pg1 extends GuiCust...
mit
willu47/pyrate
pyrate/algorithms/aisparser.py
15117
""" Parses the AIS data from csv of xml files and populates the AIS database """ import os import csv import logging import queue import threading import time import sys from datetime import datetime from xml.etree import ElementTree from pyrate import utils EXPORT_COMMANDS = [('run', 'parse messages from csv into th...
mit
Bammerbom/UltimateCore
src/main/java/bammerbom/ultimatecore/sponge/modules/spawn/utils/SpawnUtil.java
2384
/* * This file is part of UltimateCore, licensed under the MIT License (MIT). * * Copyright (c) Bammerbom * * 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, includi...
mit
b-slavov/Telerik-Software-Academy
02.C# Part 2/06.Strings-and-Text-Processing/07.EncodeDecode/Properties/AssemblyInfo.cs
1406
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("07...
mit
jarone/jemo
front_end/entry/user.js
116
'use strict' require('../css/user/create.css') require('../js/user/create.js') require('../js/public/user_bar.js')
mit
ATKAFASI2016/PracticeProblemPainting
src/main/java/atkafasi/solutions/Solution.java
233
package atkafasi.solutions; import java.util.List; import atkafasi.model.data.ParseResultPojo; import atkafasi.model.instructions.Instructions; public interface Solution { List<Instructions> solve(ParseResultPojo frameData); }
mit
yasuflatland-lf/liferay-dummy-factory
src/main/java/com/liferay/support/tools/wiki/WikiDummyFactory.java
1324
package com.liferay.support.tools.wiki; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.support.tools.common.DummyFactory; import com.liferay.support.tools.common.DummyGenerator; import com.liferay.suppor...
mit
limikael/volatilitycoin
src/qt/locale/bitcoin_bg.ts
117459
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bg" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About volatilitycoin</source> <translation type="unfinished"/> </message> <message> <location...
mit
cosmicradiotv/livehub
app/Http/Requests/ShowChannelRequest.php
1613
<?php namespace t2t2\LiveHub\Http\Requests; use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Validation\Factory; class ShowChannelRequest extends Request { /** * Determine if the user is authorized to make this request. * * @param \Illuminate\Contracts\Auth\Guard $auth * @return bool */ publ...
mit
concardis/shopware_plugin
Frontend/ConcarPayengine/Views/backend/concar_payengine/order_detail/view/tab/window.js
2903
//{namespace name=backend/concar_payengine/} //{block name="order_detail/view/main/tab/window"} Ext.define('Shopware.apps.ConcarPayengine.OrderDetail.view.main.tab.window', { snippets:{ title:'{s namespace=backend/concar_payengine/order_detail/tab/window name=title}Concardis PayEngine{/s}', tab:{ ...
mit
helsingborg-stad/wp-listings
templates/description.php
1083
<?php $settings = array( 'description' => get_field('listing_archive_page_description','option'), 'addnew' => get_field('listing_add_new_button','option') ); if (!empty($settings['description']) && $settings['addnew']) { $fullWidth = false; } else { $fullWidth = true; ...
mit
robertjf/Umbraco-CMS
src/Umbraco.Core/Packaging/PackageDataInstallation.cs
59740
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; using System.Web; using System.Xml.Linq; using System.Xml.XPath; using Umbraco.Core.Collections; using Umbraco.Core.IO; using Umbraco.Core.Logging; using Umbraco.Core.Models; using Umbra...
mit
hisahayashi/ofxArdPulseSensor
src/ofxArdPulseSensor.cpp
3549
// // ofxArdPulseSensor.cpp // ------------------------ // // Created by hisahayashi on 2015/01/27. // Copyright (c) 2015 hisahayashi. // #include "ofxArdPulseSensor.h" //-------------------------------------------------------------- void ofxArdPulseSensor::setup(){ // Get serial port vector <ofSeria...
mit
eggie5/bitchallenge
models/init.rb
18
require 'sequel'
mit
igorkasyanchuk/rails_db
lib/rails/routes.rb
185
module ActionDispatch::Routing class Mapper def mount_rails_db_routes(options = {}) mount RailsDb::Engine => '/rails/db', :as => options[:as] || 'rails_db' end end end
mit
Coolhis/wedding-web
js/contact_me.js
2648
// Contact Form Scripts $(function() { $("#contactForm input,#contactForm textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { ...
mit
mathiasbynens/unicode-data
6.1.0/blocks/Devanagari-Extended-code-points.js
366
// All code points in the Devanagari Extended block as per Unicode v6.1.0: [ 0xA8E0, 0xA8E1, 0xA8E2, 0xA8E3, 0xA8E4, 0xA8E5, 0xA8E6, 0xA8E7, 0xA8E8, 0xA8E9, 0xA8EA, 0xA8EB, 0xA8EC, 0xA8ED, 0xA8EE, 0xA8EF, 0xA8F0, 0xA8F1, 0xA8F2, 0xA8F3, 0xA8F4, 0xA8F5, 0xA8F6, 0xA8F7, 0xA8F8, 0xA8F9, 0xA8FA, ...
mit
mcdee/etherwallet
app/scripts/translations/sk.js
64102
// Slovak 'use strict'; var sk = function() {} sk.code = 'sk'; sk.data = { HELP_2a_Title : 'How do I save/backup my wallet? ', /* New Generics */ x_CancelReplaceTx : 'Cancel or Replace Transaction', x_CancelTx : 'Cancel Transaction', x_PasswordDesc : 'This passwo...
mit
Meraz/doremi
Utility/Utilities/Source/String/VA_ListToString.cpp
1113
#include <String/VA_ListToString.hpp> #include <cstdio> #include <cstdarg> #include <cstring> #include <string> using namespace std; namespace Doremi { namespace Utilities { namespace String { void toString(string& dst, const char* format, va_list ap) throw() { ...
mit
socializer/socializer_test
db/migrate/20200413025934_create_socializer_authentications.socializer.rb
529
# frozen_string_literal: true # This migration comes from socializer (originally 20110804192211) class CreateSocializerAuthentications < ActiveRecord::Migration[6.0] def change create_table :socializer_authentications do |t| t.integer :person_id, null: false t.string :provider, null: false ...
mit
RobinBuschmann/sequelize-typescript
src/hooks/single/after/after-destroy.ts
381
import { HookOptions } from '../../shared/hook-options'; import { implementHookDecorator } from '../../shared/hooks-service'; export function AfterDestroy(target: any, propertyName: string): void; export function AfterDestroy(options: HookOptions): Function; export function AfterDestroy(...args: any[]): void | Functio...
mit
GNUDimarik/dimecoin
src/core.cpp
8024
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "core.h" #include "hashblock.h" #include "util.h" std::string COutPoint...
mit
a25kk/anv
src/anv.sitecontent/anv/sitecontent/browser/contentpage.py
7199
# -*- coding: utf-8 -*- """Module providing views for the folderish content page type""" from Acquisition import aq_inner from Products.Five.browser import BrowserView from plone import api from zope.component import getMultiAdapter from zope.component import getUtility from anv.sitecontent.contentpage import IContent...
mit
dmeikle/GossamerCMS-DB-V2
app/exceptions/TableNotFoundException.php
87
<?php namespace exceptions; class TableNotFoundException extends \Exception { }
mit
angstnun/UB560_Proyecto60hs
abm/CAltaUsuario.php
1116
<?php include_once("CControladorUsuario.php"); class CAltaUsuario { public function __constructor() { } public function Alta($perfilId, $usuario, $pass, $nombrePila) { $ctrlUsr = new CControladorUsuario("u220754411_sisub"); if(!$ctrlUsr->GetUsuario($usuario)) { if(!is_null...
mit
tkesgar/paper-stima-levenshtein
ld_matrix.cpp
1142
#include <iostream> #include <string> using namespace std; #define MAX_LENGTH 650 int min3(int a, int b, int c) { return (a < b) ? ((a < c) ? a : c) : ((b < c) ? b : c) ; } int levenshtein(string a, string b) { int dp[MAX_LENGTH + 1][MAX_LENGTH + 1]; int len_a = a.size(); int len_b = b.size(); // pad the ...
mit
daweiwu/meta-iotqa-1
lib/oeqa/runtime/sensor/test_pressure_bmp280.py
2462
""" @file test_pressure_bmp280.py """ ## # @addtogroup soletta sensor # @brief This is sensor test based on soletta app # @brief test pressure function of sensor bmp280 on Galileo/MinnowMax ## import os import time from oeqa.utils.helper import shell_cmd from oeqa.oetest import oeRuntimeTest from EnvirSetup import Env...
mit
Montana-Studio/Mediakit
app/wp-content/themes/Mediakit/woocommerce/single-product/add-to-cart/simple.php
1910
<?php /** * Simple product add to cart * * This template can be overridden by copying it to yourtheme/woocommerce/single-product/add-to-cart/simple.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer). * will need to copy the new files to your theme to maintai...
mit
ennerperez/color-toolkit
ColorToolkit/References/Platform/HEX.cs
1315
using System; using System.Drawing; namespace Platform.Support.Drawing { public static partial class ColorHelper { public static string ToHEX(Color source) { return ToHEX(source.R, source.G, source.B); } public static string ToHEX(int r, int g, int b) { ...
mit
zagnut999/VSOnBuildExtension
src/VSOnBuildExtension/VSOnBuildExtension/PkgCmdID.cs
205
// PkgCmdID.cs // MUST match PkgCmdID.h using System; namespace CleverMonkeys.VSOnBuildExtension { static class PkgCmdIDList { public const uint cmdidIISReset = 0x100; }; }
mit
sickevilfuck/FastCGIUtility
src/fastcgi/tests/dispatcher-test.cpp
352
#include "gtest/gtest.h" #include <string> #include <fstream> #define private public #include "dispatcher.h" TEST(dispatcher, path) { { const std::string& query = "/v1/config?a=b&b=c"; EXPECT_EQ("/v1/config", Dispatcher::path(query)); } { const std::string& query = "/v1/config"; EXPECT_EQ("/v1/config",...
mit
thefreshduke/slogo
src/turtle/Left.java
171
package turtle; public class Left extends MoveDirection { @Override public Position move(Position p, int speed) { p.setXPos(p.getXPos()-speed); return p; } }
mit
billba/botchat
__tests__/hooks/useSendTypingIndicator.js
981
import { timeouts } from '../constants.json'; // selenium-webdriver API doc: // https://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_WebDriver.html jest.setTimeout(timeouts.test); test('getter should get sendTypingIndicator from props', async () => { const { pageObjects...
mit
meefik/java-examples
SpringAOP/src/main/java/ru/ifmo/springaop/staticpc/SimpleStaticPointcut.java
884
package ru.ifmo.springaop.staticpc; import java.lang.reflect.Method; import org.springframework.aop.ClassFilter; import org.springframework.aop.support.StaticMethodMatcherPointcut; /** * Пример создания собственного статического среза. * Проверяются имя метода и класс, из которого этот метод вызывался. ...
mit
mikeverbeck/rails_gtm
test/dummy/config/routes.rb
103
Rails.application.routes.draw do mount RailsGtm::Engine => "/rails_gtm" root to: "home#index" end
mit
openteam/el_vfs
spec/dummy/app/assets/javascripts/application.js
677
/* This is a manifest file that'll be compiled into including all the files listed below. * Add new JavaScript/Coffee code in separate files in this directory and they'll automatically * be included in the compiled file accessible from http://example.com/assets/application.js * It's not advisable to add code directl...
mit
cuckata23/wurfl-data
data/micromax_a106_ver1.php
444
<?php return array ( 'id' => 'micromax_a106_ver1', 'fallback' => 'generic_android_ver4_4', 'capabilities' => array ( 'mobile_browser_version' => '30', 'model_name' => 'A106', 'brand_name' => 'Micromax', 'marketing_name' => 'Unite 2', 'release_date' => '2014_may', 'physical_screen_height...
mit
mstaessen/Almanac
src/Almanac/Model/Abstractions/Address.cs
1020
using System; using System.Diagnostics; namespace Almanac.Model.Abstractions { [DebuggerDisplay("{Name} <{Email}>")] public abstract class Address : IEquatable<Address> { public string Email { get; } public LocalizedString Name { get; set; } protected Address(string email, Localiz...
mit
angulartics/angulartics2
src/lib/providers/adobeanalytics/adobeanalytics.ts
3176
import { Location } from '@angular/common'; import { Injectable } from '@angular/core'; import { Angulartics2 } from '../../angulartics2-core'; declare const s: any; @Injectable({ providedIn: 'root' }) export class Angulartics2AdobeAnalytics { constructor(private angulartics2: Angulartics2, private location: Locat...
mit
jonestimd/finances
src/test/java/io/github/jonestimd/finance/file/quicken/handler/HandlerTestFixture.java
639
package io.github.jonestimd.finance.file.quicken.handler; import java.text.SimpleDateFormat; import io.github.jonestimd.finance.file.quicken.QuickenContext; import io.github.jonestimd.finance.file.quicken.qif.QifTestFixture; public abstract class HandlerTestFixture<HANDLER extends SecurityTransactionHandler> extends...
mit
sdispater/orator
tests/commands/migrations/test_migrate_command.py
4384
# -*- coding: utf-8 -*- import os from flexmock import flexmock from orator.migrations import Migrator from orator.commands.migrations import MigrateCommand from orator import DatabaseManager from .. import OratorCommandTestCase class MigrateCommandTestCase(OratorCommandTestCase): def test_basic_migrations_call_...
mit
altras/fmifeedback-client
js/index.js
5321
var APIendpoint = "http://146.185.165.209/server/"; var page = 1; $(window).scroll(function() { if($(window).scrollTop() == $(document).height() - $(window).height()) { $("#feedback").append($('div#loadmoreajaxloader')); $('div#loadmoreajaxloader').show(); $.ajax({ url: APIendpoint + "feedb...
mit
padget/thodd
include/thodd/proto.hpp
3972
#ifndef __THODD_PROTO_HPP__ # define __THODD_PROTO_HPP__ # include<thodd/meta.hpp> # include<thodd/tuple.hpp> # include<thodd/core/dsl.hpp> # include<string> namespace thodd { namespace testdsl { namespace detail { template< typename func_t> stru...
mit