repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
vitorbal/eslint | lib/rules/eol-last.js | 1852 | /**
* @fileoverview Require file to end with single newline.
* @author Nodeca Team <https://github.com/nodeca>
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module... | mit |
buksy/jnlua | src/main/java/com/naef/jnlua/script/LuaScriptEngineFactory.java | 4298 | /*
* $Id: LuaScriptEngineFactory.java 38 2012-01-04 22:44:15Z andre@naef.com $
* See LICENSE.txt for license terms.
*/
package com.naef.jnlua.script;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineFacto... | mit |
Djamy/platform | src/Oro/Bundle/IntegrationBundle/Tests/Functional/Entity/IntegrationProcessTest.php | 3913 | <?php
namespace Oro\Bundle\IntegrationBundle\Tests\Functional\Entity\Repository;
use Doctrine\ORM\EntityManagerInterface;
use Oro\Bundle\IntegrationBundle\Async\Topics;
use Oro\Bundle\IntegrationBundle\Entity\Channel as Integration;
use Oro\Bundle\IntegrationBundle\Tests\Functional\DataFixtures\LoadChannelData;
use Or... | mit |
eldarion/braintree_python | tests/unit/test_subscription_search.py | 1938 | from tests.test_helper import *
class TestSubscriptionSearch(unittest.TestCase):
def test_billing_cycles_remaining_is_a_range_node(self):
self.assertEquals(Search.RangeNodeBuilder, type(SubscriptionSearch.billing_cycles_remaining))
def test_days_past_due_is_a_range_node(self):
self.assertEqual... | mit |
MontealegreLuis/php-testing-tools | ui/messaging/rector.php | 1588 | <?php declare(strict_types=1);
/**
* PHP version 7.4
*
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
use Rector\Core\Configuration\Option;
use Rector\Set\ValueObject\SetList;
use Rector\SOLID\Rector\Class_\ChangeReadOnlyVariableWithDefaultValueToConstantRect... | mit |
michael-e/symphony-2 | symphony/lib/core/class.configuration.php | 9278 | <?php
/**
* @package core
*/
/**
* The Configuration class acts as a property => value store for settings
* used throughout Symphony. The result of this class is a string containing
* a PHP representation of the properties (and their values) set by the Configuration.
* Symphony's configuration file is save... | mit |
mlennox/OpenNlp | SharpEntropy/IContextGenerator.cs | 2590 | //Copyright (C) 2005 Richard J. Northedge
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This lib... | mit |
MetaMemoryT/OTMql4Zmq | MQL4/Python/OTMql427/ZmqChart.py | 2329 | # -*-mode: python; py-indent-offset: 4; indent-tabs-mode: nil; encoding: utf-8-dos; coding: utf-8 -*-
"""
A ZmqChart object is a simple abstraction to encapsulate a Mt4 chart
that has a ZeroMQ context on it. There should be only one context for
the whole application, so it is set as the module variable oCONTEXT.
... | mit |
leschzinerlab/AWS | external_software/relion/src/transformations.cpp | 7407 | /***************************************************************************
*
* Author: "Sjors H.W. Scheres"
* MRC Laboratory of Molecular Biology
*
* This program 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 F... | mit |
tagalpha/library | app/code/core/Mage/CatalogInventory/Helper/Minsaleqty.php | 6224 | <?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | mit |
rdavaillaud/sfMediaLibraryPlugin-1.3 | modules/sfMediaLibrary/templates/_files.php | 464 | <?php foreach ($files as $file => $info): $count++ ?>
<div id="block_<?php echo $count ?>" class="assetImage">
<?php include_partial('sfMediaLibrary/block', array(
'name' => $file,
'current_path' => $currentDir,
'web_abs_current_path' => $webAbsCurrentDir,
'type' ... | mit |
lexor90/node-compiler | node/test/parallel/test-stream-pipe-after-end.js | 2506 | // Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... | mit |
ncarrillo/Perspex | src/Perspex.Themes.Default/TreeViewStyle.cs | 2443 | // Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System.Linq;
using Perspex.Controls;
using Perspex.Controls.Presenters;
using Perspex.Controls.Primitives;
using Perspex.Controls.Templates;
using P... | mit |
ryanmcoble/LiveCoding.tv-Chat-Bot | node_modules/lctvbot/node_modules/node-xmpp-core/test/Connection.js | 5259 | 'use strict'
var assert = require('assert')
, Connection = require('..').Connection
, sinon = require('sinon')
, net = require('net')
, ltx = require('ltx')
var PORT = 8084 //Tests create a server on this port to attach sockets to
describe('Connection', function () {
describe('socket config', function ()... | mit |
PaulienVa/JavaMasters | 2014/NLJUG-Masters-of-Java/2_Befunged/BefungedCase/BefungedImpl.java | 2592 | import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* The main implementation class of Duke's Befunge interpreter.
*
* @author Jaap Coomans
*/
public class BefungedImpl {
private List<ProgramListener> listeners = new ArrayList<ProgramListener>();
/**
* Creates a new instance wit... | mit |
moazzemi/HAMEX | cpu/gem5/src/gpu-compute/dispatcher.hh | 5220 | /*
* Copyright (c) 2011-2015 Advanced Micro Devices, Inc.
* All rights reserved.
*
* For use for simulation and test purposes only
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sourc... | mit |
cesar1000/robolectric | robolectric-annotations/src/main/java/org/robolectric/annotation/Implements.java | 2146 | package org.robolectric.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that a class declaration is intended to shadow an Android class ... | mit |
OhmzTech/AppInspector | app/test/siesta-2.0.5-lite/lib/Siesta/Harness/Browser/UI/AssertionGrid.js | 9213 | /*
Siesta 2.0.5
Copyright(c) 2009-2013 Bryntum AB
http://bryntum.com/contact
http://bryntum.com/products/siesta/license
*/
Ext.define('Siesta.Harness.Browser.UI.AssertionGrid', {
alias : 'widget.assertiongrid',
extend : 'Ext.tree.Panel',
mixins : [
'Siesta.Harness... | mit |
filipinotutor/public_html | tutor/test/school.php | 2089 | <html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
function getdetails(){
var name = $('#name').val();
var rno = $('#rno').val();
$.ajax({
type: "POST",
url: "details.php",
data: {fname:name, id:rno}
}).done(function( result ) {
$("#msg").html( " Address of Roll no " +rno +" is "+res... | mit |
augustash/d8.dev | core/modules/system/lib/Drupal/system/Tests/Authentication/HttpBasicTest.php | 2914 | <?php
/**
* @file
* Contains \Drupal\system\Tests\Authentication\HttpBasicTest.
*/
namespace Drupal\system\Tests\Authentication;
use Drupal\Core\Authentication\Provider\HttpBasic;
use Drupal\simpletest\WebTestBase;
use Symfony\Component\HttpFoundation\Request;
/**
* Test for http basic authentication.
*/
class... | mit |
nitirohilla/upm | examples/javascript/lsm303.js | 2833 | /*
* Author: Zion Orent <zorent@ics.com>
* Copyright (c) 2014 Intel Corporation.
*
* 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 righ... | mit |
shiren1118/grape | lib/grape.rb | 2089 | require 'rack'
require 'rack/builder'
module Grape
autoload :API, 'grape/api'
autoload :Endpoint, 'grape/endpoint'
autoload :Route, 'grape/route'
autoload :Entity, 'grape/entity'
autoload :Cookies, 'grape/cookies'
autoload :Validations, ... | mit |
unboxed/e-petitions | db/migrate/20190411174307_add_postcode_indexes_to_archived_signatures.rb | 1154 | class AddPostcodeIndexesToArchivedSignatures < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def up
unless index_exists?(:archived_signatures, [:postcode, :petition_id])
execute <<-SQL
CREATE INDEX CONCURRENTLY index_archived_signatures_on_postcode_and_petition_id
ON archived_sign... | mit |
Bernardo-MG/CWR-Validator | data_validator/accessor.py | 1902 | # -*- coding: utf-8 -*-
import os
"""
Facades for accessing the configuration data.
"""
__author__ = 'Bernardo Martínez Garrido'
__license__ = 'MIT'
__status__ = 'Development'
class _FileReader(object):
"""
Offers methods to read the data files.
"""
# Singleton control object
__shared_state = ... | mit |
cidadedemocratica/cidadedemocratica | app/models/general_report/general_report_locals.rb | 939 | class GeneralReportLocals < GeneralReportBase
def initialize(local_scoped)
super()
@local_scoped = local_scoped
end
def add(name, model)
topic_model(model).locais.map(&@local_scoped[:field]).uniq.each do |local_id|
@store[local_id]["total"] += 1
@store[local_id]["users"] << model.user
... | mit |
SweetLakePHP/SweetLakePHP | src/SWP/BackendBundle/DependencyInjection/SWPBackendExtension.php | 761 | <?php
namespace SWP\BackendBundle\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 manage... | mit |
imperodesign/clever-v0-system | controllers/system-admin.js | 2973 | 'use strict';
// Module dependencies.
const config = require('clever-core').loadConfig();
const mongoose = require('mongoose');
const Setting = mongoose.model('Setting');
const async = require('async');
const util = require('../util');
// DASHBOARD
exports.showDashboard = function(SystemPackage, req, res) {
// Alw... | mit |
sircommitsalot/wikitree | client/js/angular/services/Search.service.js | 3139 | (function() {
angular.module('wikitree').
factory('Search', ['$http', 'Articles', 'Categories', 'Searches',
function($http, Articles, Categories, Searches) {
var search = {};
search.get_suggestions = function (term) {
console.log('Fetching s... | mit |
codefresh/node-examples | angular/node_modules/grunt-express/node_modules/forever-monitor/test/monitor/env-spawn-test.js | 3484 | /*
* env-spawn-test.js: Tests for supporting environment variables in the forever module
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENCE
*
*/
var assert = require('assert'),
path = require('path'),
vows = require('vows'),
fmonitor = require('../../lib');
vows.describe('forever-monitor/monitor/spawn-opti... | mit |
Blackbaud-StacyCarlos/skyux | js/sky/palette/template.js | 272 | /*jshint unused: false */
/*global angular, bbPaletteConfig */
(function () {
'use strict';
var bbPaletteConfig;
/* LINES BELOW ARE AUTO GENERATED */
/*PALETTE_CONFIG*/
angular.module('sky.palette.config', [])
.constant('bbPaletteConfig', bbPaletteConfig);
}());
| mit |
NikolayPianikov/nunit | src/NUnitFramework/tests/Constraints/ThrowsConstraintTests.cs | 6098 | // ***********************************************************************
// Copyright (c) 2009 Charlie Poole, Rob Prouse
//
// 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 restri... | mit |
kataras/gapi | _examples/database/mysql/service/product_service.go | 3012 | package service
import (
"context"
"fmt"
"reflect"
"strings"
"myapp/entity"
"myapp/sql"
)
// ProductService represents the product entity service.
// Note that the given entity (request) should be already validated
// before service's calls.
type ProductService struct {
*sql.Service
rec sql.Record
}
// NewP... | mit |
tylerhasman/MapleStory | scripts/npc/legacy/2101003.js | 186 | /* Ardin
Ariant
*/
function start() {
cm.sendNext ("Hey hey, don't try to start trouble with anyone. I want nothing to do with you.");
}
function action() {
cm.dispose();
} | mit |
TABuApp/tabu-admin | assets/themes/admin/layout.js | 4491 | $(document).ready(function() {
body_sizer();
$("div[id='#fixed-sidebar']").on('click', function() {
if ($(this).hasClass("switch-on")) {
var windowHeight = $(window).height();
var headerHeight = $('#page-header').height();
var contentHeight = windowHeight - headerH... | mit |
gef756/meta | src/analyzers/analyzer.cpp | 4415 | /**
* @file analyzer.cpp
*/
#include "analyzers/analyzer_factory.h"
#include "analyzers/filter_factory.h"
#include "analyzers/multi_analyzer.h"
#include "analyzers/token_stream.h"
#include "analyzers/filters/alpha_filter.h"
#include "analyzers/filters/empty_sentence_filter.h"
#include "analyzers/filters/length_filte... | mit |
diogogmt/Ghost | core/client/app/models/setting.js | 771 | import DS from 'ember-data';
import ValidationEngine from 'ghost/mixins/validation-engine';
var Setting = DS.Model.extend(ValidationEngine, {
validationType: 'setting',
title: DS.attr('string'),
description: DS.attr('string'),
email: DS.attr('string'),
logo: DS.attr('string'),
cover: DS.attr('... | mit |
SabotageAndi/gherkin | python/setup.py | 780 | # coding: utf-8
from distutils.core import setup
setup(name='gherkin-official',
packages=['gherkin', 'gherkin.pickles'],
version='4.0.0',
description='Gherkin parser (official, by Cucumber team)',
author='Cucumber Ltd and Björn Rasmusson',
author_email='cukes@googlegroups.com',
url='... | mit |
yogeshsaroya/new-cdnjs | ajax/libs/yui/3.14.1/file/file-coverage.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:7ecbf517637009b3ec86649ed30c98e36ae35dc89718fdb38e3c996d1838b9fd
size 2924
| mit |
elpd/coop | library/Zend/Layout/Controller/Action/Helper/Layout.php | 5086 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the ... | mit |
CGX-GROUP/DotSpatial | Source/DotSpatial.Tools.Tests/Properties/AssemblyInfo.cs | 1445 | // <autogenerated />
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DotSpatial.Too... | mit |
ermshiperete/icu-dotnet | source/icu.net/Collation/AlternateHandling.cs | 709 | // Copyright (c) 2013 SIL International
// This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
namespace Icu.Collation
{
/// <summary>
/// Attribute for handling variable elements.
/// </summary>
public enum AlternateHandling
{
/// <summary>
/// Default value that does nothing... | mit |
asimbilaladil/waara-project | includes/website/assets/scripts/slick.js | 70277 | /*
_ _ _ _
___| (_) ___| | __ (_)___
/ __| | |/ __| |/ / | / __|
\__ \ | | (__| < _ | \__ \
|___/_|_|\___|_|\_(_)/ |___/
|__/
Version: 1.5.0
Author: Ken Wheeler
Website: http://kenwheeler.github.io
Docs: http://kenwheeler.github.io/slick
Repo: http://github.com/kenwh... | mit |
zk-ruby/zookeeper | cause-abort.rb | 2541 | #!/usr/bin/env ruby
require 'zookeeper'
require File.expand_path('../spec/support/zookeeper_spec_helpers', __FILE__)
class CauseAbort
include Zookeeper::Logger
include Zookeeper::SpecHelpers
attr_reader :path, :pids_root, :data
def initialize
@path = "/_zktest_"
@pids_root = "#{@path}/pids"
@dat... | mit |
NateBrady23/faithwraps | vendor/league/oauth2-facebook/src/Provider/FacebookUser.php | 3075 | <?php
namespace League\OAuth2\Client\Provider;
class FacebookUser implements ResourceOwnerInterface
{
/**
* @var array
*/
protected $data;
/**
* @param array $response
*/
public function __construct(array $response)
{
$this->data = $response;
if (!empty($resp... | mit |
zbrad/nuproj | src/NuProj.Tests/Infrastructure/MSBuild.cs | 13497 | using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Build.Execution;
using Microsoft.Build.Framework;
using Microsoft.Build.Logging;
using Xunit;
using Xunit.Abstractions;
namespace NuProj.Tests.Infra... | mit |
dmitriy-sqrt/thor-language | tests/testcases/RouterTestCase.php | 3003 | <?php
namespace Thor\Language;
class RouterTestCase extends PackageTestCase
{
public function testRouteFacadeIsSwapped()
{
$this->assertArrayHasKey('router', $this->app);
$this->assertArrayHasKey('thor.router', $this->app);
$this->assertInstanceOf('Thor\\Language\\Router', $this->app[... | mit |
BoazFrancis/grafana-event-map | node_modules/babel-plugin-transform-cjs-system-wrapper/test/fixtures/set-deps/expected.js | 146 | System.registerDynamic(["foo", "bar"], true, function ($__require, exports, module) {
var global = this || self,
GLOBAL = global;
});
| mit |
ivanceras/iup-mirror | html/examples/Lua/image.lua | 4731 | -- IupImage Example in IupLua
-- Creates a button, a label, a toggle and a radio using an image.
-- Uses an image for the cursor as well.
require( "iuplua" )
-- Defines an "X" image
img_x = iup.image{
{ 1,2,3,3,3,3,3,3,3,2,1 },
{ 2,1,2,3,3,3,3,3,2,1,2 },
{ 3,2,1,2,3,3,3,2,1,2,3 },
{ 3,3,2,1,2,3,2,1,2,3,... | mit |
redpelicans/aurelia-material-sample | jspm_packages/npm/babel-core@5.7.4/lib/types/index.js | 10735 | /* */
"format cjs";
"use strict";
exports.__esModule = true;
exports.is = is;
exports.isType = isType;
exports.shallowEqual = shallowEqual;
exports.appendToMemberExpression = appendToMemberExpression;
exports.prependToMemberExpression = prependToMemberExpression;
exports.ensureBlock = ensureBlock;
exports.clone = clo... | mit |
tropp/acq4 | acq4/analysis/modules/IVCurve_mbk/IVCurve.py | 3687 | ##Needs to:
## output set of parameters: Ih current, rectification, FI plots (and analysis based on)
## load IV directory, plot raw data, sends data to a function(flowchart) which returns a list of parameters.
from PyQt4 import QtGui, QtCore
from acq4.analysis.AnalysisModule import AnalysisModule
from acq4.util... | mit |
ysekky/chainer | tests/chainer_tests/links_tests/activation_tests/test_simplified_dropconnect.py | 6620 | import os
import tempfile
import unittest
import numpy
import chainer
from chainer import cuda
from chainer import gradient_check
from chainer import links
from chainer.serializers import npz
from chainer import testing
from chainer.testing import attr
from chainer.testing import condition
from chainer.utils import t... | mit |
georgemarshall/DefinitelyTyped | types/vhtml/index.d.ts | 58052 | // Type definitions for vhtml 2.2
// Project: https://github.com/developit/vhtml
// Definitions by: pastelmind <https://github.com/pastelmind>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = vhtml;
/**
* Converts Hyperscript/JSX to a plain string.
* @param name Element name
* @param att... | mit |
mathnet/mathnet-numerics | src/Numerics.Tests/LinearAlgebraTests/Complex/UserDefinedMatrixTests.cs | 2522 | // <copyright file="UserDefinedMatrixTests.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
// Copyright (c) 2009-2010 Math.NET
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of ... | mit |
hsimpson/three.js | editor/js/Sidebar.Geometry.TubeGeometry.js | 4868 | /**
* @author Temdog007 / http://github.com/Temdog007
*/
Sidebar.Geometry.TubeGeometry = function ( editor, object ) {
var strings = editor.strings;
var signals = editor.signals;
var container = new UI.Row();
var geometry = object.geometry;
var parameters = geometry.parameters;
// points
var lastPointId... | mit |
spirom/LearningSpark | src/main/scala/special/HashJoin.scala | 2394 | package special
import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkContext, SparkConf}
import scala.collection.mutable
// This gives is access to the PairRDDFunctions
import org.apache.spark.SparkContext._
// encapsulate a small sequence of pairs to be joined with pair RDDs --
// making this serializable... | mit |
BlessingDev/When-we-lost-our-home | Assets/HOMI/NGUI/Scripts/Editor/NGUIEditorTools.cs | 60122 | //----------------------------------------------
// NGUI: Next-Gen UI kit
// Copyright © 2011-2014 Tasharen Entertainment
//----------------------------------------------
using UnityEditor;
using UnityEngine;
using System.Collections.Generic;
using System.Reflection;
/// <summary>
/// Tools for the editor
... | mit |
FranckW/projet1_opl | server/lib/slf4j-1.7.21/integration/src/test/java/org/slf4j/MissingSingletonMethodAssertionTest.java | 3022 | /**
* Copyright (c) 2004-2016 QOS.ch
* All rights reserved.
*
* 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 |
kwhinnery/twilio-parse | cloud/twilio/resources/IncomingPhoneNumbers.js | 1066 | /**
@module resources/AvailablePhoneNumbers
The Twilio "AvailablePhoneNumbers" Resource.
*/
var generate = require('cloud/twilio/resources/generate'),
ListInstanceResource = require('cloud/twilio/resources/ListInstanceResource');
module.exports = function (client, accountSid) {
var IncomingPhoneNumbers = Li... | mit |
bristweb/wp-plugins-submodule | scripts-n-styles/js/settings-page.js | 538 | // Options JavaScript
jQuery( document ).ready( function( $ ) {
var theme = codemirror_options.theme ? codemirror_options.theme: 'default';
var editor = CodeMirror.fromTextArea(document.getElementById("codemirror_demo"), {
lineNumbers: true,
matchBrackets: true,
mode: "application/x-httpd-php",
inden... | mit |
gilyclem/larVolumeToObj | larVolumeToObjG/computation/step_mergemesh.py | 2767 | import time as tm
import gc
import getopt, sys
import os
import traceback
import glob
# ------------------------------------------------------------
# Logging & Timer
# ------------------------------------------------------------
logging_level = 1;
# 0 = no_logging
# 1 = few details
# 2 = many details
# 3 = many m... | mit |
EOL/capstone_eol | vendor/plugins/simple_auto_complete/lib/grosser/autocomplete.rb | 2924 | module Grosser
module Autocomplete
#Example:
#
# # Controller
# class BlogController < ApplicationController
# autocomplete_for :post, :title
# end
#
# # View
# <%= text_field :post, title, :class => 'autocomplete', 'autocomplete_url'=>autocomplete_for_post_title_post... | mit |
rockmandew/pongnub | assets/conversion.js | 9217 | (function(){var f=this,h=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof... | mit |
jmorse/cyanide | tests/js/search.spec.js | 189 |
var search = require('../../web/javascript/search.js');
describe("The search page", function() {
it("should be defined", function() {
expect(search.SearchPage).toBeDefined();
});
});
| mit |
AlanJAS/turtleart | TurtleArt/util/codegen.py | 18799 | # -*- coding: utf-8 -*-
# Copyright (c) 2008, Armin Ronacher
# 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 code must retain the above copyright notice,
# this l... | mit |
studionone/schale | tests/support/Mock/Model/Module/ArticleModel.php | 506 | <?php declare(strict_types=1);
namespace Shale\Test\Support\Mock\Model\Module;
use Shale\Annotation;
use Shale\Traits\Accessors;
/**
* @Annotation\Model(name="article_module")
*/
class ArticleModel
{
use Accessors;
/**
* @Annotation\Id()
*/
protected $id;
/**
* @Annotation\Property... | mit |
zubie7a/Algorithms | CodeSignal/Arcade/Intro/Level_02/03_Make_Array_Consecutive.py | 472 | # https://app.codesignal.com/arcade/intro/level-2/bq2XnSr5kbHqpHGJC
def makeArrayConsecutive2(statues):
statues = sorted(statues)
res = 0
# Make elements of the array be consecutive. If there's a
# gap between two statues heights', then figure out how
# many extra statues have to be added so that al... | mit |
workshop/struct | lib/spec/builder/spec_builder_20X/spec_variant_dsl_20X.rb | 1157 | require_relative 'spec_target_dsl_20X'
module StructCore
class SpecVariantDSL20X
def initialize
@variant = nil
@project_configurations = []
@project_base_dir = nil
@project_target_names = []
@project = nil
@current_scope = nil
end
attr_accessor :variant
attr_accessor :project_configurations... | mit |
mjp41/corert | src/System.Private.Reflection.Core/src/System/Reflection/Runtime/Types/ShadowRuntimeInspectionOnlyNamedType.cs | 1776 | // 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 global::System;
using global::System.Reflection;
using global::System.Diagnostics;
using global::System.Collec... | mit |
ttamminen/riotjs | lib/tag/vdom.js | 1560 |
/*
Virtual dom is an array of custom tags on the document.
Updates and unmounts propagate downwards from parent to children.
*/
var virtual_dom = [],
tag_impl = {}
function getTag(dom) {
return tag_impl[dom.tagName.toLowerCase()]
}
function injectStyle(css) {
var node = document.createElement('style')
... | mit |
TelegramBots/telegram.bot | src/Telegram.Bot/Args/ApiResponseEventArgs.cs | 528 | using System.Net.Http;
namespace Telegram.Bot.Args
{
/// <summary>
/// Provides data for ApiResponseReceived event
/// </summary>
public class ApiResponseEventArgs
{
/// <summary>
/// HTTP response received from API
/// </summary>
public HttpResponseMessage Response... | mit |
altimesh/hybridizer-basic-samples | HybridizerBasicSamples_CUDA100/2.Imaging/Sobel/Sobel/Program.cs | 4157 | using System.Collections.Generic;
using System.Linq;
using System.Text;
using System;
using System.Threading.Tasks;
using System.Drawing;
using Hybridizer.Runtime.CUDAImports;
using System.Diagnostics;
namespace Hybridizer.Basic.Imaging
{
class Program
{
static void Main(string[] args)
{
... | mit |
PeppeL-G/bootstrap-3-modal | examples/modals/signUp.js | 6387 | if(Meteor.isClient){
var templateName = 'modal_signUp'
// Store user input in the Session object so it survives code reloads.
// The error "" means there is no error.
var usernameKey = templateName+'_username'
var usernameErrorKey = templateName+'_usernameError'
var emailKey ... | mit |
kevhuang/rallie | client/public/js/components/App.js | 12035 | var React = require('react'),
Router = require('react-router'),
Navigation = Router.Navigation,
State = Router.State,
RouteHandler = Router.RouteHandler,
AppActions = require('../actions/AppActions'),
AppStore = require('../stores/AppStore'),
cookie = require('react-cookie');
var App = Reac... | mit |
bburnett-cpf/react-intro | node_modules/prettier/src/doc-printer.js | 8170 | "use strict";
const MODE_BREAK = 1;
const MODE_FLAT = 2;
function rootIndent() {
return {
indent: 0,
align: {
spaces: 0,
tabs: 0
}
};
}
function makeIndent(ind) {
return {
indent: ind.indent + 1,
align: ind.align
};
}
function makeAlign(ind, n) {
if (n === -Infinity) {
... | mit |
sufuf3/cdnjs | ajax/libs/ag-grid/21.2.1/lib/valueService/valueService.js | 13188 | /**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.leng... | mit |
museways/makers | lib/makers/dsl/maker.rb | 515 | module Makers
module Dsl
class Maker < Trait
def initialize(name, options={}, &block)
@traits = Collections::Traits.new
super
end
def maker(name, overrides={}, &block)
options = @options.dup
options.delete :aliases
options.merge! overrides
option... | mit |
MikhailArkhipov/RTVS | src/Host/Client/Impl/Transports/WebSocketClient.cs | 1815 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.WebSockets;
using System.Threading;
using System.... | mit |
MikhailArkhipov/RTVS | src/Unix/Host/Broker/Impl/Services/Utility.cs | 8626 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.Common.Core;
using M... | mit |
MikhailArkhipov/RTVS | src/R/Editor/Impl/Validation/ValidationSentinel.cs | 636 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using Microsoft.Languages.Core.Text;
using Microsoft.R.Core.Parser;
namespace Microsoft.R.Editor.Validation.Errors {
public class ValidationSentin... | mit |
cdnjs/cdnjs | ajax/libs/material-ui/4.9.5/NativeSelect/NativeSelectInput.js | 3329 | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefaul... | mit |
cdnjs/cdnjs | ajax/libs/material-ui/4.9.10/OutlinedInput/NotchedOutline.js | 5416 | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _defineProperty2... | mit |
maxeler/eclipse | eclipse.jdt.ui/org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceFactory/Bugzilla/74759/Test.java | 294 | package p;
public class Test {
public/*[*/Test/*]*/(Test tal) {
return;
}
public static void main(String[] args) {
final Test test= new Test(new Test(null));
System.out.println(new Test(decorate(new Test(null))));
}
private static Test decorate(Test test) {
return test;
}
}
| epl-1.0 |
echoes-tech/eclipse.jsdt.core | org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/search/SearchEngine.java | 40469 | /*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution... | epl-1.0 |
akervern/che | wsmaster/che-core-api-installer/src/main/java/org/eclipse/che/api/installer/server/jpa/JpaInstallerDao.java | 6272 | /*
* Copyright (c) 2012-2018 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... | epl-1.0 |
menghanli/ice | org.eclipse.ice.client.widgets/src/org/eclipse/ice/client/widgets/MeshElementTreeView.java | 15267 | /*******************************************************************************
* Copyright (c) 2014 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available a... | epl-1.0 |
rrimmana/birt-1 | chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java | 25123 | /*******************************************************************************
* Copyright (c) Oct 22, 2004 Actuate Corporation {ADD OTHER COPYRIGHT OWNERS}.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License v1.0 which
* accompani... | epl-1.0 |
css-iter/cs-studio | applications/channel/channel-plugins/org.csstudio.utility.channel/src/org/csstudio/utility/channel/actions/InfoCommandHandler.java | 1478 | /**
*
*/
package org.csstudio.utility.channel.actions;
import gov.bnl.channelfinder.api.Channel;
import java.util.Collection;
import java.util.List;
import org.csstudio.ui.util.AbstractAdaptedHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.handl... | epl-1.0 |
willrogers/dawnsci | org.eclipse.dawnsci.hdf5/src/org/eclipse/dawnsci/hdf5/H5Utils.java | 6359 | /*-
*******************************************************************************
* Copyright (c) 2011, 2014 Diamond Light Source Ltd.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribut... | epl-1.0 |
akervern/che | ide/commons-gwt/src/test/java/org/eclipse/che/ide/util/ArraysTest.java | 3758 | /*
* Copyright (c) 2012-2018 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... | epl-1.0 |
openhab/openhab2 | bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitFanImpl.java | 2320 | /**
* Copyright (c) 2010-2020 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | epl-1.0 |
Charling-Huang/birt | chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/DataFactory.java | 6795 | /***********************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* ... | epl-1.0 |
maxeler/eclipse | eclipse.jdt.ui/org.eclipse.jdt.ui.tests.refactoring/resources/InlineMethodWorkspace/TestCases/operator_out/TestDivideDivide.java | 176 | package operator_out;
public class TestTimesPlus {
int result;
public void foo() {
result= /*]*/1 / (20 / 10)/*[*/;
}
public int inline(int x) {
return 1 / x;
}
} | epl-1.0 |
rrimmana/birt-1 | xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/ui/extension/IAggregationCellViewProvider.java | 2037 | /*******************************************************************************
* Copyright (c) 2007 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | epl-1.0 |
kevinmcgoldrick/Tank | web/web_support/src/main/java/com/intuit/tank/script/replace/LoggingKeyReplacement.java | 1170 | package com.intuit.tank.script.replace;
/*
* #%L
* JSF Support Beans
* %%
* Copyright (C) 2011 - 2015 Intuit Inc.
* %%
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availab... | epl-1.0 |
css-iter/cs-studio | applications/scan/scan-plugins/org.csstudio.scan.ui.plot/src/org/csstudio/scan/ui/plot/OpenPlotHandler.java | 2003 | /*******************************************************************************
* Copyright (c) 2012 Oak Ridge National Laboratory.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and i... | epl-1.0 |
openhab/openhab2 | bundles/org.openhab.binding.sleepiq/src/main/java/org/openhab/binding/sleepiq/internal/config/SleepIQCloudConfiguration.java | 849 | /**
* Copyright (c) 2010-2020 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | epl-1.0 |
alastrina123/debrief | org.mwc.cmap.legacy/src/MWC/GUI/JFreeChart/RelBearingFormatter.java | 1234 | /*
* Debrief - the Open Source Maritime Analysis Application
* http://debrief.info
*
* (C) 2000-2014, PlanetMayo Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Eclipse Public License v1.0
* (http://www.eclipse.org/legal/epl-v10.... | epl-1.0 |
akervern/che | ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/command/CommandImpl.java | 8088 | /*
* Copyright (c) 2012-2018 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... | epl-1.0 |
sytone/ToDoList_Plugins | ImportExport/MarkdownImpExp/MarkdownLog/TableView.cs | 2500 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MarkdownLog
{
public class TableView : MarkdownElement
{
private IEnumerable<TableViewSection> _sections = new List<TableViewSection>();
public TableView()
{
}
public TableV... | epl-1.0 |
rfdrake/opennms | core/snmp/impl-snmp4j/src/main/java/org/opennms/netmgt/snmp/snmp4j/Snmp4JValueFactory.java | 3130 | /*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2011-2012 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2012 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | gpl-2.0 |