repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
pedwik/DotSpatial | Source/DotSpatial.Serialization/BaseCollection.cs | 12568 | // ********************************************************************************************************
// Product Name: DotSpatial.Common.dll
// Description: A shared module for DotSpatial libraries
// ********************************************************************************************************
//
... | mit |
MakersAsylumIndia/Jugaad | web/app/themes/canard/author-bio.php | 1004 | <?php
/**
* The template for displaying Author Bio
*
* @package Canard
*/
?>
<div class="author-info">
<div class="author-avatar">
<?php
/**
* Filter the author bio avatar size.
*
* @param int $size The avatar height and width size in pixels.
*/
$author_bio_avatar_size = apply_filters( 'canard_a... | mit |
rainlike/justshop | vendor/payum/payum/src/Payum/Core/Tests/Request/RefundTest.php | 496 | <?php
namespace Payum\Core\Tests\Request;
use Payum\Core\Request\Generic;
use Payum\Core\Request\Refund;
class RefundTest extends \PHPUnit_Framework_TestCase
{
/**
* @test
*/
public function shouldBeSubClassOfGeneric()
{
$rc = new \ReflectionClass(Refund::class);
$this->assertTr... | mit |
LuaDist/cd | doc/html/examples/simpledraw.lua | 11130 | require"cdlua"
STYLE_SIZE = 10
pattern = cd.CreatePattern(STYLE_SIZE, STYLE_SIZE)
stipple = cd.CreateStipple(STYLE_SIZE, STYLE_SIZE)
for p = 0, STYLE_SIZE*STYLE_SIZE-1 do
pattern[p] = cd.WHITE
end
pattern[11] = cd.RED
pattern[21] = cd.RED
pattern[31] = cd.RED
pattern[41] = cd... | mit |
OEvgeny/postcss-assets | lib/unescape-css.js | 250 | var R_ESCAPE = /\\(?:([0-9a-f]{1,6} ?)|(.))/gi;
module.exports = function (string) {
return string.replace(R_ESCAPE, function (match, hex, char) {
if (hex) {
return String.fromCharCode(parseInt(hex, 16));
}
return char;
});
};
| mit |
TelegramBots/telegram.bot | src/Telegram.Bot/Requests/Update Messages/EditMessageCaptionRequest.cs | 2370 | using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using Telegram.Bot.Requests.Abstractions;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
using Telegram.Bot.Types.ReplyMarkups;
// ReSharper disable once CheckNamespace
namespace Telegram.Bot.Requests
{
/// <summary>
/// Edit captions and g... | mit |
cfanzp008/skynet-note | service/launcher.lua | 3030 | local skynet = require "skynet"
local string = string
local services = {}
local command = {}
local function handle_to_address(handle)
return tonumber("0x" .. string.sub(handle , 2))
end
local NORET = {}
function command.LIST()
local list = {}
for k,v in pairs(services) do
list[skynet.address(k)] = v
end
ret... | mit |
zooley/hubzero-cms | core/templates/system/js/group.js | 687 | /**
* @package hubzero-cms
* @copyright Copyright 2005-2019 HUBzero Foundation, LLC.
* @license http://opensource.org/licenses/MIT MIT
*/
if (!jq) {
var jq = $;
}
jQuery(document).ready(function(jq){
var $ = jq;
// group pane toggle
$('#group a.toggle, #group-info .close').on('click', function(event) ... | mit |
tijmenb/spotlight | app/server/modules/applications.js | 316 | var requirejs = require('requirejs');
var ModuleController = require('../controllers/module');
var ColumnController = requirejs('common/modules/applications');
var View = require('../views/modules/applications');
module.exports = ModuleController.extend(ColumnController).extend({
visualisationClass: View
}); | mit |
juxor/dhcpcanon_debian | dhcpcanon/dhcpcapfsm.py | 26333 | # -*- coding: utf-8 -*-
# vim:ts=4:sw=4:expandtab
# Copyright 2016, 2017 juga (juga at riseup dot net), MIT license.
"""DCHP client implementation of the Anonymity Profiles [:rfc:`7844`]."""
from __future__ import absolute_import, unicode_literals
import logging
from netaddr import AddrFormatError
from scapy.arch imp... | mit |
Devianttwo/earthcoin | src/qt/guiutil.cpp | 13505 | #include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include "base58.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For ... | mit |
skidding/react-cosmos | packages/react-cosmos-shared2/webpack.js | 44 | module.exports = require('./dist/webpack');
| mit |
jeffbcross/material | src/components/tabs/js/paginationDirective.js | 7549 | (function() {
'use strict';
angular.module('material.components.tabs')
.directive('mdTabsPagination', TabPaginationDirective);
function TabPaginationDirective($mdConstant, $window, $$rAF, $$q, $timeout, $mdMedia) {
// Must match (2 * width of paginators) in scss
var PAGINATORS_WIDTH = (8 * 4) * 2;
return ... | mit |
stevenuray/XChange | xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/service/BitstampAccountService.java | 1651 | package org.knowm.xchange.bitstamp.service;
import java.io.IOException;
import java.math.BigDecimal;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.bitstamp.BitstampAdapters;
import org.knowm.xchange.bitstamp.dto.account.BitstampDepositAddress;
import org.knowm.xchange.bitstamp.dto.account.BitstampWithdr... | mit |
trtt/apitrace | gui/imageviewer.cpp | 5452 | #include "imageviewer.h"
#include "pixelwidget.h"
#include "apisurface.h"
#include "image.hpp"
#include <QDebug>
#include <QDesktopWidget>
#include <QPainter>
#include <QPixmap>
#include <QScrollBar>
ImageViewer::ImageViewer(QWidget *parent, bool opaque, bool alpha)
: QDialog(parent),
m_image(0)
{
setu... | mit |
gagangupt16/vscode | src/vs/workbench/parts/preferences/browser/keybindingWidgets.ts | 10425 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | mit |
xixizhang96/Example | imoocstudy/KineticJS-master/test/unit/Canvas-test.js | 1000 | suite('Canvas', function() {
// ======================================================
test('pixel ratio', function() {
var stage = addStage();
var layer = new Kinetic.Layer();
var circle = new Kinetic.Circle({
x: 578/2,
y: 100,
radius: 70,
... | mit |
mediagreenhouse/spontaneous | test/unit/test_visibility.rb | 13263 | # encoding: UTF-8
require File.expand_path('../../test_helper', __FILE__)
describe "Visibility" do
start do
@site = setup_site
Object.const_set :R, Class.new(Page)
Object.const_set :P, Class.new(Page)
Object.const_set :E, Class.new(Piece)
Object.const_set :MyAlias, Class.new(Piece)
::R.box... | mit |
babel/babel | packages/babel-plugin-transform-sticky-regex/src/index.ts | 536 | import { declare } from "@babel/helper-plugin-utils";
import { types as t } from "@babel/core";
export default declare(api => {
api.assertVersion(7);
return {
name: "transform-sticky-regex",
visitor: {
RegExpLiteral(path) {
const { node } = path;
if (!node.flags.includes("y")) retur... | mit |
robertjf/Umbraco-CMS | src/Umbraco.Core/Models/Membership/UserGroupExtensions.cs | 1118 | using System.Linq;
using Umbraco.Core.Persistence.Dtos;
namespace Umbraco.Core.Models.Membership
{
internal static class UserGroupExtensions
{
public static IReadOnlyUserGroup ToReadOnlyGroup(this IUserGroup group)
{
//this will generally always be the case
var readonly... | mit |
bjarnef/Merchello | test/Merchello.Tests.IntegrationTests/Services/Customer/CustomerServiceTests.cs | 15416 | using System.Linq;
using Merchello.Core;
using Merchello.Core.Models;
using Merchello.Core.Services;
using Merchello.Tests.IntegrationTests.TestHelpers;
using NUnit.Framework;
namespace Merchello.Tests.IntegrationTests.Services.Customer
{
using System;
using Merchello.Tests.Base.DataMakers;
[TestFixture... | mit |
etcinit/laravel-helpers | src/Chromabits/Illuminated/Auth/Middleware/HmacMiddleware.php | 3915 | <?php
/**
* Copyright 2015, Eduardo Trujillo <ed@chromabits.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* This file is part of the Illuminated package
*/
namespace Chromabits\Illuminated\Auth\Middleware;
use Carbon\Carbo... | mit |
stormleoxia/coreclr | tests/src/JIT/Performance/CodeQuality/BenchI/Puzzle/Puzzle.cs | 8670 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.Xunit.Performance;
using System;
using System.Runtime.CompilerServices;
using Xunit;
[assembly: OptimizeForBenchmarks]
[assembly: MeasureInstruction... | mit |
pilor/azure-sdk-for-net | src/SDKs/Network/Management.Network/Generated/Models/NetworkInterfaceTapConfiguration.cs | 3848 | // <auto-generated>
// 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
// re... | mit |
bboyfeiyu/the-tech-frontier-app | src/org/tech/frontier/ui/frgms/ArticlesFragment.java | 4987 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 Umeng, 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 u... | mit |
Universal-Model-Converter/UMC3.0a | data/Python/x86/Lib/site-packages/OpenGL/raw/GL/EXT/blend_subtract.py | 629 | '''OpenGL extension EXT.blend_subtract
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensions
from OpenGL.GL import glget
import ctypes
EXTENSION_NAME = 'GL_EXT_blend_subtract'
_DEPRECATED = False
GL_FUNC_SUBTRACT... | mit |
onezens/web | blog/node_modules/express-winston/index.js | 11904 | // Copyright (c) 2012-2014 Heapsource.com and Contributors - http://www.heapsource.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 ... | mit |
TheArtling/django-active-users-stats | active_users/tests/settings.py | 528 | """
These settings are used by the ``manage.py`` command.
With normal tests we want to use the fastest possible way which is an
in-memory sqlite database but if you want to create South migrations you
need a persistant database.
Unfortunately there seems to be an issue with either South or syncdb so that
defining two... | mit |
huanpc/IoT-1 | gui/controller/.venv/lib/python3.5/site-packages/jet/tests/test_dashboard.py | 3005 | from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase, Client
from jet.dashboard.dashboard import Dashboard
from jet.dashboard.modules import LinkList, RecentActions
from jet.dashboard.models import UserDashboardModule
from jet.tests.dashboard import T... | mit |
Sprytile/Sprytile | rx/linq/observable/single.py | 880 | from rx import Observable
from rx.internal import extensionmethod
from .singleordefault import single_or_default_async
@extensionmethod(Observable)
def single(self, predicate=None):
"""Returns the only element of an observable sequence that satisfies the
condition in the optional predicate, and reports an ex... | mit |
vvmann/tyckiting-bot | clients/python/tyckiting_client/ai/dummy.py | 845 | import random
from tyckiting_client.ai import base
from tyckiting_client import actions
class Ai(base.BaseAi):
"""
Dummy bot that moves randomly around the board.
"""
def move(self, bots, events):
"""
Move the bot to a random legal positon.
Args:
bots: List of bot... | mit |
minecrafter/gitea | models/consistency_test.go | 5583 | // Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package models
import (
"reflect"
"testing"
"github.com/stretchr/testify/assert"
)
// ConsistencyCheckable a type that can be tested for database consi... | mit |
teohhanhui/symfony | src/Symfony/Component/HttpKernel/Fragment/InlineFragmentRenderer.php | 5016 | <?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\HttpKernel\Fragment;
use Symfony\Component\HttpFounda... | mit |
danilovesky/workcraft | workcraft/CpogPlugin/src/org/workcraft/plugins/cpog/scenco/ConstrainedSearchScencoDialog.java | 13835 | package org.workcraft.plugins.cpog.scenco;
import info.clearthought.layout.TableLayout;
import info.clearthought.layout.TableLayoutConstraints;
import org.workcraft.dom.visual.SizeHelper;
import org.workcraft.dom.visual.VisualTransformableNode;
import org.workcraft.gui.layouts.SimpleFlowLayout;
import org.workcraft.pl... | mit |
johnghoonchoi/shine-lottery | server/config/accounts.js | 4971 | /**
* Accounts configuration
*/
/**
* accounts-ui package configuration
*/
Accounts.config({
sendVerificationEmail: true,
forbidClientAccountCreation: false
});
const services = ["facebook", "google", "twitter", "meetup", "github", "meteor", "naver", "kakao"];
Meteor.startup(() => {
_.each(services, (servi... | mit |
ckbkr/ss5-ruby-web-interface | bundle/ruby/1.9.1/gems/do_sqlite3-0.10.12/spec/typecast/bigdecimal_spec.rb | 382 | # encoding: utf-8
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
require 'data_objects/spec/shared/typecast/bigdecimal_spec'
# Sqlite3 doesn't support decimals natively, so autocasting is not available:
# http://www.sqlite.org/datatype3.html
describe 'DataObjects::Sqlite3 with BigDe... | mit |
loic425/Sylius | src/Sylius/Bundle/ApiBundle/EventListener/AuthenticationSuccessListener.php | 1203 | <?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.
*/
declare(strict_types=1);
namespace Sylius\Bundle\ApiBundle\EventListener;
use ApiPlatform\Core\Api\I... | mit |
rwaldron/popcorn-js | plugins/timeline/popcorn.timeline.js | 4360 | // PLUGIN: Timeline
(function ( Popcorn ) {
/**
* timeline popcorn plug-in
* Adds data associated with a certain time in the video, which creates a scrolling view of each item as the video progresses
* Options parameter will need a start, target, title, and text
* -Start is the time that you want... | mit |
rwaldron/grunt-compare-size | Gruntfile.js | 1030 | "use strict";
module.exports = function(grunt) {
var gzip = require("gzip-js");
// Project configuration.
grunt.initConfig({
compare_size: {
files: [
"tasks/compare-size.js",
"test/compare-size.js"
],
options: {
compress: {
gz: function( contents ) {
... | mit |
thequixotic/ai2-kawa | gnu/kawa/echo2/Echo2Window.java | 760 | package gnu.kawa.echo2;
import gnu.kawa.models.*;
import gnu.mapping.WrappedException;
public class Echo2Window extends nextapp.echo2.app.Window
implements gnu.kawa.models.Window
{
boolean registered;
Object content;
Echo2Display display;
public Display getDisplay ()
{
return di... | mit |
lolo13018/ECAlendar | app/src/main/java/be/ecam/ecalendar/CalendarLoaderReceiver.java | 1662 | package be.ecam.ecalendar;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Created by charles on 4/2/17.
*/
/**
* Receive data from CalendarLo... | mit |
DroidzDevTeam/Droidz-V2 | src/qt/bitcoinunits.cpp | 4275 | #include "bitcoinunits.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(BTC);
unitlist.append(mBT... | mit |
hanblee/corefxlab | tests/System.Time.Tests/DateTimeOffsetTests.cs | 5834 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Xunit;
namespace System.Time.Tests
{
public class DateTimeOffsetTests
{
#if Windows
string TimeZoneId = "Pacific Standard Time";
#else
string T... | mit |
sushantparkhi/react-google-maps | examples/gh-pages/src/containers/index.js | 129 | export {
default as Application,
} from "./Application";
export {
default as AsyncApplication,
} from "./AsyncApplication";
| mit |
filipesilva/angular | packages/platform-webworker/src/web_workers/shared/messaging_api.ts | 489 | /**
* @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
*/
/**
* All channels used by angular's WebWorker components are listed here.
* You should not use these channels in y... | mit |
yuyu2172/chainercv | chainercv/links/model/deeplab/__init__.py | 456 | from chainercv.links.model.deeplab.aspp import SeparableASPP # NOQA
from chainercv.links.model.deeplab.deeplab_v3_plus import Decoder # NOQA
from chainercv.links.model.deeplab.deeplab_v3_plus import DeepLabV3plus # NOQA
from chainercv.links.model.deeplab.deeplab_v3_plus import DeepLabV3plusXception65 # NOQA
from ch... | mit |
deercoder/exp-code | Python/Code/continue.py | 265 | #! /usr/bin/python
# Filename: continue.py
while True:
guess = raw_input("please input a string: ")
if guess == 'quit':
break
if len(guess) < 3:
continue
print("sufficient length >= 3")
else:
print('else statment')
print("Over")
| mit |
makepanic/ember-cli-mirage | tests/integration/orm/belongs-to/7-named-one-way-reflexive/association-new-test.js | 882 | import Helper, { states } from './_helper';
import { module, test } from 'qunit';
module('Integration | ORM | Belongs To | Named One-Way Reflexive | association #new', function(hooks) {
hooks.beforeEach(function() {
this.helper = new Helper();
});
/*
The model can make a new unsaved belongs-to associati... | mit |
isyageri/optima | application/libraries/administration/Groups_permissions_controller.php | 10633 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Json library
* @class Groups_controller
* @version 07/05/2015 12:18:00
*/
class Groups_permissions_controller {
function read() {
$page = getVarClean('page','int',1);
$limit = getVarClean('rows','int',5);
... | mit |
stephenshank/taed-pv | pv/pvviewer/__init__.py | 1355 | try:
from urllib.request import urlopen
PY3 = True
except ImportError:
from urllib import urlopen
PY3 = False
import uuid
from .viewer import Viewer
from . import color
from . import mol
base_url = ('http://www.rcsb.org/pdb/download/downloadFile.do'
'?fileFormat=pdb&structureId=')
clas... | mit |
HIPS/Kayak | kayak/elem_ops.py | 3194 | # Authors: Harvard Intelligent Probabilistic Systems (HIPS) Group
# http://hips.seas.harvard.edu
# Ryan Adams, David Duvenaud, Scott Linderman,
# Dougal Maclaurin, Jasper Snoek, and others
# Copyright 2014, The President and Fellows of Harvard University
# Distributed under an MIT license. Se... | mit |
Oiawesome/ShowdownServer | app.js | 13448 | /**
* Main file
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This is the main Pokemon Showdown app, and the file you should be
* running to start Pokemon Showdown if you're using it normally.
*
* This file sets up our SockJS server, which handles communication
* between users and your server, and also s... | mit |
jquirozo/graph | GraphLayout/tools/GraphViewerGDI/DNode.cs | 6397 | /*
Microsoft Automatic Graph Layout,MSAGL
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, includin... | mit |
hyonholee/azure-sdk-for-net | sdk/testcommon/Azure.Management.Network.2020_04/src/Generated/NetworkInterfacesDeleteOperation.cs | 2594 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
namespace Azure.Management.Network
{
/// <summary> ... | mit |
almeidapaulopt/frappe | frappe/commands/translate.py | 2658 | import click
from frappe.commands import pass_context, get_site
from frappe.exceptions import SiteNotSpecifiedError
# translation
@click.command('build-message-files')
@pass_context
def build_message_files(context):
"Build message files for translation"
import frappe.translate
for site in context.sites:
try:
f... | mit |
Rusev12/Software-University-SoftUni | Software Technologies/PHP/PHP First Steps - Exercises/htmlButtons.php | 514 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Buttons</title>
</head>
<body>
<form>
N: <input type="text" name="num" />
<input type="submit" />
</form>
<?php
if (isset($_GET['num'])) {
$num = intval($_GET['num']);
$result ... | mit |
cgpllx/FlappyCow | src/com/quchen/flappycow/sprites/Accessory.java | 612 | package com.quchen.flappycow.sprites;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import com.quchen.flappycow.Game;
import com.quchen.flappycow.GameView;
public class Accessory extends Sprite {
public Accessory(GameView view, Game game) {
super(view, game);
}
public void moveTo(int x, in... | mit |
podio/podio-java | src/main/java/com/podio/embed/EmbedType.java | 946 | package com.podio.embed;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonValue;
public enum EmbedType {
/**
* A direct link to a public image
*/
IMAGE("image"),
/**
* A link to a video service provider such as YouTube
*/
VIDEO("video"),
/**
* A link to a se... | mit |
JustinDrake/openbazaar-go | ipfs/query.go | 1034 | package ipfs
import (
"github.com/ipfs/go-ipfs/commands"
"gx/ipfs/QmUc6twRJRE9MNrUGd8eo9WjHHxebGppdZfptGCASkR7fF/go-libp2p-routing/notifications"
peer "gx/ipfs/QmWUswjn261LSyVxWAEpMVtPdy8zmKBJJfBpG3Qdpa8ZsE/go-libp2p-peer"
)
func Query(ctx commands.Context, peerID string) ([]peer.ID, error) {
var peers []peer.ID
... | mit |
oleg-nenashev/jenkins | core/src/main/java/hudson/util/Secret.java | 13142 | /*
* The MIT License
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi
* Copyright (c) 2016, CloudBees 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 wi... | mit |
Hanul/UPPERCASE | OLD/node_modules/uppercase-core/TEST/COMMON/UTIL/DELAY/LOOP.js | 462 | TEST('LOOP', (check) => {
let div = DIV({
style : {
position : 'fixed',
left : 100,
top : 100,
width : 100,
backgroundColor : 'red'
}
}).appendTo(BODY);
let height = 0;
let loop = LOOP(100, {
start : () => {
// when start one cycle.
},
interval : () => {
div.addStyle({
height... | mit |
pgentile/zucchini-ui | zucchini-ui-app/src/main/java/io/zucchiniui/app/ForwardToIndexFilter.java | 1806 | package io.zucchiniui.app;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
publi... | mit |
Djamy/platform | src/Oro/Bundle/WorkflowBundle/EventListener/WorkflowDefinitionValidateListener.php | 1368 | <?php
namespace Oro\Bundle\WorkflowBundle\EventListener;
use Oro\Bundle\WorkflowBundle\Entity\WorkflowDefinition;
use Oro\Bundle\WorkflowBundle\Event\WorkflowChangesEvent;
use Oro\Bundle\WorkflowBundle\Model\WorkflowAssembler;
use Oro\Component\Action\Exception\AssemblerException;
class WorkflowDefinitionValidateLis... | mit |
beyondthestory/docker-registry-frontend | Gruntfile.js | 10352 | // Generated on 2014-09-12 using generator-angular 0.9.8
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt tasks au... | mit |
elias63/e_institut | vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php | 8888 | <?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\DependencyInjection\Tests\Dumper;
use Sy... | mit |
letunhatkong/teletronm2 | app/code/Sahy/Banner/Controller/Adminhtml/Items/NewAction.php | 202 | <?php
namespace Sahy\Banner\Controller\Adminhtml\Items;
class NewAction extends \Sahy\Banner\Controller\Adminhtml\Items
{
public function execute()
{
$this->_forward('edit');
}
}
| mit |
sferik/vagrant | plugins/commands/package/command.rb | 2480 | require 'optparse'
module VagrantPlugins
module CommandPackage
class Command < Vagrant.plugin("2", :command)
def self.synopsis
"packages a running vagrant environment into a box"
end
def execute
options = {}
opts = OptionParser.new do |o|
o.banner = "Usage: v... | mit |
peppy/osu | osu.Game/Online/Multiplayer/IMultiplayerClient.cs | 5083 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Threading.Tasks;
using osu.Game.Online.API;
using osu.Game.Online.Rooms;
namespace osu.Game.Online.Multiplayer
{
/// <... | mit |
JeromeFitz/next.js | test/integration/external-assets/test/index.test.js | 588 | /* eslint-env jest */
import { join } from 'path'
import {
killApp,
findPort,
nextBuild,
nextStart,
renderViaHTTP,
} from 'next-test-utils'
const appDir = join(__dirname, '../')
let appPort
let app
describe('External Assets', () => {
beforeAll(async () => {
await nextBuild(appDir, [])
appPort = a... | mit |
MyRookie/SentimentAnalyse | venv/lib/python2.7/site-packages/nltk/twitter/__init__.py | 787 | # -*- coding: utf-8 -*-
# Natural Language Toolkit: Twitter
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Ewan Klein <ewan@inf.ed.ac.uk>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
"""
NLTK Twitter Package
This package contains classes for retrieving Tweet documents using the
... | mit |
griffithlab/dgi-db | app/sort_orders/interaction_result_sort_order.rb | 686 | module InteractionResultSortOrder
def self.sort_value(sortval)
case sortval
when 'CIViC'
1
when 'DoCM'
2
when 'MyCancerGenome'
3
when 'CancerCommons'
4
when 'ClearityFoundationBiomarkers'
5
when 'TALC'
6
when 'TEND'
... | mit |
amarzavery/AutoRest | Samples/test/end-to-end/network/Client/SecurityRulesOperationsExtensions.cs | 16290 | // Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespace ApplicationGateway
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Threading;
using System.Threading.Ta... | mit |
nmengin/traefik | vendor/github.com/gambol99/go-marathon/client.go | 13412 | /*
Copyright 2014 The go-marathon Authors 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 required by applicable law or a... | mit |
smr-co-uk/pillar | src/main/scala/com/chrisomeara/pillar/ReportingMigrator.scala | 772 | package com.chrisomeara.pillar
import java.util.Date
import com.datastax.driver.core.Session
class ReportingMigrator(reporter: Reporter, wrapped: Migrator) extends Migrator {
override def initialize(session: Session, keyspace: String, replicationOptions: ReplicationOptions = ReplicationOptions.default) {
repor... | mit |
dierksen/robolectric | src/test/java/org/robolectric/res/ViewLoaderTest.java | 17723 | package org.robolectric.res;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.util.Attribut... | mit |
LearnersGuild/echo | src/common/util/getOwnerAndRepoFromGitHubURL.js | 287 | export default function getOwnerAndRepoFromGitHubURL(ghURL) {
const matches = ghURL.match(/github\.com\/(.+)\/(.+)/)
if (!matches || !matches.length >= 2) {
throw new Error(`Invalid GitHub repository URL: ${ghURL}`)
}
const [, owner, repo] = matches
return {owner, repo}
}
| mit |
realtymaps/ui-leaflet | examples/js/controllers.js | 203920 | (function(angular){
var app = angular.module('webapp');
app.controller("BasicAccessLeafletObjectController", [ "$scope", "$log", "leafletData", function($scope, $log, leafletData) {
angular.extend($scope, {
london: {
lat: 51.505,
lng: -0.09,
... | mit |
claudiopro/babel | packages/babel-register/src/node.js | 3313 | import deepClone from "lodash/cloneDeep";
import sourceMapSupport from "source-map-support";
import * as registerCache from "./cache";
import escapeRegExp from "lodash/escapeRegExp";
import * as babel from "@babel/core";
import { OptionManager, DEFAULT_EXTENSIONS } from "@babel/core";
import { addHook } from "pirates";... | mit |
iansinnott/react-static-webpack-plugin | example/with-static-markup/src/routes.js | 418 | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { App, Home, About, NotFound } from './components.js';
export const routes = (
<Route path='/' component={App}>
<IndexRoute title='App' component={Home} />
<Route path='about' title='App - About' component={About} />
<Ro... | mit |
innogames/gitlabhq | lib/api/helpers/badges_helpers.rb | 902 | # frozen_string_literal: true
module API
module Helpers
module BadgesHelpers
include ::API::Helpers::MembersHelpers
def find_badge(source)
badge_id = params[:badge_id]
if source.is_a?(Project)
source.project_badges.find(badge_id)
else
source.badges.find(b... | mit |
piousbox/microsites2-cities | vendor/ruby/1.9.1/gems/mocha-0.13.2/test/acceptance/bug_21465_test.rb | 665 | require File.expand_path('../acceptance_test_helper', __FILE__)
require 'mocha/setup'
class Bug21465Test < Test::Unit::TestCase
include AcceptanceTest
def setup
setup_acceptance_test
end
def teardown
teardown_acceptance_test
end
def test_should_allow_expected_method_name_to_be_a_string
test... | mit |
fgandellini/angularjs-pedalboard | vendors/pedalboard.js/src/stomp/volume/VolumeModel.js | 1194 | // Copyright 2012 Armagan Amcalar. All Rights Reserved.
//
// This file is part of Pedalboard.js.
//
// Pedalboard.js is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (a... | mit |
RTougjas/pws | adm_temp/application/config/routes.php | 2029 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... | mit |
hovsepm/azure-sdk-for-java | logic/resource-manager/v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/WorkflowTriggerHistory.java | 1977 | /**
* 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.
*/
package com.microsoft.azure.management.logic.v2016_06_01;
import com.microsoft.azure.ar... | mit |
ignacio/LuaNode | test/simple/test-event-emitter-add-listeners.lua | 1585 | require "lunit"
module(..., lunit.testcase, package.seeall)
common = dofile("common.lua")
local EventEmitter = require "luanode.event_emitter"
function test()
local e = EventEmitter()
local events_new_listener_emited = {}
local times_hello_emited = 0
e:addListener("newListener", function (self, event, listene... | mit |
jeromeetienne/tquery | plugins/playerinput/tquery.playerinput.deviceorientation.js | 2571 | //////////////////////////////////////////////////////////////////////////////////
// Constructor //
//////////////////////////////////////////////////////////////////////////////////
tQuery.PlayerInput.registerStatic('DeviceOrientation', function(opts){
// handle arguments polymorphism
if( opts instanceof tQ... | mit |
EricChavez/Facturacion-WEB-NextData | app/scripts/controllers/facturacion/cajas/ModalEdoCuentaCtrl.js | 440 | 'use strict';
angular
.module('softvApp')
.controller('ModalEdoCuentaCtrl', function($uibModalInstance, cajasFactory, contrato, $sce) {
this.$onInit = function() {
vm.url = 'http://172.16.126.41/exes/EdoCuentaClientes' + contrato + '.pdf';
vm.urlReal = $sce.trustAsResourceUrl(vm.url);
console.log(vm.urlRea... | mit |
Welovroi/mongoid | spec/app/models/manufacturer.rb | 162 | # frozen_string_literal: true
class Manufacturer
include Mongoid::Document
field :products, type: Array, default: []
validates_presence_of :products
end
| mit |
Azure/azure-sdk-for-java | sdk/storage/azure-storage-blob-batch/src/main/java/com/azure/storage/blob/batch/BlobBatchOperation.java | 2195 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.storage.blob.batch;
import com.azure.core.annotation.Immutable;
import com.azure.core.http.rest.Response;
import reactor.core.publisher.Mono;
/**
* Contains the information about a single {@link BlobBat... | mit |
vova616/GarageEngine | engine/Transform.go | 7990 | package engine
import (
"math"
)
type Transform struct {
BaseComponent
parent *Transform
position Vector
rotation Vector
scale Vector
children []*Transform
worldPosition Vector
worldRotation Vector
worldScale Vector
matrix Matrix
parentMatrix Matrix
updatedMatrix bool
childOfScene boo... | mit |
XeroAPI/scribe-java | scribejava-httpclient-apache/src/main/java/com/github/scribejava/httpclient/apache/ApacheHttpClientConfig.java | 820 | package com.github.scribejava.httpclient.apache;
import com.github.scribejava.core.httpclient.HttpClientConfig;
import org.apache.http.impl.nio.client.HttpAsyncClientBuilder;
public class ApacheHttpClientConfig implements HttpClientConfig {
private final HttpAsyncClientBuilder httpAsyncClientBuilder;
public... | mit |
notebowl/laravel-framework | src/Illuminate/View/Compilers/ComponentTagCompiler.php | 18843 | <?php
namespace Illuminate\View\Compilers;
use Illuminate\Container\Container;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\View\Factory;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str;
use Illuminate\View\AnonymousComponent;
use Illuminate\View\DynamicComponent;
use Ill... | mit |
mayeco/GearmanBundle | Tests/Command/GearmanJobDescribeCommandTest.php | 3122 | <?php
/**
* Gearman Bundle for Symfony2
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <yuhu@mmoreram.com>
*/
namespace Mmoreram\GearmanBundle\Tests\Comma... | mit |
tmcgee/cmv-wab-widgets | wab/2.15/widgets/Geoprocessing/setting/nls/fi/strings.js | 1810 | define({
"taskUrl": "Tehtävän URL-osoite",
"serviceURLPlaceholder": "Syötä geoprosessointitehtävän URL-osoite",
"layerOrder": "Karttatasojen järjestys",
"defaultValue": "Oletusarvo",
"inputFeatureBy": "Lähtöaineiston kohde",
"inputRecordBy": "Lähtöaineistotietueen peruste",
"renderer": "Renderöinti",
"d... | mit |
sjkp/PowerBI-visuals | src/Clients/Visuals/capabilities/table.capabilities.ts | 8704 | /*
* 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 restricti... | mit |
yangpeiyong/hrisey | src/core/hrisey/javac/lang/Equals.java | 1680 | /*
* Copyright (C) 2014 Maciej Gorski
*
* 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, publ... | mit |
fstudio/Phoenix | test/Experimental/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared_no_variadics.pass.cpp | 2624 | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | mit |
yhchun1992/abc | porto/assets/javascripts/tables/examples.datatables.tabletools.js | 798 | /*
Name: Tables / Advanced - Examples
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 1.4.0
*/
(function( $ ) {
'use strict';
var datatableInit = function() {
var $table = $('#datatable-tabletools');
$table.dataTable({
sDom: "<'text-right mb-md'T>" + $.fn.dataTable.defaults.sDom,
o... | mit |
LedgerHQ/ledger-wallet-chrome | app/libs/lru.js | 8220 | /**
* A doubly linked list-based Least Recently Used (LRU) cache. Will keep most
* recently used items while discarding least recently used items when its limit
* is reached.
*
* Licensed under MIT. Copyright (c) 2010 Rasmus Andersson <http://hunch.se/>
* See README.md for details.
*
* Illustration of the desig... | mit |
cdnjs/cdnjs | ajax/libs/bootstrap-table/1.18.0/locale/bootstrap-table-es-MX.js | 25693 | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
(global = global || self, factory(global.jQuery));
}(this, (function ($) { 'use strict';
$ = $ && Object.prototype.has... | mit |