repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
joakimbeng/absurd | tests/data/css/config/B.js | 88 | module.exports = function(A) {
A.add({
'header.a': {
background: '#222'
}
});
} | mit |
quxiaolong1504/marshmallow | marshmallow/marshalling.py | 12220 | # -*- coding: utf-8 -*-
"""Utility classes and values used for marshalling and unmarshalling objects to
and from primitive types.
.. warning::
This module is treated as private API.
Users should not need to use this module directly.
"""
from __future__ import unicode_literals
from marshmallow import utils
f... | mit |
mca62511/charityakita-static | archive/mail/program/lib/Roundcube/rcube_mime.php | 30598 | <?php
/*
+-----------------------------------------------------------------------+
| This file is part of the Roundcube Webmail client |
| Copyright (C) 2005-2012, The Roundcube Dev Team |
| Copyright (C) 2011-2012, Kolab Systems AG |
| ... | mit |
alinasmirnova/BenchmarkDotNet | src/BenchmarkDotNet/Parameters/ParameterInstances.cs | 1334 | using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Extensions;
namespace BenchmarkDotNet.Parameters
{
public class ParameterInstances
{
public IReadOnlyList<ParameterInstance> Items { get; }
public int Count => Items.Count;
public ParameterInstance this[int inde... | mit |
yonglehou/autorest | AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs | 894 | // 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 0.11.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
... | mit |
innogames/gitlabhq | spec/support/shared_examples/features/integrations/user_activates_mattermost_slash_command_integration_shared_examples.rb | 1053 | # frozen_string_literal: true
RSpec.shared_examples 'user activates the Mattermost Slash Command integration' do
it 'shows a help message' do
expect(page).to have_content('Use this service to perform common')
end
it 'shows a token placeholder' do
token_placeholder = find_field('service_token')['placehol... | mit |
stuhood/specs | src/test/scala/org/specs/matcher/numericMatchersSpec.scala | 5411 | /**
* Copyright (c) 2007-2011 Eric Torreborre <etorreborre@yahoo.com>
*
* 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 us... | mit |
capslockLtsPool/bp | src/qt/optionsmodel.cpp | 9050 | #include "optionsmodel.h"
#include "bitcoinunits.h"
#include <QSettings>
#include "init.h"
#include "walletdb.h"
#include "guiutil.h"
OptionsModel::OptionsModel(QObject *parent) :
QAbstractListModel(parent)
{
Init();
}
bool static ApplyProxySettings()
{
QSettings settings;
CService addrProxy(settings... | mit |
mcliment/DefinitelyTyped | types/dom-serial/index.d.ts | 1766 | // Type definitions for non-npm package Web Serial API based on spec and Chromium implementation 0.1
// Project: https://wicg.github.io/serial/
// Definitions by: Maciej Mroziński <https://github.com/maciejmrozinski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
type EventHandler = (event: Event) ... | mit |
jeraldfeller/jbenterprises | google-adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201609/cm/BiddingStrategyPage.php | 1123 | <?php
namespace Google\AdsApi\AdWords\v201609\cm;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class BiddingStrategyPage extends \Google\AdsApi\AdWords\v201609\cm\Page
{
/**
* @var \Google\AdsApi\AdWords\v201609\cm\SharedBiddingStrategy[] $entries
*/
protected $entries = null;
/... | mit |
shutchings/azure-sdk-for-net | src/SDKs/Automation/Management.Automation/Generated/Models/OperationDisplay.cs | 2414 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespac... | mit |
verdan/material-ui | docs/src/app/components/PropTypeDescription.js | 4867 | import React, {Component, PropTypes} from 'react';
import {parse} from 'react-docgen';
import {parse as parseDoctrine} from 'doctrine';
import MarkdownElement from './MarkdownElement';
import recast from 'recast';
require('./prop-type-description.css');
function getDeprecatedInfo(type) {
const deprecatedPropType = ... | mit |
corneliusweig/rollup | test/function/samples/deconflict-parameter-defaults/_config.js | 100 | module.exports = {
description: 'consistently deconflict variable names for parameter defaults'
};
| mit |
ENCODE-DCC/dna-me-pipeline | dnanexus/dme-align-pe/resources/usr/bin/mott-trim-pe.py | 5028 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2014 Junko Tsuji
# This script computes scores based on running sum
# algorithm (mott trimming algorithm) to trim 3'
# ends of reads, with the score below threshould.
from itertools import izip
from optparse import OptionParser
import sys, os.path, re
nPat ... | mit |
rippo/testing.casperjs.presentation.vscode.50mins | Tests/Page.Object.Pattern.Typescript/Typings/phantomjs.d.ts | 8420 | // Type definitions for PhantomJS v1.9.0 API
// Project: https://github.com/ariya/phantomjs/wiki/API-Reference
// Definitions by: Jed Hunsaker <https://github.com/jedhunsaker>, Mike Keesey <https://github.com/keesey>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare function require(module: string... | mit |
Xannn94/of | app/Modules/Search/Resources/Views/message.blade.php | 263 | @extends('layouts.inner')
@section('content')
@if($errors->has('query'))
@foreach($errors->get('query') as $error)
<div class="alert alert-danger">
{{ $error }}
</div>
@endforeach
@endif
@endsection | mit |
Soullivaneuh/alice | src/Generator/Resolver/ResolvingContext.php | 2036 | <?php
/*
* This file is part of the Alice package.
*
* (c) Nelmio <hello@nelm.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Nelmio\Alice\Generator\Resolver;
use Nelmio\Alice\Throwable\Ex... | mit |
virla01/ax-framework | Ocrend/vendor/twig/twig/src/Node/CheckSecurityNode.php | 177 | <?php
namespace Twig\Node;
require __DIR__.'/../../lib/Twig/Node/CheckSecurity.php';
if (\false) {
class CheckSecurityNode extends \Twig_Node_CheckSecurity
{
}
}
| mit |
jotson/1gam-jan2013 | zoetrope/core/tween.lua | 8531 | -- Class: Tween
-- A tween transitions a property from one state to another
-- in in-game time. A tween instance is designed to manage
-- many of these transitions at once, in fact. In order for it
-- to work properly, it must receive update events, so it must
-- be added somewhere in the current view or app. If you ar... | mit |
chonglou/itpkg_old | db/schema.rb | 27480 | # 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 |
lucasmichot/PHP-CS-Fixer | src/Fixer/Operator/AlignEqualsFixerHelper.php | 1769 | <?php
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer\Fixer\Operator;
use PhpCsFixe... | mit |
shawila/chat-bot | app/helpers/users/omniauth_callback_helper.rb | 41 | module Users::OmniauthCallbackHelper
end
| mit |
ycwuaa/teamform-seed | app/fish/js/fish.js | 3954 |
teamapp.controller('fishCtrl', ['$scope', "$rootScope", "$firebaseObject", "$firebaseArray", function($scope,$rootScope, $firebaseObject, $firebaseArray) {
//FAKE $rootScope.clickedEvent
$scope.currentEvent = $rootScope.clickedEvent.$id;
$scope.currentUser = $rootScope.currentUser.id;
$scope.events = $rootScope.eve... | mit |
mdxs/gae-init | main/auth/bitbucket.py | 1735 | # coding: utf-8
from __future__ import absolute_import
import flask
import auth
import config
import model
import util
from main import app
bitbucket_config = dict(
access_token_method='POST',
access_token_url='https://bitbucket.org/site/oauth2/access_token',
api_base_url='https://api.bitbucket.org/2.0/',
... | mit |
salimfadhley/jenkinsapi | examples/how_to/create_nested_views.py | 2192 | """
How to create nested views using NestedViews Jenkins plugin
This example requires NestedViews plugin to be installed in Jenkins
You need to have at least one job in your Jenkins to see views
"""
from __future__ import print_function
import logging
from pkg_resources import resource_string
from jenkinsapi.views imp... | mit |
ReactTraining/history | packages/history/__tests__/TestSequences/ReplaceNewLocation.js | 583 | import expect from 'expect';
import { execSteps } from './utils.js';
export default (history, done) => {
let steps = [
({ location }) => {
expect(location).toMatchObject({
pathname: '/'
});
history.replace('/home?the=query#the-hash');
},
({ action, location }) => {
expec... | mit |
luchaoshuai/aspnetboilerplate | src/Abp.Zero.Common/DynamicEntityProperties/DynamicPropertyStore.cs | 3608 | using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Dependency;
using Abp.Domain.Repositories;
using Abp.Domain.Uow;
namespace Abp.DynamicEntityProperties
{
public class DynamicPropertyStore : IDynamicPropertyStore, ITransientDependency
{
private readonly IRepository<DynamicPrope... | mit |
ukparliament/parliament.uk-prototype | app/controllers/houses/parties/members_controller.rb | 3960 | module Houses
module Parties
class MembersController < ApplicationController
before_action :data_check, :build_request
ROUTE_MAP = {
index: proc { |params| ParliamentHelper.parliament_request.house_party_members.set_url_params({house_id: params[:house_id], party_id: params[:party_id... | mit |
godotgildor/igv | src/org/broad/igv/ui/legend/LohLegendPanel.java | 3330 | /*
* The MIT License (MIT)
*
* Copyright (c) 2007-2015 Broad Institute
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
*... | mit |
vancarney/apihero-module-browserify | lib/apihero-module-browserify.js | 215 | // Generated by CoffeeScript 1.9.3
var browserify;
browserify = require('browserify');
module.exports.browserify = browserify;
module.exports.init = function(app, options, callback) {
return callback(null);
};
| mit |
smmbllsm/aleph | aleph/static/js/directives/responsePager.js | 1520 | import aleph from '../aleph';
aleph.directive('responsePager', ['$timeout', function ($timeout) {
return {
restrict: 'E',
scope: {
'response': '=',
'load': '&load'
},
templateUrl: 'templates/response_pager.html',
link: function (scope, element, attrs, model) {
var pageOffset = f... | mit |
DualSpark/rusoto | rusoto/services/cur/src/lib.rs | 1438 | // =================================================================
//
// * WARNING *
//
// This file is generated!
//
// Changes made to this file will be overwritten. If changes are
// required to the generated code, the service_crategen project
// must be updated to g... | mit |
blockstack/opendig | src/index.ts | 97 | import * as publicExports from './public'
export default publicExports
export * from './public'
| mit |
hanumakanthvvn/rubocop | lib/rubocop/cop/lint/empty_when.rb | 855 | # frozen_string_literal: true
module RuboCop
module Cop
module Lint
# This cop checks for the presence of `when` branches without a body.
#
# @example
#
# @bad
# case foo
# when bar then 1
# when baz then # nothing
# end
class EmptyWhen < Cop
... | mit |
kelvinatorr/tiffanyandkelvin | app/js/jquery.quicksand.js | 19077 | /*
Quicksand 1.4
Reorder and filter items with a nice shuffling animation.
Copyright (c) 2010 Jacek Galanciak (razorjack.net) and agilope.com
Big thanks for Piotr Petrus (riddle.pl) for deep code review and wonderful docs & demos.
Dual licensed under the MIT and GPL version 2 licenses.
http://github.com/jquery/jque... | mit |
nyaamara/osu | osu.Desktop.VisualTests/Tests/TestCaseDrawings.cs | 2595 | // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using osu.Framework.Testing;
using osu.Game.Screens.Tournament;
using osu.Game.Screens.Tournament.Teams;
namespace osu.Deskto... | mit |
jhernandezme/go-multasgt | vendor/github.com/h2non/gock/_examples/add_matchers/matchers.go | 631 | package main
import (
"fmt"
"net/http"
"gopkg.in/h2non/gock.v1"
)
func main() {
defer gock.Off()
gock.New("http://httpbin.org").
Get("/").
AddMatcher(func(req *http.Request, ereq *gock.Request) (bool, error) { return req.URL.Scheme == "http", nil }).
AddMatcher(func(req *http.Request, ereq *gock.Request)... | mit |
timfeid/framework-1 | tests/Database/DatabaseSQLiteSchemaGrammarTest.php | 19159 | <?php
use Mockery as m;
use Illuminate\Database\Schema\Blueprint;
class DatabaseSQLiteSchemaGrammarTest extends PHPUnit_Framework_TestCase
{
public function tearDown()
{
m::close();
}
public function testBasicCreateTable()
{
$blueprint = new Blueprint('users');
$blueprint-... | mit |
croquet-australia/croquet-australia.com.au | source/CroquetAustralia.Website/gulpconfig.js | 1020 | /*global module */
module.exports = function() {
'use strict';
var clientDirectory = '.';
var appJsFiles = ['./app/**/*.js', '!./App/_references.js'];
var layoutDirectory = './Layouts/Shared';
// todo: var cssDirectory = './app/css';
// todo: var lessDirectory = './app/less';
var config ... | mit |
samphippen/vagrant | plugins/commands/box/plugin.rb | 333 | require "vagrant"
module VagrantPlugins
module CommandBox
class Plugin < Vagrant.plugin("1")
name "box command"
description "The `box` command gives you a way to manage boxes."
command("box") do
require File.expand_path("../command/root", __FILE__)
Command::Root
end
e... | mit |
petergill/cap_bootstrap | lib/cap_bootstrap/recipes/check.rb | 520 | Capistrano::Configuration.instance(:must_exist).load do
namespace :check do
desc "Make sure local git is in sync with remote."
task :revision, roles: :web do
unless `git rev-parse HEAD` == `git rev-parse origin/#{branch}`
puts "WARNING: HEAD is not the same as origin/#{branch}"
puts "Run... | mit |
yethee/wsdl2phpgenerator | tests/src/Unit/ArrayTypeTest.php | 4461 | <?php
namespace Wsdl2PhpGenerator\Tests\Unit;
use Wsdl2PhpGenerator\ArrayType;
use Wsdl2PhpGenerator\Config;
/**
* Unit test for the ArrayType class.
*/
class ArrayTypeTest extends CodeGenerationTestCase
{
/**
* The name of the class that we are generating
* @var string
*/
protected $testCla... | mit |
gioialab/opendatagentedigioia | node_modules/js-cookie/test/tests.js | 15386 | /*global lifecycle: true*/
QUnit.module('read', lifecycle);
QUnit.test('simple value', function (assert) {
assert.expect(1);
document.cookie = 'c=v';
assert.strictEqual(Cookies.get('c'), 'v', 'should return value');
});
QUnit.test('empty value', function (assert) {
assert.expect(1);
// IE saves cookies with emp... | mit |
ValveSoftware/vogl | src/vogleditor/vogleditor_tracereplayer.cpp | 13054 |
#include "vogleditor_apicalltreeitem.h"
#include "vogleditor_apicallitem.h"
#include "vogleditor_frameitem.h"
#include "vogleditor_tracereplayer.h"
#include "vogl_find_files.h"
#include "vogl_file_utils.h"
#include "vogl_gl_replayer.h"
#include "vogleditor_output.h"
vogleditor_traceReplayer::vogleditor_traceReplayer... | mit |
andineck/connect-livereload | test/app.options.src-ignore.js | 1224 | var express = require("express");
var app = express();
// load liveReload script
app.use(require('../index.js')({
port: 35730,
src: "http://localhost/livereload.js?snipver=2",
ignore: []
}));
// load static content before routing takes place
app.use(express["static"](__dirname + "/fixtures"));
app.get("/defaul... | mit |
seanbrady5535/jmagcoin2 | src/qt/locale/bitcoin_fi.ts | 144999 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="fi" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Dogecoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location ... | mit |
Romashka/SonataAdminBundle | Command/SetupAclCommand.php | 2021 | <?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Command;
use Sonata\AdminBundle\Ut... | mit |
ari-gold/cli | php/Terminus/Fetchers/Plugin.php | 392 | <?php
namespace Terminus\Fetchers;
class Plugin extends Base {
protected $msg = "The '%s' plugin could not be found.";
public function get( $name ) {
foreach ( get_plugins() as $file => $_ ) {
if ( $file === "$name.php" ||
( dirname( $file ) === $name && $name !== '.' ) ) {
return (obj... | mit |
stevengum97/BotBuilder | Node/examples/demo-skype-calling/app.js | 10738 | /*-----------------------------------------------------------------------------
This Bot is a sample calling bot for Skype. It's designed to showcase whats
possible on Skype using the BotBuilder SDK. The demo shows how to create a
looping menu, recognize speech & DTMF, record messages, play multiple prompts,
and eve... | mit |
wKoza/angular | packages/compiler-cli/ngcc/test/entry_point_finder/targeted_entry_point_finder_spec.ts | 32732 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {absoluteFrom, AbsoluteFsPath, FileSystem, getFileSystem, relative} from '../../../src/ngtsc/file_system';
impo... | mit |
Mulodo-PHP-Laravel-Training/laravel-homestead | scripts/homestead.rb | 5888 | class Homestead
def Homestead.configure(config, settings)
# Set The VM Provider
ENV['VAGRANT_DEFAULT_PROVIDER'] = settings["provider"] ||= "virtualbox"
# Configure Local Variable To Access Scripts From Remote Location
scriptDir = File.dirname(__FILE__)
# Prevent TTY Errors
config.ssh.shell =... | mit |
angustas/company | node_modules/echarts/lib/component/axisPointer/axisTrigger.js | 15096 |
var zrUtil = require('zrender/lib/core/util');
var modelUtil = require('../../util/model');
var modelHelper = require('./modelHelper');
var findPointFromSeries = require('./findPointFromSeries');
var each = zrUtil.each;
var curry = zrUtil.curry;
var get = modelUtil.makeGetter();
/**
... | mit |
tpphu/react-pwa | src/redux/modules/survey.js | 488 | const IS_VALID = 'redux-example/survey/IS_VALID';
const IS_VALID_SUCCESS = 'redux-example/survey/IS_VALID_SUCCESS';
const IS_VALID_FAIL = 'redux-example/survey/IS_VALID_FAIL';
const initialState = {};
export default function reducer(state = initialState/* , action = {} */) {
return state;
}
export function isValid... | mit |
etcinit/phabricator-slack-feed | vendor/github.com/etcinit/gonduit/requests/project_query.go | 655 | package requests
import "github.com/etcinit/gonduit/constants"
// ProjectQueryRequest represents a request to project.query.
type ProjectQueryRequest struct {
IDs []string `json:"ids"`
Names []string `json:"names"`
PHIDs []string `json:"phids"`
Slugs []string... | mit |
warniel08/bretflix-finalproject | spec/controllers/profiles_controller_spec.rb | 85 | require 'rails_helper'
RSpec.describe ProfilesController, type: :controller do
end
| mit |
flftfqwxf/webpack | demo/extenal-and-lirbary/add.js | 173 | /**
* Created by flftfqwxf on 16/5/28.
*/
var add= function () {
console.log('this is extenal');
}
var DEL= function () {
console.log('this is extenal :DELETE')
} | mit |
tigerneil/deepy | deepy/layers/recurrent.py | 6446 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from . import NeuralLayer
from deepy.utils import build_activation, FLOATX
import numpy as np
import theano
import theano.tensor as T
from collections import OrderedDict
OUTPUT_TYPES = ["sequence", "one"]
INPUT_TYPES = ["sequence", "one"]
class RNN(NeuralLayer):
"""
... | mit |
schryer/tg-modal | src/utils/scrollbarSize.js | 773 | let size;
// Original source available at: https://github.com/react-bootstrap/dom-helpers/blob/master/src/util/scrollbarSize.js
function getScrollbarSize(recalc) {
if (!size || recalc) {
if (typeof document !== 'undefined') {
const scrollDiv = document.createElement('div');
scroll... | mit |
ze-pequeno/mockito | src/main/java/org/mockito/internal/configuration/injection/scanner/MockScanner.java | 2497 | /*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.configuration.injection.scanner;
import static org.mockito.internal.util.collections.Sets.newMockSafeHashSet;
import java.lang.reflect.Field;
import java.util.Set;
impo... | mit |
VioletLife/react | scripts/rollup/validate/eslintrc.rn.js | 612 | 'use strict';
module.exports = {
env: {
commonjs: true,
browser: true,
},
globals: {
// ES6
Map: true,
Set: true,
Symbol: true,
Proxy: true,
WeakMap: true,
WeakSet: true,
// Vendor specific
MSApp: true,
__REACT_DEVTOOLS_GLOBAL_HOOK__: true,
// FB
__DEV__: t... | mit |
xamarin/plugins | XPlat/YouTube.Player/ios/samples/YouTubePlayerSample/Models/YouTubeManager.cs | 3338 | using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Google.Apis.Services;
using Google.Apis.YouTube.v3;
using UIKit;
namespace YouTubePlayerSample
{
public class YouTubeManager
{
static readonly Lazy<YouTubeManager> la... | mit |
ScottHolden/azure-sdk-for-net | src/SDKs/Batch/DataPlane/Azure.Batch/Generated/ComputeNodeEndpointConfiguration.cs | 1947 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
//
// This... | mit |
mokuben/project_one | fuel/vendor/goaop/parser-reflection/tests/Stub/FileWithClasses55.php | 5523 | <?php
namespace Go\ParserReflection\Stub;
abstract class ExplicitAbstractClass {}
abstract class ImplicitAbstractClass
{
private $a = 'foo';
protected $b = 'bar';
public $c = 'baz';
abstract function test();
}
/**
* Some docblock for the class
*/
final class FinalClass
{
public $args = [];
... | mit |
wahajashfaq/keryana | assets/editor/core/loader.js | 7741 | /**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.loader} objects, which is used to
* load core scripts and their dependencies from _source.
*/
if ( typeof ... | mit |
raj2611/raj2611.github.io | gem/bundler/lib/bundler/cli/gem.rb | 7595 | # frozen_string_literal: true
require "pathname"
module Bundler
class CLI::Gem
TEST_FRAMEWORK_VERSIONS = {
"rspec" => "3.0",
"minitest" => "5.0"
}.freeze
attr_reader :options, :gem_name, :thor, :name, :target
def initialize(options, gem_name, thor)
@options = options
@gem_na... | mit |
chris-rock/node-crypto-examples | sha-stream.js | 452 | // generate a hash from file stream
var crypto = require('crypto'),
fs = require('fs'),
key = 'mysecret key'
// open file stream
var fstream = fs.createReadStream('./test/hmac.js');
var hash = crypto.createHash('sha512', key);
hash.setEncoding('hex');
// once the stream is done, we read the values
fstream.on('end... | mit |
l3l0/BehatExamples | vendor/vendor_full/symfony/src/Symfony/Component/HttpKernel/Bundle/Bundle.php | 4829 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\HttpKernel\Bundle;
use Symfony\Comp... | mit |
tnasky/test | db/migrate/20110415003956_add_unique_index_to_users.rb | 179 | class AddUniqueIndexToUsers < ActiveRecord::Migration
def self.up
add_index :users, :email, :unique => true
end
def self.down
remove_index :users, :email
end
end
| mit |
jericks/geoscript-js | src/main/resources/org/geoscript/js/lib/geoscript/style/style.js | 4631 | var UTIL = require("../util");
var STYLE_UTIL = require("./util");
var Symbolizer = require("./symbolizer").Symbolizer;
var Filter = require("../filter").Filter;
var geotools = Packages.org.geotools;
/** api: (define)
* module = style
* class = Style
*/
/** api: (extends)
* style/symbolizer.js
*/
var Style =... | mit |
storybooks/storybook | examples/angular-cli/jest-config/setup.ts | 112 | import 'jest-preset-angular';
import './globalMocks';
require('babel-plugin-require-context-hook/register')();
| mit |
n0ix/SFDL.FTP | ArxOne.FtpTest/FtpReplyCodeTest.cs | 967 | #region Arx One FTP
// Arx One FTP
// A simple FTP client
// https://github.com/ArxOne/FTP
// Released under MIT license http://opensource.org/licenses/MIT
#endregion
namespace ArxOne.FtpTest
{
using Ftp;
using Microsoft.VisualStudio.TestTools.UnitTesting;
/// <summary>
///This is a test class for Ftp... | mit |
rainlike/justshop | vendor/payum/payum/src/Payum/Paypal/ExpressCheckout/Nvp/Action/Api/CreateBillingAgreementAction.php | 1371 | <?php
namespace Payum\Paypal\ExpressCheckout\Nvp\Action\Api;
use Payum\Core\Action\ActionInterface;
use Payum\Core\ApiAwareInterface;
use Payum\Core\ApiAwareTrait;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Exception\RequestNotSupportedException;
use Payum\Core\Exception\LogicException;
use Payum\Paypal\Exp... | mit |
agocke/roslyn | src/EditorFeatures/Core/Implementation/IntelliSense/Completion/OptionSetExtensions.cs | 949 | // 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 Microsoft.CodeAnalysis.Completion;
using Microsoft.CodeAnalysis.Editor.Options;
using Microsoft.CodeAnalysis.... | mit |
pythonchelle/opencomparison | apps/package/management/commands/package_updater.py | 2105 | from socket import error as socket_error
from sys import stdout
from time import sleep, gmtime, strftime
from xml.parsers.expat import ExpatError
from xmlrpclib import ProtocolError
from django.conf import settings
from django.core.management.base import CommandError, NoArgsCommand
from package.models import Package
... | mit |
Nowdone/easemob-android | EaseUI/src/com/easemob/easeui/widget/photoview/VersionedGestureDetector.java | 8123 | /**
* Copyright (C) 2013-2014 EaseMob Technologies. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless requi... | mit |
hellorich/go-craft | craft/app/vendor/imagine/imagine/lib/Imagine/Imagick/Imagine.php | 5245 | <?php
/*
* This file is part of the Imagine package.
*
* (c) Bulat Shakirzyanov <mallluhuct@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Imagine\Imagick;
use Imagine\Exception\NotSupportedException;
use I... | mit |
luissancheza/sice | js/jqwidgets/demos/angular/app/datetimeinput/datetime/main.ts | 296 | import { platformBrowser } from '@angular/platform-browser';
import { enableProdMode } from '@angular/core';
import { AppModuleNgFactory } from '../../../temp/app/datetimeinput/datetime/app.module.ngfactory';
enableProdMode();
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory); | mit |
ArsenShnurkov/GenuineChannels | Genuine Channels/Sources/Utilities/AsyncThreadStarter.cs | 2454 | /* Genuine Channels product.
*
* Copyright (c) 2002-2007 Dmitry Belikov. All rights reserved.
*
* This source code comes under and must be used and distributed according to the Genuine Channels license agreement.
*/
using System;
using System.Collections;
using System.Threading;
using Belikov.Genuin... | mit |
teohhanhui/symfony | src/Symfony/Component/Messenger/Tests/Transport/Doctrine/DoctrineReceiverTest.php | 4792 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Messenger\Tests\Transport\Doctrine;
use PHPUnit\Frame... | mit |
GlowstonePlusPlus/GlowstonePlusPlus | src/main/java/net/glowstone/inventory/LeveledEnchant.java | 559 | package net.glowstone.inventory;
import net.glowstone.constants.GlowEnchantment;
import net.glowstone.util.WeightedRandom.Choice;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.enchantments.EnchantmentOffer;
public class LeveledEnchant extends EnchantmentOffer implements Choice {
public LeveledEnc... | mit |
dinorastoder/laravel-io-development | tests/unit/Forum/UseCases/ViewThreadHandlerTest.php | 1445 | <?php namespace Lio\Forum\UseCases;
use App;
use Lio\Events\Dispatcher;
use Lio\Forum\Threads\Thread;
use Mockery as m;
class ViewThreadHandlerTest extends \UnitTestCase
{
public function test_can_create_handler()
{
$this->assertInstanceOf('Lio\Forum\UseCases\ViewThreadHandler', $this->getHandler());
... | mit |
bjornharrtell/ember-paper | addon/components/paper-toast.js | 3806 | /**
* @module ember-paper
*/
import { inject as service } from '@ember/service';
import { or } from '@ember/object/computed';
import Component from '@ember/component';
import { computed } from '@ember/object';
import { run } from '@ember/runloop';
import { guidFor } from '@ember/object/internals';
import { getOwner ... | mit |
ta-stott-oe/PowerBI-visuals | src/Clients/VisualsCommon/Utility/wordBreaker.ts | 7799 | /*
* Power BI Visualizations
*
* 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 restric... | mit |
Jandersolutions/ionic | js/utils/platform.js | 12637 | (function(window, document, ionic) {
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g,... | mit |
systemovich/lila | modules/relation/src/main/RelationRepo.scala | 1924 | package lila.relation
import play.api.libs.json._
import lila.common.PimpedJson._
import lila.db.api._
import lila.db.Implicits._
import tube.relationTube
private[relation] object RelationRepo {
def relation(id: ID): Fu[Option[Relation]] =
$primitive.one($select byId id, "r")(_.asOpt[Boolean])
def relation... | mit |
segafan/wmelite_hcdaniel-repo | src/UITiledImage.cpp | 12997 | /*
This file is part of WME Lite.
http://dead-code.org/redir.php?target=wmelite
Copyright (c) 2011 Jan Nedoma
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, includin... | mit |
TillaTheHun0/ionic | angular/test/testapp/src/app/alert/alert-routing.module.ts | 357 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AlertPageComponent } from './alert-page.component';
const routes: Routes = [
{ path: '', component: AlertPageComponent }
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})... | mit |
hagish/tektix | hektik/sperm/loveframes/objects/internal/modalbackground.lua | 2453 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- modalbackground class
local newobject = loveframes.NewObject("modalbackground", "loveframes_object_modalbackground", true)
--... | mit |
4bic-attic/grano-ui | grano/ui/static/js/config.js | 353 | var config = {
"APP_NAME": "{{app_name}}",
"APP_VERSION": "{{app_version}}",
"UI_ROOT": "{{ui_root}}",
"STATIC_ROOT": "{{static_root}}",
"API_ROOT": "{{api_root}}",
"PLUGINS": {{plugins}},
"DATA_TYPES": {{data_types}},
"SCHEMA_OBJS": {{schema_objs}}
};
angular.module('grano.config', [])... | mit |
intruder01/ALairWinforms | WinForms/PropertyEditing/EditorTemplates/ComboBoxEditorTemplate.cs | 7849 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Drawing;
using AdamsLair.WinForms.Drawing;
using ButtonState = AdamsLair.WinForms.Drawing.ButtonState;
namespace AdamsLair.WinForms.PropertyEditing.Templates
{
public class ComboBoxEditorTemplate : EditorTemp... | mit |
sjsucohort6/openstack | python/venv/lib/python2.7/site-packages/glanceclient/client.py | 2361 | # Copyright 2012 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | mit |
mrjive/hubzilla | Zotlabs/Module/Cards.php | 5279 | <?php
namespace Zotlabs\Module;
require_once('include/channel.php');
require_once('include/conversation.php');
require_once('include/acl_selectors.php');
class Cards extends \Zotlabs\Web\Controller {
function init() {
if(argc() > 1)
$which = argv(1);
else
return;
profile_load($which);
}
/**
* {... | mit |
zweidner/hubzero-cms | core/components/com_newsletter/admin/controllers/newsletters.php | 24422 | <?php
/**
* @package hubzero-cms
* @copyright Copyright 2005-2019 HUBzero Foundation, LLC.
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Components\Newsletter\Admin\Controllers;
use Components\Newsletter\Models\Newsletter;
use Components\Newsletter\Models\Template;
use Components\Newslette... | mit |
cosmy1/Urho3D | Source/Urho3D/Resource/ResourceCache.cpp | 37720 | //
// Copyright (c) 2008-2018 the Urho3D project.
//
// 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, mod... | mit |
zamabraga/effort | Main/Source/Effort.Test/Internal/ResultSets/IResultSet.cs | 1669 | // --------------------------------------------------------------------------------------------
// <copyright file="IResultSet.cs" company="Effort Team">
// Copyright (C) 2011-2014 Effort Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and as... | mit |
COLABORATI/centrifugo | libcentrifugo/engine.go | 1151 | package libcentrifugo
// Engine is an interface with all methods that can be used by client or
// application to publish message, handle subscriptions, save or retrieve
// presence and history data
type Engine interface {
// getName returns a name of concrete engine implementation
name() string
// publish allows t... | mit |
TSavo/XChange | xchange-dsx/src/test/java/org/knowm/xchange/dsx/ExchangeUtils.java | 1720 | package org.knowm.xchange.dsx;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.ExchangeSpecification;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory... | mit |
alvachien/aclearning | languages_and_platforms/java/thinkinjava/00_lib/enumerated/Input.java | 763 | //: enumerated/Input.java
package enumerated;
import java.util.*;
public enum Input {
NICKEL(5), DIME(10), QUARTER(25), DOLLAR(100),
TOOTHPASTE(200), CHIPS(75), SODA(100), SOAP(50),
ABORT_TRANSACTION {
public int amount() { // Disallow
throw new RuntimeException("ABORT.amount()");
}
},
STOP { /... | mit |
allbegray/slack-api | src/main/java/allbegray/slack/type/Authentication.java | 1033 | package allbegray.slack.type;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Authentication {
protected String url;
protected String team;
protected String user;
protected String team_id;
protected String user_id;
public String getUrl() {... | mit |
roryaronson/OpenFarm | app/models/stage.rb | 505 | class Stage
include Mongoid::Document
embeds_many :pictures, cascade_callbacks: true, as: :photographic
embeds_one :time_span, cascade_callbacks: true, as: :timed
belongs_to :guide
field :name, type: String
field :stage_length, type: Integer # Length in days
field :environment, type: Array
field :soi... | mit |