repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
XinwLi/Interop-TestSuites-1
ExchangeMAPI/Source/MS-OXCMAPIHTTP/Adapter/RequestBody/AddressBookServer/CompareMinIdsRequestBody.cs
2249
namespace Microsoft.Protocols.TestSuites.MS_OXCMAPIHTTP { using System; using System.Collections.Generic; using Microsoft.Protocols.TestSuites.Common; /// <summary> /// A class indicates the CompareMIds request type. /// </summary> public class CompareMinIdsRequestBody : AddressBoo...
mit
kyfranky/pmboard
src/services/messages/messages.service.js
770
// Initializes the `messages` service on path `/messages` const createService = require('feathers-sequelize'); const createModel = require('../../models/messages.model'); const hooks = require('./messages.hooks'); const filters = require('./messages.filters'); module.exports = function () { const app = this; const...
mit
npapa/TileDB
test/src/unit-capi-dense_array.cc
26352
/** * @file unit-capi-dense_array.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017 TileDB Inc. * @copyright Copyright (c) 2016 MIT and Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentat...
mit
LKeL/SNS
eclipseJ2EE/mysns/src/main/webapp/resources/js/directives.js
264
'use strict'; /* Directives */ var AppDirectives = angular.module('AngularSpringmvcMybatis.directives', []); AppDirectives.directive('appVersion', ['version', function (version) { return function (scope, elm, attrs) { elm.text(version); }; }]);
mit
SimonPadbury/WBST
includes/footer.php
381
<footer class="container site-footer"> <hr/> <div class="row"> <?php dynamic_sidebar('footer-widget-area'); ?> </div> <hr/> <div class="row"> <div class="col-lg-12 site-sub-footer"> <p>&copy; <?php echo date('Y'); ?> <a href="<?php echo home_url('/'); ?>"><?php bloginfo('name'); ?></a></p> </...
mit
manaphp/manaphp
ManaPHP/Data/Relation/HasManyToMany.php
2835
<?php namespace ManaPHP\Data\Relation; use ManaPHP\Data\Relation; use ManaPHP\Helper\Arr; class HasManyToMany extends Relation { /** * @var string */ protected $thisField; /** * @var string */ protected $thatField; /** * @var string */ protected $pivotModel; ...
mit
butterscotchstallion/guacbot-salsa
public/javascripts/app/modules/plugins/views/pluginMessageListView.js
6050
/** * main view * */ define('pluginMessageListView', function (require) { "use strict"; var Handlebars = require('Handlebars'); var Backbone = require('Backbone'); var $ = require('jquery'); var paginationTemplate = r...
mit
HarrisLee/React-Native-Express
SmartDemo/ReactComponent/node_modules/react-native-update/lib/index.js
2415
/** * Created by tdzl2003 on 4/4/16. */ const HotUpdate = require('react-native').NativeModules.HotUpdate; import {NativeAppEventEmitter} from 'react-native'; let host = 'http://update.reactnative.cn/api'; export const downloadRootDir = HotUpdate.downloadRootDir; export const packageVersion = HotUpdate.packageVers...
mit
muaz-khan/WebRTC-Experiment
Canvas-Designer/dev/arc-handler.js
5137
var arcHandler = { global: { ismousedown: false, prevX: 0, prevY: 0, prevRadius: 0, isCircleDrawn: false, isCircledEnded: true, isClockwise: false, arcRangeContainer: null, arcRange: null }, mousedown: function(e) { var g = this...
mit
KaelWD/vuetify
src/components/transitions/expand-transition.js
1031
import { addOnceEventListener } from '../../util/helpers' export default function (expandedParentClass = '') { return { enter (el, done) { el._parent = el.parentNode addOnceEventListener(el, 'transitionend', done) // Get height that is to be scrolled el.style.overflow = 'hidden' e...
mit
wp-papi/papi
src/properties/class-papi-property-flexible.php
23306
<?php /** * Flexible repeater property that can repeat multiple properties * with different properties per layout. */ class Papi_Property_Flexible extends Papi_Property_Repeater { /** * The convert type. * * @var string */ public $convert_type = 'array'; /** * Flexible repeater counter number. * ...
mit
crocodele/tinycar
config/general.php
1477
<?php Tinycar\App\Config::addAll(array( // System properties 'SYSTEM_TITLE' => 'Tinycar', 'SYSTEM_VERSION' => '0.1', 'SYSTEM_TIMEZONE' => 'UTC', 'SYSTEM_LOCALE' => 'default', 'SYSTEM_PATH' => dirname(__DIR__), 'SYSTEM_SALT' => 'ew6KR7Vj', // System folders 'APPS_FOLDER' ...
mit
safris-src/org
libx4j/jsonx/runtime/src/main/java/org/libx4j/jsonx/runtime/StringElement.java
1392
/* Copyright (c) 2017 lib4j * * 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, distrib...
mit
Rohanhacker/Semantic-UI-React
src/lib/getUnhandledProps.js
1669
/** * Push all `source` array elements to the `target` array if they don't already exist in `target`. * * @param {Array} source - An array of elements to add to the `target` * @param {Array} target - An array to receive unique elements from the `source` * @returns {Array} Mutated `target` array */ const pushUniqu...
mit
netTiers/netTiers
Samples/AdventureWorks/Generated/Nettiers.AdventureWorks.Website/Admin/ProductModelProductDescriptionCulture.aspx.cs
1110
 #region Using directives using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Nettiers.AdventureWorks.Web.UI; #endr...
mit
darrelljefferson/themcset.com
bin/test/j/i/f.php
37
<?php namespace test\j\i; class f { }
mit
nymag/clay-kiln
lib/lists/helpers.test.js
5498
import * as lib from './helpers'; describe('list helpers', () => { describe('getProp', () => { const fn = lib.getProp; test('checks whether or not the items in a list has a property', () => { const items = [ { text: 'alpha', count: 2 }, { text: 'beta', count: 4 }, { text: 'gamm...
mit
zz-systems/gorynych
include/math/interpolation.hpp
3006
//--------------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2015-2018 Sergej Zuyev (sergej.zuyev - at - zz-systems.net) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation...
mit
atompulse/php-ml-56
tests/Phpml/Preprocessing/NormalizerTest.php
3309
<?php declare(strict_types=1); namespace tests\Preprocessing; use Phpml\Preprocessing\Normalizer; use PHPUnit\Framework\TestCase; class NormalizerTest extends TestCase { /** * @expectedException \Phpml\Exception\NormalizerException */ public function testThrowExceptionOnInvalidNorm() { ...
mit
glyph-fr/rails_admin_selectize
lib/rails_admin_selectize.rb
158
require 'ransack' require 'rails_admin' require 'rails_admin/config/fields/selectize' require 'rails_admin_selectize/engine' module RailsAdminSelectize end
mit
jmeas/js-playground
src/features/es2015/common-algorithms.js
1115
// Sets and Maps are two new native implementations of // common algorithms. // Sets are like arrays, except there can't be repeats var mySet = new Set(); mySet.add('James').add('Sam').add('James'); // console.log('How many names?', mySet.size); // Maps allow you to associate any object with any key. Imagine // if yo...
mit
Livefyre/livefyre-collection-feed
demos/feed/feed-demo.js
1171
var activityMocks = require('activity-mocks'); // auth var createAuthButton = require('auth/contrib/auth-button'); var auth = require('livefyre-auth'); var authButton = createAuthButton(auth, document.getElementById('auth-button')); var delegate = window.delegate = auth.createDelegate('http://www.livefyre.com'); // au...
mit
CreativePublisher/Banklink-LV
lib/banklink_lv.rb
604
require 'banklink_lv/version' require "rails" require "active_support/dependencies" require 'net/http' require 'net/https' require 'uri' require 'digest' require 'digest/md5' require 'openssl' require 'cgi' require 'banklink_lv/banklink' require 'banklink_lv/base' require 'banklink_lv/helper' require 'banklink_lv/...
mit
frappe/frappe
frappe/core/doctype/system_settings/test_system_settings.py
193
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies and Contributors # License: MIT. See LICENSE import frappe import unittest class TestSystemSettings(unittest.TestCase): pass
mit
dekelcohen/Aardwolf
config/config.defaults.js
1819
'use strict'; /* * * To change defaults set in this file create a file called config.local.js * in the same directory and override values like this: * * var config = require('../config/config.defaults.js'); * config.setting = 'new_value'; * */ var config = {}; var path = require('path'); var fs = requ...
mit
kerick-jeff/iPub
database/migrations/2016_07_16_160606_create_notifications_table.php
859
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateNotificationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('notifications', function (Blueprint $table) { ...
mit
Plugged11/react-starter
webpack.config.build.js
3041
/* eslint-env node */ const path = require('path'); const webpack = require('webpack'); const autoprefixer = require('autoprefixer'); const HappyPack = require('happypack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const CompressionPlugi...
mit
helaing/WeeGo
src/BestTrip/WeeGoBundle/DependencyInjection/BestTripWeeGoExtension.php
885
<?php namespace BestTrip\WeeGoBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and man...
mit
randylubin/fission
lib/renderables/mixins/Pure.js
753
'use strict'; var update = require('react/lib/update'); var shallowEqual = require('react/lib/shallowEqual'); function equal(a, b) { if (a == null && b == null) { return true; } return shallowEqual(a, b); } module.exports = { shouldComponentUpdate: function(nextProps, nextState, nextContext) { var pa...
mit
Teisi/typo3-deploy
vendor/illuminate/translation/FileLoader.php
4514
<?php namespace Illuminate\Translation; use RuntimeException; use Illuminate\Filesystem\Filesystem; use Illuminate\Contracts\Translation\Loader; class FileLoader implements Loader { /** * The filesystem instance. * * @var \Illuminate\Filesystem\Filesystem */ protected $files; /** ...
mit
zzzprojects/EntityFramework-Plus
src/test/Z.Test.EntityFramework.Plus.EF5/QueryIncludeOptimized/Null_Executor/Many_Null_Many.cs
1655
// Description: Entity Framework Bulk Operations & Utilities (EF Bulk SaveChanges, Insert, Update, Delete, Merge | LINQ Query Cache, Deferred, Filter, IncludeFilter, IncludeOptimize | Audit) // Website & Documentation: https://github.com/zzzprojects/Entity-Framework-Plus // Forum & Issues: https://github.com/zzzprojec...
mit
mcliment/DefinitelyTyped
types/carbon__icons-react/es/Q/U3/32.d.ts
211
import * as React from "react"; import { CarbonIconProps } from "../../../"; declare const QU332: React.ForwardRefExoticComponent< CarbonIconProps & React.RefAttributes<SVGSVGElement> >; export default QU332;
mit
marcusrehm/serenata-de-amor
research/src/geocode_addresses.py
3323
from concurrent import futures import pickle import os import os.path import re import shutil from decouple import config from geopy.exc import GeocoderTimedOut from geopy.geocoders import GoogleV3 import pandas as pd DATASET_PATH = os.path.join('data', 'companies.xz') TEMP_PATH = os.path.join('data', 'companies') CN...
mit
nazar-pc/CleverStyle-CMS
modules/Shop/Common_actions.php
1848
<?php /** * @package Shop * @category modules * @author Nazar Mokrynskyi <nazar@mokrynskyi.com> * @license 0BSD */ namespace cs\modules\Shop; use cs\CRUD_helpers, cs\Language; /** * @property \cs\Cache\Prefix $cache * @property string $table */ trait Common_actions { use CRUD_helpers; /** ...
mit
dansbits/ct_gov
lib/ct_gov/investigator.rb
334
module CtGov class Investigator def initialize(raw_investigator) @raw_investigator = raw_investigator end def affiliation @raw_investigator['affiliation'] end def name @raw_investigator['last_name'] end def role @raw_investigator['role'] end ...
mit
foobarhq/reworkjs
src/framework/common/use-user-agent/index.server.js
282
// @flow import { useContext } from 'react'; import { SsrContext } from '../ssr-context'; export function useUserAgent(): string { const { req } = useContext(SsrContext); if (!req) { throw new Error('SSR Context is missing'); } return req.get('User-Agent') || ''; }
mit
dplarson/gitlabhq
app/services/boards/issues/list_service.rb
1837
module Boards module Issues class ListService < BaseService def execute issues = IssuesFinder.new(current_user, filter_params).execute issues = without_board_labels(issues) unless movable_list? || closed_list? issues = with_list_label(issues) if movable_list? issues.order_by_...
mit
mlgthatsme/alive
include/proxy_rapidjson.hpp
456
#pragma once #if defined(_MSC_VER) && _MSC_VER > 1800 #pragma warning(push) #pragma warning(disable: 4464) #endif #include "rapidjson/stringbuffer.h" #include "rapidjson/writer.h" #if defined(_MSC_VER) && _MSC_VER > 1800 #pragma warning(pop) #endif #if defined(_MSC_VER) && _MSC_VER > 1800 #pragma warning(push) #pr...
mit
behzad888/DefinitelyTyped
redux-router/redux-router.d.ts
3238
// Type definitions for redux-router v1.0.0 // Project: https://github.com/rackt/redux-router // Definitions by: Stepan Mikhaylyuk <http://github.com/stepancar> // Definitions: https://github.com/borisyankov/DefinitelyTyped /// <reference path="../react/react.d.ts" /> /// <reference path="../react-router/react-router....
mit
ASzc/keratin-irc
keratin-core/src/ca/szc/keratin/core/event/connection/IrcConnect.java
549
/** * Copyright (C) 2013 Alexander Szczuczko * * This file may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ package ca.szc.keratin.core.event.connection; import java.net.Socket; import ca.szc.keratin.core.event.IrcConnectionEvent; import ca.szc.keratin.co...
mit
Chubby-Chocobo/checkit
test/spec.js
12427
describe('Checkit', function() { describe('.check', function() { it('should accept a field, value, and rules', function() { return Checkit.check('email', 'tim@tgriesser', ['required', 'email']).catch(function(err) { equal(err instanceof Checkit.FieldError, true); equal(err.message, 'The e...
mit
rest-client/rest-client
spec/unit/payload_spec.rb
10390
# encoding: binary require_relative '_lib' describe RestClient::Payload, :include_helpers do context "Base Payload" do it "should reset stream after to_s" do payload = RestClient::Payload::Base.new('foobar') expect(payload.to_s).to eq 'foobar' expect(payload.to_s).to eq 'foobar' end end ...
mit
sinclairzx81/reactor
reactor.web.socket/protocol/Enums.cs
5953
/*-------------------------------------------------------------------------- Reactor.Web.Sockets The MIT License (MIT) Copyright (c) 2015 Haydn Paterson (sinclair) <haydn.developer@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
mit
anam-hossain/Todo-laravel
vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML.php
7313
<?php /** * PHP_CodeCoverage * * Copyright (c) 2009-2013, Sebastian Bergmann <sebastian@phpunit.de>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source c...
mit
atom/brightray
browser/linux/libnotify_loader.cc
3655
// This is generated file. Do not modify directly. // Path to the code generator: // tools/generate_library_loader/generate_library_loader.py . #include "browser/linux/libnotify_loader.h" #include <dlfcn.h> LibNotifyLoader::LibNotifyLoader() : loaded_(false) { } LibNotifyLoader::~LibNotifyLoader() { CleanUp(loade...
mit
NBKlepp/fda
scalation_1.3/scalation_modeling/src/main/scala/scalation/graphalytics/mutable/MDualIso.scala
9037
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author Matthew Saltz, John Miller, Ayushi Jain * @version 1.3 * @date Thu Jul 25 11:28:31 EDT 2013 * @see LICENSE (MIT style license file). */ package scalation.graphalytics.mutable import scala.collection.mutable.Map ...
mit
ScottKolo/UFSMC-Web
db/collection_data/matrices/HB/wm2.rb
993
{ matrix_id: '276', name: 'wm2', group: 'HB', description: 'U NONSYMMETRIC MATRIX COEFFICIENT MATRIX OF THE WORLD MODEL -SZYLD-IEA-', author: 'D. Szyld', editor: 'I. Duff, R. Grimes, J. Lewis', date: '1982', kind: 'economic problem', problem_2D_or_3D: '0', num_rows: '207', nu...
mit
soulnafein/faqs_page
lib/faqs_page.rb
75
require "faqs_page/engine" require "faqs_page/config" module FaqsPage end
mit
loualrid/TheCheftacularCookbook
files/default/sensu/plugins/thecheftacularcookbook/check-haproxy.rb
5061
#!/usr/bin/env ruby # # HAProxy Check # === # # Defaults to checking if ALL services in the given group are up; with # -1, checks if ANY service is up. with -A, checks all groups. # # Updated: To add -S to allow for different named sockets # # Copyright 2011 Sonian, Inc. # # Released under the same terms as Sensu (the ...
mit
anthonynsimon/bild
cmd/channel.go
1435
package cmd import ( "fmt" "image" "github.com/anthonynsimon/bild/channel" "github.com/spf13/cobra" ) func extractChannel() *cobra.Command { var channels string var cmd = &cobra.Command{ Use: "extract", Short: "extracts RGBA channels from an input image", Args: cobra.ExactArgs(2), Example: "e...
mit
draft-js-plugins/draft-js-plugins
packages/drag-n-drop-upload/src/utils/block.ts
558
import { ContentBlock, EditorState } from 'draft-js'; import { FileResult } from './file'; // Filter editorState's blockMap export function getBlocksWhereEntityData( editorState: EditorState, filter: (block: FileResult | null) => boolean ): boolean { const contentState = editorState.getCurrentContent(); return...
mit
Yt-trium/HgPOS
doc/html/search/functions_0.js
112
var searchData= [ ['clear',['clear',['../classPanier.html#adc423444697a339bed7ba2e68eab3d21',1,'Panier']]] ];
mit
seedboxtech/gobstopper
examples/middleware/middleware.go
605
package middleware import ( "fmt" "net/http" ) // TerribleAuthMiddleware is an example of some middleware for gobstopper. It satisfies the negroni.Handler interface. type TerribleAuthMiddleware struct{} func (t TerribleAuthMiddleware) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) { tok...
mit
belak/python-seabird
seabird/modules/math.py
2645
import ast import math import operator from seabird.plugin import Plugin, CommandMixin class MathError(Exception): pass class MathPlugin(Plugin, CommandMixin): # supported operators operators = { ast.Add: operator.add, ast.Sub: operator.sub, ast.Mult: operator.mul, ast.D...
mit
SPARLab/BikeMaps
mapApp/static/leaflet/plugins/awesome-markers/dist/leaflet.awesome-markers.js
3778
/* Leaflet.AwesomeMarkers, a plugin that adds colorful iconic markers for Leaflet, based on the Font Awesome icons (c) 2012-2013, Lennard Voogdt http://leafletjs.com https://github.com/lvoogdt */ /*global L*/ (function (window, document, undefined) { "use strict"; /* * Leaflet.AwesomeMarkers ass...
mit
azheng1984/jk2010
vendor/hyperframework/hyperframework/test/cli/lib/Subcommands/ChildCommand.php
144
<?php namespace Hyperframework\Cli\Test\Subcommands; class ChildCommand { public function execute($arg) { echo __METHOD__; } }
mit
hisabimbola/mando
public/modules/campaigns/filter/currency.client.filter.js
351
'use strict'; angular.module('campaign').filter('currencyflt', function() { return function cur(num) { if (num) { for (var x = 0; x < num.length; x += 3) { if (x > 2) { num = num.slice(0, -x) + ',' + num.slice(-x); x++; } } num = '$' + num; return num; ...
mit
oliviertassinari/material-ui
packages/mui-icons-material/lib/esm/PregnantWomanTwoTone.js
319
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z" }), 'PregnantWomanTwoTone');
mit
BlackScorpGames/webrpg
source/inventory/functions.php
755
<?php /** * @param string $characterName * @return array */ function getEquipmentForCharacter($characterName) { $maxEquipmentSlots = count(config('equipmentSlots')); $sql = sprintf('SELECT itemName, slot, amount FROM inventory INNER JOIN characters ON inventory.characterId = characters.characterId WHERE nam...
mit
gimlichael/Cuemon
src/Cuemon.Core/ByteUnit.cs
2455
using System; namespace Cuemon { /// <summary> /// Represents a unit of measurement for bytes and is used with measurement of data. /// </summary> /// <seealso cref="PrefixUnit" /> /// <seealso cref="BitUnit"/> /// <seealso cref="BinaryPrefix"/> public sealed class ByteUnit : PrefixUnit ...
mit
bengimbel/Solstice-React-Contacts-Project
node_modules/react-icons/lib/ti/social-dribbble-circular.js
1880
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
mit
RafiKueng/lisa_symposium_2016_homepage
user/edit.php
6371
<?php require_once 'lib/auth.php'; require_once "../lib/app.php"; if (isset($_POST["op"]) || isset($_GET["op"])) { $op = isset($_POST["op"]) ? $_POST["op"] : $_GET["op"]; if ($op=="edit_user") { $id = $_SESSION['uid']; $values = []; $lbls = []; $stmtstr = "UPDATE {$tableN...
mit
dylanmaryk/InsanityRadio-Android
socialize/src/com/socialize/entity/UserAuthData.java
1744
/* * Copyright (c) 2012 Socialize Inc. * * 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, pub...
mit
guillaumeduval64/peinture-et-vitres
app/cache/dev/assetic/config/a/a7a930bf5ce73d9954f696662d5d7bd0.php
410
<?php // MyAppApBundle:Contrat:listeAnnule.html.twig return array ( '99471e3' => array ( 0 => array ( 0 => '@MyAppApBundle/Resources/public/js/phone.js', ), 1 => array ( ), 2 => array ( 'output' => '_controller/js/99471e3.js', 'name' => '99471e3', 'debug'...
mit
nature/macmillan-utils
spec/lib/macmillan/utils/logger/factory_spec.rb
1691
require 'spec_helper' describe Macmillan::Utils::Logger::Factory do describe '#build_logger' do context 'for a syslog logger' do subject { Macmillan::Utils::Logger::Factory.build_logger(:syslog, tag: 'myapp', facility: 2) } it 'returns a Logger::Syslog object' do expect(subject).to be_an_ins...
mit
TangentialAlan/lila
ui/analyse/src/ctrl.js
8320
var chessground = require('chessground'); var opposite = chessground.util.opposite; var data = require('./data'); var analyse = require('./analyse'); var treePath = require('./path'); var ground = require('./ground'); var keyboard = require('./keyboard'); var actionMenu = require('./actionMenu').controller; var autopla...
mit
andresusanto/pplforbandung
7angkutan/app/Http/Kernel.php
898
<?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', 'Illuminate\Cookie\Middlewa...
mit
yevheniyc/C
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch07/07_03/finish/src/components/ui/MemberList.js
1426
import { Component } from 'react' import fetch from 'isomorphic-fetch' import Member from './Member' class MemberList extends Component { constructor(props) { super(props) this.state = { members: [], loading: false } } componentDidMount() { this.set...
mit
relekang/python-thumbnails
tests/django_settings.py
1414
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) DEBUG = True SECRET_KEY = '9' TEMPLATE_DEBUG = DEBUG ALLOWED_HOSTS = [] LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True STATIC_URL = '/static/' INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.au...
mit
1001hz/wpnoonan
plugins/meta-box/inc/fields/autocomplete.php
3026
<?php /** * The autocomplete field. * * @package Meta Box */ /** * Autocomplete field class. */ class RWMB_Autocomplete_Field extends RWMB_Multiple_Values_Field { /** * Enqueue scripts and styles. */ public static function admin_enqueue_scripts() { wp_enqueue_style( 'rwmb-autocomplete', RWMB_CSS_URL . 'a...
mit
pepaar/typescript-webpack-react-flux-boilerplate
App/Store/CreateStore.ts
945
import { createStore, applyMiddleware, compose, Store, Middleware, Reducer } from "redux"; import { createLogger } from "redux-logger"; import thunkMiddleware from "redux-thunk"; import rootReducer from "./../Reducers/RootReducer"; import { StoreState } from "./StoreState"; export function configureStore(initialState?...
mit
stefanoverna/socialmux
lib/socialmux/auth_mapper/guess_name.rb
344
module Socialmux module AuthMapper class GuessName < Base def first_name name_chunks.first || "" end def last_name last_name = name_chunks.dup last_name.shift last_name.join(" ") end private def name_chunks info.name.split(/\s+/) ...
mit
ciscospark/react-ciscospark
packages/node_modules/@webex/react-component-utils/src/uuid-utils.test.js
1254
import uuid from 'uuid'; import {buildHydraRoomId, hydraTypes} from '@webex/common'; import {validateAndDecodeId} from './uuid-utils'; describe('uuid-utils', () => { describe('validateAndDecodeId', () => { it('returns an id object for a uuid input', () => { const ID = uuid.v4(); expect(validateAndD...
mit
wowserhq/blizzardry
src/lib/dbc/entities/declined-word-cases.js
209
import r from 'restructure'; import Entity from '../entity'; import StringRef from '../string-ref'; export default Entity({ id: r.uint32le, wordID: r.uint32le, case: r.uint32le, word: StringRef, });
mit
pombredanne/gems-status-web
test/controllers/ruby_applications_controller_test.rb
4974
require 'test_helper' class RubyApplicationsControllerTest < ActionController::TestCase setup do @request.env['HTTPS'] = 'on' CONFIG["MAX_RUBY_APP_BY_USER"] = -1 @ruby_application = ruby_applications(:two) session[:user_id] = users(:two) end test "should show ruby_application" do get :show, ...
mit
peppertech/OracleJET-Samples
MagicEightBall/hybrid/platforms/android/assets/www/js/libs/oj/v2.0.0/debug/ojdvt-base.js
53293
/** * Copyright (c) 2014, 2016, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 */ "use strict"; define(['ojs/ojcore', 'jquery', 'ojs/ojcomponentcore', 'ojs/ojvalidation', 'ojs/internal-deps/dvt/DvtToolkit', 'promise'], function(oj, $, comp, val, dvt) { /** * Creates an attribute...
mit
chuck-mitchell/coreclr
src/vm/arm64/stubs.cpp
57328
// 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. // // File: stubs.cpp // // This file contains stub functions for unimplemented features need to // run on the ARM64 ...
mit
eagleoneraptor/confnode
client/views/rooms/room_page.js
3538
var expertsByVisits; Template.roomPage.created = function() { expertsByVisits = new ReactiveVar(); }; Template.roomPage.rendered = function() { var $form; var tagitOptions; var roomId; tagitOptions = { 'removeConfirmation': true, 'caseSensitive': false }; $form = $('#form_...
mit
toanhv/proscom
source/vendor/yiisoft/yii2-gii/generators/crud/default/views/_form.php
1256
<?php use yii\helpers\Inflector; use yii\helpers\StringHelper; /* @var $this yii\web\View */ /* @var $generator yii\gii\generators\crud\Generator */ /* @var $model \yii\db\ActiveRecord */ $model = new $generator->modelClass(); $safeAttributes = $model->safeAttributes(); if (empty($safeAttributes)) { $safeAttribu...
mit
frisbeesport/frisbeesport.nl
vendor/bolt/filesystem/src/Capability/IncludeFile.php
613
<?php namespace Bolt\Filesystem\Capability; use Bolt\Filesystem\Exception\IncludeFileException; /** * Support for loading/including PHP files. * * @author Carson Full <carsonfull@gmail.com> */ interface IncludeFile { /** * Load a PHP file. * * @param string $path The file to include. * @p...
mit
Fayho/scalaxb
integration/src/test/scala/TimeoutTest.scala
2061
import scalaxb.compiler.wsdl11.Driver import java.io.File import scalaxb.compiler.Config import scalaxb.compiler.ConfigEntry._ import scalaxb.stockquote.server._ import scala.concurrent._, duration.Duration object TimeoutTest extends TestBase with JaxwsTestBase { override val module = new Driver // with Verbose d...
mit
artsy/force-public
src/v2/Apps/Order/Routes/__fixtures__/MutationResults/saveAddress.ts
1850
import { UpdateUserAddressMutationResponse } from "v2/__generated__/UpdateUserAddressMutation.graphql" import { CreateUserAddressMutationResponse } from "v2/__generated__/CreateUserAddressMutation.graphql" import { DeleteUserAddressMutationResponse } from "v2/__generated__/DeleteUserAddressMutation.graphql" export con...
mit
jonmpqts/reactjs-admin-lte
packages/react-admin-lte/src/Box/BoxFooter.test.tsx
274
import * as React from 'react'; import * as renderer from 'react-test-renderer'; import BoxFooter from './BoxFooter'; test('Renders default', () => { const component = renderer.create( <BoxFooter /> ); expect(component.toJSON()).toMatchSnapshot(); });
mit
dtulibrary/docdel
db/schema.rb
5751
# 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
johnsj/ng2-meteor-boilerplate
typings/angular2/common.d.ts
58359
// Type definitions for Angular v2.0.0-local_sha.2a2f9a9 // Project: http://angular.io/ // Definitions by: angular team <https://github.com/angular/> // Definitions: https://github.com/borisyankov/DefinitelyTyped // *********************************************************** // This file is generated by the Angular bu...
mit
devkale/sample-code-csharp
PaymentTransactions/ChargeTokenizedCreditCard.cs
4350
using System; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.Generic; using AuthorizeNet.Api.Controllers; using AuthorizeNet.Api.Contracts.V1; using AuthorizeNet.Api.Controllers.Bases; namespace net.authorize.sample { public class ChargeTokenizedCreditCard { ...
mit
rails/jquery-ujs
test/public/test/data-disable.js
9220
module('data-disable', { setup: function() { $('#qunit-fixture').append($('<form />', { action: '/echo', 'data-remote': 'true', method: 'post' })) .find('form') .append($('<input type="text" data-disable name="user_name" value="john" />')); $('#qunit-fixture').append($('<for...
mit
guotao2000/ecmall
temp/caches/0479/c3ba161b278a12d3418f936d76b8ace5.cache.php
220
<?php /** * @Created By ECMall PhpCacheServer * @Time:2015-01-13 20:08:11 */ if(filemtime(__FILE__) + 600 < time())return false; return array ( 'inbox' => '0', 'outbox' => '0', 'total' => 0, ); ?>
mit
georghinkel/ttc2017smartGrids
solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/COSEM/COSEMObjects/S_FSKReportingSystemListObject.java
509
/** */ package gluemodel.COSEM.COSEMObjects; import gluemodel.COSEM.InterfaceClasses.S_FSKReportingsystemlist; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>SFSK Reporting System List Object</b></em>'. * <!-- end-user-doc --> * * * @see gluemodel.COSEM.COSEMObjects.COSEMObjectsPa...
mit
obi-two/Rebelion
data/scripts/templates/object/tangible/furniture/all/shared_frn_all_throwpillow_med_s02.py
465
#### 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/furniture/all/shared_frn_all_throwpillow_med_s02.iff" result.attrib...
mit
boy0001/SpongeCommon
src/main/java/org/spongepowered/common/mixin/core/item/inventory/MixinItemStack.java
6014
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
mit
TelerikAcademy/ASP.NET-Web-Forms
16. Live Demo - from zero to hero/LibrarySystemLiveDemo/LibrarySystemLiveDemo/Account/Manage.aspx.designer.cs
1776
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
mit
FansWorldTV/web
src/Kaltura/Client/Plugin/DropFolder/Type/SshDropFolder.php
2457
<?php // =================================================================================================== // _ __ _ _ // | |/ /__ _| | |_ _ _ _ _ __ _ // | ' </ _` | | _| || | '_/ _` | // |_|\_\__,_|_|\__|\_,_...
mit
juramy/Sylius
src/Sylius/Bundle/CoreBundle/Fixture/UserFixture.php
1164
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\CoreBundle\Fixture; use Symfony\Component\Config\Definition\Builder\ArrayNode...
mit
Webiny/Framework
src/Webiny/Component/Security/Tests/Encoder/EncoderTest.php
1303
<?php /** * Webiny Framework (http://www.webiny.com/framework) * * @copyright Copyright Webiny LTD */ namespace Webiny\Component\Security\Tests\Encoder; use Webiny\Component\Security\Encoder\Encoder; use Webiny\Component\Security\Tests\Mocks\EncoderMock; class EncoderTest extends \PHPUnit_Framework_TestCase { ...
mit
brianmains/Nucleo.NET
src/Nucleo.OnlineTests/Web/ButtonList/ClientSideAPI.aspx.designer.cs
6808
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
mit
no1msd/mstch
test/data/nested_higher_order_sections.hpp
262
const mstch::node nested_higher_order_sections_data = mstch::map{ {"bold", mstch::lambda{[](const std::string& text) -> mstch::node { return std::string{"<b>"} + text + std::string{"</b>"}; }}}, {"person", mstch::map{{"name", std::string{"Jonas"}}}} };
mit
JohanLarsson/Gu.Persist
Gu.Persist.Core/Contracts/IDirty.cs
3573
namespace Gu.Persist.Core { using System.Collections.Generic; using System.IO; /// <summary> /// Expose methods for checking if an instance has changed since last saved. /// </summary> public interface IDirty { /// <summary> /// Compares serialized item to the last bytes sa...
mit
mono/msbuild
src/Shared/InterningBinaryReader.cs
7612
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Text; using System.IO; using System.Diagnostics; using ErrorUtilities = Microsoft.Build.Shared.ErrorUtilities; using Microsoft.NET.StringT...
mit
wcoin/wankcoin0
src/qt/askpassphrasedialog.cpp
9720
#include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui::AskPassphraseDialog), ...
mit